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.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/Gemfile.lock +1 -1
- data/README.md +30 -132
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/.DS_Store +0 -0
- data/vendor/assets/.DS_Store +0 -0
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +196 -147
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +179 -990
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +180 -991
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +731 -1114
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +122 -35
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +115 -39
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +458 -911
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +124 -48
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +122 -43
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +66 -24
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +433 -977
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +460 -951
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +275 -140
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +176 -86
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +128 -48
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +164 -75
- data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +45 -11
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +136 -36
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +227 -141
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +148 -94
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +111 -35
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +93 -49
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +396 -999
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +144 -56
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +104 -33
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +283 -87
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +116 -40
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +456 -1034
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +278 -990
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +69 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +53 -43
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +30 -20
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +8 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +114 -35
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +8 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +109 -30
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +8 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +113 -34
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +8 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +110 -31
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +8 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +107 -28
- 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
|
-
|
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({},
|
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.
|
222
|
+
version: '3.8.1',
|
221
223
|
mode: 'global',
|
222
|
-
copyright: '©
|
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'))
|
306
|
-
|
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
|
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
|
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 (
|
598
|
-
match =
|
607
|
+
} else if (engineUserAgent) {
|
608
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
599
609
|
if (!match || match[1] >= 74) {
|
600
|
-
match =
|
610
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
601
611
|
if (match) version = match[1];
|
602
612
|
}
|
603
613
|
}
|
604
614
|
|
605
|
-
var
|
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
|
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 =
|
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
|
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 =
|
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
|
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 =
|
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
|
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 ||
|
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
|
@@ -946,16 +1012,16 @@
|
|
946
1012
|
});
|
947
1013
|
|
948
1014
|
var nativeAssign = Object.assign;
|
949
|
-
var defineProperty = Object.defineProperty;
|
1015
|
+
var defineProperty$1 = Object.defineProperty;
|
950
1016
|
|
951
1017
|
// `Object.assign` method
|
952
1018
|
// https://tc39.github.io/ecma262/#sec-object.assign
|
953
1019
|
var objectAssign = !nativeAssign || fails(function () {
|
954
1020
|
// should have correct order of operations (Edge bug)
|
955
|
-
if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
|
1021
|
+
if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$1({}, 'a', {
|
956
1022
|
enumerable: true,
|
957
1023
|
get: function () {
|
958
|
-
defineProperty(this, 'b', {
|
1024
|
+
defineProperty$1(this, 'b', {
|
959
1025
|
value: 3,
|
960
1026
|
enumerable: false
|
961
1027
|
});
|
@@ -1080,21 +1146,21 @@
|
|
1080
1146
|
var trim = stringTrim.trim;
|
1081
1147
|
|
1082
1148
|
|
1083
|
-
var
|
1149
|
+
var $parseInt = global_1.parseInt;
|
1084
1150
|
var hex = /^[+-]?0[Xx]/;
|
1085
|
-
var FORCED$1 =
|
1151
|
+
var FORCED$1 = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22;
|
1086
1152
|
|
1087
1153
|
// `parseInt` method
|
1088
1154
|
// https://tc39.github.io/ecma262/#sec-parseint-string-radix
|
1089
|
-
var
|
1155
|
+
var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
|
1090
1156
|
var S = trim(String(string));
|
1091
|
-
return
|
1092
|
-
} :
|
1157
|
+
return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
|
1158
|
+
} : $parseInt;
|
1093
1159
|
|
1094
1160
|
// `parseInt` method
|
1095
1161
|
// https://tc39.github.io/ecma262/#sec-parseint-string-radix
|
1096
|
-
_export({ global: true, forced: parseInt !=
|
1097
|
-
parseInt:
|
1162
|
+
_export({ global: true, forced: parseInt != numberParseInt }, {
|
1163
|
+
parseInt: numberParseInt
|
1098
1164
|
});
|
1099
1165
|
|
1100
1166
|
// `RegExp.prototype.flags` getter implementation
|
@@ -1265,11 +1331,11 @@
|
|
1265
1331
|
var regexp = /./;
|
1266
1332
|
try {
|
1267
1333
|
'/./'[METHOD_NAME](regexp);
|
1268
|
-
} catch (
|
1334
|
+
} catch (error1) {
|
1269
1335
|
try {
|
1270
1336
|
regexp[MATCH$1] = false;
|
1271
1337
|
return '/./'[METHOD_NAME](regexp);
|
1272
|
-
} catch (
|
1338
|
+
} catch (error2) { /* empty */ }
|
1273
1339
|
} return false;
|
1274
1340
|
};
|
1275
1341
|
|
@@ -1286,7 +1352,7 @@
|
|
1286
1352
|
|
1287
1353
|
// check that a method works with the correct list
|
1288
1354
|
// of whitespaces and has a correct name
|
1289
|
-
var
|
1355
|
+
var stringTrimForced = function (METHOD_NAME) {
|
1290
1356
|
return fails(function () {
|
1291
1357
|
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
|
1292
1358
|
});
|
@@ -1297,7 +1363,7 @@
|
|
1297
1363
|
|
1298
1364
|
// `String.prototype.trim` method
|
1299
1365
|
// https://tc39.github.io/ecma262/#sec-string.prototype.trim
|
1300
|
-
_export({ target: 'String', proto: true, forced:
|
1366
|
+
_export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, {
|
1301
1367
|
trim: function trim() {
|
1302
1368
|
return $trim(this);
|
1303
1369
|
}
|
@@ -1339,15 +1405,6 @@
|
|
1339
1405
|
TouchList: 0
|
1340
1406
|
};
|
1341
1407
|
|
1342
|
-
var $forEach = arrayIteration.forEach;
|
1343
|
-
|
1344
|
-
|
1345
|
-
// `Array.prototype.forEach` method implementation
|
1346
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
|
1347
|
-
var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
|
1348
|
-
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1349
|
-
} : [].forEach;
|
1350
|
-
|
1351
1408
|
for (var COLLECTION_NAME in domIterables) {
|
1352
1409
|
var Collection = global_1[COLLECTION_NAME];
|
1353
1410
|
var CollectionPrototype = Collection && Collection.prototype;
|
@@ -1360,6 +1417,8 @@
|
|
1360
1417
|
}
|
1361
1418
|
|
1362
1419
|
function _typeof(obj) {
|
1420
|
+
"@babel/helpers - typeof";
|
1421
|
+
|
1363
1422
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
1364
1423
|
_typeof = function (obj) {
|
1365
1424
|
return typeof obj;
|
@@ -1426,6 +1485,19 @@
|
|
1426
1485
|
return _setPrototypeOf(o, p);
|
1427
1486
|
}
|
1428
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
|
+
|
1429
1501
|
function _assertThisInitialized(self) {
|
1430
1502
|
if (self === void 0) {
|
1431
1503
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
@@ -1442,6 +1514,25 @@
|
|
1442
1514
|
return _assertThisInitialized(self);
|
1443
1515
|
}
|
1444
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
|
+
|
1445
1536
|
function _superPropBase(object, property) {
|
1446
1537
|
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
1447
1538
|
object = _getPrototypeOf(object);
|
@@ -1473,33 +1564,46 @@
|
|
1473
1564
|
}
|
1474
1565
|
|
1475
1566
|
function _toConsumableArray(arr) {
|
1476
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
1567
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1477
1568
|
}
|
1478
1569
|
|
1479
1570
|
function _arrayWithoutHoles(arr) {
|
1480
|
-
if (Array.isArray(arr))
|
1481
|
-
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
1482
|
-
|
1483
|
-
return arr2;
|
1484
|
-
}
|
1571
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
1485
1572
|
}
|
1486
1573
|
|
1487
1574
|
function _iterableToArray(iter) {
|
1488
|
-
if (Symbol.iterator in Object(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;
|
1489
1593
|
}
|
1490
1594
|
|
1491
1595
|
function _nonIterableSpread() {
|
1492
|
-
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.");
|
1493
1597
|
}
|
1494
1598
|
|
1495
1599
|
var nativeJoin = [].join;
|
1496
1600
|
|
1497
1601
|
var ES3_STRINGS = indexedObject != Object;
|
1498
|
-
var
|
1602
|
+
var STRICT_METHOD$2 = arrayMethodIsStrict('join', ',');
|
1499
1603
|
|
1500
1604
|
// `Array.prototype.join` method
|
1501
1605
|
// https://tc39.github.io/ecma262/#sec-array.prototype.join
|
1502
|
-
_export({ target: 'Array', proto: true, forced: ES3_STRINGS ||
|
1606
|
+
_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$2 }, {
|
1503
1607
|
join: function join(separator) {
|
1504
1608
|
return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
|
1505
1609
|
}
|
@@ -1517,9 +1621,9 @@
|
|
1517
1621
|
test$1.sort(null);
|
1518
1622
|
});
|
1519
1623
|
// Old WebKit
|
1520
|
-
var
|
1624
|
+
var STRICT_METHOD$3 = arrayMethodIsStrict('sort');
|
1521
1625
|
|
1522
|
-
var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL ||
|
1626
|
+
var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$3;
|
1523
1627
|
|
1524
1628
|
// `Array.prototype.sort` method
|
1525
1629
|
// https://tc39.github.io/ecma262/#sec-array.prototype.sort
|
@@ -1531,6 +1635,14 @@
|
|
1531
1635
|
}
|
1532
1636
|
});
|
1533
1637
|
|
1638
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
1639
|
+
|
1640
|
+
|
1641
|
+
|
1642
|
+
|
1643
|
+
|
1644
|
+
|
1645
|
+
|
1534
1646
|
var SPECIES$2 = wellKnownSymbol('species');
|
1535
1647
|
|
1536
1648
|
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
@@ -1552,6 +1664,15 @@
|
|
1552
1664
|
return 'a'.replace(/./, '$0') === '$0';
|
1553
1665
|
})();
|
1554
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
|
+
|
1555
1676
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
1556
1677
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
1557
1678
|
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
@@ -1599,7 +1720,11 @@
|
|
1599
1720
|
if (
|
1600
1721
|
!DELEGATES_TO_SYMBOL ||
|
1601
1722
|
!DELEGATES_TO_EXEC ||
|
1602
|
-
(KEY === 'replace' && !(
|
1723
|
+
(KEY === 'replace' && !(
|
1724
|
+
REPLACE_SUPPORTS_NAMED_GROUPS &&
|
1725
|
+
REPLACE_KEEPS_$0 &&
|
1726
|
+
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
1727
|
+
)) ||
|
1603
1728
|
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
1604
1729
|
) {
|
1605
1730
|
var nativeRegExpMethod = /./[SYMBOL];
|
@@ -1614,7 +1739,10 @@
|
|
1614
1739
|
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
1615
1740
|
}
|
1616
1741
|
return { done: false };
|
1617
|
-
}, {
|
1742
|
+
}, {
|
1743
|
+
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
1744
|
+
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
1745
|
+
});
|
1618
1746
|
var stringMethod = methods[0];
|
1619
1747
|
var regexMethod = methods[1];
|
1620
1748
|
|
@@ -1733,6 +1861,10 @@
|
|
1733
1861
|
|
1734
1862
|
// @@replace logic
|
1735
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
|
+
|
1736
1868
|
return [
|
1737
1869
|
// `String.prototype.replace` method
|
1738
1870
|
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
@@ -1746,7 +1878,10 @@
|
|
1746
1878
|
// `RegExp.prototype[@@replace]` method
|
1747
1879
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
1748
1880
|
function (regexp, replaceValue) {
|
1749
|
-
if (
|
1881
|
+
if (
|
1882
|
+
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
|
1883
|
+
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
|
1884
|
+
) {
|
1750
1885
|
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
1751
1886
|
if (res.done) return res.value;
|
1752
1887
|
}
|
@@ -1973,14 +2108,14 @@
|
|
1973
2108
|
];
|
1974
2109
|
}, !SUPPORTS_Y);
|
1975
2110
|
|
1976
|
-
var Utils =
|
2111
|
+
var Utils = $__default['default'].fn.bootstrapTable.utils;
|
1977
2112
|
var searchControls = 'select, input:not([type="checkbox"]):not([type="radio"])';
|
1978
2113
|
function getOptionsFromSelectControl(selectControl) {
|
1979
2114
|
return selectControl.get(selectControl.length - 1).options;
|
1980
2115
|
}
|
1981
2116
|
function getControlContainer(that) {
|
1982
2117
|
if (that.options.filterControlContainer) {
|
1983
|
-
return $("".concat(that.options.filterControlContainer));
|
2118
|
+
return $__default['default']("".concat(that.options.filterControlContainer));
|
1984
2119
|
}
|
1985
2120
|
|
1986
2121
|
return that.$header;
|
@@ -2016,10 +2151,10 @@
|
|
2016
2151
|
}
|
2017
2152
|
function addOptionToSelectControl(selectControl, _value, text, selected) {
|
2018
2153
|
var value = _value === undefined || _value === null ? '' : _value.toString().trim();
|
2019
|
-
var $selectControl = $(selectControl.get(selectControl.length - 1));
|
2154
|
+
var $selectControl = $__default['default'](selectControl.get(selectControl.length - 1));
|
2020
2155
|
|
2021
2156
|
if (!existOptionInSelectControl(selectControl, value)) {
|
2022
|
-
var option = $("<option value=\"".concat(value, "\">").concat(text, "</option>"));
|
2157
|
+
var option = $__default['default']("<option value=\"".concat(value, "\">").concat(text, "</option>"));
|
2023
2158
|
|
2024
2159
|
if (value === selected) {
|
2025
2160
|
option.attr('selected', true);
|
@@ -2029,7 +2164,7 @@
|
|
2029
2164
|
}
|
2030
2165
|
}
|
2031
2166
|
function sortSelectControl(selectControl, orderBy) {
|
2032
|
-
var $selectControl = $(selectControl.get(selectControl.length - 1));
|
2167
|
+
var $selectControl = $__default['default'](selectControl.get(selectControl.length - 1));
|
2033
2168
|
var $opts = $selectControl.find('option:gt(0)');
|
2034
2169
|
|
2035
2170
|
if (orderBy !== 'server') {
|
@@ -2050,7 +2185,7 @@
|
|
2050
2185
|
}
|
2051
2186
|
function getCursorPosition(el) {
|
2052
2187
|
if (Utils.isIEBrowser()) {
|
2053
|
-
if ($(el).is('input[type=text]')) {
|
2188
|
+
if ($__default['default'](el).is('input[type=text]')) {
|
2054
2189
|
var pos = 0;
|
2055
2190
|
|
2056
2191
|
if ('selectionStart' in el) {
|
@@ -2072,17 +2207,17 @@
|
|
2072
2207
|
return -1;
|
2073
2208
|
}
|
2074
2209
|
function setCursorPosition(el) {
|
2075
|
-
$(el).val(el.value);
|
2210
|
+
$__default['default'](el).val(el.value);
|
2076
2211
|
}
|
2077
2212
|
function copyValues(that) {
|
2078
2213
|
var searchControls = getSearchControls(that);
|
2079
2214
|
that.options.valuesFilterControl = [];
|
2080
2215
|
searchControls.each(function () {
|
2081
|
-
var $field = $(this);
|
2216
|
+
var $field = $__default['default'](this);
|
2082
2217
|
|
2083
2218
|
if (that.options.height) {
|
2084
2219
|
var fieldClass = getElementClass($field);
|
2085
|
-
$field = $(".fixed-table-header .".concat(fieldClass));
|
2220
|
+
$field = $__default['default'](".fixed-table-header .".concat(fieldClass));
|
2086
2221
|
}
|
2087
2222
|
|
2088
2223
|
that.options.valuesFilterControl.push({
|
@@ -2102,7 +2237,7 @@
|
|
2102
2237
|
// Callback to apply after settings fields values
|
2103
2238
|
var fieldToFocusCallback = null;
|
2104
2239
|
searchControls.each(function (i, el) {
|
2105
|
-
var $this = $(el);
|
2240
|
+
var $this = $__default['default'](el);
|
2106
2241
|
field = $this.closest('[data-field]').data('field');
|
2107
2242
|
result = that.options.valuesFilterControl.filter(function (valueObj) {
|
2108
2243
|
return valueObj.field === field;
|
@@ -2141,14 +2276,14 @@
|
|
2141
2276
|
var foundLocalStorage = localStorage;
|
2142
2277
|
|
2143
2278
|
if (foundCookies) {
|
2144
|
-
|
2279
|
+
$__default['default'].each(foundCookies, function (i, _cookie) {
|
2145
2280
|
var cookie = _cookie;
|
2146
2281
|
|
2147
2282
|
if (/./.test(cookie)) {
|
2148
2283
|
cookie = cookie.split('.').pop();
|
2149
2284
|
}
|
2150
2285
|
|
2151
|
-
if (
|
2286
|
+
if ($__default['default'].inArray(cookie, cookies) === -1) {
|
2152
2287
|
cookies.push(cookie);
|
2153
2288
|
}
|
2154
2289
|
});
|
@@ -2189,7 +2324,7 @@
|
|
2189
2324
|
function initFilterSelectControls(that) {
|
2190
2325
|
var data = that.data;
|
2191
2326
|
var z = that.options.pagination ? that.options.sidePagination === 'server' ? that.pageTo : that.options.totalRows : that.pageTo;
|
2192
|
-
|
2327
|
+
$__default['default'].each(that.header.fields, function (j, field) {
|
2193
2328
|
var column = that.columns[that.fieldsColumnsIndex[field]];
|
2194
2329
|
var selectControl = getControlContainer(that).find("select.bootstrap-table-filter-control-".concat(escapeID(column.field)));
|
2195
2330
|
|
@@ -2203,7 +2338,7 @@
|
|
2203
2338
|
|
2204
2339
|
for (var i = 0; i < z; i++) {
|
2205
2340
|
// Added a new value
|
2206
|
-
var fieldValue = data[i]
|
2341
|
+
var fieldValue = Utils.getItemField(data[i], field, false);
|
2207
2342
|
var formatter = that.options.editable && column.editable ? column._formatter : that.header.formatters[j];
|
2208
2343
|
var formattedValue = Utils.calculateObjectValue(that.header, formatter, [fieldValue, data[i], i], fieldValue);
|
2209
2344
|
|
@@ -2252,7 +2387,7 @@
|
|
2252
2387
|
function createControls(that, header) {
|
2253
2388
|
var addedFilterControl = false;
|
2254
2389
|
var html;
|
2255
|
-
|
2390
|
+
$__default['default'].each(that.columns, function (_, column) {
|
2256
2391
|
html = [];
|
2257
2392
|
|
2258
2393
|
if (!column.visible) {
|
@@ -2262,9 +2397,9 @@
|
|
2262
2397
|
if (!column.filterControl && !that.options.filterControlContainer) {
|
2263
2398
|
html.push('<div class="no-filter-control"></div>');
|
2264
2399
|
} else if (that.options.filterControlContainer) {
|
2265
|
-
var $filterControls = $(".bootstrap-table-filter-control-".concat(column.field));
|
2266
|
-
|
2267
|
-
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);
|
2268
2403
|
|
2269
2404
|
if (!$filterControl.is('[type=radio]')) {
|
2270
2405
|
var placeholder = column.filterControlPlaceholder ? column.filterControlPlaceholder : '';
|
@@ -2285,15 +2420,15 @@
|
|
2285
2420
|
}
|
2286
2421
|
|
2287
2422
|
if (!column.filterControl && '' !== column.filterDefault && 'undefined' !== typeof column.filterDefault) {
|
2288
|
-
if (
|
2423
|
+
if ($__default['default'].isEmptyObject(that.filterColumnsPartial)) {
|
2289
2424
|
that.filterColumnsPartial = {};
|
2290
2425
|
}
|
2291
2426
|
|
2292
2427
|
that.filterColumnsPartial[column.field] = column.filterDefault;
|
2293
2428
|
}
|
2294
2429
|
|
2295
|
-
|
2296
|
-
var $th = $(th);
|
2430
|
+
$__default['default'].each(header.find('th'), function (i, th) {
|
2431
|
+
var $th = $__default['default'](th);
|
2297
2432
|
|
2298
2433
|
if ($th.data('field') === column.field) {
|
2299
2434
|
$th.find('.fht-cell').append(html.join(''));
|
@@ -2331,11 +2466,11 @@
|
|
2331
2466
|
return;
|
2332
2467
|
}
|
2333
2468
|
|
2334
|
-
if (
|
2469
|
+
if ($__default['default'].inArray(keyCode, [37, 38, 39, 40]) > -1) {
|
2335
2470
|
return;
|
2336
2471
|
}
|
2337
2472
|
|
2338
|
-
var $currentTarget = $(currentTarget);
|
2473
|
+
var $currentTarget = $__default['default'](currentTarget);
|
2339
2474
|
|
2340
2475
|
if ($currentTarget.is(':checkbox') || $currentTarget.is(':radio')) {
|
2341
2476
|
return;
|
@@ -2353,7 +2488,7 @@
|
|
2353
2488
|
var currentTarget = _ref5.currentTarget,
|
2354
2489
|
keyCode = _ref5.keyCode;
|
2355
2490
|
syncControls(that);
|
2356
|
-
var $select = $(currentTarget);
|
2491
|
+
var $select = $__default['default'](currentTarget);
|
2357
2492
|
var value = $select.val();
|
2358
2493
|
|
2359
2494
|
if (value && value.length > 0 && value.trim()) {
|
@@ -2374,7 +2509,7 @@
|
|
2374
2509
|
header.off('mouseup', 'input:not([type=radio])').on('mouseup', 'input:not([type=radio])', function (_ref6) {
|
2375
2510
|
var currentTarget = _ref6.currentTarget,
|
2376
2511
|
keyCode = _ref6.keyCode;
|
2377
|
-
var $input = $(currentTarget);
|
2512
|
+
var $input = $__default['default'](currentTarget);
|
2378
2513
|
var oldValue = $input.val();
|
2379
2514
|
|
2380
2515
|
if (oldValue === '') {
|
@@ -2410,7 +2545,7 @@
|
|
2410
2545
|
});
|
2411
2546
|
|
2412
2547
|
if (header.find('.date-filter-control').length > 0) {
|
2413
|
-
|
2548
|
+
$__default['default'].each(that.columns, function (i, _ref8) {
|
2414
2549
|
var filterDefault = _ref8.filterDefault,
|
2415
2550
|
filterControl = _ref8.filterControl,
|
2416
2551
|
field = _ref8.field,
|
@@ -2474,10 +2609,10 @@
|
|
2474
2609
|
if (that.options.height) {
|
2475
2610
|
var controlsTableHeader = that.$tableHeader.find(searchControls);
|
2476
2611
|
that.$header.find(searchControls).each(function (_, control) {
|
2477
|
-
var $control = $(control);
|
2612
|
+
var $control = $__default['default'](control);
|
2478
2613
|
var controlClass = getElementClass($control);
|
2479
2614
|
var foundControl = controlsTableHeader.filter(function (_, ele) {
|
2480
|
-
var eleClass = getElementClass($(ele));
|
2615
|
+
var eleClass = getElementClass($__default['default'](ele));
|
2481
2616
|
return controlClass === eleClass;
|
2482
2617
|
});
|
2483
2618
|
|
@@ -2537,7 +2672,7 @@
|
|
2537
2672
|
sortSelectControl(selectControl, filterOrderBy);
|
2538
2673
|
},
|
2539
2674
|
url: function url(filterDataSource, selectControl, filterOrderBy, selected) {
|
2540
|
-
|
2675
|
+
$__default['default'].ajax({
|
2541
2676
|
url: filterDataSource,
|
2542
2677
|
dataType: 'json',
|
2543
2678
|
success: function success(data) {
|
@@ -2561,8 +2696,8 @@
|
|
2561
2696
|
}
|
2562
2697
|
};
|
2563
2698
|
|
2564
|
-
var Utils$1 =
|
2565
|
-
|
2699
|
+
var Utils$1 = $__default['default'].fn.bootstrapTable.utils;
|
2700
|
+
$__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
|
2566
2701
|
filterControl: false,
|
2567
2702
|
filterControlVisible: true,
|
2568
2703
|
// eslint-disable-next-line no-unused-vars
|
@@ -2591,7 +2726,7 @@
|
|
2591
2726
|
// internal variables
|
2592
2727
|
valuesFilterControl: []
|
2593
2728
|
});
|
2594
|
-
|
2729
|
+
$__default['default'].extend($__default['default'].fn.bootstrapTable.columnDefaults, {
|
2595
2730
|
filterControl: undefined,
|
2596
2731
|
// input, select, datepicker
|
2597
2732
|
filterDataCollector: undefined,
|
@@ -2604,24 +2739,24 @@
|
|
2604
2739
|
filterOrderBy: 'asc' // asc || desc
|
2605
2740
|
|
2606
2741
|
});
|
2607
|
-
|
2742
|
+
$__default['default'].extend($__default['default'].fn.bootstrapTable.Constructor.EVENTS, {
|
2608
2743
|
'column-search.bs.table': 'onColumnSearch',
|
2609
2744
|
'created-controls.bs.table': 'onCreatedControls'
|
2610
2745
|
});
|
2611
|
-
|
2746
|
+
$__default['default'].extend($__default['default'].fn.bootstrapTable.defaults.icons, {
|
2612
2747
|
clear: {
|
2613
2748
|
bootstrap3: 'glyphicon-trash icon-clear'
|
2614
|
-
}[
|
2749
|
+
}[$__default['default'].fn.bootstrapTable.theme] || 'fa-trash',
|
2615
2750
|
filterControlSwitchHide: {
|
2616
2751
|
bootstrap3: 'glyphicon-zoom-out icon-zoom-out',
|
2617
2752
|
materialize: 'zoom_out'
|
2618
|
-
}[
|
2753
|
+
}[$__default['default'].fn.bootstrapTable.theme] || 'fa-search-minus',
|
2619
2754
|
filterControlSwitchShow: {
|
2620
2755
|
bootstrap3: 'glyphicon-zoom-in icon-zoom-in',
|
2621
2756
|
materialize: 'zoom_in'
|
2622
|
-
}[
|
2757
|
+
}[$__default['default'].fn.bootstrapTable.theme] || 'fa-search-plus'
|
2623
2758
|
});
|
2624
|
-
|
2759
|
+
$__default['default'].extend($__default['default'].fn.bootstrapTable.locales, {
|
2625
2760
|
formatFilterControlSwitch: function formatFilterControlSwitch() {
|
2626
2761
|
return 'Hide/Show controls';
|
2627
2762
|
},
|
@@ -2632,25 +2767,25 @@
|
|
2632
2767
|
return 'Show controls';
|
2633
2768
|
}
|
2634
2769
|
});
|
2635
|
-
|
2636
|
-
|
2770
|
+
$__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, $__default['default'].fn.bootstrapTable.locales);
|
2771
|
+
$__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
|
2637
2772
|
formatClearSearch: function formatClearSearch() {
|
2638
2773
|
return 'Clear filters';
|
2639
2774
|
}
|
2640
2775
|
});
|
2641
|
-
|
2642
|
-
|
2643
|
-
|
2776
|
+
$__default['default'].fn.bootstrapTable.methods.push('triggerSearch');
|
2777
|
+
$__default['default'].fn.bootstrapTable.methods.push('clearFilterControl');
|
2778
|
+
$__default['default'].fn.bootstrapTable.methods.push('toggleFilterControl');
|
2644
2779
|
|
2645
|
-
|
2646
|
-
/*#__PURE__*/
|
2647
|
-
function (_$$BootstrapTable) {
|
2780
|
+
$__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
2648
2781
|
_inherits(_class, _$$BootstrapTable);
|
2649
2782
|
|
2783
|
+
var _super = _createSuper(_class);
|
2784
|
+
|
2650
2785
|
function _class() {
|
2651
2786
|
_classCallCheck(this, _class);
|
2652
2787
|
|
2653
|
-
return
|
2788
|
+
return _super.apply(this, arguments);
|
2654
2789
|
}
|
2655
2790
|
|
2656
2791
|
_createClass(_class, [{
|
@@ -2671,7 +2806,7 @@
|
|
2671
2806
|
|
2672
2807
|
var $controlContainer = getControlContainer(_this);
|
2673
2808
|
|
2674
|
-
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) {
|
2675
2810
|
return;
|
2676
2811
|
}
|
2677
2812
|
|
@@ -2720,7 +2855,7 @@
|
|
2720
2855
|
var _this2 = this;
|
2721
2856
|
|
2722
2857
|
var that = this;
|
2723
|
-
var fp =
|
2858
|
+
var fp = $__default['default'].isEmptyObject(that.filterColumnsPartial) ? null : that.filterColumnsPartial;
|
2724
2859
|
|
2725
2860
|
_get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
|
2726
2861
|
|
@@ -2747,10 +2882,10 @@
|
|
2747
2882
|
} else {
|
2748
2883
|
// Fix #142: search use formatted data
|
2749
2884
|
if (thisColumn && thisColumn.searchFormatter) {
|
2750
|
-
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);
|
2751
2886
|
}
|
2752
2887
|
|
2753
|
-
if (
|
2888
|
+
if ($__default['default'].inArray(key, that.header.fields) !== -1) {
|
2754
2889
|
if (value === undefined || value === null) {
|
2755
2890
|
tmpItemIsExpected = false;
|
2756
2891
|
} else if (_typeof(value) === 'object') {
|
@@ -2860,16 +2995,16 @@
|
|
2860
2995
|
var currentTarget = _ref2.currentTarget,
|
2861
2996
|
keyCode = _ref2.keyCode;
|
2862
2997
|
|
2863
|
-
if (
|
2998
|
+
if ($__default['default'].inArray(keyCode, [37, 38, 39, 40]) > -1) {
|
2864
2999
|
return;
|
2865
3000
|
}
|
2866
3001
|
|
2867
3002
|
copyValues(this);
|
2868
|
-
var text =
|
2869
|
-
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');
|
2870
3005
|
this.trigger('column-search', $field, text);
|
2871
3006
|
|
2872
|
-
if (
|
3007
|
+
if ($__default['default'].isEmptyObject(this.filterColumnsPartial)) {
|
2873
3008
|
this.filterColumnsPartial = {};
|
2874
3009
|
}
|
2875
3010
|
|
@@ -2927,11 +3062,11 @@
|
|
2927
3062
|
var search = Utils$1.getSearchInput(this);
|
2928
3063
|
var hasValues = false;
|
2929
3064
|
var timeoutId = 0;
|
2930
|
-
|
3065
|
+
$__default['default'].each(that.options.valuesFilterControl, function (i, item) {
|
2931
3066
|
hasValues = hasValues ? true : item.value !== '';
|
2932
3067
|
item.value = '';
|
2933
3068
|
});
|
2934
|
-
|
3069
|
+
$__default['default'].each(that.options.filterControls, function (i, item) {
|
2935
3070
|
item.text = '';
|
2936
3071
|
});
|
2937
3072
|
setValues(that); // clear cookies once the filters are clean
|
@@ -2939,7 +3074,7 @@
|
|
2939
3074
|
clearTimeout(timeoutId);
|
2940
3075
|
timeoutId = setTimeout(function () {
|
2941
3076
|
if (cookies && cookies.length > 0) {
|
2942
|
-
|
3077
|
+
$__default['default'].each(cookies, function (i, item) {
|
2943
3078
|
if (that.deleteCookie !== undefined) {
|
2944
3079
|
that.deleteCookie(item);
|
2945
3080
|
}
|
@@ -2956,7 +3091,7 @@
|
|
2956
3091
|
|
2957
3092
|
if (controls.length > 0) {
|
2958
3093
|
this.filterColumnsPartial = {};
|
2959
|
-
$(controls[0]).trigger(controls[0].tagName === 'INPUT' ? 'keyup' : 'change', {
|
3094
|
+
$__default['default'](controls[0]).trigger(controls[0].tagName === 'INPUT' ? 'keyup' : 'change', {
|
2960
3095
|
keyCode: 13
|
2961
3096
|
});
|
2962
3097
|
} else {
|
@@ -2969,14 +3104,14 @@
|
|
2969
3104
|
|
2970
3105
|
|
2971
3106
|
if (that.options.sortName !== table.data('sortName') || that.options.sortOrder !== table.data('sortOrder')) {
|
2972
|
-
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')));
|
2973
3108
|
|
2974
3109
|
if (sorter.length > 0) {
|
2975
3110
|
that.onSort({
|
2976
3111
|
type: 'keypress',
|
2977
3112
|
currentTarget: sorter
|
2978
3113
|
});
|
2979
|
-
$(sorter).find('.sortable').trigger('click');
|
3114
|
+
$__default['default'](sorter).find('.sortable').trigger('click');
|
2980
3115
|
}
|
2981
3116
|
}
|
2982
3117
|
}
|
@@ -2986,7 +3121,7 @@
|
|
2986
3121
|
value: function triggerSearch() {
|
2987
3122
|
var searchControls = getSearchControls(this);
|
2988
3123
|
searchControls.each(function () {
|
2989
|
-
var el = $(this);
|
3124
|
+
var el = $__default['default'](this);
|
2990
3125
|
|
2991
3126
|
if (el.is('select')) {
|
2992
3127
|
el.change();
|
@@ -3028,6 +3163,6 @@
|
|
3028
3163
|
}]);
|
3029
3164
|
|
3030
3165
|
return _class;
|
3031
|
-
}(
|
3166
|
+
}($__default['default'].BootstrapTable);
|
3032
3167
|
|
3033
3168
|
})));
|