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 
 | 
					/*! X-editable - v1.5.1_1 
 | 
				
			||||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
 | 
					* A maintained fork of x-editable for Bootstrap 5 support.
 | 
				
			||||||
* http://github.com/vitalets/x-editable
 | 
					* https://git.24unix.net/tracer/x-editable
 | 
				
			||||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
 | 
					* Copyright (c) 2025 Micha Espey; Licensed MIT */
 | 
				
			||||||
.editableform {
 | 
					.editableform {
 | 
				
			||||||
    margin-bottom: 0; /* overwrites bootstrap margin */
 | 
					    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 
 | 
					/*! X-editable - v1.5.1_1 
 | 
				
			||||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
 | 
					* A maintained fork of x-editable for Bootstrap 5 support.
 | 
				
			||||||
* http://github.com/vitalets/x-editable
 | 
					* https://git.24unix.net/tracer/x-editable
 | 
				
			||||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
 | 
					* Copyright (c) 2025 Micha Espey; Licensed MIT */
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
Form with single input element, two buttons and two states: normal/loading.
 | 
					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.
 | 
					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 allready loaded just call success
 | 
				
			||||||
            if(this.options.sourceCache && $.isArray(this.sourceData)) {
 | 
					            if(this.options.sourceCache && Array.isArray(this.sourceData)) {
 | 
				
			||||||
                success.call(this);
 | 
					                success.call(this);
 | 
				
			||||||
                return; 
 | 
					                return; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@@ -2702,7 +2702,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
            } else { //options as json/array
 | 
					            } else { //options as json/array
 | 
				
			||||||
                this.sourceData = this.makeArray(source);
 | 
					                this.sourceData = this.makeArray(source);
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
                if($.isArray(this.sourceData)) {
 | 
					                if(Array.isArray(this.sourceData)) {
 | 
				
			||||||
                    this.doPrepend();
 | 
					                    this.doPrepend();
 | 
				
			||||||
                    success.call(this);   
 | 
					                    success.call(this);   
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
@@ -2761,7 +2761,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
                return null; 
 | 
					                return null; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if($.isArray(data)) { //array
 | 
					            if(Array.isArray(data)) { //array
 | 
				
			||||||
                /* 
 | 
					                /* 
 | 
				
			||||||
                   function to iterate inside item of array if item is object.
 | 
					                   function to iterate inside item of array if item is object.
 | 
				
			||||||
                   Caclulates count of keys in item and store in obj. 
 | 
					                   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 
 | 
					/*! X-editable - v1.5.1_1 
 | 
				
			||||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
 | 
					* A maintained fork of x-editable for Bootstrap 5 support.
 | 
				
			||||||
* http://github.com/vitalets/x-editable
 | 
					* https://git.24unix.net/tracer/x-editable
 | 
				
			||||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
 | 
					* Copyright (c) 2025 Micha Espey; Licensed MIT */
 | 
				
			||||||
.editableform {
 | 
					.editableform {
 | 
				
			||||||
    margin-bottom: 0; /* overwrites bootstrap margin */
 | 
					    margin-bottom: 0; /* overwrites bootstrap margin */
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
/*! X-editable - v1.5.1 
 | 
					/*! X-editable - v1.5.1_1 
 | 
				
			||||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
 | 
					* A maintained fork of x-editable for Bootstrap 5 support.
 | 
				
			||||||
* http://github.com/vitalets/x-editable
 | 
					* https://git.24unix.net/tracer/x-editable
 | 
				
			||||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
 | 
					* Copyright (c) 2025 Micha Espey; Licensed MIT */
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
Form with single input element, two buttons and two states: normal/loading.
 | 
					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.
 | 
					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 allready loaded just call success
 | 
				
			||||||
            if(this.options.sourceCache && $.isArray(this.sourceData)) {
 | 
					            if(this.options.sourceCache && Array.isArray(this.sourceData)) {
 | 
				
			||||||
                success.call(this);
 | 
					                success.call(this);
 | 
				
			||||||
                return; 
 | 
					                return; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@@ -2702,7 +2702,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
            } else { //options as json/array
 | 
					            } else { //options as json/array
 | 
				
			||||||
                this.sourceData = this.makeArray(source);
 | 
					                this.sourceData = this.makeArray(source);
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
                if($.isArray(this.sourceData)) {
 | 
					                if(Array.isArray(this.sourceData)) {
 | 
				
			||||||
                    this.doPrepend();
 | 
					                    this.doPrepend();
 | 
				
			||||||
                    success.call(this);   
 | 
					                    success.call(this);   
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
@@ -2761,7 +2761,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
                return null; 
 | 
					                return null; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if($.isArray(data)) { //array
 | 
					            if(Array.isArray(data)) { //array
 | 
				
			||||||
                /* 
 | 
					                /* 
 | 
				
			||||||
                   function to iterate inside item of array if item is object.
 | 
					                   function to iterate inside item of array if item is object.
 | 
				
			||||||
                   Caclulates count of keys in item and store in obj. 
 | 
					                   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 
 | 
					/*! X-editable - v1.5.1_1 
 | 
				
			||||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
 | 
					* A maintained fork of x-editable for Bootstrap 5 support.
 | 
				
			||||||
* http://github.com/vitalets/x-editable
 | 
					* https://git.24unix.net/tracer/x-editable
 | 
				
			||||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
 | 
					* Copyright (c) 2025 Micha Espey; Licensed MIT */
 | 
				
			||||||
.editableform {
 | 
					.editableform {
 | 
				
			||||||
    margin-bottom: 0; /* overwrites bootstrap margin */
 | 
					    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 
 | 
					/*! X-editable - v1.5.1_1 
 | 
				
			||||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
 | 
					* A maintained fork of x-editable for Bootstrap 5 support.
 | 
				
			||||||
* http://github.com/vitalets/x-editable
 | 
					* https://git.24unix.net/tracer/x-editable
 | 
				
			||||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
 | 
					* Copyright (c) 2025 Micha Espey; Licensed MIT */
 | 
				
			||||||
.editableform {
 | 
					.editableform {
 | 
				
			||||||
    margin-bottom: 0; /* overwrites bootstrap margin */
 | 
					    margin-bottom: 0; /* overwrites bootstrap margin */
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
/*! X-editable - v1.5.1 
 | 
					/*! X-editable - v1.5.1_1 
 | 
				
			||||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
 | 
					* A maintained fork of x-editable for Bootstrap 5 support.
 | 
				
			||||||
* http://github.com/vitalets/x-editable
 | 
					* https://git.24unix.net/tracer/x-editable
 | 
				
			||||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
 | 
					* Copyright (c) 2025 Micha Espey; Licensed MIT */
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
Form with single input element, two buttons and two states: normal/loading.
 | 
					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.
 | 
					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 allready loaded just call success
 | 
				
			||||||
            if(this.options.sourceCache && $.isArray(this.sourceData)) {
 | 
					            if(this.options.sourceCache && Array.isArray(this.sourceData)) {
 | 
				
			||||||
                success.call(this);
 | 
					                success.call(this);
 | 
				
			||||||
                return; 
 | 
					                return; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@@ -2702,7 +2702,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
            } else { //options as json/array
 | 
					            } else { //options as json/array
 | 
				
			||||||
                this.sourceData = this.makeArray(source);
 | 
					                this.sourceData = this.makeArray(source);
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
                if($.isArray(this.sourceData)) {
 | 
					                if(Array.isArray(this.sourceData)) {
 | 
				
			||||||
                    this.doPrepend();
 | 
					                    this.doPrepend();
 | 
				
			||||||
                    success.call(this);   
 | 
					                    success.call(this);   
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
@@ -2761,7 +2761,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
                return null; 
 | 
					                return null; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if($.isArray(data)) { //array
 | 
					            if(Array.isArray(data)) { //array
 | 
				
			||||||
                /* 
 | 
					                /* 
 | 
				
			||||||
                   function to iterate inside item of array if item is object.
 | 
					                   function to iterate inside item of array if item is object.
 | 
				
			||||||
                   Caclulates count of keys in item and store in obj. 
 | 
					                   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 
 | 
					/*! X-editable - v1.5.1_1 
 | 
				
			||||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
 | 
					* A maintained fork of x-editable for Bootstrap 5 support.
 | 
				
			||||||
* http://github.com/vitalets/x-editable
 | 
					* https://git.24unix.net/tracer/x-editable
 | 
				
			||||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
 | 
					* Copyright (c) 2025 Micha Espey; Licensed MIT */
 | 
				
			||||||
.editableform {
 | 
					.editableform {
 | 
				
			||||||
    margin-bottom: 0; /* overwrites bootstrap margin */
 | 
					    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 
 | 
					/*! X-editable - v1.5.1_1 
 | 
				
			||||||
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
 | 
					* A maintained fork of x-editable for Bootstrap 5 support.
 | 
				
			||||||
* http://github.com/vitalets/x-editable
 | 
					* https://git.24unix.net/tracer/x-editable
 | 
				
			||||||
* Copyright (c) 2025 Vitaliy Potapov; Licensed MIT */
 | 
					* Copyright (c) 2025 Micha Espey; Licensed MIT */
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
Form with single input element, two buttons and two states: normal/loading.
 | 
					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.
 | 
					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 allready loaded just call success
 | 
				
			||||||
            if(this.options.sourceCache && $.isArray(this.sourceData)) {
 | 
					            if(this.options.sourceCache && Array.isArray(this.sourceData)) {
 | 
				
			||||||
                success.call(this);
 | 
					                success.call(this);
 | 
				
			||||||
                return; 
 | 
					                return; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@@ -2702,7 +2702,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
            } else { //options as json/array
 | 
					            } else { //options as json/array
 | 
				
			||||||
                this.sourceData = this.makeArray(source);
 | 
					                this.sourceData = this.makeArray(source);
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
                if($.isArray(this.sourceData)) {
 | 
					                if(Array.isArray(this.sourceData)) {
 | 
				
			||||||
                    this.doPrepend();
 | 
					                    this.doPrepend();
 | 
				
			||||||
                    success.call(this);   
 | 
					                    success.call(this);   
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
@@ -2761,7 +2761,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
                return null; 
 | 
					                return null; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if($.isArray(data)) { //array
 | 
					            if(Array.isArray(data)) { //array
 | 
				
			||||||
                /* 
 | 
					                /* 
 | 
				
			||||||
                   function to iterate inside item of array if item is object.
 | 
					                   function to iterate inside item of array if item is object.
 | 
				
			||||||
                   Caclulates count of keys in item and store in obj. 
 | 
					                   Caclulates count of keys in item and store in obj. 
 | 
				
			||||||
 
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -2,7 +2,7 @@
 | 
				
			|||||||
  "name": "@24unix/x-editable",
 | 
					  "name": "@24unix/x-editable",
 | 
				
			||||||
  "title": "X-editable",
 | 
					  "title": "X-editable",
 | 
				
			||||||
  "description": "A maintained fork of x-editable for Bootstrap 5 support.",
 | 
					  "description": "A maintained fork of x-editable for Bootstrap 5 support.",
 | 
				
			||||||
  "version": "1.5.1",
 | 
					  "version": "1.5.1_1",
 | 
				
			||||||
  "homepage": "https://git.24unix.net/tracer/x-editable",
 | 
					  "homepage": "https://git.24unix.net/tracer/x-editable",
 | 
				
			||||||
  "author": {
 | 
					  "author": {
 | 
				
			||||||
    "name": "Micha Espey",
 | 
					    "name": "Micha Espey",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -70,7 +70,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
            }            
 | 
					            }            
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            //if allready loaded just call success
 | 
					            //if allready loaded just call success
 | 
				
			||||||
            if(this.options.sourceCache && $.isArray(this.sourceData)) {
 | 
					            if(this.options.sourceCache && Array.isArray(this.sourceData)) {
 | 
				
			||||||
                success.call(this);
 | 
					                success.call(this);
 | 
				
			||||||
                return; 
 | 
					                return; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@@ -162,7 +162,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
            } else { //options as json/array
 | 
					            } else { //options as json/array
 | 
				
			||||||
                this.sourceData = this.makeArray(source);
 | 
					                this.sourceData = this.makeArray(source);
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
                if($.isArray(this.sourceData)) {
 | 
					                if(Array.isArray(this.sourceData)) {
 | 
				
			||||||
                    this.doPrepend();
 | 
					                    this.doPrepend();
 | 
				
			||||||
                    success.call(this);   
 | 
					                    success.call(this);   
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
@@ -221,7 +221,7 @@ List - abstract class for inputs that have source option loaded from js array or
 | 
				
			|||||||
                return null; 
 | 
					                return null; 
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if($.isArray(data)) { //array
 | 
					            if(Array.isArray(data)) { //array
 | 
				
			||||||
                /* 
 | 
					                /* 
 | 
				
			||||||
                   function to iterate inside item of array if item is object.
 | 
					                   function to iterate inside item of array if item is object.
 | 
				
			||||||
                   Caclulates count of keys in item and store in obj. 
 | 
					                   Caclulates count of keys in item and store in obj. 
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								src/inputs/select2/lib/select2.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								src/inputs/select2/lib/select2.js
									
									
									
									
										vendored
									
									
								
							@@ -476,7 +476,7 @@ the specific language governing permissions and limitations under the Apache Lic
 | 
				
			|||||||
            tmp,
 | 
					            tmp,
 | 
				
			||||||
            text = function (item) { return ""+item.text; }; // function used to retrieve the text portion of a data item that is matched against the search
 | 
					            text = function (item) { return ""+item.text; }; // function used to retrieve the text portion of a data item that is matched against the search
 | 
				
			||||||
 | 
					
 | 
				
			||||||
         if ($.isArray(data)) {
 | 
					         if (Array.isArray(data)) {
 | 
				
			||||||
            tmp = data;
 | 
					            tmp = data;
 | 
				
			||||||
            data = { results: tmp };
 | 
					            data = { results: tmp };
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -909,7 +909,7 @@ the specific language governing permissions and limitations under the Apache Lic
 | 
				
			|||||||
                opts.id = function (e) { return e[idKey]; };
 | 
					                opts.id = function (e) { return e[idKey]; };
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if ($.isArray(opts.element.data("select2Tags"))) {
 | 
					            if (Array.isArray(opts.element.data("select2Tags"))) {
 | 
				
			||||||
                if ("tags" in opts) {
 | 
					                if ("tags" in opts) {
 | 
				
			||||||
                    throw "tags specified as both an attribute 'data-select2-tags' and in options of Select2 " + opts.element.attr("id");
 | 
					                    throw "tags specified as both an attribute 'data-select2-tags' and in options of Select2 " + opts.element.attr("id");
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
@@ -1586,7 +1586,7 @@ the specific language governing permissions and limitations under the Apache Lic
 | 
				
			|||||||
            var maxSelSize = this.getMaximumSelectionSize();
 | 
					            var maxSelSize = this.getMaximumSelectionSize();
 | 
				
			||||||
            if (maxSelSize >=1) {
 | 
					            if (maxSelSize >=1) {
 | 
				
			||||||
                data = this.data();
 | 
					                data = this.data();
 | 
				
			||||||
                if ($.isArray(data) && data.length >= maxSelSize && checkFormatter(opts.formatSelectionTooBig, "formatSelectionTooBig")) {
 | 
					                if (Array.isArray(data) && data.length >= maxSelSize && checkFormatter(opts.formatSelectionTooBig, "formatSelectionTooBig")) {
 | 
				
			||||||
                    render("<li class='select2-selection-limit'>" + opts.formatSelectionTooBig(maxSelSize) + "</li>");
 | 
					                    render("<li class='select2-selection-limit'>" + opts.formatSelectionTooBig(maxSelSize) + "</li>");
 | 
				
			||||||
                    return;
 | 
					                    return;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,28 +1,46 @@
 | 
				
			|||||||
const path = require('path');
 | 
					const path = require("path");
 | 
				
			||||||
const webpack = require('webpack');
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					module.exports = [
 | 
				
			||||||
module.exports = {
 | 
					    // CommonJS Build
 | 
				
			||||||
    entry: './test.js',
 | 
					    {
 | 
				
			||||||
 | 
					        entry: "./src/editable-form/editable-form-bootstrap5.js",
 | 
				
			||||||
        output: {
 | 
					        output: {
 | 
				
			||||||
        filename: 'bundle.js',
 | 
					            path: path.resolve(__dirname, "dist/bootstrap5-editable/js"),
 | 
				
			||||||
        path: path.resolve(__dirname, 'dist')
 | 
					            filename: "bootstrap-editable.js",
 | 
				
			||||||
 | 
					            library: {
 | 
				
			||||||
 | 
					                type: "commonjs2"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        module: {
 | 
					        module: {
 | 
				
			||||||
            rules: [
 | 
					            rules: [
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                test: /\.css$/,
 | 
					                    test: /\.css$/i,
 | 
				
			||||||
                use: ['style-loader', 'css-loader']
 | 
					                    use: ["style-loader", "css-loader"],
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            ]
 | 
					            ]
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    mode: 'development',
 | 
					
 | 
				
			||||||
    plugins: [
 | 
					    // ES Module Build
 | 
				
			||||||
        new webpack.ProvidePlugin({
 | 
					    {
 | 
				
			||||||
            $: 'jquery',
 | 
					        entry: "./src/editable-form/editable-form-bootstrap5.js",
 | 
				
			||||||
            jQuery: 'jquery',
 | 
					        output: {
 | 
				
			||||||
            'window.jQuery': 'jquery',
 | 
					            path: path.resolve(__dirname, "dist/bootstrap5-editable/js"),
 | 
				
			||||||
            'window.$': 'jquery'
 | 
					            filename: "bootstrap-editable.esm.js",
 | 
				
			||||||
        })
 | 
					            library: {
 | 
				
			||||||
 | 
					                type: "module"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        experiments: {
 | 
				
			||||||
 | 
					            outputModule: true, // Ensures Webpack treats this as an ES module
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        module: {
 | 
				
			||||||
 | 
					            rules: [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    test: /\.css$/i,
 | 
				
			||||||
 | 
					                    use: ["style-loader", "css-loader"],
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            ]
 | 
					            ]
 | 
				
			||||||
};
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
		Reference in New Issue
	
	Block a user