11 lines
4.6 KiB
JavaScript
11 lines
4.6 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=u(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,l()?Reflect.construct(e,n||[],u(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,p(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=u(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 u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function p(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:"ui selectable celled table unstackable",buttonsPrefix:"",buttonsClass:"ui button"}),r.fn.bootstrapTable.theme="semantic",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&&c(t,e)}(e,t),s(e,[{key:"initConstants",value:function(){a(u(e.prototype),"initConstants",this).call(this),this.constants.classes.buttonsGroup="ui buttons",this.constants.classes.buttonsDropdown="ui button dropdown",this.constants.classes.inputGroup="ui input",this.constants.classes.paginationDropdown="ui dropdown",this.constants.html.toolbarDropdown=['<div class="menu">',"</div>"],this.constants.html.toolbarDropdownItem='<label class="item dropdown-item-marker">%s</label>',this.constants.html.toolbarDropdownSeparator='<div class="divider"></div>',this.constants.html.pageDropdown=['<div class="menu">',"</div>"],this.constants.html.pageDropdownItem='<a class="item %s" href="#">%s</a>',this.constants.html.dropdownCaret='<i class="dropdown icon"></i>',this.constants.html.pagination=['<div class="ui pagination menu%s">',"</div>"],this.constants.html.paginationItem='<a class="page-item item%s" aria-label="%s" href="#">%s</a>',this.constants.html.inputGroup='<div class="ui action input">%s%s</div>'}},{key:"initToolbar",value:function(){a(u(e.prototype),"initToolbar",this).call(this),this.handleToolbar()}},{key:"handleToolbar",value:function(){this.$toolbar.find(".button.dropdown").dropdown()}},{key:"initPagination",value:function(){a(u(e.prototype),"initPagination",this).call(this),this.options.pagination&&this.paginationParts.includes("pageSize")&&this.$pagination.find(".dropdown").dropdown()}}])}(r.BootstrapTable)}));
|