bootstrap-table-rails 1.18.1 → 1.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) 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 +196 -147
  11. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +179 -990
  12. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +180 -991
  13. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +9 -1
  14. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +731 -1114
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +122 -35
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +115 -39
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +458 -911
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +124 -48
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +122 -43
  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 +433 -977
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +460 -951
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +275 -140
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +176 -86
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +128 -48
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +164 -75
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +45 -11
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +136 -36
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +227 -141
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +148 -94
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +111 -35
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +93 -49
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +396 -999
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +144 -56
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +104 -33
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +283 -87
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +116 -40
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +456 -1034
  39. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +278 -990
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +30 -20
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +30 -20
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +30 -20
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +30 -20
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +30 -20
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +30 -20
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +69 -20
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +30 -20
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +30 -20
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +30 -20
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +30 -20
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +30 -20
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +30 -20
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +30 -20
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +30 -20
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +30 -20
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +30 -20
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +30 -20
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +30 -20
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +30 -20
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +30 -20
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +30 -20
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +30 -20
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +30 -20
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +30 -20
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +30 -20
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +30 -20
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +30 -20
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +30 -20
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +30 -20
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +30 -20
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +30 -20
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +30 -20
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +30 -20
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +30 -20
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +30 -20
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +30 -20
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +30 -20
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +30 -20
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +30 -20
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +53 -43
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +30 -20
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +30 -20
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +30 -20
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +30 -20
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +30 -20
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +30 -20
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +30 -20
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +30 -20
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +30 -20
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +30 -20
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +30 -20
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +30 -20
  93. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +8 -0
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +114 -35
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +8 -0
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +109 -30
  97. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +8 -0
  98. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +113 -34
  99. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +8 -0
  100. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +110 -31
  101. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +8 -0
  102. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +107 -28
  103. metadata +6 -1
@@ -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;
@@ -532,6 +542,12 @@
532
542
  return classofRaw(arg) == 'Array';
533
543
  };
534
544
 
545
+ // `ToObject` abstract operation
546
+ // https://tc39.github.io/ecma262/#sec-toobject
547
+ var toObject = function (argument) {
548
+ return Object(requireObjectCoercible(argument));
549
+ };
550
+
535
551
  var createProperty = function (object, key, value) {
536
552
  var propertyKey = toPrimitive(key);
537
553
  if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
@@ -548,11 +564,11 @@
548
564
  // eslint-disable-next-line no-undef
549
565
  && !Symbol.sham
550
566
  // eslint-disable-next-line no-undef
551
- && typeof Symbol() == 'symbol';
567
+ && typeof Symbol.iterator == 'symbol';
552
568
 
553
569
  var WellKnownSymbolsStore = shared('wks');
554
570
  var Symbol$1 = global_1.Symbol;
555
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
571
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
556
572
 
557
573
  var wellKnownSymbol = function (name) {
558
574
  if (!has(WellKnownSymbolsStore, name)) {
@@ -561,7 +577,24 @@
561
577
  } return WellKnownSymbolsStore[name];
562
578
  };
563
579
 
564
- var userAgent = getBuiltIn('navigator', 'userAgent') || '';
580
+ var SPECIES = wellKnownSymbol('species');
581
+
582
+ // `ArraySpeciesCreate` abstract operation
583
+ // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
584
+ var arraySpeciesCreate = function (originalArray, length) {
585
+ var C;
586
+ if (isArray(originalArray)) {
587
+ C = originalArray.constructor;
588
+ // cross-realm fallback
589
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
590
+ else if (isObject(C)) {
591
+ C = C[SPECIES];
592
+ if (C === null) C = undefined;
593
+ }
594
+ } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
595
+ };
596
+
597
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
565
598
 
566
599
  var process = global_1.process;
567
600
  var versions = process && process.versions;
@@ -571,67 +604,211 @@
571
604
  if (v8) {
572
605
  match = v8.split('.');
573
606
  version = match[0] + match[1];
574
- } else if (userAgent) {
575
- match = userAgent.match(/Edge\/(\d+)/);
607
+ } else if (engineUserAgent) {
608
+ match = engineUserAgent.match(/Edge\/(\d+)/);
576
609
  if (!match || match[1] >= 74) {
577
- match = userAgent.match(/Chrome\/(\d+)/);
610
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
578
611
  if (match) version = match[1];
579
612
  }
580
613
  }
581
614
 
582
- var v8Version = version && +version;
615
+ var engineV8Version = version && +version;
583
616
 
584
- var SPECIES = wellKnownSymbol('species');
617
+ var SPECIES$1 = wellKnownSymbol('species');
585
618
 
586
619
  var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
587
620
  // We can't use this feature detection in V8 since it causes
588
621
  // deoptimization and serious performance degradation
589
622
  // https://github.com/zloirock/core-js/issues/677
590
- return v8Version >= 51 || !fails(function () {
623
+ return engineV8Version >= 51 || !fails(function () {
591
624
  var array = [];
592
625
  var constructor = array.constructor = {};
593
- constructor[SPECIES] = function () {
626
+ constructor[SPECIES$1] = function () {
594
627
  return { foo: 1 };
595
628
  };
596
629
  return array[METHOD_NAME](Boolean).foo !== 1;
597
630
  });
598
631
  };
599
632
 
600
- var SPECIES$1 = wellKnownSymbol('species');
601
- var nativeSlice = [].slice;
602
- var max$1 = Math.max;
603
-
604
- // `Array.prototype.slice` method
605
- // https://tc39.github.io/ecma262/#sec-array.prototype.slice
606
- // fallback for not array-like ES3 strings and DOM objects
607
- _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {
608
- slice: function slice(start, end) {
609
- var O = toIndexedObject(this);
610
- var length = toLength(O.length);
611
- var k = toAbsoluteIndex(start, length);
612
- var fin = toAbsoluteIndex(end === undefined ? length : end, length);
613
- // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
614
- var Constructor, result, n;
615
- if (isArray(O)) {
616
- Constructor = O.constructor;
617
- // cross-realm fallback
618
- if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
619
- Constructor = undefined;
620
- } else if (isObject(Constructor)) {
621
- Constructor = Constructor[SPECIES$1];
622
- if (Constructor === null) Constructor = undefined;
623
- }
624
- if (Constructor === Array || Constructor === undefined) {
625
- return nativeSlice.call(O, k, fin);
633
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
634
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
635
+ var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
636
+
637
+ // We can't use this feature detection in V8 since it causes
638
+ // deoptimization and serious performance degradation
639
+ // https://github.com/zloirock/core-js/issues/679
640
+ var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
641
+ var array = [];
642
+ array[IS_CONCAT_SPREADABLE] = false;
643
+ return array.concat()[0] !== array;
644
+ });
645
+
646
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
647
+
648
+ var isConcatSpreadable = function (O) {
649
+ if (!isObject(O)) return false;
650
+ var spreadable = O[IS_CONCAT_SPREADABLE];
651
+ return spreadable !== undefined ? !!spreadable : isArray(O);
652
+ };
653
+
654
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
655
+
656
+ // `Array.prototype.concat` method
657
+ // https://tc39.github.io/ecma262/#sec-array.prototype.concat
658
+ // with adding support of @@isConcatSpreadable and @@species
659
+ _export({ target: 'Array', proto: true, forced: FORCED }, {
660
+ concat: function concat(arg) { // eslint-disable-line no-unused-vars
661
+ var O = toObject(this);
662
+ var A = arraySpeciesCreate(O, 0);
663
+ var n = 0;
664
+ var i, k, length, len, E;
665
+ for (i = -1, length = arguments.length; i < length; i++) {
666
+ E = i === -1 ? O : arguments[i];
667
+ if (isConcatSpreadable(E)) {
668
+ len = toLength(E.length);
669
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
670
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
671
+ } else {
672
+ if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
673
+ createProperty(A, n++, E);
626
674
  }
627
675
  }
628
- result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
629
- for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
630
- result.length = n;
631
- return result;
676
+ A.length = n;
677
+ return A;
632
678
  }
633
679
  });
634
680
 
681
+ function _classCallCheck(instance, Constructor) {
682
+ if (!(instance instanceof Constructor)) {
683
+ throw new TypeError("Cannot call a class as a function");
684
+ }
685
+ }
686
+
687
+ function _defineProperties(target, props) {
688
+ for (var i = 0; i < props.length; i++) {
689
+ var descriptor = props[i];
690
+ descriptor.enumerable = descriptor.enumerable || false;
691
+ descriptor.configurable = true;
692
+ if ("value" in descriptor) descriptor.writable = true;
693
+ Object.defineProperty(target, descriptor.key, descriptor);
694
+ }
695
+ }
696
+
697
+ function _createClass(Constructor, protoProps, staticProps) {
698
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
699
+ if (staticProps) _defineProperties(Constructor, staticProps);
700
+ return Constructor;
701
+ }
702
+
703
+ function _inherits(subClass, superClass) {
704
+ if (typeof superClass !== "function" && superClass !== null) {
705
+ throw new TypeError("Super expression must either be null or a function");
706
+ }
707
+
708
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
709
+ constructor: {
710
+ value: subClass,
711
+ writable: true,
712
+ configurable: true
713
+ }
714
+ });
715
+ if (superClass) _setPrototypeOf(subClass, superClass);
716
+ }
717
+
718
+ function _getPrototypeOf(o) {
719
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
720
+ return o.__proto__ || Object.getPrototypeOf(o);
721
+ };
722
+ return _getPrototypeOf(o);
723
+ }
724
+
725
+ function _setPrototypeOf(o, p) {
726
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
727
+ o.__proto__ = p;
728
+ return o;
729
+ };
730
+
731
+ return _setPrototypeOf(o, p);
732
+ }
733
+
734
+ function _isNativeReflectConstruct() {
735
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
736
+ if (Reflect.construct.sham) return false;
737
+ if (typeof Proxy === "function") return true;
738
+
739
+ try {
740
+ Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
741
+ return true;
742
+ } catch (e) {
743
+ return false;
744
+ }
745
+ }
746
+
747
+ function _assertThisInitialized(self) {
748
+ if (self === void 0) {
749
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
750
+ }
751
+
752
+ return self;
753
+ }
754
+
755
+ function _possibleConstructorReturn(self, call) {
756
+ if (call && (typeof call === "object" || typeof call === "function")) {
757
+ return call;
758
+ }
759
+
760
+ return _assertThisInitialized(self);
761
+ }
762
+
763
+ function _createSuper(Derived) {
764
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
765
+
766
+ return function _createSuperInternal() {
767
+ var Super = _getPrototypeOf(Derived),
768
+ result;
769
+
770
+ if (hasNativeReflectConstruct) {
771
+ var NewTarget = _getPrototypeOf(this).constructor;
772
+
773
+ result = Reflect.construct(Super, arguments, NewTarget);
774
+ } else {
775
+ result = Super.apply(this, arguments);
776
+ }
777
+
778
+ return _possibleConstructorReturn(this, result);
779
+ };
780
+ }
781
+
782
+ function _superPropBase(object, property) {
783
+ while (!Object.prototype.hasOwnProperty.call(object, property)) {
784
+ object = _getPrototypeOf(object);
785
+ if (object === null) break;
786
+ }
787
+
788
+ return object;
789
+ }
790
+
791
+ function _get(target, property, receiver) {
792
+ if (typeof Reflect !== "undefined" && Reflect.get) {
793
+ _get = Reflect.get;
794
+ } else {
795
+ _get = function _get(target, property, receiver) {
796
+ var base = _superPropBase(target, property);
797
+
798
+ if (!base) return;
799
+ var desc = Object.getOwnPropertyDescriptor(base, property);
800
+
801
+ if (desc.get) {
802
+ return desc.get.call(receiver);
803
+ }
804
+
805
+ return desc.value;
806
+ };
807
+ }
808
+
809
+ return _get(target, property, receiver || target);
810
+ }
811
+
635
812
  /**
636
813
  * @author: Dennis Hernández
637
814
  * @webSite: http://djhvscf.github.io/Blog
@@ -643,7 +820,7 @@
643
820
  };
644
821
 
645
822
  var initResizable = function initResizable(that) {
646
- if (that.options.resizable && !that.options.cardView && !isInit(that)) {
823
+ if (that.options.resizable && !that.options.cardView && !isInit(that) && that.$el.is(':visible')) {
647
824
  that.$el.resizableColumns({
648
825
  store: window.store
649
826
  });
@@ -661,56 +838,75 @@
661
838
  initResizable(that);
662
839
  };
663
840
 
664
- $.extend($.fn.bootstrapTable.defaults, {
841
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
665
842
  resizable: false
666
843
  });
667
- var BootstrapTable = $.fn.bootstrapTable.Constructor;
668
- var _initBody = BootstrapTable.prototype.initBody;
669
- var _toggleView = BootstrapTable.prototype.toggleView;
670
- var _resetView = BootstrapTable.prototype.resetView;
671
844
 
672
- BootstrapTable.prototype.initBody = function () {
673
- var that = this;
845
+ $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
846
+ _inherits(_class, _$$BootstrapTable);
847
+
848
+ var _super = _createSuper(_class);
849
+
850
+ function _class() {
851
+ _classCallCheck(this, _class);
674
852
 
675
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
676
- args[_key] = arguments[_key];
853
+ return _super.apply(this, arguments);
677
854
  }
678
855
 
679
- _initBody.apply(this, Array.prototype.slice.apply(args));
856
+ _createClass(_class, [{
857
+ key: "initBody",
858
+ value: function initBody() {
859
+ var _get2,
860
+ _this = this;
680
861
 
681
- that.$el.off('column-switch.bs.table page-change.bs.table').on('column-switch.bs.table page-change.bs.table', function () {
682
- reInitResizable(that);
683
- });
684
- };
862
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
863
+ args[_key] = arguments[_key];
864
+ }
685
865
 
686
- BootstrapTable.prototype.toggleView = function () {
687
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
688
- args[_key2] = arguments[_key2];
689
- }
866
+ (_get2 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get2, [this].concat(args));
690
867
 
691
- _toggleView.apply(this, Array.prototype.slice.apply(args));
868
+ this.$el.off('column-switch.bs.table page-change.bs.table').on('column-switch.bs.table page-change.bs.table', function () {
869
+ reInitResizable(_this);
870
+ });
871
+ }
872
+ }, {
873
+ key: "toggleView",
874
+ value: function toggleView() {
875
+ var _get3;
692
876
 
693
- if (this.options.resizable && this.options.cardView) {
694
- // Destroy the plugin
695
- destroy(this);
696
- }
697
- };
877
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
878
+ args[_key2] = arguments[_key2];
879
+ }
698
880
 
699
- BootstrapTable.prototype.resetView = function () {
700
- var that = this;
881
+ (_get3 = _get(_getPrototypeOf(_class.prototype), "toggleView", this)).call.apply(_get3, [this].concat(args));
701
882
 
702
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
703
- args[_key3] = arguments[_key3];
704
- }
883
+ if (this.options.resizable && this.options.cardView) {
884
+ // Destroy the plugin
885
+ destroy(this);
886
+ }
887
+ }
888
+ }, {
889
+ key: "resetView",
890
+ value: function resetView() {
891
+ var _get4,
892
+ _this2 = this;
893
+
894
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
895
+ args[_key3] = arguments[_key3];
896
+ }
705
897
 
706
- _resetView.apply(this, Array.prototype.slice.apply(args));
898
+ (_get4 = _get(_getPrototypeOf(_class.prototype), "resetView", this)).call.apply(_get4, [this].concat(args));
707
899
 
708
- if (this.options.resizable) {
709
- // because in fitHeader function, we use setTimeout(func, 100);
710
- setTimeout(function () {
711
- initResizable(that);
712
- }, 100);
713
- }
714
- };
900
+ if (this.options.resizable) {
901
+ // because in fitHeader function, we use setTimeout(func, 100);
902
+ setTimeout(function () {
903
+ initResizable(_this2);
904
+ }, 100);
905
+ }
906
+ }
907
+ }]);
908
+
909
+ return _class;
910
+ }($__default['default'].BootstrapTable);
715
911
 
716
912
  })));