bootstrap-table-rails 1.18.3 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/bootstrap-table-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +43 -30
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +147 -26
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +151 -28
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +2 -1
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +367 -237
  9. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +32 -19
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +37 -19
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +141 -72
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +44 -21
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +37 -19
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +25 -13
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +32 -19
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +86 -75
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +81 -53
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +49 -36
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +30 -13
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +40 -20
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +31 -19
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +28 -13
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +48 -26
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.css +5 -2
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +27 -13
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +28 -14
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +39 -20
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +27 -13
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +47 -15
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +26 -13
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +32 -15
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +43 -26
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +92 -28
  34. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +25 -13
  35. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +25 -13
  36. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +25 -13
  37. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +25 -13
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +25 -13
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +25 -13
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +25 -13
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +25 -13
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +25 -13
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +25 -13
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +25 -13
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +25 -13
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +25 -13
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +43 -30
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +25 -13
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +25 -13
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +25 -13
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +25 -13
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +25 -13
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +25 -13
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +25 -13
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +25 -13
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +25 -13
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +25 -13
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +25 -13
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +25 -13
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +25 -13
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +25 -13
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +25 -13
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +25 -13
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +25 -13
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +25 -13
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +25 -13
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +25 -13
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +25 -13
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +25 -13
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +25 -13
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +25 -13
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +25 -13
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +25 -13
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +25 -13
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +25 -13
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +25 -13
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +25 -13
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +25 -13
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +25 -13
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +25 -13
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +25 -13
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +25 -13
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +25 -13
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +25 -13
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +25 -13
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +25 -13
  87. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +1 -0
  88. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +27 -13
  89. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +1 -0
  90. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +27 -13
  91. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +1 -0
  92. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +27 -13
  93. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +1 -0
  94. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +27 -13
  95. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +1 -0
  96. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +27 -13
  97. metadata +3 -3
@@ -200,9 +200,10 @@
200
200
 
201
201
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
202
202
  var global_1 =
203
- /* global globalThis -- safe */
203
+ // eslint-disable-next-line es/no-global-this -- safe
204
204
  check(typeof globalThis == 'object' && globalThis) ||
205
205
  check(typeof window == 'object' && window) ||
206
+ // eslint-disable-next-line no-restricted-globals -- safe
206
207
  check(typeof self == 'object' && self) ||
207
208
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
208
209
  // eslint-disable-next-line no-new-func -- fallback
@@ -218,21 +219,23 @@
218
219
 
219
220
  // Detect IE8's incomplete defineProperty implementation
220
221
  var descriptors = !fails(function () {
222
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
221
223
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
222
224
  });
223
225
 
224
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
226
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
227
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
225
228
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
226
229
 
227
230
  // Nashorn ~ JDK8 bug
228
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
231
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
229
232
 
230
233
  // `Object.prototype.propertyIsEnumerable` method implementation
231
234
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
232
235
  var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
233
236
  var descriptor = getOwnPropertyDescriptor$1(this, V);
234
237
  return !!descriptor && descriptor.enumerable;
235
- } : nativePropertyIsEnumerable;
238
+ } : $propertyIsEnumerable;
236
239
 
237
240
  var objectPropertyIsEnumerable = {
238
241
  f: f$4
@@ -312,20 +315,22 @@
312
315
 
313
316
  // Thank's IE8 for his funny defineProperty
314
317
  var ie8DomDefine = !descriptors && !fails(function () {
318
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
315
319
  return Object.defineProperty(documentCreateElement('div'), 'a', {
316
320
  get: function () { return 7; }
317
321
  }).a != 7;
318
322
  });
319
323
 
320
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
324
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
325
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
321
326
 
322
327
  // `Object.getOwnPropertyDescriptor` method
323
328
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
324
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
329
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
325
330
  O = toIndexedObject(O);
326
331
  P = toPrimitive(P, true);
327
332
  if (ie8DomDefine) try {
328
- return nativeGetOwnPropertyDescriptor(O, P);
333
+ return $getOwnPropertyDescriptor(O, P);
329
334
  } catch (error) { /* empty */ }
330
335
  if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
331
336
  };
@@ -340,16 +345,17 @@
340
345
  } return it;
341
346
  };
342
347
 
343
- var nativeDefineProperty = Object.defineProperty;
348
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
349
+ var $defineProperty = Object.defineProperty;
344
350
 
345
351
  // `Object.defineProperty` method
346
352
  // https://tc39.es/ecma262/#sec-object.defineproperty
347
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
353
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
348
354
  anObject(O);
349
355
  P = toPrimitive(P, true);
350
356
  anObject(Attributes);
351
357
  if (ie8DomDefine) try {
352
- return nativeDefineProperty(O, P, Attributes);
358
+ return $defineProperty(O, P, Attributes);
353
359
  } catch (error) { /* empty */ }
354
360
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
355
361
  if ('value' in Attributes) O[P] = Attributes.value;
@@ -399,7 +405,7 @@
399
405
  (module.exports = function (key, value) {
400
406
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
401
407
  })('versions', []).push({
402
- version: '3.9.1',
408
+ version: '3.10.1',
403
409
  mode: 'global',
404
410
  copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
405
411
  });
@@ -611,6 +617,7 @@
611
617
 
612
618
  // `Object.getOwnPropertyNames` method
613
619
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
620
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
614
621
  var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
615
622
  return objectKeysInternal(O, hiddenKeys);
616
623
  };
@@ -619,6 +626,7 @@
619
626
  f: f$1
620
627
  };
621
628
 
629
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
622
630
  var f = Object.getOwnPropertySymbols;
623
631
 
624
632
  var objectGetOwnPropertySymbols = {
@@ -753,6 +761,7 @@
753
761
 
754
762
  // `IsArray` abstract operation
755
763
  // https://tc39.es/ecma262/#sec-isarray
764
+ // eslint-disable-next-line es/no-array-isarray -- safe
756
765
  var isArray = Array.isArray || function isArray(arg) {
757
766
  return classofRaw(arg) == 'Array';
758
767
  };
@@ -779,16 +788,19 @@
779
788
 
780
789
  var engineV8Version = version && +version;
781
790
 
791
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
782
792
  var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
783
- /* global Symbol -- required for testing */
793
+ // eslint-disable-next-line es/no-symbol -- required for testing
784
794
  return !Symbol.sham &&
785
795
  // Chrome 38 Symbol has incorrect toString conversion
786
796
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
787
797
  (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
788
798
  });
789
799
 
800
+ /* eslint-disable es/no-symbol -- required for testing */
801
+
802
+
790
803
  var useSymbolAsUid = nativeSymbol
791
- /* global Symbol -- safe */
792
804
  && !Symbol.sham
793
805
  && typeof Symbol.iterator == 'symbol';
794
806
 
@@ -892,12 +904,14 @@
892
904
 
893
905
  // `Object.keys` method
894
906
  // https://tc39.es/ecma262/#sec-object.keys
907
+ // eslint-disable-next-line es/no-object-keys -- safe
895
908
  var objectKeys = Object.keys || function keys(O) {
896
909
  return objectKeysInternal(O, enumBugKeys);
897
910
  };
898
911
 
899
912
  // `Object.defineProperties` method
900
913
  // https://tc39.es/ecma262/#sec-object.defineproperties
914
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
901
915
  var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
902
916
  anObject(O);
903
917
  var keys = objectKeys(Properties);
@@ -1218,6 +1232,7 @@
1218
1232
  // https://tc39.es/ecma262/#sec-array.prototype.foreach
1219
1233
  var arrayForEach = !STRICT_METHOD$3 ? function forEach(callbackfn /* , thisArg */) {
1220
1234
  return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1235
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1221
1236
  } : [].forEach;
1222
1237
 
1223
1238
  for (var COLLECTION_NAME in domIterables) {
@@ -1307,6 +1322,8 @@
1307
1322
  }, { unsafe: true });
1308
1323
  }
1309
1324
 
1325
+ /* eslint-disable es/no-array-prototype-indexof -- required for testing */
1326
+
1310
1327
  var $indexOf = arrayIncludes.indexOf;
1311
1328
 
1312
1329
 
@@ -1332,7 +1349,7 @@
1332
1349
  return RegExp(s, f);
1333
1350
  }
1334
1351
 
1335
- var UNSUPPORTED_Y$1 = fails(function () {
1352
+ var UNSUPPORTED_Y$2 = fails(function () {
1336
1353
  // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1337
1354
  var re = RE('a', 'y');
1338
1355
  re.lastIndex = 2;
@@ -1347,15 +1364,12 @@
1347
1364
  });
1348
1365
 
1349
1366
  var regexpStickyHelpers = {
1350
- UNSUPPORTED_Y: UNSUPPORTED_Y$1,
1367
+ UNSUPPORTED_Y: UNSUPPORTED_Y$2,
1351
1368
  BROKEN_CARET: BROKEN_CARET
1352
1369
  };
1353
1370
 
1354
1371
  var nativeExec = RegExp.prototype.exec;
1355
- // This always refers to the native implementation, because the
1356
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1357
- // which loads this file before patching the method.
1358
- var nativeReplace = String.prototype.replace;
1372
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1359
1373
 
1360
1374
  var patchedExec = nativeExec;
1361
1375
 
@@ -1367,19 +1381,19 @@
1367
1381
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1368
1382
  })();
1369
1383
 
1370
- var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1384
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1371
1385
 
1372
1386
  // nonparticipating capturing group, copied from es5-shim's String#split patch.
1373
1387
  // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
1374
1388
  var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1375
1389
 
1376
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
1390
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
1377
1391
 
1378
1392
  if (PATCH) {
1379
1393
  patchedExec = function exec(str) {
1380
1394
  var re = this;
1381
1395
  var lastIndex, reCopy, match, i;
1382
- var sticky = UNSUPPORTED_Y && re.sticky;
1396
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
1383
1397
  var flags = regexpFlags.call(re);
1384
1398
  var source = re.source;
1385
1399
  var charsAdded = 0;
@@ -1513,14 +1527,16 @@
1513
1527
  }
1514
1528
  });
1515
1529
 
1516
- var nativeAssign = Object.assign;
1530
+ // eslint-disable-next-line es/no-object-assign -- safe
1531
+ var $assign = Object.assign;
1532
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1517
1533
  var defineProperty = Object.defineProperty;
1518
1534
 
1519
1535
  // `Object.assign` method
1520
1536
  // https://tc39.es/ecma262/#sec-object.assign
1521
- var objectAssign = !nativeAssign || fails(function () {
1537
+ var objectAssign = !$assign || fails(function () {
1522
1538
  // should have correct order of operations (Edge bug)
1523
- if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
1539
+ if (descriptors && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1524
1540
  enumerable: true,
1525
1541
  get: function () {
1526
1542
  defineProperty(this, 'b', {
@@ -1532,12 +1548,12 @@
1532
1548
  // should work with symbols and should have deterministic property order (V8 bug)
1533
1549
  var A = {};
1534
1550
  var B = {};
1535
- /* global Symbol -- required for testing */
1551
+ // eslint-disable-next-line es/no-symbol -- safe
1536
1552
  var symbol = Symbol();
1537
1553
  var alphabet = 'abcdefghijklmnopqrst';
1538
1554
  A[symbol] = 7;
1539
1555
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1540
- return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
1556
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1541
1557
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1542
1558
  var T = toObject(target);
1543
1559
  var argumentsLength = arguments.length;
@@ -1555,10 +1571,11 @@
1555
1571
  if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
1556
1572
  }
1557
1573
  } return T;
1558
- } : nativeAssign;
1574
+ } : $assign;
1559
1575
 
1560
1576
  // `Object.assign` method
1561
1577
  // https://tc39.es/ecma262/#sec-object.assign
1578
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1562
1579
  _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
1563
1580
  assign: objectAssign
1564
1581
  });
@@ -1596,7 +1613,6 @@
1596
1613
 
1597
1614
 
1598
1615
 
1599
-
1600
1616
  var SPECIES$1 = wellKnownSymbol('species');
1601
1617
 
1602
1618
  var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
@@ -1615,6 +1631,7 @@
1615
1631
  // IE <= 11 replaces $0 with the whole match, as if it was $&
1616
1632
  // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1617
1633
  var REPLACE_KEEPS_$0 = (function () {
1634
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1618
1635
  return 'a'.replace(/./, '$0') === '$0';
1619
1636
  })();
1620
1637
 
@@ -1684,7 +1701,7 @@
1684
1701
  ) {
1685
1702
  var nativeRegExpMethod = /./[SYMBOL];
1686
1703
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1687
- if (regexp.exec === regexpExec) {
1704
+ if (regexp.exec === RegExp.prototype.exec) {
1688
1705
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1689
1706
  // The native String method already delegates to @@method (this
1690
1707
  // polyfilled function), leasing to infinite recursion.
@@ -1942,13 +1959,11 @@
1942
1959
  return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
1943
1960
  };
1944
1961
 
1962
+ var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
1945
1963
  var arrayPush = [].push;
1946
1964
  var min = Math.min;
1947
1965
  var MAX_UINT32 = 0xFFFFFFFF;
1948
1966
 
1949
- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
1950
- var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
1951
-
1952
1967
  // @@split logic
1953
1968
  fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
1954
1969
  var internalSplit;
@@ -2031,11 +2046,11 @@
2031
2046
  var flags = (rx.ignoreCase ? 'i' : '') +
2032
2047
  (rx.multiline ? 'm' : '') +
2033
2048
  (rx.unicode ? 'u' : '') +
2034
- (SUPPORTS_Y ? 'y' : 'g');
2049
+ (UNSUPPORTED_Y ? 'g' : 'y');
2035
2050
 
2036
2051
  // ^(? + rx + ) is needed, in combination with some S slicing, to
2037
2052
  // simulate the 'y' flag.
2038
- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
2053
+ var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
2039
2054
  var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2040
2055
  if (lim === 0) return [];
2041
2056
  if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
@@ -2043,12 +2058,12 @@
2043
2058
  var q = 0;
2044
2059
  var A = [];
2045
2060
  while (q < S.length) {
2046
- splitter.lastIndex = SUPPORTS_Y ? q : 0;
2047
- var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q));
2061
+ splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
2062
+ var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
2048
2063
  var e;
2049
2064
  if (
2050
2065
  z === null ||
2051
- (e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
2066
+ (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
2052
2067
  ) {
2053
2068
  q = advanceStringIndex(S, q, unicodeMatching);
2054
2069
  } else {
@@ -2065,7 +2080,7 @@
2065
2080
  return A;
2066
2081
  }
2067
2082
  ];
2068
- }, !SUPPORTS_Y);
2083
+ }, UNSUPPORTED_Y);
2069
2084
 
2070
2085
  var nativeJoin = [].join;
2071
2086
 
@@ -2242,9 +2257,9 @@
2242
2257
  }
2243
2258
  }
2244
2259
  }
2245
- function collectBootstrapCookies() {
2260
+ function collectBootstrapTableFilterCookies() {
2246
2261
  var cookies = [];
2247
- var foundCookies = document.cookie.match(/(?:bs.table.)(\w*)/g);
2262
+ var foundCookies = document.cookie.match(/bs\.table\.(filterControl|searchText)/g);
2248
2263
  var foundLocalStorage = localStorage;
2249
2264
 
2250
2265
  if (foundCookies) {
@@ -2401,6 +2416,7 @@
2401
2416
 
2402
2417
  $__default['default'].each(header.find('th'), function (i, th) {
2403
2418
  var $th = $__default['default'](th);
2419
+ $th.find('.filter-control').remove();
2404
2420
 
2405
2421
  if ($th.data('field') === column.field) {
2406
2422
  $th.find('.fht-cell').append(html.join(''));
@@ -2716,15 +2732,14 @@
2716
2732
  'created-controls.bs.table': 'onCreatedControls'
2717
2733
  });
2718
2734
  $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults.icons, {
2719
- clear: {
2720
- bootstrap3: 'glyphicon-trash icon-clear'
2721
- }[$__default['default'].fn.bootstrapTable.theme] || 'fa-trash',
2722
2735
  filterControlSwitchHide: {
2723
2736
  bootstrap3: 'glyphicon-zoom-out icon-zoom-out',
2737
+ bootstrap5: 'bi-zoom-out',
2724
2738
  materialize: 'zoom_out'
2725
2739
  }[$__default['default'].fn.bootstrapTable.theme] || 'fa-search-minus',
2726
2740
  filterControlSwitchShow: {
2727
2741
  bootstrap3: 'glyphicon-zoom-in icon-zoom-in',
2742
+ bootstrap5: 'bi-zoom-in',
2728
2743
  materialize: 'zoom_in'
2729
2744
  }[$__default['default'].fn.bootstrapTable.theme] || 'fa-search-plus'
2730
2745
  });
@@ -2802,6 +2817,17 @@
2802
2817
 
2803
2818
  _get(_getPrototypeOf(_class.prototype), "init", this).call(this);
2804
2819
  }
2820
+ }, {
2821
+ key: "load",
2822
+ value: function load(data) {
2823
+ _get(_getPrototypeOf(_class.prototype), "load", this).call(this, data);
2824
+
2825
+ if (!this.options.filterControl) {
2826
+ return;
2827
+ }
2828
+
2829
+ createControls(this, getControlContainer(this));
2830
+ }
2805
2831
  }, {
2806
2832
  key: "initHeader",
2807
2833
  value: function initHeader() {
@@ -2827,29 +2853,29 @@
2827
2853
  var _this2 = this;
2828
2854
 
2829
2855
  var that = this;
2830
- var fp = $__default['default'].isEmptyObject(that.filterColumnsPartial) ? null : that.filterColumnsPartial;
2856
+ var filterPartial = $__default['default'].isEmptyObject(that.filterColumnsPartial) ? null : that.filterColumnsPartial;
2831
2857
 
2832
2858
  _get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
2833
2859
 
2834
- if (this.options.sidePagination === 'server' || fp === null) {
2860
+ if (this.options.sidePagination === 'server' || filterPartial === null) {
2835
2861
  return;
2836
2862
  } // Check partial column filter
2837
2863
 
2838
2864
 
2839
- that.data = fp ? that.data.filter(function (item, i) {
2865
+ that.data = filterPartial ? that.data.filter(function (item, i) {
2840
2866
  var itemIsExpected = [];
2841
2867
  var keys1 = Object.keys(item);
2842
- var keys2 = Object.keys(fp);
2868
+ var keys2 = Object.keys(filterPartial);
2843
2869
  var keys = keys1.concat(keys2.filter(function (item) {
2844
2870
  return !keys1.includes(item);
2845
2871
  }));
2846
2872
  keys.forEach(function (key) {
2847
2873
  var thisColumn = that.columns[that.fieldsColumnsIndex[key]];
2848
- var fval = (fp[key] || '').toLowerCase();
2874
+ var filterValue = (filterPartial[key] || '').toLowerCase();
2849
2875
  var value = Utils.unescapeHTML(Utils.getItemField(item, key, false));
2850
2876
  var tmpItemIsExpected;
2851
2877
 
2852
- if (fval === '') {
2878
+ if (filterValue === '') {
2853
2879
  tmpItemIsExpected = true;
2854
2880
  } else {
2855
2881
  // Fix #142: search use formatted data
@@ -2870,14 +2896,14 @@
2870
2896
  objectValue = Utils.normalizeAccent(objectValue);
2871
2897
  }
2872
2898
 
2873
- tmpItemIsExpected = that.isValueExpected(fval, objectValue, thisColumn, key);
2899
+ tmpItemIsExpected = that.isValueExpected(filterValue, objectValue, thisColumn, key);
2874
2900
  });
2875
2901
  } else if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
2876
2902
  if (_this2.options.searchAccentNeutralise) {
2877
2903
  value = Utils.normalizeAccent(value);
2878
2904
  }
2879
2905
 
2880
- tmpItemIsExpected = that.isValueExpected(fval, value, thisColumn, key);
2906
+ tmpItemIsExpected = that.isValueExpected(filterValue, value, thisColumn, key);
2881
2907
  }
2882
2908
  }
2883
2909
  }
@@ -2897,6 +2923,8 @@
2897
2923
  tmpItemIsExpected = value.toString().toLowerCase() === searchValue.toString().toLowerCase();
2898
2924
  } else if (column.filterStartsWithSearch) {
2899
2925
  tmpItemIsExpected = "".concat(value).toLowerCase().indexOf(searchValue) === 0;
2926
+ } else if (this.options.regexSearch) {
2927
+ tmpItemIsExpected = Utils.regexCompare(value, searchValue);
2900
2928
  } else {
2901
2929
  tmpItemIsExpected = "".concat(value).toLowerCase().includes(searchValue);
2902
2930
  }
@@ -3028,7 +3056,7 @@
3028
3056
  value: function clearFilterControl() {
3029
3057
  if (this.options.filterControl) {
3030
3058
  var that = this;
3031
- var cookies = collectBootstrapCookies();
3059
+ var cookies = collectBootstrapTableFilterCookies();
3032
3060
  var table = this.$el.closest('table');
3033
3061
  var controls = getSearchControls(that);
3034
3062
  var search = Utils.getSearchInput(this);