bootstrap-table-materialize.js 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. }(this, (function ($) { 'use strict';
  6. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  7. var $__default = /*#__PURE__*/_interopDefaultLegacy($);
  8. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  9. function createCommonjsModule(fn, module) {
  10. return module = { exports: {} }, fn(module, module.exports), module.exports;
  11. }
  12. var check = function (it) {
  13. return it && it.Math == Math && it;
  14. };
  15. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  16. var global_1 =
  17. // eslint-disable-next-line no-undef
  18. check(typeof globalThis == 'object' && globalThis) ||
  19. check(typeof window == 'object' && window) ||
  20. check(typeof self == 'object' && self) ||
  21. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  22. // eslint-disable-next-line no-new-func
  23. (function () { return this; })() || Function('return this')();
  24. var fails = function (exec) {
  25. try {
  26. return !!exec();
  27. } catch (error) {
  28. return true;
  29. }
  30. };
  31. // Thank's IE8 for his funny defineProperty
  32. var descriptors = !fails(function () {
  33. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  34. });
  35. var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
  36. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  37. // Nashorn ~ JDK8 bug
  38. var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
  39. // `Object.prototype.propertyIsEnumerable` method implementation
  40. // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
  41. var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  42. var descriptor = getOwnPropertyDescriptor(this, V);
  43. return !!descriptor && descriptor.enumerable;
  44. } : nativePropertyIsEnumerable;
  45. var objectPropertyIsEnumerable = {
  46. f: f
  47. };
  48. var createPropertyDescriptor = function (bitmap, value) {
  49. return {
  50. enumerable: !(bitmap & 1),
  51. configurable: !(bitmap & 2),
  52. writable: !(bitmap & 4),
  53. value: value
  54. };
  55. };
  56. var toString = {}.toString;
  57. var classofRaw = function (it) {
  58. return toString.call(it).slice(8, -1);
  59. };
  60. var split = ''.split;
  61. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  62. var indexedObject = fails(function () {
  63. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  64. // eslint-disable-next-line no-prototype-builtins
  65. return !Object('z').propertyIsEnumerable(0);
  66. }) ? function (it) {
  67. return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
  68. } : Object;
  69. // `RequireObjectCoercible` abstract operation
  70. // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
  71. var requireObjectCoercible = function (it) {
  72. if (it == undefined) throw TypeError("Can't call method on " + it);
  73. return it;
  74. };
  75. // toObject with fallback for non-array-like ES3 strings
  76. var toIndexedObject = function (it) {
  77. return indexedObject(requireObjectCoercible(it));
  78. };
  79. var isObject = function (it) {
  80. return typeof it === 'object' ? it !== null : typeof it === 'function';
  81. };
  82. // `ToPrimitive` abstract operation
  83. // https://tc39.github.io/ecma262/#sec-toprimitive
  84. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  85. // and the second argument - flag - preferred type is a string
  86. var toPrimitive = function (input, PREFERRED_STRING) {
  87. if (!isObject(input)) return input;
  88. var fn, val;
  89. if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  90. if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
  91. if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  92. throw TypeError("Can't convert object to primitive value");
  93. };
  94. var hasOwnProperty = {}.hasOwnProperty;
  95. var has = function (it, key) {
  96. return hasOwnProperty.call(it, key);
  97. };
  98. var document$1 = global_1.document;
  99. // typeof document.createElement is 'object' in old IE
  100. var EXISTS = isObject(document$1) && isObject(document$1.createElement);
  101. var documentCreateElement = function (it) {
  102. return EXISTS ? document$1.createElement(it) : {};
  103. };
  104. // Thank's IE8 for his funny defineProperty
  105. var ie8DomDefine = !descriptors && !fails(function () {
  106. return Object.defineProperty(documentCreateElement('div'), 'a', {
  107. get: function () { return 7; }
  108. }).a != 7;
  109. });
  110. var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  111. // `Object.getOwnPropertyDescriptor` method
  112. // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
  113. var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  114. O = toIndexedObject(O);
  115. P = toPrimitive(P, true);
  116. if (ie8DomDefine) try {
  117. return nativeGetOwnPropertyDescriptor(O, P);
  118. } catch (error) { /* empty */ }
  119. if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
  120. };
  121. var objectGetOwnPropertyDescriptor = {
  122. f: f$1
  123. };
  124. var anObject = function (it) {
  125. if (!isObject(it)) {
  126. throw TypeError(String(it) + ' is not an object');
  127. } return it;
  128. };
  129. var nativeDefineProperty = Object.defineProperty;
  130. // `Object.defineProperty` method
  131. // https://tc39.github.io/ecma262/#sec-object.defineproperty
  132. var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
  133. anObject(O);
  134. P = toPrimitive(P, true);
  135. anObject(Attributes);
  136. if (ie8DomDefine) try {
  137. return nativeDefineProperty(O, P, Attributes);
  138. } catch (error) { /* empty */ }
  139. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
  140. if ('value' in Attributes) O[P] = Attributes.value;
  141. return O;
  142. };
  143. var objectDefineProperty = {
  144. f: f$2
  145. };
  146. var createNonEnumerableProperty = descriptors ? function (object, key, value) {
  147. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  148. } : function (object, key, value) {
  149. object[key] = value;
  150. return object;
  151. };
  152. var setGlobal = function (key, value) {
  153. try {
  154. createNonEnumerableProperty(global_1, key, value);
  155. } catch (error) {
  156. global_1[key] = value;
  157. } return value;
  158. };
  159. var SHARED = '__core-js_shared__';
  160. var store = global_1[SHARED] || setGlobal(SHARED, {});
  161. var sharedStore = store;
  162. var functionToString = Function.toString;
  163. // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
  164. if (typeof sharedStore.inspectSource != 'function') {
  165. sharedStore.inspectSource = function (it) {
  166. return functionToString.call(it);
  167. };
  168. }
  169. var inspectSource = sharedStore.inspectSource;
  170. var WeakMap = global_1.WeakMap;
  171. var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
  172. var shared = createCommonjsModule(function (module) {
  173. (module.exports = function (key, value) {
  174. return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
  175. })('versions', []).push({
  176. version: '3.8.1',
  177. mode: 'global',
  178. copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
  179. });
  180. });
  181. var id = 0;
  182. var postfix = Math.random();
  183. var uid = function (key) {
  184. return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
  185. };
  186. var keys = shared('keys');
  187. var sharedKey = function (key) {
  188. return keys[key] || (keys[key] = uid(key));
  189. };
  190. var hiddenKeys = {};
  191. var WeakMap$1 = global_1.WeakMap;
  192. var set, get, has$1;
  193. var enforce = function (it) {
  194. return has$1(it) ? get(it) : set(it, {});
  195. };
  196. var getterFor = function (TYPE) {
  197. return function (it) {
  198. var state;
  199. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  200. throw TypeError('Incompatible receiver, ' + TYPE + ' required');
  201. } return state;
  202. };
  203. };
  204. if (nativeWeakMap) {
  205. var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1());
  206. var wmget = store$1.get;
  207. var wmhas = store$1.has;
  208. var wmset = store$1.set;
  209. set = function (it, metadata) {
  210. metadata.facade = it;
  211. wmset.call(store$1, it, metadata);
  212. return metadata;
  213. };
  214. get = function (it) {
  215. return wmget.call(store$1, it) || {};
  216. };
  217. has$1 = function (it) {
  218. return wmhas.call(store$1, it);
  219. };
  220. } else {
  221. var STATE = sharedKey('state');
  222. hiddenKeys[STATE] = true;
  223. set = function (it, metadata) {
  224. metadata.facade = it;
  225. createNonEnumerableProperty(it, STATE, metadata);
  226. return metadata;
  227. };
  228. get = function (it) {
  229. return has(it, STATE) ? it[STATE] : {};
  230. };
  231. has$1 = function (it) {
  232. return has(it, STATE);
  233. };
  234. }
  235. var internalState = {
  236. set: set,
  237. get: get,
  238. has: has$1,
  239. enforce: enforce,
  240. getterFor: getterFor
  241. };
  242. var redefine = createCommonjsModule(function (module) {
  243. var getInternalState = internalState.get;
  244. var enforceInternalState = internalState.enforce;
  245. var TEMPLATE = String(String).split('String');
  246. (module.exports = function (O, key, value, options) {
  247. var unsafe = options ? !!options.unsafe : false;
  248. var simple = options ? !!options.enumerable : false;
  249. var noTargetGet = options ? !!options.noTargetGet : false;
  250. var state;
  251. if (typeof value == 'function') {
  252. if (typeof key == 'string' && !has(value, 'name')) {
  253. createNonEnumerableProperty(value, 'name', key);
  254. }
  255. state = enforceInternalState(value);
  256. if (!state.source) {
  257. state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
  258. }
  259. }
  260. if (O === global_1) {
  261. if (simple) O[key] = value;
  262. else setGlobal(key, value);
  263. return;
  264. } else if (!unsafe) {
  265. delete O[key];
  266. } else if (!noTargetGet && O[key]) {
  267. simple = true;
  268. }
  269. if (simple) O[key] = value;
  270. else createNonEnumerableProperty(O, key, value);
  271. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  272. })(Function.prototype, 'toString', function toString() {
  273. return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
  274. });
  275. });
  276. var path = global_1;
  277. var aFunction = function (variable) {
  278. return typeof variable == 'function' ? variable : undefined;
  279. };
  280. var getBuiltIn = function (namespace, method) {
  281. return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
  282. : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
  283. };
  284. var ceil = Math.ceil;
  285. var floor = Math.floor;
  286. // `ToInteger` abstract operation
  287. // https://tc39.github.io/ecma262/#sec-tointeger
  288. var toInteger = function (argument) {
  289. return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
  290. };
  291. var min = Math.min;
  292. // `ToLength` abstract operation
  293. // https://tc39.github.io/ecma262/#sec-tolength
  294. var toLength = function (argument) {
  295. return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  296. };
  297. var max = Math.max;
  298. var min$1 = Math.min;
  299. // Helper for a popular repeating case of the spec:
  300. // Let integer be ? ToInteger(index).
  301. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  302. var toAbsoluteIndex = function (index, length) {
  303. var integer = toInteger(index);
  304. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  305. };
  306. // `Array.prototype.{ indexOf, includes }` methods implementation
  307. var createMethod = function (IS_INCLUDES) {
  308. return function ($this, el, fromIndex) {
  309. var O = toIndexedObject($this);
  310. var length = toLength(O.length);
  311. var index = toAbsoluteIndex(fromIndex, length);
  312. var value;
  313. // Array#includes uses SameValueZero equality algorithm
  314. // eslint-disable-next-line no-self-compare
  315. if (IS_INCLUDES && el != el) while (length > index) {
  316. value = O[index++];
  317. // eslint-disable-next-line no-self-compare
  318. if (value != value) return true;
  319. // Array#indexOf ignores holes, Array#includes - not
  320. } else for (;length > index; index++) {
  321. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  322. } return !IS_INCLUDES && -1;
  323. };
  324. };
  325. var arrayIncludes = {
  326. // `Array.prototype.includes` method
  327. // https://tc39.github.io/ecma262/#sec-array.prototype.includes
  328. includes: createMethod(true),
  329. // `Array.prototype.indexOf` method
  330. // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
  331. indexOf: createMethod(false)
  332. };
  333. var indexOf = arrayIncludes.indexOf;
  334. var objectKeysInternal = function (object, names) {
  335. var O = toIndexedObject(object);
  336. var i = 0;
  337. var result = [];
  338. var key;
  339. for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
  340. // Don't enum bug & hidden keys
  341. while (names.length > i) if (has(O, key = names[i++])) {
  342. ~indexOf(result, key) || result.push(key);
  343. }
  344. return result;
  345. };
  346. // IE8- don't enum bug keys
  347. var enumBugKeys = [
  348. 'constructor',
  349. 'hasOwnProperty',
  350. 'isPrototypeOf',
  351. 'propertyIsEnumerable',
  352. 'toLocaleString',
  353. 'toString',
  354. 'valueOf'
  355. ];
  356. var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
  357. // `Object.getOwnPropertyNames` method
  358. // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
  359. var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  360. return objectKeysInternal(O, hiddenKeys$1);
  361. };
  362. var objectGetOwnPropertyNames = {
  363. f: f$3
  364. };
  365. var f$4 = Object.getOwnPropertySymbols;
  366. var objectGetOwnPropertySymbols = {
  367. f: f$4
  368. };
  369. // all object keys, includes non-enumerable and symbols
  370. var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  371. var keys = objectGetOwnPropertyNames.f(anObject(it));
  372. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  373. return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
  374. };
  375. var copyConstructorProperties = function (target, source) {
  376. var keys = ownKeys(source);
  377. var defineProperty = objectDefineProperty.f;
  378. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  379. for (var i = 0; i < keys.length; i++) {
  380. var key = keys[i];
  381. if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  382. }
  383. };
  384. var replacement = /#|\.prototype\./;
  385. var isForced = function (feature, detection) {
  386. var value = data[normalize(feature)];
  387. return value == POLYFILL ? true
  388. : value == NATIVE ? false
  389. : typeof detection == 'function' ? fails(detection)
  390. : !!detection;
  391. };
  392. var normalize = isForced.normalize = function (string) {
  393. return String(string).replace(replacement, '.').toLowerCase();
  394. };
  395. var data = isForced.data = {};
  396. var NATIVE = isForced.NATIVE = 'N';
  397. var POLYFILL = isForced.POLYFILL = 'P';
  398. var isForced_1 = isForced;
  399. var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
  400. /*
  401. options.target - name of the target object
  402. options.global - target is the global object
  403. options.stat - export as static methods of target
  404. options.proto - export as prototype methods of target
  405. options.real - real prototype method for the `pure` version
  406. options.forced - export even if the native feature is available
  407. options.bind - bind methods to the target, required for the `pure` version
  408. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  409. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  410. options.sham - add a flag to not completely full polyfills
  411. options.enumerable - export as enumerable property
  412. options.noTargetGet - prevent calling a getter on target
  413. */
  414. var _export = function (options, source) {
  415. var TARGET = options.target;
  416. var GLOBAL = options.global;
  417. var STATIC = options.stat;
  418. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  419. if (GLOBAL) {
  420. target = global_1;
  421. } else if (STATIC) {
  422. target = global_1[TARGET] || setGlobal(TARGET, {});
  423. } else {
  424. target = (global_1[TARGET] || {}).prototype;
  425. }
  426. if (target) for (key in source) {
  427. sourceProperty = source[key];
  428. if (options.noTargetGet) {
  429. descriptor = getOwnPropertyDescriptor$1(target, key);
  430. targetProperty = descriptor && descriptor.value;
  431. } else targetProperty = target[key];
  432. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  433. // contained in target
  434. if (!FORCED && targetProperty !== undefined) {
  435. if (typeof sourceProperty === typeof targetProperty) continue;
  436. copyConstructorProperties(sourceProperty, targetProperty);
  437. }
  438. // add a flag to not completely full polyfills
  439. if (options.sham || (targetProperty && targetProperty.sham)) {
  440. createNonEnumerableProperty(sourceProperty, 'sham', true);
  441. }
  442. // extend global
  443. redefine(target, key, sourceProperty, options);
  444. }
  445. };
  446. var aFunction$1 = function (it) {
  447. if (typeof it != 'function') {
  448. throw TypeError(String(it) + ' is not a function');
  449. } return it;
  450. };
  451. // optional / simple context binding
  452. var functionBindContext = function (fn, that, length) {
  453. aFunction$1(fn);
  454. if (that === undefined) return fn;
  455. switch (length) {
  456. case 0: return function () {
  457. return fn.call(that);
  458. };
  459. case 1: return function (a) {
  460. return fn.call(that, a);
  461. };
  462. case 2: return function (a, b) {
  463. return fn.call(that, a, b);
  464. };
  465. case 3: return function (a, b, c) {
  466. return fn.call(that, a, b, c);
  467. };
  468. }
  469. return function (/* ...args */) {
  470. return fn.apply(that, arguments);
  471. };
  472. };
  473. // `ToObject` abstract operation
  474. // https://tc39.github.io/ecma262/#sec-toobject
  475. var toObject = function (argument) {
  476. return Object(requireObjectCoercible(argument));
  477. };
  478. // `IsArray` abstract operation
  479. // https://tc39.github.io/ecma262/#sec-isarray
  480. var isArray = Array.isArray || function isArray(arg) {
  481. return classofRaw(arg) == 'Array';
  482. };
  483. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  484. // Chrome 38 Symbol has incorrect toString conversion
  485. // eslint-disable-next-line no-undef
  486. return !String(Symbol());
  487. });
  488. var useSymbolAsUid = nativeSymbol
  489. // eslint-disable-next-line no-undef
  490. && !Symbol.sham
  491. // eslint-disable-next-line no-undef
  492. && typeof Symbol.iterator == 'symbol';
  493. var WellKnownSymbolsStore = shared('wks');
  494. var Symbol$1 = global_1.Symbol;
  495. var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
  496. var wellKnownSymbol = function (name) {
  497. if (!has(WellKnownSymbolsStore, name)) {
  498. if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
  499. else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
  500. } return WellKnownSymbolsStore[name];
  501. };
  502. var SPECIES = wellKnownSymbol('species');
  503. // `ArraySpeciesCreate` abstract operation
  504. // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
  505. var arraySpeciesCreate = function (originalArray, length) {
  506. var C;
  507. if (isArray(originalArray)) {
  508. C = originalArray.constructor;
  509. // cross-realm fallback
  510. if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
  511. else if (isObject(C)) {
  512. C = C[SPECIES];
  513. if (C === null) C = undefined;
  514. }
  515. } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
  516. };
  517. var push = [].push;
  518. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
  519. var createMethod$1 = function (TYPE) {
  520. var IS_MAP = TYPE == 1;
  521. var IS_FILTER = TYPE == 2;
  522. var IS_SOME = TYPE == 3;
  523. var IS_EVERY = TYPE == 4;
  524. var IS_FIND_INDEX = TYPE == 6;
  525. var IS_FILTER_OUT = TYPE == 7;
  526. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  527. return function ($this, callbackfn, that, specificCreate) {
  528. var O = toObject($this);
  529. var self = indexedObject(O);
  530. var boundFunction = functionBindContext(callbackfn, that, 3);
  531. var length = toLength(self.length);
  532. var index = 0;
  533. var create = specificCreate || arraySpeciesCreate;
  534. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
  535. var value, result;
  536. for (;length > index; index++) if (NO_HOLES || index in self) {
  537. value = self[index];
  538. result = boundFunction(value, index, O);
  539. if (TYPE) {
  540. if (IS_MAP) target[index] = result; // map
  541. else if (result) switch (TYPE) {
  542. case 3: return true; // some
  543. case 5: return value; // find
  544. case 6: return index; // findIndex
  545. case 2: push.call(target, value); // filter
  546. } else switch (TYPE) {
  547. case 4: return false; // every
  548. case 7: push.call(target, value); // filterOut
  549. }
  550. }
  551. }
  552. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  553. };
  554. };
  555. var arrayIteration = {
  556. // `Array.prototype.forEach` method
  557. // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
  558. forEach: createMethod$1(0),
  559. // `Array.prototype.map` method
  560. // https://tc39.github.io/ecma262/#sec-array.prototype.map
  561. map: createMethod$1(1),
  562. // `Array.prototype.filter` method
  563. // https://tc39.github.io/ecma262/#sec-array.prototype.filter
  564. filter: createMethod$1(2),
  565. // `Array.prototype.some` method
  566. // https://tc39.github.io/ecma262/#sec-array.prototype.some
  567. some: createMethod$1(3),
  568. // `Array.prototype.every` method
  569. // https://tc39.github.io/ecma262/#sec-array.prototype.every
  570. every: createMethod$1(4),
  571. // `Array.prototype.find` method
  572. // https://tc39.github.io/ecma262/#sec-array.prototype.find
  573. find: createMethod$1(5),
  574. // `Array.prototype.findIndex` method
  575. // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
  576. findIndex: createMethod$1(6),
  577. // `Array.prototype.filterOut` method
  578. // https://github.com/tc39/proposal-array-filtering
  579. filterOut: createMethod$1(7)
  580. };
  581. // `Object.keys` method
  582. // https://tc39.github.io/ecma262/#sec-object.keys
  583. var objectKeys = Object.keys || function keys(O) {
  584. return objectKeysInternal(O, enumBugKeys);
  585. };
  586. // `Object.defineProperties` method
  587. // https://tc39.github.io/ecma262/#sec-object.defineproperties
  588. var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
  589. anObject(O);
  590. var keys = objectKeys(Properties);
  591. var length = keys.length;
  592. var index = 0;
  593. var key;
  594. while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
  595. return O;
  596. };
  597. var html = getBuiltIn('document', 'documentElement');
  598. var GT = '>';
  599. var LT = '<';
  600. var PROTOTYPE = 'prototype';
  601. var SCRIPT = 'script';
  602. var IE_PROTO = sharedKey('IE_PROTO');
  603. var EmptyConstructor = function () { /* empty */ };
  604. var scriptTag = function (content) {
  605. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  606. };
  607. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  608. var NullProtoObjectViaActiveX = function (activeXDocument) {
  609. activeXDocument.write(scriptTag(''));
  610. activeXDocument.close();
  611. var temp = activeXDocument.parentWindow.Object;
  612. activeXDocument = null; // avoid memory leak
  613. return temp;
  614. };
  615. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  616. var NullProtoObjectViaIFrame = function () {
  617. // Thrash, waste and sodomy: IE GC bug
  618. var iframe = documentCreateElement('iframe');
  619. var JS = 'java' + SCRIPT + ':';
  620. var iframeDocument;
  621. iframe.style.display = 'none';
  622. html.appendChild(iframe);
  623. // https://github.com/zloirock/core-js/issues/475
  624. iframe.src = String(JS);
  625. iframeDocument = iframe.contentWindow.document;
  626. iframeDocument.open();
  627. iframeDocument.write(scriptTag('document.F=Object'));
  628. iframeDocument.close();
  629. return iframeDocument.F;
  630. };
  631. // Check for document.domain and active x support
  632. // No need to use active x approach when document.domain is not set
  633. // see https://github.com/es-shims/es5-shim/issues/150
  634. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  635. // avoid IE GC bug
  636. var activeXDocument;
  637. var NullProtoObject = function () {
  638. try {
  639. /* global ActiveXObject */
  640. activeXDocument = document.domain && new ActiveXObject('htmlfile');
  641. } catch (error) { /* ignore */ }
  642. NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
  643. var length = enumBugKeys.length;
  644. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  645. return NullProtoObject();
  646. };
  647. hiddenKeys[IE_PROTO] = true;
  648. // `Object.create` method
  649. // https://tc39.github.io/ecma262/#sec-object.create
  650. var objectCreate = Object.create || function create(O, Properties) {
  651. var result;
  652. if (O !== null) {
  653. EmptyConstructor[PROTOTYPE] = anObject(O);
  654. result = new EmptyConstructor();
  655. EmptyConstructor[PROTOTYPE] = null;
  656. // add "__proto__" for Object.getPrototypeOf polyfill
  657. result[IE_PROTO] = O;
  658. } else result = NullProtoObject();
  659. return Properties === undefined ? result : objectDefineProperties(result, Properties);
  660. };
  661. var UNSCOPABLES = wellKnownSymbol('unscopables');
  662. var ArrayPrototype = Array.prototype;
  663. // Array.prototype[@@unscopables]
  664. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  665. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  666. objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
  667. configurable: true,
  668. value: objectCreate(null)
  669. });
  670. }
  671. // add a key to Array.prototype[@@unscopables]
  672. var addToUnscopables = function (key) {
  673. ArrayPrototype[UNSCOPABLES][key] = true;
  674. };
  675. var defineProperty = Object.defineProperty;
  676. var cache = {};
  677. var thrower = function (it) { throw it; };
  678. var arrayMethodUsesToLength = function (METHOD_NAME, options) {
  679. if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
  680. if (!options) options = {};
  681. var method = [][METHOD_NAME];
  682. var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
  683. var argument0 = has(options, 0) ? options[0] : thrower;
  684. var argument1 = has(options, 1) ? options[1] : undefined;
  685. return cache[METHOD_NAME] = !!method && !fails(function () {
  686. if (ACCESSORS && !descriptors) return true;
  687. var O = { length: -1 };
  688. if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
  689. else O[1] = 1;
  690. method.call(O, argument0, argument1);
  691. });
  692. };
  693. var $find = arrayIteration.find;
  694. var FIND = 'find';
  695. var SKIPS_HOLES = true;
  696. var USES_TO_LENGTH = arrayMethodUsesToLength(FIND);
  697. // Shouldn't skip holes
  698. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  699. // `Array.prototype.find` method
  700. // https://tc39.github.io/ecma262/#sec-array.prototype.find
  701. _export({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
  702. find: function find(callbackfn /* , that = undefined */) {
  703. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  704. }
  705. });
  706. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  707. addToUnscopables(FIND);
  708. var $includes = arrayIncludes.includes;
  709. var USES_TO_LENGTH$1 = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
  710. // `Array.prototype.includes` method
  711. // https://tc39.github.io/ecma262/#sec-array.prototype.includes
  712. _export({ target: 'Array', proto: true, forced: !USES_TO_LENGTH$1 }, {
  713. includes: function includes(el /* , fromIndex = 0 */) {
  714. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  715. }
  716. });
  717. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  718. addToUnscopables('includes');
  719. var MATCH = wellKnownSymbol('match');
  720. // `IsRegExp` abstract operation
  721. // https://tc39.github.io/ecma262/#sec-isregexp
  722. var isRegexp = function (it) {
  723. var isRegExp;
  724. return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
  725. };
  726. var notARegexp = function (it) {
  727. if (isRegexp(it)) {
  728. throw TypeError("The method doesn't accept regular expressions");
  729. } return it;
  730. };
  731. var MATCH$1 = wellKnownSymbol('match');
  732. var correctIsRegexpLogic = function (METHOD_NAME) {
  733. var regexp = /./;
  734. try {
  735. '/./'[METHOD_NAME](regexp);
  736. } catch (error1) {
  737. try {
  738. regexp[MATCH$1] = false;
  739. return '/./'[METHOD_NAME](regexp);
  740. } catch (error2) { /* empty */ }
  741. } return false;
  742. };
  743. // `String.prototype.includes` method
  744. // https://tc39.github.io/ecma262/#sec-string.prototype.includes
  745. _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
  746. includes: function includes(searchString /* , position = 0 */) {
  747. return !!~String(requireObjectCoercible(this))
  748. .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);
  749. }
  750. });
  751. function _classCallCheck(instance, Constructor) {
  752. if (!(instance instanceof Constructor)) {
  753. throw new TypeError("Cannot call a class as a function");
  754. }
  755. }
  756. function _defineProperties(target, props) {
  757. for (var i = 0; i < props.length; i++) {
  758. var descriptor = props[i];
  759. descriptor.enumerable = descriptor.enumerable || false;
  760. descriptor.configurable = true;
  761. if ("value" in descriptor) descriptor.writable = true;
  762. Object.defineProperty(target, descriptor.key, descriptor);
  763. }
  764. }
  765. function _createClass(Constructor, protoProps, staticProps) {
  766. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  767. if (staticProps) _defineProperties(Constructor, staticProps);
  768. return Constructor;
  769. }
  770. function _inherits(subClass, superClass) {
  771. if (typeof superClass !== "function" && superClass !== null) {
  772. throw new TypeError("Super expression must either be null or a function");
  773. }
  774. subClass.prototype = Object.create(superClass && superClass.prototype, {
  775. constructor: {
  776. value: subClass,
  777. writable: true,
  778. configurable: true
  779. }
  780. });
  781. if (superClass) _setPrototypeOf(subClass, superClass);
  782. }
  783. function _getPrototypeOf(o) {
  784. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  785. return o.__proto__ || Object.getPrototypeOf(o);
  786. };
  787. return _getPrototypeOf(o);
  788. }
  789. function _setPrototypeOf(o, p) {
  790. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  791. o.__proto__ = p;
  792. return o;
  793. };
  794. return _setPrototypeOf(o, p);
  795. }
  796. function _isNativeReflectConstruct() {
  797. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  798. if (Reflect.construct.sham) return false;
  799. if (typeof Proxy === "function") return true;
  800. try {
  801. Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
  802. return true;
  803. } catch (e) {
  804. return false;
  805. }
  806. }
  807. function _assertThisInitialized(self) {
  808. if (self === void 0) {
  809. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  810. }
  811. return self;
  812. }
  813. function _possibleConstructorReturn(self, call) {
  814. if (call && (typeof call === "object" || typeof call === "function")) {
  815. return call;
  816. }
  817. return _assertThisInitialized(self);
  818. }
  819. function _createSuper(Derived) {
  820. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  821. return function _createSuperInternal() {
  822. var Super = _getPrototypeOf(Derived),
  823. result;
  824. if (hasNativeReflectConstruct) {
  825. var NewTarget = _getPrototypeOf(this).constructor;
  826. result = Reflect.construct(Super, arguments, NewTarget);
  827. } else {
  828. result = Super.apply(this, arguments);
  829. }
  830. return _possibleConstructorReturn(this, result);
  831. };
  832. }
  833. function _superPropBase(object, property) {
  834. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  835. object = _getPrototypeOf(object);
  836. if (object === null) break;
  837. }
  838. return object;
  839. }
  840. function _get(target, property, receiver) {
  841. if (typeof Reflect !== "undefined" && Reflect.get) {
  842. _get = Reflect.get;
  843. } else {
  844. _get = function _get(target, property, receiver) {
  845. var base = _superPropBase(target, property);
  846. if (!base) return;
  847. var desc = Object.getOwnPropertyDescriptor(base, property);
  848. if (desc.get) {
  849. return desc.get.call(receiver);
  850. }
  851. return desc.value;
  852. };
  853. }
  854. return _get(target, property, receiver || target);
  855. }
  856. /**
  857. * @author zhixin wen <wenzhixin2010@gmail.com>
  858. * https://github.com/wenzhixin/bootstrap-table/
  859. * theme: https://materializecss.com/
  860. */
  861. $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
  862. classes: 'table highlight',
  863. buttonsPrefix: '',
  864. buttonsClass: 'waves-effect waves-light btn',
  865. iconsPrefix: 'material-icons',
  866. icons: {
  867. paginationSwitchDown: 'grid_on',
  868. paginationSwitchUp: 'grid_off',
  869. refresh: 'refresh',
  870. toggleOff: 'tablet',
  871. toggleOn: 'tablet_android',
  872. columns: 'view_list',
  873. detailOpen: 'add',
  874. detailClose: 'remove',
  875. fullscreen: 'fullscreen',
  876. sort: 'sort',
  877. search: 'search',
  878. clearSearch: 'delete'
  879. }
  880. });
  881. $__default['default'].fn.bootstrapTable.theme = 'materialize';
  882. $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  883. _inherits(_class, _$$BootstrapTable);
  884. var _super = _createSuper(_class);
  885. function _class() {
  886. _classCallCheck(this, _class);
  887. return _super.apply(this, arguments);
  888. }
  889. _createClass(_class, [{
  890. key: "initConstants",
  891. value: function initConstants() {
  892. _get(_getPrototypeOf(_class.prototype), "initConstants", this).call(this);
  893. this.constants.classes.buttonsGroup = 'button-group';
  894. this.constants.classes.buttonsDropdown = '';
  895. this.constants.classes.input = 'input-field';
  896. this.constants.classes.input = '';
  897. this.constants.classes.paginationDropdown = '';
  898. this.constants.classes.buttonActive = 'green';
  899. this.constants.html.toolbarDropdown = ['<ul class="dropdown-content">', '</ul>'];
  900. this.constants.html.toolbarDropdownItem = '<li class="dropdown-item-marker"><label>%s</label></li>';
  901. this.constants.html.toolbarDropdownSeparator = '<li class="divider" tabindex="-1"></li>';
  902. this.constants.html.pageDropdown = ['<ul id="pagination-list-id" class="dropdown-content">', '</ul>'];
  903. this.constants.html.pageDropdownItem = '<li><a class="%s" href="#">%s</a></li>';
  904. this.constants.html.dropdownCaret = '<i class="material-icons">arrow_drop_down</i>';
  905. this.constants.html.pagination = ['<ul class="pagination%s">', '</ul>'];
  906. this.constants.html.paginationItem = '<li class="waves-effect page-item%s" aria-label="%s"><a href="#">%s</a></li>';
  907. this.constants.html.icon = '<i class="%s">%s</i>';
  908. this.constants.html.inputGroup = '%s%s';
  909. }
  910. }, {
  911. key: "initToolbar",
  912. value: function initToolbar() {
  913. _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
  914. this.handleToolbar();
  915. }
  916. }, {
  917. key: "handleToolbar",
  918. value: function handleToolbar() {
  919. if (this.$toolbar.find('.dropdown-toggle').length) {
  920. this.$toolbar.find('.dropdown-toggle').each(function (i, el) {
  921. if (!$__default['default'](el).next().length) {
  922. return;
  923. }
  924. var id = "toolbar-columns-id".concat(i);
  925. $__default['default'](el).next().attr('id', id);
  926. $__default['default'](el).attr('data-target', id).dropdown({
  927. alignment: 'right',
  928. constrainWidth: false,
  929. closeOnClick: false
  930. });
  931. });
  932. }
  933. }
  934. }, {
  935. key: "initPagination",
  936. value: function initPagination() {
  937. _get(_getPrototypeOf(_class.prototype), "initPagination", this).call(this);
  938. if (this.options.pagination && this.paginationParts.includes('pageSize')) {
  939. this.$pagination.find('.dropdown-toggle').attr('data-target', this.$pagination.find('.dropdown-content').attr('id')).dropdown();
  940. }
  941. }
  942. }]);
  943. return _class;
  944. }($__default['default'].BootstrapTable);
  945. })));