Skip to content

A free open source IT asset/license management system

Updated assets

snipe174d23a42aac
diff --git a/package-lock.json b/package-lock.json
index 05d2f032f7..5b7b74c72a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2955,9 +2955,9 @@
"integrity": "sha1-EQPWvADPv6jPyaJZmrUYxVZD2j8="
},
"bootstrap-table": {
- "version": "1.18.3",
- "resolved": "https://registry.npmjs.org/bootstrap-table/-/bootstrap-table-1.18.3.tgz",
- "integrity": "sha512-/eFLkldDlNFi37qC/d9THfRVxMUGD34E8fQBFtXJLDHLBOVKWDTq7BV+udoP7k3FfCEyhM1jWQnQ0rMQdBv//w=="
+ "version": "1.19.1",
+ "resolved": "https://registry.npmjs.org/bootstrap-table/-/bootstrap-table-1.19.1.tgz",
+ "integrity": "sha512-WvV+l1AI/C+zThaKmfHmi/IuayVNB0qdFyEhFx1jyZhO0oLtNJNANkCR3rvJf6Dkh72dsLElxpE/bzK9seEQLA=="
},
"brace-expansion": {
"version": "1.1.11",
@@ -15881,9 +15881,12 @@
"integrity": "sha1-G+i3twTdOFcVJwiu+x1KSzpp+zM="
},
"jquery-ui": {
- "version": "1.12.1",
- "resolved": "https://registry.npmjs.org/jquery-ui/-/jquery-ui-1.12.1.tgz",
- "integrity": "sha1-vLQEXI3QU5wTS8FIjN0+dop6nlE="
+ "version": "1.13.0",
+ "resolved": "https://registry.npmjs.org/jquery-ui/-/jquery-ui-1.13.0.tgz",
+ "integrity": "sha512-Osf7ECXNTYHtKBkn9xzbIf9kifNrBhfywFEKxOeB/OVctVmLlouV9mfc2qXCp6uyO4Pn72PXKOnj09qXetopCw==",
+ "requires": {
+ "jquery": ">=1.8.0 <4.0.0"
+ }
},
"jquery-ui-bundle": {
"version": "1.12.1",
diff --git a/package.json b/package.json
index 0437ad44ef..bbb2b879fa 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,7 @@
"imagemin": "^5.3.1",
"jquery-form-validator": "^2.3.79",
"jquery-slimscroll": "^1.3.8",
- "jquery-ui": "^1.13.0",
+ "jquery-ui": "^1.13.0",
"jquery-ui-bundle": "^1.12.1",
"jquery.iframe-transport": "^1.0.0",
"less": "^4.1.1",
diff --git a/public/css/dist/all.css b/public/css/dist/all.css
index 269ae29c62..0c6cf67506 100644
--- a/public/css/dist/all.css
+++ b/public/css/dist/all.css
@@ -19168,7 +19168,7 @@ a.ui-button:active,
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVra28tbGlnaHRib3guY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGVBQ0UsOEJBQXlCLEFBQXpCLHVCQUF5QixBQUN6QixzQkFBb0IsQUFBcEIsbUJBQW9CLEFBQ3BCLHFCQUF3QixBQUF4Qix1QkFBd0IsQUFDeEIseUJBQTZCLENBQzlCLEFBQ0QseUJBQ0UsaUJBQW1CLENBQ3BCLEFBQ0QsZ0RBQ0Usa0JBQW1CLEFBQ25CLE1BQU8sQUFDUCxPQUFRLEFBQ1IsU0FBVSxBQUNWLFFBQVMsQUFDVCxVQUFZLENBQ2IsQUFDRCxzQkFDRSxXQUFZLEFBQ1osV0FBYSxDQUNkLEFBQ0QsMkJBQ0UsVUFBYSxBQUNiLGtCQUFtQixBQUNuQixNQUFPLEFBQ1AsT0FBUSxBQUNSLFdBQVksQUFDWixZQUFhLEFBQ2Isb0JBQWMsQUFBZCxZQUFjLENBQ2YsQUFDRCw2QkFDRSxXQUFRLEFBQVIsT0FBUSxBQUNSLG9CQUFjLEFBQWQsYUFBYyxBQUNkLHNCQUFvQixBQUFwQixtQkFBb0IsQUFDcEIsVUFBVyxBQUNYLHVCQUF5QixBQUN6QixXQUFZLEFBQ1osZUFBZ0IsQUFDaEIsU0FBYSxDQUNkLEFBQ0QsK0JBQ0Usb0JBQWEsQUFBYixXQUFhLENBQ2QsQUFDRCxvQ0FDRSxZQUFjLENBQ2YsQUFDRCxrQ0FDRSxjQUFnQixDQUNqQixBQUNELDZDQUNFLGdCQUFrQixDQUNuQixBQUNELG1DQUNFLG9CQUFzQixDQUN2QixBQUNELG1DQUNFLFlBQWMsQ0FDZixBQUNELHNDQUNFLGVBQWdCLEFBQ2hCLGlCQUFtQixDQUNwQixBQUNELHVCQUNFLFVBQVcsQUFDWCxvQkFBc0IsQ0FDdkIsQUFDRCw2QkFDRSxZQUFjLENBQ2YsQUFDRCw2QkFDRSxlQUFpQixDQUNsQixBQUNELHNCQUNFLGtCQUFtQixBQUNuQixNQUFPLEFBQ1AsT0FBUSxBQUNSLFNBQVUsQUFDVixRQUFTLEFBQ1QsV0FBWSxBQUNaLG9CQUFjLEFBQWQsYUFBYyxBQUVkLDBCQUF1QixBQUF2QixzQkFBdUIsQUFFdkIscUJBQXdCLEFBQXhCLHVCQUF3QixBQUV4QixzQkFBb0IsQUFBcEIsa0JBQW9CLENBQ3JCLEFBQ0QsMEJBQ0UsV0FBWSxBQUNaLFlBQWEsQUFDYixrQkFBbUIsQUFDbkIsaUJBQW1CLENBQ3BCLEFBQ0QsOEJBQ0UsV0FBWSxBQUNaLFlBQWEsQUFDYixrQkFBbUIsQUFDbkIsc0JBQXVCLEFBQ3ZCLFdBQWEsQUFDYixrQkFBbUIsQUFDbkIsTUFBTyxBQUNQLE9BQVEsQUFDUixtQ0FBNkMsQ0FDOUMsQUFDRCx5Q0FDRSxtQkFBcUIsQ0FDdEIsQUFDRCw0Q0FDRSxxQkFBdUIsQ0FDeEIsQUFVRCxhQUNFLE1BRUUsbUJBQW9CLEFBQ3BCLDBCQUE0QixDQUM3QixBQUNELElBQ0UsbUJBQW9CLEFBQ3BCLDBCQUE0QixDQUM3QixDQUNGIiwiZmlsZSI6ImVra28tbGlnaHRib3guY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmVra28tbGlnaHRib3gge1xuICBkaXNwbGF5OiBmbGV4ICFpbXBvcnRhbnQ7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBwYWRkaW5nLXJpZ2h0OiAwcHghaW1wb3J0YW50O1xufVxuLmVra28tbGlnaHRib3gtY29udGFpbmVyIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuLmVra28tbGlnaHRib3gtY29udGFpbmVyID4gZGl2LmVra28tbGlnaHRib3gtaXRlbSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICBib3R0b206IDA7XG4gIHJpZ2h0OiAwO1xuICB3aWR0aDogMTAwJTtcbn1cbi5la2tvLWxpZ2h0Ym94IGlmcmFtZSB7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IDEwMCU7XG59XG4uZWtrby1saWdodGJveC1uYXYtb3ZlcmxheSB7XG4gIHotaW5kZXg6IDEwMDtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IDEwMCU7XG4gIGRpc3BsYXk6IGZsZXg7XG59XG4uZWtrby1saWdodGJveC1uYXYtb3ZlcmxheSBhIHtcbiAgZmxleDogMTtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgb3BhY2l0eTogMDtcbiAgdHJhbnNpdGlvbjogb3BhY2l0eSAwLjVzO1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAzMHB4O1xuICB6LWluZGV4OiAxMDA7XG59XG4uZWtrby1saWdodGJveC1uYXYtb3ZlcmxheSBhID4gKiB7XG4gIGZsZXgtZ3JvdzogMTtcbn1cbi5la2tvLWxpZ2h0Ym94LW5hdi1vdmVybGF5IGEgPiAqOmZvY3VzIHtcbiAgb3V0bGluZTogbm9uZTtcbn1cbi5la2tvLWxpZ2h0Ym94LW5hdi1vdmVybGF5IGEgc3BhbiB7XG4gIHBhZGRpbmc6IDAgMzBweDtcbn1cbi5la2tvLWxpZ2h0Ym94LW5hdi1vdmVybGF5IGE6bGFzdC1jaGlsZCBzcGFuIHtcbiAgdGV4dC1hbGlnbjogcmlnaHQ7XG59XG4uZWtrby1saWdodGJveC1uYXYtb3ZlcmxheSBhOmhvdmVyIHtcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xufVxuLmVra28tbGlnaHRib3gtbmF2LW92ZXJsYXkgYTpmb2N1cyB7XG4gIG91dGxpbmU6IG5vbmU7XG59XG4uZWtrby1saWdodGJveC1uYXYtb3ZlcmxheSBhLmRpc2FibGVkIHtcbiAgY3Vyc29yOiBkZWZhdWx0O1xuICB2aXNpYmlsaXR5OiBoaWRkZW47XG59XG4uZWtrby1saWdodGJveCBhOmhvdmVyIHtcbiAgb3BhY2l0eTogMTtcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xufVxuLmVra28tbGlnaHRib3ggLm1vZGFsLWRpYWxvZyB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG4uZWtrby1saWdodGJveCAubW9kYWwtZm9vdGVyIHtcbiAgdGV4dC1hbGlnbjogbGVmdDtcbn1cbi5la2tvLWxpZ2h0Ym94LWxvYWRlciB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICBib3R0b206IDA7XG4gIHJpZ2h0OiAwO1xuICB3aWR0aDogMTAwJTtcbiAgZGlzcGxheTogZmxleDtcbiAgLyogZXN0YWJsaXNoIGZsZXggY29udGFpbmVyICovXG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gIC8qIG1ha2UgbWFpbiBheGlzIHZlcnRpY2FsICovXG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAvKiBjZW50ZXIgaXRlbXMgdmVydGljYWxseSwgaW4gdGhpcyBjYXNlICovXG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG59XG4uZWtrby1saWdodGJveC1sb2FkZXIgPiBkaXYge1xuICB3aWR0aDogNDBweDtcbiAgaGVpZ2h0OiA0MHB4O1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cbi5la2tvLWxpZ2h0Ym94LWxvYWRlciA+IGRpdiA+IGRpdiB7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IDEwMCU7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgb3BhY2l0eTogMC42O1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMDtcbiAgbGVmdDogMDtcbiAgYW5pbWF0aW9uOiBzay1ib3VuY2UgMnMgaW5maW5pdGUgZWFzZS1pbi1vdXQ7XG59XG4uZWtrby1saWdodGJveC1sb2FkZXIgPiBkaXYgPiBkaXY6bGFzdC1jaGlsZCB7XG4gIGFuaW1hdGlvbi1kZWxheTogLTFzO1xufVxuLm1vZGFsLWRpYWxvZyAuZWtrby1saWdodGJveC1sb2FkZXIgPiBkaXYgPiBkaXYge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzMzO1xufVxuQC13ZWJraXQta2V5ZnJhbWVzIHNrLWJvdW5jZSB7XG4gIDAlLFxuICAxMDAlIHtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMCk7XG4gIH1cbiAgNTAlIHtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMSk7XG4gIH1cbn1cbkBrZXlmcmFtZXMgc2stYm91bmNlIHtcbiAgMCUsXG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogc2NhbGUoMCk7XG4gICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDApO1xuICB9XG4gIDUwJSB7XG4gICAgdHJhbnNmb3JtOiBzY2FsZSgxKTtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMSk7XG4gIH1cbn1cbiJdfQ== */
/**
* @author zhixin wen <[email protected]>
- * version: 1.18.3
+ * version: 1.19.1
* https://github.com/wenzhixin/bootstrap-table/
*/
.bootstrap-table .fixed-table-toolbar::after {
@@ -19371,6 +19371,7 @@ a.ui-button:active,
position: absolute;
bottom: 0;
width: 100%;
+ max-width: 100%;
z-index: 1000;
transition: visibility 0s, opacity 0.15s ease-in-out;
opacity: 0;
diff --git a/public/css/dist/bootstrap-table.css b/public/css/dist/bootstrap-table.css
index c6485ceb43..9ea548eaff 100644
--- a/public/css/dist/bootstrap-table.css
+++ b/public/css/dist/bootstrap-table.css
@@ -1,6 +1,6 @@
/**
* @author zhixin wen <[email protected]>
- * version: 1.18.3
+ * version: 1.19.1
* https://github.com/wenzhixin/bootstrap-table/
*/
.bootstrap-table .fixed-table-toolbar::after {
@@ -203,6 +203,7 @@
position: absolute;
bottom: 0;
width: 100%;
+ max-width: 100%;
z-index: 1000;
transition: visibility 0s, opacity 0.15s ease-in-out;
opacity: 0;
diff --git a/public/js/build/app.js b/public/js/build/app.js
index 4bb7869013..2e9db85e5c 100644
--- a/public/js/build/app.js
+++ b/public/js/build/app.js
@@ -334,6 +334,9 @@ __webpack_require__.r(__webpack_exports__);
}, {
id: 'model_number',
text: "Model Number"
+ }, {
+ id: 'min_amt',
+ text: "Minimum Quantity"
}],
licenses: [{
id: 'asset_tag',
@@ -427,6 +430,7 @@ __webpack_require__.r(__webpack_exports__);
return this.columnOptions.general.concat(this.columnOptions.accessories).sort(sorter);
case 'consumable':
+ console.log('Returned consumable');
return this.columnOptions.general.concat(this.columnOptions.consumables).sort(sorter);
case 'license':
@@ -6317,6 +6321,8 @@ if (typeof jQuery === 'undefined') {
/***/ ((module, exports, __webpack_require__) => {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;( function( factory ) {
+ "use strict";
+
if ( true ) {
// AMD. Register as an anonymous module.
@@ -6325,13 +6331,14 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
-} ( function( $ ) {
+} )( function( $ ) {
+"use strict";
$.ui = $.ui || {};
-return $.ui.version = "1.12.1";
+return $.ui.version = "1.13.0";
-} ) );
+} );
/***/ }),
@@ -6343,7 +6350,7 @@ return $.ui.version = "1.12.1";
/***/ ((module, exports, __webpack_require__) => {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- * jQuery UI Widget 1.12.1
+ * jQuery UI Widget 1.13.0
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -6358,6 +6365,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
//>>demos: http://jqueryui.com/widget/
( function( factory ) {
+ "use strict";
+
if ( true ) {
// AMD. Register as an anonymous module.
@@ -6366,25 +6375,23 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
var widgetUuid = 0;
+var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
var widgetSlice = Array.prototype.slice;
$.cleanData = ( function( orig ) {
return function( elems ) {
var events, elem, i;
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
- try {
-
- // Only trigger remove when necessary to save time
- events = $._data( elem, "events" );
- if ( events && events.remove ) {
- $( elem ).triggerHandler( "remove" );
- }
- // Http://bugs.jquery.com/ticket/8235
- } catch ( e ) {}
+ // Only trigger remove when necessary to save time
+ events = $._data( elem, "events" );
+ if ( events && events.remove ) {
+ $( elem ).triggerHandler( "remove" );
+ }
}
orig( elems );
};
@@ -6406,12 +6413,12 @@ $.widget = function( name, base, prototype ) {
base = $.Widget;
}
- if ( $.isArray( prototype ) ) {
+ if ( Array.isArray( prototype ) ) {
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
}
// Create selector for plugin
- $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
+ $.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) {
return !!$.data( elem, fullName );
};
@@ -6451,7 +6458,7 @@ $.widget = function( name, base, prototype ) {
// inheriting from
basePrototype.options = $.widget.extend( {}, basePrototype.options );
$.each( prototype, function( prop, value ) {
- if ( !$.isFunction( value ) ) {
+ if ( typeof value !== "function" ) {
proxiedPrototype[ prop ] = value;
return;
}
@@ -6530,7 +6537,7 @@ $.widget.extend = function( target ) {
for ( ; inputIndex < inputLength; inputIndex++ ) {
for ( key in input[ inputIndex ] ) {
value = input[ inputIndex ][ key ];
- if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
+ if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) {
// Clone objects
if ( $.isPlainObject( value ) ) {
@@ -6579,7 +6586,8 @@ $.widget.bridge = function( name, object ) {
"attempted to call method '" + options + "'" );
}
- if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) {
+ if ( typeof instance[ options ] !== "function" ||
+ options.charAt( 0 ) === "_" ) {
return $.error( "no such method '" + options + "' for " + name +
" widget instance" );
}
@@ -6840,12 +6848,30 @@ $.Widget.prototype = {
classes: this.options.classes || {}
}, options );
+ function bindRemoveEvent() {
+ options.element.each( function( _, element ) {
+ var isTracked = $.map( that.classesElementLookup, function( elements ) {
+ return elements;
+ } )
+ .some( function( elements ) {
+ return elements.is( element );
+ } );
+
+ if ( !isTracked ) {
+ that._on( $( element ), {
+ remove: "_untrackClassesElement"
+ } );
+ }
+ } );
+ }
+
function processClassString( classes, checkOption ) {
var current, i;
for ( i = 0; i < classes.length; i++ ) {
current = that.classesElementLookup[ classes[ i ] ] || $();
if ( options.add ) {
- current = $( $.unique( current.get().concat( options.element.get() ) ) );
+ bindRemoveEvent();
+ current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) );
} else {
current = $( current.not( options.element ).get() );
}
@@ -6857,10 +6883,6 @@ $.Widget.prototype = {
}
}
- this._on( options.element, {
- "remove": "_untrackClassesElement"
- } );
-
if ( options.keys ) {
processClassString( options.keys.match( /\S+/g ) || [], true );
}
@@ -6878,6 +6900,8 @@ $.Widget.prototype = {
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
}
} );
+
+ this._off( $( event.target ) );
},
_removeClass: function( element, keys, extra ) {
@@ -6958,7 +6982,7 @@ $.Widget.prototype = {
_off: function( element, eventName ) {
eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
this.eventNamespace;
- element.off( eventName ).off( eventName );
+ element.off( eventName );
// Clear the stack to avoid memory leaks (#10056)
this.bindings = $( this.bindings.not( element ).get() );
@@ -7024,7 +7048,7 @@ $.Widget.prototype = {
}
this.element.trigger( event, data );
- return !( $.isFunction( callback ) &&
+ return !( typeof callback === "function" &&
callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
event.isDefaultPrevented() );
}
@@ -7046,6 +7070,8 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
options = options || {};
if ( typeof options === "number" ) {
options = { duration: options };
+ } else if ( options === true ) {
+ options = {};
}
hasOptions = !$.isEmptyObject( options );
@@ -7073,7 +7099,7 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
return $.widget;
-} ) );
+} );
/***/ }),
diff --git a/public/js/dist/all.js b/public/js/dist/all.js
index 35aa39b9dd..a677c9f013 100644
--- a/public/js/dist/all.js
+++ b/public/js/dist/all.js
@@ -59472,6 +59472,9 @@ __webpack_require__.r(__webpack_exports__);
}, {
id: 'model_number',
text: "Model Number"
+ }, {
+ id: 'min_amt',
+ text: "Minimum Quantity"
}],
licenses: [{
id: 'asset_tag',
@@ -59565,6 +59568,7 @@ __webpack_require__.r(__webpack_exports__);
return this.columnOptions.general.concat(this.columnOptions.accessories).sort(sorter);
case 'consumable':
+ console.log('Returned consumable');
return this.columnOptions.general.concat(this.columnOptions.consumables).sort(sorter);
case 'license':
@@ -65455,6 +65459,8 @@ if (typeof jQuery === 'undefined') {
/***/ ((module, exports, __webpack_require__) => {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;( function( factory ) {
+ "use strict";
+
if ( true ) {
// AMD. Register as an anonymous module.
@@ -65463,13 +65469,14 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
-} ( function( $ ) {
+} )( function( $ ) {
+"use strict";
$.ui = $.ui || {};
-return $.ui.version = "1.12.1";
+return $.ui.version = "1.13.0";
-} ) );
+} );
/***/ }),
@@ -65481,7 +65488,7 @@ return $.ui.version = "1.12.1";
/***/ ((module, exports, __webpack_require__) => {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
- * jQuery UI Widget 1.12.1
+ * jQuery UI Widget 1.13.0
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
@@ -65496,6 +65503,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
//>>demos: http://jqueryui.com/widget/
( function( factory ) {
+ "use strict";
+
if ( true ) {
// AMD. Register as an anonymous module.
@@ -65504,25 +65513,23 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
-}( function( $ ) {
+} )( function( $ ) {
+"use strict";
var widgetUuid = 0;
+var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
var widgetSlice = Array.prototype.slice;
$.cleanData = ( function( orig ) {
return function( elems ) {
var events, elem, i;
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
- try {
- // Only trigger remove when necessary to save time
- events = $._data( elem, "events" );
- if ( events && events.remove ) {
- $( elem ).triggerHandler( "remove" );
- }
-
- // Http://bugs.jquery.com/ticket/8235
- } catch ( e ) {}
+ // Only trigger remove when necessary to save time
+ events = $._data( elem, "events" );
+ if ( events && events.remove ) {
+ $( elem ).triggerHandler( "remove" );
+ }
}
orig( elems );
};
@@ -65544,12 +65551,12 @@ $.widget = function( name, base, prototype ) {
base = $.Widget;
}
- if ( $.isArray( prototype ) ) {
+ if ( Array.isArray( prototype ) ) {
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
}
// Create selector for plugin
- $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
+ $.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) {
return !!$.data( elem, fullName );
};
@@ -65589,7 +65596,7 @@ $.widget = function( name, base, prototype ) {
// inheriting from
basePrototype.options = $.widget.extend( {}, basePrototype.options );
$.each( prototype, function( prop, value ) {
- if ( !$.isFunction( value ) ) {
+ if ( typeof value !== "function" ) {
proxiedPrototype[ prop ] = value;
return;
}
@@ -65668,7 +65675,7 @@ $.widget.extend = function( target ) {
for ( ; inputIndex < inputLength; inputIndex++ ) {
for ( key in input[ inputIndex ] ) {
value = input[ inputIndex ][ key ];
- if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
+ if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) {
// Clone objects
if ( $.isPlainObject( value ) ) {
@@ -65717,7 +65724,8 @@ $.widget.bridge = function( name, object ) {
"attempted to call method '" + options + "'" );
}
- if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) {
+ if ( typeof instance[ options ] !== "function" ||
+ options.charAt( 0 ) === "_" ) {
return $.error( "no such method '" + options + "' for " + name +
" widget instance" );
}
@@ -65978,12 +65986,30 @@ $.Widget.prototype = {
classes: this.options.classes || {}
}, options );
+ function bindRemoveEvent() {
+ options.element.each( function( _, element ) {
+ var isTracked = $.map( that.classesElementLookup, function( elements ) {
+ return elements;
+ } )
+ .some( function( elements ) {
+ return elements.is( element );
+ } );
+
+ if ( !isTracked ) {
+ that._on( $( element ), {
+ remove: "_untrackClassesElement"
+ } );
+ }
+ } );
+ }
+
function processClassString( classes, checkOption ) {
var current, i;
for ( i = 0; i < classes.length; i++ ) {
current = that.classesElementLookup[ classes[ i ] ] || $();
if ( options.add ) {
- current = $( $.unique( current.get().concat( options.element.get() ) ) );
+ bindRemoveEvent();
+ current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) );
} else {
current = $( current.not( options.element ).get() );
}
@@ -65995,10 +66021,6 @@ $.Widget.prototype = {
}
}
- this._on( options.element, {
- "remove": "_untrackClassesElement"
- } );
-
if ( options.keys ) {
processClassString( options.keys.match( /\S+/g ) || [], true );
}
@@ -66016,6 +66038,8 @@ $.Widget.prototype = {
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
}
} );
+
+ this._off( $( event.target ) );
},
_removeClass: function( element, keys, extra ) {
@@ -66096,7 +66120,7 @@ $.Widget.prototype = {
_off: function( element, eventName ) {
eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
this.eventNamespace;
- element.off( eventName ).off( eventName );
+ element.off( eventName );
// Clear the stack to avoid memory leaks (#10056)
this.bindings = $( this.bindings.not( element ).get() );
@@ -66162,7 +66186,7 @@ $.Widget.prototype = {
}
this.element.trigger( event, data );
- return !( $.isFunction( callback ) &&
+ return !( typeof callback === "function" &&
callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
event.isDefaultPrevented() );
}
@@ -66184,6 +66208,8 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
options = options || {};
if ( typeof options === "number" ) {
options = { duration: options };
+ } else if ( options === true ) {
+ options = {};
}
hasOptions = !$.isEmptyObject( options );
@@ -66211,7 +66237,7 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
return $.widget;
-} ) );
+} );
/***/ }),
diff --git a/public/js/dist/bootstrap-table.js b/public/js/dist/bootstrap-table.js
index 11e73e214a..452049ad26 100644
--- a/public/js/dist/bootstrap-table.js
+++ b/public/js/dist/bootstrap-table.js
@@ -187,9 +187,10 @@
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global_1 =
- /* global globalThis -- safe */
+ // eslint-disable-next-line es/no-global-this -- safe
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
+ // eslint-disable-next-line no-restricted-globals -- safe
check(typeof self == 'object' && self) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
// eslint-disable-next-line no-new-func -- fallback
@@ -205,21 +206,23 @@
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
- var NASHORN_BUG = getOwnPropertyDescriptor$4 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
+ var NASHORN_BUG = getOwnPropertyDescriptor$4 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor$4(this, V);
return !!descriptor && descriptor.enumerable;
- } : nativePropertyIsEnumerable;
+ } : $propertyIsEnumerable;
var objectPropertyIsEnumerable = {
f: f$4
@@ -299,20 +302,22 @@
// Thank's IE8 for his funny defineProperty
var ie8DomDefine = !descriptors && !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
return Object.defineProperty(documentCreateElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (ie8DomDefine) try {
- return nativeGetOwnPropertyDescriptor(O, P);
+ return $getOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
};
@@ -327,16 +332,17 @@
} return it;
};
- var nativeDefineProperty = Object.defineProperty;
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
+ var $defineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (ie8DomDefine) try {
- return nativeDefineProperty(O, P, Attributes);
+ return $defineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
@@ -386,7 +392,7 @@
(module.exports = function (key, value) {
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
})('versions', []).push({
- version: '3.9.1',
+ version: '3.10.1',
mode: 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});
@@ -598,6 +604,7 @@
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return objectKeysInternal(O, hiddenKeys);
};
@@ -606,6 +613,7 @@
f: f$1
};
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
var f = Object.getOwnPropertySymbols;
var objectGetOwnPropertySymbols = {
@@ -795,7 +803,7 @@
return RegExp(s, f);
}
- var UNSUPPORTED_Y$2 = fails(function () {
+ var UNSUPPORTED_Y$3 = fails(function () {
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
var re = RE('a', 'y');
re.lastIndex = 2;
@@ -810,15 +818,12 @@
});
var regexpStickyHelpers = {
- UNSUPPORTED_Y: UNSUPPORTED_Y$2,
+ UNSUPPORTED_Y: UNSUPPORTED_Y$3,
BROKEN_CARET: BROKEN_CARET
};
var nativeExec = RegExp.prototype.exec;
- // This always refers to the native implementation, because the
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
- // which loads this file before patching the method.
- var nativeReplace = String.prototype.replace;
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
var patchedExec = nativeExec;
@@ -830,19 +835,19 @@
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
})();
- var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
+ var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
// nonparticipating capturing group, copied from es5-shim's String#split patch.
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2;
if (PATCH) {
patchedExec = function exec(str) {
var re = this;
var lastIndex, reCopy, match, i;
- var sticky = UNSUPPORTED_Y$1 && re.sticky;
+ var sticky = UNSUPPORTED_Y$2 && re.sticky;
var flags = regexpFlags.call(re);
var source = re.source;
var charsAdded = 0;
@@ -927,16 +932,19 @@
var engineV8Version = version && +version;
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
- /* global Symbol -- required for testing */
+ // eslint-disable-next-line es/no-symbol -- required for testing
return !Symbol.sham &&
// Chrome 38 Symbol has incorrect toString conversion
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
});
+ /* eslint-disable es/no-symbol -- required for testing */
+
+
var useSymbolAsUid = nativeSymbol
- /* global Symbol -- safe */
&& !Symbol.sham
&& typeof Symbol.iterator == 'symbol';
@@ -961,7 +969,6 @@
-
var SPECIES$5 = wellKnownSymbol('species');
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
@@ -980,6 +987,7 @@
// IE <= 11 replaces $0 with the whole match, as if it was $&
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
var REPLACE_KEEPS_$0 = (function () {
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
return 'a'.replace(/./, '$0') === '$0';
})();
@@ -1049,7 +1057,7 @@
) {
var nativeRegExpMethod = /./[SYMBOL];
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
+ if (regexp.exec === RegExp.prototype.exec) {
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
// The native String method already delegates to @@method (this
// polyfilled function), leasing to infinite recursion.
@@ -1157,13 +1165,11 @@
return regexpExec.call(R, S);
};
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y;
var arrayPush = [].push;
var min$4 = Math.min;
var MAX_UINT32 = 0xFFFFFFFF;
- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
- var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
-
// @@split logic
fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
var internalSplit;
@@ -1246,11 +1252,11 @@
var flags = (rx.ignoreCase ? 'i' : '') +
(rx.multiline ? 'm' : '') +
(rx.unicode ? 'u' : '') +
- (SUPPORTS_Y ? 'y' : 'g');
+ (UNSUPPORTED_Y$1 ? 'g' : 'y');
// ^(? + rx + ) is needed, in combination with some S slicing, to
// simulate the 'y' flag.
- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
+ var splitter = new C(UNSUPPORTED_Y$1 ? '^(?:' + rx.source + ')' : rx, flags);
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
if (lim === 0) return [];
if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
@@ -1258,12 +1264,12 @@
var q = 0;
var A = [];
while (q < S.length) {
- splitter.lastIndex = SUPPORTS_Y ? q : 0;
- var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));
+ splitter.lastIndex = UNSUPPORTED_Y$1 ? 0 : q;
+ var z = regexpExecAbstract(splitter, UNSUPPORTED_Y$1 ? S.slice(q) : S);
var e;
if (
z === null ||
- (e = min$4(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
+ (e = min$4(toLength(splitter.lastIndex + (UNSUPPORTED_Y$1 ? q : 0)), S.length)) === p
) {
q = advanceStringIndex(S, q, unicodeMatching);
} else {
@@ -1280,16 +1286,58 @@
return A;
}
];
- }, !SUPPORTS_Y);
+ }, UNSUPPORTED_Y$1);
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
+ // eslint-disable-next-line es/no-object-keys -- safe
var objectKeys = Object.keys || function keys(O) {
return objectKeysInternal(O, enumBugKeys);
};
+ var propertyIsEnumerable = objectPropertyIsEnumerable.f;
+
+ // `Object.{ entries, values }` methods implementation
+ var createMethod$1 = function (TO_ENTRIES) {
+ return function (it) {
+ var O = toIndexedObject(it);
+ var keys = objectKeys(O);
+ var length = keys.length;
+ var i = 0;
+ var result = [];
+ var key;
+ while (length > i) {
+ key = keys[i++];
+ if (!descriptors || propertyIsEnumerable.call(O, key)) {
+ result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
+ }
+ }
+ return result;
+ };
+ };
+
+ var objectToArray = {
+ // `Object.entries` method
+ // https://tc39.es/ecma262/#sec-object.entries
+ entries: createMethod$1(true),
+ // `Object.values` method
+ // https://tc39.es/ecma262/#sec-object.values
+ values: createMethod$1(false)
+ };
+
+ var $entries = objectToArray.entries;
+
+ // `Object.entries` method
+ // https://tc39.es/ecma262/#sec-object.entries
+ _export({ target: 'Object', stat: true }, {
+ entries: function entries(O) {
+ return $entries(O);
+ }
+ });
+
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = objectKeys(Properties);
@@ -1406,6 +1454,7 @@
// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
+ // eslint-disable-next-line es/no-array-isarray -- safe
var isArray = Array.isArray || function isArray(arg) {
return classofRaw(arg) == 'Array';
};
@@ -1530,7 +1579,7 @@
var push = [].push;
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
- var createMethod$1 = function (TYPE) {
+ var createMethod = function (TYPE) {
var IS_MAP = TYPE == 1;
var IS_FILTER = TYPE == 2;
var IS_SOME = TYPE == 3;
@@ -1570,28 +1619,28 @@
var arrayIteration = {
// `Array.prototype.forEach` method
// https://tc39.es/ecma262/#sec-array.prototype.foreach
- forEach: createMethod$1(0),
+ forEach: createMethod(0),
// `Array.prototype.map` method
// https://tc39.es/ecma262/#sec-array.prototype.map
- map: createMethod$1(1),
+ map: createMethod(1),
// `Array.prototype.filter` method
// https://tc39.es/ecma262/#sec-array.prototype.filter
- filter: createMethod$1(2),
+ filter: createMethod(2),
// `Array.prototype.some` method
// https://tc39.es/ecma262/#sec-array.prototype.some
- some: createMethod$1(3),
+ some: createMethod(3),
// `Array.prototype.every` method
// https://tc39.es/ecma262/#sec-array.prototype.every
- every: createMethod$1(4),
+ every: createMethod(4),
// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
- find: createMethod$1(5),
+ find: createMethod(5),
// `Array.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
- findIndex: createMethod$1(6),
+ findIndex: createMethod(6),
// `Array.prototype.filterOut` method
// https://github.com/tc39/proposal-array-filtering
- filterOut: createMethod$1(7)
+ filterOut: createMethod(7)
};
var $find = arrayIteration.find;
@@ -1688,6 +1737,7 @@
// https://tc39.es/ecma262/#sec-array.prototype.foreach
var arrayForEach = !STRICT_METHOD$2 ? function forEach(callbackfn /* , thisArg */) {
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
} : [].forEach;
for (var COLLECTION_NAME$1 in domIterables) {
@@ -1721,45 +1771,7 @@
parseFloat: numberParseFloat
});
- var propertyIsEnumerable = objectPropertyIsEnumerable.f;
-
- // `Object.{ entries, values }` methods implementation
- var createMethod = function (TO_ENTRIES) {
- return function (it) {
- var O = toIndexedObject(it);
- var keys = objectKeys(O);
- var length = keys.length;
- var i = 0;
- var result = [];
- var key;
- while (length > i) {
- key = keys[i++];
- if (!descriptors || propertyIsEnumerable.call(O, key)) {
- result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
- }
- }
- return result;
- };
- };
-
- var objectToArray = {
- // `Object.entries` method
- // https://tc39.es/ecma262/#sec-object.entries
- entries: createMethod(true),
- // `Object.values` method
- // https://tc39.es/ecma262/#sec-object.values
- values: createMethod(false)
- };
-
- var $entries = objectToArray.entries;
-
- // `Object.entries` method
- // https://tc39.es/ecma262/#sec-object.entries
- _export({ target: 'Object', stat: true }, {
- entries: function entries(O) {
- return $entries(O);
- }
- });
+ /* eslint-disable es/no-array-prototype-indexof -- required for testing */
var $indexOf = arrayIncludes.indexOf;
@@ -1934,14 +1946,16 @@
];
});
- var nativeAssign = Object.assign;
+ // eslint-disable-next-line es/no-object-assign -- safe
+ var $assign = Object.assign;
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
var defineProperty$3 = Object.defineProperty;
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
- var objectAssign = !nativeAssign || fails(function () {
+ var objectAssign = !$assign || fails(function () {
// should have correct order of operations (Edge bug)
- if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$3({}, 'a', {
+ if (descriptors && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
enumerable: true,
get: function () {
defineProperty$3(this, 'b', {
@@ -1953,12 +1967,12 @@
// should work with symbols and should have deterministic property order (V8 bug)
var A = {};
var B = {};
- /* global Symbol -- required for testing */
+ // eslint-disable-next-line es/no-symbol -- safe
var symbol = Symbol();
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
- return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
var T = toObject(target);
var argumentsLength = arguments.length;
@@ -1976,10 +1990,11 @@
if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
}
} return T;
- } : nativeAssign;
+ } : $assign;
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
+ // eslint-disable-next-line es/no-object-assign -- required for testing
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
assign: objectAssign
});
@@ -2000,6 +2015,7 @@
// `SameValue` abstract operation
// https://tc39.es/ecma262/#sec-samevalue
+ // eslint-disable-next-line es/no-object-is -- safe
var sameValue = Object.is || function is(x, y) {
// eslint-disable-next-line no-self-compare -- NaN check
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
@@ -2100,11 +2116,13 @@
// `Object.setPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.setprototypeof
// Works with __proto__ only. Old v8 can't work with null proto objects.
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
var CORRECT_SETTER = false;
var test = {};
var setter;
try {
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
setter.call(test, []);
CORRECT_SETTER = test instanceof Array;
@@ -2330,6 +2348,7 @@
var correctPrototypeGetter = !fails(function () {
function F() { /* empty */ }
F.prototype.constructor = null;
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
return Object.getPrototypeOf(new F()) !== F.prototype;
});
@@ -2338,6 +2357,7 @@
// `Object.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.getprototypeof
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
O = toObject(O);
if (has$1(O, IE_PROTO)) return O[IE_PROTO];
@@ -2355,6 +2375,7 @@
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
+ /* eslint-disable es/no-array-prototype-keys -- safe */
if ([].keys) {
arrayIterator = [].keys();
// Safari 8 has buggy iterators w/o `next`
@@ -2696,7 +2717,7 @@
/* eslint-disable no-unused-vars */
- var VERSION = '1.18.3';
+ var VERSION = '1.19.1';
var bootstrapVersion = 4;
try {
@@ -2813,19 +2834,19 @@
}
},
5: {
- iconsPrefix: 'fa',
+ iconsPrefix: 'bi',
icons: {
- paginationSwitchDown: 'fa-caret-square-down',
- paginationSwitchUp: 'fa-caret-square-up',
- refresh: 'fa-sync',
- toggleOff: 'fa-toggle-off',
- toggleOn: 'fa-toggle-on',
- columns: 'fa-th-list',
- detailOpen: 'fa-plus',
- detailClose: 'fa-minus',
- fullscreen: 'fa-arrows-alt',
- search: 'fa-search',
- clearSearch: 'fa-trash'
+ paginationSwitchDown: 'bi-caret-down-square',
+ paginationSwitchUp: 'bi-caret-up-square',
+ refresh: 'bi-arrow-clockwise',
+ toggleOff: 'bi-toggle-off',
+ toggleOn: 'bi-toggle-on',
+ columns: 'bi-list-ul',
+ detailOpen: 'bi-plus',
+ detailClose: 'bi-dash',
+ fullscreen: 'bi-arrows-move',
+ search: 'bi-search',
+ clearSearch: 'bi-trash'
},
classes: {
buttonsPrefix: 'btn',
@@ -2853,7 +2874,7 @@
pagination: ['<ul class="pagination%s">', '</ul>'],
paginationItem: '<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',
icon: '<i class="%s %s"></i>',
- inputGroup: '<div class="input-group">%s<div class="input-group-append">%s</div></div>',
+ inputGroup: '<div class="input-group">%s%s</div>',
searchInput: '<input class="%s%s" type="text" placeholder="%s">',
searchButton: '<button class="%s" type="button" name="search" title="%s">%s %s</button>',
searchClearButton: '<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'
@@ -2938,6 +2959,7 @@
searchHighlight: false,
searchOnEnterKey: false,
strictSearch: false,
+ regexSearch: false,
searchSelector: false,
visibleSearch: false,
showButtonIcons: true,
@@ -3089,6 +3111,9 @@
},
onScrollBody: function onScrollBody() {
return false;
+ },
+ onTogglePagination: function onTogglePagination(newState) {
+ return false;
}
};
var EN = {
@@ -3229,7 +3254,9 @@
'refresh-options.bs.table': 'onRefreshOptions',
'reset-view.bs.table': 'onResetView',
'refresh.bs.table': 'onRefresh',
- 'scroll-body.bs.table': 'onScrollBody'
+ 'scroll-body.bs.table': 'onScrollBody',
+ 'toggle-pagination.bs.table': 'onTogglePagination',
+ 'virtual-scroll.bs.table': 'onVirtualScroll'
};
Object.assign(DEFAULTS, EN);
var Constants = {
@@ -3256,6 +3283,43 @@
}
});
+ // @@match logic
+ fixRegexpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
+ return [
+ // `String.prototype.match` method
+ // https://tc39.es/ecma262/#sec-string.prototype.match
+ function match(regexp) {
+ var O = requireObjectCoercible(this);
+ var matcher = regexp == undefined ? undefined : regexp[MATCH];
+ return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
+ },
+ // `RegExp.prototype[@@match]` method
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
+ function (regexp) {
+ var res = maybeCallNative(nativeMatch, regexp, this);
+ if (res.done) return res.value;
+
+ var rx = anObject(regexp);
+ var S = String(this);
+
+ if (!rx.global) return regexpExecAbstract(rx, S);
+
+ var fullUnicode = rx.unicode;
+ rx.lastIndex = 0;
+ var A = [];
+ var n = 0;
+ var result;
+ while ((result = regexpExecAbstract(rx, S)) !== null) {
+ var matchStr = String(result[0]);
+ A[n] = matchStr;
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
+ n++;
+ }
+ return n === 0 ? null : A;
+ }
+ ];
+ });
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
@@ -3263,7 +3327,8 @@
- var nativeStartsWith = ''.startsWith;
+ // eslint-disable-next-line es/no-string-prototype-startswith -- safe
+ var $startsWith = ''.startsWith;
var min$1 = Math.min;
var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegexpLogic('startsWith');
@@ -3281,8 +3346,8 @@
notARegexp(searchString);
var index = toLength(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length));
var search = String(searchString);
- return nativeStartsWith
- ? nativeStartsWith.call(that, search, index)
+ return $startsWith
+ ? $startsWith.call(that, search, index)
: that.slice(index, index + search.length) === search;
}
});
@@ -3294,7 +3359,8 @@
- var nativeEndsWith = ''.endsWith;
+ // eslint-disable-next-line es/no-string-prototype-endswith -- safe
+ var $endsWith = ''.endsWith;
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegexpLogic('endsWith');
@@ -3314,8 +3380,8 @@
var len = toLength(that.length);
var end = endPosition === undefined ? len : min(toLength(endPosition), len);
var search = String(searchString);
- return nativeEndsWith
- ? nativeEndsWith.call(that, search, end)
+ return $endsWith
+ ? $endsWith.call(that, search, end)
: that.slice(end - search.length, end) === search;
}
});
@@ -3582,19 +3648,30 @@
return true;
},
+ regexCompare: function regexCompare(value, search) {
+ try {
+ var regexpParts = search.match(/^\/(.*?)\/([gim]*)$/);
+
+ if (value.toString().search(regexpParts ? new RegExp(regexpParts[1], regexpParts[2]) : new RegExp(search, 'gim')) !== -1) {
+ return true;
+ }
+ } catch (e) {
+ return false;
+ }
+ },
escapeHTML: function escapeHTML(text) {
- if (typeof text === 'string') {
- return text.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#039;').replace(/`/g, '&#x60;');
+ if (!text) {
+ return text;
}
- return text;
+ return text.toString().replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;');
},
unescapeHTML: function unescapeHTML(text) {
- if (typeof text === 'string') {
- return text.replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&quot;/g, '"').replace(/&#039;/g, '\'').replace(/&#x60;/g, '`');
+ if (!text) {
+ return text;
}
- return text;
+ return text.toString().replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&quot;/g, '"').replace(/&#39;/g, '\'');
},
getRealDataAttr: function getRealDataAttr(dataAttr) {
for (var _i3 = 0, _Object$entries = Object.entries(dataAttr); _i3 < _Object$entries.length; _i3++) {
@@ -3823,7 +3900,7 @@
if (_this.lastCluster !== (_this.lastCluster = _this.getNum())) {
_this.initDOM(_this.rows);
- _this.callback();
+ _this.callback(_this.startIndex, _this.endIndex);
}
};
@@ -3863,6 +3940,8 @@
html.push(this.getExtra('bottom', data.bottomOffset));
}
+ this.startIndex = data.start;
+ this.endIndex = data.end;
this.contentEl.innerHTML = html.join('');
if (fixedScroll) {
@@ -3919,6 +3998,8 @@
}
return {
+ start: start,
+ end: end,
topOffset: topOffset,
bottomOffset: bottomOffset,
rowsAbove: rowsAbove,
@@ -4007,12 +4088,26 @@
parts[1] = parts[1].toUpperCase();
}
+ var localesToExtend = {};
+
if (locales[this.options.locale]) {
- $__default['default'].extend(this.options, locales[this.options.locale]);
+ localesToExtend = locales[this.options.locale];
} else if (locales[parts.join('-')]) {
- $__default['default'].extend(this.options, locales[parts.join('-')]);
+ localesToExtend = locales[parts.join('-')];
} else if (locales[parts[0]]) {
- $__default['default'].extend(this.options, locales[parts[0]]);
+ localesToExtend = locales[parts[0]];
+ }
+
+ for (var _i = 0, _Object$entries = Object.entries(localesToExtend); _i < _Object$entries.length; _i++) {
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
+ formatName = _Object$entries$_i[0],
+ func = _Object$entries$_i[1];
+
+ if (this.options[formatName] !== BootstrapTable.DEFAULTS[formatName]) {
+ continue;
+ }
+
+ this.options[formatName] = func;
}
}
}
@@ -4199,10 +4294,10 @@
var classes = '';
if (headerStyle && headerStyle.css) {
- for (var _i = 0, _Object$entries = Object.entries(headerStyle.css); _i < _Object$entries.length; _i++) {
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
- key = _Object$entries$_i[0],
- value = _Object$entries$_i[1];
+ for (var _i2 = 0, _Object$entries2 = Object.entries(headerStyle.css); _i2 < _Object$entries2.length; _i2++) {
+ var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i2], 2),
+ key = _Object$entries2$_i[0],
+ value = _Object$entries2$_i[1];
csses.push("".concat(key, ": ").concat(value));
}
@@ -4294,16 +4389,6 @@
_this2.onSort(e);
}
});
- this.$header.children().children().off('keypress').on('keypress', function (e) {
- if (_this2.options.sortable && $__default['default'](e.currentTarget).data().sortable) {
- var code = e.keyCode || e.which;
-
- if (code === 13) {
- // Enter keycode
- _this2.onSort(e);
- }
- }
- });
var resizeEvent = Utils.getEventName('resize.bootstrap-table', this.$el.attr('id'));
$__default['default'](window).off(resizeEvent);
@@ -4582,10 +4667,10 @@
});
var buttonsHtml = {};
- for (var _i2 = 0, _Object$entries2 = Object.entries(this.buttons); _i2 < _Object$entries2.length; _i2++) {
- var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i2], 2),
- buttonName = _Object$entries2$_i[0],
- buttonConfig = _Object$entries2$_i[1];
+ for (var _i3 = 0, _Object$entries3 = Object.entries(this.buttons); _i3 < _Object$entries3.length; _i3++) {
+ var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),
+ buttonName = _Object$entries3$_i[0],
+ buttonConfig = _Object$entries3$_i[1];
var buttonHtml = void 0;
@@ -4599,10 +4684,10 @@
buttonHtml = "<button class=\"".concat(this.constants.buttonsClass, "\" type=\"button\" name=\"").concat(buttonName, "\"");
if (buttonConfig.hasOwnProperty('attributes')) {
- for (var _i3 = 0, _Object$entries3 = Object.entries(buttonConfig.attributes); _i3 < _Object$entries3.length; _i3++) {
- var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),
- attributeName = _Object$entries3$_i[0],
- value = _Object$entries3$_i[1];
+ for (var _i4 = 0, _Object$entries4 = Object.entries(buttonConfig.attributes); _i4 < _Object$entries4.length; _i4++) {
+ var _Object$entries4$_i = _slicedToArray(_Object$entries4[_i4], 2),
+ attributeName = _Object$entries4$_i[0],
+ value = _Object$entries4$_i[1];
buttonHtml += " ".concat(attributeName, "=\"").concat(value, "\"");
}
@@ -4659,10 +4744,10 @@
this.$toolbar.append(html.join(''));
}
- for (var _i4 = 0, _Object$entries4 = Object.entries(this.buttons); _i4 < _Object$entries4.length; _i4++) {
- var _Object$entries4$_i = _slicedToArray(_Object$entries4[_i4], 2),
- _buttonName = _Object$entries4$_i[0],
- _buttonConfig = _Object$entries4$_i[1];
+ for (var _i5 = 0, _Object$entries5 = Object.entries(this.buttons); _i5 < _Object$entries5.length; _i5++) {
+ var _Object$entries5$_i = _slicedToArray(_Object$entries5[_i5], 2),
+ _buttonName = _Object$entries5$_i[0],
+ _buttonConfig = _Object$entries5$_i[1];
if (_buttonConfig.hasOwnProperty('event')) {
if (typeof _buttonConfig.event === 'function' || typeof _buttonConfig.event === 'string') {
@@ -4680,9 +4765,9 @@
}
var _loop = function _loop() {
- var _Object$entries5$_i = _slicedToArray(_Object$entries5[_i5], 2),
- eventType = _Object$entries5$_i[0],
- eventFunction = _Object$entries5$_i[1];
+ var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i6], 2),
+ eventType = _Object$entries6$_i[0],
+ eventFunction = _Object$entries6$_i[1];
var event = typeof eventFunction === 'string' ? window[eventFunction] : eventFunction;
@@ -4691,7 +4776,7 @@
});
};
- for (var _i5 = 0, _Object$entries5 = Object.entries(_buttonConfig.event); _i5 < _Object$entries5.length; _i5++) {
+ for (var _i6 = 0, _Object$entries6 = Object.entries(_buttonConfig.event); _i6 < _Object$entries6.length; _i6++) {
_loop();
}
}
@@ -4836,7 +4921,10 @@
return;
}
- if (currentTarget === Utils.getSearchInput(this)[0] || $__default['default'](currentTarget).hasClass('search-input')) {
+ var $searchInput = Utils.getSearchInput(this);
+ var $currentTarget = currentTarget instanceof jQuery ? currentTarget : $__default['default'](currentTarget);
+
+ if ($currentTarget.is($searchInput) || $currentTarget.hasClass('search-input')) {
this.searchText = text;
this.options.searchText = text;
}
@@ -4876,11 +4964,12 @@
return;
}
- var s = this.searchText && (this.fromHtml ? Utils.escapeHTML(this.searchText) : this.searchText).toLowerCase();
+ var rawSearchText = this.searchText && (this.fromHtml ? Utils.escapeHTML(this.searchText) : this.searchText);
+ var searchText = rawSearchText ? rawSearchText.toLowerCase() : '';
var f = Utils.isEmptyObject(this.filterColumns) ? null : this.filterColumns;
if (this.options.searchAccentNeutralise) {
- s = Utils.normalizeAccent(s);
+ searchText = Utils.normalizeAccent(searchText);
} // Check filter
@@ -4915,7 +5004,7 @@
}
var visibleFields = this.getVisibleFields();
- this.data = s ? this.data.filter(function (item, i) {
+ this.data = searchText ? this.data.filter(function (item, i) {
for (var j = 0; j < _this5.header.fields.length; j++) {
if (!_this5.header.searchables[j] || _this5.options.visibleSearch && visibleFields.indexOf(_this5.header.fields[j]) === -1) {
continue;
@@ -4929,9 +5018,9 @@
value = item;
var props = key.split('.');
- for (var _i6 = 0; _i6 < props.length; _i6++) {
- if (value[props[_i6]] !== null) {
- value = value[props[_i6]];
+ for (var _i7 = 0; _i7 < props.length; _i7++) {
+ if (value[props[_i7]] !== null) {
+ value = value[props[_i7]];
}
}
} else {
@@ -4948,52 +5037,50 @@
}
if (typeof value === 'string' || typeof value === 'number') {
- if (_this5.options.strictSearch) {
- if ("".concat(value).toLowerCase() === s) {
- return true;
- }
- } else {
- var largerSmallerEqualsRegex = /(?:(<=|=>|=<|>=|>|<)(?:\s+)?(-?\d+)?|(-?\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm;
- var matches = largerSmallerEqualsRegex.exec(_this5.searchText);
- var comparisonCheck = false;
-
- if (matches) {
- var operator = matches[1] || "".concat(matches[5], "l");
- var comparisonValue = matches[2] || matches[3];
- var int = parseInt(value, 10);
- var comparisonInt = parseInt(comparisonValue, 10);
-
- switch (operator) {
- case '>':
- case '<l':
- comparisonCheck = int > comparisonInt;
- break;
-
- case '<':
- case '>l':
- comparisonCheck = int < comparisonInt;
- break;
-
- case '<=':
- case '=<':
- case '>=l':
- case '=>l':
- comparisonCheck = int <= comparisonInt;
- break;
-
- case '>=':
- case '=>':
- case '<=l':
- case '=<l':
- comparisonCheck = int >= comparisonInt;
- break;
- }
- }
+ if (_this5.options.strictSearch && "".concat(value).toLowerCase() === searchText || _this5.options.regexSearch && Utils.regexCompare(value, rawSearchText)) {
+ return true;
+ }
- if (comparisonCheck || "".concat(value).toLowerCase().includes(s)) {
- return true;
+ var largerSmallerEqualsRegex = /(?:(<=|=>|=<|>=|>|<)(?:\s+)?(-?\d+)?|(-?\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm;
+ var matches = largerSmallerEqualsRegex.exec(_this5.searchText);
+ var comparisonCheck = false;
+
+ if (matches) {
+ var operator = matches[1] || "".concat(matches[5], "l");
+ var comparisonValue = matches[2] || matches[3];
+ var int = parseInt(value, 10);
+ var comparisonInt = parseInt(comparisonValue, 10);
+
+ switch (operator) {
+ case '>':
+ case '<l':
+ comparisonCheck = int > comparisonInt;
+ break;
+
+ case '<':
+ case '>l':
+ comparisonCheck = int < comparisonInt;
+ break;
+
+ case '<=':
+ case '=<':
+ case '>=l':
+ case '=>l':
+ comparisonCheck = int <= comparisonInt;
+ break;
+
+ case '>=':
+ case '=>':
+ case '<=l':
+ case '=<l':
+ comparisonCheck = int >= comparisonInt;
+ break;
}
}
+
+ if (comparisonCheck || "".concat(value).toLowerCase().includes(searchText)) {
+ return true;
+ }
}
}
@@ -5219,7 +5306,7 @@
if (opts.smartDisplay) {
if (pageList.length < 2 || opts.totalRows <= pageList[0]) {
- this.$pagination.find('span.page-list').hide();
+ this.$pagination.find('div.page-list').hide();
}
} // when data is empty, hide the pagination
@@ -5290,6 +5377,10 @@
}, {
key: "onPagePre",
value: function onPagePre(event) {
+ if ($__default['default'](event.target).hasClass('disabled')) {
+ return;
+ }
+
event.preventDefault();
if (this.options.pageNumber - 1 === 0) {
@@ -5304,6 +5395,10 @@
}, {
key: "onPageNext",
value: function onPageNext(event) {
+ if ($__default['default'](event.target).hasClass('disabled')) {
+ return;
+ }
+
event.preventDefault();
if (this.options.pageNumber + 1 > this.options.totalPages) {
@@ -5348,10 +5443,10 @@
style = Utils.calculateObjectValue(this.options, this.options.rowStyle, [item, i], style);
if (style && style.css) {
- for (var _i7 = 0, _Object$entries6 = Object.entries(style.css); _i7 < _Object$entries6.length; _i7++) {
- var _Object$entries6$_i = _slicedToArray(_Object$entries6[_i7], 2),
- key = _Object$entries6$_i[0],
- value = _Object$entries6$_i[1];
+ for (var _i8 = 0, _Object$entries7 = Object.entries(style.css); _i8 < _Object$entries7.length; _i8++) {
+ var _Object$entries7$_i = _slicedToArray(_Object$entries7[_i8], 2),
+ key = _Object$entries7$_i[0],
+ value = _Object$entries7$_i[1];
csses.push("".concat(key, ": ").concat(value));
}
@@ -5360,20 +5455,20 @@
attributes = Utils.calculateObjectValue(this.options, this.options.rowAttributes, [item, i], attributes);
if (attributes) {
- for (var _i8 = 0, _Object$entries7 = Object.entries(attributes); _i8 < _Object$entries7.length; _i8++) {
- var _Object$entries7$_i = _slicedToArray(_Object$entries7[_i8], 2),
- _key2 = _Object$entries7$_i[0],
- _value = _Object$entries7$_i[1];
+ for (var _i9 = 0, _Object$entries8 = Object.entries(attributes); _i9 < _Object$entries8.length; _i9++) {
+ var _Object$entries8$_i = _slicedToArray(_Object$entries8[_i9], 2),
+ _key2 = _Object$entries8$_i[0],
+ _value = _Object$entries8$_i[1];
htmlAttributes.push("".concat(_key2, "=\"").concat(Utils.escapeHTML(_value), "\""));
}
}
if (item._data && !Utils.isEmptyObject(item._data)) {
- for (var _i9 = 0, _Object$entries8 = Object.entries(item._data); _i9 < _Object$entries8.length; _i9++) {
- var _Object$entries8$_i = _slicedToArray(_Object$entries8[_i9], 2),
- k = _Object$entries8$_i[0],
- v = _Object$entries8$_i[1];
+ for (var _i10 = 0, _Object$entries9 = Object.entries(item._data); _i10 < _Object$entries9.length; _i10++) {
+ var _Object$entries9$_i = _slicedToArray(_Object$entries9[_i10], 2),
+ k = _Object$entries9$_i[0],
+ v = _Object$entries9$_i[1];
// ignore data-index
if (k === 'index') {
@@ -5484,10 +5579,10 @@
if (cellStyle.css) {
var csses_ = [];
- for (var _i10 = 0, _Object$entries9 = Object.entries(cellStyle.css); _i10 < _Object$entries9.length; _i10++) {
- var _Object$entries9$_i = _slicedToArray(_Object$entries9[_i10], 2),
- _key3 = _Object$entries9$_i[0],
- _value2 = _Object$entries9$_i[1];
+ for (var _i11 = 0, _Object$entries10 = Object.entries(cellStyle.css); _i11 < _Object$entries10.length; _i11++) {
+ var _Object$entries10$_i = _slicedToArray(_Object$entries10[_i11], 2),
+ _key3 = _Object$entries10$_i[0],
+ _value2 = _Object$entries10$_i[1];
csses_.push("".concat(_key3, ": ").concat(_value2));
}
@@ -5501,7 +5596,7 @@
value = typeof value === 'undefined' || value === null ? _this7.options.undefinedText : value;
}
- if (column.searchable && _this7.searchText && _this7.options.searchHighlight) {
+ if (column.searchable && _this7.searchText && _this7.options.searchHighlight && !(column.checkbox || column.radio)) {
var defValue = '';
var regExp = new RegExp("(".concat(_this7.searchText.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), ")"), 'gim');
var marker = '<mark>$1</mark>';
@@ -5511,6 +5606,7 @@
// value can contains a HTML tags
var textContent = new DOMParser().parseFromString(value.toString(), 'text/html').documentElement.textContent;
var textReplaced = textContent.replace(regExp, marker);
+ textContent = textContent.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
defValue = value.replace(new RegExp("(>\\s*)(".concat(textContent, ")(\\s*)"), 'gm'), "$1".concat(textReplaced, "$3"));
} else {
// but usually not
@@ -5521,10 +5617,10 @@
}
if (item["_".concat(field, "_data")] && !Utils.isEmptyObject(item["_".concat(field, "_data")])) {
- for (var _i11 = 0, _Object$entries10 = Object.entries(item["_".concat(field, "_data")]); _i11 < _Object$entries10.length; _i11++) {
- var _Object$entries10$_i = _slicedToArray(_Object$entries10[_i11], 2),
- _k = _Object$entries10$_i[0],
- _v = _Object$entries10$_i[1];
+ for (var _i12 = 0, _Object$entries11 = Object.entries(item["_".concat(field, "_data")]); _i12 < _Object$entries11.length; _i12++) {
+ var _Object$entries11$_i = _slicedToArray(_Object$entries11[_i12], 2),
+ _k = _Object$entries11$_i[0],
+ _v = _Object$entries11$_i[1];
// ignore data-index
if (_k === 'index') {
@@ -5570,7 +5666,7 @@
}
}, {
key: "initBody",
- value: function initBody(fixedScroll) {
+ value: function initBody(fixedScroll, updatedUid) {
var _this8 = this;
var data = this.getData();
@@ -5590,6 +5686,7 @@
var rows = [];
var trFragments = $__default['default'](document.createDocumentFragment());
var hasTr = false;
+ var toExpand = [];
this.autoMergeCells = Utils.checkAutoMergeCells(data.slice(this.pageFrom - 1, this.pageTo));
for (var i = this.pageFrom - 1; i < this.pageTo; i++) {
@@ -5598,6 +5695,22 @@
hasTr = hasTr || !!tr;
if (tr && typeof tr === 'string') {
+ var uniqueId = this.options.uniqueId;
+
+ if (uniqueId && item.hasOwnProperty(uniqueId)) {
+ var itemUniqueId = item[uniqueId];
+ var oldTr = this.$body.find(Utils.sprintf('> tr[data-uniqueid="%s"][data-has-detail-view]', itemUniqueId));
+ var oldTrNext = oldTr.next();
+
+ if (oldTrNext.is('tr.detail-view')) {
+ toExpand.push(i);
+
+ if (!updatedUid || itemUniqueId !== updatedUid) {
+ tr += oldTrNext[0].outerHTML;
+ }
+ }
+ }
+
if (!this.options.virtualScroll) {
trFragments.append(tr);
} else {
@@ -5622,22 +5735,28 @@
scrollEl: this.$tableBody[0],
contentEl: this.$body[0],
itemHeight: this.options.virtualScrollItemHeight,
- callback: function callback() {
+ callback: function callback(startIndex, endIndex) {
_this8.fitHeader();
_this8.initBodyEvent();
+
+ _this8.trigger('virtual-scroll', startIndex, endIndex);
}
});
}
+ toExpand.forEach(function (index) {
+ _this8.expandRow(index);
+ });
+
if (!fixedScroll) {
this.scrollTo(0);
}
this.initBodyEvent();
- this.updateSelected();
this.initFooter();
this.resetView();
+ this.updateSelected();
if (this.options.sidePagination !== 'server') {
this.options.totalRows = data.length;
@@ -5791,9 +5910,9 @@
if (this.options.pagination && this.options.sidePagination === 'server') {
params.offset = this.options.pageSize === this.options.formatAllRows() ? 0 : this.options.pageSize * (this.options.pageNumber - 1);
- params.limit = this.options.pageSize === this.options.formatAllRows() ? this.options.totalRows : this.options.pageSize;
+ params.limit = this.options.pageSize;
- if (params.limit === 0) {
+ if (params.limit === 0 || this.options.pageSize === this.options.formatAllRows()) {
delete params.limit;
}
}
@@ -5855,11 +5974,17 @@
_this10.hideLoading();
}
- if (_this10.options.sidePagination === 'server' && res[_this10.options.totalField] > 0 && !res[_this10.options.dataField].length) {
+ if (_this10.options.sidePagination === 'server' && _this10.options.pageNumber > 1 && res[_this10.options.totalField] > 0 && !res[_this10.options.dataField].length) {
_this10.updatePagination();
}
},
error: function error(jqXHR) {
+ // abort ajax by multiple request
+ if (jqXHR && jqXHR.status === 0 && _this10._xhrAbort) {
+ _this10._xhrAbort = false;
+ return;
+ }
+
var data = [];
if (_this10.options.sidePagination === 'server') {
@@ -5880,6 +6005,8 @@
Utils.calculateObjectValue(this, this.options.ajax, [request], null);
} else {
if (this._xhr && this._xhr.readyState !== 4) {
+ this._xhrAbort = true;
+
this._xhr.abort();
}
@@ -6120,10 +6247,10 @@
style = Utils.calculateObjectValue(null, this.options.footerStyle, [column]);
if (style && style.css) {
- for (var _i12 = 0, _Object$entries11 = Object.entries(style.css); _i12 < _Object$entries11.length; _i12++) {
- var _Object$entries11$_i = _slicedToArray(_Object$entries11[_i12], 2),
- key = _Object$entries11$_i[0],
- _value3 = _Object$entries11$_i[1];
+ for (var _i13 = 0, _Object$entries12 = Object.entries(style.css); _i13 < _Object$entries12.length; _i13++) {
+ var _Object$entries12$_i = _slicedToArray(_Object$entries12[_i13], 2),
+ key = _Object$entries12$_i[0],
+ _value3 = _Object$entries12$_i[1];
csses.push("".concat(key, ": ").concat(_value3));
}
@@ -6325,10 +6452,10 @@
if (params && params.formatted) {
data.forEach(function (row) {
- for (var _i13 = 0, _Object$entries12 = Object.entries(row); _i13 < _Object$entries12.length; _i13++) {
- var _Object$entries12$_i = _slicedToArray(_Object$entries12[_i13], 2),
- key = _Object$entries12$_i[0],
- value = _Object$entries12$_i[1];
+ for (var _i14 = 0, _Object$entries13 = Object.entries(row); _i14 < _Object$entries13.length; _i14++) {
+ var _Object$entries13$_i = _slicedToArray(_Object$entries13[_i14], 2),
+ key = _Object$entries13$_i[0],
+ value = _Object$entries13$_i[1];
var column = _this17.columns[_this17.fieldsColumnsIndex[key]];
@@ -6505,7 +6632,7 @@
id = id.toString();
} else if (typeof rowUniqueId === 'number') {
if (Number(rowUniqueId) === rowUniqueId && rowUniqueId % 1 === 0) {
- id = parseInt(id);
+ id = parseInt(id, 10);
} else if (rowUniqueId === Number(rowUniqueId) && rowUniqueId !== 0) {
id = parseFloat(id);
}
@@ -6523,6 +6650,7 @@
key: "updateByUniqueId",
value: function updateByUniqueId(params) {
var allParams = Array.isArray(params) ? params : [params];
+ var updatedUid = null;
var _iterator7 = _createForOfIteratorHelper(allParams),
_step7;
@@ -6546,6 +6674,8 @@
} else {
$__default['default'].extend(this.options.data[rowId], _params2.row);
}
+
+ updatedUid = _params2.id;
}
} catch (err) {
_iterator7.e(err);
@@ -6556,7 +6686,7 @@
this.initSearch();
this.initPagination();
this.initSort();
- this.initBody(true);
+ this.initBody(true, updatedUid);
}
}, {
key: "removeByUniqueId",
@@ -6828,7 +6958,7 @@
var colspan = options.colspan || 1;
var i;
var j;
- var $tr = this.$body.find('>tr');
+ var $tr = this.$body.find('>tr[data-index]');
col += Utils.getDetailViewIndexOffset(this.options);
var $td = $tr.eq(row).find('>td').eq(col);
@@ -6971,9 +7101,10 @@
if (obj.values.includes(row[obj.field])) {
var $el = _this24.$selectItem.filter(':enabled').filter(Utils.sprintf('[data-index="%s"]', i));
+ var onlyCurrentPage = obj.hasOwnProperty('onlyCurrentPage') ? obj.onlyCurrentPage : false;
$el = checked ? $el.not(':checked') : $el.filter(':checked');
- if (!$el.length) {
+ if (!$el.length && onlyCurrentPage) {
return;
}
@@ -7022,7 +7153,6 @@
this.options.height = params.height;
}
- this.$selectAll.prop('checked', this.$selectItem.length > 0 && this.$selectItem.length === this.$selectItem.filter(':checked').length);
this.$tableContainer.toggleClass('has-card-view', this.options.cardView);
if (!this.options.cardView && this.options.showHeader && this.options.height) {
@@ -7112,6 +7242,7 @@
var text = this.options.showButtonText ? this.options.pagination ? this.options.formatPaginationSwitchUp() : this.options.formatPaginationSwitchDown() : '';
this.$toolbar.find('button[name="paginationSwitch"]').html("".concat(Utils.sprintf(this.constants.html.icon, this.options.iconsPrefix, icon), " ").concat(text));
this.updatePagination();
+ this.trigger('toggle-pagination', this.options.pagination);
}
}, {
key: "toggleFullscreen",
@@ -7223,14 +7354,14 @@
var row = this.data[index];
var $tr = this.$body.find(Utils.sprintf('> tr[data-index="%s"][data-has-detail-view]', index));
- if ($tr.next().is('tr.detail-view')) {
- return;
- }
-
if (this.options.detailViewIcon) {
$tr.find('a.detail-icon').html(Utils.sprintf(this.constants.html.icon, this.options.iconsPrefix, this.options.icons.detailClose));
}
+ if ($tr.next().is('tr.detail-view')) {
+ return;
+ }
+
$tr.after(Utils.sprintf('<tr class="detail-view"><td colspan="%s"></td></tr>', $tr.children('td').length));
var $element = $tr.next().find('td');
var detailFormatter = _columnDetailFormatter || this.options.detailFormatter;
@@ -7561,9 +7692,10 @@
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global_1 =
- /* global globalThis -- safe */
+ // eslint-disable-next-line es/no-global-this -- safe
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
+ // eslint-disable-next-line no-restricted-globals -- safe
check(typeof self == 'object' && self) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
// eslint-disable-next-line no-new-func -- fallback
@@ -7579,21 +7711,23 @@
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor$1(this, V);
return !!descriptor && descriptor.enumerable;
- } : nativePropertyIsEnumerable;
+ } : $propertyIsEnumerable;
var objectPropertyIsEnumerable = {
f: f$4
@@ -7673,20 +7807,22 @@
// Thank's IE8 for his funny defineProperty
var ie8DomDefine = !descriptors && !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
return Object.defineProperty(documentCreateElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (ie8DomDefine) try {
- return nativeGetOwnPropertyDescriptor(O, P);
+ return $getOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
};
@@ -7701,16 +7837,17 @@
} return it;
};
- var nativeDefineProperty = Object.defineProperty;
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
+ var $defineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (ie8DomDefine) try {
- return nativeDefineProperty(O, P, Attributes);
+ return $defineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
@@ -7760,7 +7897,7 @@
(module.exports = function (key, value) {
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
})('versions', []).push({
- version: '3.9.1',
+ version: '3.10.1',
mode: 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});
@@ -7972,6 +8109,7 @@
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return objectKeysInternal(O, hiddenKeys);
};
@@ -7980,6 +8118,7 @@
f: f$1
};
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
var f = Object.getOwnPropertySymbols;
var objectGetOwnPropertySymbols = {
@@ -8079,6 +8218,7 @@
// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
+ // eslint-disable-next-line es/no-array-isarray -- safe
var isArray = Array.isArray || function isArray(arg) {
return classofRaw(arg) == 'Array';
};
@@ -8117,16 +8257,19 @@
var engineV8Version = version && +version;
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
- /* global Symbol -- required for testing */
+ // eslint-disable-next-line es/no-symbol -- required for testing
return !Symbol.sham &&
// Chrome 38 Symbol has incorrect toString conversion
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
});
+ /* eslint-disable es/no-symbol -- required for testing */
+
+
var useSymbolAsUid = nativeSymbol
- /* global Symbol -- safe */
&& !Symbol.sham
&& typeof Symbol.iterator == 'symbol';
@@ -8228,12 +8371,14 @@
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
+ // eslint-disable-next-line es/no-object-keys -- safe
var objectKeys = Object.keys || function keys(O) {
return objectKeysInternal(O, enumBugKeys);
};
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = objectKeys(Properties);
@@ -8497,6 +8642,7 @@
// https://tc39.es/ecma262/#sec-array.prototype.foreach
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
} : [].forEach;
for (var COLLECTION_NAME in domIterables) {
@@ -8946,9 +9092,10 @@
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global_1 =
- /* global globalThis -- safe */
+ // eslint-disable-next-line es/no-global-this -- safe
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
+ // eslint-disable-next-line no-restricted-globals -- safe
check(typeof self == 'object' && self) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
// eslint-disable-next-line no-new-func -- fallback
@@ -8964,21 +9111,23 @@
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor$1(this, V);
return !!descriptor && descriptor.enumerable;
- } : nativePropertyIsEnumerable;
+ } : $propertyIsEnumerable;
var objectPropertyIsEnumerable = {
f: f$4
@@ -9058,20 +9207,22 @@
// Thank's IE8 for his funny defineProperty
var ie8DomDefine = !descriptors && !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
return Object.defineProperty(documentCreateElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (ie8DomDefine) try {
- return nativeGetOwnPropertyDescriptor(O, P);
+ return $getOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
};
@@ -9086,16 +9237,17 @@
} return it;
};
- var nativeDefineProperty = Object.defineProperty;
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
+ var $defineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (ie8DomDefine) try {
- return nativeDefineProperty(O, P, Attributes);
+ return $defineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
@@ -9145,7 +9297,7 @@
(module.exports = function (key, value) {
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
})('versions', []).push({
- version: '3.9.1',
+ version: '3.10.1',
mode: 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});
@@ -9357,6 +9509,7 @@
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return objectKeysInternal(O, hiddenKeys);
};
@@ -9365,6 +9518,7 @@
f: f$1
};
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
var f = Object.getOwnPropertySymbols;
var objectGetOwnPropertySymbols = {
@@ -9499,6 +9653,7 @@
// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
+ // eslint-disable-next-line es/no-array-isarray -- safe
var isArray = Array.isArray || function isArray(arg) {
return classofRaw(arg) == 'Array';
};
@@ -9525,16 +9680,19 @@
var engineV8Version = version && +version;
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
- /* global Symbol -- required for testing */
+ // eslint-disable-next-line es/no-symbol -- required for testing
return !Symbol.sham &&
// Chrome 38 Symbol has incorrect toString conversion
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
});
+ /* eslint-disable es/no-symbol -- required for testing */
+
+
var useSymbolAsUid = nativeSymbol
- /* global Symbol -- safe */
&& !Symbol.sham
&& typeof Symbol.iterator == 'symbol';
@@ -9638,12 +9796,14 @@
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
+ // eslint-disable-next-line es/no-object-keys -- safe
var objectKeys = Object.keys || function keys(O) {
return objectKeysInternal(O, enumBugKeys);
};
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = objectKeys(Properties);
@@ -9784,7 +9944,7 @@
return RegExp(s, f);
}
- var UNSUPPORTED_Y$1 = fails(function () {
+ var UNSUPPORTED_Y$2 = fails(function () {
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
var re = RE('a', 'y');
re.lastIndex = 2;
@@ -9799,15 +9959,12 @@
});
var regexpStickyHelpers = {
- UNSUPPORTED_Y: UNSUPPORTED_Y$1,
+ UNSUPPORTED_Y: UNSUPPORTED_Y$2,
BROKEN_CARET: BROKEN_CARET
};
var nativeExec = RegExp.prototype.exec;
- // This always refers to the native implementation, because the
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
- // which loads this file before patching the method.
- var nativeReplace = String.prototype.replace;
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
var patchedExec = nativeExec;
@@ -9819,19 +9976,19 @@
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
})();
- var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
// nonparticipating capturing group, copied from es5-shim's String#split patch.
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
if (PATCH) {
patchedExec = function exec(str) {
var re = this;
var lastIndex, reCopy, match, i;
- var sticky = UNSUPPORTED_Y && re.sticky;
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
var flags = regexpFlags.call(re);
var source = re.source;
var charsAdded = 0;
@@ -9901,7 +10058,6 @@
-
var SPECIES$3 = wellKnownSymbol('species');
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
@@ -9920,6 +10076,7 @@
// IE <= 11 replaces $0 with the whole match, as if it was $&
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
var REPLACE_KEEPS_$0 = (function () {
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
return 'a'.replace(/./, '$0') === '$0';
})();
@@ -9989,7 +10146,7 @@
) {
var nativeRegExpMethod = /./[SYMBOL];
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
+ if (regexp.exec === RegExp.prototype.exec) {
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
// The native String method already delegates to @@method (this
// polyfilled function), leasing to infinite recursion.
@@ -10091,13 +10248,11 @@
return regexpExec.call(R, S);
};
+ var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
var arrayPush = [].push;
var min$1 = Math.min;
var MAX_UINT32 = 0xFFFFFFFF;
- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
- var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
-
// @@split logic
fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
var internalSplit;
@@ -10180,11 +10335,11 @@
var flags = (rx.ignoreCase ? 'i' : '') +
(rx.multiline ? 'm' : '') +
(rx.unicode ? 'u' : '') +
- (SUPPORTS_Y ? 'y' : 'g');
+ (UNSUPPORTED_Y ? 'g' : 'y');
// ^(? + rx + ) is needed, in combination with some S slicing, to
// simulate the 'y' flag.
- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
+ var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
if (lim === 0) return [];
if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
@@ -10192,12 +10347,12 @@
var q = 0;
var A = [];
while (q < S.length) {
- splitter.lastIndex = SUPPORTS_Y ? q : 0;
- var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));
+ splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
+ var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
var e;
if (
z === null ||
- (e = min$1(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
+ (e = min$1(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
) {
q = advanceStringIndex(S, q, unicodeMatching);
} else {
@@ -10214,7 +10369,7 @@
return A;
}
];
- }, !SUPPORTS_Y);
+ }, UNSUPPORTED_Y);
var floor = Math.floor;
var replace = ''.replace;
@@ -10417,14 +10572,16 @@
}
});
- var nativeAssign = Object.assign;
+ // eslint-disable-next-line es/no-object-assign -- safe
+ var $assign = Object.assign;
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
var defineProperty = Object.defineProperty;
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
- var objectAssign = !nativeAssign || fails(function () {
+ var objectAssign = !$assign || fails(function () {
// should have correct order of operations (Edge bug)
- if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
+ if (descriptors && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
enumerable: true,
get: function () {
defineProperty(this, 'b', {
@@ -10436,12 +10593,12 @@
// should work with symbols and should have deterministic property order (V8 bug)
var A = {};
var B = {};
- /* global Symbol -- required for testing */
+ // eslint-disable-next-line es/no-symbol -- safe
var symbol = Symbol();
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
- return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
var T = toObject(target);
var argumentsLength = arguments.length;
@@ -10459,10 +10616,11 @@
if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
}
} return T;
- } : nativeAssign;
+ } : $assign;
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
+ // eslint-disable-next-line es/no-object-assign -- required for testing
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
assign: objectAssign
});
@@ -10582,6 +10740,7 @@
// https://tc39.es/ecma262/#sec-array.prototype.foreach
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
} : [].forEach;
for (var COLLECTION_NAME in domIterables) {
@@ -10637,6 +10796,7 @@
$__default['default'].extend($__default['default'].fn.bootstrapTable.defaults.icons, {
export: {
bootstrap3: 'glyphicon-export icon-share',
+ bootstrap5: 'bi-download',
materialize: 'file_download',
'bootstrap-table': 'icon-download'
}[$__default['default'].fn.bootstrapTable.theme] || 'fa-download'
@@ -10672,8 +10832,8 @@
_createClass(_class, [{
key: "initToolbar",
value: function initToolbar() {
- var _get2,
- _this = this;
+ var _this = this,
+ _get2;
var o = this.options;
var exportTypes = o.exportTypes;
@@ -10696,7 +10856,36 @@
this.buttons = Object.assign(this.buttons, {
export: {
- html: exportTypes.length === 1 ? "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(this.constants.buttonsClass, "\"\n aria-label=\"Export\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ") : "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"Export\"\n ").concat(this.constants.dataToggle, "=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(this.constants.html.dropdownCaret, "\n </button>\n </div>\n ")
+ html: function html() {
+ if (exportTypes.length === 1) {
+ return "\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(_this.constants.buttonsClass, "\"\n aria-label=\"Export\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ");
+ }
+
+ var html = [];
+ html.push("\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(_this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"Export\"\n ").concat(_this.constants.dataToggle, "=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(_this.constants.html.dropdownCaret, "\n </button>\n ").concat(_this.constants.html.toolbarDropdown[0], "\n "));
+
+ var _iterator = _createForOfIteratorHelper(exportTypes),
+ _step;
+
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var type = _step.value;
+
+ if (TYPE_NAME.hasOwnProperty(type)) {
+ var $item = $__default['default'](Utils.sprintf(_this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));
+ $item.attr('data-type', type);
+ html.push($item.prop('outerHTML'));
+ }
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+
+ html.push(_this.constants.html.toolbarDropdown[1], '</div>');
+ return html.join('');
+ }
}
});
}
@@ -10713,40 +10902,14 @@
return;
}
- var $menu = $__default['default'](this.constants.html.toolbarDropdown.join(''));
- var $items = this.$export;
-
- if (exportTypes.length > 1) {
- this.$export.append($menu); // themes support
-
- if ($menu.children().length) {
- $menu = $menu.children().eq(0);
- }
-
- var _iterator = _createForOfIteratorHelper(exportTypes),
- _step;
-
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var type = _step.value;
-
- if (TYPE_NAME.hasOwnProperty(type)) {
- var $item = $__default['default'](Utils.sprintf(this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));
- $item.attr('data-type', type);
- $menu.append($item);
- }
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
+ this.updateExportButton();
+ var $exportButtons = this.$export.find('[data-type]');
- $items = $menu.children();
+ if (exportTypes.length === 1) {
+ $exportButtons = this.$export.find('button');
}
- this.updateExportButton();
- $items.click(function (e) {
+ $exportButtons.click(function (e) {
e.preventDefault();
var type = $__default['default'](e.currentTarget).data('type');
var exportOptions = {
@@ -11164,9 +11327,10 @@
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global_1 =
- /* global globalThis -- safe */
+ // eslint-disable-next-line es/no-global-this -- safe
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
+ // eslint-disable-next-line no-restricted-globals -- safe
check(typeof self == 'object' && self) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
// eslint-disable-next-line no-new-func -- fallback
@@ -11182,21 +11346,23 @@
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor$1(this, V);
return !!descriptor && descriptor.enumerable;
- } : nativePropertyIsEnumerable;
+ } : $propertyIsEnumerable;
var objectPropertyIsEnumerable = {
f: f$4
@@ -11276,20 +11442,22 @@
// Thank's IE8 for his funny defineProperty
var ie8DomDefine = !descriptors && !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
return Object.defineProperty(documentCreateElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (ie8DomDefine) try {
- return nativeGetOwnPropertyDescriptor(O, P);
+ return $getOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
};
@@ -11304,16 +11472,17 @@
} return it;
};
- var nativeDefineProperty = Object.defineProperty;
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
+ var $defineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (ie8DomDefine) try {
- return nativeDefineProperty(O, P, Attributes);
+ return $defineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
@@ -11363,7 +11532,7 @@
(module.exports = function (key, value) {
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
})('versions', []).push({
- version: '3.9.1',
+ version: '3.10.1',
mode: 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});
@@ -11575,6 +11744,7 @@
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return objectKeysInternal(O, hiddenKeys);
};
@@ -11583,6 +11753,7 @@
f: f$1
};
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
var f = Object.getOwnPropertySymbols;
var objectGetOwnPropertySymbols = {
@@ -11682,6 +11853,7 @@
// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
+ // eslint-disable-next-line es/no-array-isarray -- safe
var isArray = Array.isArray || function isArray(arg) {
return classofRaw(arg) == 'Array';
};
@@ -11720,16 +11892,19 @@
var engineV8Version = version && +version;
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
- /* global Symbol -- required for testing */
+ // eslint-disable-next-line es/no-symbol -- required for testing
return !Symbol.sham &&
// Chrome 38 Symbol has incorrect toString conversion
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
});
+ /* eslint-disable es/no-symbol -- required for testing */
+
+
var useSymbolAsUid = nativeSymbol
- /* global Symbol -- safe */
&& !Symbol.sham
&& typeof Symbol.iterator == 'symbol';
@@ -11870,7 +12045,7 @@
return RegExp(s, f);
}
- var UNSUPPORTED_Y$1 = fails(function () {
+ var UNSUPPORTED_Y$2 = fails(function () {
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
var re = RE('a', 'y');
re.lastIndex = 2;
@@ -11885,15 +12060,12 @@
});
var regexpStickyHelpers = {
- UNSUPPORTED_Y: UNSUPPORTED_Y$1,
+ UNSUPPORTED_Y: UNSUPPORTED_Y$2,
BROKEN_CARET: BROKEN_CARET
};
var nativeExec = RegExp.prototype.exec;
- // This always refers to the native implementation, because the
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
- // which loads this file before patching the method.
- var nativeReplace = String.prototype.replace;
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
var patchedExec = nativeExec;
@@ -11905,19 +12077,19 @@
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
})();
- var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
// nonparticipating capturing group, copied from es5-shim's String#split patch.
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
if (PATCH) {
patchedExec = function exec(str) {
var re = this;
var lastIndex, reCopy, match, i;
- var sticky = UNSUPPORTED_Y && re.sticky;
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
var flags = regexpFlags.call(re);
var source = re.source;
var charsAdded = 0;
@@ -11987,7 +12159,6 @@
-
var SPECIES$1 = wellKnownSymbol('species');
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
@@ -12006,6 +12177,7 @@
// IE <= 11 replaces $0 with the whole match, as if it was $&
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
var REPLACE_KEEPS_$0 = (function () {
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
return 'a'.replace(/./, '$0') === '$0';
})();
@@ -12075,7 +12247,7 @@
) {
var nativeRegExpMethod = /./[SYMBOL];
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
+ if (regexp.exec === RegExp.prototype.exec) {
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
// The native String method already delegates to @@method (this
// polyfilled function), leasing to infinite recursion.
@@ -12183,13 +12355,11 @@
return regexpExec.call(R, S);
};
+ var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
var arrayPush = [].push;
var min$1 = Math.min;
var MAX_UINT32 = 0xFFFFFFFF;
- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
- var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
-
// @@split logic
fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
var internalSplit;
@@ -12272,11 +12442,11 @@
var flags = (rx.ignoreCase ? 'i' : '') +
(rx.multiline ? 'm' : '') +
(rx.unicode ? 'u' : '') +
- (SUPPORTS_Y ? 'y' : 'g');
+ (UNSUPPORTED_Y ? 'g' : 'y');
// ^(? + rx + ) is needed, in combination with some S slicing, to
// simulate the 'y' flag.
- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
+ var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
if (lim === 0) return [];
if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
@@ -12284,12 +12454,12 @@
var q = 0;
var A = [];
while (q < S.length) {
- splitter.lastIndex = SUPPORTS_Y ? q : 0;
- var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));
+ splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
+ var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
var e;
if (
z === null ||
- (e = min$1(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
+ (e = min$1(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
) {
q = advanceStringIndex(S, q, unicodeMatching);
} else {
@@ -12306,7 +12476,7 @@
return A;
}
];
- }, !SUPPORTS_Y);
+ }, UNSUPPORTED_Y);
var floor = Math.floor;
var replace = ''.replace;
@@ -12571,6 +12741,7 @@
// https://tc39.es/ecma262/#sec-array.prototype.foreach
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
} : [].forEach;
for (var COLLECTION_NAME in domIterables) {
@@ -12648,12 +12819,14 @@
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
+ // eslint-disable-next-line es/no-object-keys -- safe
var objectKeys = Object.keys || function keys(O) {
return objectKeysInternal(O, enumBugKeys);
};
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = objectKeys(Properties);
@@ -12804,6 +12977,7 @@
// `SameValue` abstract operation
// https://tc39.es/ecma262/#sec-samevalue
+ // eslint-disable-next-line es/no-object-is -- safe
var sameValue = Object.is || function is(x, y) {
// eslint-disable-next-line no-self-compare -- NaN check
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
@@ -12848,9 +13022,11 @@
cookieIds: {
sortOrder: 'bs.table.sortOrder',
sortName: 'bs.table.sortName',
+ sortPriority: 'bs.table.sortPriority',
pageNumber: 'bs.table.pageNumber',
pageList: 'bs.table.pageList',
columns: 'bs.table.columns',
+ cardView: 'bs.table.cardView',
searchText: 'bs.table.searchText',
reorderColumns: 'bs.table.reorderColumns',
filterControl: 'bs.table.filterControl',
@@ -13106,7 +13282,7 @@
cookieSecure: null,
cookieSameSite: 'Lax',
cookieIdTable: '',
- cookiesEnabled: ['bs.table.sortOrder', 'bs.table.sortName', 'bs.table.pageNumber', 'bs.table.pageList', 'bs.table.columns', 'bs.table.searchText', 'bs.table.filterControl', 'bs.table.filterBy', 'bs.table.reorderColumns'],
+ cookiesEnabled: ['bs.table.sortOrder', 'bs.table.sortName', 'bs.table.sortPriority', 'bs.table.pageNumber', 'bs.table.pageList', 'bs.table.columns', 'bs.table.searchText', 'bs.table.filterControl', 'bs.table.filterBy', 'bs.table.reorderColumns', 'bs.table.cardView'],
cookieStorage: 'cookieStorage',
// localStorage, sessionStorage, customStorage
cookieCustomStorageGet: null,
@@ -13232,75 +13408,97 @@
if (this.options.sortName === undefined || this.options.sortOrder === undefined) {
UtilsCookie.deleteCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortName);
UtilsCookie.deleteCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortOrder);
- return;
+ } else {
+ this.options.sortPriority = null;
+ UtilsCookie.deleteCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortPriority);
+ UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortOrder, this.options.sortOrder);
+ UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortName, this.options.sortName);
}
-
- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortOrder, this.options.sortOrder);
- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortName, this.options.sortName);
}
}, {
- key: "onPageNumber",
- value: function onPageNumber() {
+ key: "onMultipleSort",
+ value: function onMultipleSort() {
var _get5;
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
args[_key4] = arguments[_key4];
}
- (_get5 = _get(_getPrototypeOf(_class.prototype), "onPageNumber", this)).call.apply(_get5, [this].concat(args));
+ (_get5 = _get(_getPrototypeOf(_class.prototype), "onMultipleSort", this)).call.apply(_get5, [this].concat(args));
- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
+ if (this.options.sortPriority === undefined) {
+ UtilsCookie.deleteCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortPriority);
+ } else {
+ this.options.sortName = undefined;
+ this.options.sortOrder = undefined;
+ UtilsCookie.deleteCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortName);
+ UtilsCookie.deleteCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortOrder);
+ UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortPriority, JSON.stringify(this.options.sortPriority));
+ }
}
}, {
- key: "onPageListChange",
- value: function onPageListChange() {
+ key: "onPageNumber",
+ value: function onPageNumber() {
var _get6;
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
args[_key5] = arguments[_key5];
}
- (_get6 = _get(_getPrototypeOf(_class.prototype), "onPageListChange", this)).call.apply(_get6, [this].concat(args));
+ (_get6 = _get(_getPrototypeOf(_class.prototype), "onPageNumber", this)).call.apply(_get6, [this].concat(args));
- UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageList, this.options.pageSize);
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
}
}, {
- key: "onPagePre",
- value: function onPagePre() {
+ key: "onPageListChange",
+ value: function onPageListChange() {
var _get7;
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
args[_key6] = arguments[_key6];
}
- (_get7 = _get(_getPrototypeOf(_class.prototype), "onPagePre", this)).call.apply(_get7, [this].concat(args));
+ (_get7 = _get(_getPrototypeOf(_class.prototype), "onPageListChange", this)).call.apply(_get7, [this].concat(args));
+ UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageList, this.options.pageSize);
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
}
}, {
- key: "onPageNext",
- value: function onPageNext() {
+ key: "onPagePre",
+ value: function onPagePre() {
var _get8;
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
args[_key7] = arguments[_key7];
}
- (_get8 = _get(_getPrototypeOf(_class.prototype), "onPageNext", this)).call.apply(_get8, [this].concat(args));
+ (_get8 = _get(_getPrototypeOf(_class.prototype), "onPagePre", this)).call.apply(_get8, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
}
}, {
- key: "_toggleColumn",
- value: function _toggleColumn() {
+ key: "onPageNext",
+ value: function onPageNext() {
var _get9;
for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
args[_key8] = arguments[_key8];
}
- (_get9 = _get(_getPrototypeOf(_class.prototype), "_toggleColumn", this)).call.apply(_get9, [this].concat(args));
+ (_get9 = _get(_getPrototypeOf(_class.prototype), "onPageNext", this)).call.apply(_get9, [this].concat(args));
+
+ UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
+ }
+ }, {
+ key: "_toggleColumn",
+ value: function _toggleColumn() {
+ var _get10;
+
+ for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
+ args[_key9] = arguments[_key9];
+ }
+
+ (_get10 = _get(_getPrototypeOf(_class.prototype), "_toggleColumn", this)).call.apply(_get10, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.columns, JSON.stringify(this.getVisibleColumns().map(function (column) {
return column.field;
@@ -13309,18 +13507,25 @@
}, {
key: "_toggleAllColumns",
value: function _toggleAllColumns() {
- var _get10;
+ var _get11;
- for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
- args[_key9] = arguments[_key9];
+ for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
+ args[_key10] = arguments[_key10];
}
- (_get10 = _get(_getPrototypeOf(_class.prototype), "_toggleAllColumns", this)).call.apply(_get10, [this].concat(args));
+ (_get11 = _get(_getPrototypeOf(_class.prototype), "_toggleAllColumns", this)).call.apply(_get11, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.columns, JSON.stringify(this.getVisibleColumns().map(function (column) {
return column.field;
})));
}
+ }, {
+ key: "toggleView",
+ value: function toggleView() {
+ _get(_getPrototypeOf(_class.prototype), "toggleView", this).call(this);
+
+ UtilsCookie.setCookie(this, UtilsCookie.cookieIds.cardView, this.options.cardView);
+ }
}, {
key: "selectPage",
value: function selectPage(page) {
@@ -13342,17 +13547,17 @@
}, {
key: "initHeader",
value: function initHeader() {
- var _get11;
+ var _get12;
if (this.options.reorderableColumns) {
this.columnsSortOrder = JSON.parse(UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.reorderColumns));
}
- for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
- args[_key10] = arguments[_key10];
+ for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
+ args[_key11] = arguments[_key11];
}
- (_get11 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get11, [this].concat(args));
+ (_get12 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get12, [this].concat(args));
}
}, {
key: "persistReorderColumnsState",
@@ -13362,13 +13567,13 @@
}, {
key: "filterBy",
value: function filterBy() {
- var _get12;
+ var _get13;
- for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
- args[_key11] = arguments[_key11];
+ for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
+ args[_key12] = arguments[_key12];
}
- (_get12 = _get(_getPrototypeOf(_class.prototype), "filterBy", this)).call.apply(_get12, [this].concat(args));
+ (_get13 = _get(_getPrototypeOf(_class.prototype), "filterBy", this)).call.apply(_get13, [this].concat(args));
UtilsCookie.setCookie(this, UtilsCookie.cookieIds.filterBy, JSON.stringify(this.filterColumns));
}
@@ -13390,9 +13595,11 @@
var sortOrderCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortOrder);
var sortOrderNameCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortName);
+ var sortPriorityCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.sortPriority);
var pageNumberCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.pageNumber);
var pageListCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.pageList);
var searchTextCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.searchText);
+ var cardViewCookie = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.cardView);
var columnsCookieValue = UtilsCookie.getCookie(this, this.options.cookieIdTable, UtilsCookie.cookieIds.columns);
if (typeof columnsCookieValue === 'boolean' && !columnsCookieValue) {
@@ -13405,18 +13612,42 @@
columnsCookie = JSON.parse(columnsCookieValue);
} catch (e) {
throw new Error('Could not parse the json of the columns cookie!', columnsCookieValue);
+ }
+
+ try {
+ sortPriorityCookie = JSON.parse(sortPriorityCookie);
+ } catch (e) {
+ throw new Error('Could not parse the json of the sortPriority cookie!', sortPriorityCookie);
} // sortOrder
- this.options.sortOrder = sortOrderCookie ? sortOrderCookie : this.options.sortOrder; // sortName
+ this.options.sortOrder = undefined; // sortName
+
+ this.options.sortName = undefined;
+
+ if (!sortPriorityCookie) {
+ // sortOrder
+ this.options.sortOrder = sortOrderCookie ? sortOrderCookie : this.options.sortOrder; // sortName
+
+ this.options.sortName = sortOrderNameCookie ? sortOrderNameCookie : this.options.sortName;
+ } // sortPriority
+
+
+ this.options.sortPriority = sortPriorityCookie ? sortPriorityCookie : this.options.sortPriority;
+
+ if (this.options.sortOrder || this.options.sortName) {
+ // sortPriority
+ this.options.sortPriority = null;
+ } // pageNumber
- this.options.sortName = sortOrderNameCookie ? sortOrderNameCookie : this.options.sortName; // pageNumber
this.options.pageNumber = pageNumberCookie ? +pageNumberCookie : this.options.pageNumber; // pageSize
this.options.pageSize = pageListCookie ? pageListCookie === this.options.formatAllRows() ? pageListCookie : +pageListCookie : this.options.pageSize; // searchText
- this.options.searchText = searchTextCookie ? searchTextCookie : '';
+ this.options.searchText = searchTextCookie ? searchTextCookie : ''; // cardView
+
+ this.options.cardView = cardViewCookie === 'true' ? cardViewCookie : false;
if (columnsCookie) {
var _iterator = _createForOfIteratorHelper(this.columns),
@@ -13425,7 +13656,7 @@
try {
var _loop = function _loop() {
var column = _step.value;
- column.visible = columnsCookie.filter(function (columnField) {
+ var filteredColumns = columnsCookie.filter(function (columnField) {
if (_this.isSelectionColumn(column)) {
return true;
}
@@ -13441,7 +13672,8 @@
}
return columnField === column.field;
- }).length > 0 || !column.switchable;
+ });
+ column.visible = (filteredColumns.length > 0 || !column.switchable) && column.visible;
};
for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -13717,9 +13949,10 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global_1 =
- /* global globalThis -- safe */
+ // eslint-disable-next-line es/no-global-this -- safe
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
+ // eslint-disable-next-line no-restricted-globals -- safe
check(typeof self == 'object' && self) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
// eslint-disable-next-line no-new-func -- fallback
@@ -13735,21 +13968,23 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor$1(this, V);
return !!descriptor && descriptor.enumerable;
- } : nativePropertyIsEnumerable;
+ } : $propertyIsEnumerable;
var objectPropertyIsEnumerable = {
f: f$4
@@ -13829,20 +14064,22 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// Thank's IE8 for his funny defineProperty
var ie8DomDefine = !descriptors && !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
return Object.defineProperty(documentCreateElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (ie8DomDefine) try {
- return nativeGetOwnPropertyDescriptor(O, P);
+ return $getOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
};
@@ -13857,16 +14094,17 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
} return it;
};
- var nativeDefineProperty = Object.defineProperty;
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
+ var $defineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (ie8DomDefine) try {
- return nativeDefineProperty(O, P, Attributes);
+ return $defineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
@@ -13916,7 +14154,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
(module.exports = function (key, value) {
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
})('versions', []).push({
- version: '3.9.1',
+ version: '3.10.1',
mode: 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});
@@ -14128,6 +14366,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return objectKeysInternal(O, hiddenKeys);
};
@@ -14136,6 +14375,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
f: f$1
};
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
var f = Object.getOwnPropertySymbols;
var objectGetOwnPropertySymbols = {
@@ -14235,6 +14475,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
+ // eslint-disable-next-line es/no-array-isarray -- safe
var isArray = Array.isArray || function isArray(arg) {
return classofRaw(arg) == 'Array';
};
@@ -14273,16 +14514,19 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
var engineV8Version = version && +version;
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
- /* global Symbol -- required for testing */
+ // eslint-disable-next-line es/no-symbol -- required for testing
return !Symbol.sham &&
// Chrome 38 Symbol has incorrect toString conversion
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
});
+ /* eslint-disable es/no-symbol -- required for testing */
+
+
var useSymbolAsUid = nativeSymbol
- /* global Symbol -- safe */
&& !Symbol.sham
&& typeof Symbol.iterator == 'symbol';
@@ -14480,12 +14724,14 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
+ // eslint-disable-next-line es/no-object-keys -- safe
var objectKeys = Object.keys || function keys(O) {
return objectKeysInternal(O, enumBugKeys);
};
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = objectKeys(Properties);
@@ -14764,8 +15010,11 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
if (top > start && top <= end) {
// ensure clone and source column widths are the same
- this.$stickyHeader.find('tr:eq(0)').find('th').each(function (index, el) {
- $__default['default'](el).css('min-width', _this4.$header.find('tr:eq(0)').find('th').eq(index).css('width'));
+ this.$stickyHeader.find('tr').each(function (indexRows, rows) {
+ var columns = $__default['default'](rows).find('th');
+ columns.each(function (indexColumns, celd) {
+ $__default['default'](celd).css('min-width', _this4.$header.find("tr:eq(".concat(indexRows, ")")).find("th:eq(".concat(indexColumns, ")")).css('width'));
+ });
}); // match bootstrap table style
this.$stickyContainer.show().addClass('fix-sticky fixed-table-container'); // stick it in position
@@ -15098,9 +15347,10 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global_1 =
- /* global globalThis -- safe */
+ // eslint-disable-next-line es/no-global-this -- safe
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
+ // eslint-disable-next-line no-restricted-globals -- safe
check(typeof self == 'object' && self) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
// eslint-disable-next-line no-new-func -- fallback
@@ -15116,21 +15366,23 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor$1(this, V);
return !!descriptor && descriptor.enumerable;
- } : nativePropertyIsEnumerable;
+ } : $propertyIsEnumerable;
var objectPropertyIsEnumerable = {
f: f$4
@@ -15210,20 +15462,22 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// Thank's IE8 for his funny defineProperty
var ie8DomDefine = !descriptors && !fails(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
return Object.defineProperty(documentCreateElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (ie8DomDefine) try {
- return nativeGetOwnPropertyDescriptor(O, P);
+ return $getOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
};
@@ -15238,16 +15492,17 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
} return it;
};
- var nativeDefineProperty = Object.defineProperty;
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
+ var $defineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (ie8DomDefine) try {
- return nativeDefineProperty(O, P, Attributes);
+ return $defineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
@@ -15297,7 +15552,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
(module.exports = function (key, value) {
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
})('versions', []).push({
- version: '3.9.1',
+ version: '3.10.1',
mode: 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});
@@ -15509,6 +15764,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return objectKeysInternal(O, hiddenKeys);
};
@@ -15517,6 +15773,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
f: f$1
};
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
var f = Object.getOwnPropertySymbols;
var objectGetOwnPropertySymbols = {
@@ -15654,10 +15911,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
};
var nativeExec = RegExp.prototype.exec;
- // This always refers to the native implementation, because the
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
- // which loads this file before patching the method.
- var nativeReplace = String.prototype.replace;
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
var patchedExec = nativeExec;
@@ -15766,16 +16020,19 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
var engineV8Version = version && +version;
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
- /* global Symbol -- required for testing */
+ // eslint-disable-next-line es/no-symbol -- required for testing
return !Symbol.sham &&
// Chrome 38 Symbol has incorrect toString conversion
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
});
+ /* eslint-disable es/no-symbol -- required for testing */
+
+
var useSymbolAsUid = nativeSymbol
- /* global Symbol -- safe */
&& !Symbol.sham
&& typeof Symbol.iterator == 'symbol';
@@ -15800,7 +16057,6 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
-
var SPECIES$2 = wellKnownSymbol('species');
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
@@ -15819,6 +16075,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// IE <= 11 replaces $0 with the whole match, as if it was $&
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
var REPLACE_KEEPS_$0 = (function () {
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
return 'a'.replace(/./, '$0') === '$0';
})();
@@ -15888,7 +16145,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
) {
var nativeRegExpMethod = /./[SYMBOL];
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
+ if (regexp.exec === RegExp.prototype.exec) {
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
// The native String method already delegates to @@method (this
// polyfilled function), leasing to infinite recursion.
@@ -15921,6 +16178,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// `SameValue` abstract operation
// https://tc39.es/ecma262/#sec-samevalue
+ // eslint-disable-next-line es/no-object-is -- safe
var sameValue = Object.is || function is(x, y) {
// eslint-disable-next-line no-self-compare -- NaN check
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
@@ -15975,6 +16233,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
+ // eslint-disable-next-line es/no-object-keys -- safe
var objectKeys = Object.keys || function keys(O) {
return objectKeysInternal(O, enumBugKeys);
};
@@ -15985,14 +16244,16 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
return Object(requireObjectCoercible(argument));
};
- var nativeAssign = Object.assign;
+ // eslint-disable-next-line es/no-object-assign -- safe
+ var $assign = Object.assign;
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
var defineProperty = Object.defineProperty;
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
- var objectAssign = !nativeAssign || fails(function () {
+ var objectAssign = !$assign || fails(function () {
// should have correct order of operations (Edge bug)
- if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
+ if (descriptors && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
enumerable: true,
get: function () {
defineProperty(this, 'b', {
@@ -16004,12 +16265,12 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// should work with symbols and should have deterministic property order (V8 bug)
var A = {};
var B = {};
- /* global Symbol -- required for testing */
+ // eslint-disable-next-line es/no-symbol -- safe
var symbol = Symbol();
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
- return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
var T = toObject(target);
var argumentsLength = arguments.length;
@@ -16027,10 +16288,11 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
}
} return T;
- } : nativeAssign;
+ } : $assign;
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
+ // eslint-disable-next-line es/no-object-assign -- required for testing
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
assign: objectAssign
});
@@ -16087,6 +16349,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
+ // eslint-disable-next-line es/no-array-isarray -- safe
var isArray = Array.isArray || function isArray(arg) {
return classofRaw(arg) == 'Array';
};
@@ -16177,6 +16440,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = objectKeys(Properties);
@@ -16422,6 +16686,8 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
}
});
+ /* eslint-disable es/no-array-prototype-indexof -- required for testing */
+
var $indexOf = arrayIncludes.indexOf;
@@ -16572,7 +16838,7 @@ if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")
},
bootstrap5: {
icons: {
- advancedSearchIcon: 'fa-chevron-down'
+ advancedSearchIcon: 'bi-chevron-down'
},
html: {
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
diff --git a/public/mix-manifest.json b/public/mix-manifest.json
index 8c393d17f3..038314dd48 100644
--- a/public/mix-manifest.json
+++ b/public/mix-manifest.json
@@ -1,5 +1,5 @@
{
- "/js/build/app.js": "/js/build/app.js?id=202aad1c623e7f3c560c",
+ "/js/build/app.js": "/js/build/app.js?id=16ac5c8f218827150ce0",
"/css/dist/skins/skin-blue.css": "/css/dist/skins/skin-blue.css?id=83e39e254b7f9035eddc",
"/css/build/overrides.css": "/css/build/overrides.css?id=b1866ec98d44c0a8ceea",
"/css/build/app.css": "/css/build/app.css?id=61d5535cb27cce41d422",
@@ -18,15 +18,15 @@
"/css/dist/skins/skin-green.css": "/css/dist/skins/skin-green.css?id=efda2335fa5243175850",
"/css/dist/skins/skin-contrast.css": "/css/dist/skins/skin-contrast.css?id=6a9d0ac448c28b88e5d6",
"/css/dist/skins/skin-red.css": "/css/dist/skins/skin-red.css?id=c24716a423d375902723",
- "/css/dist/all.css": "/css/dist/all.css?id=138874c5ffe57b679997",
+ "/css/dist/all.css": "/css/dist/all.css?id=3480eded2be4cd65a83e",
"/css/blue.png": "/css/blue.png?id=e83a6c29e04fe851f212",
"/css/[email protected]": "/css/[email protected]?id=51135dd4d24f88f5de0b",
"/css/dist/signature-pad.css": "/css/dist/signature-pad.css?id=6a89d3cd901305e66ced",
"/css/dist/signature-pad.min.css": "/css/dist/signature-pad.min.css?id=6a89d3cd901305e66ced",
- "/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=93c24b4c89490bbfd73e",
+ "/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=810d7e520c3057ee500e",
"/js/build/vendor.js": "/js/build/vendor.js?id=651427cc4b45d8e68d0c",
- "/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=867755a1544f6c0ea828",
- "/js/dist/all.js": "/js/dist/all.js?id=78b490e0623f67ef071d",
+ "/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=0f09ee116517a9573dd0",
+ "/js/dist/all.js": "/js/dist/all.js?id=fbc9a3fb41192f2724e8",
"/css/dist/skins/skin-green.min.css": "/css/dist/skins/skin-green.min.css?id=efda2335fa5243175850",
"/css/dist/skins/skin-green-dark.min.css": "/css/dist/skins/skin-green-dark.min.css?id=6e35fb4cb2f1063b3047",
"/css/dist/skins/skin-black.min.css": "/css/dist/skins/skin-black.min.css?id=ec96c42439cdeb022133",