updted README.md
This commit is contained in:
parent
5209d2f85d
commit
39bb5a3e71
@ -9,6 +9,9 @@ The original **x-editable** library was designed for Bootstrap 3 and has not bee
|
||||
- **Bootstrap Icons** (replacing Glyphicons)
|
||||
- General improvements for usability and maintainability
|
||||
|
||||
NOTE: This repo has not yet been completely tested and is not available via NPM right now!
|
||||
|
||||
Later:
|
||||
### Using npm:
|
||||
```sh
|
||||
npm install x-editable-bootstrap5
|
||||
|
1
dist/bootstrap5-editable/js/bootstrap-editable.esm.js
vendored
Normal file
1
dist/bootstrap5-editable/js/bootstrap-editable.esm.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(t){const n=t.fn.editableform.Constructor.prototype.initInput;t.extend(t.fn.editableform.Constructor.prototype,{initInput:function(){n.apply(this);const i=null===this.input.options.inputclass||!1===this.input.options.inputclass,s="input-sm",e="text,select,textarea,password,email,url,tel,number,range,time,typeaheadjs".split(",");~t.inArray(this.input.type,e)&&(this.input.$input.addClass("form-control editable"),i&&(this.input.options.inputclass=s,this.input.$input.addClass(s))),"select"===this.input.type&&setTimeout((()=>{this.input.$input.focus().click()}),50);const o=this.$form.find(".editable-buttons"),l=i?[s]:this.input.options.inputclass.split(" ");for(let t=0;t<l.length;t++)"input-lg"===l[t].toLowerCase()&&o.find("button").removeClass("btn-sm").addClass("btn-lg")}}),t.fn.editableform.buttons='<button type="submit" class="btn btn-primary btn-sm editable-submit"><i class="bi bi-check"></i></button><button type="button" class="btn btn-secondary btn-sm editable-cancel"><i class="bi bi-x"></i></button>',t.fn.editableform.errorGroupClass="has-error",t.fn.editableform.errorBlockClass=null,t.fn.editableform.engine="bs3"}(window.jQuery);
|
6812
dist/bootstrap5-editable/js/bootstrap-editable.js
vendored
6812
dist/bootstrap5-editable/js/bootstrap-editable.js
vendored
File diff suppressed because it is too large
Load Diff
35
package.json
35
package.json
@ -1,26 +1,37 @@
|
||||
{
|
||||
"name": "@24unix/x-editable",
|
||||
"title": "X-editable",
|
||||
"description": "In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery",
|
||||
"description": "A maintained fork of x-editable for Bootstrap 5 support.",
|
||||
"version": "1.5.1",
|
||||
"homepage": "http://github.com/vitalets/x-editable",
|
||||
"homepage": "https://git.24unix.net/tracer/x-editable",
|
||||
"author": {
|
||||
"name": "Vitaliy Potapov",
|
||||
"email": "noginsk@rambler.ru"
|
||||
"name": "Micha Espey",
|
||||
"email": "tracer@24unix.net"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Vitaliy Potapov",
|
||||
"email": "noginsk@rambler.ru",
|
||||
"url": "https://github.com/vitalets",
|
||||
"contributions": "Original author of x-editable"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/vitalets/x-editable.git"
|
||||
"url": "https://git.24unix.net/tracer/x-editable.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/vitalets/x-editable/issues"
|
||||
"url": "https://git.24unix.net/tracer/x-editable/issues"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/vitalets/x-editable/blob/master/LICENSE-MIT"
|
||||
"url": "https://git.24unix.net/tracer/x-editable/blob/master/LICENSE-MIT"
|
||||
}
|
||||
],
|
||||
"main": "dist/bootstrap5-editable/js/bootstrap-editable.js",
|
||||
"module": "dist/bootstrap5-editable/js/bootstrap-editable.esm.js",
|
||||
"style": "dist/bootstrap5-editable/css/bootstrap-editable.css",
|
||||
"dependencies": {
|
||||
"bootstrap": "^5.3.3",
|
||||
"bootstrap-icons": "^1.11.3",
|
||||
@ -43,5 +54,11 @@
|
||||
"style-loader": "^4.0.0",
|
||||
"webpack-cli": "^6.0.1"
|
||||
},
|
||||
"keywords": []
|
||||
}
|
||||
"keywords": [
|
||||
"editable",
|
||||
"bootstrap5",
|
||||
"jquery",
|
||||
"in-place-editing",
|
||||
"x-editable"
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user