bootstrap-table-mobile.js 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295
  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. function _classCallCheck(instance, Constructor) {
  9. if (!(instance instanceof Constructor)) {
  10. throw new TypeError("Cannot call a class as a function");
  11. }
  12. }
  13. function _defineProperties(target, props) {
  14. for (var i = 0; i < props.length; i++) {
  15. var descriptor = props[i];
  16. descriptor.enumerable = descriptor.enumerable || false;
  17. descriptor.configurable = true;
  18. if ("value" in descriptor) descriptor.writable = true;
  19. Object.defineProperty(target, descriptor.key, descriptor);
  20. }
  21. }
  22. function _createClass(Constructor, protoProps, staticProps) {
  23. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  24. if (staticProps) _defineProperties(Constructor, staticProps);
  25. return Constructor;
  26. }
  27. function _inherits(subClass, superClass) {
  28. if (typeof superClass !== "function" && superClass !== null) {
  29. throw new TypeError("Super expression must either be null or a function");
  30. }
  31. subClass.prototype = Object.create(superClass && superClass.prototype, {
  32. constructor: {
  33. value: subClass,
  34. writable: true,
  35. configurable: true
  36. }
  37. });
  38. if (superClass) _setPrototypeOf(subClass, superClass);
  39. }
  40. function _getPrototypeOf(o) {
  41. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  42. return o.__proto__ || Object.getPrototypeOf(o);
  43. };
  44. return _getPrototypeOf(o);
  45. }
  46. function _setPrototypeOf(o, p) {
  47. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  48. o.__proto__ = p;
  49. return o;
  50. };
  51. return _setPrototypeOf(o, p);
  52. }
  53. function _isNativeReflectConstruct() {
  54. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  55. if (Reflect.construct.sham) return false;
  56. if (typeof Proxy === "function") return true;
  57. try {
  58. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  59. return true;
  60. } catch (e) {
  61. return false;
  62. }
  63. }
  64. function _assertThisInitialized(self) {
  65. if (self === void 0) {
  66. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  67. }
  68. return self;
  69. }
  70. function _possibleConstructorReturn(self, call) {
  71. if (call && (typeof call === "object" || typeof call === "function")) {
  72. return call;
  73. }
  74. return _assertThisInitialized(self);
  75. }
  76. function _createSuper(Derived) {
  77. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  78. return function _createSuperInternal() {
  79. var Super = _getPrototypeOf(Derived),
  80. result;
  81. if (hasNativeReflectConstruct) {
  82. var NewTarget = _getPrototypeOf(this).constructor;
  83. result = Reflect.construct(Super, arguments, NewTarget);
  84. } else {
  85. result = Super.apply(this, arguments);
  86. }
  87. return _possibleConstructorReturn(this, result);
  88. };
  89. }
  90. function _superPropBase(object, property) {
  91. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  92. object = _getPrototypeOf(object);
  93. if (object === null) break;
  94. }
  95. return object;
  96. }
  97. function _get(target, property, receiver) {
  98. if (typeof Reflect !== "undefined" && Reflect.get) {
  99. _get = Reflect.get;
  100. } else {
  101. _get = function _get(target, property, receiver) {
  102. var base = _superPropBase(target, property);
  103. if (!base) return;
  104. var desc = Object.getOwnPropertyDescriptor(base, property);
  105. if (desc.get) {
  106. return desc.get.call(receiver);
  107. }
  108. return desc.value;
  109. };
  110. }
  111. return _get(target, property, receiver || target);
  112. }
  113. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  114. function createCommonjsModule(fn, module) {
  115. return module = { exports: {} }, fn(module, module.exports), module.exports;
  116. }
  117. var check = function (it) {
  118. return it && it.Math == Math && it;
  119. };
  120. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  121. var global_1 =
  122. /* global globalThis -- safe */
  123. check(typeof globalThis == 'object' && globalThis) ||
  124. check(typeof window == 'object' && window) ||
  125. check(typeof self == 'object' && self) ||
  126. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  127. // eslint-disable-next-line no-new-func -- fallback
  128. (function () { return this; })() || Function('return this')();
  129. var fails = function (exec) {
  130. try {
  131. return !!exec();
  132. } catch (error) {
  133. return true;
  134. }
  135. };
  136. // Detect IE8's incomplete defineProperty implementation
  137. var descriptors = !fails(function () {
  138. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  139. });
  140. var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
  141. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  142. // Nashorn ~ JDK8 bug
  143. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
  144. // `Object.prototype.propertyIsEnumerable` method implementation
  145. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  146. var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
  147. var descriptor = getOwnPropertyDescriptor$1(this, V);
  148. return !!descriptor && descriptor.enumerable;
  149. } : nativePropertyIsEnumerable;
  150. var objectPropertyIsEnumerable = {
  151. f: f$4
  152. };
  153. var createPropertyDescriptor = function (bitmap, value) {
  154. return {
  155. enumerable: !(bitmap & 1),
  156. configurable: !(bitmap & 2),
  157. writable: !(bitmap & 4),
  158. value: value
  159. };
  160. };
  161. var toString = {}.toString;
  162. var classofRaw = function (it) {
  163. return toString.call(it).slice(8, -1);
  164. };
  165. var split = ''.split;
  166. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  167. var indexedObject = fails(function () {
  168. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  169. // eslint-disable-next-line no-prototype-builtins -- safe
  170. return !Object('z').propertyIsEnumerable(0);
  171. }) ? function (it) {
  172. return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
  173. } : Object;
  174. // `RequireObjectCoercible` abstract operation
  175. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  176. var requireObjectCoercible = function (it) {
  177. if (it == undefined) throw TypeError("Can't call method on " + it);
  178. return it;
  179. };
  180. // toObject with fallback for non-array-like ES3 strings
  181. var toIndexedObject = function (it) {
  182. return indexedObject(requireObjectCoercible(it));
  183. };
  184. var isObject = function (it) {
  185. return typeof it === 'object' ? it !== null : typeof it === 'function';
  186. };
  187. // `ToPrimitive` abstract operation
  188. // https://tc39.es/ecma262/#sec-toprimitive
  189. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  190. // and the second argument - flag - preferred type is a string
  191. var toPrimitive = function (input, PREFERRED_STRING) {
  192. if (!isObject(input)) return input;
  193. var fn, val;
  194. if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  195. if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
  196. if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  197. throw TypeError("Can't convert object to primitive value");
  198. };
  199. var hasOwnProperty = {}.hasOwnProperty;
  200. var has$1 = function (it, key) {
  201. return hasOwnProperty.call(it, key);
  202. };
  203. var document$1 = global_1.document;
  204. // typeof document.createElement is 'object' in old IE
  205. var EXISTS = isObject(document$1) && isObject(document$1.createElement);
  206. var documentCreateElement = function (it) {
  207. return EXISTS ? document$1.createElement(it) : {};
  208. };
  209. // Thank's IE8 for his funny defineProperty
  210. var ie8DomDefine = !descriptors && !fails(function () {
  211. return Object.defineProperty(documentCreateElement('div'), 'a', {
  212. get: function () { return 7; }
  213. }).a != 7;
  214. });
  215. var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  216. // `Object.getOwnPropertyDescriptor` method
  217. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  218. var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  219. O = toIndexedObject(O);
  220. P = toPrimitive(P, true);
  221. if (ie8DomDefine) try {
  222. return nativeGetOwnPropertyDescriptor(O, P);
  223. } catch (error) { /* empty */ }
  224. if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
  225. };
  226. var objectGetOwnPropertyDescriptor = {
  227. f: f$3
  228. };
  229. var anObject = function (it) {
  230. if (!isObject(it)) {
  231. throw TypeError(String(it) + ' is not an object');
  232. } return it;
  233. };
  234. var nativeDefineProperty = Object.defineProperty;
  235. // `Object.defineProperty` method
  236. // https://tc39.es/ecma262/#sec-object.defineproperty
  237. var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
  238. anObject(O);
  239. P = toPrimitive(P, true);
  240. anObject(Attributes);
  241. if (ie8DomDefine) try {
  242. return nativeDefineProperty(O, P, Attributes);
  243. } catch (error) { /* empty */ }
  244. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
  245. if ('value' in Attributes) O[P] = Attributes.value;
  246. return O;
  247. };
  248. var objectDefineProperty = {
  249. f: f$2
  250. };
  251. var createNonEnumerableProperty = descriptors ? function (object, key, value) {
  252. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  253. } : function (object, key, value) {
  254. object[key] = value;
  255. return object;
  256. };
  257. var setGlobal = function (key, value) {
  258. try {
  259. createNonEnumerableProperty(global_1, key, value);
  260. } catch (error) {
  261. global_1[key] = value;
  262. } return value;
  263. };
  264. var SHARED = '__core-js_shared__';
  265. var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
  266. var sharedStore = store$1;
  267. var functionToString = Function.toString;
  268. // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
  269. if (typeof sharedStore.inspectSource != 'function') {
  270. sharedStore.inspectSource = function (it) {
  271. return functionToString.call(it);
  272. };
  273. }
  274. var inspectSource = sharedStore.inspectSource;
  275. var WeakMap$1 = global_1.WeakMap;
  276. var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
  277. var shared = createCommonjsModule(function (module) {
  278. (module.exports = function (key, value) {
  279. return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
  280. })('versions', []).push({
  281. version: '3.9.1',
  282. mode: 'global',
  283. copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
  284. });
  285. });
  286. var id = 0;
  287. var postfix = Math.random();
  288. var uid = function (key) {
  289. return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
  290. };
  291. var keys = shared('keys');
  292. var sharedKey = function (key) {
  293. return keys[key] || (keys[key] = uid(key));
  294. };
  295. var hiddenKeys$1 = {};
  296. var WeakMap = global_1.WeakMap;
  297. var set, get, has;
  298. var enforce = function (it) {
  299. return has(it) ? get(it) : set(it, {});
  300. };
  301. var getterFor = function (TYPE) {
  302. return function (it) {
  303. var state;
  304. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  305. throw TypeError('Incompatible receiver, ' + TYPE + ' required');
  306. } return state;
  307. };
  308. };
  309. if (nativeWeakMap) {
  310. var store = sharedStore.state || (sharedStore.state = new WeakMap());
  311. var wmget = store.get;
  312. var wmhas = store.has;
  313. var wmset = store.set;
  314. set = function (it, metadata) {
  315. metadata.facade = it;
  316. wmset.call(store, it, metadata);
  317. return metadata;
  318. };
  319. get = function (it) {
  320. return wmget.call(store, it) || {};
  321. };
  322. has = function (it) {
  323. return wmhas.call(store, it);
  324. };
  325. } else {
  326. var STATE = sharedKey('state');
  327. hiddenKeys$1[STATE] = true;
  328. set = function (it, metadata) {
  329. metadata.facade = it;
  330. createNonEnumerableProperty(it, STATE, metadata);
  331. return metadata;
  332. };
  333. get = function (it) {
  334. return has$1(it, STATE) ? it[STATE] : {};
  335. };
  336. has = function (it) {
  337. return has$1(it, STATE);
  338. };
  339. }
  340. var internalState = {
  341. set: set,
  342. get: get,
  343. has: has,
  344. enforce: enforce,
  345. getterFor: getterFor
  346. };
  347. var redefine = createCommonjsModule(function (module) {
  348. var getInternalState = internalState.get;
  349. var enforceInternalState = internalState.enforce;
  350. var TEMPLATE = String(String).split('String');
  351. (module.exports = function (O, key, value, options) {
  352. var unsafe = options ? !!options.unsafe : false;
  353. var simple = options ? !!options.enumerable : false;
  354. var noTargetGet = options ? !!options.noTargetGet : false;
  355. var state;
  356. if (typeof value == 'function') {
  357. if (typeof key == 'string' && !has$1(value, 'name')) {
  358. createNonEnumerableProperty(value, 'name', key);
  359. }
  360. state = enforceInternalState(value);
  361. if (!state.source) {
  362. state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
  363. }
  364. }
  365. if (O === global_1) {
  366. if (simple) O[key] = value;
  367. else setGlobal(key, value);
  368. return;
  369. } else if (!unsafe) {
  370. delete O[key];
  371. } else if (!noTargetGet && O[key]) {
  372. simple = true;
  373. }
  374. if (simple) O[key] = value;
  375. else createNonEnumerableProperty(O, key, value);
  376. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  377. })(Function.prototype, 'toString', function toString() {
  378. return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
  379. });
  380. });
  381. var path = global_1;
  382. var aFunction$1 = function (variable) {
  383. return typeof variable == 'function' ? variable : undefined;
  384. };
  385. var getBuiltIn = function (namespace, method) {
  386. return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
  387. : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
  388. };
  389. var ceil = Math.ceil;
  390. var floor = Math.floor;
  391. // `ToInteger` abstract operation
  392. // https://tc39.es/ecma262/#sec-tointeger
  393. var toInteger = function (argument) {
  394. return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
  395. };
  396. var min$1 = Math.min;
  397. // `ToLength` abstract operation
  398. // https://tc39.es/ecma262/#sec-tolength
  399. var toLength = function (argument) {
  400. return argument > 0 ? min$1(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  401. };
  402. var max = Math.max;
  403. var min = Math.min;
  404. // Helper for a popular repeating case of the spec:
  405. // Let integer be ? ToInteger(index).
  406. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  407. var toAbsoluteIndex = function (index, length) {
  408. var integer = toInteger(index);
  409. return integer < 0 ? max(integer + length, 0) : min(integer, length);
  410. };
  411. // `Array.prototype.{ indexOf, includes }` methods implementation
  412. var createMethod$1 = function (IS_INCLUDES) {
  413. return function ($this, el, fromIndex) {
  414. var O = toIndexedObject($this);
  415. var length = toLength(O.length);
  416. var index = toAbsoluteIndex(fromIndex, length);
  417. var value;
  418. // Array#includes uses SameValueZero equality algorithm
  419. // eslint-disable-next-line no-self-compare -- NaN check
  420. if (IS_INCLUDES && el != el) while (length > index) {
  421. value = O[index++];
  422. // eslint-disable-next-line no-self-compare -- NaN check
  423. if (value != value) return true;
  424. // Array#indexOf ignores holes, Array#includes - not
  425. } else for (;length > index; index++) {
  426. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  427. } return !IS_INCLUDES && -1;
  428. };
  429. };
  430. var arrayIncludes = {
  431. // `Array.prototype.includes` method
  432. // https://tc39.es/ecma262/#sec-array.prototype.includes
  433. includes: createMethod$1(true),
  434. // `Array.prototype.indexOf` method
  435. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  436. indexOf: createMethod$1(false)
  437. };
  438. var indexOf = arrayIncludes.indexOf;
  439. var objectKeysInternal = function (object, names) {
  440. var O = toIndexedObject(object);
  441. var i = 0;
  442. var result = [];
  443. var key;
  444. for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
  445. // Don't enum bug & hidden keys
  446. while (names.length > i) if (has$1(O, key = names[i++])) {
  447. ~indexOf(result, key) || result.push(key);
  448. }
  449. return result;
  450. };
  451. // IE8- don't enum bug keys
  452. var enumBugKeys = [
  453. 'constructor',
  454. 'hasOwnProperty',
  455. 'isPrototypeOf',
  456. 'propertyIsEnumerable',
  457. 'toLocaleString',
  458. 'toString',
  459. 'valueOf'
  460. ];
  461. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  462. // `Object.getOwnPropertyNames` method
  463. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  464. var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  465. return objectKeysInternal(O, hiddenKeys);
  466. };
  467. var objectGetOwnPropertyNames = {
  468. f: f$1
  469. };
  470. var f = Object.getOwnPropertySymbols;
  471. var objectGetOwnPropertySymbols = {
  472. f: f
  473. };
  474. // all object keys, includes non-enumerable and symbols
  475. var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  476. var keys = objectGetOwnPropertyNames.f(anObject(it));
  477. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  478. return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
  479. };
  480. var copyConstructorProperties = function (target, source) {
  481. var keys = ownKeys(source);
  482. var defineProperty = objectDefineProperty.f;
  483. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  484. for (var i = 0; i < keys.length; i++) {
  485. var key = keys[i];
  486. if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  487. }
  488. };
  489. var replacement = /#|\.prototype\./;
  490. var isForced = function (feature, detection) {
  491. var value = data[normalize(feature)];
  492. return value == POLYFILL ? true
  493. : value == NATIVE ? false
  494. : typeof detection == 'function' ? fails(detection)
  495. : !!detection;
  496. };
  497. var normalize = isForced.normalize = function (string) {
  498. return String(string).replace(replacement, '.').toLowerCase();
  499. };
  500. var data = isForced.data = {};
  501. var NATIVE = isForced.NATIVE = 'N';
  502. var POLYFILL = isForced.POLYFILL = 'P';
  503. var isForced_1 = isForced;
  504. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  505. /*
  506. options.target - name of the target object
  507. options.global - target is the global object
  508. options.stat - export as static methods of target
  509. options.proto - export as prototype methods of target
  510. options.real - real prototype method for the `pure` version
  511. options.forced - export even if the native feature is available
  512. options.bind - bind methods to the target, required for the `pure` version
  513. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  514. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  515. options.sham - add a flag to not completely full polyfills
  516. options.enumerable - export as enumerable property
  517. options.noTargetGet - prevent calling a getter on target
  518. */
  519. var _export = function (options, source) {
  520. var TARGET = options.target;
  521. var GLOBAL = options.global;
  522. var STATIC = options.stat;
  523. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  524. if (GLOBAL) {
  525. target = global_1;
  526. } else if (STATIC) {
  527. target = global_1[TARGET] || setGlobal(TARGET, {});
  528. } else {
  529. target = (global_1[TARGET] || {}).prototype;
  530. }
  531. if (target) for (key in source) {
  532. sourceProperty = source[key];
  533. if (options.noTargetGet) {
  534. descriptor = getOwnPropertyDescriptor(target, key);
  535. targetProperty = descriptor && descriptor.value;
  536. } else targetProperty = target[key];
  537. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  538. // contained in target
  539. if (!FORCED && targetProperty !== undefined) {
  540. if (typeof sourceProperty === typeof targetProperty) continue;
  541. copyConstructorProperties(sourceProperty, targetProperty);
  542. }
  543. // add a flag to not completely full polyfills
  544. if (options.sham || (targetProperty && targetProperty.sham)) {
  545. createNonEnumerableProperty(sourceProperty, 'sham', true);
  546. }
  547. // extend global
  548. redefine(target, key, sourceProperty, options);
  549. }
  550. };
  551. // `IsArray` abstract operation
  552. // https://tc39.es/ecma262/#sec-isarray
  553. var isArray = Array.isArray || function isArray(arg) {
  554. return classofRaw(arg) == 'Array';
  555. };
  556. // `ToObject` abstract operation
  557. // https://tc39.es/ecma262/#sec-toobject
  558. var toObject = function (argument) {
  559. return Object(requireObjectCoercible(argument));
  560. };
  561. var createProperty = function (object, key, value) {
  562. var propertyKey = toPrimitive(key);
  563. if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
  564. else object[propertyKey] = value;
  565. };
  566. var engineIsNode = classofRaw(global_1.process) == 'process';
  567. var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
  568. var process = global_1.process;
  569. var versions = process && process.versions;
  570. var v8 = versions && versions.v8;
  571. var match, version;
  572. if (v8) {
  573. match = v8.split('.');
  574. version = match[0] + match[1];
  575. } else if (engineUserAgent) {
  576. match = engineUserAgent.match(/Edge\/(\d+)/);
  577. if (!match || match[1] >= 74) {
  578. match = engineUserAgent.match(/Chrome\/(\d+)/);
  579. if (match) version = match[1];
  580. }
  581. }
  582. var engineV8Version = version && +version;
  583. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  584. /* global Symbol -- required for testing */
  585. return !Symbol.sham &&
  586. // Chrome 38 Symbol has incorrect toString conversion
  587. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  588. (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
  589. });
  590. var useSymbolAsUid = nativeSymbol
  591. /* global Symbol -- safe */
  592. && !Symbol.sham
  593. && typeof Symbol.iterator == 'symbol';
  594. var WellKnownSymbolsStore = shared('wks');
  595. var Symbol$1 = global_1.Symbol;
  596. var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
  597. var wellKnownSymbol = function (name) {
  598. if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
  599. if (nativeSymbol && has$1(Symbol$1, name)) {
  600. WellKnownSymbolsStore[name] = Symbol$1[name];
  601. } else {
  602. WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
  603. }
  604. } return WellKnownSymbolsStore[name];
  605. };
  606. var SPECIES$1 = wellKnownSymbol('species');
  607. // `ArraySpeciesCreate` abstract operation
  608. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  609. var arraySpeciesCreate = function (originalArray, length) {
  610. var C;
  611. if (isArray(originalArray)) {
  612. C = originalArray.constructor;
  613. // cross-realm fallback
  614. if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
  615. else if (isObject(C)) {
  616. C = C[SPECIES$1];
  617. if (C === null) C = undefined;
  618. }
  619. } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
  620. };
  621. var SPECIES = wellKnownSymbol('species');
  622. var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  623. // We can't use this feature detection in V8 since it causes
  624. // deoptimization and serious performance degradation
  625. // https://github.com/zloirock/core-js/issues/677
  626. return engineV8Version >= 51 || !fails(function () {
  627. var array = [];
  628. var constructor = array.constructor = {};
  629. constructor[SPECIES] = function () {
  630. return { foo: 1 };
  631. };
  632. return array[METHOD_NAME](Boolean).foo !== 1;
  633. });
  634. };
  635. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  636. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
  637. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  638. // We can't use this feature detection in V8 since it causes
  639. // deoptimization and serious performance degradation
  640. // https://github.com/zloirock/core-js/issues/679
  641. var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
  642. var array = [];
  643. array[IS_CONCAT_SPREADABLE] = false;
  644. return array.concat()[0] !== array;
  645. });
  646. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  647. var isConcatSpreadable = function (O) {
  648. if (!isObject(O)) return false;
  649. var spreadable = O[IS_CONCAT_SPREADABLE];
  650. return spreadable !== undefined ? !!spreadable : isArray(O);
  651. };
  652. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  653. // `Array.prototype.concat` method
  654. // https://tc39.es/ecma262/#sec-array.prototype.concat
  655. // with adding support of @@isConcatSpreadable and @@species
  656. _export({ target: 'Array', proto: true, forced: FORCED }, {
  657. // eslint-disable-next-line no-unused-vars -- required for `.length`
  658. concat: function concat(arg) {
  659. var O = toObject(this);
  660. var A = arraySpeciesCreate(O, 0);
  661. var n = 0;
  662. var i, k, length, len, E;
  663. for (i = -1, length = arguments.length; i < length; i++) {
  664. E = i === -1 ? O : arguments[i];
  665. if (isConcatSpreadable(E)) {
  666. len = toLength(E.length);
  667. if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  668. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  669. } else {
  670. if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  671. createProperty(A, n++, E);
  672. }
  673. }
  674. A.length = n;
  675. return A;
  676. }
  677. });
  678. // `Object.keys` method
  679. // https://tc39.es/ecma262/#sec-object.keys
  680. var objectKeys = Object.keys || function keys(O) {
  681. return objectKeysInternal(O, enumBugKeys);
  682. };
  683. // `Object.defineProperties` method
  684. // https://tc39.es/ecma262/#sec-object.defineproperties
  685. var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
  686. anObject(O);
  687. var keys = objectKeys(Properties);
  688. var length = keys.length;
  689. var index = 0;
  690. var key;
  691. while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
  692. return O;
  693. };
  694. var html = getBuiltIn('document', 'documentElement');
  695. var GT = '>';
  696. var LT = '<';
  697. var PROTOTYPE = 'prototype';
  698. var SCRIPT = 'script';
  699. var IE_PROTO = sharedKey('IE_PROTO');
  700. var EmptyConstructor = function () { /* empty */ };
  701. var scriptTag = function (content) {
  702. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  703. };
  704. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  705. var NullProtoObjectViaActiveX = function (activeXDocument) {
  706. activeXDocument.write(scriptTag(''));
  707. activeXDocument.close();
  708. var temp = activeXDocument.parentWindow.Object;
  709. activeXDocument = null; // avoid memory leak
  710. return temp;
  711. };
  712. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  713. var NullProtoObjectViaIFrame = function () {
  714. // Thrash, waste and sodomy: IE GC bug
  715. var iframe = documentCreateElement('iframe');
  716. var JS = 'java' + SCRIPT + ':';
  717. var iframeDocument;
  718. iframe.style.display = 'none';
  719. html.appendChild(iframe);
  720. // https://github.com/zloirock/core-js/issues/475
  721. iframe.src = String(JS);
  722. iframeDocument = iframe.contentWindow.document;
  723. iframeDocument.open();
  724. iframeDocument.write(scriptTag('document.F=Object'));
  725. iframeDocument.close();
  726. return iframeDocument.F;
  727. };
  728. // Check for document.domain and active x support
  729. // No need to use active x approach when document.domain is not set
  730. // see https://github.com/es-shims/es5-shim/issues/150
  731. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  732. // avoid IE GC bug
  733. var activeXDocument;
  734. var NullProtoObject = function () {
  735. try {
  736. /* global ActiveXObject -- old IE */
  737. activeXDocument = document.domain && new ActiveXObject('htmlfile');
  738. } catch (error) { /* ignore */ }
  739. NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
  740. var length = enumBugKeys.length;
  741. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  742. return NullProtoObject();
  743. };
  744. hiddenKeys$1[IE_PROTO] = true;
  745. // `Object.create` method
  746. // https://tc39.es/ecma262/#sec-object.create
  747. var objectCreate = Object.create || function create(O, Properties) {
  748. var result;
  749. if (O !== null) {
  750. EmptyConstructor[PROTOTYPE] = anObject(O);
  751. result = new EmptyConstructor();
  752. EmptyConstructor[PROTOTYPE] = null;
  753. // add "__proto__" for Object.getPrototypeOf polyfill
  754. result[IE_PROTO] = O;
  755. } else result = NullProtoObject();
  756. return Properties === undefined ? result : objectDefineProperties(result, Properties);
  757. };
  758. var UNSCOPABLES = wellKnownSymbol('unscopables');
  759. var ArrayPrototype = Array.prototype;
  760. // Array.prototype[@@unscopables]
  761. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  762. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  763. objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
  764. configurable: true,
  765. value: objectCreate(null)
  766. });
  767. }
  768. // add a key to Array.prototype[@@unscopables]
  769. var addToUnscopables = function (key) {
  770. ArrayPrototype[UNSCOPABLES][key] = true;
  771. };
  772. var $includes = arrayIncludes.includes;
  773. // `Array.prototype.includes` method
  774. // https://tc39.es/ecma262/#sec-array.prototype.includes
  775. _export({ target: 'Array', proto: true }, {
  776. includes: function includes(el /* , fromIndex = 0 */) {
  777. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  778. }
  779. });
  780. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  781. addToUnscopables('includes');
  782. // iterable DOM collections
  783. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  784. var domIterables = {
  785. CSSRuleList: 0,
  786. CSSStyleDeclaration: 0,
  787. CSSValueList: 0,
  788. ClientRectList: 0,
  789. DOMRectList: 0,
  790. DOMStringList: 0,
  791. DOMTokenList: 1,
  792. DataTransferItemList: 0,
  793. FileList: 0,
  794. HTMLAllCollection: 0,
  795. HTMLCollection: 0,
  796. HTMLFormElement: 0,
  797. HTMLSelectElement: 0,
  798. MediaList: 0,
  799. MimeTypeArray: 0,
  800. NamedNodeMap: 0,
  801. NodeList: 1,
  802. PaintRequestList: 0,
  803. Plugin: 0,
  804. PluginArray: 0,
  805. SVGLengthList: 0,
  806. SVGNumberList: 0,
  807. SVGPathSegList: 0,
  808. SVGPointList: 0,
  809. SVGStringList: 0,
  810. SVGTransformList: 0,
  811. SourceBufferList: 0,
  812. StyleSheetList: 0,
  813. TextTrackCueList: 0,
  814. TextTrackList: 0,
  815. TouchList: 0
  816. };
  817. var aFunction = function (it) {
  818. if (typeof it != 'function') {
  819. throw TypeError(String(it) + ' is not a function');
  820. } return it;
  821. };
  822. // optional / simple context binding
  823. var functionBindContext = function (fn, that, length) {
  824. aFunction(fn);
  825. if (that === undefined) return fn;
  826. switch (length) {
  827. case 0: return function () {
  828. return fn.call(that);
  829. };
  830. case 1: return function (a) {
  831. return fn.call(that, a);
  832. };
  833. case 2: return function (a, b) {
  834. return fn.call(that, a, b);
  835. };
  836. case 3: return function (a, b, c) {
  837. return fn.call(that, a, b, c);
  838. };
  839. }
  840. return function (/* ...args */) {
  841. return fn.apply(that, arguments);
  842. };
  843. };
  844. var push = [].push;
  845. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
  846. var createMethod = function (TYPE) {
  847. var IS_MAP = TYPE == 1;
  848. var IS_FILTER = TYPE == 2;
  849. var IS_SOME = TYPE == 3;
  850. var IS_EVERY = TYPE == 4;
  851. var IS_FIND_INDEX = TYPE == 6;
  852. var IS_FILTER_OUT = TYPE == 7;
  853. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  854. return function ($this, callbackfn, that, specificCreate) {
  855. var O = toObject($this);
  856. var self = indexedObject(O);
  857. var boundFunction = functionBindContext(callbackfn, that, 3);
  858. var length = toLength(self.length);
  859. var index = 0;
  860. var create = specificCreate || arraySpeciesCreate;
  861. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
  862. var value, result;
  863. for (;length > index; index++) if (NO_HOLES || index in self) {
  864. value = self[index];
  865. result = boundFunction(value, index, O);
  866. if (TYPE) {
  867. if (IS_MAP) target[index] = result; // map
  868. else if (result) switch (TYPE) {
  869. case 3: return true; // some
  870. case 5: return value; // find
  871. case 6: return index; // findIndex
  872. case 2: push.call(target, value); // filter
  873. } else switch (TYPE) {
  874. case 4: return false; // every
  875. case 7: push.call(target, value); // filterOut
  876. }
  877. }
  878. }
  879. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  880. };
  881. };
  882. var arrayIteration = {
  883. // `Array.prototype.forEach` method
  884. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  885. forEach: createMethod(0),
  886. // `Array.prototype.map` method
  887. // https://tc39.es/ecma262/#sec-array.prototype.map
  888. map: createMethod(1),
  889. // `Array.prototype.filter` method
  890. // https://tc39.es/ecma262/#sec-array.prototype.filter
  891. filter: createMethod(2),
  892. // `Array.prototype.some` method
  893. // https://tc39.es/ecma262/#sec-array.prototype.some
  894. some: createMethod(3),
  895. // `Array.prototype.every` method
  896. // https://tc39.es/ecma262/#sec-array.prototype.every
  897. every: createMethod(4),
  898. // `Array.prototype.find` method
  899. // https://tc39.es/ecma262/#sec-array.prototype.find
  900. find: createMethod(5),
  901. // `Array.prototype.findIndex` method
  902. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  903. findIndex: createMethod(6),
  904. // `Array.prototype.filterOut` method
  905. // https://github.com/tc39/proposal-array-filtering
  906. filterOut: createMethod(7)
  907. };
  908. var arrayMethodIsStrict = function (METHOD_NAME, argument) {
  909. var method = [][METHOD_NAME];
  910. return !!method && fails(function () {
  911. // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
  912. method.call(null, argument || function () { throw 1; }, 1);
  913. });
  914. };
  915. var $forEach = arrayIteration.forEach;
  916. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  917. // `Array.prototype.forEach` method implementation
  918. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  919. var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  920. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  921. } : [].forEach;
  922. for (var COLLECTION_NAME in domIterables) {
  923. var Collection = global_1[COLLECTION_NAME];
  924. var CollectionPrototype = Collection && Collection.prototype;
  925. // some Chrome versions have non-configurable methods on DOMTokenList
  926. if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
  927. createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);
  928. } catch (error) {
  929. CollectionPrototype.forEach = arrayForEach;
  930. }
  931. }
  932. var MATCH$1 = wellKnownSymbol('match');
  933. // `IsRegExp` abstract operation
  934. // https://tc39.es/ecma262/#sec-isregexp
  935. var isRegexp = function (it) {
  936. var isRegExp;
  937. return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
  938. };
  939. var notARegexp = function (it) {
  940. if (isRegexp(it)) {
  941. throw TypeError("The method doesn't accept regular expressions");
  942. } return it;
  943. };
  944. var MATCH = wellKnownSymbol('match');
  945. var correctIsRegexpLogic = function (METHOD_NAME) {
  946. var regexp = /./;
  947. try {
  948. '/./'[METHOD_NAME](regexp);
  949. } catch (error1) {
  950. try {
  951. regexp[MATCH] = false;
  952. return '/./'[METHOD_NAME](regexp);
  953. } catch (error2) { /* empty */ }
  954. } return false;
  955. };
  956. // `String.prototype.includes` method
  957. // https://tc39.es/ecma262/#sec-string.prototype.includes
  958. _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
  959. includes: function includes(searchString /* , position = 0 */) {
  960. return !!~String(requireObjectCoercible(this))
  961. .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);
  962. }
  963. });
  964. /**
  965. * @author: Dennis Hernández
  966. * @webSite: http://djhvscf.github.io/Blog
  967. * @update zhixin wen <wenzhixin2010@gmail.com>
  968. */
  969. var debounce = function debounce(func, wait) {
  970. var timeout = 0;
  971. return function () {
  972. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  973. args[_key] = arguments[_key];
  974. }
  975. var later = function later() {
  976. timeout = 0;
  977. func.apply(void 0, args);
  978. };
  979. clearTimeout(timeout);
  980. timeout = setTimeout(later, wait);
  981. };
  982. };
  983. $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
  984. mobileResponsive: false,
  985. minWidth: 562,
  986. minHeight: undefined,
  987. heightThreshold: 100,
  988. // just slightly larger than mobile chrome's auto-hiding toolbar
  989. checkOnInit: true,
  990. columnsHidden: []
  991. });
  992. $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  993. _inherits(_class, _$$BootstrapTable);
  994. var _super = _createSuper(_class);
  995. function _class() {
  996. _classCallCheck(this, _class);
  997. return _super.apply(this, arguments);
  998. }
  999. _createClass(_class, [{
  1000. key: "init",
  1001. value: function init() {
  1002. var _get2,
  1003. _this = this;
  1004. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1005. args[_key2] = arguments[_key2];
  1006. }
  1007. (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
  1008. if (!this.options.mobileResponsive || !this.options.minWidth) {
  1009. return;
  1010. }
  1011. if (this.options.minWidth < 100 && this.options.resizable) {
  1012. console.warn('The minWidth when the resizable extension is active should be greater or equal than 100');
  1013. this.options.minWidth = 100;
  1014. }
  1015. var old = {
  1016. width: $__default['default'](window).width(),
  1017. height: $__default['default'](window).height()
  1018. };
  1019. $__default['default'](window).on('resize orientationchange', debounce(function () {
  1020. // reset view if height has only changed by at least the threshold.
  1021. var width = $__default['default'](window).width();
  1022. var height = $__default['default'](window).height();
  1023. var $activeElement = $__default['default'](document.activeElement);
  1024. if ($activeElement.length && ['INPUT', 'SELECT', 'TEXTAREA'].includes($activeElement.prop('nodeName'))) {
  1025. return;
  1026. }
  1027. if (Math.abs(old.height - height) > _this.options.heightThreshold || old.width !== width) {
  1028. _this.changeView(width, height);
  1029. old = {
  1030. width: width,
  1031. height: height
  1032. };
  1033. }
  1034. }, 200));
  1035. if (this.options.checkOnInit) {
  1036. var width = $__default['default'](window).width();
  1037. var height = $__default['default'](window).height();
  1038. this.changeView(width, height);
  1039. old = {
  1040. width: width,
  1041. height: height
  1042. };
  1043. }
  1044. }
  1045. }, {
  1046. key: "conditionCardView",
  1047. value: function conditionCardView() {
  1048. this.changeTableView(false);
  1049. this.showHideColumns(false);
  1050. }
  1051. }, {
  1052. key: "conditionFullView",
  1053. value: function conditionFullView() {
  1054. this.changeTableView(true);
  1055. this.showHideColumns(true);
  1056. }
  1057. }, {
  1058. key: "changeTableView",
  1059. value: function changeTableView(cardViewState) {
  1060. this.options.cardView = cardViewState;
  1061. this.toggleView();
  1062. }
  1063. }, {
  1064. key: "showHideColumns",
  1065. value: function showHideColumns(checked) {
  1066. var _this2 = this;
  1067. if (this.options.columnsHidden.length > 0) {
  1068. this.columns.forEach(function (column) {
  1069. if (_this2.options.columnsHidden.includes(column.field)) {
  1070. if (column.visible !== checked) {
  1071. _this2._toggleColumn(_this2.fieldsColumnsIndex[column.field], checked, true);
  1072. }
  1073. }
  1074. });
  1075. }
  1076. }
  1077. }, {
  1078. key: "changeView",
  1079. value: function changeView(width, height) {
  1080. if (this.options.minHeight) {
  1081. if (width <= this.options.minWidth && height <= this.options.minHeight) {
  1082. this.conditionCardView();
  1083. } else if (width > this.options.minWidth && height > this.options.minHeight) {
  1084. this.conditionFullView();
  1085. }
  1086. } else if (width <= this.options.minWidth) {
  1087. this.conditionCardView();
  1088. } else if (width > this.options.minWidth) {
  1089. this.conditionFullView();
  1090. }
  1091. this.resetView();
  1092. }
  1093. }]);
  1094. return _class;
  1095. }($__default['default'].BootstrapTable);
  1096. })));