bootstrap-table-rails 1.18.1 → 1.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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(exports, require('jquery')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'jquery'], factory) :
|
|
4
|
-
(global = global || self, factory(global.BootstrapTable = {}, global.jQuery));
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BootstrapTable = {}, global.jQuery));
|
|
5
5
|
}(this, (function (exports, $) { '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
|
|
@@ -948,11 +1014,11 @@
|
|
|
948
1014
|
var nativeJoin = [].join;
|
|
949
1015
|
|
|
950
1016
|
var ES3_STRINGS = indexedObject != Object;
|
|
951
|
-
var
|
|
1017
|
+
var STRICT_METHOD$2 = arrayMethodIsStrict('join', ',');
|
|
952
1018
|
|
|
953
1019
|
// `Array.prototype.join` method
|
|
954
1020
|
// https://tc39.github.io/ecma262/#sec-array.prototype.join
|
|
955
|
-
_export({ target: 'Array', proto: true, forced: ES3_STRINGS ||
|
|
1021
|
+
_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$2 }, {
|
|
956
1022
|
join: function join(separator) {
|
|
957
1023
|
return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|
958
1024
|
}
|
|
@@ -970,9 +1036,9 @@
|
|
|
970
1036
|
test.sort(null);
|
|
971
1037
|
});
|
|
972
1038
|
// Old WebKit
|
|
973
|
-
var
|
|
1039
|
+
var STRICT_METHOD$3 = arrayMethodIsStrict('sort');
|
|
974
1040
|
|
|
975
|
-
var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL ||
|
|
1041
|
+
var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$3;
|
|
976
1042
|
|
|
977
1043
|
// `Array.prototype.sort` method
|
|
978
1044
|
// https://tc39.github.io/ecma262/#sec-array.prototype.sort
|
|
@@ -1183,6 +1249,14 @@
|
|
|
1183
1249
|
}, { unsafe: true });
|
|
1184
1250
|
}
|
|
1185
1251
|
|
|
1252
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1186
1260
|
var SPECIES$2 = wellKnownSymbol('species');
|
|
1187
1261
|
|
|
1188
1262
|
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
@@ -1204,6 +1278,15 @@
|
|
|
1204
1278
|
return 'a'.replace(/./, '$0') === '$0';
|
|
1205
1279
|
})();
|
|
1206
1280
|
|
|
1281
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
1282
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
1283
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
1284
|
+
if (/./[REPLACE]) {
|
|
1285
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
1286
|
+
}
|
|
1287
|
+
return false;
|
|
1288
|
+
})();
|
|
1289
|
+
|
|
1207
1290
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
1208
1291
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
1209
1292
|
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
@@ -1251,7 +1334,11 @@
|
|
|
1251
1334
|
if (
|
|
1252
1335
|
!DELEGATES_TO_SYMBOL ||
|
|
1253
1336
|
!DELEGATES_TO_EXEC ||
|
|
1254
|
-
(KEY === 'replace' && !(
|
|
1337
|
+
(KEY === 'replace' && !(
|
|
1338
|
+
REPLACE_SUPPORTS_NAMED_GROUPS &&
|
|
1339
|
+
REPLACE_KEEPS_$0 &&
|
|
1340
|
+
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
|
1341
|
+
)) ||
|
|
1255
1342
|
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
|
1256
1343
|
) {
|
|
1257
1344
|
var nativeRegExpMethod = /./[SYMBOL];
|
|
@@ -1266,7 +1353,10 @@
|
|
|
1266
1353
|
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
|
1267
1354
|
}
|
|
1268
1355
|
return { done: false };
|
|
1269
|
-
}, {
|
|
1356
|
+
}, {
|
|
1357
|
+
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
|
1358
|
+
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
|
1359
|
+
});
|
|
1270
1360
|
var stringMethod = methods[0];
|
|
1271
1361
|
var regexMethod = methods[1];
|
|
1272
1362
|
|
|
@@ -1385,6 +1475,10 @@
|
|
|
1385
1475
|
|
|
1386
1476
|
// @@replace logic
|
|
1387
1477
|
fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
|
1478
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
|
1479
|
+
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
|
1480
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
1481
|
+
|
|
1388
1482
|
return [
|
|
1389
1483
|
// `String.prototype.replace` method
|
|
1390
1484
|
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
@@ -1398,7 +1492,10 @@
|
|
|
1398
1492
|
// `RegExp.prototype[@@replace]` method
|
|
1399
1493
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
1400
1494
|
function (regexp, replaceValue) {
|
|
1401
|
-
if (
|
|
1495
|
+
if (
|
|
1496
|
+
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
|
|
1497
|
+
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
|
|
1498
|
+
) {
|
|
1402
1499
|
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
|
1403
1500
|
if (res.done) return res.value;
|
|
1404
1501
|
}
|
|
@@ -1668,7 +1765,7 @@
|
|
|
1668
1765
|
|
|
1669
1766
|
// check that a method works with the correct list
|
|
1670
1767
|
// of whitespaces and has a correct name
|
|
1671
|
-
var
|
|
1768
|
+
var stringTrimForced = function (METHOD_NAME) {
|
|
1672
1769
|
return fails(function () {
|
|
1673
1770
|
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
|
|
1674
1771
|
});
|
|
@@ -1679,7 +1776,7 @@
|
|
|
1679
1776
|
|
|
1680
1777
|
// `String.prototype.trim` method
|
|
1681
1778
|
// https://tc39.github.io/ecma262/#sec-string.prototype.trim
|
|
1682
|
-
_export({ target: 'String', proto: true, forced:
|
|
1779
|
+
_export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, {
|
|
1683
1780
|
trim: function trim() {
|
|
1684
1781
|
return $trim(this);
|
|
1685
1782
|
}
|
|
@@ -1721,15 +1818,6 @@
|
|
|
1721
1818
|
TouchList: 0
|
|
1722
1819
|
};
|
|
1723
1820
|
|
|
1724
|
-
var $forEach = arrayIteration.forEach;
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
// `Array.prototype.forEach` method implementation
|
|
1728
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
|
|
1729
|
-
var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
|
|
1730
|
-
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1731
|
-
} : [].forEach;
|
|
1732
|
-
|
|
1733
1821
|
for (var COLLECTION_NAME in domIterables) {
|
|
1734
1822
|
var Collection = global_1[COLLECTION_NAME];
|
|
1735
1823
|
var CollectionPrototype = Collection && Collection.prototype;
|
|
@@ -1742,6 +1830,8 @@
|
|
|
1742
1830
|
}
|
|
1743
1831
|
|
|
1744
1832
|
function _typeof(obj) {
|
|
1833
|
+
"@babel/helpers - typeof";
|
|
1834
|
+
|
|
1745
1835
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
1746
1836
|
_typeof = function (obj) {
|
|
1747
1837
|
return typeof obj;
|
|
@@ -1755,14 +1845,14 @@
|
|
|
1755
1845
|
return _typeof(obj);
|
|
1756
1846
|
}
|
|
1757
1847
|
|
|
1758
|
-
var Utils =
|
|
1848
|
+
var Utils = $__default['default'].fn.bootstrapTable.utils;
|
|
1759
1849
|
var searchControls = 'select, input:not([type="checkbox"]):not([type="radio"])';
|
|
1760
1850
|
function getOptionsFromSelectControl(selectControl) {
|
|
1761
1851
|
return selectControl.get(selectControl.length - 1).options;
|
|
1762
1852
|
}
|
|
1763
1853
|
function getControlContainer(that) {
|
|
1764
1854
|
if (that.options.filterControlContainer) {
|
|
1765
|
-
return $("".concat(that.options.filterControlContainer));
|
|
1855
|
+
return $__default['default']("".concat(that.options.filterControlContainer));
|
|
1766
1856
|
}
|
|
1767
1857
|
|
|
1768
1858
|
return that.$header;
|
|
@@ -1798,10 +1888,10 @@
|
|
|
1798
1888
|
}
|
|
1799
1889
|
function addOptionToSelectControl(selectControl, _value, text, selected) {
|
|
1800
1890
|
var value = _value === undefined || _value === null ? '' : _value.toString().trim();
|
|
1801
|
-
var $selectControl = $(selectControl.get(selectControl.length - 1));
|
|
1891
|
+
var $selectControl = $__default['default'](selectControl.get(selectControl.length - 1));
|
|
1802
1892
|
|
|
1803
1893
|
if (!existOptionInSelectControl(selectControl, value)) {
|
|
1804
|
-
var option = $("<option value=\"".concat(value, "\">").concat(text, "</option>"));
|
|
1894
|
+
var option = $__default['default']("<option value=\"".concat(value, "\">").concat(text, "</option>"));
|
|
1805
1895
|
|
|
1806
1896
|
if (value === selected) {
|
|
1807
1897
|
option.attr('selected', true);
|
|
@@ -1811,7 +1901,7 @@
|
|
|
1811
1901
|
}
|
|
1812
1902
|
}
|
|
1813
1903
|
function sortSelectControl(selectControl, orderBy) {
|
|
1814
|
-
var $selectControl = $(selectControl.get(selectControl.length - 1));
|
|
1904
|
+
var $selectControl = $__default['default'](selectControl.get(selectControl.length - 1));
|
|
1815
1905
|
var $opts = $selectControl.find('option:gt(0)');
|
|
1816
1906
|
|
|
1817
1907
|
if (orderBy !== 'server') {
|
|
@@ -1832,7 +1922,7 @@
|
|
|
1832
1922
|
}
|
|
1833
1923
|
function getCursorPosition(el) {
|
|
1834
1924
|
if (Utils.isIEBrowser()) {
|
|
1835
|
-
if ($(el).is('input[type=text]')) {
|
|
1925
|
+
if ($__default['default'](el).is('input[type=text]')) {
|
|
1836
1926
|
var pos = 0;
|
|
1837
1927
|
|
|
1838
1928
|
if ('selectionStart' in el) {
|
|
@@ -1854,17 +1944,17 @@
|
|
|
1854
1944
|
return -1;
|
|
1855
1945
|
}
|
|
1856
1946
|
function setCursorPosition(el) {
|
|
1857
|
-
$(el).val(el.value);
|
|
1947
|
+
$__default['default'](el).val(el.value);
|
|
1858
1948
|
}
|
|
1859
1949
|
function copyValues(that) {
|
|
1860
1950
|
var searchControls = getSearchControls(that);
|
|
1861
1951
|
that.options.valuesFilterControl = [];
|
|
1862
1952
|
searchControls.each(function () {
|
|
1863
|
-
var $field = $(this);
|
|
1953
|
+
var $field = $__default['default'](this);
|
|
1864
1954
|
|
|
1865
1955
|
if (that.options.height) {
|
|
1866
1956
|
var fieldClass = getElementClass($field);
|
|
1867
|
-
$field = $(".fixed-table-header .".concat(fieldClass));
|
|
1957
|
+
$field = $__default['default'](".fixed-table-header .".concat(fieldClass));
|
|
1868
1958
|
}
|
|
1869
1959
|
|
|
1870
1960
|
that.options.valuesFilterControl.push({
|
|
@@ -1884,7 +1974,7 @@
|
|
|
1884
1974
|
// Callback to apply after settings fields values
|
|
1885
1975
|
var fieldToFocusCallback = null;
|
|
1886
1976
|
searchControls.each(function (i, el) {
|
|
1887
|
-
var $this = $(el);
|
|
1977
|
+
var $this = $__default['default'](el);
|
|
1888
1978
|
field = $this.closest('[data-field]').data('field');
|
|
1889
1979
|
result = that.options.valuesFilterControl.filter(function (valueObj) {
|
|
1890
1980
|
return valueObj.field === field;
|
|
@@ -1923,14 +2013,14 @@
|
|
|
1923
2013
|
var foundLocalStorage = localStorage;
|
|
1924
2014
|
|
|
1925
2015
|
if (foundCookies) {
|
|
1926
|
-
|
|
2016
|
+
$__default['default'].each(foundCookies, function (i, _cookie) {
|
|
1927
2017
|
var cookie = _cookie;
|
|
1928
2018
|
|
|
1929
2019
|
if (/./.test(cookie)) {
|
|
1930
2020
|
cookie = cookie.split('.').pop();
|
|
1931
2021
|
}
|
|
1932
2022
|
|
|
1933
|
-
if (
|
|
2023
|
+
if ($__default['default'].inArray(cookie, cookies) === -1) {
|
|
1934
2024
|
cookies.push(cookie);
|
|
1935
2025
|
}
|
|
1936
2026
|
});
|
|
@@ -1971,7 +2061,7 @@
|
|
|
1971
2061
|
function initFilterSelectControls(that) {
|
|
1972
2062
|
var data = that.data;
|
|
1973
2063
|
var z = that.options.pagination ? that.options.sidePagination === 'server' ? that.pageTo : that.options.totalRows : that.pageTo;
|
|
1974
|
-
|
|
2064
|
+
$__default['default'].each(that.header.fields, function (j, field) {
|
|
1975
2065
|
var column = that.columns[that.fieldsColumnsIndex[field]];
|
|
1976
2066
|
var selectControl = getControlContainer(that).find("select.bootstrap-table-filter-control-".concat(escapeID(column.field)));
|
|
1977
2067
|
|
|
@@ -1985,7 +2075,7 @@
|
|
|
1985
2075
|
|
|
1986
2076
|
for (var i = 0; i < z; i++) {
|
|
1987
2077
|
// Added a new value
|
|
1988
|
-
var fieldValue = data[i]
|
|
2078
|
+
var fieldValue = Utils.getItemField(data[i], field, false);
|
|
1989
2079
|
var formatter = that.options.editable && column.editable ? column._formatter : that.header.formatters[j];
|
|
1990
2080
|
var formattedValue = Utils.calculateObjectValue(that.header, formatter, [fieldValue, data[i], i], fieldValue);
|
|
1991
2081
|
|
|
@@ -2034,7 +2124,7 @@
|
|
|
2034
2124
|
function createControls(that, header) {
|
|
2035
2125
|
var addedFilterControl = false;
|
|
2036
2126
|
var html;
|
|
2037
|
-
|
|
2127
|
+
$__default['default'].each(that.columns, function (_, column) {
|
|
2038
2128
|
html = [];
|
|
2039
2129
|
|
|
2040
2130
|
if (!column.visible) {
|
|
@@ -2044,9 +2134,9 @@
|
|
|
2044
2134
|
if (!column.filterControl && !that.options.filterControlContainer) {
|
|
2045
2135
|
html.push('<div class="no-filter-control"></div>');
|
|
2046
2136
|
} else if (that.options.filterControlContainer) {
|
|
2047
|
-
var $filterControls = $(".bootstrap-table-filter-control-".concat(column.field));
|
|
2048
|
-
|
|
2049
|
-
var $filterControl = $(filterControl);
|
|
2137
|
+
var $filterControls = $__default['default'](".bootstrap-table-filter-control-".concat(column.field));
|
|
2138
|
+
$__default['default'].each($filterControls, function (_, filterControl) {
|
|
2139
|
+
var $filterControl = $__default['default'](filterControl);
|
|
2050
2140
|
|
|
2051
2141
|
if (!$filterControl.is('[type=radio]')) {
|
|
2052
2142
|
var placeholder = column.filterControlPlaceholder ? column.filterControlPlaceholder : '';
|
|
@@ -2067,15 +2157,15 @@
|
|
|
2067
2157
|
}
|
|
2068
2158
|
|
|
2069
2159
|
if (!column.filterControl && '' !== column.filterDefault && 'undefined' !== typeof column.filterDefault) {
|
|
2070
|
-
if (
|
|
2160
|
+
if ($__default['default'].isEmptyObject(that.filterColumnsPartial)) {
|
|
2071
2161
|
that.filterColumnsPartial = {};
|
|
2072
2162
|
}
|
|
2073
2163
|
|
|
2074
2164
|
that.filterColumnsPartial[column.field] = column.filterDefault;
|
|
2075
2165
|
}
|
|
2076
2166
|
|
|
2077
|
-
|
|
2078
|
-
var $th = $(th);
|
|
2167
|
+
$__default['default'].each(header.find('th'), function (i, th) {
|
|
2168
|
+
var $th = $__default['default'](th);
|
|
2079
2169
|
|
|
2080
2170
|
if ($th.data('field') === column.field) {
|
|
2081
2171
|
$th.find('.fht-cell').append(html.join(''));
|
|
@@ -2113,11 +2203,11 @@
|
|
|
2113
2203
|
return;
|
|
2114
2204
|
}
|
|
2115
2205
|
|
|
2116
|
-
if (
|
|
2206
|
+
if ($__default['default'].inArray(keyCode, [37, 38, 39, 40]) > -1) {
|
|
2117
2207
|
return;
|
|
2118
2208
|
}
|
|
2119
2209
|
|
|
2120
|
-
var $currentTarget = $(currentTarget);
|
|
2210
|
+
var $currentTarget = $__default['default'](currentTarget);
|
|
2121
2211
|
|
|
2122
2212
|
if ($currentTarget.is(':checkbox') || $currentTarget.is(':radio')) {
|
|
2123
2213
|
return;
|
|
@@ -2135,7 +2225,7 @@
|
|
|
2135
2225
|
var currentTarget = _ref5.currentTarget,
|
|
2136
2226
|
keyCode = _ref5.keyCode;
|
|
2137
2227
|
syncControls(that);
|
|
2138
|
-
var $select = $(currentTarget);
|
|
2228
|
+
var $select = $__default['default'](currentTarget);
|
|
2139
2229
|
var value = $select.val();
|
|
2140
2230
|
|
|
2141
2231
|
if (value && value.length > 0 && value.trim()) {
|
|
@@ -2156,7 +2246,7 @@
|
|
|
2156
2246
|
header.off('mouseup', 'input:not([type=radio])').on('mouseup', 'input:not([type=radio])', function (_ref6) {
|
|
2157
2247
|
var currentTarget = _ref6.currentTarget,
|
|
2158
2248
|
keyCode = _ref6.keyCode;
|
|
2159
|
-
var $input = $(currentTarget);
|
|
2249
|
+
var $input = $__default['default'](currentTarget);
|
|
2160
2250
|
var oldValue = $input.val();
|
|
2161
2251
|
|
|
2162
2252
|
if (oldValue === '') {
|
|
@@ -2192,7 +2282,7 @@
|
|
|
2192
2282
|
});
|
|
2193
2283
|
|
|
2194
2284
|
if (header.find('.date-filter-control').length > 0) {
|
|
2195
|
-
|
|
2285
|
+
$__default['default'].each(that.columns, function (i, _ref8) {
|
|
2196
2286
|
var filterDefault = _ref8.filterDefault,
|
|
2197
2287
|
filterControl = _ref8.filterControl,
|
|
2198
2288
|
field = _ref8.field,
|
|
@@ -2256,10 +2346,10 @@
|
|
|
2256
2346
|
if (that.options.height) {
|
|
2257
2347
|
var controlsTableHeader = that.$tableHeader.find(searchControls);
|
|
2258
2348
|
that.$header.find(searchControls).each(function (_, control) {
|
|
2259
|
-
var $control = $(control);
|
|
2349
|
+
var $control = $__default['default'](control);
|
|
2260
2350
|
var controlClass = getElementClass($control);
|
|
2261
2351
|
var foundControl = controlsTableHeader.filter(function (_, ele) {
|
|
2262
|
-
var eleClass = getElementClass($(ele));
|
|
2352
|
+
var eleClass = getElementClass($__default['default'](ele));
|
|
2263
2353
|
return controlClass === eleClass;
|
|
2264
2354
|
});
|
|
2265
2355
|
|
|
@@ -2319,7 +2409,7 @@
|
|
|
2319
2409
|
sortSelectControl(selectControl, filterOrderBy);
|
|
2320
2410
|
},
|
|
2321
2411
|
url: function url(filterDataSource, selectControl, filterOrderBy, selected) {
|
|
2322
|
-
|
|
2412
|
+
$__default['default'].ajax({
|
|
2323
2413
|
url: filterDataSource,
|
|
2324
2414
|
dataType: 'json',
|
|
2325
2415
|
success: function success(data) {
|