UNPKG

13.4 kBJavaScriptView Raw
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
10!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 r=n(t),e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,n){return t(n={exports:{}},n.exports),n.exports}var i,u,a=function(t){return t&&t.Math==Math&&t},c=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof e&&e)||function(){return this}()||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},l=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s=!f((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),p=Function.prototype.call,g=s?p.bind(p):function(){return p.apply(p,arguments)},m={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,y={f:d&&!m.call({1:2},1)?function(t){var n=d(this,t);return!!n&&n.enumerable}:m},h=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},b=Function.prototype,v=b.bind,w=b.call,S=s&&v.bind(w,w),O=s?function(t){return t&&S(t)}:function(t){return t&&function(){return w.apply(t,arguments)}},j=O({}.toString),P=O("".slice),T=function(t){return P(j(t),8,-1)},E=c.Object,x=O("".split),k=f((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?x(t,""):E(t)}:E,A=c.TypeError,C=function(t){if(null==t)throw A("Can't call method on "+t);return t},F=function(t){return k(C(t))},R=function(t){return"function"==typeof t},M=function(t){return"object"==typeof t?null!==t:R(t)},I=function(t){return R(t)?t:void 0},L=function(t,n){return arguments.length<2?I(c[t]):c[t]&&c[t][n]},N=O({}.isPrototypeOf),z=L("navigator","userAgent")||"",D=c.process,G=c.Deno,_=D&&D.versions||G&&G.version,H=_&&_.v8;H&&(u=(i=H.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!u&&z&&(!(i=z.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=z.match(/Chrome\/(\d+)/))&&(u=+i[1]);var q=u,B=!!Object.getOwnPropertySymbols&&!f((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),U=B&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=c.Object,W=U?function(t){return"symbol"==typeof t}:function(t){var n=L("Symbol");return R(n)&&N(n.prototype,Y(t))},J=c.String,K=c.TypeError,Q=function(t){if(R(t))return t;throw K(function(t){try{return J(t)}catch(t){return"Object"}}(t)+" is not a function")},V=c.TypeError,X=Object.defineProperty,$=function(t,n){try{X(c,t,{value:n,configurable:!0,writable:!0})}catch(r){c[t]=n}return n},Z="__core-js_shared__",tt=c[Z]||$(Z,{}),nt=o((function(t){(t.exports=function(t,n){return tt[t]||(tt[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"})})),rt=c.Object,et=function(t){return rt(C(t))},ot=O({}.hasOwnProperty),it=Object.hasOwn||function(t,n){return ot(et(t),n)},ut=0,at=Math.random(),ct=O(1..toString),ft=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ct(++ut+at,36)},lt=nt("wks"),st=c.Symbol,pt=st&&st.for,gt=U?st:st&&st.withoutSetter||ft,mt=function(t){if(!it(lt,t)||!B&&"string"!=typeof lt[t]){var n="Symbol."+t;B&&it(st,t)?lt[t]=st[t]:lt[t]=U&&pt?pt(n):gt(n)}return lt[t]},dt=c.TypeError,yt=mt("toPrimitive"),ht=function(t,n){if(!M(t)||W(t))return t;var r,e,o=null==(r=t[yt])?void 0:Q(r);if(o){if(void 0===n&&(n="default"),e=g(o,t,n),!M(e)||W(e))return e;throw dt("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var r,e;if("string"===n&&R(r=t.toString)&&!M(e=g(r,t)))return e;if(R(r=t.valueOf)&&!M(e=g(r,t)))return e;if("string"!==n&&R(r=t.toString)&&!M(e=g(r,t)))return e;throw V("Can't convert object to primitive value")}(t,n)},bt=function(t){var n=ht(t,"string");return W(n)?n:n+""},vt=c.document,wt=M(vt)&&M(vt.createElement),St=!l&&!f((function(){return 7!=Object.defineProperty((t="div",wt?vt.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),Ot=Object.getOwnPropertyDescriptor,jt={f:l?Ot:function(t,n){if(t=F(t),n=bt(n),St)try{return Ot(t,n)}catch(t){}if(it(t,n))return h(!g(y.f,t,n),t[n])}},Pt=l&&f((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tt=c.String,Et=c.TypeError,xt=function(t){if(M(t))return t;throw Et(Tt(t)+" is not an object")},kt=c.TypeError,At=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,Ft="enumerable",Rt="configurable",Mt="writable",It={f:l?Pt?function(t,n,r){if(xt(t),n=bt(n),xt(r),"function"==typeof t&&"prototype"===n&&"value"in r&&Mt in r&&!r.writable){var e=Ct(t,n);e&&e.writable&&(t[n]=r.value,r={configurable:Rt in r?r.configurable:e.configurable,enumerable:Ft in r?r.enumerable:e.enumerable,writable:!1})}return At(t,n,r)}:At:function(t,n,r){if(xt(t),n=bt(n),xt(r),St)try{return At(t,n,r)}catch(t){}if("get"in r||"set"in r)throw kt("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},Lt=l?function(t,n,r){return It.f(t,n,h(1,r))}:function(t,n,r){return t[n]=r,t},Nt=Function.prototype,zt=l&&Object.getOwnPropertyDescriptor,Dt=it(Nt,"name"),Gt={EXISTS:Dt,PROPER:Dt&&"something"===function(){}.name,CONFIGURABLE:Dt&&(!l||l&&zt(Nt,"name").configurable)},_t=O(Function.toString);R(tt.inspectSource)||(tt.inspectSource=function(t){return _t(t)});var Ht,qt,Bt,Ut,Yt=tt.inspectSource,Wt=c.WeakMap,Jt=R(Wt)&&/native code/.test(Yt(Wt)),Kt=nt("keys"),Qt={},Vt="Object already initialized",Xt=c.TypeError,$t=c.WeakMap;if(Jt||tt.state){var Zt=tt.state||(tt.state=new $t),tn=O(Zt.get),nn=O(Zt.has),rn=O(Zt.set);Ht=function(t,n){if(nn(Zt,t))throw new Xt(Vt);return n.facade=t,rn(Zt,t,n),n},qt=function(t){return tn(Zt,t)||{}},Bt=function(t){return nn(Zt,t)}}else{var en=Kt[Ut="state"]||(Kt[Ut]=ft(Ut));Qt[en]=!0,Ht=function(t,n){if(it(t,en))throw new Xt(Vt);return n.facade=t,Lt(t,en,n),n},qt=function(t){return it(t,en)?t[en]:{}},Bt=function(t){return it(t,en)}}var on={set:Ht,get:qt,has:Bt,enforce:function(t){return Bt(t)?qt(t):Ht(t,{})},getterFor:function(t){return function(n){var r;if(!M(n)||(r=qt(n)).type!==t)throw Xt("Incompatible receiver, "+t+" required");return r}}},un=o((function(t){var n=It.f,r=Gt.CONFIGURABLE,e=on.enforce,o=on.get,i=!f((function(){return 8!==n((function(){}),"length",{value:8}).length})),u=String(String).split("String"),a=t.exports=function(t,o,a){"Symbol("===String(o).slice(0,7)&&(o="["+String(o).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(o="get "+o),a&&a.setter&&(o="set "+o),(!it(t,"name")||r&&t.name!==o)&&n(t,"name",{value:o,configurable:!0}),i&&a&&it(a,"arity")&&t.length!==a.arity&&n(t,"length",{value:a.arity});var c=e(t);return it(c,"source")||(c.source=u.join("string"==typeof o?o:"")),t};Function.prototype.toString=a((function(){return R(this)&&o(this).source||Yt(this)}),"toString")})),an=function(t,n,r,e){var o=!!e&&!!e.unsafe,i=!!e&&!!e.enumerable,u=!!e&&!!e.noTargetGet,a=e&&void 0!==e.name?e.name:n;return R(r)&&un(r,a,e),t===c?(i?t[n]=r:$(n,r),t):(o?!u&&t[n]&&(i=!0):delete t[n],i?t[n]=r:Lt(t,n,r),t)},cn=Math.ceil,fn=Math.floor,ln=function(t){var n=+t;return n!=n||0===n?0:(n>0?fn:cn)(n)},sn=Math.max,pn=Math.min,gn=Math.min,mn=function(t){return(n=t.length)>0?gn(ln(n),9007199254740991):0;var n},dn=function(t){return function(n,r,e){var o,i=F(n),u=mn(i),a=function(t,n){var r=ln(t);return r<0?sn(r+n,0):pn(r,n)}(e,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},yn={includes:dn(!0),indexOf:dn(!1)}.indexOf,hn=O([].push),bn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),vn=Object.getOwnPropertyNames||function(t){return function(t,n){var r,e=F(t),o=0,i=[];for(r in e)!it(Qt,r)&&it(e,r)&&hn(i,r);for(;n.length>o;)it(e,r=n[o++])&&(~yn(i,r)||hn(i,r));return i}(t,bn)},wn={f:vn},Sn={f:Object.getOwnPropertySymbols},On=O([].concat),jn=L("Reflect","ownKeys")||function(t){var n=wn.f(xt(t)),r=Sn.f;return r?On(n,r(t)):n},Pn=function(t,n,r){for(var e=jn(n),o=It.f,i=jt.f,u=0;u<e.length;u++){var a=e[u];it(t,a)||r&&it(r,a)||o(t,a,i(n,a))}},Tn=/#|\.prototype\./,En=function(t,n){var r=kn[xn(t)];return r==Cn||r!=An&&(R(n)?f(n):!!n)},xn=En.normalize=function(t){return String(t).replace(Tn,".").toLowerCase()},kn=En.data={},An=En.NATIVE="N",Cn=En.POLYFILL="P",Fn=En,Rn=jt.f,Mn=Array.isArray||function(t){return"Array"==T(t)},In=function(t,n,r){var e=bt(n);e in t?It.f(t,e,h(0,r)):t[e]=r},Ln={};Ln[mt("toStringTag")]="z";var Nn="[object z]"===String(Ln),zn=mt("toStringTag"),Dn=c.Object,Gn="Arguments"==T(function(){return arguments}()),_n=Nn?T:function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Dn(t),zn))?r:Gn?T(n):"Object"==(e=T(n))&&R(n.callee)?"Arguments":e},Hn=function(){},qn=[],Bn=L("Reflect","construct"),Un=/^\s*(?:class|function)\b/,Yn=O(Un.exec),Wn=!Un.exec(Hn),Jn=function(t){if(!R(t))return!1;try{return Bn(Hn,qn,t),!0}catch(t){return!1}},Kn=function(t){if(!R(t))return!1;switch(_n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Wn||!!Yn(Un,Yt(t))}catch(t){return!0}};Kn.sham=!0;var Qn,Vn=!Bn||f((function(){var t;return Jn(Jn.call)||!Jn(Object)||!Jn((function(){t=!0}))||t}))?Kn:Jn,Xn=mt("species"),$n=c.Array,Zn=function(t,n){return new(function(t){var n;return Mn(t)&&(n=t.constructor,(Vn(n)&&(n===$n||Mn(n.prototype))||M(n)&&null===(n=n[Xn]))&&(n=void 0)),void 0===n?$n:n}(t))(0===n?0:n)},tr=mt("species"),nr=mt("isConcatSpreadable"),rr=9007199254740991,er="Maximum allowed index exceeded",or=c.TypeError,ir=q>=51||!f((function(){var t=[];return t[nr]=!1,t.concat()[0]!==t})),ur=(Qn="concat",q>=51||!f((function(){var t=[];return(t.constructor={})[tr]=function(){return{foo:1}},1!==t[Qn](Boolean).foo}))),ar=function(t){if(!M(t))return!1;var n=t[nr];return void 0!==n?!!n:Mn(t)};!function(t,n){var r,e,o,i,u,a=t.target,f=t.global,l=t.stat;if(r=f?c:l?c[a]||$(a,{}):(c[a]||{}).prototype)for(e in n){if(i=n[e],o=t.noTargetGet?(u=Rn(r,e))&&u.value:r[e],!Fn(f?e:a+(l?".":"#")+e,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pn(i,o)}(t.sham||o&&o.sham)&&Lt(i,"sham",!0),an(r,e,i,t)}}({target:"Array",proto:!0,arity:1,forced:!ir||!ur},{concat:function(t){var n,r,e,o,i,u=et(this),a=Zn(u,0),c=0;for(n=-1,e=arguments.length;n<e;n++)if(ar(i=-1===n?u:arguments[n])){if(c+(o=mn(i))>rr)throw or(er);for(r=0;r<o;r++,c++)r in i&&In(a,c,i[r])}else{if(c>=rr)throw or(er);In(a,c++,i)}return a.length=c,a}}),r.default.fn.bootstrapTable.locales["ms-MY"]=r.default.fn.bootstrapTable.locales.ms={formatCopyRows:function(){return"Copy Rows"},formatPrint:function(){return"Print"},formatLoadingMessage:function(){return"Permintaan sedang dimuatkan. Sila tunggu sebentar"},formatRecordsPerPage:function(t){return"".concat(t," rekod setiap muka surat")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"Sedang memaparkan rekod ".concat(t," hingga ").concat(n," daripada jumlah ").concat(r," rekod (filtered from ").concat(e," total rows)"):"Sedang memaparkan rekod ".concat(t," hingga ").concat(n," daripada jumlah ").concat(r," rekod")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(t){return"to page ".concat(t)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(t){return"Showing ".concat(t," rows")},formatClearSearch:function(){return"Clear Search"},formatSearch:function(){return"Cari"},formatNoMatches:function(){return"Tiada rekod yang menyamai permintaan"},formatPaginationSwitch:function(){return"Tunjuk/sembunyi muka surat"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Muatsemula"},formatToggle:function(){return"Tukar"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Lajur"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"Semua"},formatAutoRefresh:function(){return"Auto Refresh"},formatExport:function(){return"Export data"},formatJumpTo:function(){return"GO"},formatAdvancedSearch:function(){return"Advanced search"},formatAdvancedCloseButton:function(){return"Close"},formatFilterControlSwitch:function(){return"Hide/Show controls"},formatFilterControlSwitchHide:function(){return"Hide controls"},formatFilterControlSwitchShow:function(){return"Show controls"}},r.default.extend(r.default.fn.bootstrapTable.defaults,r.default.fn.bootstrapTable.locales["ms-MY"])}));