melondtable 1.15.3 → 1.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -271,11 +271,6 @@ var DataTable = (function (Sortable) {
271
271
 
272
272
  var isObject_1 = isObject;
273
273
 
274
- var isObject$1 = /*#__PURE__*/Object.freeze({
275
- default: isObject_1,
276
- __moduleExports: isObject_1
277
- });
278
-
279
274
  var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
280
275
 
281
276
  function commonjsRequire () {
@@ -295,28 +290,14 @@ var DataTable = (function (Sortable) {
295
290
 
296
291
  var _freeGlobal = freeGlobal;
297
292
 
298
- var _freeGlobal$1 = /*#__PURE__*/Object.freeze({
299
- default: _freeGlobal,
300
- __moduleExports: _freeGlobal
301
- });
302
-
303
- var freeGlobal$1 = ( _freeGlobal$1 && _freeGlobal ) || _freeGlobal$1;
304
-
305
293
  /** Detect free variable `self`. */
306
294
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
307
295
 
308
296
  /** Used as a reference to the global object. */
309
- var root = freeGlobal$1 || freeSelf || Function('return this')();
297
+ var root = _freeGlobal || freeSelf || Function('return this')();
310
298
 
311
299
  var _root = root;
312
300
 
313
- var _root$1 = /*#__PURE__*/Object.freeze({
314
- default: _root,
315
- __moduleExports: _root
316
- });
317
-
318
- var root$1 = ( _root$1 && _root ) || _root$1;
319
-
320
301
  /**
321
302
  * Gets the timestamp of the number of milliseconds that have elapsed since
322
303
  * the Unix epoch (1 January 1970 00:00:00 UTC).
@@ -334,28 +315,16 @@ var DataTable = (function (Sortable) {
334
315
  * // => Logs the number of milliseconds it took for the deferred invocation.
335
316
  */
336
317
  var now = function() {
337
- return root$1.Date.now();
318
+ return _root.Date.now();
338
319
  };
339
320
 
340
321
  var now_1 = now;
341
322
 
342
- var now$1 = /*#__PURE__*/Object.freeze({
343
- default: now_1,
344
- __moduleExports: now_1
345
- });
346
-
347
323
  /** Built-in value references. */
348
- var Symbol = root$1.Symbol;
324
+ var Symbol = _root.Symbol;
349
325
 
350
326
  var _Symbol = Symbol;
351
327
 
352
- var _Symbol$1 = /*#__PURE__*/Object.freeze({
353
- default: _Symbol,
354
- __moduleExports: _Symbol
355
- });
356
-
357
- var Symbol$1 = ( _Symbol$1 && _Symbol ) || _Symbol$1;
358
-
359
328
  /** Used for built-in method references. */
360
329
  var objectProto = Object.prototype;
361
330
 
@@ -370,7 +339,7 @@ var DataTable = (function (Sortable) {
370
339
  var nativeObjectToString = objectProto.toString;
371
340
 
372
341
  /** Built-in value references. */
373
- var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
342
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
374
343
 
375
344
  /**
376
345
  * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
@@ -400,11 +369,6 @@ var DataTable = (function (Sortable) {
400
369
 
401
370
  var _getRawTag = getRawTag;
402
371
 
403
- var _getRawTag$1 = /*#__PURE__*/Object.freeze({
404
- default: _getRawTag,
405
- __moduleExports: _getRawTag
406
- });
407
-
408
372
  /** Used for built-in method references. */
409
373
  var objectProto$1 = Object.prototype;
410
374
 
@@ -428,21 +392,12 @@ var DataTable = (function (Sortable) {
428
392
 
429
393
  var _objectToString = objectToString;
430
394
 
431
- var _objectToString$1 = /*#__PURE__*/Object.freeze({
432
- default: _objectToString,
433
- __moduleExports: _objectToString
434
- });
435
-
436
- var getRawTag$1 = ( _getRawTag$1 && _getRawTag ) || _getRawTag$1;
437
-
438
- var objectToString$1 = ( _objectToString$1 && _objectToString ) || _objectToString$1;
439
-
440
395
  /** `Object#toString` result references. */
441
396
  var nullTag = '[object Null]',
442
397
  undefinedTag = '[object Undefined]';
443
398
 
444
399
  /** Built-in value references. */
445
- var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
400
+ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
446
401
 
447
402
  /**
448
403
  * The base implementation of `getTag` without fallbacks for buggy environments.
@@ -456,17 +411,12 @@ var DataTable = (function (Sortable) {
456
411
  return value === undefined ? undefinedTag : nullTag;
457
412
  }
458
413
  return (symToStringTag$1 && symToStringTag$1 in Object(value))
459
- ? getRawTag$1(value)
460
- : objectToString$1(value);
414
+ ? _getRawTag(value)
415
+ : _objectToString(value);
461
416
  }
462
417
 
463
418
  var _baseGetTag = baseGetTag;
464
419
 
465
- var _baseGetTag$1 = /*#__PURE__*/Object.freeze({
466
- default: _baseGetTag,
467
- __moduleExports: _baseGetTag
468
- });
469
-
470
420
  /**
471
421
  * Checks if `value` is object-like. A value is object-like if it's not `null`
472
422
  * and has a `typeof` result of "object".
@@ -497,15 +447,6 @@ var DataTable = (function (Sortable) {
497
447
 
498
448
  var isObjectLike_1 = isObjectLike;
499
449
 
500
- var isObjectLike$1 = /*#__PURE__*/Object.freeze({
501
- default: isObjectLike_1,
502
- __moduleExports: isObjectLike_1
503
- });
504
-
505
- var baseGetTag$1 = ( _baseGetTag$1 && _baseGetTag ) || _baseGetTag$1;
506
-
507
- var isObjectLike$2 = ( isObjectLike$1 && isObjectLike_1 ) || isObjectLike$1;
508
-
509
450
  /** `Object#toString` result references. */
510
451
  var symbolTag = '[object Symbol]';
511
452
 
@@ -528,20 +469,11 @@ var DataTable = (function (Sortable) {
528
469
  */
529
470
  function isSymbol(value) {
530
471
  return typeof value == 'symbol' ||
531
- (isObjectLike$2(value) && baseGetTag$1(value) == symbolTag);
472
+ (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
532
473
  }
533
474
 
534
475
  var isSymbol_1 = isSymbol;
535
476
 
536
- var isSymbol$1 = /*#__PURE__*/Object.freeze({
537
- default: isSymbol_1,
538
- __moduleExports: isSymbol_1
539
- });
540
-
541
- var isObject$2 = ( isObject$1 && isObject_1 ) || isObject$1;
542
-
543
- var isSymbol$2 = ( isSymbol$1 && isSymbol_1 ) || isSymbol$1;
544
-
545
477
  /** Used as references for various `Number` constants. */
546
478
  var NAN = 0 / 0;
547
479
 
@@ -587,12 +519,12 @@ var DataTable = (function (Sortable) {
587
519
  if (typeof value == 'number') {
588
520
  return value;
589
521
  }
590
- if (isSymbol$2(value)) {
522
+ if (isSymbol_1(value)) {
591
523
  return NAN;
592
524
  }
593
- if (isObject$2(value)) {
525
+ if (isObject_1(value)) {
594
526
  var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
595
- value = isObject$2(other) ? (other + '') : other;
527
+ value = isObject_1(other) ? (other + '') : other;
596
528
  }
597
529
  if (typeof value != 'string') {
598
530
  return value === 0 ? value : +value;
@@ -606,15 +538,6 @@ var DataTable = (function (Sortable) {
606
538
 
607
539
  var toNumber_1 = toNumber;
608
540
 
609
- var toNumber$1 = /*#__PURE__*/Object.freeze({
610
- default: toNumber_1,
611
- __moduleExports: toNumber_1
612
- });
613
-
614
- var now$2 = ( now$1 && now_1 ) || now$1;
615
-
616
- var toNumber$2 = ( toNumber$1 && toNumber_1 ) || toNumber$1;
617
-
618
541
  /** Error message constants. */
619
542
  var FUNC_ERROR_TEXT = 'Expected a function';
620
543
 
@@ -691,11 +614,11 @@ var DataTable = (function (Sortable) {
691
614
  if (typeof func != 'function') {
692
615
  throw new TypeError(FUNC_ERROR_TEXT);
693
616
  }
694
- wait = toNumber$2(wait) || 0;
695
- if (isObject$2(options)) {
617
+ wait = toNumber_1(wait) || 0;
618
+ if (isObject_1(options)) {
696
619
  leading = !!options.leading;
697
620
  maxing = 'maxWait' in options;
698
- maxWait = maxing ? nativeMax(toNumber$2(options.maxWait) || 0, wait) : maxWait;
621
+ maxWait = maxing ? nativeMax(toNumber_1(options.maxWait) || 0, wait) : maxWait;
699
622
  trailing = 'trailing' in options ? !!options.trailing : trailing;
700
623
  }
701
624
 
@@ -740,7 +663,7 @@ var DataTable = (function (Sortable) {
740
663
  }
741
664
 
742
665
  function timerExpired() {
743
- var time = now$2();
666
+ var time = now_1();
744
667
  if (shouldInvoke(time)) {
745
668
  return trailingEdge(time);
746
669
  }
@@ -769,11 +692,11 @@ var DataTable = (function (Sortable) {
769
692
  }
770
693
 
771
694
  function flush() {
772
- return timerId === undefined ? result : trailingEdge(now$2());
695
+ return timerId === undefined ? result : trailingEdge(now_1());
773
696
  }
774
697
 
775
698
  function debounced() {
776
- var time = now$2(),
699
+ var time = now_1(),
777
700
  isInvoking = shouldInvoke(time);
778
701
 
779
702
  lastArgs = arguments;
@@ -786,7 +709,6 @@ var DataTable = (function (Sortable) {
786
709
  }
787
710
  if (maxing) {
788
711
  // Handle invocations in a tight loop.
789
- clearTimeout(timerId);
790
712
  timerId = setTimeout(timerExpired, wait);
791
713
  return invokeFunc(lastCallTime);
792
714
  }
@@ -803,13 +725,6 @@ var DataTable = (function (Sortable) {
803
725
 
804
726
  var debounce_1 = debounce;
805
727
 
806
- var debounce$1 = /*#__PURE__*/Object.freeze({
807
- default: debounce_1,
808
- __moduleExports: debounce_1
809
- });
810
-
811
- var debounce$2 = ( debounce$1 && debounce_1 ) || debounce$1;
812
-
813
728
  /** Error message constants. */
814
729
  var FUNC_ERROR_TEXT$1 = 'Expected a function';
815
730
 
@@ -864,11 +779,11 @@ var DataTable = (function (Sortable) {
864
779
  if (typeof func != 'function') {
865
780
  throw new TypeError(FUNC_ERROR_TEXT$1);
866
781
  }
867
- if (isObject$2(options)) {
782
+ if (isObject_1(options)) {
868
783
  leading = 'leading' in options ? !!options.leading : leading;
869
784
  trailing = 'trailing' in options ? !!options.trailing : trailing;
870
785
  }
871
- return debounce$2(func, wait, {
786
+ return debounce_1(func, wait, {
872
787
  'leading': leading,
873
788
  'maxWait': wait,
874
789
  'trailing': trailing
@@ -901,37 +816,25 @@ var DataTable = (function (Sortable) {
901
816
  * // => false
902
817
  */
903
818
  function isFunction(value) {
904
- if (!isObject$2(value)) {
819
+ if (!isObject_1(value)) {
905
820
  return false;
906
821
  }
907
822
  // The use of `Object#toString` avoids issues with the `typeof` operator
908
823
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
909
- var tag = baseGetTag$1(value);
824
+ var tag = _baseGetTag(value);
910
825
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
911
826
  }
912
827
 
913
828
  var isFunction_1 = isFunction;
914
829
 
915
- var isFunction$1 = /*#__PURE__*/Object.freeze({
916
- default: isFunction_1,
917
- __moduleExports: isFunction_1
918
- });
919
-
920
830
  /** Used to detect overreaching core-js shims. */
921
- var coreJsData = root$1['__core-js_shared__'];
831
+ var coreJsData = _root['__core-js_shared__'];
922
832
 
923
833
  var _coreJsData = coreJsData;
924
834
 
925
- var _coreJsData$1 = /*#__PURE__*/Object.freeze({
926
- default: _coreJsData,
927
- __moduleExports: _coreJsData
928
- });
929
-
930
- var coreJsData$1 = ( _coreJsData$1 && _coreJsData ) || _coreJsData$1;
931
-
932
835
  /** Used to detect methods masquerading as native. */
933
836
  var maskSrcKey = (function() {
934
- var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || '');
837
+ var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
935
838
  return uid ? ('Symbol(src)_1.' + uid) : '';
936
839
  }());
937
840
 
@@ -948,11 +851,6 @@ var DataTable = (function (Sortable) {
948
851
 
949
852
  var _isMasked = isMasked;
950
853
 
951
- var _isMasked$1 = /*#__PURE__*/Object.freeze({
952
- default: _isMasked,
953
- __moduleExports: _isMasked
954
- });
955
-
956
854
  /** Used for built-in method references. */
957
855
  var funcProto = Function.prototype;
958
856
 
@@ -980,17 +878,6 @@ var DataTable = (function (Sortable) {
980
878
 
981
879
  var _toSource = toSource;
982
880
 
983
- var _toSource$1 = /*#__PURE__*/Object.freeze({
984
- default: _toSource,
985
- __moduleExports: _toSource
986
- });
987
-
988
- var isFunction$2 = ( isFunction$1 && isFunction_1 ) || isFunction$1;
989
-
990
- var isMasked$1 = ( _isMasked$1 && _isMasked ) || _isMasked$1;
991
-
992
- var toSource$1 = ( _toSource$1 && _toSource ) || _toSource$1;
993
-
994
881
  /**
995
882
  * Used to match `RegExp`
996
883
  * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
@@ -1025,20 +912,15 @@ var DataTable = (function (Sortable) {
1025
912
  * else `false`.
1026
913
  */
1027
914
  function baseIsNative(value) {
1028
- if (!isObject$2(value) || isMasked$1(value)) {
915
+ if (!isObject_1(value) || _isMasked(value)) {
1029
916
  return false;
1030
917
  }
1031
- var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
1032
- return pattern.test(toSource$1(value));
918
+ var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
919
+ return pattern.test(_toSource(value));
1033
920
  }
1034
921
 
1035
922
  var _baseIsNative = baseIsNative;
1036
923
 
1037
- var _baseIsNative$1 = /*#__PURE__*/Object.freeze({
1038
- default: _baseIsNative,
1039
- __moduleExports: _baseIsNative
1040
- });
1041
-
1042
924
  /**
1043
925
  * Gets the value at `key` of `object`.
1044
926
  *
@@ -1053,15 +935,6 @@ var DataTable = (function (Sortable) {
1053
935
 
1054
936
  var _getValue = getValue;
1055
937
 
1056
- var _getValue$1 = /*#__PURE__*/Object.freeze({
1057
- default: _getValue,
1058
- __moduleExports: _getValue
1059
- });
1060
-
1061
- var baseIsNative$1 = ( _baseIsNative$1 && _baseIsNative ) || _baseIsNative$1;
1062
-
1063
- var getValue$1 = ( _getValue$1 && _getValue ) || _getValue$1;
1064
-
1065
938
  /**
1066
939
  * Gets the native function at `key` of `object`.
1067
940
  *
@@ -1071,31 +944,17 @@ var DataTable = (function (Sortable) {
1071
944
  * @returns {*} Returns the function if it's native, else `undefined`.
1072
945
  */
1073
946
  function getNative(object, key) {
1074
- var value = getValue$1(object, key);
1075
- return baseIsNative$1(value) ? value : undefined;
947
+ var value = _getValue(object, key);
948
+ return _baseIsNative(value) ? value : undefined;
1076
949
  }
1077
950
 
1078
951
  var _getNative = getNative;
1079
952
 
1080
- var _getNative$1 = /*#__PURE__*/Object.freeze({
1081
- default: _getNative,
1082
- __moduleExports: _getNative
1083
- });
1084
-
1085
- var getNative$1 = ( _getNative$1 && _getNative ) || _getNative$1;
1086
-
1087
953
  /* Built-in method references that are verified to be native. */
1088
- var nativeCreate = getNative$1(Object, 'create');
954
+ var nativeCreate = _getNative(Object, 'create');
1089
955
 
1090
956
  var _nativeCreate = nativeCreate;
1091
957
 
1092
- var _nativeCreate$1 = /*#__PURE__*/Object.freeze({
1093
- default: _nativeCreate,
1094
- __moduleExports: _nativeCreate
1095
- });
1096
-
1097
- var nativeCreate$1 = ( _nativeCreate$1 && _nativeCreate ) || _nativeCreate$1;
1098
-
1099
958
  /**
1100
959
  * Removes all key-value entries from the hash.
1101
960
  *
@@ -1104,17 +963,12 @@ var DataTable = (function (Sortable) {
1104
963
  * @memberOf Hash
1105
964
  */
1106
965
  function hashClear() {
1107
- this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
966
+ this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1108
967
  this.size = 0;
1109
968
  }
1110
969
 
1111
970
  var _hashClear = hashClear;
1112
971
 
1113
- var _hashClear$1 = /*#__PURE__*/Object.freeze({
1114
- default: _hashClear,
1115
- __moduleExports: _hashClear
1116
- });
1117
-
1118
972
  /**
1119
973
  * Removes `key` and its value from the hash.
1120
974
  *
@@ -1133,11 +987,6 @@ var DataTable = (function (Sortable) {
1133
987
 
1134
988
  var _hashDelete = hashDelete;
1135
989
 
1136
- var _hashDelete$1 = /*#__PURE__*/Object.freeze({
1137
- default: _hashDelete,
1138
- __moduleExports: _hashDelete
1139
- });
1140
-
1141
990
  /** Used to stand-in for `undefined` hash values. */
1142
991
  var HASH_UNDEFINED = '__lodash_hash_undefined__';
1143
992
 
@@ -1158,7 +1007,7 @@ var DataTable = (function (Sortable) {
1158
1007
  */
1159
1008
  function hashGet(key) {
1160
1009
  var data = this.__data__;
1161
- if (nativeCreate$1) {
1010
+ if (_nativeCreate) {
1162
1011
  var result = data[key];
1163
1012
  return result === HASH_UNDEFINED ? undefined : result;
1164
1013
  }
@@ -1167,11 +1016,6 @@ var DataTable = (function (Sortable) {
1167
1016
 
1168
1017
  var _hashGet = hashGet;
1169
1018
 
1170
- var _hashGet$1 = /*#__PURE__*/Object.freeze({
1171
- default: _hashGet,
1172
- __moduleExports: _hashGet
1173
- });
1174
-
1175
1019
  /** Used for built-in method references. */
1176
1020
  var objectProto$4 = Object.prototype;
1177
1021
 
@@ -1189,16 +1033,11 @@ var DataTable = (function (Sortable) {
1189
1033
  */
1190
1034
  function hashHas(key) {
1191
1035
  var data = this.__data__;
1192
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
1036
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
1193
1037
  }
1194
1038
 
1195
1039
  var _hashHas = hashHas;
1196
1040
 
1197
- var _hashHas$1 = /*#__PURE__*/Object.freeze({
1198
- default: _hashHas,
1199
- __moduleExports: _hashHas
1200
- });
1201
-
1202
1041
  /** Used to stand-in for `undefined` hash values. */
1203
1042
  var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1204
1043
 
@@ -1215,27 +1054,12 @@ var DataTable = (function (Sortable) {
1215
1054
  function hashSet(key, value) {
1216
1055
  var data = this.__data__;
1217
1056
  this.size += this.has(key) ? 0 : 1;
1218
- data[key] = (nativeCreate$1 && value === undefined) ? HASH_UNDEFINED$1 : value;
1057
+ data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
1219
1058
  return this;
1220
1059
  }
1221
1060
 
1222
1061
  var _hashSet = hashSet;
1223
1062
 
1224
- var _hashSet$1 = /*#__PURE__*/Object.freeze({
1225
- default: _hashSet,
1226
- __moduleExports: _hashSet
1227
- });
1228
-
1229
- var hashClear$1 = ( _hashClear$1 && _hashClear ) || _hashClear$1;
1230
-
1231
- var hashDelete$1 = ( _hashDelete$1 && _hashDelete ) || _hashDelete$1;
1232
-
1233
- var hashGet$1 = ( _hashGet$1 && _hashGet ) || _hashGet$1;
1234
-
1235
- var hashHas$1 = ( _hashHas$1 && _hashHas ) || _hashHas$1;
1236
-
1237
- var hashSet$1 = ( _hashSet$1 && _hashSet ) || _hashSet$1;
1238
-
1239
1063
  /**
1240
1064
  * Creates a hash object.
1241
1065
  *
@@ -1255,19 +1079,14 @@ var DataTable = (function (Sortable) {
1255
1079
  }
1256
1080
 
1257
1081
  // Add methods to `Hash`.
1258
- Hash.prototype.clear = hashClear$1;
1259
- Hash.prototype['delete'] = hashDelete$1;
1260
- Hash.prototype.get = hashGet$1;
1261
- Hash.prototype.has = hashHas$1;
1262
- Hash.prototype.set = hashSet$1;
1082
+ Hash.prototype.clear = _hashClear;
1083
+ Hash.prototype['delete'] = _hashDelete;
1084
+ Hash.prototype.get = _hashGet;
1085
+ Hash.prototype.has = _hashHas;
1086
+ Hash.prototype.set = _hashSet;
1263
1087
 
1264
1088
  var _Hash = Hash;
1265
1089
 
1266
- var _Hash$1 = /*#__PURE__*/Object.freeze({
1267
- default: _Hash,
1268
- __moduleExports: _Hash
1269
- });
1270
-
1271
1090
  /**
1272
1091
  * Removes all key-value entries from the list cache.
1273
1092
  *
@@ -1282,11 +1101,6 @@ var DataTable = (function (Sortable) {
1282
1101
 
1283
1102
  var _listCacheClear = listCacheClear;
1284
1103
 
1285
- var _listCacheClear$1 = /*#__PURE__*/Object.freeze({
1286
- default: _listCacheClear,
1287
- __moduleExports: _listCacheClear
1288
- });
1289
-
1290
1104
  /**
1291
1105
  * Performs a
1292
1106
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -1325,13 +1139,6 @@ var DataTable = (function (Sortable) {
1325
1139
 
1326
1140
  var eq_1 = eq;
1327
1141
 
1328
- var eq$1 = /*#__PURE__*/Object.freeze({
1329
- default: eq_1,
1330
- __moduleExports: eq_1
1331
- });
1332
-
1333
- var eq$2 = ( eq$1 && eq_1 ) || eq$1;
1334
-
1335
1142
  /**
1336
1143
  * Gets the index at which the `key` is found in `array` of key-value pairs.
1337
1144
  *
@@ -1343,7 +1150,7 @@ var DataTable = (function (Sortable) {
1343
1150
  function assocIndexOf(array, key) {
1344
1151
  var length = array.length;
1345
1152
  while (length--) {
1346
- if (eq$2(array[length][0], key)) {
1153
+ if (eq_1(array[length][0], key)) {
1347
1154
  return length;
1348
1155
  }
1349
1156
  }
@@ -1352,13 +1159,6 @@ var DataTable = (function (Sortable) {
1352
1159
 
1353
1160
  var _assocIndexOf = assocIndexOf;
1354
1161
 
1355
- var _assocIndexOf$1 = /*#__PURE__*/Object.freeze({
1356
- default: _assocIndexOf,
1357
- __moduleExports: _assocIndexOf
1358
- });
1359
-
1360
- var assocIndexOf$1 = ( _assocIndexOf$1 && _assocIndexOf ) || _assocIndexOf$1;
1361
-
1362
1162
  /** Used for built-in method references. */
1363
1163
  var arrayProto = Array.prototype;
1364
1164
 
@@ -1376,7 +1176,7 @@ var DataTable = (function (Sortable) {
1376
1176
  */
1377
1177
  function listCacheDelete(key) {
1378
1178
  var data = this.__data__,
1379
- index = assocIndexOf$1(data, key);
1179
+ index = _assocIndexOf(data, key);
1380
1180
 
1381
1181
  if (index < 0) {
1382
1182
  return false;
@@ -1393,11 +1193,6 @@ var DataTable = (function (Sortable) {
1393
1193
 
1394
1194
  var _listCacheDelete = listCacheDelete;
1395
1195
 
1396
- var _listCacheDelete$1 = /*#__PURE__*/Object.freeze({
1397
- default: _listCacheDelete,
1398
- __moduleExports: _listCacheDelete
1399
- });
1400
-
1401
1196
  /**
1402
1197
  * Gets the list cache value for `key`.
1403
1198
  *
@@ -1409,18 +1204,13 @@ var DataTable = (function (Sortable) {
1409
1204
  */
1410
1205
  function listCacheGet(key) {
1411
1206
  var data = this.__data__,
1412
- index = assocIndexOf$1(data, key);
1207
+ index = _assocIndexOf(data, key);
1413
1208
 
1414
1209
  return index < 0 ? undefined : data[index][1];
1415
1210
  }
1416
1211
 
1417
1212
  var _listCacheGet = listCacheGet;
1418
1213
 
1419
- var _listCacheGet$1 = /*#__PURE__*/Object.freeze({
1420
- default: _listCacheGet,
1421
- __moduleExports: _listCacheGet
1422
- });
1423
-
1424
1214
  /**
1425
1215
  * Checks if a list cache value for `key` exists.
1426
1216
  *
@@ -1431,16 +1221,11 @@ var DataTable = (function (Sortable) {
1431
1221
  * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1432
1222
  */
1433
1223
  function listCacheHas(key) {
1434
- return assocIndexOf$1(this.__data__, key) > -1;
1224
+ return _assocIndexOf(this.__data__, key) > -1;
1435
1225
  }
1436
1226
 
1437
1227
  var _listCacheHas = listCacheHas;
1438
1228
 
1439
- var _listCacheHas$1 = /*#__PURE__*/Object.freeze({
1440
- default: _listCacheHas,
1441
- __moduleExports: _listCacheHas
1442
- });
1443
-
1444
1229
  /**
1445
1230
  * Sets the list cache `key` to `value`.
1446
1231
  *
@@ -1453,7 +1238,7 @@ var DataTable = (function (Sortable) {
1453
1238
  */
1454
1239
  function listCacheSet(key, value) {
1455
1240
  var data = this.__data__,
1456
- index = assocIndexOf$1(data, key);
1241
+ index = _assocIndexOf(data, key);
1457
1242
 
1458
1243
  if (index < 0) {
1459
1244
  ++this.size;
@@ -1466,21 +1251,6 @@ var DataTable = (function (Sortable) {
1466
1251
 
1467
1252
  var _listCacheSet = listCacheSet;
1468
1253
 
1469
- var _listCacheSet$1 = /*#__PURE__*/Object.freeze({
1470
- default: _listCacheSet,
1471
- __moduleExports: _listCacheSet
1472
- });
1473
-
1474
- var listCacheClear$1 = ( _listCacheClear$1 && _listCacheClear ) || _listCacheClear$1;
1475
-
1476
- var listCacheDelete$1 = ( _listCacheDelete$1 && _listCacheDelete ) || _listCacheDelete$1;
1477
-
1478
- var listCacheGet$1 = ( _listCacheGet$1 && _listCacheGet ) || _listCacheGet$1;
1479
-
1480
- var listCacheHas$1 = ( _listCacheHas$1 && _listCacheHas ) || _listCacheHas$1;
1481
-
1482
- var listCacheSet$1 = ( _listCacheSet$1 && _listCacheSet ) || _listCacheSet$1;
1483
-
1484
1254
  /**
1485
1255
  * Creates an list cache object.
1486
1256
  *
@@ -1500,35 +1270,19 @@ var DataTable = (function (Sortable) {
1500
1270
  }
1501
1271
 
1502
1272
  // Add methods to `ListCache`.
1503
- ListCache.prototype.clear = listCacheClear$1;
1504
- ListCache.prototype['delete'] = listCacheDelete$1;
1505
- ListCache.prototype.get = listCacheGet$1;
1506
- ListCache.prototype.has = listCacheHas$1;
1507
- ListCache.prototype.set = listCacheSet$1;
1273
+ ListCache.prototype.clear = _listCacheClear;
1274
+ ListCache.prototype['delete'] = _listCacheDelete;
1275
+ ListCache.prototype.get = _listCacheGet;
1276
+ ListCache.prototype.has = _listCacheHas;
1277
+ ListCache.prototype.set = _listCacheSet;
1508
1278
 
1509
1279
  var _ListCache = ListCache;
1510
1280
 
1511
- var _ListCache$1 = /*#__PURE__*/Object.freeze({
1512
- default: _ListCache,
1513
- __moduleExports: _ListCache
1514
- });
1515
-
1516
1281
  /* Built-in method references that are verified to be native. */
1517
- var Map = getNative$1(root$1, 'Map');
1282
+ var Map = _getNative(_root, 'Map');
1518
1283
 
1519
1284
  var _Map = Map;
1520
1285
 
1521
- var _Map$1 = /*#__PURE__*/Object.freeze({
1522
- default: _Map,
1523
- __moduleExports: _Map
1524
- });
1525
-
1526
- var Hash$1 = ( _Hash$1 && _Hash ) || _Hash$1;
1527
-
1528
- var ListCache$1 = ( _ListCache$1 && _ListCache ) || _ListCache$1;
1529
-
1530
- var Map$1 = ( _Map$1 && _Map ) || _Map$1;
1531
-
1532
1286
  /**
1533
1287
  * Removes all key-value entries from the map.
1534
1288
  *
@@ -1539,19 +1293,14 @@ var DataTable = (function (Sortable) {
1539
1293
  function mapCacheClear() {
1540
1294
  this.size = 0;
1541
1295
  this.__data__ = {
1542
- 'hash': new Hash$1,
1543
- 'map': new (Map$1 || ListCache$1),
1544
- 'string': new Hash$1
1296
+ 'hash': new _Hash,
1297
+ 'map': new (_Map || _ListCache),
1298
+ 'string': new _Hash
1545
1299
  };
1546
1300
  }
1547
1301
 
1548
1302
  var _mapCacheClear = mapCacheClear;
1549
1303
 
1550
- var _mapCacheClear$1 = /*#__PURE__*/Object.freeze({
1551
- default: _mapCacheClear,
1552
- __moduleExports: _mapCacheClear
1553
- });
1554
-
1555
1304
  /**
1556
1305
  * Checks if `value` is suitable for use as unique object key.
1557
1306
  *
@@ -1568,13 +1317,6 @@ var DataTable = (function (Sortable) {
1568
1317
 
1569
1318
  var _isKeyable = isKeyable;
1570
1319
 
1571
- var _isKeyable$1 = /*#__PURE__*/Object.freeze({
1572
- default: _isKeyable,
1573
- __moduleExports: _isKeyable
1574
- });
1575
-
1576
- var isKeyable$1 = ( _isKeyable$1 && _isKeyable ) || _isKeyable$1;
1577
-
1578
1320
  /**
1579
1321
  * Gets the data for `map`.
1580
1322
  *
@@ -1585,20 +1327,13 @@ var DataTable = (function (Sortable) {
1585
1327
  */
1586
1328
  function getMapData(map, key) {
1587
1329
  var data = map.__data__;
1588
- return isKeyable$1(key)
1330
+ return _isKeyable(key)
1589
1331
  ? data[typeof key == 'string' ? 'string' : 'hash']
1590
1332
  : data.map;
1591
1333
  }
1592
1334
 
1593
1335
  var _getMapData = getMapData;
1594
1336
 
1595
- var _getMapData$1 = /*#__PURE__*/Object.freeze({
1596
- default: _getMapData,
1597
- __moduleExports: _getMapData
1598
- });
1599
-
1600
- var getMapData$1 = ( _getMapData$1 && _getMapData ) || _getMapData$1;
1601
-
1602
1337
  /**
1603
1338
  * Removes `key` and its value from the map.
1604
1339
  *
@@ -1609,18 +1344,13 @@ var DataTable = (function (Sortable) {
1609
1344
  * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1610
1345
  */
1611
1346
  function mapCacheDelete(key) {
1612
- var result = getMapData$1(this, key)['delete'](key);
1347
+ var result = _getMapData(this, key)['delete'](key);
1613
1348
  this.size -= result ? 1 : 0;
1614
1349
  return result;
1615
1350
  }
1616
1351
 
1617
1352
  var _mapCacheDelete = mapCacheDelete;
1618
1353
 
1619
- var _mapCacheDelete$1 = /*#__PURE__*/Object.freeze({
1620
- default: _mapCacheDelete,
1621
- __moduleExports: _mapCacheDelete
1622
- });
1623
-
1624
1354
  /**
1625
1355
  * Gets the map value for `key`.
1626
1356
  *
@@ -1631,16 +1361,11 @@ var DataTable = (function (Sortable) {
1631
1361
  * @returns {*} Returns the entry value.
1632
1362
  */
1633
1363
  function mapCacheGet(key) {
1634
- return getMapData$1(this, key).get(key);
1364
+ return _getMapData(this, key).get(key);
1635
1365
  }
1636
1366
 
1637
1367
  var _mapCacheGet = mapCacheGet;
1638
1368
 
1639
- var _mapCacheGet$1 = /*#__PURE__*/Object.freeze({
1640
- default: _mapCacheGet,
1641
- __moduleExports: _mapCacheGet
1642
- });
1643
-
1644
1369
  /**
1645
1370
  * Checks if a map value for `key` exists.
1646
1371
  *
@@ -1651,16 +1376,11 @@ var DataTable = (function (Sortable) {
1651
1376
  * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1652
1377
  */
1653
1378
  function mapCacheHas(key) {
1654
- return getMapData$1(this, key).has(key);
1379
+ return _getMapData(this, key).has(key);
1655
1380
  }
1656
1381
 
1657
1382
  var _mapCacheHas = mapCacheHas;
1658
1383
 
1659
- var _mapCacheHas$1 = /*#__PURE__*/Object.freeze({
1660
- default: _mapCacheHas,
1661
- __moduleExports: _mapCacheHas
1662
- });
1663
-
1664
1384
  /**
1665
1385
  * Sets the map `key` to `value`.
1666
1386
  *
@@ -1672,7 +1392,7 @@ var DataTable = (function (Sortable) {
1672
1392
  * @returns {Object} Returns the map cache instance.
1673
1393
  */
1674
1394
  function mapCacheSet(key, value) {
1675
- var data = getMapData$1(this, key),
1395
+ var data = _getMapData(this, key),
1676
1396
  size = data.size;
1677
1397
 
1678
1398
  data.set(key, value);
@@ -1682,21 +1402,6 @@ var DataTable = (function (Sortable) {
1682
1402
 
1683
1403
  var _mapCacheSet = mapCacheSet;
1684
1404
 
1685
- var _mapCacheSet$1 = /*#__PURE__*/Object.freeze({
1686
- default: _mapCacheSet,
1687
- __moduleExports: _mapCacheSet
1688
- });
1689
-
1690
- var mapCacheClear$1 = ( _mapCacheClear$1 && _mapCacheClear ) || _mapCacheClear$1;
1691
-
1692
- var mapCacheDelete$1 = ( _mapCacheDelete$1 && _mapCacheDelete ) || _mapCacheDelete$1;
1693
-
1694
- var mapCacheGet$1 = ( _mapCacheGet$1 && _mapCacheGet ) || _mapCacheGet$1;
1695
-
1696
- var mapCacheHas$1 = ( _mapCacheHas$1 && _mapCacheHas ) || _mapCacheHas$1;
1697
-
1698
- var mapCacheSet$1 = ( _mapCacheSet$1 && _mapCacheSet ) || _mapCacheSet$1;
1699
-
1700
1405
  /**
1701
1406
  * Creates a map cache object to store key-value pairs.
1702
1407
  *
@@ -1716,19 +1421,14 @@ var DataTable = (function (Sortable) {
1716
1421
  }
1717
1422
 
1718
1423
  // Add methods to `MapCache`.
1719
- MapCache.prototype.clear = mapCacheClear$1;
1720
- MapCache.prototype['delete'] = mapCacheDelete$1;
1721
- MapCache.prototype.get = mapCacheGet$1;
1722
- MapCache.prototype.has = mapCacheHas$1;
1723
- MapCache.prototype.set = mapCacheSet$1;
1424
+ MapCache.prototype.clear = _mapCacheClear;
1425
+ MapCache.prototype['delete'] = _mapCacheDelete;
1426
+ MapCache.prototype.get = _mapCacheGet;
1427
+ MapCache.prototype.has = _mapCacheHas;
1428
+ MapCache.prototype.set = _mapCacheSet;
1724
1429
 
1725
1430
  var _MapCache = MapCache;
1726
1431
 
1727
- var _MapCache$1 = /*#__PURE__*/Object.freeze({
1728
- default: _MapCache,
1729
- __moduleExports: _MapCache
1730
- });
1731
-
1732
1432
  /** Used to stand-in for `undefined` hash values. */
1733
1433
  var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
1734
1434
 
@@ -1749,11 +1449,6 @@ var DataTable = (function (Sortable) {
1749
1449
 
1750
1450
  var _setCacheAdd = setCacheAdd;
1751
1451
 
1752
- var _setCacheAdd$1 = /*#__PURE__*/Object.freeze({
1753
- default: _setCacheAdd,
1754
- __moduleExports: _setCacheAdd
1755
- });
1756
-
1757
1452
  /**
1758
1453
  * Checks if `value` is in the array cache.
1759
1454
  *
@@ -1769,17 +1464,6 @@ var DataTable = (function (Sortable) {
1769
1464
 
1770
1465
  var _setCacheHas = setCacheHas;
1771
1466
 
1772
- var _setCacheHas$1 = /*#__PURE__*/Object.freeze({
1773
- default: _setCacheHas,
1774
- __moduleExports: _setCacheHas
1775
- });
1776
-
1777
- var MapCache$1 = ( _MapCache$1 && _MapCache ) || _MapCache$1;
1778
-
1779
- var setCacheAdd$1 = ( _setCacheAdd$1 && _setCacheAdd ) || _setCacheAdd$1;
1780
-
1781
- var setCacheHas$1 = ( _setCacheHas$1 && _setCacheHas ) || _setCacheHas$1;
1782
-
1783
1467
  /**
1784
1468
  *
1785
1469
  * Creates an array cache object to store unique values.
@@ -1792,23 +1476,18 @@ var DataTable = (function (Sortable) {
1792
1476
  var index = -1,
1793
1477
  length = values == null ? 0 : values.length;
1794
1478
 
1795
- this.__data__ = new MapCache$1;
1479
+ this.__data__ = new _MapCache;
1796
1480
  while (++index < length) {
1797
1481
  this.add(values[index]);
1798
1482
  }
1799
1483
  }
1800
1484
 
1801
1485
  // Add methods to `SetCache`.
1802
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd$1;
1803
- SetCache.prototype.has = setCacheHas$1;
1486
+ SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd;
1487
+ SetCache.prototype.has = _setCacheHas;
1804
1488
 
1805
1489
  var _SetCache = SetCache;
1806
1490
 
1807
- var _SetCache$1 = /*#__PURE__*/Object.freeze({
1808
- default: _SetCache,
1809
- __moduleExports: _SetCache
1810
- });
1811
-
1812
1491
  /**
1813
1492
  * The base implementation of `_.findIndex` and `_.findLastIndex` without
1814
1493
  * support for iteratee shorthands.
@@ -1834,11 +1513,6 @@ var DataTable = (function (Sortable) {
1834
1513
 
1835
1514
  var _baseFindIndex = baseFindIndex;
1836
1515
 
1837
- var _baseFindIndex$1 = /*#__PURE__*/Object.freeze({
1838
- default: _baseFindIndex,
1839
- __moduleExports: _baseFindIndex
1840
- });
1841
-
1842
1516
  /**
1843
1517
  * The base implementation of `_.isNaN` without support for number objects.
1844
1518
  *
@@ -1852,11 +1526,6 @@ var DataTable = (function (Sortable) {
1852
1526
 
1853
1527
  var _baseIsNaN = baseIsNaN;
1854
1528
 
1855
- var _baseIsNaN$1 = /*#__PURE__*/Object.freeze({
1856
- default: _baseIsNaN,
1857
- __moduleExports: _baseIsNaN
1858
- });
1859
-
1860
1529
  /**
1861
1530
  * A specialized version of `_.indexOf` which performs strict equality
1862
1531
  * comparisons of values, i.e. `===`.
@@ -1881,17 +1550,6 @@ var DataTable = (function (Sortable) {
1881
1550
 
1882
1551
  var _strictIndexOf = strictIndexOf;
1883
1552
 
1884
- var _strictIndexOf$1 = /*#__PURE__*/Object.freeze({
1885
- default: _strictIndexOf,
1886
- __moduleExports: _strictIndexOf
1887
- });
1888
-
1889
- var baseFindIndex$1 = ( _baseFindIndex$1 && _baseFindIndex ) || _baseFindIndex$1;
1890
-
1891
- var baseIsNaN$1 = ( _baseIsNaN$1 && _baseIsNaN ) || _baseIsNaN$1;
1892
-
1893
- var strictIndexOf$1 = ( _strictIndexOf$1 && _strictIndexOf ) || _strictIndexOf$1;
1894
-
1895
1553
  /**
1896
1554
  * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
1897
1555
  *
@@ -1903,19 +1561,12 @@ var DataTable = (function (Sortable) {
1903
1561
  */
1904
1562
  function baseIndexOf(array, value, fromIndex) {
1905
1563
  return value === value
1906
- ? strictIndexOf$1(array, value, fromIndex)
1907
- : baseFindIndex$1(array, baseIsNaN$1, fromIndex);
1564
+ ? _strictIndexOf(array, value, fromIndex)
1565
+ : _baseFindIndex(array, _baseIsNaN, fromIndex);
1908
1566
  }
1909
1567
 
1910
1568
  var _baseIndexOf = baseIndexOf;
1911
1569
 
1912
- var _baseIndexOf$1 = /*#__PURE__*/Object.freeze({
1913
- default: _baseIndexOf,
1914
- __moduleExports: _baseIndexOf
1915
- });
1916
-
1917
- var baseIndexOf$1 = ( _baseIndexOf$1 && _baseIndexOf ) || _baseIndexOf$1;
1918
-
1919
1570
  /**
1920
1571
  * A specialized version of `_.includes` for arrays without support for
1921
1572
  * specifying an index to search from.
@@ -1927,16 +1578,11 @@ var DataTable = (function (Sortable) {
1927
1578
  */
1928
1579
  function arrayIncludes(array, value) {
1929
1580
  var length = array == null ? 0 : array.length;
1930
- return !!length && baseIndexOf$1(array, value, 0) > -1;
1581
+ return !!length && _baseIndexOf(array, value, 0) > -1;
1931
1582
  }
1932
1583
 
1933
1584
  var _arrayIncludes = arrayIncludes;
1934
1585
 
1935
- var _arrayIncludes$1 = /*#__PURE__*/Object.freeze({
1936
- default: _arrayIncludes,
1937
- __moduleExports: _arrayIncludes
1938
- });
1939
-
1940
1586
  /**
1941
1587
  * This function is like `arrayIncludes` except that it accepts a comparator.
1942
1588
  *
@@ -1960,11 +1606,6 @@ var DataTable = (function (Sortable) {
1960
1606
 
1961
1607
  var _arrayIncludesWith = arrayIncludesWith;
1962
1608
 
1963
- var _arrayIncludesWith$1 = /*#__PURE__*/Object.freeze({
1964
- default: _arrayIncludesWith,
1965
- __moduleExports: _arrayIncludesWith
1966
- });
1967
-
1968
1609
  /**
1969
1610
  * Checks if a `cache` value for `key` exists.
1970
1611
  *
@@ -1979,21 +1620,11 @@ var DataTable = (function (Sortable) {
1979
1620
 
1980
1621
  var _cacheHas = cacheHas;
1981
1622
 
1982
- var _cacheHas$1 = /*#__PURE__*/Object.freeze({
1983
- default: _cacheHas,
1984
- __moduleExports: _cacheHas
1985
- });
1986
-
1987
1623
  /* Built-in method references that are verified to be native. */
1988
- var Set = getNative$1(root$1, 'Set');
1624
+ var Set = _getNative(_root, 'Set');
1989
1625
 
1990
1626
  var _Set = Set;
1991
1627
 
1992
- var _Set$1 = /*#__PURE__*/Object.freeze({
1993
- default: _Set,
1994
- __moduleExports: _Set
1995
- });
1996
-
1997
1628
  /**
1998
1629
  * This method returns `undefined`.
1999
1630
  *
@@ -2012,11 +1643,6 @@ var DataTable = (function (Sortable) {
2012
1643
 
2013
1644
  var noop_1 = noop;
2014
1645
 
2015
- var noop$1 = /*#__PURE__*/Object.freeze({
2016
- default: noop_1,
2017
- __moduleExports: noop_1
2018
- });
2019
-
2020
1646
  /**
2021
1647
  * Converts `set` to an array of its values.
2022
1648
  *
@@ -2036,17 +1662,6 @@ var DataTable = (function (Sortable) {
2036
1662
 
2037
1663
  var _setToArray = setToArray;
2038
1664
 
2039
- var _setToArray$1 = /*#__PURE__*/Object.freeze({
2040
- default: _setToArray,
2041
- __moduleExports: _setToArray
2042
- });
2043
-
2044
- var Set$1 = ( _Set$1 && _Set ) || _Set$1;
2045
-
2046
- var noop$2 = ( noop$1 && noop_1 ) || noop$1;
2047
-
2048
- var setToArray$1 = ( _setToArray$1 && _setToArray ) || _setToArray$1;
2049
-
2050
1665
  /** Used as references for various `Number` constants. */
2051
1666
  var INFINITY = 1 / 0;
2052
1667
 
@@ -2057,27 +1672,12 @@ var DataTable = (function (Sortable) {
2057
1672
  * @param {Array} values The values to add to the set.
2058
1673
  * @returns {Object} Returns the new set.
2059
1674
  */
2060
- var createSet = !(Set$1 && (1 / setToArray$1(new Set$1([,-0]))[1]) == INFINITY) ? noop$2 : function(values) {
2061
- return new Set$1(values);
1675
+ var createSet = !(_Set && (1 / _setToArray(new _Set([,-0]))[1]) == INFINITY) ? noop_1 : function(values) {
1676
+ return new _Set(values);
2062
1677
  };
2063
1678
 
2064
1679
  var _createSet = createSet;
2065
1680
 
2066
- var _createSet$1 = /*#__PURE__*/Object.freeze({
2067
- default: _createSet,
2068
- __moduleExports: _createSet
2069
- });
2070
-
2071
- var SetCache$1 = ( _SetCache$1 && _SetCache ) || _SetCache$1;
2072
-
2073
- var arrayIncludes$1 = ( _arrayIncludes$1 && _arrayIncludes ) || _arrayIncludes$1;
2074
-
2075
- var arrayIncludesWith$1 = ( _arrayIncludesWith$1 && _arrayIncludesWith ) || _arrayIncludesWith$1;
2076
-
2077
- var cacheHas$1 = ( _cacheHas$1 && _cacheHas ) || _cacheHas$1;
2078
-
2079
- var createSet$1 = ( _createSet$1 && _createSet ) || _createSet$1;
2080
-
2081
1681
  /** Used as the size to enable large array optimizations. */
2082
1682
  var LARGE_ARRAY_SIZE = 200;
2083
1683
 
@@ -2092,7 +1692,7 @@ var DataTable = (function (Sortable) {
2092
1692
  */
2093
1693
  function baseUniq(array, iteratee, comparator) {
2094
1694
  var index = -1,
2095
- includes = arrayIncludes$1,
1695
+ includes = _arrayIncludes,
2096
1696
  length = array.length,
2097
1697
  isCommon = true,
2098
1698
  result = [],
@@ -2100,16 +1700,16 @@ var DataTable = (function (Sortable) {
2100
1700
 
2101
1701
  if (comparator) {
2102
1702
  isCommon = false;
2103
- includes = arrayIncludesWith$1;
1703
+ includes = _arrayIncludesWith;
2104
1704
  }
2105
1705
  else if (length >= LARGE_ARRAY_SIZE) {
2106
- var set = iteratee ? null : createSet$1(array);
1706
+ var set = iteratee ? null : _createSet(array);
2107
1707
  if (set) {
2108
- return setToArray$1(set);
1708
+ return _setToArray(set);
2109
1709
  }
2110
1710
  isCommon = false;
2111
- includes = cacheHas$1;
2112
- seen = new SetCache$1;
1711
+ includes = _cacheHas;
1712
+ seen = new _SetCache;
2113
1713
  }
2114
1714
  else {
2115
1715
  seen = iteratee ? [] : result;
@@ -2144,13 +1744,6 @@ var DataTable = (function (Sortable) {
2144
1744
 
2145
1745
  var _baseUniq = baseUniq;
2146
1746
 
2147
- var _baseUniq$1 = /*#__PURE__*/Object.freeze({
2148
- default: _baseUniq,
2149
- __moduleExports: _baseUniq
2150
- });
2151
-
2152
- var baseUniq$1 = ( _baseUniq$1 && _baseUniq ) || _baseUniq$1;
2153
-
2154
1747
  /**
2155
1748
  * Creates a duplicate-free version of an array, using
2156
1749
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -2170,7 +1763,7 @@ var DataTable = (function (Sortable) {
2170
1763
  * // => [2, 1]
2171
1764
  */
2172
1765
  function uniq(array) {
2173
- return (array && array.length) ? baseUniq$1(array) : [];
1766
+ return (array && array.length) ? _baseUniq(array) : [];
2174
1767
  }
2175
1768
 
2176
1769
  var uniq_1 = uniq;
@@ -2255,7 +1848,7 @@ var DataTable = (function (Sortable) {
2255
1848
 
2256
1849
  let throttle$1 = throttle_1;
2257
1850
 
2258
- let debounce$3 = debounce_1;
1851
+ let debounce$1 = debounce_1;
2259
1852
 
2260
1853
  function nextTick(fn, context = null) {
2261
1854
  return (...args) => {
@@ -2308,6 +1901,16 @@ var DataTable = (function (Sortable) {
2308
1901
  function stripHTML(html) {
2309
1902
  return html.replace(/<[^>]*>/g, '');
2310
1903
  }
1904
+ function format(str, args) {
1905
+ if (!str) return str;
1906
+
1907
+ Object.keys(args).forEach(arg => {
1908
+ let regex = new RegExp(`{(${arg})}`, 'g');
1909
+ str = str.replace(regex, args[arg]);
1910
+ });
1911
+
1912
+ return str;
1913
+ }
2311
1914
 
2312
1915
  class DataManager {
2313
1916
  constructor(options) {
@@ -3061,7 +2664,10 @@ var DataTable = (function (Sortable) {
3061
2664
  bindCopyCellContents() {
3062
2665
  this.keyboard.on('ctrl+c', () => {
3063
2666
  const noOfCellsCopied = this.copyCellContents(this.$focusedCell, this.$selectionCursor);
3064
- const message = `${noOfCellsCopied} cell${noOfCellsCopied > 1 ? 's' : ''} copied`;
2667
+ const message = this.instance.translate('{count} cells copied', {
2668
+ count: noOfCellsCopied
2669
+ });
2670
+
3065
2671
  if (noOfCellsCopied) {
3066
2672
  this.instance.showToastMessage(message, 2);
3067
2673
  }
@@ -3445,9 +3051,12 @@ var DataTable = (function (Sortable) {
3445
3051
  }
3446
3052
 
3447
3053
  promise = valuePromise.then((value) => {
3448
- const done = editor.setValue(value, rowIndex, col);
3449
3054
  const oldValue = this.getCell(colIndex, rowIndex).content;
3450
3055
 
3056
+ if (oldValue === value) return false;
3057
+
3058
+ const done = editor.setValue(value, rowIndex, col);
3059
+
3451
3060
  // update cell immediately
3452
3061
  this.updateCell(colIndex, rowIndex, value);
3453
3062
  $cell.focus();
@@ -3568,7 +3177,7 @@ var DataTable = (function (Sortable) {
3568
3177
  }
3569
3178
 
3570
3179
  focusCellInDirection(direction) {
3571
- if (!this.$focusedCell) {
3180
+ if (!this.$focusedCell || (this.$editingCell && ['left', 'right', 'up', 'down'].includes(direction))) {
3572
3181
  return false;
3573
3182
  } else if (this.$editingCell && ['tab', 'shift+tab'].includes(direction)) {
3574
3183
  this.deactivateEditing();
@@ -3978,7 +3587,11 @@ var DataTable = (function (Sortable) {
3978
3587
 
3979
3588
  const onMouseMove = (e) => {
3980
3589
  if (!isDragging) return;
3981
- const finalWidth = startWidth + (e.pageX - startX);
3590
+ let delta = e.pageX - startX;
3591
+ if (this.options.direction === 'rtl') {
3592
+ delta = -1 * delta;
3593
+ }
3594
+ const finalWidth = startWidth + delta;
3982
3595
  const {
3983
3596
  colIndex
3984
3597
  } = $.data($resizingCell);
@@ -4135,7 +3748,7 @@ var DataTable = (function (Sortable) {
4135
3748
  const handler = e => {
4136
3749
  this.applyFilter(this.getAppliedFilters());
4137
3750
  };
4138
- $.on(this.header, 'keydown', '.dt-filter', debounce$3(handler, 300));
3751
+ $.on(this.header, 'keydown', '.dt-filter', debounce$1(handler, 300));
4139
3752
  }
4140
3753
 
4141
3754
  applyFilter(filters) {
@@ -4379,7 +3992,10 @@ var DataTable = (function (Sortable) {
4379
3992
  const checkedRows = this.getCheckedRows();
4380
3993
  const count = checkedRows.length;
4381
3994
  if (count > 0) {
4382
- this.bodyRenderer.showToastMessage(`${count} row${count > 1 ? 's' : ''} selected`);
3995
+ let message = this.instance.translate('{count} rows selected', {
3996
+ count: count
3997
+ });
3998
+ this.bodyRenderer.showToastMessage(message);
4383
3999
  } else {
4384
4000
  this.bodyRenderer.clearToastMessage();
4385
4001
  }
@@ -4571,7 +4187,8 @@ var DataTable = (function (Sortable) {
4571
4187
  if (props.isFilter) {
4572
4188
  row = row.map(cell => (Object.assign({}, cell, {
4573
4189
  content: this.getFilterInput({
4574
- colIndex: cell.colIndex
4190
+ colIndex: cell.colIndex,
4191
+ name: cell.name
4575
4192
  }),
4576
4193
  isFilter: 1,
4577
4194
  isHeader: undefined,
@@ -4593,8 +4210,10 @@ var DataTable = (function (Sortable) {
4593
4210
  }
4594
4211
 
4595
4212
  getFilterInput(props) {
4213
+ let title = `title="Filter based on ${props.name || 'Index'}"`;
4596
4214
  const dataAttr = makeDataAttributeString(props);
4597
- return `<input class="dt-filter dt-input" type="text" ${dataAttr} tabindex="1" />`;
4215
+ return `<input class="dt-filter dt-input" type="text" ${dataAttr} tabindex="1"
4216
+ ${props.colIndex === 0 ? 'disabled' : title} />`;
4598
4217
  }
4599
4218
 
4600
4219
  selector(rowIndex) {
@@ -4603,7 +4222,7 @@ var DataTable = (function (Sortable) {
4603
4222
  }
4604
4223
 
4605
4224
  var hyperlist = createCommonjsModule(function (module, exports) {
4606
- (function(f){{module.exports=f();}})(function(){return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof commonjsRequire&&commonjsRequire;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t);}return n[i].exports}for(var u="function"==typeof commonjsRequire&&commonjsRequire,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){
4225
+ (function(f){{module.exports=f();}})(function(){return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof commonjsRequire=="function"&&commonjsRequire;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r);}return n[o].exports}var i=typeof commonjsRequire=="function"&&commonjsRequire;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
4607
4226
 
4608
4227
  // Default configuration.
4609
4228
 
@@ -4613,25 +4232,16 @@ var DataTable = (function (Sortable) {
4613
4232
 
4614
4233
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4615
4234
 
4616
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4617
-
4618
4235
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4619
4236
 
4620
4237
  var defaultConfig = {
4621
4238
  width: '100%',
4622
4239
  height: '100%'
4623
-
4624
- // Check for valid number.
4625
- };var isNumber = function isNumber(input) {
4626
- return Number(input) === Number(input);
4627
4240
  };
4628
4241
 
4629
- // Add a class to an element.
4630
- var addClass = 'classList' in document.documentElement ? function (element, className) {
4631
- element.classList.add(className);
4632
- } : function (element, className) {
4633
- var oldClass = element.getAttribute('class') || '';
4634
- element.setAttribute('class', oldClass + ' ' + className);
4242
+ // Check for valid number.
4243
+ var isNumber = function isNumber(input) {
4244
+ return Number(input) === Number(input);
4635
4245
  };
4636
4246
 
4637
4247
  /**
@@ -4716,8 +4326,7 @@ var DataTable = (function (Sortable) {
4716
4326
  return;
4717
4327
  }
4718
4328
 
4719
- var diff = lastRepaint ? scrollTop - lastRepaint : 0;
4720
- if (!lastRepaint || diff < 0 || diff > _this._averageHeight) {
4329
+ if (!lastRepaint || Math.abs(scrollTop - lastRepaint) > _this._averageHeight) {
4721
4330
  var rendered = _this._renderChunk();
4722
4331
 
4723
4332
  _this._lastRepaint = scrollTop;
@@ -4739,7 +4348,7 @@ var DataTable = (function (Sortable) {
4739
4348
  }, {
4740
4349
  key: 'refresh',
4741
4350
  value: function refresh(element, userProvidedConfig) {
4742
- var _scrollerStyle;
4351
+ var _this2 = this;
4743
4352
 
4744
4353
  Object.assign(this._config, defaultConfig, userProvidedConfig);
4745
4354
 
@@ -4781,6 +4390,7 @@ var DataTable = (function (Sortable) {
4781
4390
  }).forEach(function (prop) {
4782
4391
  var value = config[prop];
4783
4392
  var isValueNumber = isNumber(value);
4393
+ var isValuePercent = isValueNumber ? false : value.slice(-1) === '%';
4784
4394
 
4785
4395
  if (value && typeof value !== 'string' && typeof value !== 'number') {
4786
4396
  var msg = 'Invalid optional `' + prop + '`, expected string or number';
@@ -4788,52 +4398,45 @@ var DataTable = (function (Sortable) {
4788
4398
  } else if (isValueNumber) {
4789
4399
  config[prop] = value + 'px';
4790
4400
  }
4791
- });
4792
4401
 
4793
- var isHoriz = Boolean(config.horizontal);
4794
- var value = config[isHoriz ? 'width' : 'height'];
4402
+ if (prop !== 'height') {
4403
+ return;
4404
+ }
4795
4405
 
4796
- if (value) {
4797
- var isValueNumber = isNumber(value);
4798
- var isValuePercent = isValueNumber ? false : value.slice(-1) === '%';
4799
4406
  // Compute the containerHeight as number
4800
4407
  var numberValue = isValueNumber ? value : parseInt(value.replace(/px|%/, ''), 10);
4801
- var innerSize = window[isHoriz ? 'innerWidth' : 'innerHeight'];
4802
4408
 
4803
4409
  if (isValuePercent) {
4804
- this._containerSize = innerSize * numberValue / 100;
4410
+ _this2._containerHeight = window.innerHeight * numberValue / 100;
4805
4411
  } else {
4806
- this._containerSize = isNumber(value) ? value : numberValue;
4412
+ _this2._containerHeight = isNumber(value) ? value : numberValue;
4807
4413
  }
4808
- }
4809
-
4810
- var scrollContainer = config.scrollContainer;
4811
- var scrollerHeight = config.itemHeight * config.total;
4812
- var maxElementHeight = this._maxElementHeight;
4813
-
4814
- if (scrollerHeight > maxElementHeight) {
4815
- console.warn(['HyperList: The maximum element height', maxElementHeight + 'px has', 'been exceeded; please reduce your item height.'].join(' '));
4816
- }
4414
+ });
4817
4415
 
4818
4416
  // Decorate the container element with styles that will match
4819
4417
  // the user supplied configuration.
4820
4418
  var elementStyle = {
4821
4419
  width: '' + config.width,
4822
- height: scrollContainer ? scrollerHeight + 'px' : '' + config.height,
4823
- overflow: scrollContainer ? 'none' : 'auto',
4420
+ height: '' + config.height,
4421
+ overflow: 'auto',
4824
4422
  position: 'relative'
4825
4423
  };
4826
4424
 
4827
4425
  HyperList.mergeStyle(element, elementStyle);
4828
4426
 
4829
- if (scrollContainer) {
4830
- HyperList.mergeStyle(config.scrollContainer, { overflow: 'auto' });
4427
+ var scrollerHeight = config.itemHeight * config.total;
4428
+ var maxElementHeight = this._maxElementHeight;
4429
+
4430
+ if (scrollerHeight > maxElementHeight) {
4431
+ console.warn(['HyperList: The maximum element height', maxElementHeight + 'px has', 'been exceeded; please reduce your item height.'].join(' '));
4831
4432
  }
4832
4433
 
4833
- var scrollerStyle = (_scrollerStyle = {
4434
+ var scrollerStyle = {
4834
4435
  opacity: '0',
4835
- position: 'absolute'
4836
- }, _defineProperty(_scrollerStyle, isHoriz ? 'height' : 'width', '1px'), _defineProperty(_scrollerStyle, isHoriz ? 'width' : 'height', scrollerHeight + 'px'), _scrollerStyle);
4436
+ position: 'absolute',
4437
+ width: '1px',
4438
+ height: scrollerHeight + 'px'
4439
+ };
4837
4440
 
4838
4441
  HyperList.mergeStyle(scroller, scrollerStyle);
4839
4442
 
@@ -4842,10 +4445,6 @@ var DataTable = (function (Sortable) {
4842
4445
  element.appendChild(scroller);
4843
4446
  }
4844
4447
 
4845
- var padding = this._computeScrollPadding();
4846
- this._scrollPaddingBottom = padding.bottom;
4847
- this._scrollPaddingTop = padding.top;
4848
-
4849
4448
  // Set the scroller instance.
4850
4449
  this._scroller = scroller;
4851
4450
  this._scrollHeight = this._computeScrollHeight();
@@ -4874,7 +4473,7 @@ var DataTable = (function (Sortable) {
4874
4473
  item = item.element;
4875
4474
 
4876
4475
  // The height isn't the same as predicted, compute positions again
4877
- if (height !== this._itemHeights[i]) {
4476
+ if (height !== this._itemHeights) {
4878
4477
  this._itemHeights[i] = height;
4879
4478
  this._computePositions(i);
4880
4479
  this._scrollHeight = this._computeScrollHeight(i);
@@ -4887,13 +4486,15 @@ var DataTable = (function (Sortable) {
4887
4486
  throw new Error('Generator did not return a DOM Node for index: ' + i);
4888
4487
  }
4889
4488
 
4890
- addClass(item, config.rowClassName || 'vrow');
4489
+ var oldClass = item.getAttribute('class') || '';
4490
+ item.setAttribute('class', oldClass + ' ' + (config.rowClassName || 'vrow'));
4891
4491
 
4892
- var top = this._itemPositions[i] + this._scrollPaddingTop;
4492
+ var top = this._itemPositions[i];
4893
4493
 
4894
- HyperList.mergeStyle(item, _defineProperty({
4895
- position: 'absolute'
4896
- }, config.horizontal ? 'left' : 'top', top + 'px'));
4494
+ HyperList.mergeStyle(item, {
4495
+ position: 'absolute',
4496
+ top: top + 'px'
4497
+ });
4897
4498
 
4898
4499
  return item;
4899
4500
  }
@@ -4906,7 +4507,7 @@ var DataTable = (function (Sortable) {
4906
4507
  return config.overrideScrollPosition();
4907
4508
  }
4908
4509
 
4909
- return this._element[config.horizontal ? 'scrollLeft' : 'scrollTop'];
4510
+ return this._element.scrollTop;
4910
4511
  }
4911
4512
  }, {
4912
4513
  key: '_renderChunk',
@@ -4963,7 +4564,7 @@ var DataTable = (function (Sortable) {
4963
4564
  }, {
4964
4565
  key: '_computePositions',
4965
4566
  value: function _computePositions() {
4966
- var from = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
4567
+ var from = arguments.length <= 0 || arguments[0] === undefined ? 1 : arguments[0];
4967
4568
 
4968
4569
  var config = this._config;
4969
4570
  var total = config.total;
@@ -4988,21 +4589,20 @@ var DataTable = (function (Sortable) {
4988
4589
  }, {
4989
4590
  key: '_computeScrollHeight',
4990
4591
  value: function _computeScrollHeight() {
4991
- var _HyperList$mergeStyle2,
4992
- _this2 = this;
4592
+ var _this3 = this;
4993
4593
 
4994
4594
  var config = this._config;
4995
- var isHoriz = Boolean(config.horizontal);
4996
4595
  var total = config.total;
4997
4596
  var scrollHeight = this._itemHeights.reduce(function (a, b) {
4998
4597
  return a + b;
4999
- }, 0) + this._scrollPaddingBottom + this._scrollPaddingTop;
4598
+ }, 0);
5000
4599
 
5001
- HyperList.mergeStyle(this._scroller, (_HyperList$mergeStyle2 = {
4600
+ HyperList.mergeStyle(this._scroller, {
5002
4601
  opacity: 0,
5003
4602
  position: 'absolute',
5004
- top: '0px'
5005
- }, _defineProperty(_HyperList$mergeStyle2, isHoriz ? 'height' : 'width', '1px'), _defineProperty(_HyperList$mergeStyle2, isHoriz ? 'width' : 'height', scrollHeight + 'px'), _HyperList$mergeStyle2));
4603
+ width: '1px',
4604
+ height: scrollHeight + 'px'
4605
+ });
5006
4606
 
5007
4607
  // Calculate the height median
5008
4608
  var sortedItemHeights = this._itemHeights.slice(0).sort(function (a, b) {
@@ -5011,11 +4611,9 @@ var DataTable = (function (Sortable) {
5011
4611
  var middle = Math.floor(total / 2);
5012
4612
  var averageHeight = total % 2 === 0 ? (sortedItemHeights[middle] + sortedItemHeights[middle - 1]) / 2 : sortedItemHeights[middle];
5013
4613
 
5014
- var clientProp = isHoriz ? 'clientWidth' : 'clientHeight';
5015
- var element = config.scrollContainer ? config.scrollContainer : this._element;
5016
- var containerHeight = element[clientProp] ? element[clientProp] : this._containerSize;
4614
+ var containerHeight = this._element.clientHeight ? this._element.clientHeight : this._containerHeight;
5017
4615
  this._screenItemsLen = Math.ceil(containerHeight / averageHeight);
5018
- this._containerSize = containerHeight;
4616
+ this._containerHeight = containerHeight;
5019
4617
 
5020
4618
  // Cache 3 times the number of items that fit in the container viewport.
5021
4619
  this._cachedItemsLen = Math.max(this._cachedItemsLen || 0, this._screenItemsLen * 3);
@@ -5023,51 +4621,12 @@ var DataTable = (function (Sortable) {
5023
4621
 
5024
4622
  if (config.reverse) {
5025
4623
  window.requestAnimationFrame(function () {
5026
- if (isHoriz) {
5027
- _this2._element.scrollLeft = scrollHeight;
5028
- } else {
5029
- _this2._element.scrollTop = scrollHeight;
5030
- }
4624
+ _this3._element.scrollTop = scrollHeight;
5031
4625
  });
5032
4626
  }
5033
4627
 
5034
4628
  return scrollHeight;
5035
4629
  }
5036
- }, {
5037
- key: '_computeScrollPadding',
5038
- value: function _computeScrollPadding() {
5039
- var config = this._config;
5040
- var isHoriz = Boolean(config.horizontal);
5041
- var isReverse = config.reverse;
5042
- var styles = window.getComputedStyle(this._element);
5043
-
5044
- var padding = function padding(location) {
5045
- var cssValue = styles.getPropertyValue('padding-' + location);
5046
- return parseInt(cssValue, 10) || 0;
5047
- };
5048
-
5049
- if (isHoriz && isReverse) {
5050
- return {
5051
- bottom: padding('left'),
5052
- top: padding('right')
5053
- };
5054
- } else if (isHoriz) {
5055
- return {
5056
- bottom: padding('right'),
5057
- top: padding('left')
5058
- };
5059
- } else if (isReverse) {
5060
- return {
5061
- bottom: padding('top'),
5062
- top: padding('bottom')
5063
- };
5064
- } else {
5065
- return {
5066
- bottom: padding('bottom'),
5067
- top: padding('top')
5068
- };
5069
- }
5070
- }
5071
4630
  }, {
5072
4631
  key: '_getFrom',
5073
4632
  value: function _getFrom(scrollTop) {
@@ -5084,7 +4643,7 @@ var DataTable = (function (Sortable) {
5084
4643
  value: function _getReverseFrom(scrollTop) {
5085
4644
  var i = this._config.total - 1;
5086
4645
 
5087
- while (i > 0 && this._itemPositions[i] < scrollTop + this._containerSize) {
4646
+ while (i > 0 && this._itemPositions[i] < scrollTop + this._containerHeight) {
5088
4647
  i--;
5089
4648
  }
5090
4649
 
@@ -5435,11 +4994,6 @@ var DataTable = (function (Sortable) {
5435
4994
 
5436
4995
  let naturalWidth = $.style($('.dt-cell__content', $cell), 'width');
5437
4996
 
5438
- if (column.id === '_rowIndex') {
5439
- naturalWidth = this.getRowIndexColumnWidth();
5440
- column.width = naturalWidth;
5441
- }
5442
-
5443
4997
  if (typeof naturalWidth === 'number' && naturalWidth >= column.naturalWidth) {
5444
4998
  column.naturalWidth = naturalWidth;
5445
4999
  } else {
@@ -5488,6 +5042,9 @@ var DataTable = (function (Sortable) {
5488
5042
  if (!column.width) {
5489
5043
  column.width = column.naturalWidth;
5490
5044
  }
5045
+ if (column.id === '_rowIndex') {
5046
+ column.width = this.getRowIndexColumnWidth();
5047
+ }
5491
5048
  if (column.width < this.options.minimumColumnWidth) {
5492
5049
  column.width = this.options.minimumColumnWidth;
5493
5050
  }
@@ -5673,6 +5230,83 @@ var DataTable = (function (Sortable) {
5673
5230
  }
5674
5231
  }
5675
5232
 
5233
+ var en = {
5234
+ "Sort Ascending": "Sort Ascending",
5235
+ "Sort Descending": "Sort Descending",
5236
+ "Reset sorting": "Reset sorting",
5237
+ "Remove column": "Remove column",
5238
+ "No Data": "No Data",
5239
+ "{count} cells copied": {"1":"{count} cell copied","default":"{count} cells copied"},
5240
+ "{count} rows selected": {"1":"{count} row selected","default":"{count} rows selected"}
5241
+ };
5242
+
5243
+ var de = {
5244
+ "Sort Ascending": "Aufsteigend sortieren",
5245
+ "Sort Descending": "Absteigend sortieren",
5246
+ "Reset sorting": "Sortierung zurücksetzen",
5247
+ "Remove column": "Spalte entfernen",
5248
+ "No Data": "Keine Daten",
5249
+ "{count} cells copied": {"1":"{count} Zelle kopiert","default":"{count} Zellen kopiert"},
5250
+ "{count} rows selected": {"1":"{count} Zeile ausgewählt","default":"{count} Zeilen ausgewählt"}
5251
+ };
5252
+
5253
+ var fr = {
5254
+ "Sort Ascending": "Trier par ordre croissant",
5255
+ "Sort Descending": "Trier par ordre décroissant",
5256
+ "Reset sorting": "Réinitialiser le tri",
5257
+ "Remove column": "Supprimer colonne",
5258
+ "No Data": "Pas de données",
5259
+ "{count} cells copied": {"1":"{count} cellule copiée","default":"{count} cellules copiées"},
5260
+ "{count} rows selected": {"1":"{count} ligne sélectionnée","default":"{count} lignes sélectionnées"}
5261
+ };
5262
+
5263
+ var it = {
5264
+ "Sort Ascending": "Ordinamento ascendente",
5265
+ "Sort Descending": "Ordinamento decrescente",
5266
+ "Reset sorting": "Azzeramento ordinamento",
5267
+ "Remove column": "Rimuovi colonna",
5268
+ "No Data": "Nessun dato",
5269
+ "{count} cells copied": {"1":"Copiato {count} cella","default":"{count} celle copiate"},
5270
+ "{count} rows selected": {"1":"{count} linea selezionata","default":"{count} linee selezionate"}
5271
+ };
5272
+
5273
+ function getTranslations() {
5274
+ return {
5275
+ en,
5276
+ de,
5277
+ fr,
5278
+ it,
5279
+ };
5280
+ }
5281
+
5282
+ class TranslationManager {
5283
+ constructor(language) {
5284
+ this.language = language;
5285
+ this.translations = getTranslations();
5286
+ }
5287
+
5288
+ addTranslations(translations) {
5289
+ this.translations = Object.assign(this.translations, translations);
5290
+ }
5291
+
5292
+ translate(sourceText, args) {
5293
+ let translation = (this.translations[this.language] &&
5294
+ this.translations[this.language][sourceText]) || sourceText;
5295
+
5296
+ if (typeof translation === 'object') {
5297
+ translation = args && args.count ?
5298
+ this.getPluralizedTranslation(translation, args.count) :
5299
+ sourceText;
5300
+ }
5301
+
5302
+ return format(translation, args || {});
5303
+ }
5304
+
5305
+ getPluralizedTranslation(translations, count) {
5306
+ return translations[count] || translations['default'];
5307
+ }
5308
+ }
5309
+
5676
5310
  function filterRows(rows, filters) {
5677
5311
  let filteredRowIndices = [];
5678
5312
 
@@ -5865,74 +5499,76 @@ var DataTable = (function (Sortable) {
5865
5499
  };
5866
5500
  }
5867
5501
 
5868
- var DEFAULT_OPTIONS = {
5869
- columns: [],
5870
- data: [],
5871
- dropdownButton: icons.chevronDown,
5872
- headerDropdown: [
5873
- {
5874
- label: 'Sort Ascending',
5875
- action: function (column) {
5876
- this.sortColumn(column.colIndex, 'asc');
5502
+ function getDefaultOptions(instance) {
5503
+ return {
5504
+ columns: [],
5505
+ data: [],
5506
+ dropdownButton: icons.chevronDown,
5507
+ headerDropdown: [
5508
+ {
5509
+ label: instance.translate('Sort Ascending'),
5510
+ action: function (column) {
5511
+ this.sortColumn(column.colIndex, 'asc');
5512
+ }
5513
+ },
5514
+ {
5515
+ label: instance.translate('Sort Descending'),
5516
+ action: function (column) {
5517
+ this.sortColumn(column.colIndex, 'desc');
5518
+ }
5519
+ },
5520
+ {
5521
+ label: instance.translate('Reset sorting'),
5522
+ action: function (column) {
5523
+ this.sortColumn(column.colIndex, 'none');
5524
+ }
5525
+ },
5526
+ {
5527
+ label: instance.translate('Remove column'),
5528
+ action: function (column) {
5529
+ this.removeColumn(column.colIndex);
5530
+ }
5877
5531
  }
5532
+ ],
5533
+ events: {
5534
+ onRemoveColumn(column) {},
5535
+ onSwitchColumn(column1, column2) {},
5536
+ onSortColumn(column) {},
5537
+ onCheckRow(row) {},
5538
+ onDestroy() {}
5878
5539
  },
5879
- {
5880
- label: 'Sort Descending',
5881
- action: function (column) {
5882
- this.sortColumn(column.colIndex, 'desc');
5883
- }
5540
+ hooks: {
5541
+ columnTotal: null
5884
5542
  },
5885
- {
5886
- label: 'Reset sorting',
5887
- action: function (column) {
5888
- this.sortColumn(column.colIndex, 'none');
5889
- }
5543
+ sortIndicator: {
5544
+ asc: '↑',
5545
+ desc: '↓',
5546
+ none: ''
5890
5547
  },
5891
- {
5892
- label: 'Remove column',
5893
- action: function (column) {
5894
- this.removeColumn(column.colIndex);
5895
- }
5896
- }
5897
- ],
5898
- events: {
5899
- onRemoveColumn(column) {},
5900
- onSwitchColumn(column1, column2) {},
5901
- onSortColumn(column) {},
5902
- onCheckRow(row) {},
5903
- onDestroy() {}
5904
- },
5905
- hooks: {
5906
- columnTotal: null
5907
- },
5908
- sortIndicator: {
5909
- asc: '↑',
5910
- desc: '↓',
5911
- none: ''
5912
- },
5913
- overrideComponents: {
5914
- // ColumnManager: CustomColumnManager
5915
- },
5916
- filterRows: filterRows,
5917
- freezeMessage: '',
5918
- getEditor: null,
5919
- serialNoColumn: true,
5920
- checkboxColumn: false,
5921
- clusterize: true,
5922
- logs: false,
5923
- layout: 'fixed', // fixed, fluid, ratio
5924
- noDataMessage: 'No Data',
5925
- cellHeight: 40,
5926
- minimumColumnWidth: 30,
5927
- inlineFilters: false,
5928
- treeView: false,
5929
- checkedRowStatus: true,
5930
- dynamicRowHeight: false,
5931
- pasteFromClipboard: false,
5932
- showTotalRow: false,
5933
- direction: 'ltr',
5934
- disableReorderColumn: false
5935
- };
5548
+ overrideComponents: {
5549
+ // ColumnManager: CustomColumnManager
5550
+ },
5551
+ filterRows: filterRows,
5552
+ freezeMessage: '',
5553
+ getEditor: null,
5554
+ serialNoColumn: true,
5555
+ checkboxColumn: false,
5556
+ clusterize: true,
5557
+ logs: false,
5558
+ layout: 'fixed', // fixed, fluid, ratio
5559
+ noDataMessage: instance.translate('No Data'),
5560
+ cellHeight: 40,
5561
+ minimumColumnWidth: 30,
5562
+ inlineFilters: false,
5563
+ treeView: false,
5564
+ checkedRowStatus: true,
5565
+ dynamicRowHeight: false,
5566
+ pasteFromClipboard: false,
5567
+ showTotalRow: false,
5568
+ direction: 'ltr',
5569
+ disableReorderColumn: false
5570
+ };
5571
+ }
5936
5572
 
5937
5573
  let defaultComponents = {
5938
5574
  DataManager,
@@ -5957,6 +5593,8 @@ var DataTable = (function (Sortable) {
5957
5593
  throw new Error('Invalid argument given for `wrapper`');
5958
5594
  }
5959
5595
 
5596
+ this.initializeTranslations(options);
5597
+ this.setDefaultOptions();
5960
5598
  this.buildOptions(options);
5961
5599
  this.prepare();
5962
5600
  this.initializeComponents();
@@ -5967,23 +5605,36 @@ var DataTable = (function (Sortable) {
5967
5605
  }
5968
5606
  }
5969
5607
 
5608
+ initializeTranslations(options) {
5609
+ this.language = options.language || 'en';
5610
+ this.translationManager = new TranslationManager(this.language);
5611
+
5612
+ if (options.translations) {
5613
+ this.translationManager.addTranslations(options.translations);
5614
+ }
5615
+ }
5616
+
5617
+ setDefaultOptions() {
5618
+ this.DEFAULT_OPTIONS = getDefaultOptions(this);
5619
+ }
5620
+
5970
5621
  buildOptions(options) {
5971
5622
  this.options = this.options || {};
5972
5623
 
5973
5624
  this.options = Object.assign(
5974
- {}, DEFAULT_OPTIONS,
5625
+ {}, this.DEFAULT_OPTIONS,
5975
5626
  this.options || {}, options
5976
5627
  );
5977
5628
 
5978
5629
  options.headerDropdown = options.headerDropdown || [];
5979
5630
  this.options.headerDropdown = [
5980
- ...DEFAULT_OPTIONS.headerDropdown,
5631
+ ...this.DEFAULT_OPTIONS.headerDropdown,
5981
5632
  ...options.headerDropdown
5982
5633
  ];
5983
5634
 
5984
5635
  // custom user events
5985
5636
  this.events = Object.assign(
5986
- {}, DEFAULT_OPTIONS.events,
5637
+ {}, this.DEFAULT_OPTIONS.events,
5987
5638
  this.options.events || {},
5988
5639
  options.events || {}
5989
5640
  );
@@ -6169,6 +5820,10 @@ var DataTable = (function (Sortable) {
6169
5820
  console.log.apply(console, arguments);
6170
5821
  }
6171
5822
  }
5823
+
5824
+ translate(str, args) {
5825
+ return this.translationManager.translate(str, args);
5826
+ }
6172
5827
  }
6173
5828
 
6174
5829
  DataTable.instances = 0;
@@ -6179,15 +5834,15 @@ var DataTable = (function (Sortable) {
6179
5834
  var main = "dist/melondtable.cjs.js";
6180
5835
  var unpkg = "dist/melondtable.min.js";
6181
5836
  var jsdelivr = "dist/melondtable.min.js";
6182
- var scripts = {"start":"yarn run dev","build":"rollup -c && NODE_ENV=production rollup -c","dev":"rollup -c -w","cy:server":"http-server -p 8989","cy:open":"cypress open","cy:run":"cypress run","test":"start-server-and-test cy:server http://localhost:8989 cy:run","test-local":"start-server-and-test cy:server http://localhost:8989 cy:open","travis-deploy-once":"travis-deploy-once","semantic-release":"semantic-release","lint":"eslint src","commit":"npx git-cz"};
5837
+ var scripts = {"start":"yarn run dev","build":"rollup -c && NODE_ENV=production rollup -c","dev":"rollup -c -w","cy:server":"http-server -p 8989","cy:open":"cypress open","cy:run":"cypress run","test":"start-server-and-test cy:server http://localhost:8989 cy:run","test-local":"start-server-and-test cy:server http://localhost:8989 cy:open","travis-deploy-once":"travis-deploy-once","semantic-release":"semantic-release","lint":"eslint src","lint-and-build":"yarn lint && yarn build","commit":"npx git-cz"};
6183
5838
  var files = ["dist","src"];
6184
- var devDependencies = {"autoprefixer":"^9.0.0","chai":"3.5.0","cypress":"3.0.1","cz-conventional-changelog":"^2.1.0","deepmerge":"^2.0.1","eslint":"^5.0.1","eslint-config-airbnb":"^16.1.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.11.0","http-server":"^0.11.1","mocha":"3.3.0","postcss-custom-properties":"^7.0.0","postcss-nested":"^3.0.0","rollup":"^0.59.4","rollup-plugin-commonjs":"^8.3.0","rollup-plugin-eslint":"^4.0.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.3","rollup-plugin-postcss":"^1.2.8","rollup-plugin-uglify-es":"^0.0.1","semantic-release":"^15.6.3","start-server-and-test":"^1.4.1","travis-deploy-once":"^5.0.1"};
5839
+ var devDependencies = {"autoprefixer":"^9.0.0","chai":"3.5.0","cypress":"^9.2.0","cz-conventional-changelog":"^2.1.0","deepmerge":"^2.0.1","eslint":"^5.0.1","eslint-config-airbnb":"^16.1.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.11.0","http-server":"^0.11.1","mocha":"3.3.0","postcss-custom-properties":"^7.0.0","postcss-nested":"^3.0.0","rollup":"^0.59.4","rollup-plugin-commonjs":"^8.3.0","rollup-plugin-eslint":"^4.0.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.3","rollup-plugin-postcss":"^1.2.8","rollup-plugin-uglify-es":"^0.0.1","semantic-release":"^17.1.1","start-server-and-test":"^1.4.1","travis-deploy-once":"^5.0.1"};
6185
5840
  var repository = {"type":"git","url":"https://github.com/amonak/melondtable.git"};
6186
5841
  var keywords = ["datatable","data","grid","table"];
6187
5842
  var author = "Faris Ansari";
6188
5843
  var license = "MIT";
6189
5844
  var bugs = {"url":"https://github.com/amonak/datatable/issues"};
6190
- var homepage = "https://alphamonak.com/melondtable";
5845
+ var homepage = "https://devel.monakerp.com/datatable";
6191
5846
  var dependencies = {"hyperlist":"^1.0.0-beta","lodash":"^4.17.5","sortablejs":"^1.7.0"};
6192
5847
  var config = {"commitizen":{"path":"cz-conventional-changelog"}};
6193
5848
  var packageJson = {