11 lines
5.1 KiB
JavaScript
11 lines
5.1 KiB
JavaScript
/**
|
|
* bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
|
|
*
|
|
* @version v1.23.1
|
|
* @homepage https://bootstrap-table.com
|
|
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
|
|
* @license MIT
|
|
*/
|
|
|
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("core-js/modules/es.array.find.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.string.includes.js"),require("jquery")):"function"==typeof define&&define.amd?define(["core-js/modules/es.array.find.js","core-js/modules/es.array.includes.js","core-js/modules/es.object.to-string.js","core-js/modules/es.string.includes.js","jquery"],e):e(null,null,null,null,(t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t,e,n,o,r){"use strict";function i(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function s(t,e,n){return e&&function(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var o=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(o){var r=Object.getOwnPropertyDescriptor(o,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},a.apply(null,arguments)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function f(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}r.fn.bootstrapTable.utils.extend(r.fn.bootstrapTable.defaults,{classes:"table highlight",buttonsPrefix:"",buttonsClass:"waves-effect waves-light btn"}),r.fn.bootstrapTable.theme="materialize",r.BootstrapTable=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),s(e,[{key:"initConstants",value:function(){a(l(e.prototype),"initConstants",this).call(this),this.constants.classes.buttonsGroup="button-group",this.constants.classes.buttonsDropdown="",this.constants.classes.input="input-field",this.constants.classes.input="",this.constants.classes.paginationDropdown="",this.constants.classes.buttonActive="green",this.constants.html.toolbarDropdown=['<ul class="dropdown-content">',"</ul>"],this.constants.html.toolbarDropdownItem='<li class="dropdown-item-marker"><label>%s</label></li>',this.constants.html.toolbarDropdownSeparator='<li class="divider" tabindex="-1"></li>',this.constants.html.pageDropdown=['<ul id="pagination-list-id" class="dropdown-content">',"</ul>"],this.constants.html.pageDropdownItem='<li><a class="%s" href="#">%s</a></li>',this.constants.html.dropdownCaret='<i class="material-icons">arrow_drop_down</i>',this.constants.html.pagination=['<ul class="pagination%s">',"</ul>"],this.constants.html.paginationItem='<li class="waves-effect page-item%s" aria-label="%s"><a href="#">%s</a></li>',this.constants.html.icon='<i class="%s">%s</i>',this.constants.html.inputGroup="%s%s"}},{key:"initToolbar",value:function(){a(l(e.prototype),"initToolbar",this).call(this),this.handleToolbar()}},{key:"handleToolbar",value:function(){this.$toolbar.find(".dropdown-toggle").length&&this.$toolbar.find(".dropdown-toggle").each((function(t,e){if(r(e).next().length){var n="toolbar-columns-id".concat(t);r(e).next().attr("id",n),r(e).attr("data-target",n).dropdown({alignment:"right",constrainWidth:!1,closeOnClick:!1})}}))}},{key:"initPagination",value:function(){a(l(e.prototype),"initPagination",this).call(this),this.options.pagination&&this.paginationParts.includes("pageSize")&&this.$pagination.find(".dropdown-toggle").attr("data-target",this.$pagination.find(".dropdown-content").attr("id")).dropdown()}}])}(r.BootstrapTable)}));
|