UNPKG

3.23 kBJavaScriptView Raw
1/**
2 * bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
3 *
4 * @version v1.14.2
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableSemantic={exports:{}}.exports}})(this,function(){'use strict';function a(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function b(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function c(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var d=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),e=function a(b,c,d){null===b&&(b=Function.prototype);var e=Object.getOwnPropertyDescriptor(b,c);if(e===void 0){var f=Object.getPrototypeOf(b);return null===f?void 0:a(f,c,d)}if('value'in e)return e.value;var g=e.get;return void 0===g?void 0:g.call(d)};(function(f){f.extend(f.fn.bootstrapTable.defaults,{classes:'ui selectable celled table',buttonsPrefix:'',buttonsClass:'ui button'}),f.BootstrapTable=function(f){function g(){return a(this,g),b(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return c(g,f),d(g,[{key:'initConstants',value:function(){e(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),'initConstants',this).call(this),this.constants.theme='semantic',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.toobarDropdow=['<div class="menu">','</div>'],this.constants.html.toobarDropdowItem='<label class="item">%s</label>',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" href="#">%s</a>'}},{key:'initToolbar',value:function(){e(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),'initToolbar',this).call(this),this.options.showColumns&&this.$toolbar.find('.button.dropdown').dropdown()}},{key:'initPagination',value:function(){e(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),'initPagination',this).call(this),this.options.pagination&&!this.options.onlyInfoPagination&&this.$pagination.find('.dropdown').dropdown()}}]),g}(f.BootstrapTable)})(jQuery)});
\No newline at end of file