bootstrap-table-custom-view.js 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277
  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. // `IsArray` abstract operation
  447. // https://tc39.github.io/ecma262/#sec-isarray
  448. var isArray = Array.isArray || function isArray(arg) {
  449. return classofRaw(arg) == 'Array';
  450. };
  451. // `ToObject` abstract operation
  452. // https://tc39.github.io/ecma262/#sec-toobject
  453. var toObject = function (argument) {
  454. return Object(requireObjectCoercible(argument));
  455. };
  456. var createProperty = function (object, key, value) {
  457. var propertyKey = toPrimitive(key);
  458. if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
  459. else object[propertyKey] = value;
  460. };
  461. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  462. // Chrome 38 Symbol has incorrect toString conversion
  463. // eslint-disable-next-line no-undef
  464. return !String(Symbol());
  465. });
  466. var useSymbolAsUid = nativeSymbol
  467. // eslint-disable-next-line no-undef
  468. && !Symbol.sham
  469. // eslint-disable-next-line no-undef
  470. && typeof Symbol.iterator == 'symbol';
  471. var WellKnownSymbolsStore = shared('wks');
  472. var Symbol$1 = global_1.Symbol;
  473. var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
  474. var wellKnownSymbol = function (name) {
  475. if (!has(WellKnownSymbolsStore, name)) {
  476. if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
  477. else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
  478. } return WellKnownSymbolsStore[name];
  479. };
  480. var SPECIES = wellKnownSymbol('species');
  481. // `ArraySpeciesCreate` abstract operation
  482. // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
  483. var arraySpeciesCreate = function (originalArray, length) {
  484. var C;
  485. if (isArray(originalArray)) {
  486. C = originalArray.constructor;
  487. // cross-realm fallback
  488. if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
  489. else if (isObject(C)) {
  490. C = C[SPECIES];
  491. if (C === null) C = undefined;
  492. }
  493. } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
  494. };
  495. var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
  496. var process = global_1.process;
  497. var versions = process && process.versions;
  498. var v8 = versions && versions.v8;
  499. var match, version;
  500. if (v8) {
  501. match = v8.split('.');
  502. version = match[0] + match[1];
  503. } else if (engineUserAgent) {
  504. match = engineUserAgent.match(/Edge\/(\d+)/);
  505. if (!match || match[1] >= 74) {
  506. match = engineUserAgent.match(/Chrome\/(\d+)/);
  507. if (match) version = match[1];
  508. }
  509. }
  510. var engineV8Version = version && +version;
  511. var SPECIES$1 = wellKnownSymbol('species');
  512. var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  513. // We can't use this feature detection in V8 since it causes
  514. // deoptimization and serious performance degradation
  515. // https://github.com/zloirock/core-js/issues/677
  516. return engineV8Version >= 51 || !fails(function () {
  517. var array = [];
  518. var constructor = array.constructor = {};
  519. constructor[SPECIES$1] = function () {
  520. return { foo: 1 };
  521. };
  522. return array[METHOD_NAME](Boolean).foo !== 1;
  523. });
  524. };
  525. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  526. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
  527. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  528. // We can't use this feature detection in V8 since it causes
  529. // deoptimization and serious performance degradation
  530. // https://github.com/zloirock/core-js/issues/679
  531. var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
  532. var array = [];
  533. array[IS_CONCAT_SPREADABLE] = false;
  534. return array.concat()[0] !== array;
  535. });
  536. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  537. var isConcatSpreadable = function (O) {
  538. if (!isObject(O)) return false;
  539. var spreadable = O[IS_CONCAT_SPREADABLE];
  540. return spreadable !== undefined ? !!spreadable : isArray(O);
  541. };
  542. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  543. // `Array.prototype.concat` method
  544. // https://tc39.github.io/ecma262/#sec-array.prototype.concat
  545. // with adding support of @@isConcatSpreadable and @@species
  546. _export({ target: 'Array', proto: true, forced: FORCED }, {
  547. concat: function concat(arg) { // eslint-disable-line no-unused-vars
  548. var O = toObject(this);
  549. var A = arraySpeciesCreate(O, 0);
  550. var n = 0;
  551. var i, k, length, len, E;
  552. for (i = -1, length = arguments.length; i < length; i++) {
  553. E = i === -1 ? O : arguments[i];
  554. if (isConcatSpreadable(E)) {
  555. len = toLength(E.length);
  556. if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  557. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  558. } else {
  559. if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  560. createProperty(A, n++, E);
  561. }
  562. }
  563. A.length = n;
  564. return A;
  565. }
  566. });
  567. var aFunction$1 = function (it) {
  568. if (typeof it != 'function') {
  569. throw TypeError(String(it) + ' is not a function');
  570. } return it;
  571. };
  572. // optional / simple context binding
  573. var functionBindContext = function (fn, that, length) {
  574. aFunction$1(fn);
  575. if (that === undefined) return fn;
  576. switch (length) {
  577. case 0: return function () {
  578. return fn.call(that);
  579. };
  580. case 1: return function (a) {
  581. return fn.call(that, a);
  582. };
  583. case 2: return function (a, b) {
  584. return fn.call(that, a, b);
  585. };
  586. case 3: return function (a, b, c) {
  587. return fn.call(that, a, b, c);
  588. };
  589. }
  590. return function (/* ...args */) {
  591. return fn.apply(that, arguments);
  592. };
  593. };
  594. var push = [].push;
  595. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
  596. var createMethod$1 = function (TYPE) {
  597. var IS_MAP = TYPE == 1;
  598. var IS_FILTER = TYPE == 2;
  599. var IS_SOME = TYPE == 3;
  600. var IS_EVERY = TYPE == 4;
  601. var IS_FIND_INDEX = TYPE == 6;
  602. var IS_FILTER_OUT = TYPE == 7;
  603. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  604. return function ($this, callbackfn, that, specificCreate) {
  605. var O = toObject($this);
  606. var self = indexedObject(O);
  607. var boundFunction = functionBindContext(callbackfn, that, 3);
  608. var length = toLength(self.length);
  609. var index = 0;
  610. var create = specificCreate || arraySpeciesCreate;
  611. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
  612. var value, result;
  613. for (;length > index; index++) if (NO_HOLES || index in self) {
  614. value = self[index];
  615. result = boundFunction(value, index, O);
  616. if (TYPE) {
  617. if (IS_MAP) target[index] = result; // map
  618. else if (result) switch (TYPE) {
  619. case 3: return true; // some
  620. case 5: return value; // find
  621. case 6: return index; // findIndex
  622. case 2: push.call(target, value); // filter
  623. } else switch (TYPE) {
  624. case 4: return false; // every
  625. case 7: push.call(target, value); // filterOut
  626. }
  627. }
  628. }
  629. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  630. };
  631. };
  632. var arrayIteration = {
  633. // `Array.prototype.forEach` method
  634. // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
  635. forEach: createMethod$1(0),
  636. // `Array.prototype.map` method
  637. // https://tc39.github.io/ecma262/#sec-array.prototype.map
  638. map: createMethod$1(1),
  639. // `Array.prototype.filter` method
  640. // https://tc39.github.io/ecma262/#sec-array.prototype.filter
  641. filter: createMethod$1(2),
  642. // `Array.prototype.some` method
  643. // https://tc39.github.io/ecma262/#sec-array.prototype.some
  644. some: createMethod$1(3),
  645. // `Array.prototype.every` method
  646. // https://tc39.github.io/ecma262/#sec-array.prototype.every
  647. every: createMethod$1(4),
  648. // `Array.prototype.find` method
  649. // https://tc39.github.io/ecma262/#sec-array.prototype.find
  650. find: createMethod$1(5),
  651. // `Array.prototype.findIndex` method
  652. // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
  653. findIndex: createMethod$1(6),
  654. // `Array.prototype.filterOut` method
  655. // https://github.com/tc39/proposal-array-filtering
  656. filterOut: createMethod$1(7)
  657. };
  658. // `Object.keys` method
  659. // https://tc39.github.io/ecma262/#sec-object.keys
  660. var objectKeys = Object.keys || function keys(O) {
  661. return objectKeysInternal(O, enumBugKeys);
  662. };
  663. // `Object.defineProperties` method
  664. // https://tc39.github.io/ecma262/#sec-object.defineproperties
  665. var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
  666. anObject(O);
  667. var keys = objectKeys(Properties);
  668. var length = keys.length;
  669. var index = 0;
  670. var key;
  671. while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
  672. return O;
  673. };
  674. var html = getBuiltIn('document', 'documentElement');
  675. var GT = '>';
  676. var LT = '<';
  677. var PROTOTYPE = 'prototype';
  678. var SCRIPT = 'script';
  679. var IE_PROTO = sharedKey('IE_PROTO');
  680. var EmptyConstructor = function () { /* empty */ };
  681. var scriptTag = function (content) {
  682. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  683. };
  684. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  685. var NullProtoObjectViaActiveX = function (activeXDocument) {
  686. activeXDocument.write(scriptTag(''));
  687. activeXDocument.close();
  688. var temp = activeXDocument.parentWindow.Object;
  689. activeXDocument = null; // avoid memory leak
  690. return temp;
  691. };
  692. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  693. var NullProtoObjectViaIFrame = function () {
  694. // Thrash, waste and sodomy: IE GC bug
  695. var iframe = documentCreateElement('iframe');
  696. var JS = 'java' + SCRIPT + ':';
  697. var iframeDocument;
  698. iframe.style.display = 'none';
  699. html.appendChild(iframe);
  700. // https://github.com/zloirock/core-js/issues/475
  701. iframe.src = String(JS);
  702. iframeDocument = iframe.contentWindow.document;
  703. iframeDocument.open();
  704. iframeDocument.write(scriptTag('document.F=Object'));
  705. iframeDocument.close();
  706. return iframeDocument.F;
  707. };
  708. // Check for document.domain and active x support
  709. // No need to use active x approach when document.domain is not set
  710. // see https://github.com/es-shims/es5-shim/issues/150
  711. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  712. // avoid IE GC bug
  713. var activeXDocument;
  714. var NullProtoObject = function () {
  715. try {
  716. /* global ActiveXObject */
  717. activeXDocument = document.domain && new ActiveXObject('htmlfile');
  718. } catch (error) { /* ignore */ }
  719. NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
  720. var length = enumBugKeys.length;
  721. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  722. return NullProtoObject();
  723. };
  724. hiddenKeys[IE_PROTO] = true;
  725. // `Object.create` method
  726. // https://tc39.github.io/ecma262/#sec-object.create
  727. var objectCreate = Object.create || function create(O, Properties) {
  728. var result;
  729. if (O !== null) {
  730. EmptyConstructor[PROTOTYPE] = anObject(O);
  731. result = new EmptyConstructor();
  732. EmptyConstructor[PROTOTYPE] = null;
  733. // add "__proto__" for Object.getPrototypeOf polyfill
  734. result[IE_PROTO] = O;
  735. } else result = NullProtoObject();
  736. return Properties === undefined ? result : objectDefineProperties(result, Properties);
  737. };
  738. var UNSCOPABLES = wellKnownSymbol('unscopables');
  739. var ArrayPrototype = Array.prototype;
  740. // Array.prototype[@@unscopables]
  741. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  742. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  743. objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
  744. configurable: true,
  745. value: objectCreate(null)
  746. });
  747. }
  748. // add a key to Array.prototype[@@unscopables]
  749. var addToUnscopables = function (key) {
  750. ArrayPrototype[UNSCOPABLES][key] = true;
  751. };
  752. var defineProperty = Object.defineProperty;
  753. var cache = {};
  754. var thrower = function (it) { throw it; };
  755. var arrayMethodUsesToLength = function (METHOD_NAME, options) {
  756. if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
  757. if (!options) options = {};
  758. var method = [][METHOD_NAME];
  759. var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
  760. var argument0 = has(options, 0) ? options[0] : thrower;
  761. var argument1 = has(options, 1) ? options[1] : undefined;
  762. return cache[METHOD_NAME] = !!method && !fails(function () {
  763. if (ACCESSORS && !descriptors) return true;
  764. var O = { length: -1 };
  765. if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
  766. else O[1] = 1;
  767. method.call(O, argument0, argument1);
  768. });
  769. };
  770. var $find = arrayIteration.find;
  771. var FIND = 'find';
  772. var SKIPS_HOLES = true;
  773. var USES_TO_LENGTH = arrayMethodUsesToLength(FIND);
  774. // Shouldn't skip holes
  775. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  776. // `Array.prototype.find` method
  777. // https://tc39.github.io/ecma262/#sec-array.prototype.find
  778. _export({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
  779. find: function find(callbackfn /* , that = undefined */) {
  780. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  781. }
  782. });
  783. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  784. addToUnscopables(FIND);
  785. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
  786. var USES_TO_LENGTH$1 = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });
  787. var SPECIES$2 = wellKnownSymbol('species');
  788. var nativeSlice = [].slice;
  789. var max$1 = Math.max;
  790. // `Array.prototype.slice` method
  791. // https://tc39.github.io/ecma262/#sec-array.prototype.slice
  792. // fallback for not array-like ES3 strings and DOM objects
  793. _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH$1 }, {
  794. slice: function slice(start, end) {
  795. var O = toIndexedObject(this);
  796. var length = toLength(O.length);
  797. var k = toAbsoluteIndex(start, length);
  798. var fin = toAbsoluteIndex(end === undefined ? length : end, length);
  799. // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
  800. var Constructor, result, n;
  801. if (isArray(O)) {
  802. Constructor = O.constructor;
  803. // cross-realm fallback
  804. if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
  805. Constructor = undefined;
  806. } else if (isObject(Constructor)) {
  807. Constructor = Constructor[SPECIES$2];
  808. if (Constructor === null) Constructor = undefined;
  809. }
  810. if (Constructor === Array || Constructor === undefined) {
  811. return nativeSlice.call(O, k, fin);
  812. }
  813. }
  814. result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
  815. for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
  816. result.length = n;
  817. return result;
  818. }
  819. });
  820. var nativeAssign = Object.assign;
  821. var defineProperty$1 = Object.defineProperty;
  822. // `Object.assign` method
  823. // https://tc39.github.io/ecma262/#sec-object.assign
  824. var objectAssign = !nativeAssign || fails(function () {
  825. // should have correct order of operations (Edge bug)
  826. if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$1({}, 'a', {
  827. enumerable: true,
  828. get: function () {
  829. defineProperty$1(this, 'b', {
  830. value: 3,
  831. enumerable: false
  832. });
  833. }
  834. }), { b: 2 })).b !== 1) return true;
  835. // should work with symbols and should have deterministic property order (V8 bug)
  836. var A = {};
  837. var B = {};
  838. // eslint-disable-next-line no-undef
  839. var symbol = Symbol();
  840. var alphabet = 'abcdefghijklmnopqrst';
  841. A[symbol] = 7;
  842. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  843. return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
  844. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
  845. var T = toObject(target);
  846. var argumentsLength = arguments.length;
  847. var index = 1;
  848. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  849. var propertyIsEnumerable = objectPropertyIsEnumerable.f;
  850. while (argumentsLength > index) {
  851. var S = indexedObject(arguments[index++]);
  852. var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
  853. var length = keys.length;
  854. var j = 0;
  855. var key;
  856. while (length > j) {
  857. key = keys[j++];
  858. if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
  859. }
  860. } return T;
  861. } : nativeAssign;
  862. // `Object.assign` method
  863. // https://tc39.github.io/ecma262/#sec-object.assign
  864. _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
  865. assign: objectAssign
  866. });
  867. function _classCallCheck(instance, Constructor) {
  868. if (!(instance instanceof Constructor)) {
  869. throw new TypeError("Cannot call a class as a function");
  870. }
  871. }
  872. function _defineProperties(target, props) {
  873. for (var i = 0; i < props.length; i++) {
  874. var descriptor = props[i];
  875. descriptor.enumerable = descriptor.enumerable || false;
  876. descriptor.configurable = true;
  877. if ("value" in descriptor) descriptor.writable = true;
  878. Object.defineProperty(target, descriptor.key, descriptor);
  879. }
  880. }
  881. function _createClass(Constructor, protoProps, staticProps) {
  882. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  883. if (staticProps) _defineProperties(Constructor, staticProps);
  884. return Constructor;
  885. }
  886. function _inherits(subClass, superClass) {
  887. if (typeof superClass !== "function" && superClass !== null) {
  888. throw new TypeError("Super expression must either be null or a function");
  889. }
  890. subClass.prototype = Object.create(superClass && superClass.prototype, {
  891. constructor: {
  892. value: subClass,
  893. writable: true,
  894. configurable: true
  895. }
  896. });
  897. if (superClass) _setPrototypeOf(subClass, superClass);
  898. }
  899. function _getPrototypeOf(o) {
  900. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  901. return o.__proto__ || Object.getPrototypeOf(o);
  902. };
  903. return _getPrototypeOf(o);
  904. }
  905. function _setPrototypeOf(o, p) {
  906. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  907. o.__proto__ = p;
  908. return o;
  909. };
  910. return _setPrototypeOf(o, p);
  911. }
  912. function _isNativeReflectConstruct() {
  913. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  914. if (Reflect.construct.sham) return false;
  915. if (typeof Proxy === "function") return true;
  916. try {
  917. Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
  918. return true;
  919. } catch (e) {
  920. return false;
  921. }
  922. }
  923. function _assertThisInitialized(self) {
  924. if (self === void 0) {
  925. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  926. }
  927. return self;
  928. }
  929. function _possibleConstructorReturn(self, call) {
  930. if (call && (typeof call === "object" || typeof call === "function")) {
  931. return call;
  932. }
  933. return _assertThisInitialized(self);
  934. }
  935. function _createSuper(Derived) {
  936. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  937. return function _createSuperInternal() {
  938. var Super = _getPrototypeOf(Derived),
  939. result;
  940. if (hasNativeReflectConstruct) {
  941. var NewTarget = _getPrototypeOf(this).constructor;
  942. result = Reflect.construct(Super, arguments, NewTarget);
  943. } else {
  944. result = Super.apply(this, arguments);
  945. }
  946. return _possibleConstructorReturn(this, result);
  947. };
  948. }
  949. function _superPropBase(object, property) {
  950. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  951. object = _getPrototypeOf(object);
  952. if (object === null) break;
  953. }
  954. return object;
  955. }
  956. function _get(target, property, receiver) {
  957. if (typeof Reflect !== "undefined" && Reflect.get) {
  958. _get = Reflect.get;
  959. } else {
  960. _get = function _get(target, property, receiver) {
  961. var base = _superPropBase(target, property);
  962. if (!base) return;
  963. var desc = Object.getOwnPropertyDescriptor(base, property);
  964. if (desc.get) {
  965. return desc.get.call(receiver);
  966. }
  967. return desc.value;
  968. };
  969. }
  970. return _get(target, property, receiver || target);
  971. }
  972. /**
  973. * @author: Dustin Utecht
  974. * @github: https://github.com/UtechtDustin
  975. */
  976. var Utils = $__default['default'].fn.bootstrapTable.utils;
  977. $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
  978. customView: false,
  979. showCustomView: false,
  980. showCustomViewButton: false
  981. });
  982. $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults.icons, {
  983. customView: {
  984. bootstrap3: 'glyphicon glyphicon-eye-open',
  985. bootstrap4: 'fa fa-eye',
  986. semantic: 'fa fa-eye',
  987. foundation: 'fa fa-eye',
  988. bulma: 'fa fa-eye',
  989. materialize: 'remove_red_eye'
  990. }[$__default['default'].fn.bootstrapTable.theme] || 'fa-eye'
  991. });
  992. $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
  993. onCustomViewPostBody: function onCustomViewPostBody() {
  994. return false;
  995. },
  996. onCustomViewPreBody: function onCustomViewPreBody() {
  997. return false;
  998. }
  999. });
  1000. $__default['default'].extend($__default['default'].fn.bootstrapTable.locales, {
  1001. formatToggleCustomView: function formatToggleCustomView() {
  1002. return 'Toggle custom view';
  1003. }
  1004. });
  1005. $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, $__default['default'].fn.bootstrapTable.locales);
  1006. $__default['default'].fn.bootstrapTable.methods.push('toggleCustomView');
  1007. $__default['default'].extend($__default['default'].fn.bootstrapTable.Constructor.EVENTS, {
  1008. 'custom-view-post-body.bs.table': 'onCustomViewPostBody',
  1009. 'custom-view-pre-body.bs.table': 'onCustomViewPreBody'
  1010. });
  1011. $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1012. _inherits(_class, _$$BootstrapTable);
  1013. var _super = _createSuper(_class);
  1014. function _class() {
  1015. _classCallCheck(this, _class);
  1016. return _super.apply(this, arguments);
  1017. }
  1018. _createClass(_class, [{
  1019. key: "init",
  1020. value: function init() {
  1021. this.showCustomView = this.options.showCustomView;
  1022. _get(_getPrototypeOf(_class.prototype), "init", this).call(this);
  1023. }
  1024. }, {
  1025. key: "initToolbar",
  1026. value: function initToolbar() {
  1027. var _get2;
  1028. if (this.options.customView && this.options.showCustomViewButton) {
  1029. this.buttons = Object.assign(this.buttons, {
  1030. customView: {
  1031. text: this.options.formatToggleCustomView(),
  1032. icon: this.options.icons.customView,
  1033. event: this.toggleCustomView,
  1034. attributes: {
  1035. 'aria-label': this.options.formatToggleCustomView(),
  1036. title: this.options.formatToggleCustomView()
  1037. }
  1038. }
  1039. });
  1040. }
  1041. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1042. args[_key] = arguments[_key];
  1043. }
  1044. (_get2 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get2, [this].concat(args));
  1045. }
  1046. }, {
  1047. key: "initBody",
  1048. value: function initBody() {
  1049. _get(_getPrototypeOf(_class.prototype), "initBody", this).call(this);
  1050. if (!this.options.customView) {
  1051. return;
  1052. }
  1053. var $table = this.$el;
  1054. var $customViewContainer = this.$container.find('.fixed-table-custom-view');
  1055. $table.hide();
  1056. $customViewContainer.hide();
  1057. if (!this.options.customView || !this.showCustomView) {
  1058. $table.show();
  1059. return;
  1060. }
  1061. var data = this.getData().slice(this.pageFrom - 1, this.pageTo);
  1062. var value = Utils.calculateObjectValue(this, this.options.customView, [data], '');
  1063. this.trigger('custom-view-pre-body', data, value);
  1064. if ($customViewContainer.length === 1) {
  1065. $customViewContainer.show().html(value);
  1066. } else {
  1067. this.$tableBody.after("<div class=\"fixed-table-custom-view\">".concat(value, "</div>"));
  1068. }
  1069. this.trigger('custom-view-post-body', data, value);
  1070. }
  1071. }, {
  1072. key: "toggleCustomView",
  1073. value: function toggleCustomView() {
  1074. this.showCustomView = !this.showCustomView;
  1075. this.initBody();
  1076. }
  1077. }]);
  1078. return _class;
  1079. }($__default['default'].BootstrapTable);
  1080. })));