bootstrap-table-rails 1.20.0 → 1.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +82 -61
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +82 -61
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +6 -6
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +217 -143
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +114 -87
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +84 -64
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +111 -75
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +84 -64
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +84 -64
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +84 -63
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +93 -68
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +426 -367
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +104 -72
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +80 -60
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +85 -65
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +83 -62
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +87 -61
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +105 -73
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +79 -59
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +76 -57
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +92 -66
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +79 -59
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +80 -57
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +79 -59
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +96 -69
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +76 -57
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +75 -56
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +85 -59
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +85 -59
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +85 -59
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +85 -59
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +5 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +85 -59
- metadata +1 -2
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
@@ -187,7 +187,7 @@
|
|
187
187
|
|
188
188
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
189
189
|
var global_1 =
|
190
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
190
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
191
191
|
check(typeof globalThis == 'object' && globalThis) ||
|
192
192
|
check(typeof window == 'object' && window) ||
|
193
193
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -206,11 +206,12 @@
|
|
206
206
|
|
207
207
|
// Detect IE8's incomplete defineProperty implementation
|
208
208
|
var descriptors = !fails(function () {
|
209
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
209
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
210
210
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
211
211
|
});
|
212
212
|
|
213
213
|
var functionBindNative = !fails(function () {
|
214
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
214
215
|
var test = (function () { /* empty */ }).bind();
|
215
216
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
216
217
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
@@ -223,7 +224,7 @@
|
|
223
224
|
};
|
224
225
|
|
225
226
|
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
226
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
227
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
227
228
|
var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
|
228
229
|
|
229
230
|
// Nashorn ~ JDK8 bug
|
@@ -345,11 +346,11 @@
|
|
345
346
|
|
346
347
|
var engineV8Version = version;
|
347
348
|
|
348
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
349
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
349
350
|
|
350
351
|
|
351
352
|
|
352
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
353
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
353
354
|
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
354
355
|
var symbol = Symbol();
|
355
356
|
// Chrome 38 Symbol has incorrect toString conversion
|
@@ -359,7 +360,7 @@
|
|
359
360
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
360
361
|
});
|
361
362
|
|
362
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
363
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
363
364
|
|
364
365
|
|
365
366
|
var useSymbolAsUid = nativeSymbol
|
@@ -412,7 +413,7 @@
|
|
412
413
|
throw TypeError$c("Can't convert object to primitive value");
|
413
414
|
};
|
414
415
|
|
415
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
416
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
416
417
|
var defineProperty$5 = Object.defineProperty;
|
417
418
|
|
418
419
|
var setGlobal = function (key, value) {
|
@@ -432,10 +433,10 @@
|
|
432
433
|
(module.exports = function (key, value) {
|
433
434
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
434
435
|
})('versions', []).push({
|
435
|
-
version: '3.
|
436
|
+
version: '3.22.4',
|
436
437
|
mode: 'global',
|
437
438
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
438
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
439
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
439
440
|
source: 'https://github.com/zloirock/core-js'
|
440
441
|
});
|
441
442
|
});
|
@@ -452,6 +453,7 @@
|
|
452
453
|
|
453
454
|
// `HasOwnProperty` abstract operation
|
454
455
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
456
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
455
457
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
456
458
|
return hasOwnProperty(toObject(it), key);
|
457
459
|
};
|
@@ -518,13 +520,13 @@
|
|
518
520
|
|
519
521
|
// Thanks to IE8 for its funny defineProperty
|
520
522
|
var ie8DomDefine = !descriptors && !fails(function () {
|
521
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
523
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
522
524
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
523
525
|
get: function () { return 7; }
|
524
526
|
}).a != 7;
|
525
527
|
});
|
526
528
|
|
527
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
529
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
528
530
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
529
531
|
|
530
532
|
// `Object.getOwnPropertyDescriptor` method
|
@@ -545,7 +547,7 @@
|
|
545
547
|
// V8 ~ Chrome 36-
|
546
548
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
547
549
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
548
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
550
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
549
551
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
550
552
|
value: 42,
|
551
553
|
writable: false
|
@@ -562,9 +564,9 @@
|
|
562
564
|
};
|
563
565
|
|
564
566
|
var TypeError$9 = global_1.TypeError;
|
565
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
567
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
566
568
|
var $defineProperty = Object.defineProperty;
|
567
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
569
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
568
570
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
569
571
|
var ENUMERABLE = 'enumerable';
|
570
572
|
var CONFIGURABLE$1 = 'configurable';
|
@@ -610,6 +612,21 @@
|
|
610
612
|
return object;
|
611
613
|
};
|
612
614
|
|
615
|
+
var FunctionPrototype$1 = Function.prototype;
|
616
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
617
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
618
|
+
|
619
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
620
|
+
// additional protection from minified / mangled / dropped function names
|
621
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
622
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
623
|
+
|
624
|
+
var functionName = {
|
625
|
+
EXISTS: EXISTS,
|
626
|
+
PROPER: PROPER,
|
627
|
+
CONFIGURABLE: CONFIGURABLE
|
628
|
+
};
|
629
|
+
|
613
630
|
var functionToString = functionUncurryThis(Function.toString);
|
614
631
|
|
615
632
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
@@ -693,50 +710,56 @@
|
|
693
710
|
getterFor: getterFor
|
694
711
|
};
|
695
712
|
|
696
|
-
var
|
697
|
-
|
698
|
-
var
|
699
|
-
|
700
|
-
var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
701
|
-
// additional protection from minified / mangled / dropped function names
|
702
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
703
|
-
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
713
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
714
|
+
var defineProperty = objectDefineProperty.f;
|
715
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
704
716
|
|
705
|
-
var functionName = {
|
706
|
-
EXISTS: EXISTS,
|
707
|
-
PROPER: PROPER,
|
708
|
-
CONFIGURABLE: CONFIGURABLE
|
709
|
-
};
|
710
717
|
|
711
|
-
var redefine = createCommonjsModule(function (module) {
|
712
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
713
718
|
|
714
|
-
var getInternalState = internalState.get;
|
715
719
|
var enforceInternalState = internalState.enforce;
|
720
|
+
var getInternalState = internalState.get;
|
721
|
+
|
722
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
723
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
724
|
+
});
|
725
|
+
|
716
726
|
var TEMPLATE = String(String).split('String');
|
717
727
|
|
718
|
-
|
728
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
729
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
730
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
731
|
+
}
|
732
|
+
if (options && options.getter) name = 'get ' + name;
|
733
|
+
if (options && options.setter) name = 'set ' + name;
|
734
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
735
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
736
|
+
}
|
737
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
738
|
+
defineProperty(value, 'length', { value: options.arity });
|
739
|
+
}
|
740
|
+
var state = enforceInternalState(value);
|
741
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
742
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
743
|
+
} return value;
|
744
|
+
};
|
745
|
+
|
746
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
747
|
+
// eslint-disable-next-line no-extend-native -- required
|
748
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
749
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
750
|
+
}, 'toString');
|
751
|
+
});
|
752
|
+
|
753
|
+
var defineBuiltIn = function (O, key, value, options) {
|
719
754
|
var unsafe = options ? !!options.unsafe : false;
|
720
755
|
var simple = options ? !!options.enumerable : false;
|
721
756
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
722
757
|
var name = options && options.name !== undefined ? options.name : key;
|
723
|
-
|
724
|
-
if (isCallable(value)) {
|
725
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
726
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
727
|
-
}
|
728
|
-
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
729
|
-
createNonEnumerableProperty(value, 'name', name);
|
730
|
-
}
|
731
|
-
state = enforceInternalState(value);
|
732
|
-
if (!state.source) {
|
733
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
734
|
-
}
|
735
|
-
}
|
758
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
736
759
|
if (O === global_1) {
|
737
760
|
if (simple) O[key] = value;
|
738
761
|
else setGlobal(key, value);
|
739
|
-
return;
|
762
|
+
return O;
|
740
763
|
} else if (!unsafe) {
|
741
764
|
delete O[key];
|
742
765
|
} else if (!noTargetGet && O[key]) {
|
@@ -744,11 +767,8 @@
|
|
744
767
|
}
|
745
768
|
if (simple) O[key] = value;
|
746
769
|
else createNonEnumerableProperty(O, key, value);
|
747
|
-
|
748
|
-
}
|
749
|
-
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
750
|
-
});
|
751
|
-
});
|
770
|
+
return O;
|
771
|
+
};
|
752
772
|
|
753
773
|
var ceil = Math.ceil;
|
754
774
|
var floor$2 = Math.floor;
|
@@ -848,7 +868,7 @@
|
|
848
868
|
|
849
869
|
// `Object.getOwnPropertyNames` method
|
850
870
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
851
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
871
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
852
872
|
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
853
873
|
return objectKeysInternal(O, hiddenKeys);
|
854
874
|
};
|
@@ -857,7 +877,7 @@
|
|
857
877
|
f: f$2
|
858
878
|
};
|
859
879
|
|
860
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
880
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
861
881
|
var f$1 = Object.getOwnPropertySymbols;
|
862
882
|
|
863
883
|
var objectGetOwnPropertySymbols = {
|
@@ -955,21 +975,20 @@
|
|
955
975
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
956
976
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
957
977
|
}
|
958
|
-
|
959
|
-
redefine(target, key, sourceProperty, options);
|
978
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
960
979
|
}
|
961
980
|
};
|
962
981
|
|
963
982
|
// `Object.keys` method
|
964
983
|
// https://tc39.es/ecma262/#sec-object.keys
|
965
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
984
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
966
985
|
var objectKeys = Object.keys || function keys(O) {
|
967
986
|
return objectKeysInternal(O, enumBugKeys);
|
968
987
|
};
|
969
988
|
|
970
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
989
|
+
// eslint-disable-next-line es-x/no-object-assign -- safe
|
971
990
|
var $assign = Object.assign;
|
972
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
991
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
973
992
|
var defineProperty$4 = Object.defineProperty;
|
974
993
|
var concat$1 = functionUncurryThis([].concat);
|
975
994
|
|
@@ -989,7 +1008,7 @@
|
|
989
1008
|
// should work with symbols and should have deterministic property order (V8 bug)
|
990
1009
|
var A = {};
|
991
1010
|
var B = {};
|
992
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
1011
|
+
// eslint-disable-next-line es-x/no-symbol -- safe
|
993
1012
|
var symbol = Symbol();
|
994
1013
|
var alphabet = 'abcdefghijklmnopqrst';
|
995
1014
|
A[symbol] = 7;
|
@@ -1016,8 +1035,8 @@
|
|
1016
1035
|
|
1017
1036
|
// `Object.assign` method
|
1018
1037
|
// https://tc39.es/ecma262/#sec-object.assign
|
1019
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
1020
|
-
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
1038
|
+
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
1039
|
+
_export({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== objectAssign }, {
|
1021
1040
|
assign: objectAssign
|
1022
1041
|
});
|
1023
1042
|
|
@@ -1144,6 +1163,7 @@
|
|
1144
1163
|
var regexpFlags = function () {
|
1145
1164
|
var that = anObject(this);
|
1146
1165
|
var result = '';
|
1166
|
+
if (that.hasIndices) result += 'd';
|
1147
1167
|
if (that.global) result += 'g';
|
1148
1168
|
if (that.ignoreCase) result += 'i';
|
1149
1169
|
if (that.multiline) result += 'm';
|
@@ -1183,7 +1203,7 @@
|
|
1183
1203
|
|
1184
1204
|
// `Object.defineProperties` method
|
1185
1205
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1186
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1206
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1187
1207
|
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1188
1208
|
anObject(O);
|
1189
1209
|
var props = toIndexedObject(Properties);
|
@@ -1272,6 +1292,7 @@
|
|
1272
1292
|
|
1273
1293
|
// `Object.create` method
|
1274
1294
|
// https://tc39.es/ecma262/#sec-object.create
|
1295
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
1275
1296
|
var objectCreate = Object.create || function create(O, Properties) {
|
1276
1297
|
var result;
|
1277
1298
|
if (O !== null) {
|
@@ -1428,7 +1449,7 @@
|
|
1428
1449
|
var apply = FunctionPrototype.apply;
|
1429
1450
|
var call = FunctionPrototype.call;
|
1430
1451
|
|
1431
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
1452
|
+
// eslint-disable-next-line es-x/no-reflect -- safe
|
1432
1453
|
var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
|
1433
1454
|
return call.apply(apply, arguments);
|
1434
1455
|
});
|
@@ -1443,7 +1464,7 @@
|
|
1443
1464
|
|
1444
1465
|
|
1445
1466
|
var SPECIES$5 = wellKnownSymbol('species');
|
1446
|
-
var RegExpPrototype$
|
1467
|
+
var RegExpPrototype$3 = RegExp.prototype;
|
1447
1468
|
|
1448
1469
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
1449
1470
|
var SYMBOL = wellKnownSymbol(KEY);
|
@@ -1488,7 +1509,7 @@
|
|
1488
1509
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
1489
1510
|
var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
|
1490
1511
|
var $exec = regexp.exec;
|
1491
|
-
if ($exec === regexpExec || $exec === RegExpPrototype$
|
1512
|
+
if ($exec === regexpExec || $exec === RegExpPrototype$3.exec) {
|
1492
1513
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
1493
1514
|
// The native String method already delegates to @@method (this
|
1494
1515
|
// polyfilled function), leasing to infinite recursion.
|
@@ -1500,11 +1521,11 @@
|
|
1500
1521
|
return { done: false };
|
1501
1522
|
});
|
1502
1523
|
|
1503
|
-
|
1504
|
-
|
1524
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
1525
|
+
defineBuiltIn(RegExpPrototype$3, SYMBOL, methods[1]);
|
1505
1526
|
}
|
1506
1527
|
|
1507
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype$
|
1528
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype$3[SYMBOL], 'sham', true);
|
1508
1529
|
};
|
1509
1530
|
|
1510
1531
|
var MATCH$2 = wellKnownSymbol('match');
|
@@ -1855,9 +1876,15 @@
|
|
1855
1876
|
var $includes = arrayIncludes.includes;
|
1856
1877
|
|
1857
1878
|
|
1879
|
+
|
1880
|
+
// FF99+ bug
|
1881
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
1882
|
+
return !Array(1).includes();
|
1883
|
+
});
|
1884
|
+
|
1858
1885
|
// `Array.prototype.includes` method
|
1859
1886
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
1860
|
-
_export({ target: 'Array', proto: true }, {
|
1887
|
+
_export({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
1861
1888
|
includes: function includes(el /* , fromIndex = 0 */) {
|
1862
1889
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
1863
1890
|
}
|
@@ -1868,7 +1895,7 @@
|
|
1868
1895
|
|
1869
1896
|
// `IsArray` abstract operation
|
1870
1897
|
// https://tc39.es/ecma262/#sec-isarray
|
1871
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
1898
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
1872
1899
|
var isArray = Array.isArray || function isArray(argument) {
|
1873
1900
|
return classofRaw(argument) == 'Array';
|
1874
1901
|
};
|
@@ -1940,7 +1967,7 @@
|
|
1940
1967
|
// `Array.prototype.concat` method
|
1941
1968
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1942
1969
|
// with adding support of @@isConcatSpreadable and @@species
|
1943
|
-
_export({ target: 'Array', proto: true, forced: FORCED$3 }, {
|
1970
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
|
1944
1971
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1945
1972
|
concat: function concat(arg) {
|
1946
1973
|
var O = toObject(this);
|
@@ -2069,7 +2096,7 @@
|
|
2069
2096
|
// `Object.prototype.toString` method
|
2070
2097
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
2071
2098
|
if (!toStringTagSupport) {
|
2072
|
-
|
2099
|
+
defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
|
2073
2100
|
}
|
2074
2101
|
|
2075
2102
|
var TypeError$4 = global_1.TypeError;
|
@@ -2161,7 +2188,7 @@
|
|
2161
2188
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
2162
2189
|
var arrayForEach = !STRICT_METHOD$2 ? function forEach(callbackfn /* , thisArg */) {
|
2163
2190
|
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
2164
|
-
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
2191
|
+
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
2165
2192
|
} : [].forEach;
|
2166
2193
|
|
2167
2194
|
var handlePrototype$1 = function (CollectionPrototype) {
|
@@ -2206,7 +2233,7 @@
|
|
2206
2233
|
parseFloat: numberParseFloat
|
2207
2234
|
});
|
2208
2235
|
|
2209
|
-
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
2236
|
+
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
|
2210
2237
|
|
2211
2238
|
|
2212
2239
|
var $IndexOf = arrayIncludes.indexOf;
|
@@ -2550,7 +2577,7 @@
|
|
2550
2577
|
|
2551
2578
|
// `SameValue` abstract operation
|
2552
2579
|
// https://tc39.es/ecma262/#sec-samevalue
|
2553
|
-
// eslint-disable-next-line es/no-object-is -- safe
|
2580
|
+
// eslint-disable-next-line es-x/no-object-is -- safe
|
2554
2581
|
var sameValue = Object.is || function is(x, y) {
|
2555
2582
|
// eslint-disable-next-line no-self-compare -- NaN check
|
2556
2583
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
@@ -2659,13 +2686,13 @@
|
|
2659
2686
|
// `Object.setPrototypeOf` method
|
2660
2687
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
2661
2688
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
2662
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
2689
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
2663
2690
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
2664
2691
|
var CORRECT_SETTER = false;
|
2665
2692
|
var test = {};
|
2666
2693
|
var setter;
|
2667
2694
|
try {
|
2668
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
2695
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
2669
2696
|
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
2670
2697
|
setter(test, []);
|
2671
2698
|
CORRECT_SETTER = test instanceof Array;
|
@@ -2694,6 +2721,24 @@
|
|
2694
2721
|
return $this;
|
2695
2722
|
};
|
2696
2723
|
|
2724
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
2725
|
+
|
2726
|
+
var regexpGetFlags = function (R) {
|
2727
|
+
var flags = R.flags;
|
2728
|
+
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwnProperty_1(R, 'flags') && objectIsPrototypeOf(RegExpPrototype$2, R)
|
2729
|
+
? functionCall(regexpFlags, R) : flags;
|
2730
|
+
};
|
2731
|
+
|
2732
|
+
var defineProperty$3 = objectDefineProperty.f;
|
2733
|
+
|
2734
|
+
var proxyAccessor = function (Target, Source, key) {
|
2735
|
+
key in Target || defineProperty$3(Target, key, {
|
2736
|
+
configurable: true,
|
2737
|
+
get: function () { return Source[key]; },
|
2738
|
+
set: function (it) { Source[key] = it; }
|
2739
|
+
});
|
2740
|
+
};
|
2741
|
+
|
2697
2742
|
var SPECIES$1 = wellKnownSymbol('species');
|
2698
2743
|
|
2699
2744
|
var setSpecies = function (CONSTRUCTOR_NAME) {
|
@@ -2708,7 +2753,6 @@
|
|
2708
2753
|
}
|
2709
2754
|
};
|
2710
2755
|
|
2711
|
-
var defineProperty$3 = objectDefineProperty.f;
|
2712
2756
|
var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
|
2713
2757
|
|
2714
2758
|
|
@@ -2718,6 +2762,7 @@
|
|
2718
2762
|
|
2719
2763
|
|
2720
2764
|
|
2765
|
+
|
2721
2766
|
var enforceInternalState = internalState.enforce;
|
2722
2767
|
|
2723
2768
|
|
@@ -2728,7 +2773,6 @@
|
|
2728
2773
|
var NativeRegExp = global_1.RegExp;
|
2729
2774
|
var RegExpPrototype$1 = NativeRegExp.prototype;
|
2730
2775
|
var SyntaxError = global_1.SyntaxError;
|
2731
|
-
var getFlags$1 = functionUncurryThis(regexpFlags);
|
2732
2776
|
var exec = functionUncurryThis(RegExpPrototype$1.exec);
|
2733
2777
|
var charAt = functionUncurryThis(''.charAt);
|
2734
2778
|
var replace = functionUncurryThis(''.replace);
|
@@ -2837,7 +2881,7 @@
|
|
2837
2881
|
|
2838
2882
|
if (patternIsRegExp || objectIsPrototypeOf(RegExpPrototype$1, pattern)) {
|
2839
2883
|
pattern = pattern.source;
|
2840
|
-
if (flagsAreUndefined) flags =
|
2884
|
+
if (flagsAreUndefined) flags = regexpGetFlags(rawPattern);
|
2841
2885
|
}
|
2842
2886
|
|
2843
2887
|
pattern = pattern === undefined ? '' : toString_1(pattern);
|
@@ -2882,21 +2926,13 @@
|
|
2882
2926
|
return result;
|
2883
2927
|
};
|
2884
2928
|
|
2885
|
-
var proxy = function (key) {
|
2886
|
-
key in RegExpWrapper || defineProperty$3(RegExpWrapper, key, {
|
2887
|
-
configurable: true,
|
2888
|
-
get: function () { return NativeRegExp[key]; },
|
2889
|
-
set: function (it) { NativeRegExp[key] = it; }
|
2890
|
-
});
|
2891
|
-
};
|
2892
|
-
|
2893
2929
|
for (var keys$1 = getOwnPropertyNames$1(NativeRegExp), index = 0; keys$1.length > index;) {
|
2894
|
-
|
2930
|
+
proxyAccessor(RegExpWrapper, NativeRegExp, keys$1[index++]);
|
2895
2931
|
}
|
2896
2932
|
|
2897
2933
|
RegExpPrototype$1.constructor = RegExpWrapper;
|
2898
2934
|
RegExpWrapper.prototype = RegExpPrototype$1;
|
2899
|
-
|
2935
|
+
defineBuiltIn(global_1, 'RegExp', RegExpWrapper);
|
2900
2936
|
}
|
2901
2937
|
|
2902
2938
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
@@ -2909,11 +2945,9 @@
|
|
2909
2945
|
|
2910
2946
|
|
2911
2947
|
|
2912
|
-
|
2913
2948
|
var TO_STRING = 'toString';
|
2914
2949
|
var RegExpPrototype = RegExp.prototype;
|
2915
2950
|
var n$ToString = RegExpPrototype[TO_STRING];
|
2916
|
-
var getFlags = functionUncurryThis(regexpFlags);
|
2917
2951
|
|
2918
2952
|
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
2919
2953
|
// FF44- RegExp#toString has a wrong name
|
@@ -2922,12 +2956,11 @@
|
|
2922
2956
|
// `RegExp.prototype.toString` method
|
2923
2957
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
2924
2958
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
2925
|
-
|
2959
|
+
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
2926
2960
|
var R = anObject(this);
|
2927
|
-
var
|
2928
|
-
var
|
2929
|
-
|
2930
|
-
return '/' + p + '/' + f;
|
2961
|
+
var pattern = toString_1(R.source);
|
2962
|
+
var flags = toString_1(regexpGetFlags(R));
|
2963
|
+
return '/' + pattern + '/' + flags;
|
2931
2964
|
}, { unsafe: true });
|
2932
2965
|
}
|
2933
2966
|
|
@@ -2975,7 +3008,7 @@
|
|
2975
3008
|
var correctPrototypeGetter = !fails(function () {
|
2976
3009
|
function F() { /* empty */ }
|
2977
3010
|
F.prototype.constructor = null;
|
2978
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
3011
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
2979
3012
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
2980
3013
|
});
|
2981
3014
|
|
@@ -3001,7 +3034,7 @@
|
|
3001
3034
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
3002
3035
|
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
3003
3036
|
|
3004
|
-
/* eslint-disable es/no-array-prototype-keys -- safe */
|
3037
|
+
/* eslint-disable es-x/no-array-prototype-keys -- safe */
|
3005
3038
|
if ([].keys) {
|
3006
3039
|
arrayIterator = [].keys();
|
3007
3040
|
// Safari 8 has buggy iterators w/o `next`
|
@@ -3023,7 +3056,7 @@
|
|
3023
3056
|
// `%IteratorPrototype%[@@iterator]()` method
|
3024
3057
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
3025
3058
|
if (!isCallable(IteratorPrototype$2[ITERATOR$2])) {
|
3026
|
-
|
3059
|
+
defineBuiltIn(IteratorPrototype$2, ITERATOR$2, function () {
|
3027
3060
|
return this;
|
3028
3061
|
});
|
3029
3062
|
}
|
@@ -3104,7 +3137,7 @@
|
|
3104
3137
|
if (objectSetPrototypeOf) {
|
3105
3138
|
objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
3106
3139
|
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
3107
|
-
|
3140
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
3108
3141
|
}
|
3109
3142
|
}
|
3110
3143
|
// Set @@toStringTag to native iterators
|
@@ -3131,14 +3164,14 @@
|
|
3131
3164
|
};
|
3132
3165
|
if (FORCED) for (KEY in methods) {
|
3133
3166
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
3134
|
-
|
3167
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
3135
3168
|
}
|
3136
3169
|
} else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
3137
3170
|
}
|
3138
3171
|
|
3139
3172
|
// define iterator
|
3140
3173
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
3141
|
-
|
3174
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
3142
3175
|
}
|
3143
3176
|
iterators[NAME] = defaultIterator;
|
3144
3177
|
|
@@ -3372,7 +3405,7 @@
|
|
3372
3405
|
}
|
3373
3406
|
NumberWrapper.prototype = NumberPrototype;
|
3374
3407
|
NumberPrototype.constructor = NumberWrapper;
|
3375
|
-
|
3408
|
+
defineBuiltIn(global_1, NUMBER, NumberWrapper);
|
3376
3409
|
}
|
3377
3410
|
|
3378
3411
|
var un$Reverse = functionUncurryThis([].reverse);
|
@@ -3445,7 +3478,7 @@
|
|
3445
3478
|
|
3446
3479
|
|
3447
3480
|
|
3448
|
-
// eslint-disable-next-line es/no-string-prototype-startswith -- safe
|
3481
|
+
// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe
|
3449
3482
|
var un$StartsWith = functionUncurryThis(''.startsWith);
|
3450
3483
|
var stringSlice = functionUncurryThis(''.slice);
|
3451
3484
|
var min$1 = Math.min;
|
@@ -3479,7 +3512,7 @@
|
|
3479
3512
|
|
3480
3513
|
|
3481
3514
|
|
3482
|
-
// eslint-disable-next-line es/no-string-prototype-endswith -- safe
|
3515
|
+
// eslint-disable-next-line es-x/no-string-prototype-endswith -- safe
|
3483
3516
|
var un$EndsWith = functionUncurryThis(''.endsWith);
|
3484
3517
|
var slice = functionUncurryThis(''.slice);
|
3485
3518
|
var min = Math.min;
|
@@ -3744,7 +3777,7 @@
|
|
3744
3777
|
|
3745
3778
|
return value.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
3746
3779
|
},
|
3747
|
-
updateFieldGroup: function updateFieldGroup(columns) {
|
3780
|
+
updateFieldGroup: function updateFieldGroup(columns, fieldColumns) {
|
3748
3781
|
var _ref;
|
3749
3782
|
|
3750
3783
|
var allColumns = (_ref = []).concat.apply(_ref, _toConsumableArray(columns));
|
@@ -3756,12 +3789,12 @@
|
|
3756
3789
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
3757
3790
|
var c = _step4.value;
|
3758
3791
|
|
3759
|
-
var
|
3760
|
-
|
3792
|
+
var _iterator6 = _createForOfIteratorHelper(c),
|
3793
|
+
_step6;
|
3761
3794
|
|
3762
3795
|
try {
|
3763
|
-
for (
|
3764
|
-
var r =
|
3796
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
3797
|
+
var r = _step6.value;
|
3765
3798
|
|
3766
3799
|
if (r.colspanGroup > 1) {
|
3767
3800
|
var colspan = 0;
|
@@ -3785,9 +3818,9 @@
|
|
3785
3818
|
}
|
3786
3819
|
}
|
3787
3820
|
} catch (err) {
|
3788
|
-
|
3821
|
+
_iterator6.e(err);
|
3789
3822
|
} finally {
|
3790
|
-
|
3823
|
+
_iterator6.f();
|
3791
3824
|
}
|
3792
3825
|
}
|
3793
3826
|
} catch (err) {
|
@@ -3795,6 +3828,46 @@
|
|
3795
3828
|
} finally {
|
3796
3829
|
_iterator4.f();
|
3797
3830
|
}
|
3831
|
+
|
3832
|
+
if (columns.length < 2) {
|
3833
|
+
return;
|
3834
|
+
}
|
3835
|
+
|
3836
|
+
var _iterator5 = _createForOfIteratorHelper(fieldColumns),
|
3837
|
+
_step5;
|
3838
|
+
|
3839
|
+
try {
|
3840
|
+
var _loop2 = function _loop2() {
|
3841
|
+
var column = _step5.value;
|
3842
|
+
var sameColumns = allColumns.filter(function (col) {
|
3843
|
+
return col.fieldIndex === column.fieldIndex;
|
3844
|
+
});
|
3845
|
+
|
3846
|
+
if (sameColumns.length > 1) {
|
3847
|
+
var _iterator7 = _createForOfIteratorHelper(sameColumns),
|
3848
|
+
_step7;
|
3849
|
+
|
3850
|
+
try {
|
3851
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
3852
|
+
var _c = _step7.value;
|
3853
|
+
_c.visible = column.visible;
|
3854
|
+
}
|
3855
|
+
} catch (err) {
|
3856
|
+
_iterator7.e(err);
|
3857
|
+
} finally {
|
3858
|
+
_iterator7.f();
|
3859
|
+
}
|
3860
|
+
}
|
3861
|
+
};
|
3862
|
+
|
3863
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
3864
|
+
_loop2();
|
3865
|
+
}
|
3866
|
+
} catch (err) {
|
3867
|
+
_iterator5.e(err);
|
3868
|
+
} finally {
|
3869
|
+
_iterator5.f();
|
3870
|
+
}
|
3798
3871
|
},
|
3799
3872
|
getScrollBarWidth: function getScrollBarWidth() {
|
3800
3873
|
if (this.cachedWidth === undefined) {
|
@@ -3826,18 +3899,18 @@
|
|
3826
3899
|
if (names.length > 1) {
|
3827
3900
|
func = window;
|
3828
3901
|
|
3829
|
-
var
|
3830
|
-
|
3902
|
+
var _iterator8 = _createForOfIteratorHelper(names),
|
3903
|
+
_step8;
|
3831
3904
|
|
3832
3905
|
try {
|
3833
|
-
for (
|
3834
|
-
var f =
|
3906
|
+
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
3907
|
+
var f = _step8.value;
|
3835
3908
|
func = func[f];
|
3836
3909
|
}
|
3837
3910
|
} catch (err) {
|
3838
|
-
|
3911
|
+
_iterator8.e(err);
|
3839
3912
|
} finally {
|
3840
|
-
|
3913
|
+
_iterator8.f();
|
3841
3914
|
}
|
3842
3915
|
} else {
|
3843
3916
|
func = window[name];
|
@@ -3938,18 +4011,18 @@
|
|
3938
4011
|
|
3939
4012
|
var props = field.split('.');
|
3940
4013
|
|
3941
|
-
var
|
3942
|
-
|
4014
|
+
var _iterator9 = _createForOfIteratorHelper(props),
|
4015
|
+
_step9;
|
3943
4016
|
|
3944
4017
|
try {
|
3945
|
-
for (
|
3946
|
-
var p =
|
4018
|
+
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
4019
|
+
var p = _step9.value;
|
3947
4020
|
value = value && value[p];
|
3948
4021
|
}
|
3949
4022
|
} catch (err) {
|
3950
|
-
|
4023
|
+
_iterator9.e(err);
|
3951
4024
|
} finally {
|
3952
|
-
|
4025
|
+
_iterator9.f();
|
3953
4026
|
}
|
3954
4027
|
|
3955
4028
|
return escape ? this.escapeHTML(value) : value;
|
@@ -3958,21 +4031,21 @@
|
|
3958
4031
|
return navigator.userAgent.includes('MSIE ') || /Trident.*rv:11\./.test(navigator.userAgent);
|
3959
4032
|
},
|
3960
4033
|
findIndex: function findIndex(items, item) {
|
3961
|
-
var
|
3962
|
-
|
4034
|
+
var _iterator10 = _createForOfIteratorHelper(items),
|
4035
|
+
_step10;
|
3963
4036
|
|
3964
4037
|
try {
|
3965
|
-
for (
|
3966
|
-
var it =
|
4038
|
+
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
4039
|
+
var it = _step10.value;
|
3967
4040
|
|
3968
4041
|
if (JSON.stringify(it) === JSON.stringify(item)) {
|
3969
4042
|
return items.indexOf(it);
|
3970
4043
|
}
|
3971
4044
|
}
|
3972
4045
|
} catch (err) {
|
3973
|
-
|
4046
|
+
_iterator10.e(err);
|
3974
4047
|
} finally {
|
3975
|
-
|
4048
|
+
_iterator10.f();
|
3976
4049
|
}
|
3977
4050
|
|
3978
4051
|
return -1;
|
@@ -4084,12 +4157,12 @@
|
|
4084
4157
|
return this.hasDetailViewIcon(options) && options.detailViewAlign !== 'right' ? 1 : 0;
|
4085
4158
|
},
|
4086
4159
|
checkAutoMergeCells: function checkAutoMergeCells(data) {
|
4087
|
-
var
|
4088
|
-
|
4160
|
+
var _iterator11 = _createForOfIteratorHelper(data),
|
4161
|
+
_step11;
|
4089
4162
|
|
4090
4163
|
try {
|
4091
|
-
for (
|
4092
|
-
var row =
|
4164
|
+
for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
|
4165
|
+
var row = _step11.value;
|
4093
4166
|
|
4094
4167
|
for (var _i4 = 0, _Object$keys = Object.keys(row); _i4 < _Object$keys.length; _i4++) {
|
4095
4168
|
var key = _Object$keys[_i4];
|
@@ -4100,9 +4173,9 @@
|
|
4100
4173
|
}
|
4101
4174
|
}
|
4102
4175
|
} catch (err) {
|
4103
|
-
|
4176
|
+
_iterator11.e(err);
|
4104
4177
|
} finally {
|
4105
|
-
|
4178
|
+
_iterator11.f();
|
4106
4179
|
}
|
4107
4180
|
|
4108
4181
|
return false;
|
@@ -4133,7 +4206,7 @@
|
|
4133
4206
|
}
|
4134
4207
|
};
|
4135
4208
|
|
4136
|
-
var VERSION = '1.20.
|
4209
|
+
var VERSION = '1.20.1';
|
4137
4210
|
var bootstrapVersion = Utils.getBootstrapVersion();
|
4138
4211
|
var CONSTANTS = {
|
4139
4212
|
3: {
|
@@ -4828,6 +4901,11 @@
|
|
4828
4901
|
|
4829
4902
|
var iconsPrefix = Utils.getIconsPrefix($__default["default"].fn.bootstrapTable.theme);
|
4830
4903
|
var icons = Utils.getIcons(iconsPrefix);
|
4904
|
+
|
4905
|
+
if (typeof opts.icons === 'string') {
|
4906
|
+
opts.icons = Utils.calculateObjectValue(null, opts.icons);
|
4907
|
+
}
|
4908
|
+
|
4831
4909
|
opts.iconsPrefix = opts.iconsPrefix || $__default["default"].fn.bootstrapTable.defaults.iconsPrefix || iconsPrefix;
|
4832
4910
|
opts.icons = Object.assign(icons, $__default["default"].fn.bootstrapTable.defaults.icons, opts.icons); // init buttons class
|
4833
4911
|
|
@@ -4838,10 +4916,6 @@
|
|
4838
4916
|
if (_typeof(this.buttons) !== 'object') {
|
4839
4917
|
this.buttons = {};
|
4840
4918
|
}
|
4841
|
-
|
4842
|
-
if (typeof opts.icons === 'string') {
|
4843
|
-
opts.icons = Utils.calculateObjectValue(null, opts.icons);
|
4844
|
-
}
|
4845
4919
|
}
|
4846
4920
|
}, {
|
4847
4921
|
key: "initLocale",
|
@@ -5028,7 +5102,7 @@
|
|
5028
5102
|
cellStyles: [],
|
5029
5103
|
searchables: []
|
5030
5104
|
};
|
5031
|
-
Utils.updateFieldGroup(this.options.columns);
|
5105
|
+
Utils.updateFieldGroup(this.options.columns, this.columns);
|
5032
5106
|
this.options.columns.forEach(function (columns, i) {
|
5033
5107
|
var html = [];
|
5034
5108
|
html.push("<tr".concat(Utils.sprintf(' class="%s"', _this2._headerTrClasses[i]), " ").concat(Utils.sprintf(' style="%s"', _this2._headerTrStyles[i]), ">"));
|
@@ -7210,7 +7284,7 @@
|
|
7210
7284
|
var data = this.options.data;
|
7211
7285
|
|
7212
7286
|
if ((this.searchText || this.options.customSearch || this.options.sortName !== undefined || this.enableCustomSort || // Fix #4616: this.enableCustomSort is for extensions
|
7213
|
-
!Utils.isEmptyObject(this.filterColumns) || !Utils.isEmptyObject(this.filterColumnsPartial)) && (!params || !params.unfiltered)) {
|
7287
|
+
!Utils.isEmptyObject(this.filterColumns) || typeof this.options.filterOptions.filterAlgorithm === 'function' || !Utils.isEmptyObject(this.filterColumnsPartial)) && (!params || !params.unfiltered)) {
|
7214
7288
|
data = this.data;
|
7215
7289
|
}
|
7216
7290
|
|