10 lines
7.8 KiB
JavaScript
10 lines
7.8 KiB
JavaScript
|
/**
|
||
|
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
|
||
|
*
|
||
|
* @version v1.14.2
|
||
|
* @homepage https://bootstrap-table.com
|
||
|
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
|
||
|
* @license MIT
|
||
|
*/
|
||
|
|
||
|
(function(a,b){if('function'==typeof define&&define.amd)define([],b);else if('undefined'!=typeof exports)b();else{b(),a.bootstrapTableToolbar={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){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!(b&&c.length===b));d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h['return']&&h['return']()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}(),e=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}}(),f=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(g){var h=g.fn.bootstrapTable.utils,i={3:{icons:{advancedSearchIcon:'glyphicon-chevron-down'},html:{modalHeader:'\n <div class="modal-header">\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n <h4 class="modal-title">%s</h4>\n </div>\n '}},4:{icons:{advancedSearchIcon:'fa-chevron-down'},html:{modalHeader:'\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">×</span>\n </button>\n </div>\n '}}}[h.bootstrapVersion];g.extend(g.fn.bootstrapTable.defaults,{advancedSearch:!1,idForm:'advancedSearch',actionForm:'',idTable:void 0,onColumnAdvancedSearch:function(){return!1}}),g.extend(g.fn.bootstrapTable.defaults.icons,{advancedSearchIcon:i.icons.advancedSearchIcon}),g.extend(g.fn.bootstrapTable.Constructor.EVENTS,{"column-advanced-search.bs.table":'onColumnAdvancedSearch'}),g.extend(g.fn.bootstrapTable.locales,{formatAdvancedSearch:function(){return'Advanced search'},formatAdvancedCloseButton:function(){return'Close'}}),g.extend(g.fn.bootstrapTable.defaults,g.fn.bootstrapTable.locales),g.BootstrapTable=function(j){function k(){return a(this,k),b(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return c(k,j),e(k,[{key:'initToolbar',value:function(){var a=this,b=this.options;this.showToolbar=this.showToolbar||b.search&&b.advancedSearch&&b.idTable,f(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),'initToolbar',this).call(this),b.search&&b.advancedSearch&&b.idTable&&(this.$toolbar.find('>.btn-group').append('\n <button class="btn btn-default'+h.sprintf(' btn-%s',b.buttonsClass)+h.sprintf(' btn-%s',b.iconSize)+'"\n type="button"\n name="advancedSearch"\n aria-label="advanced search"\n title="'+b.formatAdvancedSearch()+'">\n <i class="'+b.iconsPrefix+' '+b.icons.advancedSearchIcon+'"></i>\n </button>\n '),this.$toolbar.find('button[name="advancedSearch"]').off('click').on('click',function(){return a.showAvdSearch()}))}},{key:'showAvdSearch',value:function(){var a=this,b=this.options;if(!g('#avdSearchModal_'+b.idTable).hasClass('
|