bootstrap-table-semantic.min.js 17 KB

12345678910
  1. /**
  2. * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
  3. *
  4. * @version v1.20.1
  5. * @homepage https://bootstrap-table.com
  6. * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
  7. * @license MIT
  8. */
  9. !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=n(t);function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function u(t,n){return u=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},u(t,n)}function c(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function a(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=i(t);if(n){var o=i(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return c(this,e)}}function f(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=i(t)););return t}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,e){var r=f(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(arguments.length<3?t:e):o.value}},s.apply(this,arguments)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t,n){return t(n={exports:{}},n.exports),n.exports}var d,y,b=function(t){return t&&t.Math==Math&&t},h=b("object"==typeof globalThis&&globalThis)||b("object"==typeof window&&window)||b("object"==typeof self&&self)||b("object"==typeof l&&l)||function(){return this}()||Function("return this")(),v=function(t){try{return!!t()}catch(t){return!0}},g=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=!v((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),w=Function.prototype.call,O=m?w.bind(w):function(){return w.apply(w,arguments)},j={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,P={f:S&&!j.call({1:2},1)?function(t){var n=S(this,t);return!!n&&n.enumerable}:j},T=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},E=Function.prototype,x=E.bind,A=E.call,R=m&&x.bind(A,A),k=m?function(t){return t&&R(t)}:function(t){return t&&function(){return A.apply(t,arguments)}},C=k({}.toString),D=k("".slice),F=function(t){return D(C(t),8,-1)},I=h.Object,_=k("".split),M=v((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==F(t)?_(t,""):I(t)}:I,z=h.TypeError,G=function(t){if(null==t)throw z("Can't call method on "+t);return t},L=function(t){return M(G(t))},N=function(t){return"function"==typeof t},B=function(t){return"object"==typeof t?null!==t:N(t)},q=function(t){return N(t)?t:void 0},W=function(t,n){return arguments.length<2?q(h[t]):h[t]&&h[t][n]},U=k({}.isPrototypeOf),$=W("navigator","userAgent")||"",X=h.process,K=h.Deno,Q=X&&X.versions||K&&K.version,V=Q&&Q.v8;V&&(y=(d=V.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!y&&$&&(!(d=$.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=$.match(/Chrome\/(\d+)/))&&(y=+d[1]);var Y=y,H=!!Object.getOwnPropertySymbols&&!v((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),J=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=h.Object,tt=J?function(t){return"symbol"==typeof t}:function(t){var n=W("Symbol");return N(n)&&U(n.prototype,Z(t))},nt=h.String,et=h.TypeError,rt=function(t){if(N(t))return t;throw et(function(t){try{return nt(t)}catch(t){return"Object"}}(t)+" is not a function")},ot=h.TypeError,it=Object.defineProperty,ut=function(t,n){try{it(h,t,{value:n,configurable:!0,writable:!0})}catch(e){h[t]=n}return n},ct="__core-js_shared__",at=h[ct]||ut(ct,{}),ft=p((function(t){(t.exports=function(t,n){return at[t]||(at[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.22.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),st=h.Object,lt=function(t){return st(G(t))},pt=k({}.hasOwnProperty),dt=Object.hasOwn||function(t,n){return pt(lt(t),n)},yt=0,bt=Math.random(),ht=k(1..toString),vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ht(++yt+bt,36)},gt=ft("wks"),mt=h.Symbol,wt=mt&&mt.for,Ot=J?mt:mt&&mt.withoutSetter||vt,jt=function(t){if(!dt(gt,t)||!H&&"string"!=typeof gt[t]){var n="Symbol."+t;H&&dt(mt,t)?gt[t]=mt[t]:gt[t]=J&&wt?wt(n):Ot(n)}return gt[t]},St=h.TypeError,Pt=jt("toPrimitive"),Tt=function(t,n){if(!B(t)||tt(t))return t;var e,r,o=null==(e=t[Pt])?void 0:rt(e);if(o){if(void 0===n&&(n="default"),r=O(o,t,n),!B(r)||tt(r))return r;throw St("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&N(e=t.toString)&&!B(r=O(e,t)))return r;if(N(e=t.valueOf)&&!B(r=O(e,t)))return r;if("string"!==n&&N(e=t.toString)&&!B(r=O(e,t)))return r;throw ot("Can't convert object to primitive value")}(t,n)},Et=function(t){var n=Tt(t,"string");return tt(n)?n:n+""},xt=h.document,At=B(xt)&&B(xt.createElement),Rt=function(t){return At?xt.createElement(t):{}},kt=!g&&!v((function(){return 7!=Object.defineProperty(Rt("div"),"a",{get:function(){return 7}}).a})),Ct=Object.getOwnPropertyDescriptor,Dt={f:g?Ct:function(t,n){if(t=L(t),n=Et(n),kt)try{return Ct(t,n)}catch(t){}if(dt(t,n))return T(!O(P.f,t,n),t[n])}},Ft=g&&v((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),It=h.String,_t=h.TypeError,Mt=function(t){if(B(t))return t;throw _t(It(t)+" is not an object")},zt=h.TypeError,Gt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,Nt="enumerable",Bt="configurable",qt="writable",Wt={f:g?Ft?function(t,n,e){if(Mt(t),n=Et(n),Mt(e),"function"==typeof t&&"prototype"===n&&"value"in e&&qt in e&&!e.writable){var r=Lt(t,n);r&&r.writable&&(t[n]=e.value,e={configurable:Bt in e?e.configurable:r.configurable,enumerable:Nt in e?e.enumerable:r.enumerable,writable:!1})}return Gt(t,n,e)}:Gt:function(t,n,e){if(Mt(t),n=Et(n),Mt(e),kt)try{return Gt(t,n,e)}catch(t){}if("get"in e||"set"in e)throw zt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Ut=g?function(t,n,e){return Wt.f(t,n,T(1,e))}:function(t,n,e){return t[n]=e,t},$t=Function.prototype,Xt=g&&Object.getOwnPropertyDescriptor,Kt=dt($t,"name"),Qt={EXISTS:Kt,PROPER:Kt&&"something"===function(){}.name,CONFIGURABLE:Kt&&(!g||g&&Xt($t,"name").configurable)},Vt=k(Function.toString);N(at.inspectSource)||(at.inspectSource=function(t){return Vt(t)});var Yt,Ht,Jt,Zt=at.inspectSource,tn=h.WeakMap,nn=N(tn)&&/native code/.test(Zt(tn)),en=ft("keys"),rn=function(t){return en[t]||(en[t]=vt(t))},on={},un="Object already initialized",cn=h.TypeError,an=h.WeakMap;if(nn||at.state){var fn=at.state||(at.state=new an),sn=k(fn.get),ln=k(fn.has),pn=k(fn.set);Yt=function(t,n){if(ln(fn,t))throw new cn(un);return n.facade=t,pn(fn,t,n),n},Ht=function(t){return sn(fn,t)||{}},Jt=function(t){return ln(fn,t)}}else{var dn=rn("state");on[dn]=!0,Yt=function(t,n){if(dt(t,dn))throw new cn(un);return n.facade=t,Ut(t,dn,n),n},Ht=function(t){return dt(t,dn)?t[dn]:{}},Jt=function(t){return dt(t,dn)}}var yn={set:Yt,get:Ht,has:Jt,enforce:function(t){return Jt(t)?Ht(t):Yt(t,{})},getterFor:function(t){return function(n){var e;if(!B(n)||(e=Ht(n)).type!==t)throw cn("Incompatible receiver, "+t+" required");return e}}},bn=p((function(t){var n=Wt.f,e=Qt.CONFIGURABLE,r=yn.enforce,o=yn.get,i=!v((function(){return 8!==n((function(){}),"length",{value:8}).length})),u=String(String).split("String"),c=t.exports=function(t,o,c){"Symbol("===String(o).slice(0,7)&&(o="["+String(o).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),c&&c.getter&&(o="get "+o),c&&c.setter&&(o="set "+o),(!dt(t,"name")||e&&t.name!==o)&&n(t,"name",{value:o,configurable:!0}),i&&c&&dt(c,"arity")&&t.length!==c.arity&&n(t,"length",{value:c.arity});var a=r(t);return dt(a,"source")||(a.source=u.join("string"==typeof o?o:"")),t};Function.prototype.toString=c((function(){return N(this)&&o(this).source||Zt(this)}),"toString")})),hn=function(t,n,e,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:n;return N(e)&&bn(e,c,r),t===h?(i?t[n]=e:ut(n,e),t):(o?!u&&t[n]&&(i=!0):delete t[n],i?t[n]=e:Ut(t,n,e),t)},vn=Math.ceil,gn=Math.floor,mn=function(t){var n=+t;return n!=n||0===n?0:(n>0?gn:vn)(n)},wn=Math.max,On=Math.min,jn=Math.min,Sn=function(t){return(n=t.length)>0?jn(mn(n),9007199254740991):0;var n},Pn=function(t){return function(n,e,r){var o,i=L(n),u=Sn(i),c=function(t,n){var e=mn(t);return e<0?wn(e+n,0):On(e,n)}(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},Tn={includes:Pn(!0),indexOf:Pn(!1)},En=Tn.indexOf,xn=k([].push),An=function(t,n){var e,r=L(t),o=0,i=[];for(e in r)!dt(on,e)&&dt(r,e)&&xn(i,e);for(;n.length>o;)dt(r,e=n[o++])&&(~En(i,e)||xn(i,e));return i},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kn=Rn.concat("length","prototype"),Cn={f:Object.getOwnPropertyNames||function(t){return An(t,kn)}},Dn={f:Object.getOwnPropertySymbols},Fn=k([].concat),In=W("Reflect","ownKeys")||function(t){var n=Cn.f(Mt(t)),e=Dn.f;return e?Fn(n,e(t)):n},_n=function(t,n,e){for(var r=In(n),o=Wt.f,i=Dt.f,u=0;u<r.length;u++){var c=r[u];dt(t,c)||e&&dt(e,c)||o(t,c,i(n,c))}},Mn=/#|\.prototype\./,zn=function(t,n){var e=Ln[Gn(t)];return e==Bn||e!=Nn&&(N(n)?v(n):!!n)},Gn=zn.normalize=function(t){return String(t).replace(Mn,".").toLowerCase()},Ln=zn.data={},Nn=zn.NATIVE="N",Bn=zn.POLYFILL="P",qn=zn,Wn=Dt.f,Un=function(t,n){var e,r,o,i,u,c=t.target,a=t.global,f=t.stat;if(e=a?h:f?h[c]||ut(c,{}):(h[c]||{}).prototype)for(r in n){if(i=n[r],o=t.noTargetGet?(u=Wn(e,r))&&u.value:e[r],!qn(a?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;_n(i,o)}(t.sham||o&&o.sham)&&Ut(i,"sham",!0),hn(e,r,i,t)}},$n=k(k.bind),Xn=Array.isArray||function(t){return"Array"==F(t)},Kn={};Kn[jt("toStringTag")]="z";var Qn="[object z]"===String(Kn),Vn=jt("toStringTag"),Yn=h.Object,Hn="Arguments"==F(function(){return arguments}()),Jn=Qn?F:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Yn(t),Vn))?e:Hn?F(n):"Object"==(r=F(n))&&N(n.callee)?"Arguments":r},Zn=function(){},te=[],ne=W("Reflect","construct"),ee=/^\s*(?:class|function)\b/,re=k(ee.exec),oe=!ee.exec(Zn),ie=function(t){if(!N(t))return!1;try{return ne(Zn,te,t),!0}catch(t){return!1}},ue=function(t){if(!N(t))return!1;switch(Jn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oe||!!re(ee,Zt(t))}catch(t){return!0}};ue.sham=!0;var ce,ae=!ne||v((function(){var t;return ie(ie.call)||!ie(Object)||!ie((function(){t=!0}))||t}))?ue:ie,fe=jt("species"),se=h.Array,le=function(t,n){return new(function(t){var n;return Xn(t)&&(n=t.constructor,(ae(n)&&(n===se||Xn(n.prototype))||B(n)&&null===(n=n[fe]))&&(n=void 0)),void 0===n?se:n}(t))(0===n?0:n)},pe=k([].push),de=function(t){var n=1==t,e=2==t,r=3==t,o=4==t,i=6==t,u=7==t,c=5==t||i;return function(a,f,s,l){for(var p,d,y=lt(a),b=M(y),h=function(t,n){return rt(t),void 0===n?t:m?$n(t,n):function(){return t.apply(n,arguments)}}(f,s),v=Sn(b),g=0,w=l||le,O=n?w(a,v):e||u?w(a,0):void 0;v>g;g++)if((c||g in b)&&(d=h(p=b[g],g,y),t))if(n)O[g]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:pe(O,p)}else switch(t){case 4:return!1;case 7:pe(O,p)}return i?-1:r||o?o:O}},ye={forEach:de(0),map:de(1),filter:de(2),some:de(3),every:de(4),find:de(5),findIndex:de(6),filterReject:de(7)},be=Object.keys||function(t){return An(t,Rn)},he=g&&!Ft?Object.defineProperties:function(t,n){Mt(t);for(var e,r=L(n),o=be(n),i=o.length,u=0;i>u;)Wt.f(t,e=o[u++],r[e]);return t},ve={f:he},ge=W("document","documentElement"),me=rn("IE_PROTO"),we=function(){},Oe=function(t){return"<script>"+t+"</"+"script>"},je=function(t){t.write(Oe("")),t.close();var n=t.parentWindow.Object;return t=null,n},Se=function(){try{ce=new ActiveXObject("htmlfile")}catch(t){}var t,n;Se="undefined"!=typeof document?document.domain&&ce?je(ce):((n=Rt("iframe")).style.display="none",ge.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(Oe("document.F=Object")),t.close(),t.F):je(ce);for(var e=Rn.length;e--;)delete Se.prototype[Rn[e]];return Se()};on[me]=!0;var Pe=Object.create||function(t,n){var e;return null!==t?(we.prototype=Mt(t),e=new we,we.prototype=null,e[me]=t):e=Se(),void 0===n?e:ve.f(e,n)},Te=jt("unscopables"),Ee=Array.prototype;null==Ee[Te]&&Wt.f(Ee,Te,{configurable:!0,value:Pe(null)});var xe=function(t){Ee[Te][t]=!0},Ae=ye.find,Re="find",ke=!0;Re in[]&&Array(1).find((function(){ke=!1})),Un({target:"Array",proto:!0,forced:ke},{find:function(t){return Ae(this,t,arguments.length>1?arguments[1]:void 0)}}),xe(Re);var Ce=Qn?{}.toString:function(){return"[object "+Jn(this)+"]"};Qn||hn(Object.prototype,"toString",Ce,{unsafe:!0});var De=Tn.includes;Un({target:"Array",proto:!0,forced:v((function(){return!Array(1).includes()}))},{includes:function(t){return De(this,t,arguments.length>1?arguments[1]:void 0)}}),xe("includes");var Fe=jt("match"),Ie=h.TypeError,_e=function(t){if(function(t){var n;return B(t)&&(void 0!==(n=t[Fe])?!!n:"RegExp"==F(t))}(t))throw Ie("The method doesn't accept regular expressions");return t},Me=h.String,ze=function(t){if("Symbol"===Jn(t))throw TypeError("Cannot convert a Symbol value to a string");return Me(t)},Ge=jt("match"),Le=k("".indexOf);Un({target:"String",proto:!0,forced:!function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[Ge]=!1,"/./"[t](n)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~Le(ze(G(this)),ze(_e(t)),arguments.length>1?arguments[1]:void 0)}}),e.default.extend(e.default.fn.bootstrapTable.defaults,{classes:"ui selectable celled table unstackable",buttonsPrefix:"",buttonsClass:"ui button"}),e.default.fn.bootstrapTable.theme="semantic",e.default.BootstrapTable=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&u(t,n)}(l,t);var n,e,c,f=a(l);function l(){return r(this,l),f.apply(this,arguments)}return n=l,(e=[{key:"initConstants",value:function(){s(i(l.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(){s(i(l.prototype),"initToolbar",this).call(this),this.handleToolbar()}},{key:"handleToolbar",value:function(){this.$toolbar.find(".button.dropdown").dropdown()}},{key:"initPagination",value:function(){s(i(l.prototype),"initPagination",this).call(this),this.options.pagination&&this.paginationParts.includes("pageSize")&&this.$pagination.find(".dropdown").dropdown()}}])&&o(n.prototype,e),c&&o(n,c),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.default.BootstrapTable)}));