bootstrap-table-rails 1.15.4 → 1.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +147 -54
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +876 -83
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +684 -208
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +686 -210
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +66 -11
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +1347 -727
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +254 -88
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +139 -66
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1309 -258
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +139 -64
- data/vendor/assets/javascripts/bootstrap-table/extensions/{accent-neutralise/bootstrap-table-accent-neutralise.js → custom-view/bootstrap-table-custom-view.js} +582 -752
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +83 -42
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +1219 -208
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +409 -210
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +1 -1
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +1369 -904
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +2361 -0
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.css +12 -14
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +589 -423
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +494 -107
- data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +3 -3
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +217 -73
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +143 -66
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +374 -138
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +137 -65
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +87 -42
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +388 -148
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +643 -255
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +348 -136
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +84 -44
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.css +0 -1
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +209 -76
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +490 -202
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +221 -115
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +771 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +114 -63
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +93 -43
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +107 -57
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +93 -43
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +96 -45
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +771 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +771 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +92 -42
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +768 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +1049 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.eot +0 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.svg +28 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.ttf +0 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.woff +0 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +80 -12
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +161 -63
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +79 -14
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +166 -65
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +74 -10
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +165 -67
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +80 -14
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +165 -67
- metadata +13 -16
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.css +0 -3
- data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.css +0 -12
- data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.js +0 -2087
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by/bootstrap-table-group-by.css +0 -53
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by/bootstrap-table-group-by.js +0 -257
- data/vendor/assets/javascripts/bootstrap-table/extensions/multi-column-toggle/bootstrap-table-multi-toggle.js +0 -105
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-search/bootstrap-table-multiple-search.js +0 -85
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-selection-row/bootstrap-table-multiple-selection-row.css +0 -17
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-selection-row/bootstrap-table-multiple-selection-row.js +0 -143
- data/vendor/assets/javascripts/bootstrap-table/extensions/natural-sorting/bootstrap-table-natural-sorting.js +0 -1265
- data/vendor/assets/javascripts/bootstrap-table/extensions/select2-filter/bootstrap-table-select2-filter.js +0 -341
- data/vendor/assets/javascripts/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.css +0 -1
- data/vendor/assets/javascripts/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.js +0 -142
data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
|
3
3
|
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
4
4
|
(global = global || self, factory(global.jQuery));
|
5
|
-
}(this, function ($) { 'use strict';
|
5
|
+
}(this, (function ($) { 'use strict';
|
6
6
|
|
7
|
-
$ = $ &&
|
7
|
+
$ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
|
8
8
|
|
9
9
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
10
10
|
|
@@ -12,7 +12,6 @@
|
|
12
12
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
13
13
|
}
|
14
14
|
|
15
|
-
var O = 'object';
|
16
15
|
var check = function (it) {
|
17
16
|
return it && it.Math == Math && it;
|
18
17
|
};
|
@@ -20,10 +19,10 @@
|
|
20
19
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
21
20
|
var global_1 =
|
22
21
|
// eslint-disable-next-line no-undef
|
23
|
-
check(typeof globalThis ==
|
24
|
-
check(typeof window ==
|
25
|
-
check(typeof self ==
|
26
|
-
check(typeof commonjsGlobal ==
|
22
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
23
|
+
check(typeof window == 'object' && window) ||
|
24
|
+
check(typeof self == 'object' && self) ||
|
25
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
27
26
|
// eslint-disable-next-line no-new-func
|
28
27
|
Function('return this')();
|
29
28
|
|
@@ -121,12 +120,12 @@
|
|
121
120
|
return hasOwnProperty.call(it, key);
|
122
121
|
};
|
123
122
|
|
124
|
-
var document = global_1.document;
|
123
|
+
var document$1 = global_1.document;
|
125
124
|
// typeof document.createElement is 'object' in old IE
|
126
|
-
var EXISTS = isObject(document) && isObject(document.createElement);
|
125
|
+
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
127
126
|
|
128
127
|
var documentCreateElement = function (it) {
|
129
|
-
return EXISTS ? document.createElement(it) : {};
|
128
|
+
return EXISTS ? document$1.createElement(it) : {};
|
130
129
|
};
|
131
130
|
|
132
131
|
// Thank's IE8 for his funny defineProperty
|
@@ -179,7 +178,7 @@
|
|
179
178
|
f: f$2
|
180
179
|
};
|
181
180
|
|
182
|
-
var
|
181
|
+
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
183
182
|
return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
|
184
183
|
} : function (object, key, value) {
|
185
184
|
object[key] = value;
|
@@ -188,31 +187,42 @@
|
|
188
187
|
|
189
188
|
var setGlobal = function (key, value) {
|
190
189
|
try {
|
191
|
-
|
190
|
+
createNonEnumerableProperty(global_1, key, value);
|
192
191
|
} catch (error) {
|
193
192
|
global_1[key] = value;
|
194
193
|
} return value;
|
195
194
|
};
|
196
195
|
|
197
|
-
var shared = createCommonjsModule(function (module) {
|
198
196
|
var SHARED = '__core-js_shared__';
|
199
197
|
var store = global_1[SHARED] || setGlobal(SHARED, {});
|
200
198
|
|
199
|
+
var sharedStore = store;
|
200
|
+
|
201
|
+
var functionToString = Function.toString;
|
202
|
+
|
203
|
+
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
204
|
+
if (typeof sharedStore.inspectSource != 'function') {
|
205
|
+
sharedStore.inspectSource = function (it) {
|
206
|
+
return functionToString.call(it);
|
207
|
+
};
|
208
|
+
}
|
209
|
+
|
210
|
+
var inspectSource = sharedStore.inspectSource;
|
211
|
+
|
212
|
+
var WeakMap = global_1.WeakMap;
|
213
|
+
|
214
|
+
var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
|
215
|
+
|
216
|
+
var shared = createCommonjsModule(function (module) {
|
201
217
|
(module.exports = function (key, value) {
|
202
|
-
return
|
218
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
203
219
|
})('versions', []).push({
|
204
|
-
version: '3.
|
220
|
+
version: '3.6.0',
|
205
221
|
mode: 'global',
|
206
222
|
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
207
223
|
});
|
208
224
|
});
|
209
225
|
|
210
|
-
var functionToString = shared('native-function-to-string', Function.toString);
|
211
|
-
|
212
|
-
var WeakMap = global_1.WeakMap;
|
213
|
-
|
214
|
-
var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
|
215
|
-
|
216
226
|
var id = 0;
|
217
227
|
var postfix = Math.random();
|
218
228
|
|
@@ -245,25 +255,25 @@
|
|
245
255
|
};
|
246
256
|
|
247
257
|
if (nativeWeakMap) {
|
248
|
-
var store = new WeakMap$1();
|
249
|
-
var wmget = store.get;
|
250
|
-
var wmhas = store.has;
|
251
|
-
var wmset = store.set;
|
258
|
+
var store$1 = new WeakMap$1();
|
259
|
+
var wmget = store$1.get;
|
260
|
+
var wmhas = store$1.has;
|
261
|
+
var wmset = store$1.set;
|
252
262
|
set = function (it, metadata) {
|
253
|
-
wmset.call(store, it, metadata);
|
263
|
+
wmset.call(store$1, it, metadata);
|
254
264
|
return metadata;
|
255
265
|
};
|
256
266
|
get = function (it) {
|
257
|
-
return wmget.call(store, it) || {};
|
267
|
+
return wmget.call(store$1, it) || {};
|
258
268
|
};
|
259
269
|
has$1 = function (it) {
|
260
|
-
return wmhas.call(store, it);
|
270
|
+
return wmhas.call(store$1, it);
|
261
271
|
};
|
262
272
|
} else {
|
263
273
|
var STATE = sharedKey('state');
|
264
274
|
hiddenKeys[STATE] = true;
|
265
275
|
set = function (it, metadata) {
|
266
|
-
|
276
|
+
createNonEnumerableProperty(it, STATE, metadata);
|
267
277
|
return metadata;
|
268
278
|
};
|
269
279
|
get = function (it) {
|
@@ -285,18 +295,14 @@
|
|
285
295
|
var redefine = createCommonjsModule(function (module) {
|
286
296
|
var getInternalState = internalState.get;
|
287
297
|
var enforceInternalState = internalState.enforce;
|
288
|
-
var TEMPLATE = String(
|
289
|
-
|
290
|
-
shared('inspectSource', function (it) {
|
291
|
-
return functionToString.call(it);
|
292
|
-
});
|
298
|
+
var TEMPLATE = String(String).split('String');
|
293
299
|
|
294
300
|
(module.exports = function (O, key, value, options) {
|
295
301
|
var unsafe = options ? !!options.unsafe : false;
|
296
302
|
var simple = options ? !!options.enumerable : false;
|
297
303
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
298
304
|
if (typeof value == 'function') {
|
299
|
-
if (typeof key == 'string' && !has(value, 'name'))
|
305
|
+
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
|
300
306
|
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
301
307
|
}
|
302
308
|
if (O === global_1) {
|
@@ -309,10 +315,10 @@
|
|
309
315
|
simple = true;
|
310
316
|
}
|
311
317
|
if (simple) O[key] = value;
|
312
|
-
else
|
318
|
+
else createNonEnumerableProperty(O, key, value);
|
313
319
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
314
320
|
})(Function.prototype, 'toString', function toString() {
|
315
|
-
return typeof this == 'function' && getInternalState(this).source ||
|
321
|
+
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
316
322
|
});
|
317
323
|
});
|
318
324
|
|
@@ -349,7 +355,7 @@
|
|
349
355
|
|
350
356
|
// Helper for a popular repeating case of the spec:
|
351
357
|
// Let integer be ? ToInteger(index).
|
352
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(
|
358
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
353
359
|
var toAbsoluteIndex = function (index, length) {
|
354
360
|
var integer = toInteger(index);
|
355
361
|
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
@@ -513,7 +519,7 @@
|
|
513
519
|
}
|
514
520
|
// add a flag to not completely full polyfills
|
515
521
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
516
|
-
|
522
|
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
517
523
|
}
|
518
524
|
// extend global
|
519
525
|
redefine(target, key, sourceProperty, options);
|
@@ -526,6 +532,12 @@
|
|
526
532
|
return !String(Symbol());
|
527
533
|
});
|
528
534
|
|
535
|
+
var useSymbolAsUid = nativeSymbol
|
536
|
+
// eslint-disable-next-line no-undef
|
537
|
+
&& !Symbol.sham
|
538
|
+
// eslint-disable-next-line no-undef
|
539
|
+
&& typeof Symbol() == 'symbol';
|
540
|
+
|
529
541
|
// `IsArray` abstract operation
|
530
542
|
// https://tc39.github.io/ecma262/#sec-isarray
|
531
543
|
var isArray = Array.isArray || function isArray(arg) {
|
@@ -558,49 +570,77 @@
|
|
558
570
|
|
559
571
|
var html = getBuiltIn('document', 'documentElement');
|
560
572
|
|
573
|
+
var GT = '>';
|
574
|
+
var LT = '<';
|
575
|
+
var PROTOTYPE = 'prototype';
|
576
|
+
var SCRIPT = 'script';
|
561
577
|
var IE_PROTO = sharedKey('IE_PROTO');
|
562
578
|
|
563
|
-
var
|
564
|
-
|
579
|
+
var EmptyConstructor = function () { /* empty */ };
|
580
|
+
|
581
|
+
var scriptTag = function (content) {
|
582
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
583
|
+
};
|
584
|
+
|
585
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
586
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
587
|
+
activeXDocument.write(scriptTag(''));
|
588
|
+
activeXDocument.close();
|
589
|
+
var temp = activeXDocument.parentWindow.Object;
|
590
|
+
activeXDocument = null; // avoid memory leak
|
591
|
+
return temp;
|
592
|
+
};
|
565
593
|
|
566
594
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
567
|
-
var
|
595
|
+
var NullProtoObjectViaIFrame = function () {
|
568
596
|
// Thrash, waste and sodomy: IE GC bug
|
569
597
|
var iframe = documentCreateElement('iframe');
|
570
|
-
var
|
571
|
-
var lt = '<';
|
572
|
-
var script = 'script';
|
573
|
-
var gt = '>';
|
574
|
-
var js = 'java' + script + ':';
|
598
|
+
var JS = 'java' + SCRIPT + ':';
|
575
599
|
var iframeDocument;
|
576
600
|
iframe.style.display = 'none';
|
577
601
|
html.appendChild(iframe);
|
578
|
-
|
602
|
+
// https://github.com/zloirock/core-js/issues/475
|
603
|
+
iframe.src = String(JS);
|
579
604
|
iframeDocument = iframe.contentWindow.document;
|
580
605
|
iframeDocument.open();
|
581
|
-
iframeDocument.write(
|
606
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
582
607
|
iframeDocument.close();
|
583
|
-
|
584
|
-
while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
|
585
|
-
return createDict();
|
608
|
+
return iframeDocument.F;
|
586
609
|
};
|
587
610
|
|
611
|
+
// Check for document.domain and active x support
|
612
|
+
// No need to use active x approach when document.domain is not set
|
613
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
614
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
615
|
+
// avoid IE GC bug
|
616
|
+
var activeXDocument;
|
617
|
+
var NullProtoObject = function () {
|
618
|
+
try {
|
619
|
+
/* global ActiveXObject */
|
620
|
+
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
621
|
+
} catch (error) { /* ignore */ }
|
622
|
+
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
623
|
+
var length = enumBugKeys.length;
|
624
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
625
|
+
return NullProtoObject();
|
626
|
+
};
|
627
|
+
|
628
|
+
hiddenKeys[IE_PROTO] = true;
|
629
|
+
|
588
630
|
// `Object.create` method
|
589
631
|
// https://tc39.github.io/ecma262/#sec-object.create
|
590
632
|
var objectCreate = Object.create || function create(O, Properties) {
|
591
633
|
var result;
|
592
634
|
if (O !== null) {
|
593
|
-
|
594
|
-
result = new
|
595
|
-
|
635
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
636
|
+
result = new EmptyConstructor();
|
637
|
+
EmptyConstructor[PROTOTYPE] = null;
|
596
638
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
597
639
|
result[IE_PROTO] = O;
|
598
|
-
} else result =
|
640
|
+
} else result = NullProtoObject();
|
599
641
|
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
600
642
|
};
|
601
643
|
|
602
|
-
hiddenKeys[IE_PROTO] = true;
|
603
|
-
|
604
644
|
var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
|
605
645
|
|
606
646
|
var toString$1 = {}.toString;
|
@@ -627,12 +667,15 @@
|
|
627
667
|
f: f$5
|
628
668
|
};
|
629
669
|
|
670
|
+
var WellKnownSymbolsStore = shared('wks');
|
630
671
|
var Symbol$1 = global_1.Symbol;
|
631
|
-
var
|
672
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
|
632
673
|
|
633
674
|
var wellKnownSymbol = function (name) {
|
634
|
-
|
635
|
-
|
675
|
+
if (!has(WellKnownSymbolsStore, name)) {
|
676
|
+
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
|
677
|
+
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
678
|
+
} return WellKnownSymbolsStore[name];
|
636
679
|
};
|
637
680
|
|
638
681
|
var f$6 = wellKnownSymbol;
|
@@ -778,8 +821,7 @@
|
|
778
821
|
var getInternalState = internalState.getterFor(SYMBOL);
|
779
822
|
var ObjectPrototype = Object[PROTOTYPE$1];
|
780
823
|
var $Symbol = global_1.Symbol;
|
781
|
-
var
|
782
|
-
var nativeJSONStringify = JSON && JSON.stringify;
|
824
|
+
var $stringify = getBuiltIn('JSON', 'stringify');
|
783
825
|
var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
784
826
|
var nativeDefineProperty$1 = objectDefineProperty.f;
|
785
827
|
var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
|
@@ -788,7 +830,7 @@
|
|
788
830
|
var ObjectPrototypeSymbols = shared('op-symbols');
|
789
831
|
var StringToSymbolRegistry = shared('string-to-symbol-registry');
|
790
832
|
var SymbolToStringRegistry = shared('symbol-to-string-registry');
|
791
|
-
var WellKnownSymbolsStore = shared('wks');
|
833
|
+
var WellKnownSymbolsStore$1 = shared('wks');
|
792
834
|
var QObject = global_1.QObject;
|
793
835
|
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
794
836
|
var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
|
@@ -931,7 +973,9 @@
|
|
931
973
|
redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
932
974
|
}
|
933
975
|
}
|
976
|
+
}
|
934
977
|
|
978
|
+
if (!useSymbolAsUid) {
|
935
979
|
wrappedWellKnownSymbol.f = function (name) {
|
936
980
|
return wrap(wellKnownSymbol(name), name);
|
937
981
|
};
|
@@ -941,7 +985,7 @@
|
|
941
985
|
Symbol: $Symbol
|
942
986
|
});
|
943
987
|
|
944
|
-
$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
|
988
|
+
$forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
|
945
989
|
defineWellKnownSymbol(name);
|
946
990
|
});
|
947
991
|
|
@@ -1000,34 +1044,41 @@
|
|
1000
1044
|
|
1001
1045
|
// `JSON.stringify` method behavior with symbols
|
1002
1046
|
// https://tc39.github.io/ecma262/#sec-json.stringify
|
1003
|
-
|
1004
|
-
var
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1047
|
+
if ($stringify) {
|
1048
|
+
var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
|
1049
|
+
var symbol = $Symbol();
|
1050
|
+
// MS Edge converts symbol values to JSON as {}
|
1051
|
+
return $stringify([symbol]) != '[null]'
|
1052
|
+
// WebKit converts symbol values to JSON as null
|
1053
|
+
|| $stringify({ a: symbol }) != '{}'
|
1054
|
+
// V8 throws on boxed symbols
|
1055
|
+
|| $stringify(Object(symbol)) != '{}';
|
1056
|
+
});
|
1057
|
+
|
1058
|
+
_export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
|
1059
|
+
// eslint-disable-next-line no-unused-vars
|
1060
|
+
stringify: function stringify(it, replacer, space) {
|
1061
|
+
var args = [it];
|
1062
|
+
var index = 1;
|
1063
|
+
var $replacer;
|
1064
|
+
while (arguments.length > index) args.push(arguments[index++]);
|
1065
|
+
$replacer = replacer;
|
1066
|
+
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
1067
|
+
if (!isArray(replacer)) replacer = function (key, value) {
|
1068
|
+
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
1069
|
+
if (!isSymbol(value)) return value;
|
1070
|
+
};
|
1071
|
+
args[1] = replacer;
|
1072
|
+
return $stringify.apply(null, args);
|
1073
|
+
}
|
1074
|
+
});
|
1075
|
+
}
|
1027
1076
|
|
1028
1077
|
// `Symbol.prototype[@@toPrimitive]` method
|
1029
1078
|
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
|
1030
|
-
if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE])
|
1079
|
+
if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
|
1080
|
+
createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
|
1081
|
+
}
|
1031
1082
|
// `Symbol.prototype[@@toStringTag]` property
|
1032
1083
|
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
|
1033
1084
|
setToStringTag($Symbol, SYMBOL);
|
@@ -1087,10 +1138,33 @@
|
|
1087
1138
|
else object[propertyKey] = value;
|
1088
1139
|
};
|
1089
1140
|
|
1141
|
+
var userAgent = getBuiltIn('navigator', 'userAgent') || '';
|
1142
|
+
|
1143
|
+
var process = global_1.process;
|
1144
|
+
var versions = process && process.versions;
|
1145
|
+
var v8 = versions && versions.v8;
|
1146
|
+
var match, version;
|
1147
|
+
|
1148
|
+
if (v8) {
|
1149
|
+
match = v8.split('.');
|
1150
|
+
version = match[0] + match[1];
|
1151
|
+
} else if (userAgent) {
|
1152
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
1153
|
+
if (!match || match[1] >= 74) {
|
1154
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
1155
|
+
if (match) version = match[1];
|
1156
|
+
}
|
1157
|
+
}
|
1158
|
+
|
1159
|
+
var v8Version = version && +version;
|
1160
|
+
|
1090
1161
|
var SPECIES$1 = wellKnownSymbol('species');
|
1091
1162
|
|
1092
1163
|
var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
|
1093
|
-
|
1164
|
+
// We can't use this feature detection in V8 since it causes
|
1165
|
+
// deoptimization and serious performance degradation
|
1166
|
+
// https://github.com/zloirock/core-js/issues/677
|
1167
|
+
return v8Version >= 51 || !fails(function () {
|
1094
1168
|
var array = [];
|
1095
1169
|
var constructor = array.constructor = {};
|
1096
1170
|
constructor[SPECIES$1] = function () {
|
@@ -1104,7 +1178,10 @@
|
|
1104
1178
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1105
1179
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1106
1180
|
|
1107
|
-
|
1181
|
+
// We can't use this feature detection in V8 since it causes
|
1182
|
+
// deoptimization and serious performance degradation
|
1183
|
+
// https://github.com/zloirock/core-js/issues/679
|
1184
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
|
1108
1185
|
var array = [];
|
1109
1186
|
array[IS_CONCAT_SPREADABLE] = false;
|
1110
1187
|
return array.concat()[0] !== array;
|
@@ -1148,10 +1225,17 @@
|
|
1148
1225
|
var $filter = arrayIteration.filter;
|
1149
1226
|
|
1150
1227
|
|
1228
|
+
|
1229
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
1230
|
+
// Edge 14- issue
|
1231
|
+
var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
|
1232
|
+
[].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
|
1233
|
+
});
|
1234
|
+
|
1151
1235
|
// `Array.prototype.filter` method
|
1152
1236
|
// https://tc39.github.io/ecma262/#sec-array.prototype.filter
|
1153
1237
|
// with adding support of @@species
|
1154
|
-
_export({ target: 'Array', proto: true, forced: !
|
1238
|
+
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
|
1155
1239
|
filter: function filter(callbackfn /* , thisArg */) {
|
1156
1240
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1157
1241
|
}
|
@@ -1163,7 +1247,10 @@
|
|
1163
1247
|
// Array.prototype[@@unscopables]
|
1164
1248
|
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
|
1165
1249
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
1166
|
-
|
1250
|
+
objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
|
1251
|
+
configurable: true,
|
1252
|
+
value: objectCreate(null)
|
1253
|
+
});
|
1167
1254
|
}
|
1168
1255
|
|
1169
1256
|
// add a key to Array.prototype[@@unscopables]
|
@@ -1273,7 +1360,9 @@
|
|
1273
1360
|
if (IteratorPrototype == undefined) IteratorPrototype = {};
|
1274
1361
|
|
1275
1362
|
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
1276
|
-
if ( !has(IteratorPrototype, ITERATOR))
|
1363
|
+
if ( !has(IteratorPrototype, ITERATOR)) {
|
1364
|
+
createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
|
1365
|
+
}
|
1277
1366
|
|
1278
1367
|
var iteratorsCore = {
|
1279
1368
|
IteratorPrototype: IteratorPrototype,
|
@@ -1357,7 +1446,7 @@
|
|
1357
1446
|
if (objectSetPrototypeOf) {
|
1358
1447
|
objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
|
1359
1448
|
} else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
|
1360
|
-
|
1449
|
+
createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
|
1361
1450
|
}
|
1362
1451
|
}
|
1363
1452
|
// Set @@toStringTag to native iterators
|
@@ -1373,7 +1462,7 @@
|
|
1373
1462
|
|
1374
1463
|
// define iterator
|
1375
1464
|
if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
1376
|
-
|
1465
|
+
createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
|
1377
1466
|
}
|
1378
1467
|
|
1379
1468
|
// export additional methods
|
@@ -1489,6 +1578,13 @@
|
|
1489
1578
|
});
|
1490
1579
|
|
1491
1580
|
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1581
|
+
var test = {};
|
1582
|
+
|
1583
|
+
test[TO_STRING_TAG$1] = 'z';
|
1584
|
+
|
1585
|
+
var toStringTagSupport = String(test) === '[object z]';
|
1586
|
+
|
1587
|
+
var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
1492
1588
|
// ES3 wrong here
|
1493
1589
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
1494
1590
|
|
@@ -1500,36 +1596,156 @@
|
|
1500
1596
|
};
|
1501
1597
|
|
1502
1598
|
// getting tag from ES6+ `Object.prototype.toString`
|
1503
|
-
var classof = function (it) {
|
1599
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
1504
1600
|
var O, tag, result;
|
1505
1601
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1506
1602
|
// @@toStringTag case
|
1507
|
-
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$
|
1603
|
+
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
|
1508
1604
|
// builtinTag case
|
1509
1605
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
1510
1606
|
// ES3 arguments fallback
|
1511
1607
|
: (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
|
1512
1608
|
};
|
1513
1609
|
|
1514
|
-
var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
1515
|
-
var test = {};
|
1516
|
-
|
1517
|
-
test[TO_STRING_TAG$2] = 'z';
|
1518
|
-
|
1519
1610
|
// `Object.prototype.toString` method implementation
|
1520
1611
|
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
1521
|
-
var objectToString =
|
1612
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1522
1613
|
return '[object ' + classof(this) + ']';
|
1523
|
-
}
|
1524
|
-
|
1525
|
-
var ObjectPrototype$2 = Object.prototype;
|
1614
|
+
};
|
1526
1615
|
|
1527
1616
|
// `Object.prototype.toString` method
|
1528
1617
|
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
1529
|
-
if (
|
1530
|
-
redefine(
|
1618
|
+
if (!toStringTagSupport) {
|
1619
|
+
redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1531
1620
|
}
|
1532
1621
|
|
1622
|
+
// `RegExp.prototype.flags` getter implementation
|
1623
|
+
// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
|
1624
|
+
var regexpFlags = function () {
|
1625
|
+
var that = anObject(this);
|
1626
|
+
var result = '';
|
1627
|
+
if (that.global) result += 'g';
|
1628
|
+
if (that.ignoreCase) result += 'i';
|
1629
|
+
if (that.multiline) result += 'm';
|
1630
|
+
if (that.dotAll) result += 's';
|
1631
|
+
if (that.unicode) result += 'u';
|
1632
|
+
if (that.sticky) result += 'y';
|
1633
|
+
return result;
|
1634
|
+
};
|
1635
|
+
|
1636
|
+
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
|
1637
|
+
// so we use an intermediate function.
|
1638
|
+
function RE(s, f) {
|
1639
|
+
return RegExp(s, f);
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
var UNSUPPORTED_Y = fails(function () {
|
1643
|
+
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
1644
|
+
var re = RE('a', 'y');
|
1645
|
+
re.lastIndex = 2;
|
1646
|
+
return re.exec('abcd') != null;
|
1647
|
+
});
|
1648
|
+
|
1649
|
+
var BROKEN_CARET = fails(function () {
|
1650
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
1651
|
+
var re = RE('^r', 'gy');
|
1652
|
+
re.lastIndex = 2;
|
1653
|
+
return re.exec('str') != null;
|
1654
|
+
});
|
1655
|
+
|
1656
|
+
var regexpStickyHelpers = {
|
1657
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y,
|
1658
|
+
BROKEN_CARET: BROKEN_CARET
|
1659
|
+
};
|
1660
|
+
|
1661
|
+
var nativeExec = RegExp.prototype.exec;
|
1662
|
+
// This always refers to the native implementation, because the
|
1663
|
+
// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
|
1664
|
+
// which loads this file before patching the method.
|
1665
|
+
var nativeReplace = String.prototype.replace;
|
1666
|
+
|
1667
|
+
var patchedExec = nativeExec;
|
1668
|
+
|
1669
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
1670
|
+
var re1 = /a/;
|
1671
|
+
var re2 = /b*/g;
|
1672
|
+
nativeExec.call(re1, 'a');
|
1673
|
+
nativeExec.call(re2, 'a');
|
1674
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
1675
|
+
})();
|
1676
|
+
|
1677
|
+
var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
|
1678
|
+
|
1679
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
1680
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
1681
|
+
|
1682
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
|
1683
|
+
|
1684
|
+
if (PATCH) {
|
1685
|
+
patchedExec = function exec(str) {
|
1686
|
+
var re = this;
|
1687
|
+
var lastIndex, reCopy, match, i;
|
1688
|
+
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
1689
|
+
var flags = regexpFlags.call(re);
|
1690
|
+
var source = re.source;
|
1691
|
+
var charsAdded = 0;
|
1692
|
+
var strCopy = str;
|
1693
|
+
|
1694
|
+
if (sticky) {
|
1695
|
+
flags = flags.replace('y', '');
|
1696
|
+
if (flags.indexOf('g') === -1) {
|
1697
|
+
flags += 'g';
|
1698
|
+
}
|
1699
|
+
|
1700
|
+
strCopy = String(str).slice(re.lastIndex);
|
1701
|
+
// Support anchored sticky behavior.
|
1702
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
|
1703
|
+
source = '(?: ' + source + ')';
|
1704
|
+
strCopy = ' ' + strCopy;
|
1705
|
+
charsAdded++;
|
1706
|
+
}
|
1707
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
1708
|
+
// simulate the 'y' flag.
|
1709
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
1710
|
+
}
|
1711
|
+
|
1712
|
+
if (NPCG_INCLUDED) {
|
1713
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
1714
|
+
}
|
1715
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
1716
|
+
|
1717
|
+
match = nativeExec.call(sticky ? reCopy : re, strCopy);
|
1718
|
+
|
1719
|
+
if (sticky) {
|
1720
|
+
if (match) {
|
1721
|
+
match.input = match.input.slice(charsAdded);
|
1722
|
+
match[0] = match[0].slice(charsAdded);
|
1723
|
+
match.index = re.lastIndex;
|
1724
|
+
re.lastIndex += match[0].length;
|
1725
|
+
} else re.lastIndex = 0;
|
1726
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
1727
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
1728
|
+
}
|
1729
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
1730
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
1731
|
+
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
1732
|
+
nativeReplace.call(match[0], reCopy, function () {
|
1733
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
1734
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
1735
|
+
}
|
1736
|
+
});
|
1737
|
+
}
|
1738
|
+
|
1739
|
+
return match;
|
1740
|
+
};
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
var regexpExec = patchedExec;
|
1744
|
+
|
1745
|
+
_export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
|
1746
|
+
exec: regexpExec
|
1747
|
+
});
|
1748
|
+
|
1533
1749
|
var MATCH = wellKnownSymbol('match');
|
1534
1750
|
|
1535
1751
|
// `IsRegExp` abstract operation
|
@@ -1622,72 +1838,6 @@
|
|
1622
1838
|
return { value: point, done: false };
|
1623
1839
|
});
|
1624
1840
|
|
1625
|
-
// `RegExp.prototype.flags` getter implementation
|
1626
|
-
// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
|
1627
|
-
var regexpFlags = function () {
|
1628
|
-
var that = anObject(this);
|
1629
|
-
var result = '';
|
1630
|
-
if (that.global) result += 'g';
|
1631
|
-
if (that.ignoreCase) result += 'i';
|
1632
|
-
if (that.multiline) result += 'm';
|
1633
|
-
if (that.dotAll) result += 's';
|
1634
|
-
if (that.unicode) result += 'u';
|
1635
|
-
if (that.sticky) result += 'y';
|
1636
|
-
return result;
|
1637
|
-
};
|
1638
|
-
|
1639
|
-
var nativeExec = RegExp.prototype.exec;
|
1640
|
-
// This always refers to the native implementation, because the
|
1641
|
-
// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
|
1642
|
-
// which loads this file before patching the method.
|
1643
|
-
var nativeReplace = String.prototype.replace;
|
1644
|
-
|
1645
|
-
var patchedExec = nativeExec;
|
1646
|
-
|
1647
|
-
var UPDATES_LAST_INDEX_WRONG = (function () {
|
1648
|
-
var re1 = /a/;
|
1649
|
-
var re2 = /b*/g;
|
1650
|
-
nativeExec.call(re1, 'a');
|
1651
|
-
nativeExec.call(re2, 'a');
|
1652
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
1653
|
-
})();
|
1654
|
-
|
1655
|
-
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
1656
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
1657
|
-
|
1658
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
|
1659
|
-
|
1660
|
-
if (PATCH) {
|
1661
|
-
patchedExec = function exec(str) {
|
1662
|
-
var re = this;
|
1663
|
-
var lastIndex, reCopy, match, i;
|
1664
|
-
|
1665
|
-
if (NPCG_INCLUDED) {
|
1666
|
-
reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
|
1667
|
-
}
|
1668
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
1669
|
-
|
1670
|
-
match = nativeExec.call(re, str);
|
1671
|
-
|
1672
|
-
if (UPDATES_LAST_INDEX_WRONG && match) {
|
1673
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
1674
|
-
}
|
1675
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
1676
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
1677
|
-
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
1678
|
-
nativeReplace.call(match[0], reCopy, function () {
|
1679
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
1680
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
1681
|
-
}
|
1682
|
-
});
|
1683
|
-
}
|
1684
|
-
|
1685
|
-
return match;
|
1686
|
-
};
|
1687
|
-
}
|
1688
|
-
|
1689
|
-
var regexpExec = patchedExec;
|
1690
|
-
|
1691
1841
|
var SPECIES$2 = wellKnownSymbol('species');
|
1692
1842
|
|
1693
1843
|
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
@@ -1703,6 +1853,12 @@
|
|
1703
1853
|
return ''.replace(re, '$<a>') !== '7';
|
1704
1854
|
});
|
1705
1855
|
|
1856
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
1857
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
1858
|
+
var REPLACE_KEEPS_$0 = (function () {
|
1859
|
+
return 'a'.replace(/./, '$0') === '$0';
|
1860
|
+
})();
|
1861
|
+
|
1706
1862
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
1707
1863
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
1708
1864
|
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
@@ -1727,15 +1883,22 @@
|
|
1727
1883
|
// Symbol-named RegExp methods call .exec
|
1728
1884
|
var execCalled = false;
|
1729
1885
|
var re = /a/;
|
1730
|
-
re.exec = function () { execCalled = true; return null; };
|
1731
1886
|
|
1732
1887
|
if (KEY === 'split') {
|
1888
|
+
// We can't use real regex here since it causes deoptimization
|
1889
|
+
// and serious performance degradation in V8
|
1890
|
+
// https://github.com/zloirock/core-js/issues/306
|
1891
|
+
re = {};
|
1733
1892
|
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
1734
1893
|
// a new one. We need to return the patched regex when creating the new one.
|
1735
1894
|
re.constructor = {};
|
1736
1895
|
re.constructor[SPECIES$2] = function () { return re; };
|
1896
|
+
re.flags = '';
|
1897
|
+
re[SYMBOL] = /./[SYMBOL];
|
1737
1898
|
}
|
1738
1899
|
|
1900
|
+
re.exec = function () { execCalled = true; return null; };
|
1901
|
+
|
1739
1902
|
re[SYMBOL]('');
|
1740
1903
|
return !execCalled;
|
1741
1904
|
});
|
@@ -1743,7 +1906,7 @@
|
|
1743
1906
|
if (
|
1744
1907
|
!DELEGATES_TO_SYMBOL ||
|
1745
1908
|
!DELEGATES_TO_EXEC ||
|
1746
|
-
(KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
|
1909
|
+
(KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
|
1747
1910
|
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
1748
1911
|
) {
|
1749
1912
|
var nativeRegExpMethod = /./[SYMBOL];
|
@@ -1758,7 +1921,7 @@
|
|
1758
1921
|
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
1759
1922
|
}
|
1760
1923
|
return { done: false };
|
1761
|
-
});
|
1924
|
+
}, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
|
1762
1925
|
var stringMethod = methods[0];
|
1763
1926
|
var regexMethod = methods[1];
|
1764
1927
|
|
@@ -1771,8 +1934,9 @@
|
|
1771
1934
|
// 21.2.5.9 RegExp.prototype[@@search](string)
|
1772
1935
|
: function (string) { return regexMethod.call(string, this); }
|
1773
1936
|
);
|
1774
|
-
if (sham) hide(RegExp.prototype[SYMBOL], 'sham', true);
|
1775
1937
|
}
|
1938
|
+
|
1939
|
+
if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
|
1776
1940
|
};
|
1777
1941
|
|
1778
1942
|
// `SameValue` abstract operation
|
@@ -1926,15 +2090,17 @@
|
|
1926
2090
|
if (CollectionPrototype) {
|
1927
2091
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
1928
2092
|
if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
|
1929
|
-
|
2093
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
|
1930
2094
|
} catch (error) {
|
1931
2095
|
CollectionPrototype[ITERATOR$2] = ArrayValues;
|
1932
2096
|
}
|
1933
|
-
if (!CollectionPrototype[TO_STRING_TAG$3])
|
2097
|
+
if (!CollectionPrototype[TO_STRING_TAG$3]) {
|
2098
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
|
2099
|
+
}
|
1934
2100
|
if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
|
1935
2101
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
1936
2102
|
if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
|
1937
|
-
|
2103
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
|
1938
2104
|
} catch (error) {
|
1939
2105
|
CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
|
1940
2106
|
}
|
@@ -2045,11 +2211,31 @@
|
|
2045
2211
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
2046
2212
|
}
|
2047
2213
|
|
2214
|
+
function _toConsumableArray(arr) {
|
2215
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
2216
|
+
}
|
2217
|
+
|
2218
|
+
function _arrayWithoutHoles(arr) {
|
2219
|
+
if (Array.isArray(arr)) {
|
2220
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
2221
|
+
|
2222
|
+
return arr2;
|
2223
|
+
}
|
2224
|
+
}
|
2225
|
+
|
2048
2226
|
function _arrayWithHoles(arr) {
|
2049
2227
|
if (Array.isArray(arr)) return arr;
|
2050
2228
|
}
|
2051
2229
|
|
2230
|
+
function _iterableToArray(iter) {
|
2231
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
2232
|
+
}
|
2233
|
+
|
2052
2234
|
function _iterableToArrayLimit(arr, i) {
|
2235
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
2236
|
+
return;
|
2237
|
+
}
|
2238
|
+
|
2053
2239
|
var _arr = [];
|
2054
2240
|
var _n = true;
|
2055
2241
|
var _d = false;
|
@@ -2075,6 +2261,10 @@
|
|
2075
2261
|
return _arr;
|
2076
2262
|
}
|
2077
2263
|
|
2264
|
+
function _nonIterableSpread() {
|
2265
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
2266
|
+
}
|
2267
|
+
|
2078
2268
|
function _nonIterableRest() {
|
2079
2269
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
2080
2270
|
}
|
@@ -2088,13 +2278,13 @@
|
|
2088
2278
|
*/
|
2089
2279
|
|
2090
2280
|
var Utils = $.fn.bootstrapTable.utils;
|
2091
|
-
var
|
2281
|
+
var theme = {
|
2092
2282
|
bootstrap3: {
|
2093
2283
|
icons: {
|
2094
2284
|
advancedSearchIcon: 'glyphicon-chevron-down'
|
2095
2285
|
},
|
2096
2286
|
html: {
|
2097
|
-
|
2287
|
+
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0px; padding-left: 0px;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
|
2098
2288
|
}
|
2099
2289
|
},
|
2100
2290
|
bootstrap4: {
|
@@ -2102,7 +2292,47 @@
|
|
2102
2292
|
advancedSearchIcon: 'fa-chevron-down'
|
2103
2293
|
},
|
2104
2294
|
html: {
|
2105
|
-
|
2295
|
+
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
|
2296
|
+
}
|
2297
|
+
},
|
2298
|
+
bootstrap5: {
|
2299
|
+
icons: {
|
2300
|
+
advancedSearchIcon: 'fa-chevron-down'
|
2301
|
+
},
|
2302
|
+
html: {
|
2303
|
+
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
|
2304
|
+
}
|
2305
|
+
},
|
2306
|
+
bulma: {
|
2307
|
+
icons: {
|
2308
|
+
advancedSearchIcon: 'fa-chevron-down'
|
2309
|
+
},
|
2310
|
+
html: {
|
2311
|
+
modal: "\n <div class=\"modal\" id=\"avdSearchModal_%s\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title\">%s</p>\n <button class=\"delete\" aria-label=\"close\"></button>\n </header>\n <section class=\"modal-card-body\" id=\"avdSearchModalContent_%s\"></section>\n <footer class=\"modal-card-foot\">\n <button class=\"button\" id=\"btnCloseAvd_%s\" data-close=\"btn btn-%s\">%s</button>\n </footer>\n </div>\n </div>\n "
|
2312
|
+
}
|
2313
|
+
},
|
2314
|
+
foundation: {
|
2315
|
+
icons: {
|
2316
|
+
advancedSearchIcon: 'fa-chevron-down'
|
2317
|
+
},
|
2318
|
+
html: {
|
2319
|
+
modal: "\n <div class=\"reveal\" id=\"avdSearchModal_%s\" data-reveal>\n <h1>%s</h1>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n <button class=\"close-button\" data-close aria-label=\"Close modal\" type=\"button\">\n <span aria-hidden=\"true\">×</span>\n </button>\n\n <button id=\"btnCloseAvd_%s\" class=\"%s\" type=\"button\">%s</button>\n </div>\n "
|
2320
|
+
}
|
2321
|
+
},
|
2322
|
+
materialize: {
|
2323
|
+
icons: {
|
2324
|
+
advancedSearchIcon: 'expand_more'
|
2325
|
+
},
|
2326
|
+
html: {
|
2327
|
+
modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal\">\n <div class=\"modal-content\">\n <h4>%s</h4>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n </div>\n <div class=\"modal-footer\">\n <a href=\"javascript:void(0)\"\" id=\"btnCloseAvd_%s\" class=\"modal-close waves-effect waves-green btn-flat %s\">%s</a>\n </div>\n </div>\n "
|
2328
|
+
}
|
2329
|
+
},
|
2330
|
+
semantic: {
|
2331
|
+
icons: {
|
2332
|
+
advancedSearchIcon: 'fa-chevron-down'
|
2333
|
+
},
|
2334
|
+
html: {
|
2335
|
+
modal: "\n <div class=\"ui modal\" id=\"avdSearchModal_%s\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n %s\n </div>\n <div class=\"image content ui form\" id=\"avdSearchModalContent_%s\"></div>\n <div class=\"actions\">\n <div id=\"btnCloseAvd_%s\" class=\"ui black deny button %s\">%s</div>\n </div>\n </div>\n "
|
2106
2336
|
}
|
2107
2337
|
}
|
2108
2338
|
}[$.fn.bootstrapTable.theme];
|
@@ -2116,7 +2346,7 @@
|
|
2116
2346
|
}
|
2117
2347
|
});
|
2118
2348
|
$.extend($.fn.bootstrapTable.defaults.icons, {
|
2119
|
-
advancedSearchIcon:
|
2349
|
+
advancedSearchIcon: theme.icons.advancedSearchIcon
|
2120
2350
|
});
|
2121
2351
|
$.extend($.fn.bootstrapTable.Constructor.EVENTS, {
|
2122
2352
|
'column-advanced-search.bs.table': 'onColumnAdvancedSearch'
|
@@ -2156,7 +2386,7 @@
|
|
2156
2386
|
return;
|
2157
2387
|
}
|
2158
2388
|
|
2159
|
-
this.$toolbar.find('>.columns').append("\n <button class=\"
|
2389
|
+
this.$toolbar.find('>.columns').append("\n <button class=\"".concat(this.constants.buttonsClass, " \"\n type=\"button\"\n name=\"advancedSearch\"\n aria-label=\"advanced search\"\n title=\"").concat(o.formatAdvancedSearch(), "\">\n ").concat(this.options.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.advancedSearchIcon) : '', "\n ").concat(this.options.showButtonText ? this.options.formatAdvancedSearch() : '', "\n </button>\n "));
|
2160
2390
|
this.$toolbar.find('button[name="advancedSearch"]').off('click').on('click', function () {
|
2161
2391
|
return _this.showAvdSearch();
|
2162
2392
|
});
|
@@ -2167,9 +2397,10 @@
|
|
2167
2397
|
var _this2 = this;
|
2168
2398
|
|
2169
2399
|
var o = this.options;
|
2400
|
+
var modalSelector = '#avdSearchModal_' + o.idTable;
|
2170
2401
|
|
2171
|
-
if (
|
2172
|
-
$('body').append(
|
2402
|
+
if ($(modalSelector).length <= 0) {
|
2403
|
+
$('body').append(Utils.sprintf(theme.html.modal, o.idTable, o.formatAdvancedSearch(), o.idTable, o.idTable, o.buttonsClass, o.formatAdvancedCloseButton()));
|
2173
2404
|
var timeoutId = 0;
|
2174
2405
|
$("#avdSearchModalContent_".concat(o.idTable)).append(this.createFormAvd().join(''));
|
2175
2406
|
$("#".concat(o.idForm)).off('keyup blur', 'input').on('keyup blur', 'input', function (e) {
|
@@ -2183,19 +2414,75 @@
|
|
2183
2414
|
}
|
2184
2415
|
});
|
2185
2416
|
$("#btnCloseAvd_".concat(o.idTable)).click(function () {
|
2186
|
-
|
2187
|
-
|
2188
|
-
if (o.sidePagination === 'server') {
|
2189
|
-
_this2.options.pageNumber = 1;
|
2417
|
+
return _this2.hideModal();
|
2418
|
+
});
|
2190
2419
|
|
2191
|
-
|
2420
|
+
if ($.fn.bootstrapTable.theme === 'bulma') {
|
2421
|
+
$(modalSelector).find('.delete').off('click').on('click', function () {
|
2422
|
+
return _this2.hideModal();
|
2423
|
+
});
|
2424
|
+
}
|
2192
2425
|
|
2193
|
-
|
2194
|
-
}
|
2195
|
-
});
|
2196
|
-
$("#avdSearchModal_".concat(o.idTable)).modal();
|
2426
|
+
this.showModal();
|
2197
2427
|
} else {
|
2198
|
-
|
2428
|
+
this.showModal();
|
2429
|
+
}
|
2430
|
+
}
|
2431
|
+
}, {
|
2432
|
+
key: "showModal",
|
2433
|
+
value: function showModal() {
|
2434
|
+
var modalSelector = '#avdSearchModal_' + this.options.idTable;
|
2435
|
+
|
2436
|
+
if ($.inArray($.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
|
2437
|
+
$(modalSelector).modal();
|
2438
|
+
} else if ($.fn.bootstrapTable.theme === 'bootstrap5') {
|
2439
|
+
if (!this.toolbarModal) {
|
2440
|
+
// eslint-disable-next-line no-undef
|
2441
|
+
this.toolbarModal = new bootstrap.Modal(document.getElementById('avdSearchModal_' + this.options.idTable), {});
|
2442
|
+
}
|
2443
|
+
|
2444
|
+
this.toolbarModal.show();
|
2445
|
+
} else if ($.fn.bootstrapTable.theme === 'bulma') {
|
2446
|
+
$(modalSelector).toggleClass('is-active');
|
2447
|
+
} else if ($.fn.bootstrapTable.theme === 'foundation') {
|
2448
|
+
if (!this.toolbarModal) {
|
2449
|
+
// eslint-disable-next-line no-undef
|
2450
|
+
this.toolbarModal = new Foundation.Reveal($(modalSelector));
|
2451
|
+
}
|
2452
|
+
|
2453
|
+
this.toolbarModal.open();
|
2454
|
+
} else if ($.fn.bootstrapTable.theme === 'materialize') {
|
2455
|
+
$(modalSelector).modal();
|
2456
|
+
$(modalSelector).modal('open');
|
2457
|
+
} else if ($.fn.bootstrapTable.theme === 'semantic') {
|
2458
|
+
$(modalSelector).modal('show');
|
2459
|
+
}
|
2460
|
+
}
|
2461
|
+
}, {
|
2462
|
+
key: "hideModal",
|
2463
|
+
value: function hideModal() {
|
2464
|
+
var $closeModalButton = $("#avdSearchModal_".concat(this.options.idTable));
|
2465
|
+
var modalSelector = '#avdSearchModal_' + this.options.idTable;
|
2466
|
+
|
2467
|
+
if ($.inArray($.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
|
2468
|
+
$closeModalButton.modal('hide');
|
2469
|
+
} else if ($.fn.bootstrapTable.theme === 'bootstrap5') {
|
2470
|
+
this.toolbarModal.hide();
|
2471
|
+
} else if ($.fn.bootstrapTable.theme === 'bulma') {
|
2472
|
+
$('html').toggleClass('is-clipped');
|
2473
|
+
$(modalSelector).toggleClass('is-active');
|
2474
|
+
} else if ($.fn.bootstrapTable.theme === 'foundation') {
|
2475
|
+
this.toolbarModal.close();
|
2476
|
+
} else if ($.fn.bootstrapTable.theme === 'materialize') {
|
2477
|
+
$(modalSelector).modal('open');
|
2478
|
+
} else if ($.fn.bootstrapTable.theme === 'semantic') {
|
2479
|
+
$(modalSelector).modal('close');
|
2480
|
+
}
|
2481
|
+
|
2482
|
+
if (this.options.sidePagination === 'server') {
|
2483
|
+
this.options.pageNumber = 1;
|
2484
|
+
this.updatePagination();
|
2485
|
+
this.trigger('column-advanced-search', this.filterColumnsPartial);
|
2199
2486
|
}
|
2200
2487
|
}
|
2201
2488
|
}, {
|
@@ -2212,7 +2499,7 @@
|
|
2212
2499
|
var column = _step.value;
|
2213
2500
|
|
2214
2501
|
if (!column.checkbox && column.visible && column.searchable) {
|
2215
|
-
html.push("\n <div class=\"form-group row\">\n <label class=\"col-sm-4 control-label\">".concat(column.title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control input
|
2502
|
+
html.push("\n <div class=\"form-group row\">\n <label class=\"col-sm-4 control-label\">".concat(column.title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control ").concat(this.constants.classes.input, "\" name=\"").concat(column.field, "\" placeholder=\"").concat(column.title, "\" id=\"").concat(column.field, "\">\n </div>\n </div>\n "));
|
2216
2503
|
}
|
2217
2504
|
}
|
2218
2505
|
} catch (err) {
|
@@ -2265,6 +2552,7 @@
|
|
2265
2552
|
|
2266
2553
|
return true;
|
2267
2554
|
}) : this.data;
|
2555
|
+
this.unsortedData = _toConsumableArray(this.data);
|
2268
2556
|
}
|
2269
2557
|
}, {
|
2270
2558
|
key: "onColumnAdvancedSearch",
|
@@ -2294,4 +2582,4 @@
|
|
2294
2582
|
return _class;
|
2295
2583
|
}($.BootstrapTable);
|
2296
2584
|
|
2297
|
-
}));
|
2585
|
+
})));
|