fixed jQuer dprecations
This commit is contained in:
BIN
dist/39795c0b4513de014cf8.woff
vendored
BIN
dist/39795c0b4513de014cf8.woff
vendored
Binary file not shown.
18
dist/README.md
vendored
18
dist/README.md
vendored
@@ -1,3 +1,17 @@
|
||||
This is a fork of: https://github.com/vitalets/x-editable
|
||||
# X-Editable (Bootstrap 5 Fork)
|
||||
|
||||
I needed to work with Bootstrap 5
|
||||
This project is a fork of [vitalets/x-editable](https://github.com/vitalets/x-editable), adapted to work with **Bootstrap 5** while maintaining compatibility with jQuery.
|
||||
|
||||
## Why This Fork?
|
||||
The original **x-editable** library was designed for Bootstrap 3 and has not been actively maintained. This fork modernizes the codebase and updates it to support:
|
||||
|
||||
- **Bootstrap 5**
|
||||
- **Bootstrap Icons** (replacing Glyphicons)
|
||||
|
||||
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
|
||||
```
|
||||
|
BIN
dist/b7bcc075b395c14ce8c2.woff2
vendored
BIN
dist/b7bcc075b395c14ce8c2.woff2
vendored
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
/*! X-editable - v1.5.1
|
||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
|
||||
* http://github.com/vitalets/x-editable
|
||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
|
||||
/*! X-editable - v1.5.1_1
|
||||
* A maintained fork of x-editable for Bootstrap 5 support.
|
||||
* https://git.24unix.net/tracer/x-editable
|
||||
* Copyright (c) 2025 Micha Espey; Licensed MIT */
|
||||
.editableform {
|
||||
margin-bottom: 0; /* overwrites bootstrap margin */
|
||||
}
|
||||
|
14
dist/bootstrap-editable/js/bootstrap-editable.js
vendored
14
dist/bootstrap-editable/js/bootstrap-editable.js
vendored
@@ -1,7 +1,7 @@
|
||||
/*! X-editable - v1.5.1
|
||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
|
||||
* http://github.com/vitalets/x-editable
|
||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
|
||||
/*! X-editable - v1.5.1_1
|
||||
* A maintained fork of x-editable for Bootstrap 5 support.
|
||||
* https://git.24unix.net/tracer/x-editable
|
||||
* Copyright (c) 2025 Micha Espey; Licensed MIT */
|
||||
/**
|
||||
Form with single input element, two buttons and two states: normal/loading.
|
||||
Applied as jQuery method to DIV tag (not to form tag!). This is because form can be in loading state when spinner shown.
|
||||
@@ -2610,7 +2610,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
}
|
||||
|
||||
//if allready loaded just call success
|
||||
if(this.options.sourceCache && $.isArray(this.sourceData)) {
|
||||
if(this.options.sourceCache && Array.isArray(this.sourceData)) {
|
||||
success.call(this);
|
||||
return;
|
||||
}
|
||||
@@ -2702,7 +2702,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
} else { //options as json/array
|
||||
this.sourceData = this.makeArray(source);
|
||||
|
||||
if($.isArray(this.sourceData)) {
|
||||
if(Array.isArray(this.sourceData)) {
|
||||
this.doPrepend();
|
||||
success.call(this);
|
||||
} else {
|
||||
@@ -2761,7 +2761,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
return null;
|
||||
}
|
||||
|
||||
if($.isArray(data)) { //array
|
||||
if(Array.isArray(data)) { //array
|
||||
/*
|
||||
function to iterate inside item of array if item is object.
|
||||
Caclulates count of keys in item and store in obj.
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
/*! X-editable - v1.5.1
|
||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
|
||||
* http://github.com/vitalets/x-editable
|
||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
|
||||
/*! X-editable - v1.5.1_1
|
||||
* A maintained fork of x-editable for Bootstrap 5 support.
|
||||
* https://git.24unix.net/tracer/x-editable
|
||||
* Copyright (c) 2025 Micha Espey; Licensed MIT */
|
||||
.editableform {
|
||||
margin-bottom: 0; /* overwrites bootstrap margin */
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/*! X-editable - v1.5.1
|
||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
|
||||
* http://github.com/vitalets/x-editable
|
||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
|
||||
/*! X-editable - v1.5.1_1
|
||||
* A maintained fork of x-editable for Bootstrap 5 support.
|
||||
* https://git.24unix.net/tracer/x-editable
|
||||
* Copyright (c) 2025 Micha Espey; Licensed MIT */
|
||||
/**
|
||||
Form with single input element, two buttons and two states: normal/loading.
|
||||
Applied as jQuery method to DIV tag (not to form tag!). This is because form can be in loading state when spinner shown.
|
||||
@@ -2610,7 +2610,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
}
|
||||
|
||||
//if allready loaded just call success
|
||||
if(this.options.sourceCache && $.isArray(this.sourceData)) {
|
||||
if(this.options.sourceCache && Array.isArray(this.sourceData)) {
|
||||
success.call(this);
|
||||
return;
|
||||
}
|
||||
@@ -2702,7 +2702,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
} else { //options as json/array
|
||||
this.sourceData = this.makeArray(source);
|
||||
|
||||
if($.isArray(this.sourceData)) {
|
||||
if(Array.isArray(this.sourceData)) {
|
||||
this.doPrepend();
|
||||
success.call(this);
|
||||
} else {
|
||||
@@ -2761,7 +2761,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
return null;
|
||||
}
|
||||
|
||||
if($.isArray(data)) { //array
|
||||
if(Array.isArray(data)) { //array
|
||||
/*
|
||||
function to iterate inside item of array if item is object.
|
||||
Caclulates count of keys in item and store in obj.
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
/*! X-editable - v1.5.1
|
||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
|
||||
* http://github.com/vitalets/x-editable
|
||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
|
||||
/*! X-editable - v1.5.1_1
|
||||
* A maintained fork of x-editable for Bootstrap 5 support.
|
||||
* https://git.24unix.net/tracer/x-editable
|
||||
* Copyright (c) 2025 Micha Espey; Licensed MIT */
|
||||
.editableform {
|
||||
margin-bottom: 0; /* overwrites bootstrap margin */
|
||||
}
|
||||
|
@@ -1 +0,0 @@
|
||||
!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
File diff suppressed because one or more lines are too long
1189
dist/bundle.js
vendored
1189
dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
8
dist/jquery-editable/css/jquery-editable.css
vendored
8
dist/jquery-editable/css/jquery-editable.css
vendored
@@ -1,7 +1,7 @@
|
||||
/*! X-editable - v1.5.1
|
||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
|
||||
* http://github.com/vitalets/x-editable
|
||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
|
||||
/*! X-editable - v1.5.1_1
|
||||
* A maintained fork of x-editable for Bootstrap 5 support.
|
||||
* https://git.24unix.net/tracer/x-editable
|
||||
* Copyright (c) 2025 Micha Espey; Licensed MIT */
|
||||
.editableform {
|
||||
margin-bottom: 0; /* overwrites bootstrap margin */
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/*! X-editable - v1.5.1
|
||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
|
||||
* http://github.com/vitalets/x-editable
|
||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
|
||||
/*! X-editable - v1.5.1_1
|
||||
* A maintained fork of x-editable for Bootstrap 5 support.
|
||||
* https://git.24unix.net/tracer/x-editable
|
||||
* Copyright (c) 2025 Micha Espey; Licensed MIT */
|
||||
/**
|
||||
Form with single input element, two buttons and two states: normal/loading.
|
||||
Applied as jQuery method to DIV tag (not to form tag!). This is because form can be in loading state when spinner shown.
|
||||
@@ -2610,7 +2610,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
}
|
||||
|
||||
//if allready loaded just call success
|
||||
if(this.options.sourceCache && $.isArray(this.sourceData)) {
|
||||
if(this.options.sourceCache && Array.isArray(this.sourceData)) {
|
||||
success.call(this);
|
||||
return;
|
||||
}
|
||||
@@ -2702,7 +2702,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
} else { //options as json/array
|
||||
this.sourceData = this.makeArray(source);
|
||||
|
||||
if($.isArray(this.sourceData)) {
|
||||
if(Array.isArray(this.sourceData)) {
|
||||
this.doPrepend();
|
||||
success.call(this);
|
||||
} else {
|
||||
@@ -2761,7 +2761,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
return null;
|
||||
}
|
||||
|
||||
if($.isArray(data)) { //array
|
||||
if(Array.isArray(data)) { //array
|
||||
/*
|
||||
function to iterate inside item of array if item is object.
|
||||
Caclulates count of keys in item and store in obj.
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
/*! X-editable - v1.5.1
|
||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
|
||||
* http://github.com/vitalets/x-editable
|
||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
|
||||
/*! X-editable - v1.5.1_1
|
||||
* A maintained fork of x-editable for Bootstrap 5 support.
|
||||
* https://git.24unix.net/tracer/x-editable
|
||||
* Copyright (c) 2025 Micha Espey; Licensed MIT */
|
||||
.editableform {
|
||||
margin-bottom: 0; /* overwrites bootstrap margin */
|
||||
}
|
||||
|
14
dist/jqueryui-editable/js/jqueryui-editable.js
vendored
14
dist/jqueryui-editable/js/jqueryui-editable.js
vendored
@@ -1,7 +1,7 @@
|
||||
/*! X-editable - v1.5.1
|
||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
|
||||
* http://github.com/vitalets/x-editable
|
||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
|
||||
/*! X-editable - v1.5.1_1
|
||||
* A maintained fork of x-editable for Bootstrap 5 support.
|
||||
* https://git.24unix.net/tracer/x-editable
|
||||
* Copyright (c) 2025 Micha Espey; Licensed MIT */
|
||||
/**
|
||||
Form with single input element, two buttons and two states: normal/loading.
|
||||
Applied as jQuery method to DIV tag (not to form tag!). This is because form can be in loading state when spinner shown.
|
||||
@@ -2610,7 +2610,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
}
|
||||
|
||||
//if allready loaded just call success
|
||||
if(this.options.sourceCache && $.isArray(this.sourceData)) {
|
||||
if(this.options.sourceCache && Array.isArray(this.sourceData)) {
|
||||
success.call(this);
|
||||
return;
|
||||
}
|
||||
@@ -2702,7 +2702,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
} else { //options as json/array
|
||||
this.sourceData = this.makeArray(source);
|
||||
|
||||
if($.isArray(this.sourceData)) {
|
||||
if(Array.isArray(this.sourceData)) {
|
||||
this.doPrepend();
|
||||
success.call(this);
|
||||
} else {
|
||||
@@ -2761,7 +2761,7 @@ List - abstract class for inputs that have source option loaded from js array or
|
||||
return null;
|
||||
}
|
||||
|
||||
if($.isArray(data)) { //array
|
||||
if(Array.isArray(data)) { //array
|
||||
/*
|
||||
function to iterate inside item of array if item is object.
|
||||
Caclulates count of keys in item and store in obj.
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user