UNPKG

10 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.19.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=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,s={f:l&&!f.call({1:2},1)?function(t){var n=l(this,t);return!!n&&n.enumerable}:f},p=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},d={}.toString,g=function(t){return d.call(t).slice(8,-1)},y="".split,m=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==g(t)?y.call(t,""):Object(t)}:Object,h=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return m(h(t))},b=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t,n){if(!b(t))return t;var r,e;if(n&&"function"==typeof(r=t.toString)&&!b(e=r.call(t)))return e;if("function"==typeof(r=t.valueOf)&&!b(e=r.call(t)))return e;if(!n&&"function"==typeof(r=t.toString)&&!b(e=r.call(t)))return e;throw TypeError("Can't convert object to primitive value")},S={}.hasOwnProperty,O=function(t,n){return S.call(t,n)},T=a.document,P=b(T)&&b(T.createElement),j=!c&&!u((function(){return 7!=Object.defineProperty((t="div",P?T.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),M=Object.getOwnPropertyDescriptor,x={f:c?M:function(t,n){if(t=v(t),n=w(n,!0),j)try{return M(t,n)}catch(t){}if(O(t,n))return p(!s.f.call(t,n),t[n])}},C=function(t){if(!b(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,E={f:c?A:function(t,n,r){if(C(t),n=w(n,!0),C(r),j)try{return A(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},R=c?function(t,n,r){return E.f(t,n,p(1,r))}:function(t,n,r){return t[n]=r,t},F=function(t,n){try{R(a,t,n)}catch(r){a[t]=n}return n},I="__core-js_shared__",N=a[I]||F(I,{}),q=Function.toString;"function"!=typeof N.inspectSource&&(N.inspectSource=function(t){return q.call(t)});var L,k,z,_,D=N.inspectSource,B=a.WeakMap,G="function"==typeof B&&/native code/.test(D(B)),W=o((function(t){(t.exports=function(t,n){return N[t]||(N[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.10.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=0,H=Math.random(),J=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++X+H).toString(36)},K=W("keys"),Q={},U=a.WeakMap;if(G){var V=N.state||(N.state=new U),Y=V.get,Z=V.has,$=V.set;L=function(t,n){return n.facade=t,$.call(V,t,n),n},k=function(t){return Y.call(V,t)||{}},z=function(t){return Z.call(V,t)}}else{var tt=K[_="state"]||(K[_]=J(_));Q[tt]=!0,L=function(t,n){return n.facade=t,R(t,tt,n),n},k=function(t){return O(t,tt)?t[tt]:{}},z=function(t){return O(t,tt)}}var nt,rt,et={set:L,get:k,has:z,enforce:function(t){return z(t)?k(t):L(t,{})},getterFor:function(t){return function(n){var r;if(!b(n)||(r=k(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},ot=o((function(t){var n=et.get,r=et.enforce,e=String(String).split("String");(t.exports=function(t,n,o,i){var u,c=!!i&&!!i.unsafe,f=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof n||O(o,"name")||R(o,"name",n),(u=r(o)).source||(u.source=e.join("string"==typeof n?n:""))),t!==a?(c?!l&&t[n]&&(f=!0):delete t[n],f?t[n]=o:R(t,n,o)):f?t[n]=o:F(n,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&n(this).source||D(this)}))})),it=a,at=function(t){return"function"==typeof t?t:void 0},ut=function(t,n){return arguments.length<2?at(it[t])||at(a[t]):it[t]&&it[t][n]||a[t]&&a[t][n]},ct=Math.ceil,ft=Math.floor,lt=function(t){return isNaN(t=+t)?0:(t>0?ft:ct)(t)},st=Math.min,pt=function(t){return t>0?st(lt(t),9007199254740991):0},dt=Math.max,gt=Math.min,yt=function(t){return function(n,r,e){var o,i=v(n),a=pt(i.length),u=function(t,n){var r=lt(t);return r<0?dt(r+n,0):gt(r,n)}(e,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},mt={includes:yt(!0),indexOf:yt(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return function(t,n){var r,e=v(t),o=0,i=[];for(r in e)!O(Q,r)&&O(e,r)&&i.push(r);for(;n.length>o;)O(e,r=n[o++])&&(~mt(i,r)||i.push(r));return i}(t,ht)}},bt={f:Object.getOwnPropertySymbols},wt=ut("Reflect","ownKeys")||function(t){var n=vt.f(C(t)),r=bt.f;return r?n.concat(r(t)):n},St=function(t,n){for(var r=wt(n),e=E.f,o=x.f,i=0;i<r.length;i++){var a=r[i];O(t,a)||e(t,a,o(n,a))}},Ot=/#|\.prototype\./,Tt=function(t,n){var r=jt[Pt(t)];return r==xt||r!=Mt&&("function"==typeof n?u(n):!!n)},Pt=Tt.normalize=function(t){return String(t).replace(Ot,".").toLowerCase()},jt=Tt.data={},Mt=Tt.NATIVE="N",xt=Tt.POLYFILL="P",Ct=Tt,At=x.f,Et=Array.isArray||function(t){return"Array"==g(t)},Rt=function(t){return Object(h(t))},Ft=function(t,n,r){var e=w(n);e in t?E.f(t,e,p(0,r)):t[e]=r},It="process"==g(a.process),Nt=ut("navigator","userAgent")||"",qt=a.process,Lt=qt&&qt.versions,kt=Lt&&Lt.v8;kt?rt=(nt=kt.split("."))[0]+nt[1]:Nt&&(!(nt=Nt.match(/Edge\/(\d+)/))||nt[1]>=74)&&(nt=Nt.match(/Chrome\/(\d+)/))&&(rt=nt[1]);var zt,_t=rt&&+rt,Dt=!!Object.getOwnPropertySymbols&&!u((function(){return!Symbol.sham&&(It?38===_t:_t>37&&_t<41)})),Bt=Dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gt=W("wks"),Wt=a.Symbol,Xt=Bt?Wt:Wt&&Wt.withoutSetter||J,Ht=function(t){return O(Gt,t)&&(Dt||"string"==typeof Gt[t])||(Dt&&O(Wt,t)?Gt[t]=Wt[t]:Gt[t]=Xt("Symbol."+t)),Gt[t]},Jt=Ht("species"),Kt=function(t,n){var r;return Et(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Et(r.prototype)?b(r)&&null===(r=r[Jt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===n?0:n)},Qt=Ht("species"),Ut=Ht("isConcatSpreadable"),Vt=9007199254740991,Yt="Maximum allowed index exceeded",Zt=_t>=51||!u((function(){var t=[];return t[Ut]=!1,t.concat()[0]!==t})),$t=(zt="concat",_t>=51||!u((function(){var t=[];return(t.constructor={})[Qt]=function(){return{foo:1}},1!==t[zt](Boolean).foo}))),tn=function(t){if(!b(t))return!1;var n=t[Ut];return void 0!==n?!!n:Et(t)};!function(t,n){var r,e,o,i,u,c=t.target,f=t.global,l=t.stat;if(r=f?a:l?a[c]||F(c,{}):(a[c]||{}).prototype)for(e in n){if(i=n[e],o=t.noTargetGet?(u=At(r,e))&&u.value:r[e],!Ct(f?e:c+(l?".":"#")+e,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;St(i,o)}(t.sham||o&&o.sham)&&R(i,"sham",!0),ot(r,e,i,t)}}({target:"Array",proto:!0,forced:!Zt||!$t},{concat:function(t){var n,r,e,o,i,a=Rt(this),u=Kt(a,0),c=0;for(n=-1,e=arguments.length;n<e;n++)if(tn(i=-1===n?a:arguments[n])){if(c+(o=pt(i.length))>Vt)throw TypeError(Yt);for(r=0;r<o;r++,c++)r in i&&Ft(u,c,i[r])}else{if(c>=Vt)throw TypeError(Yt);Ft(u,c++,i)}return u.length=c,u}}),r.default.fn.bootstrapTable.locales["es-MX"]={formatCopyRows:function(){return"Copiar Filas"},formatPrint:function(){return"Imprimir"},formatLoadingMessage:function(){return"Cargando, espere por favor"},formatRecordsPerPage:function(t){return"".concat(t," resultados por página")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"Mostrando ".concat(t," a ").concat(n," de ").concat(r," filas (filtrado de ").concat(e," filas totales)"):"Mostrando ".concat(t," a ").concat(n," de ").concat(r," filas")},formatSRPaginationPreText:function(){return"página anterior"},formatSRPaginationPageText:function(t){return"ir a la página ".concat(t)},formatSRPaginationNextText:function(){return"página siguiente"},formatDetailPagination:function(t){return"Mostrando ".concat(t," filas")},formatClearSearch:function(){return"Limpiar búsqueda"},formatSearch:function(){return"Buscar"},formatNoMatches:function(){return"No se encontraron registros que coincidan"},formatPaginationSwitch:function(){return"Mostrar/ocultar paginación"},formatPaginationSwitchDown:function(){return"Mostrar paginación"},formatPaginationSwitchUp:function(){return"Ocultar paginación"},formatRefresh:function(){return"Actualizar"},formatToggle:function(){return"Cambiar vista"},formatToggleOn:function(){return"Mostrar vista"},formatToggleOff:function(){return"Ocultar vista"},formatColumns:function(){return"Columnas"},formatColumnsToggleAll:function(){return"Alternar todo"},formatFullscreen:function(){return"Pantalla completa"},formatAllRows:function(){return"Todo"},formatAutoRefresh:function(){return"Auto actualizar"},formatExport:function(){return"Exportar datos"},formatJumpTo:function(){return"IR"},formatAdvancedSearch:function(){return"Búsqueda avanzada"},formatAdvancedCloseButton:function(){return"Cerrar"},formatFilterControlSwitch:function(){return"Ocultar/Mostrar controles"},formatFilterControlSwitchHide:function(){return"Ocultar controles"},formatFilterControlSwitchShow:function(){return"Mostrar controles"}},r.default.extend(r.default.fn.bootstrapTable.defaults,r.default.fn.bootstrapTable.locales["es-MX"])}));