bootstrap-table-rails 1.15.5 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -4
  3. data/lib/bootstrap-table-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +106 -64
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +678 -208
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +680 -210
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +66 -10
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +742 -489
  9. data/vendor/assets/javascripts/bootstrap-table/extensions/accent-neutralise/bootstrap-table-accent-neutralise.js +1103 -213
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +226 -80
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +136 -64
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.js +338 -177
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +402 -110
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +133 -61
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +82 -41
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +243 -75
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +347 -179
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +1 -1
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +687 -358
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.css +12 -14
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +545 -422
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +488 -92
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +2 -2
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +216 -72
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +142 -65
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +345 -137
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +136 -64
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +86 -41
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +218 -123
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +640 -254
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +347 -135
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +83 -43
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.css +0 -1
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +203 -75
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +449 -199
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +207 -114
  37. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +82 -41
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +82 -41
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +82 -41
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +82 -41
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +82 -41
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +82 -41
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +82 -41
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +82 -41
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +104 -62
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +82 -41
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +82 -41
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +82 -41
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +82 -41
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +82 -41
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +82 -41
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +82 -41
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +82 -41
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +82 -41
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +82 -41
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +82 -41
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +82 -41
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +83 -42
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +82 -41
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +82 -41
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +82 -41
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +82 -41
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +82 -41
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +82 -41
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +82 -41
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +82 -41
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +82 -41
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +82 -41
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +82 -41
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +82 -41
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +82 -41
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +82 -41
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +83 -42
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +82 -41
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +82 -41
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +82 -41
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +82 -41
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +82 -41
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +82 -41
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +82 -41
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +82 -41
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +82 -41
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +82 -41
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +82 -41
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +82 -41
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +82 -41
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +82 -41
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +82 -41
  89. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +80 -11
  90. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +106 -60
  91. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +79 -13
  92. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +111 -62
  93. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +74 -9
  94. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +109 -63
  95. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +80 -13
  96. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +110 -64
  97. metadata +1 -2
  98. data/vendor/assets/javascripts/bootstrap-table/extensions/natural-sorting/bootstrap-table-natural-sorting.js +0 -1265
@@ -2,7 +2,7 @@
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
  $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
8
8
 
@@ -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 == O && globalThis) ||
24
- check(typeof window == O && window) ||
25
- check(typeof self == O && self) ||
26
- check(typeof commonjsGlobal == O && 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 hide = descriptors ? function (object, key, value) {
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
- hide(global_1, key, value);
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 store[key] || (store[key] = value !== undefined ? value : {});
218
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
203
219
  })('versions', []).push({
204
- version: '3.1.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
- hide(it, STATE, metadata);
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(functionToString).split('toString');
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')) hide(value, 'name', key);
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 hide(O, key, value);
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 || functionToString.call(this);
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(length, length).
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
- hide(sourceProperty, 'sham', true);
522
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
517
523
  }
518
524
  // extend global
519
525
  redefine(target, key, sourceProperty, options);
@@ -544,12 +550,21 @@
544
550
  return !String(Symbol());
545
551
  });
546
552
 
553
+ var useSymbolAsUid = nativeSymbol
554
+ // eslint-disable-next-line no-undef
555
+ && !Symbol.sham
556
+ // eslint-disable-next-line no-undef
557
+ && typeof Symbol() == 'symbol';
558
+
559
+ var WellKnownSymbolsStore = shared('wks');
547
560
  var Symbol$1 = global_1.Symbol;
548
- var store$1 = shared('wks');
561
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
549
562
 
550
563
  var wellKnownSymbol = function (name) {
551
- return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
552
- || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
564
+ if (!has(WellKnownSymbolsStore, name)) {
565
+ if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
566
+ else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
567
+ } return WellKnownSymbolsStore[name];
553
568
  };
554
569
 
555
570
  var SPECIES = wellKnownSymbol('species');
@@ -569,10 +584,33 @@
569
584
  } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
570
585
  };
571
586
 
587
+ var userAgent = getBuiltIn('navigator', 'userAgent') || '';
588
+
589
+ var process = global_1.process;
590
+ var versions = process && process.versions;
591
+ var v8 = versions && versions.v8;
592
+ var match, version;
593
+
594
+ if (v8) {
595
+ match = v8.split('.');
596
+ version = match[0] + match[1];
597
+ } else if (userAgent) {
598
+ match = userAgent.match(/Edge\/(\d+)/);
599
+ if (!match || match[1] >= 74) {
600
+ match = userAgent.match(/Chrome\/(\d+)/);
601
+ if (match) version = match[1];
602
+ }
603
+ }
604
+
605
+ var v8Version = version && +version;
606
+
572
607
  var SPECIES$1 = wellKnownSymbol('species');
573
608
 
574
609
  var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
575
- return !fails(function () {
610
+ // We can't use this feature detection in V8 since it causes
611
+ // deoptimization and serious performance degradation
612
+ // https://github.com/zloirock/core-js/issues/677
613
+ return v8Version >= 51 || !fails(function () {
576
614
  var array = [];
577
615
  var constructor = array.constructor = {};
578
616
  constructor[SPECIES$1] = function () {
@@ -586,7 +624,10 @@
586
624
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
587
625
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
588
626
 
589
- var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
627
+ // We can't use this feature detection in V8 since it causes
628
+ // deoptimization and serious performance degradation
629
+ // https://github.com/zloirock/core-js/issues/679
630
+ var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
590
631
  var array = [];
591
632
  array[IS_CONCAT_SPREADABLE] = false;
592
633
  return array.concat()[0] !== array;
@@ -736,56 +777,87 @@
736
777
 
737
778
  var html = getBuiltIn('document', 'documentElement');
738
779
 
780
+ var GT = '>';
781
+ var LT = '<';
782
+ var PROTOTYPE = 'prototype';
783
+ var SCRIPT = 'script';
739
784
  var IE_PROTO = sharedKey('IE_PROTO');
740
785
 
741
- var PROTOTYPE = 'prototype';
742
- var Empty = function () { /* empty */ };
786
+ var EmptyConstructor = function () { /* empty */ };
787
+
788
+ var scriptTag = function (content) {
789
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
790
+ };
791
+
792
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
793
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
794
+ activeXDocument.write(scriptTag(''));
795
+ activeXDocument.close();
796
+ var temp = activeXDocument.parentWindow.Object;
797
+ activeXDocument = null; // avoid memory leak
798
+ return temp;
799
+ };
743
800
 
744
801
  // Create object with fake `null` prototype: use iframe Object with cleared prototype
745
- var createDict = function () {
802
+ var NullProtoObjectViaIFrame = function () {
746
803
  // Thrash, waste and sodomy: IE GC bug
747
804
  var iframe = documentCreateElement('iframe');
748
- var length = enumBugKeys.length;
749
- var lt = '<';
750
- var script = 'script';
751
- var gt = '>';
752
- var js = 'java' + script + ':';
805
+ var JS = 'java' + SCRIPT + ':';
753
806
  var iframeDocument;
754
807
  iframe.style.display = 'none';
755
808
  html.appendChild(iframe);
756
- iframe.src = String(js);
809
+ // https://github.com/zloirock/core-js/issues/475
810
+ iframe.src = String(JS);
757
811
  iframeDocument = iframe.contentWindow.document;
758
812
  iframeDocument.open();
759
- iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
813
+ iframeDocument.write(scriptTag('document.F=Object'));
760
814
  iframeDocument.close();
761
- createDict = iframeDocument.F;
762
- while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
763
- return createDict();
815
+ return iframeDocument.F;
764
816
  };
765
817
 
818
+ // Check for document.domain and active x support
819
+ // No need to use active x approach when document.domain is not set
820
+ // see https://github.com/es-shims/es5-shim/issues/150
821
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
822
+ // avoid IE GC bug
823
+ var activeXDocument;
824
+ var NullProtoObject = function () {
825
+ try {
826
+ /* global ActiveXObject */
827
+ activeXDocument = document.domain && new ActiveXObject('htmlfile');
828
+ } catch (error) { /* ignore */ }
829
+ NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
830
+ var length = enumBugKeys.length;
831
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
832
+ return NullProtoObject();
833
+ };
834
+
835
+ hiddenKeys[IE_PROTO] = true;
836
+
766
837
  // `Object.create` method
767
838
  // https://tc39.github.io/ecma262/#sec-object.create
768
839
  var objectCreate = Object.create || function create(O, Properties) {
769
840
  var result;
770
841
  if (O !== null) {
771
- Empty[PROTOTYPE] = anObject(O);
772
- result = new Empty();
773
- Empty[PROTOTYPE] = null;
842
+ EmptyConstructor[PROTOTYPE] = anObject(O);
843
+ result = new EmptyConstructor();
844
+ EmptyConstructor[PROTOTYPE] = null;
774
845
  // add "__proto__" for Object.getPrototypeOf polyfill
775
846
  result[IE_PROTO] = O;
776
- } else result = createDict();
847
+ } else result = NullProtoObject();
777
848
  return Properties === undefined ? result : objectDefineProperties(result, Properties);
778
849
  };
779
850
 
780
- hiddenKeys[IE_PROTO] = true;
781
-
782
851
  var UNSCOPABLES = wellKnownSymbol('unscopables');
783
852
  var ArrayPrototype = Array.prototype;
784
853
 
785
854
  // Array.prototype[@@unscopables]
786
855
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
787
856
  if (ArrayPrototype[UNSCOPABLES] == undefined) {
788
- hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
857
+ objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
858
+ configurable: true,
859
+ value: objectCreate(null)
860
+ });
789
861
  }
790
862
 
791
863
  // add a key to Array.prototype[@@unscopables]
@@ -867,6 +939,31 @@
867
939
  return result;
868
940
  };
869
941
 
942
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
943
+ // so we use an intermediate function.
944
+ function RE(s, f) {
945
+ return RegExp(s, f);
946
+ }
947
+
948
+ var UNSUPPORTED_Y = fails(function () {
949
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
950
+ var re = RE('a', 'y');
951
+ re.lastIndex = 2;
952
+ return re.exec('abcd') != null;
953
+ });
954
+
955
+ var BROKEN_CARET = fails(function () {
956
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
957
+ var re = RE('^r', 'gy');
958
+ re.lastIndex = 2;
959
+ return re.exec('str') != null;
960
+ });
961
+
962
+ var regexpStickyHelpers = {
963
+ UNSUPPORTED_Y: UNSUPPORTED_Y,
964
+ BROKEN_CARET: BROKEN_CARET
965
+ };
966
+
870
967
  var nativeExec = RegExp.prototype.exec;
871
968
  // This always refers to the native implementation, because the
872
969
  // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
@@ -883,24 +980,56 @@
883
980
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
884
981
  })();
885
982
 
983
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
984
+
886
985
  // nonparticipating capturing group, copied from es5-shim's String#split patch.
887
986
  var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
888
987
 
889
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
988
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
890
989
 
891
990
  if (PATCH) {
892
991
  patchedExec = function exec(str) {
893
992
  var re = this;
894
993
  var lastIndex, reCopy, match, i;
994
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
995
+ var flags = regexpFlags.call(re);
996
+ var source = re.source;
997
+ var charsAdded = 0;
998
+ var strCopy = str;
999
+
1000
+ if (sticky) {
1001
+ flags = flags.replace('y', '');
1002
+ if (flags.indexOf('g') === -1) {
1003
+ flags += 'g';
1004
+ }
1005
+
1006
+ strCopy = String(str).slice(re.lastIndex);
1007
+ // Support anchored sticky behavior.
1008
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
1009
+ source = '(?: ' + source + ')';
1010
+ strCopy = ' ' + strCopy;
1011
+ charsAdded++;
1012
+ }
1013
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1014
+ // simulate the 'y' flag.
1015
+ reCopy = new RegExp('^(?:' + source + ')', flags);
1016
+ }
895
1017
 
896
1018
  if (NPCG_INCLUDED) {
897
- reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
1019
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
898
1020
  }
899
1021
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
900
1022
 
901
- match = nativeExec.call(re, str);
1023
+ match = nativeExec.call(sticky ? reCopy : re, strCopy);
902
1024
 
903
- if (UPDATES_LAST_INDEX_WRONG && match) {
1025
+ if (sticky) {
1026
+ if (match) {
1027
+ match.input = match.input.slice(charsAdded);
1028
+ match[0] = match[0].slice(charsAdded);
1029
+ match.index = re.lastIndex;
1030
+ re.lastIndex += match[0].length;
1031
+ } else re.lastIndex = 0;
1032
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
904
1033
  re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
905
1034
  }
906
1035
  if (NPCG_INCLUDED && match && match.length > 1) {
@@ -919,6 +1048,10 @@
919
1048
 
920
1049
  var regexpExec = patchedExec;
921
1050
 
1051
+ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
1052
+ exec: regexpExec
1053
+ });
1054
+
922
1055
  var SPECIES$2 = wellKnownSymbol('species');
923
1056
 
924
1057
  var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
@@ -934,6 +1067,12 @@
934
1067
  return ''.replace(re, '$<a>') !== '7';
935
1068
  });
936
1069
 
1070
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
1071
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1072
+ var REPLACE_KEEPS_$0 = (function () {
1073
+ return 'a'.replace(/./, '$0') === '$0';
1074
+ })();
1075
+
937
1076
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
938
1077
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
939
1078
  var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
@@ -958,15 +1097,22 @@
958
1097
  // Symbol-named RegExp methods call .exec
959
1098
  var execCalled = false;
960
1099
  var re = /a/;
961
- re.exec = function () { execCalled = true; return null; };
962
1100
 
963
1101
  if (KEY === 'split') {
1102
+ // We can't use real regex here since it causes deoptimization
1103
+ // and serious performance degradation in V8
1104
+ // https://github.com/zloirock/core-js/issues/306
1105
+ re = {};
964
1106
  // RegExp[@@split] doesn't call the regex's exec method, but first creates
965
1107
  // a new one. We need to return the patched regex when creating the new one.
966
1108
  re.constructor = {};
967
1109
  re.constructor[SPECIES$2] = function () { return re; };
1110
+ re.flags = '';
1111
+ re[SYMBOL] = /./[SYMBOL];
968
1112
  }
969
1113
 
1114
+ re.exec = function () { execCalled = true; return null; };
1115
+
970
1116
  re[SYMBOL]('');
971
1117
  return !execCalled;
972
1118
  });
@@ -974,7 +1120,7 @@
974
1120
  if (
975
1121
  !DELEGATES_TO_SYMBOL ||
976
1122
  !DELEGATES_TO_EXEC ||
977
- (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
1123
+ (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
978
1124
  (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
979
1125
  ) {
980
1126
  var nativeRegExpMethod = /./[SYMBOL];
@@ -989,7 +1135,7 @@
989
1135
  return { done: true, value: nativeMethod.call(str, regexp, arg2) };
990
1136
  }
991
1137
  return { done: false };
992
- });
1138
+ }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
993
1139
  var stringMethod = methods[0];
994
1140
  var regexMethod = methods[1];
995
1141
 
@@ -1002,8 +1148,9 @@
1002
1148
  // 21.2.5.9 RegExp.prototype[@@search](string)
1003
1149
  : function (string) { return regexMethod.call(string, this); }
1004
1150
  );
1005
- if (sham) hide(RegExp.prototype[SYMBOL], 'sham', true);
1006
1151
  }
1152
+
1153
+ if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1007
1154
  };
1008
1155
 
1009
1156
  // `String.prototype.{ codePointAt, at }` methods implementation
@@ -1069,7 +1216,7 @@
1069
1216
  };
1070
1217
 
1071
1218
  // @@replace logic
1072
- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative) {
1219
+ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1073
1220
  return [
1074
1221
  // `String.prototype.replace` method
1075
1222
  // https://tc39.github.io/ecma262/#sec-string.prototype.replace
@@ -1083,8 +1230,10 @@
1083
1230
  // `RegExp.prototype[@@replace]` method
1084
1231
  // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1085
1232
  function (regexp, replaceValue) {
1086
- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1087
- if (res.done) return res.value;
1233
+ if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
1234
+ var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1235
+ if (res.done) return res.value;
1236
+ }
1088
1237
 
1089
1238
  var rx = anObject(regexp);
1090
1239
  var S = String(this);
@@ -1324,6 +1473,7 @@
1324
1473
  return;
1325
1474
  }
1326
1475
 
1476
+ this.editedCells = [];
1327
1477
  $.each(this.columns, function (i, column) {
1328
1478
  if (!column.editable) {
1329
1479
  return;
@@ -1355,6 +1505,15 @@
1355
1505
  column.formatter = function (value, row, index) {
1356
1506
  var result = Utils.calculateObjectValue(column, column._formatter, [value, row, index], value);
1357
1507
  result = typeof result === 'undefined' || result === null ? _this.options.undefinedText : result;
1508
+
1509
+ if (_this.options.uniqueId !== undefined) {
1510
+ var uniqueId = Utils.getItemField(row, _this.options.uniqueId, false);
1511
+
1512
+ if ($.inArray(column.field + uniqueId, _this.editedCells) !== -1) {
1513
+ result = value;
1514
+ }
1515
+ }
1516
+
1358
1517
  $.each(column, processDataOptions);
1359
1518
  $.each(editableOptions, function (key, value) {
1360
1519
  editableDataMarkup.push(" ".concat(key, "=\"").concat(value, "\""));
@@ -1411,6 +1570,15 @@
1411
1570
  var rowIndex = $this.parents('tr[data-index]').data('index');
1412
1571
  var row = data[rowIndex];
1413
1572
  var oldValue = row[column.field];
1573
+
1574
+ if (_this2.options.uniqueId !== undefined) {
1575
+ var uniqueId = Utils.getItemField(row, _this2.options.uniqueId, false);
1576
+
1577
+ if ($.inArray(column.field + uniqueId, _this2.editedCells) === -1) {
1578
+ _this2.editedCells.push(column.field + uniqueId);
1579
+ }
1580
+ }
1581
+
1414
1582
  $this.data('value', submitValue);
1415
1583
  row[column.field] = submitValue;
1416
1584
 
@@ -1448,4 +1616,4 @@
1448
1616
  return _class;
1449
1617
  }($.BootstrapTable);
1450
1618
 
1451
- }));
1619
+ })));