You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/BookingJieFeng/Content/hplus/js/plugins/bootstrap-table/themes/foundation/bootstrap-table-foundation....

10 lines
4.1 KiB
JavaScript

3 years ago
/**
* 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.bootstrapTableFoundation={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:'table hover',buttonsPrefix:'',buttonsClass:'button'}),f.BootstrapTable=function(g){function h(){return a(this,h),b(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return c(h,g),d(h,[{key:'initConstants',value:function(){e(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),'initConstants',this).call(this),this.constants.theme='foundation',this.constants.classes.buttonsGroup='button-group',this.constants.classes.buttonsDropdown='button dropdown-container',this.constants.classes.paginationDropdown='',this.constants.classes.dropdownActive='is-active',this.constants.classes.paginationActive='current',this.constants.html.toobarDropdow=['<ul class="dropdown-pane" id="toolbar-dropdown" data-dropdown><ul class="vertical menu">','</ul></div>'],this.constants.html.toobarDropdowItem='<li><label class="dropdown-item">%s</label></li>',this.constants.html.pageDropdown=['<ul class="dropdown-pane" id="page-list-dropdown" data-dropdown><ul class="vertical menu">','</ul></ul>'],this.constants.html.pageDropdownItem='<li class="dropdown-item %s"><a href="#">%s</a></li>',this.constants.html.dropdownCaret='<i class="fa fa-angle-down"></i>',this.constants.html.pagination=['<ul class="pagination%s">','</ul>'],this.constants.html.paginationItem='<li><a class="page-item%s" href="#">%s</a></li>'}},{key:'initToolbar',value:function(){if(e(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),'initToolbar',this).call(this),this.options.showColumns){this.$toolbar.find('.keep-open').attr('data-toggle','toolbar-dropdown');var a=this.$toolbar.find('.dropdown-pane').attr('data-position','bottom').attr('data-alignment','right');new window.Foundation.Dropdown(a),this._initDropdown()}}},{key:'initPagination',value:function(){if(e(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),'initPagination',this).call(this),this.options.pagination&&!this.options.onlyInfoPagination){this.$pagination.find('.dropdown-toggle').attr('data-toggle','page-list-dropdown');var a=this.$pagination.find('.dropdown-pane').attr('data-position','top').attr('data-alignment','left');new window.Foundation.Dropdown(a)}}},{key:'_initDropdown',value:function(){var a=this.$container.find('.dropdown-container');a.off('click').on('click',function(b){b.stopPropagation(),a.find('.dropdown-pane').foundation('toggle')}),f(document).off('click.bs.dropdown.foundation').on('click.bs.dropdown.foundation',function(){a.find('.dropdown-pane').foundation('close')})}}]),h}(f.BootstrapTable)})(jQuery)});