bootstrap-table-rails 1.17.0 → 1.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +30 -132
  5. data/lib/bootstrap-table-rails/version.rb +1 -1
  6. data/vendor/.DS_Store +0 -0
  7. data/vendor/assets/.DS_Store +0 -0
  8. data/vendor/assets/javascripts/.DS_Store +0 -0
  9. data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
  10. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +596 -228
  11. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +183 -990
  12. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +184 -991
  13. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +26 -7
  14. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +1420 -1423
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +152 -40
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +173 -48
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +495 -908
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +199 -57
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +177 -487
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +66 -24
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +435 -977
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +534 -971
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +372 -161
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +196 -95
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +136 -48
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.css +3 -2
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +330 -559
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +45 -11
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +137 -36
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +232 -148
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +239 -561
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +136 -37
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +101 -58
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +529 -1045
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +155 -58
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +107 -33
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +283 -87
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +132 -43
  39. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +537 -1061
  40. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +278 -990
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +36 -20
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +36 -20
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +36 -20
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +36 -20
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +36 -20
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +36 -20
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +79 -24
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +36 -20
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +36 -20
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +36 -20
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +53 -37
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +36 -20
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +50 -34
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +36 -20
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +36 -20
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +36 -20
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +36 -20
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +36 -20
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +36 -20
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +36 -20
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +36 -20
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +36 -20
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +47 -31
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +36 -20
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +36 -20
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +36 -20
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +36 -20
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +36 -20
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +36 -20
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +36 -20
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +36 -20
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +36 -20
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +36 -20
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +36 -20
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +36 -20
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +36 -20
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +57 -40
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +36 -20
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +36 -20
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +36 -20
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +57 -41
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +53 -37
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +36 -20
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +36 -20
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +36 -20
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +36 -20
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +36 -20
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +36 -20
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +36 -20
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +36 -20
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +36 -20
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +36 -20
  93. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +36 -20
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +27 -6
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +114 -35
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +25 -6
  97. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +110 -31
  98. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +30 -6
  99. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +119 -34
  100. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +30 -6
  101. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +115 -30
  102. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +25 -6
  103. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +107 -28
  104. metadata +6 -2
  105. data/vendor/assets/javascripts/bootstrap-table/extensions/accent-neutralise/bootstrap-table-accent-neutralise.js +0 -2668
@@ -1,10 +1,12 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3
3
  typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4
- (global = global || self, factory(global.jQuery));
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
5
5
  }(this, (function ($) { 'use strict';
6
6
 
7
- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var $__default = /*#__PURE__*/_interopDefaultLegacy($);
8
10
 
9
11
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
12
 
@@ -24,7 +26,7 @@
24
26
  check(typeof self == 'object' && self) ||
25
27
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
26
28
  // eslint-disable-next-line no-new-func
27
- Function('return this')();
29
+ (function () { return this; })() || Function('return this')();
28
30
 
29
31
  var fails = function (exec) {
30
32
  try {
@@ -36,7 +38,7 @@
36
38
 
37
39
  // Thank's IE8 for his funny defineProperty
38
40
  var descriptors = !fails(function () {
39
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
41
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
40
42
  });
41
43
 
42
44
  var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
@@ -217,9 +219,9 @@
217
219
  (module.exports = function (key, value) {
218
220
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
219
221
  })('versions', []).push({
220
- version: '3.6.0',
222
+ version: '3.8.1',
221
223
  mode: 'global',
222
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
224
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
223
225
  });
224
226
  });
225
227
 
@@ -255,11 +257,12 @@
255
257
  };
256
258
 
257
259
  if (nativeWeakMap) {
258
- var store$1 = new WeakMap$1();
260
+ var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1());
259
261
  var wmget = store$1.get;
260
262
  var wmhas = store$1.has;
261
263
  var wmset = store$1.set;
262
264
  set = function (it, metadata) {
265
+ metadata.facade = it;
263
266
  wmset.call(store$1, it, metadata);
264
267
  return metadata;
265
268
  };
@@ -273,6 +276,7 @@
273
276
  var STATE = sharedKey('state');
274
277
  hiddenKeys[STATE] = true;
275
278
  set = function (it, metadata) {
279
+ metadata.facade = it;
276
280
  createNonEnumerableProperty(it, STATE, metadata);
277
281
  return metadata;
278
282
  };
@@ -301,9 +305,15 @@
301
305
  var unsafe = options ? !!options.unsafe : false;
302
306
  var simple = options ? !!options.enumerable : false;
303
307
  var noTargetGet = options ? !!options.noTargetGet : false;
308
+ var state;
304
309
  if (typeof value == 'function') {
305
- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
306
- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
310
+ if (typeof key == 'string' && !has(value, 'name')) {
311
+ createNonEnumerableProperty(value, 'name', key);
312
+ }
313
+ state = enforceInternalState(value);
314
+ if (!state.source) {
315
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
316
+ }
307
317
  }
308
318
  if (O === global_1) {
309
319
  if (simple) O[key] = value;
@@ -554,11 +564,11 @@
554
564
  // eslint-disable-next-line no-undef
555
565
  && !Symbol.sham
556
566
  // eslint-disable-next-line no-undef
557
- && typeof Symbol() == 'symbol';
567
+ && typeof Symbol.iterator == 'symbol';
558
568
 
559
569
  var WellKnownSymbolsStore = shared('wks');
560
570
  var Symbol$1 = global_1.Symbol;
561
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
571
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
562
572
 
563
573
  var wellKnownSymbol = function (name) {
564
574
  if (!has(WellKnownSymbolsStore, name)) {
@@ -584,7 +594,7 @@
584
594
  } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
585
595
  };
586
596
 
587
- var userAgent = getBuiltIn('navigator', 'userAgent') || '';
597
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
588
598
 
589
599
  var process = global_1.process;
590
600
  var versions = process && process.versions;
@@ -594,15 +604,15 @@
594
604
  if (v8) {
595
605
  match = v8.split('.');
596
606
  version = match[0] + match[1];
597
- } else if (userAgent) {
598
- match = userAgent.match(/Edge\/(\d+)/);
607
+ } else if (engineUserAgent) {
608
+ match = engineUserAgent.match(/Edge\/(\d+)/);
599
609
  if (!match || match[1] >= 74) {
600
- match = userAgent.match(/Chrome\/(\d+)/);
610
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
601
611
  if (match) version = match[1];
602
612
  }
603
613
  }
604
614
 
605
- var v8Version = version && +version;
615
+ var engineV8Version = version && +version;
606
616
 
607
617
  var SPECIES$1 = wellKnownSymbol('species');
608
618
 
@@ -610,7 +620,7 @@
610
620
  // We can't use this feature detection in V8 since it causes
611
621
  // deoptimization and serious performance degradation
612
622
  // https://github.com/zloirock/core-js/issues/677
613
- return v8Version >= 51 || !fails(function () {
623
+ return engineV8Version >= 51 || !fails(function () {
614
624
  var array = [];
615
625
  var constructor = array.constructor = {};
616
626
  constructor[SPECIES$1] = function () {
@@ -627,7 +637,7 @@
627
637
  // We can't use this feature detection in V8 since it causes
628
638
  // deoptimization and serious performance degradation
629
639
  // https://github.com/zloirock/core-js/issues/679
630
- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
640
+ var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
631
641
  var array = [];
632
642
  array[IS_CONCAT_SPREADABLE] = false;
633
643
  return array.concat()[0] !== array;
@@ -675,7 +685,7 @@
675
685
  };
676
686
 
677
687
  // optional / simple context binding
678
- var bindContext = function (fn, that, length) {
688
+ var functionBindContext = function (fn, that, length) {
679
689
  aFunction$1(fn);
680
690
  if (that === undefined) return fn;
681
691
  switch (length) {
@@ -699,22 +709,23 @@
699
709
 
700
710
  var push = [].push;
701
711
 
702
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
712
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
703
713
  var createMethod$1 = function (TYPE) {
704
714
  var IS_MAP = TYPE == 1;
705
715
  var IS_FILTER = TYPE == 2;
706
716
  var IS_SOME = TYPE == 3;
707
717
  var IS_EVERY = TYPE == 4;
708
718
  var IS_FIND_INDEX = TYPE == 6;
719
+ var IS_FILTER_OUT = TYPE == 7;
709
720
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
710
721
  return function ($this, callbackfn, that, specificCreate) {
711
722
  var O = toObject($this);
712
723
  var self = indexedObject(O);
713
- var boundFunction = bindContext(callbackfn, that, 3);
724
+ var boundFunction = functionBindContext(callbackfn, that, 3);
714
725
  var length = toLength(self.length);
715
726
  var index = 0;
716
727
  var create = specificCreate || arraySpeciesCreate;
717
- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
728
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
718
729
  var value, result;
719
730
  for (;length > index; index++) if (NO_HOLES || index in self) {
720
731
  value = self[index];
@@ -726,7 +737,10 @@
726
737
  case 5: return value; // find
727
738
  case 6: return index; // findIndex
728
739
  case 2: push.call(target, value); // filter
729
- } else if (IS_EVERY) return false; // every
740
+ } else switch (TYPE) {
741
+ case 4: return false; // every
742
+ case 7: push.call(target, value); // filterOut
743
+ }
730
744
  }
731
745
  }
732
746
  return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
@@ -754,7 +768,34 @@
754
768
  find: createMethod$1(5),
755
769
  // `Array.prototype.findIndex` method
756
770
  // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
757
- findIndex: createMethod$1(6)
771
+ findIndex: createMethod$1(6),
772
+ // `Array.prototype.filterOut` method
773
+ // https://github.com/tc39/proposal-array-filtering
774
+ filterOut: createMethod$1(7)
775
+ };
776
+
777
+ var defineProperty = Object.defineProperty;
778
+ var cache = {};
779
+
780
+ var thrower = function (it) { throw it; };
781
+
782
+ var arrayMethodUsesToLength = function (METHOD_NAME, options) {
783
+ if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
784
+ if (!options) options = {};
785
+ var method = [][METHOD_NAME];
786
+ var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
787
+ var argument0 = has(options, 0) ? options[0] : thrower;
788
+ var argument1 = has(options, 1) ? options[1] : undefined;
789
+
790
+ return cache[METHOD_NAME] = !!method && !fails(function () {
791
+ if (ACCESSORS && !descriptors) return true;
792
+ var O = { length: -1 };
793
+
794
+ if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
795
+ else O[1] = 1;
796
+
797
+ method.call(O, argument0, argument1);
798
+ });
758
799
  };
759
800
 
760
801
  var $filter = arrayIteration.filter;
@@ -763,9 +804,7 @@
763
804
 
764
805
  var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
765
806
  // Edge 14- issue
766
- var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
767
- [].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
768
- });
807
+ var USES_TO_LENGTH = arrayMethodUsesToLength('filter');
769
808
 
770
809
  // `Array.prototype.filter` method
771
810
  // https://tc39.github.io/ecma262/#sec-array.prototype.filter
@@ -887,15 +926,18 @@
887
926
  var $find = arrayIteration.find;
888
927
 
889
928
 
929
+
890
930
  var FIND = 'find';
891
931
  var SKIPS_HOLES = true;
892
932
 
933
+ var USES_TO_LENGTH$1 = arrayMethodUsesToLength(FIND);
934
+
893
935
  // Shouldn't skip holes
894
936
  if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
895
937
 
896
938
  // `Array.prototype.find` method
897
939
  // https://tc39.github.io/ecma262/#sec-array.prototype.find
898
- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
940
+ _export({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH$1 }, {
899
941
  find: function find(callbackfn /* , that = undefined */) {
900
942
  return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
901
943
  }
@@ -904,12 +946,42 @@
904
946
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
905
947
  addToUnscopables(FIND);
906
948
 
949
+ var arrayMethodIsStrict = function (METHOD_NAME, argument) {
950
+ var method = [][METHOD_NAME];
951
+ return !!method && fails(function () {
952
+ // eslint-disable-next-line no-useless-call,no-throw-literal
953
+ method.call(null, argument || function () { throw 1; }, 1);
954
+ });
955
+ };
956
+
957
+ var $forEach = arrayIteration.forEach;
958
+
959
+
960
+
961
+ var STRICT_METHOD = arrayMethodIsStrict('forEach');
962
+ var USES_TO_LENGTH$2 = arrayMethodUsesToLength('forEach');
963
+
964
+ // `Array.prototype.forEach` method implementation
965
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
966
+ var arrayForEach = (!STRICT_METHOD || !USES_TO_LENGTH$2) ? function forEach(callbackfn /* , thisArg */) {
967
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
968
+ } : [].forEach;
969
+
970
+ // `Array.prototype.forEach` method
971
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
972
+ _export({ target: 'Array', proto: true, forced: [].forEach != arrayForEach }, {
973
+ forEach: arrayForEach
974
+ });
975
+
907
976
  var $includes = arrayIncludes.includes;
908
977
 
909
978
 
979
+
980
+ var USES_TO_LENGTH$3 = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
981
+
910
982
  // `Array.prototype.includes` method
911
983
  // https://tc39.github.io/ecma262/#sec-array.prototype.includes
912
- _export({ target: 'Array', proto: true }, {
984
+ _export({ target: 'Array', proto: true, forced: !USES_TO_LENGTH$3 }, {
913
985
  includes: function includes(el /* , fromIndex = 0 */) {
914
986
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
915
987
  }
@@ -918,25 +990,19 @@
918
990
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
919
991
  addToUnscopables('includes');
920
992
 
921
- var sloppyArrayMethod = function (METHOD_NAME, argument) {
922
- var method = [][METHOD_NAME];
923
- return !method || !fails(function () {
924
- // eslint-disable-next-line no-useless-call,no-throw-literal
925
- method.call(null, argument || function () { throw 1; }, 1);
926
- });
927
- };
928
-
929
993
  var $indexOf = arrayIncludes.indexOf;
930
994
 
931
995
 
996
+
932
997
  var nativeIndexOf = [].indexOf;
933
998
 
934
999
  var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
935
- var SLOPPY_METHOD = sloppyArrayMethod('indexOf');
1000
+ var STRICT_METHOD$1 = arrayMethodIsStrict('indexOf');
1001
+ var USES_TO_LENGTH$4 = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
936
1002
 
937
1003
  // `Array.prototype.indexOf` method
938
1004
  // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
939
- _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, {
1005
+ _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$1 || !USES_TO_LENGTH$4 }, {
940
1006
  indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
941
1007
  return NEGATIVE_ZERO
942
1008
  // convert -0 to +0
@@ -945,6 +1011,56 @@
945
1011
  }
946
1012
  });
947
1013
 
1014
+ var nativeAssign = Object.assign;
1015
+ var defineProperty$1 = Object.defineProperty;
1016
+
1017
+ // `Object.assign` method
1018
+ // https://tc39.github.io/ecma262/#sec-object.assign
1019
+ var objectAssign = !nativeAssign || fails(function () {
1020
+ // should have correct order of operations (Edge bug)
1021
+ if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$1({}, 'a', {
1022
+ enumerable: true,
1023
+ get: function () {
1024
+ defineProperty$1(this, 'b', {
1025
+ value: 3,
1026
+ enumerable: false
1027
+ });
1028
+ }
1029
+ }), { b: 2 })).b !== 1) return true;
1030
+ // should work with symbols and should have deterministic property order (V8 bug)
1031
+ var A = {};
1032
+ var B = {};
1033
+ // eslint-disable-next-line no-undef
1034
+ var symbol = Symbol();
1035
+ var alphabet = 'abcdefghijklmnopqrst';
1036
+ A[symbol] = 7;
1037
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1038
+ return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
1039
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
1040
+ var T = toObject(target);
1041
+ var argumentsLength = arguments.length;
1042
+ var index = 1;
1043
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
1044
+ var propertyIsEnumerable = objectPropertyIsEnumerable.f;
1045
+ while (argumentsLength > index) {
1046
+ var S = indexedObject(arguments[index++]);
1047
+ var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
1048
+ var length = keys.length;
1049
+ var j = 0;
1050
+ var key;
1051
+ while (length > j) {
1052
+ key = keys[j++];
1053
+ if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
1054
+ }
1055
+ } return T;
1056
+ } : nativeAssign;
1057
+
1058
+ // `Object.assign` method
1059
+ // https://tc39.github.io/ecma262/#sec-object.assign
1060
+ _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
1061
+ assign: objectAssign
1062
+ });
1063
+
948
1064
  var FAILS_ON_PRIMITIVES = fails(function () { objectKeys(1); });
949
1065
 
950
1066
  // `Object.keys` method
@@ -1030,21 +1146,21 @@
1030
1146
  var trim = stringTrim.trim;
1031
1147
 
1032
1148
 
1033
- var nativeParseInt = global_1.parseInt;
1149
+ var $parseInt = global_1.parseInt;
1034
1150
  var hex = /^[+-]?0[Xx]/;
1035
- var FORCED$1 = nativeParseInt(whitespaces + '08') !== 8 || nativeParseInt(whitespaces + '0x16') !== 22;
1151
+ var FORCED$1 = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22;
1036
1152
 
1037
1153
  // `parseInt` method
1038
1154
  // https://tc39.github.io/ecma262/#sec-parseint-string-radix
1039
- var _parseInt = FORCED$1 ? function parseInt(string, radix) {
1155
+ var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
1040
1156
  var S = trim(String(string));
1041
- return nativeParseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
1042
- } : nativeParseInt;
1157
+ return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
1158
+ } : $parseInt;
1043
1159
 
1044
1160
  // `parseInt` method
1045
1161
  // https://tc39.github.io/ecma262/#sec-parseint-string-radix
1046
- _export({ global: true, forced: parseInt != _parseInt }, {
1047
- parseInt: _parseInt
1162
+ _export({ global: true, forced: parseInt != numberParseInt }, {
1163
+ parseInt: numberParseInt
1048
1164
  });
1049
1165
 
1050
1166
  // `RegExp.prototype.flags` getter implementation
@@ -1215,11 +1331,11 @@
1215
1331
  var regexp = /./;
1216
1332
  try {
1217
1333
  '/./'[METHOD_NAME](regexp);
1218
- } catch (e) {
1334
+ } catch (error1) {
1219
1335
  try {
1220
1336
  regexp[MATCH$1] = false;
1221
1337
  return '/./'[METHOD_NAME](regexp);
1222
- } catch (f) { /* empty */ }
1338
+ } catch (error2) { /* empty */ }
1223
1339
  } return false;
1224
1340
  };
1225
1341
 
@@ -1236,7 +1352,7 @@
1236
1352
 
1237
1353
  // check that a method works with the correct list
1238
1354
  // of whitespaces and has a correct name
1239
- var forcedStringTrimMethod = function (METHOD_NAME) {
1355
+ var stringTrimForced = function (METHOD_NAME) {
1240
1356
  return fails(function () {
1241
1357
  return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
1242
1358
  });
@@ -1247,7 +1363,7 @@
1247
1363
 
1248
1364
  // `String.prototype.trim` method
1249
1365
  // https://tc39.github.io/ecma262/#sec-string.prototype.trim
1250
- _export({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
1366
+ _export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, {
1251
1367
  trim: function trim() {
1252
1368
  return $trim(this);
1253
1369
  }
@@ -1289,15 +1405,6 @@
1289
1405
  TouchList: 0
1290
1406
  };
1291
1407
 
1292
- var $forEach = arrayIteration.forEach;
1293
-
1294
-
1295
- // `Array.prototype.forEach` method implementation
1296
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
1297
- var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
1298
- return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1299
- } : [].forEach;
1300
-
1301
1408
  for (var COLLECTION_NAME in domIterables) {
1302
1409
  var Collection = global_1[COLLECTION_NAME];
1303
1410
  var CollectionPrototype = Collection && Collection.prototype;
@@ -1310,6 +1417,8 @@
1310
1417
  }
1311
1418
 
1312
1419
  function _typeof(obj) {
1420
+ "@babel/helpers - typeof";
1421
+
1313
1422
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1314
1423
  _typeof = function (obj) {
1315
1424
  return typeof obj;
@@ -1376,6 +1485,19 @@
1376
1485
  return _setPrototypeOf(o, p);
1377
1486
  }
1378
1487
 
1488
+ function _isNativeReflectConstruct() {
1489
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1490
+ if (Reflect.construct.sham) return false;
1491
+ if (typeof Proxy === "function") return true;
1492
+
1493
+ try {
1494
+ Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
1495
+ return true;
1496
+ } catch (e) {
1497
+ return false;
1498
+ }
1499
+ }
1500
+
1379
1501
  function _assertThisInitialized(self) {
1380
1502
  if (self === void 0) {
1381
1503
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -1392,6 +1514,25 @@
1392
1514
  return _assertThisInitialized(self);
1393
1515
  }
1394
1516
 
1517
+ function _createSuper(Derived) {
1518
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
1519
+
1520
+ return function _createSuperInternal() {
1521
+ var Super = _getPrototypeOf(Derived),
1522
+ result;
1523
+
1524
+ if (hasNativeReflectConstruct) {
1525
+ var NewTarget = _getPrototypeOf(this).constructor;
1526
+
1527
+ result = Reflect.construct(Super, arguments, NewTarget);
1528
+ } else {
1529
+ result = Super.apply(this, arguments);
1530
+ }
1531
+
1532
+ return _possibleConstructorReturn(this, result);
1533
+ };
1534
+ }
1535
+
1395
1536
  function _superPropBase(object, property) {
1396
1537
  while (!Object.prototype.hasOwnProperty.call(object, property)) {
1397
1538
  object = _getPrototypeOf(object);
@@ -1423,33 +1564,46 @@
1423
1564
  }
1424
1565
 
1425
1566
  function _toConsumableArray(arr) {
1426
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
1567
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1427
1568
  }
1428
1569
 
1429
1570
  function _arrayWithoutHoles(arr) {
1430
- if (Array.isArray(arr)) {
1431
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
1432
-
1433
- return arr2;
1434
- }
1571
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1435
1572
  }
1436
1573
 
1437
1574
  function _iterableToArray(iter) {
1438
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
1575
+ if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
1576
+ }
1577
+
1578
+ function _unsupportedIterableToArray(o, minLen) {
1579
+ if (!o) return;
1580
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1581
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1582
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1583
+ if (n === "Map" || n === "Set") return Array.from(o);
1584
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1585
+ }
1586
+
1587
+ function _arrayLikeToArray(arr, len) {
1588
+ if (len == null || len > arr.length) len = arr.length;
1589
+
1590
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1591
+
1592
+ return arr2;
1439
1593
  }
1440
1594
 
1441
1595
  function _nonIterableSpread() {
1442
- throw new TypeError("Invalid attempt to spread non-iterable instance");
1596
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1443
1597
  }
1444
1598
 
1445
1599
  var nativeJoin = [].join;
1446
1600
 
1447
1601
  var ES3_STRINGS = indexedObject != Object;
1448
- var SLOPPY_METHOD$1 = sloppyArrayMethod('join', ',');
1602
+ var STRICT_METHOD$2 = arrayMethodIsStrict('join', ',');
1449
1603
 
1450
1604
  // `Array.prototype.join` method
1451
1605
  // https://tc39.github.io/ecma262/#sec-array.prototype.join
1452
- _export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD$1 }, {
1606
+ _export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$2 }, {
1453
1607
  join: function join(separator) {
1454
1608
  return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
1455
1609
  }
@@ -1467,9 +1621,9 @@
1467
1621
  test$1.sort(null);
1468
1622
  });
1469
1623
  // Old WebKit
1470
- var SLOPPY_METHOD$2 = sloppyArrayMethod('sort');
1624
+ var STRICT_METHOD$3 = arrayMethodIsStrict('sort');
1471
1625
 
1472
- var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || SLOPPY_METHOD$2;
1626
+ var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$3;
1473
1627
 
1474
1628
  // `Array.prototype.sort` method
1475
1629
  // https://tc39.github.io/ecma262/#sec-array.prototype.sort
@@ -1481,6 +1635,14 @@
1481
1635
  }
1482
1636
  });
1483
1637
 
1638
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1484
1646
  var SPECIES$2 = wellKnownSymbol('species');
1485
1647
 
1486
1648
  var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
@@ -1502,6 +1664,15 @@
1502
1664
  return 'a'.replace(/./, '$0') === '$0';
1503
1665
  })();
1504
1666
 
1667
+ var REPLACE = wellKnownSymbol('replace');
1668
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1669
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1670
+ if (/./[REPLACE]) {
1671
+ return /./[REPLACE]('a', '$0') === '';
1672
+ }
1673
+ return false;
1674
+ })();
1675
+
1505
1676
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1506
1677
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1507
1678
  var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
@@ -1549,7 +1720,11 @@
1549
1720
  if (
1550
1721
  !DELEGATES_TO_SYMBOL ||
1551
1722
  !DELEGATES_TO_EXEC ||
1552
- (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
1723
+ (KEY === 'replace' && !(
1724
+ REPLACE_SUPPORTS_NAMED_GROUPS &&
1725
+ REPLACE_KEEPS_$0 &&
1726
+ !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1727
+ )) ||
1553
1728
  (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1554
1729
  ) {
1555
1730
  var nativeRegExpMethod = /./[SYMBOL];
@@ -1564,7 +1739,10 @@
1564
1739
  return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1565
1740
  }
1566
1741
  return { done: false };
1567
- }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
1742
+ }, {
1743
+ REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
1744
+ REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1745
+ });
1568
1746
  var stringMethod = methods[0];
1569
1747
  var regexMethod = methods[1];
1570
1748
 
@@ -1683,6 +1861,10 @@
1683
1861
 
1684
1862
  // @@replace logic
1685
1863
  fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1864
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1865
+ var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1866
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1867
+
1686
1868
  return [
1687
1869
  // `String.prototype.replace` method
1688
1870
  // https://tc39.github.io/ecma262/#sec-string.prototype.replace
@@ -1696,7 +1878,10 @@
1696
1878
  // `RegExp.prototype[@@replace]` method
1697
1879
  // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1698
1880
  function (regexp, replaceValue) {
1699
- if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
1881
+ if (
1882
+ (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1883
+ (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1884
+ ) {
1700
1885
  var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1701
1886
  if (res.done) return res.value;
1702
1887
  }
@@ -1923,14 +2108,14 @@
1923
2108
  ];
1924
2109
  }, !SUPPORTS_Y);
1925
2110
 
1926
- var Utils = $.fn.bootstrapTable.utils;
2111
+ var Utils = $__default['default'].fn.bootstrapTable.utils;
1927
2112
  var searchControls = 'select, input:not([type="checkbox"]):not([type="radio"])';
1928
2113
  function getOptionsFromSelectControl(selectControl) {
1929
2114
  return selectControl.get(selectControl.length - 1).options;
1930
2115
  }
1931
2116
  function getControlContainer(that) {
1932
2117
  if (that.options.filterControlContainer) {
1933
- return $("".concat(that.options.filterControlContainer));
2118
+ return $__default['default']("".concat(that.options.filterControlContainer));
1934
2119
  }
1935
2120
 
1936
2121
  return that.$header;
@@ -1955,7 +2140,7 @@
1955
2140
  var options = getOptionsFromSelectControl(selectControl);
1956
2141
 
1957
2142
  for (var i = 0; i < options.length; i++) {
1958
- if (options[i].value === value.toString()) {
2143
+ if (options[i].value === Utils.unescapeHTML(value.toString())) {
1959
2144
  // The value is not valid to add
1960
2145
  return true;
1961
2146
  }
@@ -1966,10 +2151,10 @@
1966
2151
  }
1967
2152
  function addOptionToSelectControl(selectControl, _value, text, selected) {
1968
2153
  var value = _value === undefined || _value === null ? '' : _value.toString().trim();
1969
- var $selectControl = $(selectControl.get(selectControl.length - 1));
2154
+ var $selectControl = $__default['default'](selectControl.get(selectControl.length - 1));
1970
2155
 
1971
2156
  if (!existOptionInSelectControl(selectControl, value)) {
1972
- var option = $("<option value=\"".concat(value, "\">").concat(text, "</option>"));
2157
+ var option = $__default['default']("<option value=\"".concat(value, "\">").concat(text, "</option>"));
1973
2158
 
1974
2159
  if (value === selected) {
1975
2160
  option.attr('selected', true);
@@ -1979,7 +2164,7 @@
1979
2164
  }
1980
2165
  }
1981
2166
  function sortSelectControl(selectControl, orderBy) {
1982
- var $selectControl = $(selectControl.get(selectControl.length - 1));
2167
+ var $selectControl = $__default['default'](selectControl.get(selectControl.length - 1));
1983
2168
  var $opts = $selectControl.find('option:gt(0)');
1984
2169
 
1985
2170
  if (orderBy !== 'server') {
@@ -2000,7 +2185,7 @@
2000
2185
  }
2001
2186
  function getCursorPosition(el) {
2002
2187
  if (Utils.isIEBrowser()) {
2003
- if ($(el).is('input[type=text]')) {
2188
+ if ($__default['default'](el).is('input[type=text]')) {
2004
2189
  var pos = 0;
2005
2190
 
2006
2191
  if ('selectionStart' in el) {
@@ -2022,17 +2207,17 @@
2022
2207
  return -1;
2023
2208
  }
2024
2209
  function setCursorPosition(el) {
2025
- $(el).val(el.value);
2210
+ $__default['default'](el).val(el.value);
2026
2211
  }
2027
2212
  function copyValues(that) {
2028
2213
  var searchControls = getSearchControls(that);
2029
2214
  that.options.valuesFilterControl = [];
2030
2215
  searchControls.each(function () {
2031
- var $field = $(this);
2216
+ var $field = $__default['default'](this);
2032
2217
 
2033
2218
  if (that.options.height) {
2034
2219
  var fieldClass = getElementClass($field);
2035
- $field = $(".fixed-table-header .".concat(fieldClass));
2220
+ $field = $__default['default'](".fixed-table-header .".concat(fieldClass));
2036
2221
  }
2037
2222
 
2038
2223
  that.options.valuesFilterControl.push({
@@ -2051,8 +2236,8 @@
2051
2236
  if (that.options.valuesFilterControl.length > 0) {
2052
2237
  // Callback to apply after settings fields values
2053
2238
  var fieldToFocusCallback = null;
2054
- searchControls.each(function (index, ele) {
2055
- var $this = $(this);
2239
+ searchControls.each(function (i, el) {
2240
+ var $this = $__default['default'](el);
2056
2241
  field = $this.closest('[data-field]').data('field');
2057
2242
  result = that.options.valuesFilterControl.filter(function (valueObj) {
2058
2243
  return valueObj.field === field;
@@ -2091,14 +2276,14 @@
2091
2276
  var foundLocalStorage = localStorage;
2092
2277
 
2093
2278
  if (foundCookies) {
2094
- $.each(foundCookies, function (i, _cookie) {
2279
+ $__default['default'].each(foundCookies, function (i, _cookie) {
2095
2280
  var cookie = _cookie;
2096
2281
 
2097
2282
  if (/./.test(cookie)) {
2098
2283
  cookie = cookie.split('.').pop();
2099
2284
  }
2100
2285
 
2101
- if ($.inArray(cookie, cookies) === -1) {
2286
+ if ($__default['default'].inArray(cookie, cookies) === -1) {
2102
2287
  cookies.push(cookie);
2103
2288
  }
2104
2289
  });
@@ -2139,7 +2324,7 @@
2139
2324
  function initFilterSelectControls(that) {
2140
2325
  var data = that.data;
2141
2326
  var z = that.options.pagination ? that.options.sidePagination === 'server' ? that.pageTo : that.options.totalRows : that.pageTo;
2142
- $.each(that.header.fields, function (j, field) {
2327
+ $__default['default'].each(that.header.fields, function (j, field) {
2143
2328
  var column = that.columns[that.fieldsColumnsIndex[field]];
2144
2329
  var selectControl = getControlContainer(that).find("select.bootstrap-table-filter-control-".concat(escapeID(column.field)));
2145
2330
 
@@ -2153,7 +2338,7 @@
2153
2338
 
2154
2339
  for (var i = 0; i < z; i++) {
2155
2340
  // Added a new value
2156
- var fieldValue = data[i][field];
2341
+ var fieldValue = Utils.getItemField(data[i], field, false);
2157
2342
  var formatter = that.options.editable && column.editable ? column._formatter : that.header.formatters[j];
2158
2343
  var formattedValue = Utils.calculateObjectValue(that.header, formatter, [fieldValue, data[i], i], fieldValue);
2159
2344
 
@@ -2172,7 +2357,8 @@
2172
2357
  addOptionToSelectControl(selectControl, value, value, column.filterDefault);
2173
2358
  });
2174
2359
  continue;
2175
- }
2360
+ } // eslint-disable-next-line guard-for-in
2361
+
2176
2362
 
2177
2363
  for (var key in uniqueValues) {
2178
2364
  addOptionToSelectControl(selectControl, uniqueValues[key], key, column.filterDefault);
@@ -2201,7 +2387,7 @@
2201
2387
  function createControls(that, header) {
2202
2388
  var addedFilterControl = false;
2203
2389
  var html;
2204
- $.each(that.columns, function (_, column) {
2390
+ $__default['default'].each(that.columns, function (_, column) {
2205
2391
  html = [];
2206
2392
 
2207
2393
  if (!column.visible) {
@@ -2211,9 +2397,9 @@
2211
2397
  if (!column.filterControl && !that.options.filterControlContainer) {
2212
2398
  html.push('<div class="no-filter-control"></div>');
2213
2399
  } else if (that.options.filterControlContainer) {
2214
- var $filterControls = $(".bootstrap-table-filter-control-".concat(column.field));
2215
- $.each($filterControls, function (_, filterControl) {
2216
- var $filterControl = $(filterControl);
2400
+ var $filterControls = $__default['default'](".bootstrap-table-filter-control-".concat(column.field));
2401
+ $__default['default'].each($filterControls, function (_, filterControl) {
2402
+ var $filterControl = $__default['default'](filterControl);
2217
2403
 
2218
2404
  if (!$filterControl.is('[type=radio]')) {
2219
2405
  var placeholder = column.filterControlPlaceholder ? column.filterControlPlaceholder : '';
@@ -2234,15 +2420,15 @@
2234
2420
  }
2235
2421
 
2236
2422
  if (!column.filterControl && '' !== column.filterDefault && 'undefined' !== typeof column.filterDefault) {
2237
- if ($.isEmptyObject(that.filterColumnsPartial)) {
2423
+ if ($__default['default'].isEmptyObject(that.filterColumnsPartial)) {
2238
2424
  that.filterColumnsPartial = {};
2239
2425
  }
2240
2426
 
2241
2427
  that.filterColumnsPartial[column.field] = column.filterDefault;
2242
2428
  }
2243
2429
 
2244
- $.each(header.find('th'), function (i, th) {
2245
- var $th = $(th);
2430
+ $__default['default'].each(header.find('th'), function (i, th) {
2431
+ var $th = $__default['default'](th);
2246
2432
 
2247
2433
  if ($th.data('field') === column.field) {
2248
2434
  $th.find('.fht-cell').append(html.join(''));
@@ -2280,11 +2466,11 @@
2280
2466
  return;
2281
2467
  }
2282
2468
 
2283
- if ($.inArray(keyCode, [37, 38, 39, 40]) > -1) {
2469
+ if ($__default['default'].inArray(keyCode, [37, 38, 39, 40]) > -1) {
2284
2470
  return;
2285
2471
  }
2286
2472
 
2287
- var $currentTarget = $(currentTarget);
2473
+ var $currentTarget = $__default['default'](currentTarget);
2288
2474
 
2289
2475
  if ($currentTarget.is(':checkbox') || $currentTarget.is(':radio')) {
2290
2476
  return;
@@ -2302,12 +2488,12 @@
2302
2488
  var currentTarget = _ref5.currentTarget,
2303
2489
  keyCode = _ref5.keyCode;
2304
2490
  syncControls(that);
2305
- var $select = $(currentTarget);
2491
+ var $select = $__default['default'](currentTarget);
2306
2492
  var value = $select.val();
2307
2493
 
2308
2494
  if (value && value.length > 0 && value.trim()) {
2309
2495
  $select.find('option[selected]').removeAttr('selected');
2310
- $select.find('option[value="' + value + '"]').attr('selected', true);
2496
+ $select.find("option[value=\"".concat(value, "\"]")).attr('selected', true);
2311
2497
  } else {
2312
2498
  $select.find('option[selected]').removeAttr('selected');
2313
2499
  }
@@ -2323,7 +2509,7 @@
2323
2509
  header.off('mouseup', 'input:not([type=radio])').on('mouseup', 'input:not([type=radio])', function (_ref6) {
2324
2510
  var currentTarget = _ref6.currentTarget,
2325
2511
  keyCode = _ref6.keyCode;
2326
- var $input = $(currentTarget);
2512
+ var $input = $__default['default'](currentTarget);
2327
2513
  var oldValue = $input.val();
2328
2514
 
2329
2515
  if (oldValue === '') {
@@ -2359,13 +2545,21 @@
2359
2545
  });
2360
2546
 
2361
2547
  if (header.find('.date-filter-control').length > 0) {
2362
- $.each(that.columns, function (i, _ref8) {
2363
- var filterControl = _ref8.filterControl,
2548
+ $__default['default'].each(that.columns, function (i, _ref8) {
2549
+ var filterDefault = _ref8.filterDefault,
2550
+ filterControl = _ref8.filterControl,
2364
2551
  field = _ref8.field,
2365
2552
  filterDatepickerOptions = _ref8.filterDatepickerOptions;
2366
2553
 
2367
2554
  if (filterControl !== undefined && filterControl.toLowerCase() === 'datepicker') {
2368
- header.find(".date-filter-control.bootstrap-table-filter-control-".concat(field)).datepicker(filterDatepickerOptions).on('changeDate', function (_ref9) {
2555
+ var $datepicker = header.find(".date-filter-control.bootstrap-table-filter-control-".concat(field));
2556
+ $datepicker.datepicker(filterDatepickerOptions);
2557
+
2558
+ if (filterDefault) {
2559
+ $datepicker.datepicker('setDate', filterDefault);
2560
+ }
2561
+
2562
+ $datepicker.on('changeDate', function (_ref9) {
2369
2563
  var currentTarget = _ref9.currentTarget,
2370
2564
  keyCode = _ref9.keyCode;
2371
2565
  clearTimeout(currentTarget.timeoutId || 0);
@@ -2415,10 +2609,10 @@
2415
2609
  if (that.options.height) {
2416
2610
  var controlsTableHeader = that.$tableHeader.find(searchControls);
2417
2611
  that.$header.find(searchControls).each(function (_, control) {
2418
- var $control = $(control);
2612
+ var $control = $__default['default'](control);
2419
2613
  var controlClass = getElementClass($control);
2420
2614
  var foundControl = controlsTableHeader.filter(function (_, ele) {
2421
- var eleClass = getElementClass($(ele));
2615
+ var eleClass = getElementClass($__default['default'](ele));
2422
2616
  return controlClass === eleClass;
2423
2617
  });
2424
2618
 
@@ -2437,7 +2631,7 @@
2437
2631
  }
2438
2632
  var filterDataMethods = {
2439
2633
  func: function func(filterDataSource, selectControl, filterOrderBy, selected) {
2440
- var variableValues = window[filterDataSource].apply();
2634
+ var variableValues = window[filterDataSource].apply(); // eslint-disable-next-line guard-for-in
2441
2635
 
2442
2636
  for (var key in variableValues) {
2443
2637
  addOptionToSelectControl(selectControl, key, variableValues[key], selected);
@@ -2454,7 +2648,8 @@
2454
2648
  objectKeys.forEach(function (key) {
2455
2649
  variableValues = variableValues[key];
2456
2650
  });
2457
- }
2651
+ } // eslint-disable-next-line guard-for-in
2652
+
2458
2653
 
2459
2654
  for (var key in variableValues) {
2460
2655
  addOptionToSelectControl(selectControl, key, variableValues[key], selected);
@@ -2477,10 +2672,11 @@
2477
2672
  sortSelectControl(selectControl, filterOrderBy);
2478
2673
  },
2479
2674
  url: function url(filterDataSource, selectControl, filterOrderBy, selected) {
2480
- $.ajax({
2675
+ $__default['default'].ajax({
2481
2676
  url: filterDataSource,
2482
2677
  dataType: 'json',
2483
2678
  success: function success(data) {
2679
+ // eslint-disable-next-line guard-for-in
2484
2680
  for (var key in data) {
2485
2681
  addOptionToSelectControl(selectControl, key, data[key], selected);
2486
2682
  }
@@ -2490,7 +2686,7 @@
2490
2686
  });
2491
2687
  },
2492
2688
  json: function json(filterDataSource, selectControl, filterOrderBy, selected) {
2493
- var variableValues = JSON.parse(filterDataSource);
2689
+ var variableValues = JSON.parse(filterDataSource); // eslint-disable-next-line guard-for-in
2494
2690
 
2495
2691
  for (var key in variableValues) {
2496
2692
  addOptionToSelectControl(selectControl, key, variableValues[key], selected);
@@ -2500,10 +2696,11 @@
2500
2696
  }
2501
2697
  };
2502
2698
 
2503
- var Utils$1 = $.fn.bootstrapTable.utils;
2504
- $.extend($.fn.bootstrapTable.defaults, {
2699
+ var Utils$1 = $__default['default'].fn.bootstrapTable.utils;
2700
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
2505
2701
  filterControl: false,
2506
2702
  filterControlVisible: true,
2703
+ // eslint-disable-next-line no-unused-vars
2507
2704
  onColumnSearch: function onColumnSearch(field, text) {
2508
2705
  return false;
2509
2706
  },
@@ -2513,7 +2710,7 @@
2513
2710
  alignmentSelectControlOptions: undefined,
2514
2711
  filterTemplate: {
2515
2712
  input: function input(that, field, placeholder, value) {
2516
- return Utils$1.sprintf('<input type="text" class="form-control bootstrap-table-filter-control-%s search-input" style="width: 100%;" placeholder="%s" value="%s">', field, 'undefined' === typeof placeholder ? '' : placeholder, 'undefined' === typeof value ? '' : value);
2713
+ return Utils$1.sprintf('<input type="search" class="form-control bootstrap-table-filter-control-%s search-input" style="width: 100%;" placeholder="%s" value="%s">', field, 'undefined' === typeof placeholder ? '' : placeholder, 'undefined' === typeof value ? '' : value);
2517
2714
  },
2518
2715
  select: function select(_ref, field) {
2519
2716
  var options = _ref.options;
@@ -2529,12 +2726,12 @@
2529
2726
  // internal variables
2530
2727
  valuesFilterControl: []
2531
2728
  });
2532
- $.extend($.fn.bootstrapTable.columnDefaults, {
2729
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.columnDefaults, {
2533
2730
  filterControl: undefined,
2534
2731
  // input, select, datepicker
2535
2732
  filterDataCollector: undefined,
2536
2733
  filterData: undefined,
2537
- filterDatepickerOptions: undefined,
2734
+ filterDatepickerOptions: {},
2538
2735
  filterStrictSearch: false,
2539
2736
  filterStartsWithSearch: false,
2540
2737
  filterControlPlaceholder: '',
@@ -2542,24 +2739,24 @@
2542
2739
  filterOrderBy: 'asc' // asc || desc
2543
2740
 
2544
2741
  });
2545
- $.extend($.fn.bootstrapTable.Constructor.EVENTS, {
2742
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.Constructor.EVENTS, {
2546
2743
  'column-search.bs.table': 'onColumnSearch',
2547
2744
  'created-controls.bs.table': 'onCreatedControls'
2548
2745
  });
2549
- $.extend($.fn.bootstrapTable.defaults.icons, {
2746
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults.icons, {
2550
2747
  clear: {
2551
2748
  bootstrap3: 'glyphicon-trash icon-clear'
2552
- }[$.fn.bootstrapTable.theme] || 'fa-trash',
2749
+ }[$__default['default'].fn.bootstrapTable.theme] || 'fa-trash',
2553
2750
  filterControlSwitchHide: {
2554
2751
  bootstrap3: 'glyphicon-zoom-out icon-zoom-out',
2555
2752
  materialize: 'zoom_out'
2556
- }[$.fn.bootstrapTable.theme] || 'fa-search-minus',
2753
+ }[$__default['default'].fn.bootstrapTable.theme] || 'fa-search-minus',
2557
2754
  filterControlSwitchShow: {
2558
2755
  bootstrap3: 'glyphicon-zoom-in icon-zoom-in',
2559
2756
  materialize: 'zoom_in'
2560
- }[$.fn.bootstrapTable.theme] || 'fa-search-plus'
2757
+ }[$__default['default'].fn.bootstrapTable.theme] || 'fa-search-plus'
2561
2758
  });
2562
- $.extend($.fn.bootstrapTable.locales, {
2759
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.locales, {
2563
2760
  formatFilterControlSwitch: function formatFilterControlSwitch() {
2564
2761
  return 'Hide/Show controls';
2565
2762
  },
@@ -2570,25 +2767,25 @@
2570
2767
  return 'Show controls';
2571
2768
  }
2572
2769
  });
2573
- $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales);
2574
- $.extend($.fn.bootstrapTable.defaults, {
2770
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, $__default['default'].fn.bootstrapTable.locales);
2771
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
2575
2772
  formatClearSearch: function formatClearSearch() {
2576
2773
  return 'Clear filters';
2577
2774
  }
2578
2775
  });
2579
- $.fn.bootstrapTable.methods.push('triggerSearch');
2580
- $.fn.bootstrapTable.methods.push('clearFilterControl');
2581
- $.fn.bootstrapTable.methods.push('toggleFilterControl');
2776
+ $__default['default'].fn.bootstrapTable.methods.push('triggerSearch');
2777
+ $__default['default'].fn.bootstrapTable.methods.push('clearFilterControl');
2778
+ $__default['default'].fn.bootstrapTable.methods.push('toggleFilterControl');
2582
2779
 
2583
- $.BootstrapTable =
2584
- /*#__PURE__*/
2585
- function (_$$BootstrapTable) {
2780
+ $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2586
2781
  _inherits(_class, _$$BootstrapTable);
2587
2782
 
2783
+ var _super = _createSuper(_class);
2784
+
2588
2785
  function _class() {
2589
2786
  _classCallCheck(this, _class);
2590
2787
 
2591
- return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));
2788
+ return _super.apply(this, arguments);
2592
2789
  }
2593
2790
 
2594
2791
  _createClass(_class, [{
@@ -2609,7 +2806,7 @@
2609
2806
 
2610
2807
  var $controlContainer = getControlContainer(_this);
2611
2808
 
2612
- if ($controlContainer.find('select').length > 0 || $controlContainer.find('input:not([type="checkbox"]):not([type="radio"])').length > 0) {
2809
+ if (($controlContainer.find('select').length > 0 || $controlContainer.find('input:not([type="checkbox"]):not([type="radio"])').length > 0) && !_this.options.filterControlContainer) {
2613
2810
  return;
2614
2811
  }
2615
2812
 
@@ -2655,8 +2852,10 @@
2655
2852
  }, {
2656
2853
  key: "initSearch",
2657
2854
  value: function initSearch() {
2855
+ var _this2 = this;
2856
+
2658
2857
  var that = this;
2659
- var fp = $.isEmptyObject(that.filterColumnsPartial) ? null : that.filterColumnsPartial;
2858
+ var fp = $__default['default'].isEmptyObject(that.filterColumnsPartial) ? null : that.filterColumnsPartial;
2660
2859
 
2661
2860
  _get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
2662
2861
 
@@ -2675,7 +2874,7 @@
2675
2874
  keys.forEach(function (key) {
2676
2875
  var thisColumn = that.columns[that.fieldsColumnsIndex[key]];
2677
2876
  var fval = (fp[key] || '').toLowerCase();
2678
- var value = Utils$1.getItemField(item, key, false);
2877
+ var value = Utils$1.unescapeHTML(Utils$1.getItemField(item, key, false));
2679
2878
  var tmpItemIsExpected;
2680
2879
 
2681
2880
  if (fval === '') {
@@ -2683,10 +2882,10 @@
2683
2882
  } else {
2684
2883
  // Fix #142: search use formatted data
2685
2884
  if (thisColumn && thisColumn.searchFormatter) {
2686
- value = $.fn.bootstrapTable.utils.calculateObjectValue(that.header, that.header.formatters[$.inArray(key, that.header.fields)], [value, item, i], value);
2885
+ value = $__default['default'].fn.bootstrapTable.utils.calculateObjectValue(that.header, that.header.formatters[$__default['default'].inArray(key, that.header.fields)], [value, item, i], value);
2687
2886
  }
2688
2887
 
2689
- if ($.inArray(key, that.header.fields) !== -1) {
2888
+ if ($__default['default'].inArray(key, that.header.fields) !== -1) {
2690
2889
  if (value === undefined || value === null) {
2691
2890
  tmpItemIsExpected = false;
2692
2891
  } else if (_typeof(value) === 'object') {
@@ -2695,9 +2894,17 @@
2695
2894
  return;
2696
2895
  }
2697
2896
 
2897
+ if (_this2.options.searchAccentNeutralise) {
2898
+ objectValue = Utils$1.normalizeAccent(objectValue);
2899
+ }
2900
+
2698
2901
  tmpItemIsExpected = that.isValueExpected(fval, objectValue, thisColumn, key);
2699
2902
  });
2700
2903
  } else if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
2904
+ if (_this2.options.searchAccentNeutralise) {
2905
+ value = Utils$1.normalizeAccent(value);
2906
+ }
2907
+
2701
2908
  tmpItemIsExpected = that.isValueExpected(fval, value, thisColumn, key);
2702
2909
  }
2703
2910
  }
@@ -2775,7 +2982,7 @@
2775
2982
 
2776
2983
  if (filterColumnsDefaults) {
2777
2984
  this.filterColumnsPartial = filterColumnsDefaults;
2778
- this.updatePagination();
2985
+ this.updatePagination(); // eslint-disable-next-line guard-for-in
2779
2986
 
2780
2987
  for (var filter in filterColumnsDefaults) {
2781
2988
  this.trigger('column-search', filter, filterColumnsDefaults[filter]);
@@ -2788,16 +2995,16 @@
2788
2995
  var currentTarget = _ref2.currentTarget,
2789
2996
  keyCode = _ref2.keyCode;
2790
2997
 
2791
- if ($.inArray(keyCode, [37, 38, 39, 40]) > -1) {
2998
+ if ($__default['default'].inArray(keyCode, [37, 38, 39, 40]) > -1) {
2792
2999
  return;
2793
3000
  }
2794
3001
 
2795
3002
  copyValues(this);
2796
- var text = $.trim($(currentTarget).val());
2797
- var $field = $(currentTarget).closest('[data-field]').data('field');
3003
+ var text = $__default['default'].trim($__default['default'](currentTarget).val());
3004
+ var $field = $__default['default'](currentTarget).closest('[data-field]').data('field');
2798
3005
  this.trigger('column-search', $field, text);
2799
3006
 
2800
- if ($.isEmptyObject(this.filterColumnsPartial)) {
3007
+ if ($__default['default'].isEmptyObject(this.filterColumnsPartial)) {
2801
3008
  this.filterColumnsPartial = {};
2802
3009
  }
2803
3010
 
@@ -2819,17 +3026,21 @@
2819
3026
  this.showToolbar = this.showToolbar || this.options.showFilterControlSwitch;
2820
3027
  this.showSearchClearButton = this.options.filterControl && this.options.showSearchClearButton;
2821
3028
 
2822
- _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
2823
-
2824
3029
  if (this.options.showFilterControlSwitch) {
2825
- var $btnGroup = this.$toolbar.find('>.columns');
2826
- var $btnFilterControlSwitch = $btnGroup.find('.filter-control-switch');
2827
-
2828
- if (!$btnFilterControlSwitch.length) {
2829
- $btnFilterControlSwitch = $("\n <button class=\"filter-control-switch ".concat(this.constants.buttonsClass, "\"\n type=\"button\" title=\"").concat(this.options.formatFilterControlSwitch(), "\">\n ").concat(this.options.showButtonIcons ? Utils$1.sprintf(this.constants.html.icon, this.options.iconsPrefix, this.options.filterControlVisible ? this.options.icons.filterControlSwitchHide : this.options.icons.filterControlSwitchShow) : '', "\n ").concat(this.options.showButtonText ? this.options.filterControlVisible ? this.options.formatFilterControlSwitchHide() : this.options.formatFilterControlSwitchShow() : '', "\n </button>\n ")).appendTo($btnGroup);
2830
- $btnFilterControlSwitch.on('click', $.proxy(this.toggleFilterControl, this));
2831
- }
3030
+ this.buttons = Object.assign(this.buttons, {
3031
+ filterControlSwitch: {
3032
+ text: this.options.filterControlVisible ? this.options.formatFilterControlSwitchHide() : this.options.formatFilterControlSwitchShow(),
3033
+ icon: this.options.filterControlVisible ? this.options.icons.filterControlSwitchHide : this.options.icons.filterControlSwitchShow,
3034
+ event: this.toggleFilterControl,
3035
+ attributes: {
3036
+ 'aria-label': this.options.formatFilterControlSwitch(),
3037
+ title: this.options.formatFilterControlSwitch()
3038
+ }
3039
+ }
3040
+ });
2832
3041
  }
3042
+
3043
+ _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
2833
3044
  }
2834
3045
  }, {
2835
3046
  key: "resetSearch",
@@ -2848,14 +3059,14 @@
2848
3059
  var cookies = collectBootstrapCookies();
2849
3060
  var table = this.$el.closest('table');
2850
3061
  var controls = getSearchControls(that);
2851
- var search = that.$toolbar.find('.search input');
3062
+ var search = Utils$1.getSearchInput(this);
2852
3063
  var hasValues = false;
2853
3064
  var timeoutId = 0;
2854
- $.each(that.options.valuesFilterControl, function (i, item) {
3065
+ $__default['default'].each(that.options.valuesFilterControl, function (i, item) {
2855
3066
  hasValues = hasValues ? true : item.value !== '';
2856
3067
  item.value = '';
2857
3068
  });
2858
- $.each(that.options.filterControls, function (i, item) {
3069
+ $__default['default'].each(that.options.filterControls, function (i, item) {
2859
3070
  item.text = '';
2860
3071
  });
2861
3072
  setValues(that); // clear cookies once the filters are clean
@@ -2863,7 +3074,7 @@
2863
3074
  clearTimeout(timeoutId);
2864
3075
  timeoutId = setTimeout(function () {
2865
3076
  if (cookies && cookies.length > 0) {
2866
- $.each(cookies, function (i, item) {
3077
+ $__default['default'].each(cookies, function (i, item) {
2867
3078
  if (that.deleteCookie !== undefined) {
2868
3079
  that.deleteCookie(item);
2869
3080
  }
@@ -2880,7 +3091,7 @@
2880
3091
 
2881
3092
  if (controls.length > 0) {
2882
3093
  this.filterColumnsPartial = {};
2883
- $(controls[0]).trigger(controls[0].tagName === 'INPUT' ? 'keyup' : 'change', {
3094
+ $__default['default'](controls[0]).trigger(controls[0].tagName === 'INPUT' ? 'keyup' : 'change', {
2884
3095
  keyCode: 13
2885
3096
  });
2886
3097
  } else {
@@ -2893,14 +3104,14 @@
2893
3104
 
2894
3105
 
2895
3106
  if (that.options.sortName !== table.data('sortName') || that.options.sortOrder !== table.data('sortOrder')) {
2896
- var sorter = this.$header.find(Utils$1.sprintf('[data-field="%s"]', $(controls[0]).closest('table').data('sortName')));
3107
+ var sorter = this.$header.find(Utils$1.sprintf('[data-field="%s"]', $__default['default'](controls[0]).closest('table').data('sortName')));
2897
3108
 
2898
3109
  if (sorter.length > 0) {
2899
3110
  that.onSort({
2900
3111
  type: 'keypress',
2901
3112
  currentTarget: sorter
2902
3113
  });
2903
- $(sorter).find('.sortable').trigger('click');
3114
+ $__default['default'](sorter).find('.sortable').trigger('click');
2904
3115
  }
2905
3116
  }
2906
3117
  }
@@ -2910,7 +3121,7 @@
2910
3121
  value: function triggerSearch() {
2911
3122
  var searchControls = getSearchControls(this);
2912
3123
  searchControls.each(function () {
2913
- var el = $(this);
3124
+ var el = $__default['default'](this);
2914
3125
 
2915
3126
  if (el.is('select')) {
2916
3127
  el.change();
@@ -2947,11 +3158,11 @@
2947
3158
 
2948
3159
  var icon = this.options.showButtonIcons ? this.options.filterControlVisible ? this.options.icons.filterControlSwitchHide : this.options.icons.filterControlSwitchShow : '';
2949
3160
  var text = this.options.showButtonText ? this.options.filterControlVisible ? this.options.formatFilterControlSwitchHide() : this.options.formatFilterControlSwitchShow() : '';
2950
- this.$toolbar.find('>.columns').find('.filter-control-switch').html(Utils$1.sprintf(this.constants.html.icon, this.options.iconsPrefix, icon) + ' ' + text);
3161
+ this.$toolbar.find('>.columns').find('.filter-control-switch').html("".concat(Utils$1.sprintf(this.constants.html.icon, this.options.iconsPrefix, icon), " ").concat(text));
2951
3162
  }
2952
3163
  }]);
2953
3164
 
2954
3165
  return _class;
2955
- }($.BootstrapTable);
3166
+ }($__default['default'].BootstrapTable);
2956
3167
 
2957
3168
  })));