bootstrap-table-i18n-enhance.min.js 13 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.23.2
  5. * @homepage https://bootstrap-table.com
  6. * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
  7. * @license MIT
  8. */
  9. !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t,e,n){return e=r(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,o()?Reflect.construct(e,n||[],r(t).constructor):e.apply(t,n))}function n(t,e,n){return e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(o=function(){return!!t})()}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function u(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=function(t){return t&&t.Math===Math&&t},f=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof c&&c)||a("object"==typeof c&&c)||function(){return this}()||Function("return this")(),s={exports:{}},l=f,p=Object.defineProperty,y=function(t,e){try{p(l,t,{value:e,configurable:!0,writable:!0})}catch(n){l[t]=e}return e},b=f,h=y,v="__core-js_shared__",d=s.exports=b[v]||h(v,{});(d.versions||(d.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var g,m,S=s.exports,w=S,j=function(t,e){return w[t]||(w[t]=e||{})},O=function(t){try{return!!t()}catch(t){return!0}},T=!O((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),L=T,E=Function.prototype,P=E.call,M=L&&E.bind.bind(P,P),C=L?M:function(t){return function(){return P.apply(t,arguments)}},A=function(t){return null==t},F=A,k=TypeError,_=function(t){if(F(t))throw new k("Can't call method on "+t);return t},R=Object,x=function(t){return R(_(t))},D=x,G=C({}.hasOwnProperty),B=Object.hasOwn||function(t,e){return G(D(t),e)},I=C,N=0,z=Math.random(),V=I(1..toString),q=function(t){return"Symbol("+(void 0===t?"":t)+")_"+V(++N+z,36)},H=f,U="undefined"!=typeof navigator&&String(navigator.userAgent)||"",W=H.process,$=H.Deno,Q=W&&W.versions||$&&$.version,X=Q&&Q.v8;X&&(m=(g=X.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!m&&U&&(!(g=U.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=U.match(/Chrome\/(\d+)/))&&(m=+g[1]);var J=m,K=O,Y=f.String,Z=!!Object.getOwnPropertySymbols&&!K((function(){var t=Symbol("symbol detection");return!Y(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&J&&J<41})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=j,nt=B,rt=q,ot=Z,it=tt,ut=f.Symbol,ct=et("wks"),at=it?ut.for||ut:ut&&ut.withoutSetter||rt,ft=function(t){return nt(ct,t)||(ct[t]=ot&&nt(ut,t)?ut[t]:at("Symbol."+t)),ct[t]},st={};st[ft("toStringTag")]="z";var lt="[object z]"===String(st),pt="object"==typeof document&&document.all,yt=void 0===pt&&void 0!==pt?function(t){return"function"==typeof t||t===pt}:function(t){return"function"==typeof t},bt={},ht=!O((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),vt=yt,dt=function(t){return"object"==typeof t?null!==t:vt(t)},gt=dt,mt=f.document,St=gt(mt)&&gt(mt.createElement),wt=function(t){return St?mt.createElement(t):{}},jt=wt,Ot=!ht&&!O((function(){return 7!==Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),Tt=ht&&O((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=dt,Et=String,Pt=TypeError,Mt=T,Ct=Function.prototype.call,At=Mt?Ct.bind(Ct):function(){return Ct.apply(Ct,arguments)},Ft=f,kt=yt,_t=function(t,e){return arguments.length<2?(n=Ft[t],kt(n)?n:void 0):Ft[t]&&Ft[t][e];var n},Rt=C({}.isPrototypeOf),xt=_t,Dt=yt,Gt=Rt,Bt=Object,It=tt?function(t){return"symbol"==typeof t}:function(t){var e=xt("Symbol");return Dt(e)&&Gt(e.prototype,Bt(t))},Nt=String,zt=yt,Vt=function(t){try{return Nt(t)}catch(t){return"Object"}},qt=TypeError,Ht=function(t){if(zt(t))return t;throw new qt(Vt(t)+" is not a function")},Ut=Ht,Wt=A,$t=At,Qt=yt,Xt=dt,Jt=TypeError,Kt=At,Yt=dt,Zt=It,te=function(t,e){var n=t[e];return Wt(n)?void 0:Ut(n)},ee=function(t,e){var n,r;if("string"===e&&Qt(n=t.toString)&&!Xt(r=$t(n,t)))return r;if(Qt(n=t.valueOf)&&!Xt(r=$t(n,t)))return r;if("string"!==e&&Qt(n=t.toString)&&!Xt(r=$t(n,t)))return r;throw new Jt("Can't convert object to primitive value")},ne=TypeError,re=ft("toPrimitive"),oe=function(t,e){if(!Yt(t)||Zt(t))return t;var n,r=te(t,re);if(r){if(void 0===e&&(e="default"),n=Kt(r,t,e),!Yt(n)||Zt(n))return n;throw new ne("Can't convert object to primitive value")}return void 0===e&&(e="number"),ee(t,e)},ie=It,ue=ht,ce=Ot,ae=Tt,fe=function(t){if(Lt(t))return t;throw new Pt(Et(t)+" is not an object")},se=function(t){var e=oe(t,"string");return ie(e)?e:e+""},le=TypeError,pe=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,be="enumerable",he="configurable",ve="writable";bt.f=ue?ae?function(t,e,n){if(fe(t),e=se(e),fe(n),"function"==typeof t&&"prototype"===e&&"value"in n&&ve in n&&!n[ve]){var r=ye(t,e);r&&r[ve]&&(t[e]=n.value,n={configurable:he in n?n[he]:r[he],enumerable:be in n?n[be]:r[be],writable:!1})}return pe(t,e,n)}:pe:function(t,e,n){if(fe(t),e=se(e),fe(n),ce)try{return pe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new le("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var de={exports:{}},ge=ht,me=B,Se=Function.prototype,we=ge&&Object.getOwnPropertyDescriptor,je=me(Se,"name"),Oe={EXISTS:je,PROPER:je&&"something"===function(){}.name,CONFIGURABLE:je&&(!ge||ge&&we(Se,"name").configurable)},Te=yt,Le=S,Ee=C(Function.toString);Te(Le.inspectSource)||(Le.inspectSource=function(t){return Ee(t)});var Pe,Me,Ce,Ae=Le.inspectSource,Fe=yt,ke=f.WeakMap,_e=Fe(ke)&&/native code/.test(String(ke)),Re=bt,xe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},De=ht?function(t,e,n){return Re.f(t,e,xe(1,n))}:function(t,e,n){return t[e]=n,t},Ge=q,Be=j("keys"),Ie=_e,Ne=f,ze=dt,Ve=De,qe=B,He=S,Ue=function(t){return Be[t]||(Be[t]=Ge(t))},We="Object already initialized",$e=Ne.TypeError,Qe=Ne.WeakMap;if(Ie||He.state){var Xe=He.state||(He.state=new Qe);Xe.get=Xe.get,Xe.has=Xe.has,Xe.set=Xe.set,Pe=function(t,e){if(Xe.has(t))throw new $e(We);return e.facade=t,Xe.set(t,e),e},Me=function(t){return Xe.get(t)||{}},Ce=function(t){return Xe.has(t)}}else{var Je=Ue("state");Pe=function(t,e){if(qe(t,Je))throw new $e(We);return e.facade=t,Ve(t,Je,e),e},Me=function(t){return qe(t,Je)?t[Je]:{}},Ce=function(t){return qe(t,Je)}}var Ke={set:Pe,get:Me,has:Ce,enforce:function(t){return Ce(t)?Me(t):Pe(t,{})},getterFor:function(t){return function(e){var n;if(!ze(e)||(n=Me(e)).type!==t)throw new $e("Incompatible receiver, "+t+" required");return n}}},Ye=C,Ze=O,tn=yt,en=B,nn=ht,rn=Oe.CONFIGURABLE,on=Ae,un=Ke.enforce,cn=Ke.get,an=String,fn=Object.defineProperty,sn=Ye("".slice),ln=Ye("".replace),pn=Ye([].join),yn=nn&&!Ze((function(){return 8!==fn((function(){}),"length",{value:8}).length})),bn=String(String).split("String"),hn=de.exports=function(t,e,n){"Symbol("===sn(an(e),0,7)&&(e="["+ln(an(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!en(t,"name")||rn&&t.name!==e)&&(nn?fn(t,"name",{value:e,configurable:!0}):t.name=e),yn&&n&&en(n,"arity")&&t.length!==n.arity&&fn(t,"length",{value:n.arity});try{n&&en(n,"constructor")&&n.constructor?nn&&fn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=un(t);return en(r,"source")||(r.source=pn(bn,"string"==typeof e?e:"")),t};Function.prototype.toString=hn((function(){return tn(this)&&cn(this).source||on(this)}),"toString");var vn=de.exports,dn=yt,gn=bt,mn=vn,Sn=y,wn=C,jn=wn({}.toString),On=wn("".slice),Tn=function(t){return On(jn(t),8,-1)},Ln=lt,En=yt,Pn=Tn,Mn=ft("toStringTag"),Cn=Object,An="Arguments"===Pn(function(){return arguments}()),Fn=Ln?Pn:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Cn(t),Mn))?n:An?Pn(e):"Object"===(r=Pn(e))&&En(e.callee)?"Arguments":r},kn=Fn,_n=lt?{}.toString:function(){return"[object "+kn(this)+"]"};lt||function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(dn(n)&&mn(n,i,r),r.global)o?t[e]=n:Sn(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:gn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}}(Object.prototype,"toString",_n,{unsafe:!0});var Rn=wt("span").classList,xn=Rn&&Rn.constructor&&Rn.constructor.prototype,Dn=xn===Object.prototype?void 0:xn,Gn=Tn,Bn=C,In=function(t){if("Function"===Gn(t))return Bn(t)},Nn=Ht,zn=T,Vn=In(In.bind),qn=O,Hn=Tn,Un=Object,Wn=C("".split),$n=qn((function(){return!Un("z").propertyIsEnumerable(0)}))?function(t){return"String"===Hn(t)?Wn(t,""):Un(t)}:Un,Qn=Math.ceil,Xn=Math.floor,Jn=Math.trunc||function(t){var e=+t;return(e>0?Xn:Qn)(e)},Kn=function(t){var e=+t;return e!=e||0===e?0:Jn(e)},Yn=Math.min,Zn=function(t){var e=Kn(t);return e>0?Yn(e,9007199254740991):0},tr=Tn,er=Array.isArray||function(t){return"Array"===tr(t)},nr=C,rr=O,or=yt,ir=Fn,ur=Ae,cr=function(){},ar=_t("Reflect","construct"),fr=/^\s*(?:class|function)\b/,sr=nr(fr.exec),lr=!fr.test(cr),pr=function(t){if(!or(t))return!1;try{return ar(cr,[],t),!0}catch(t){return!1}},yr=function(t){if(!or(t))return!1;switch(ir(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return lr||!!sr(fr,ur(t))}catch(t){return!0}};yr.sham=!0;var br=!ar||rr((function(){var t;return pr(pr.call)||!pr(Object)||!pr((function(){t=!0}))||t}))?yr:pr,hr=er,vr=br,dr=dt,gr=ft("species"),mr=Array,Sr=function(t){var e;return hr(t)&&(e=t.constructor,(vr(e)&&(e===mr||hr(e.prototype))||dr(e)&&null===(e=e[gr]))&&(e=void 0)),void 0===e?mr:e},wr=function(t,e){return Nn(t),void 0===e?t:zn?Vn(t,e):function(){return t.apply(e,arguments)}},jr=$n,Or=x,Tr=function(t){return Zn(t.length)},Lr=function(t,e){return new(Sr(t))(0===e?0:e)},Er=C([].push),Pr=function(t){var e=1===t,n=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,y,b=Or(a),h=jr(b),v=Tr(h),d=wr(f,s),g=0,m=l||Lr,S=e?m(a,v):n||u?m(a,0):void 0;v>g;g++)if((c||g in h)&&(y=d(p=h[g],g,b),t))if(e)S[g]=y;else if(y)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:Er(S,p)}else switch(t){case 4:return!1;case 7:Er(S,p)}return i?-1:r||o?o:S}},Mr={forEach:Pr(0),map:Pr(1),filter:Pr(2),some:Pr(3),every:Pr(4),find:Pr(5),findIndex:Pr(6),filterReject:Pr(7)},Cr=O,Ar=Mr.forEach,Fr=function(t,e){var n=[][t];return!!n&&Cr((function(){n.call(null,e||function(){return 1},1)}))}("forEach")?[].forEach:function(t){return Ar(this,t,arguments.length>1?arguments[1]:void 0)},kr=f,_r={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Rr=Dn,xr=Fr,Dr=De,Gr=function(t){if(t&&t.forEach!==xr)try{Dr(t,"forEach",xr)}catch(e){t.forEach=xr}};for(var Br in _r)_r[Br]&&Gr(kr[Br]&&kr[Br].prototype);Gr(Rr),t.fn.bootstrapTable.methods.push("changeTitle"),t.fn.bootstrapTable.methods.push("changeLocale"),t.BootstrapTable=function(t){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),e(this,r,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&&i(t,e)}(r,t),n(r,[{key:"changeTitle",value:function(t){this.options.columns.forEach((function(e){e.forEach((function(e){e.field&&(e.title=t[e.field])}))})),this.initHeader(),this.initBody(),this.initToolbar()}},{key:"changeLocale",value:function(t){this.options.locale=t,this.initLocale(),this.initPagination(),this.initBody(),this.initToolbar()}}])}(t.BootstrapTable)}));