@revolist/revogrid 4.9.9 → 4.9.11

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.
Files changed (193) hide show
  1. package/dist/cjs/column.drag.plugin-e636b5af.js +1686 -0
  2. package/dist/cjs/column.drag.plugin-e636b5af.js.map +1 -0
  3. package/dist/cjs/{column.service-bfaba0e0.js → column.service-15c8352d.js} +443 -56
  4. package/dist/cjs/column.service-15c8352d.js.map +1 -0
  5. package/dist/cjs/{toNumber-838e6ff5.js → debounce-cb5f4e35.js} +229 -12
  6. package/dist/cjs/debounce-cb5f4e35.js.map +1 -0
  7. package/dist/cjs/{edit.utils-983f1a82.js → edit.utils-1172677c.js} +2 -2
  8. package/dist/cjs/{edit.utils-983f1a82.js.map → edit.utils-1172677c.js.map} +1 -1
  9. package/dist/cjs/{header-cell-renderer-53e4fd75.js → header-cell-renderer-375a879f.js} +42 -4
  10. package/dist/cjs/header-cell-renderer-375a879f.js.map +1 -0
  11. package/dist/cjs/{index-464d1aaf.js → index-28b6fdfb.js} +31 -31
  12. package/dist/cjs/{index-464d1aaf.js.map → index-28b6fdfb.js.map} +1 -1
  13. package/dist/cjs/index.cjs.js +39 -28
  14. package/dist/cjs/index.cjs.js.map +1 -1
  15. package/dist/cjs/{key.utils-12715159.js → key.utils-c62ab1e1.js} +2 -12
  16. package/dist/cjs/key.utils-c62ab1e1.js.map +1 -0
  17. package/dist/cjs/revo-grid.cjs.entry.js +704 -2034
  18. package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
  19. package/dist/cjs/revogr-attribution_6.cjs.entry.js +17 -18
  20. package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -1
  21. package/dist/cjs/revogr-clipboard_3.cjs.entry.js +6 -77
  22. package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -1
  23. package/dist/cjs/revogr-data_4.cjs.entry.js +117 -123
  24. package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
  25. package/dist/cjs/revogr-filter-panel.cjs.entry.js +1 -2
  26. package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
  27. package/dist/cjs/{row-header-utils-e71dc7bf.js → row-header-utils-22ffee54.js} +2 -2
  28. package/dist/cjs/{row-header-utils-e71dc7bf.js.map → row-header-utils-22ffee54.js.map} +1 -1
  29. package/dist/cjs/sorting.sign-8bf92449.js +19 -0
  30. package/dist/cjs/sorting.sign-8bf92449.js.map +1 -0
  31. package/dist/cjs/text-editor-91a9f5b5.js +82 -0
  32. package/dist/cjs/text-editor-91a9f5b5.js.map +1 -0
  33. package/dist/cjs/{throttle-c893457e.js → throttle-5da5df51.js} +4 -5
  34. package/dist/cjs/throttle-5da5df51.js.map +1 -0
  35. package/dist/cjs/viewport.helpers-e59a544e.js +58 -0
  36. package/dist/cjs/viewport.helpers-e59a544e.js.map +1 -0
  37. package/dist/collection/components/editors/text-editor.js.map +1 -1
  38. package/dist/collection/components/header/revogr-header.js +1 -1
  39. package/dist/collection/components/overlay/keyboard.service.js +2 -2
  40. package/dist/collection/components/overlay/keyboard.service.js.map +1 -1
  41. package/dist/collection/components/revoGrid/revo-grid-style.css +6 -0
  42. package/dist/collection/index.js +2 -2
  43. package/dist/collection/index.js.map +1 -1
  44. package/dist/collection/plugins/index.js +16 -0
  45. package/dist/collection/plugins/index.js.map +1 -0
  46. package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -1
  47. package/dist/collection/types/selection.js.map +1 -1
  48. package/dist/collection/utils/key.utils.js +0 -9
  49. package/dist/collection/utils/key.utils.js.map +1 -1
  50. package/dist/esm/column.drag.plugin-30dc4e24.js +1665 -0
  51. package/dist/esm/column.drag.plugin-30dc4e24.js.map +1 -0
  52. package/dist/esm/{column.service-6f1faf2d.js → column.service-414e9cba.js} +435 -51
  53. package/dist/esm/column.service-414e9cba.js.map +1 -0
  54. package/dist/esm/{toNumber-8de324a7.js → debounce-e8e9464a.js} +229 -13
  55. package/dist/esm/debounce-e8e9464a.js.map +1 -0
  56. package/dist/esm/{edit.utils-c3f5c9f4.js → edit.utils-0666e5bd.js} +2 -2
  57. package/dist/esm/{edit.utils-c3f5c9f4.js.map → edit.utils-0666e5bd.js.map} +1 -1
  58. package/dist/esm/{header-cell-renderer-66d01daa.js → header-cell-renderer-ca570fcf.js} +40 -4
  59. package/dist/esm/header-cell-renderer-ca570fcf.js.map +1 -0
  60. package/dist/esm/{index-c428acf6.js → index-74b9801b.js} +3 -3
  61. package/dist/esm/{index-c428acf6.js.map → index-74b9801b.js.map} +1 -1
  62. package/dist/esm/index.js +10 -7
  63. package/dist/esm/index.js.map +1 -1
  64. package/dist/esm/{key.utils-b1f93f7e.js → key.utils-d3df5db8.js} +3 -12
  65. package/dist/esm/key.utils-d3df5db8.js.map +1 -0
  66. package/dist/esm/revo-grid.entry.js +675 -2005
  67. package/dist/esm/revo-grid.entry.js.map +1 -1
  68. package/dist/esm/revogr-attribution_6.entry.js +9 -10
  69. package/dist/esm/revogr-attribution_6.entry.js.map +1 -1
  70. package/dist/esm/revogr-clipboard_3.entry.js +5 -76
  71. package/dist/esm/revogr-clipboard_3.entry.js.map +1 -1
  72. package/dist/esm/revogr-data_4.entry.js +50 -56
  73. package/dist/esm/revogr-data_4.entry.js.map +1 -1
  74. package/dist/esm/revogr-filter-panel.entry.js +1 -2
  75. package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
  76. package/dist/esm/{row-header-utils-3a6f6adc.js → row-header-utils-c7e3e2d5.js} +2 -2
  77. package/dist/esm/{row-header-utils-3a6f6adc.js.map → row-header-utils-c7e3e2d5.js.map} +1 -1
  78. package/dist/esm/sorting.sign-1afddea1.js +15 -0
  79. package/dist/esm/sorting.sign-1afddea1.js.map +1 -0
  80. package/dist/esm/text-editor-96d69516.js +80 -0
  81. package/dist/esm/text-editor-96d69516.js.map +1 -0
  82. package/dist/esm/{throttle-f9cda5b0.js → throttle-262c3ed2.js} +3 -4
  83. package/dist/esm/throttle-262c3ed2.js.map +1 -0
  84. package/dist/esm/viewport.helpers-7e7f9dad.js +52 -0
  85. package/dist/esm/viewport.helpers-7e7f9dad.js.map +1 -0
  86. package/dist/revo-grid/column.drag.plugin-30dc4e24.js +5 -0
  87. package/dist/revo-grid/column.drag.plugin-30dc4e24.js.map +1 -0
  88. package/dist/revo-grid/column.service-414e9cba.js +5 -0
  89. package/dist/revo-grid/column.service-414e9cba.js.map +1 -0
  90. package/dist/revo-grid/debounce-e8e9464a.js +5 -0
  91. package/dist/revo-grid/debounce-e8e9464a.js.map +1 -0
  92. package/dist/revo-grid/{edit.utils-c3f5c9f4.js → edit.utils-0666e5bd.js} +2 -2
  93. package/dist/revo-grid/header-cell-renderer-ca570fcf.js +5 -0
  94. package/dist/revo-grid/header-cell-renderer-ca570fcf.js.map +1 -0
  95. package/dist/revo-grid/{index-c428acf6.js → index-74b9801b.js} +2 -2
  96. package/dist/revo-grid/index.esm.js +1 -1
  97. package/dist/revo-grid/key.utils-d3df5db8.js +5 -0
  98. package/dist/revo-grid/key.utils-d3df5db8.js.map +1 -0
  99. package/dist/revo-grid/revo-grid.entry.js +1 -1
  100. package/dist/revo-grid/revo-grid.entry.js.map +1 -1
  101. package/dist/revo-grid/revogr-attribution_6.entry.js +1 -1
  102. package/dist/revo-grid/revogr-attribution_6.entry.js.map +1 -1
  103. package/dist/revo-grid/revogr-clipboard_3.entry.js +1 -1
  104. package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -1
  105. package/dist/revo-grid/revogr-data_4.entry.js +1 -1
  106. package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
  107. package/dist/revo-grid/revogr-filter-panel.entry.js +1 -1
  108. package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -1
  109. package/dist/revo-grid/{row-header-utils-3a6f6adc.js → row-header-utils-c7e3e2d5.js} +2 -2
  110. package/dist/revo-grid/sorting.sign-1afddea1.js +5 -0
  111. package/dist/revo-grid/sorting.sign-1afddea1.js.map +1 -0
  112. package/dist/revo-grid/text-editor-96d69516.js +5 -0
  113. package/dist/revo-grid/text-editor-96d69516.js.map +1 -0
  114. package/dist/revo-grid/throttle-262c3ed2.js +5 -0
  115. package/dist/revo-grid/{throttle-f9cda5b0.js.map → throttle-262c3ed2.js.map} +1 -1
  116. package/dist/revo-grid/viewport.helpers-7e7f9dad.js +5 -0
  117. package/dist/revo-grid/viewport.helpers-7e7f9dad.js.map +1 -0
  118. package/dist/types/components/editors/text-editor.d.ts +2 -2
  119. package/dist/types/index.d.ts +2 -2
  120. package/dist/types/plugins/index.d.ts +12 -0
  121. package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +1 -13
  122. package/dist/types/types/selection.d.ts +1 -1
  123. package/dist/types/utils/key.utils.d.ts +0 -1
  124. package/hydrate/index.js +2 -11
  125. package/hydrate/index.mjs +2 -11
  126. package/package.json +1 -1
  127. package/standalone/_stringToPath.js +1 -1
  128. package/standalone/column.service.js +1 -1
  129. package/standalone/data.store.js +2 -2
  130. package/standalone/debounce.js +1 -1
  131. package/standalone/dimension.helpers.js +1 -1
  132. package/standalone/index.js +7 -5
  133. package/standalone/index.js.map +1 -1
  134. package/standalone/isObjectLike.js +1 -1
  135. package/standalone/revo-grid.js +1948 -1948
  136. package/standalone/revo-grid.js.map +1 -1
  137. package/standalone/revogr-edit.js +1 -1
  138. package/standalone/revogr-edit2.js +1 -10
  139. package/standalone/revogr-edit2.js.map +1 -1
  140. package/standalone/revogr-header.js +1 -1
  141. package/standalone/revogr-header2.js +54 -52
  142. package/standalone/revogr-header2.js.map +1 -1
  143. package/standalone/revogr-overlay-selection2.js +2 -2
  144. package/standalone/revogr-overlay-selection2.js.map +1 -1
  145. package/standalone/revogr-row-headers2.js +1 -1
  146. package/standalone/throttle.js +1 -1
  147. package/standalone/toNumber.js +1 -1
  148. package/dist/cjs/column.service-bfaba0e0.js.map +0 -1
  149. package/dist/cjs/column.utils-4a450d27.js +0 -345
  150. package/dist/cjs/column.utils-4a450d27.js.map +0 -1
  151. package/dist/cjs/debounce-e2b7c6fb.js +0 -226
  152. package/dist/cjs/debounce-e2b7c6fb.js.map +0 -1
  153. package/dist/cjs/dispatcher-998aa470.js +0 -46
  154. package/dist/cjs/dispatcher-998aa470.js.map +0 -1
  155. package/dist/cjs/header-cell-renderer-53e4fd75.js.map +0 -1
  156. package/dist/cjs/key.utils-12715159.js.map +0 -1
  157. package/dist/cjs/selection.helpers-2c90d546.js +0 -450
  158. package/dist/cjs/selection.helpers-2c90d546.js.map +0 -1
  159. package/dist/cjs/throttle-c893457e.js.map +0 -1
  160. package/dist/cjs/toNumber-838e6ff5.js.map +0 -1
  161. package/dist/esm/column.service-6f1faf2d.js.map +0 -1
  162. package/dist/esm/column.utils-1a402ff9.js +0 -333
  163. package/dist/esm/column.utils-1a402ff9.js.map +0 -1
  164. package/dist/esm/debounce-7781346d.js +0 -224
  165. package/dist/esm/debounce-7781346d.js.map +0 -1
  166. package/dist/esm/dispatcher-ea08404f.js +0 -43
  167. package/dist/esm/dispatcher-ea08404f.js.map +0 -1
  168. package/dist/esm/header-cell-renderer-66d01daa.js.map +0 -1
  169. package/dist/esm/key.utils-b1f93f7e.js.map +0 -1
  170. package/dist/esm/selection.helpers-ac4368b0.js +0 -441
  171. package/dist/esm/selection.helpers-ac4368b0.js.map +0 -1
  172. package/dist/esm/throttle-f9cda5b0.js.map +0 -1
  173. package/dist/esm/toNumber-8de324a7.js.map +0 -1
  174. package/dist/revo-grid/column.service-6f1faf2d.js +0 -5
  175. package/dist/revo-grid/column.service-6f1faf2d.js.map +0 -1
  176. package/dist/revo-grid/column.utils-1a402ff9.js +0 -5
  177. package/dist/revo-grid/column.utils-1a402ff9.js.map +0 -1
  178. package/dist/revo-grid/debounce-7781346d.js +0 -5
  179. package/dist/revo-grid/debounce-7781346d.js.map +0 -1
  180. package/dist/revo-grid/dispatcher-ea08404f.js +0 -5
  181. package/dist/revo-grid/dispatcher-ea08404f.js.map +0 -1
  182. package/dist/revo-grid/header-cell-renderer-66d01daa.js +0 -5
  183. package/dist/revo-grid/header-cell-renderer-66d01daa.js.map +0 -1
  184. package/dist/revo-grid/key.utils-b1f93f7e.js +0 -5
  185. package/dist/revo-grid/key.utils-b1f93f7e.js.map +0 -1
  186. package/dist/revo-grid/selection.helpers-ac4368b0.js +0 -5
  187. package/dist/revo-grid/selection.helpers-ac4368b0.js.map +0 -1
  188. package/dist/revo-grid/throttle-f9cda5b0.js +0 -5
  189. package/dist/revo-grid/toNumber-8de324a7.js +0 -5
  190. package/dist/revo-grid/toNumber-8de324a7.js.map +0 -1
  191. /package/dist/revo-grid/{edit.utils-c3f5c9f4.js.map → edit.utils-0666e5bd.js.map} +0 -0
  192. /package/dist/revo-grid/{index-c428acf6.js.map → index-74b9801b.js.map} +0 -0
  193. /package/dist/revo-grid/{row-header-utils-3a6f6adc.js.map → row-header-utils-c7e3e2d5.js.map} +0 -0
@@ -15,14 +15,14 @@ var freeGlobal = _freeGlobal;
15
15
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
16
16
 
17
17
  /** Used as a reference to the global object. */
18
- var root$1 = freeGlobal || freeSelf || Function('return this')();
18
+ var root$2 = freeGlobal || freeSelf || Function('return this')();
19
19
 
20
- var _root = root$1;
20
+ var _root = root$2;
21
21
 
22
- var root = _root;
22
+ var root$1 = _root;
23
23
 
24
24
  /** Built-in value references. */
25
- var Symbol$2 = root.Symbol;
25
+ var Symbol$2 = root$1.Symbol;
26
26
 
27
27
  var _Symbol = Symbol$2;
28
28
 
@@ -152,12 +152,12 @@ var _baseGetTag = baseGetTag$1;
152
152
  * // => false
153
153
  */
154
154
 
155
- function isObject$1(value) {
155
+ function isObject$2(value) {
156
156
  var type = typeof value;
157
157
  return value != null && (type == 'object' || type == 'function');
158
158
  }
159
159
 
160
- var isObject_1 = isObject$1;
160
+ var isObject_1 = isObject$2;
161
161
 
162
162
  /**
163
163
  * Checks if `value` is object-like. A value is object-like if it's not `null`
@@ -262,7 +262,7 @@ function baseTrim$1(string) {
262
262
  var _baseTrim = baseTrim$1;
263
263
 
264
264
  var baseTrim = _baseTrim,
265
- isObject = isObject_1,
265
+ isObject$1 = isObject_1,
266
266
  isSymbol = isSymbol_1;
267
267
 
268
268
  /** Used as references for various `Number` constants. */
@@ -303,16 +303,16 @@ var freeParseInt = parseInt;
303
303
  * _.toNumber('3.2');
304
304
  * // => 3.2
305
305
  */
306
- function toNumber(value) {
306
+ function toNumber$1(value) {
307
307
  if (typeof value == 'number') {
308
308
  return value;
309
309
  }
310
310
  if (isSymbol(value)) {
311
311
  return NAN;
312
312
  }
313
- if (isObject(value)) {
313
+ if (isObject$1(value)) {
314
314
  var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
315
- value = isObject(other) ? (other + '') : other;
315
+ value = isObject$1(other) ? (other + '') : other;
316
316
  }
317
317
  if (typeof value != 'string') {
318
318
  return value === 0 ? value : +value;
@@ -324,8 +324,224 @@ function toNumber(value) {
324
324
  : (reIsBadHex.test(value) ? NAN : +value);
325
325
  }
326
326
 
327
- var toNumber_1 = toNumber;
327
+ var toNumber_1 = toNumber$1;
328
+
329
+ var root = _root;
330
+
331
+ /**
332
+ * Gets the timestamp of the number of milliseconds that have elapsed since
333
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
334
+ *
335
+ * @static
336
+ * @memberOf _
337
+ * @since 2.4.0
338
+ * @category Date
339
+ * @returns {number} Returns the timestamp.
340
+ * @example
341
+ *
342
+ * _.defer(function(stamp) {
343
+ * console.log(_.now() - stamp);
344
+ * }, _.now());
345
+ * // => Logs the number of milliseconds it took for the deferred invocation.
346
+ */
347
+ var now$1 = function() {
348
+ return root.Date.now();
349
+ };
350
+
351
+ var now_1 = now$1;
352
+
353
+ var isObject = isObject_1,
354
+ now = now_1,
355
+ toNumber = toNumber_1;
356
+
357
+ /** Error message constants. */
358
+ var FUNC_ERROR_TEXT = 'Expected a function';
359
+
360
+ /* Built-in method references for those with the same name as other `lodash` methods. */
361
+ var nativeMax = Math.max,
362
+ nativeMin = Math.min;
363
+
364
+ /**
365
+ * Creates a debounced function that delays invoking `func` until after `wait`
366
+ * milliseconds have elapsed since the last time the debounced function was
367
+ * invoked. The debounced function comes with a `cancel` method to cancel
368
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
369
+ * Provide `options` to indicate whether `func` should be invoked on the
370
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
371
+ * with the last arguments provided to the debounced function. Subsequent
372
+ * calls to the debounced function return the result of the last `func`
373
+ * invocation.
374
+ *
375
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
376
+ * invoked on the trailing edge of the timeout only if the debounced function
377
+ * is invoked more than once during the `wait` timeout.
378
+ *
379
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
380
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
381
+ *
382
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
383
+ * for details over the differences between `_.debounce` and `_.throttle`.
384
+ *
385
+ * @static
386
+ * @memberOf _
387
+ * @since 0.1.0
388
+ * @category Function
389
+ * @param {Function} func The function to debounce.
390
+ * @param {number} [wait=0] The number of milliseconds to delay.
391
+ * @param {Object} [options={}] The options object.
392
+ * @param {boolean} [options.leading=false]
393
+ * Specify invoking on the leading edge of the timeout.
394
+ * @param {number} [options.maxWait]
395
+ * The maximum time `func` is allowed to be delayed before it's invoked.
396
+ * @param {boolean} [options.trailing=true]
397
+ * Specify invoking on the trailing edge of the timeout.
398
+ * @returns {Function} Returns the new debounced function.
399
+ * @example
400
+ *
401
+ * // Avoid costly calculations while the window size is in flux.
402
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
403
+ *
404
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
405
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
406
+ * 'leading': true,
407
+ * 'trailing': false
408
+ * }));
409
+ *
410
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
411
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
412
+ * var source = new EventSource('/stream');
413
+ * jQuery(source).on('message', debounced);
414
+ *
415
+ * // Cancel the trailing debounced invocation.
416
+ * jQuery(window).on('popstate', debounced.cancel);
417
+ */
418
+ function debounce(func, wait, options) {
419
+ var lastArgs,
420
+ lastThis,
421
+ maxWait,
422
+ result,
423
+ timerId,
424
+ lastCallTime,
425
+ lastInvokeTime = 0,
426
+ leading = false,
427
+ maxing = false,
428
+ trailing = true;
429
+
430
+ if (typeof func != 'function') {
431
+ throw new TypeError(FUNC_ERROR_TEXT);
432
+ }
433
+ wait = toNumber(wait) || 0;
434
+ if (isObject(options)) {
435
+ leading = !!options.leading;
436
+ maxing = 'maxWait' in options;
437
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
438
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
439
+ }
440
+
441
+ function invokeFunc(time) {
442
+ var args = lastArgs,
443
+ thisArg = lastThis;
444
+
445
+ lastArgs = lastThis = undefined;
446
+ lastInvokeTime = time;
447
+ result = func.apply(thisArg, args);
448
+ return result;
449
+ }
450
+
451
+ function leadingEdge(time) {
452
+ // Reset any `maxWait` timer.
453
+ lastInvokeTime = time;
454
+ // Start the timer for the trailing edge.
455
+ timerId = setTimeout(timerExpired, wait);
456
+ // Invoke the leading edge.
457
+ return leading ? invokeFunc(time) : result;
458
+ }
459
+
460
+ function remainingWait(time) {
461
+ var timeSinceLastCall = time - lastCallTime,
462
+ timeSinceLastInvoke = time - lastInvokeTime,
463
+ timeWaiting = wait - timeSinceLastCall;
464
+
465
+ return maxing
466
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
467
+ : timeWaiting;
468
+ }
469
+
470
+ function shouldInvoke(time) {
471
+ var timeSinceLastCall = time - lastCallTime,
472
+ timeSinceLastInvoke = time - lastInvokeTime;
473
+
474
+ // Either this is the first call, activity has stopped and we're at the
475
+ // trailing edge, the system time has gone backwards and we're treating
476
+ // it as the trailing edge, or we've hit the `maxWait` limit.
477
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
478
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
479
+ }
480
+
481
+ function timerExpired() {
482
+ var time = now();
483
+ if (shouldInvoke(time)) {
484
+ return trailingEdge(time);
485
+ }
486
+ // Restart the timer.
487
+ timerId = setTimeout(timerExpired, remainingWait(time));
488
+ }
489
+
490
+ function trailingEdge(time) {
491
+ timerId = undefined;
492
+
493
+ // Only invoke if we have `lastArgs` which means `func` has been
494
+ // debounced at least once.
495
+ if (trailing && lastArgs) {
496
+ return invokeFunc(time);
497
+ }
498
+ lastArgs = lastThis = undefined;
499
+ return result;
500
+ }
501
+
502
+ function cancel() {
503
+ if (timerId !== undefined) {
504
+ clearTimeout(timerId);
505
+ }
506
+ lastInvokeTime = 0;
507
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
508
+ }
509
+
510
+ function flush() {
511
+ return timerId === undefined ? result : trailingEdge(now());
512
+ }
513
+
514
+ function debounced() {
515
+ var time = now(),
516
+ isInvoking = shouldInvoke(time);
517
+
518
+ lastArgs = arguments;
519
+ lastThis = this;
520
+ lastCallTime = time;
521
+
522
+ if (isInvoking) {
523
+ if (timerId === undefined) {
524
+ return leadingEdge(lastCallTime);
525
+ }
526
+ if (maxing) {
527
+ // Handle invocations in a tight loop.
528
+ clearTimeout(timerId);
529
+ timerId = setTimeout(timerExpired, wait);
530
+ return invokeFunc(lastCallTime);
531
+ }
532
+ }
533
+ if (timerId === undefined) {
534
+ timerId = setTimeout(timerExpired, wait);
535
+ }
536
+ return result;
537
+ }
538
+ debounced.cancel = cancel;
539
+ debounced.flush = flush;
540
+ return debounced;
541
+ }
542
+
543
+ var debounce_1 = debounce;
328
544
 
329
- export { _baseGetTag as _, _root as a, _Symbol as b, isObjectLike_1 as c, _freeGlobal as d, isSymbol_1 as e, isObject_1 as i, toNumber_1 as t };
545
+ export { _baseGetTag as _, _root as a, _Symbol as b, isObjectLike_1 as c, debounce_1 as d, _freeGlobal as e, isSymbol_1 as f, isObject_1 as i, toNumber_1 as t };
330
546
 
331
- //# sourceMappingURL=toNumber-8de324a7.js.map
547
+ //# sourceMappingURL=debounce-e8e9464a.js.map
@@ -0,0 +1 @@
1
+ {"file":"debounce-e8e9464a.js","mappings":";;;;;;;AACA,IAAIA,YAAU,GAAG,OAAOC,cAAM,IAAI,QAAQ,IAAIA,cAAM,IAAIA,cAAM,CAAC,MAAM,KAAK,MAAM,IAAIA,cAAM,CAAC;AAC3F;IACA,WAAc,GAAGD;;ACHjB,IAAI,UAAU,GAAGE,WAAwB,CAAC;AAC1C;AACA;AACA,IAAI,QAAQ,GAAG,OAAO,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,IAAI,CAAC;AACjF;AACA;AACA,IAAIC,MAAI,GAAG,UAAU,IAAI,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;AAC/D;IACA,KAAc,GAAGA;;ACRjB,IAAIA,MAAI,GAAGD,KAAkB,CAAC;AAC9B;AACA;AACA,IAAIE,QAAM,GAAGD,MAAI,CAAC,MAAM,CAAC;AACzB;IACA,OAAc,GAAGC;;ACLjB,IAAIA,QAAM,GAAGF,OAAoB,CAAC;AAClC;AACA;AACA,IAAIG,aAAW,GAAG,MAAM,CAAC,SAAS,CAAC;AACnC;AACA;AACA,IAAI,cAAc,GAAGA,aAAW,CAAC,cAAc,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,sBAAoB,GAAGD,aAAW,CAAC,QAAQ,CAAC;AAChD;AACA;AACA,IAAIE,gBAAc,GAAGH,QAAM,GAAGA,QAAM,CAAC,WAAW,GAAG,SAAS,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASI,WAAS,CAAC,KAAK,EAAE;AAC1B,EAAE,IAAI,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,KAAK,EAAED,gBAAc,CAAC;AACxD,M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G;AACvB,IAAI,IAAI,IAAI,GAAG,GAAG,EAAE;AACpB,QAAQ,UAAU,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;AACxC;AACA,IAAI,QAAQ,GAAG,SAAS,CAAC;AACzB,IAAI,QAAQ,GAAG,IAAI,CAAC;AACpB,IAAI,YAAY,GAAG,IAAI,CAAC;AACxB;AACA,IAAI,IAAI,UAAU,EAAE;AACpB,MAAM,IAAI,OAAO,KAAK,SAAS,EAAE;AACjC,QAAQ,OAAO,WAAW,CAAC,YAAY,CAAC,CAAC;AACzC,OAAO;AACP,MAAM,IAAI,MAAM,EAAE;AAClB;AACA,QAAQ,YAAY,CAAC,OAAO,CAAC,CAAC;AAC9B,QAAQ,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AACjD,QAAQ,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC;AACxC,OAAO;AACP,KAAK;AACL,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE;AAC/B,MAAM,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAC/C,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG;AACH,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;AAC5B,EAAE,SAAS,CAAC,KAAK,GAAG,KAAK,CAAC;AAC1B,EAAE,OAAO,SAAS,CAAC;AACnB,CAAC;AACD;IACA,UAAc,GAAG;;;;","names":["freeGlobal","global","require$$0","root","Symbol","objectProto","nativeObjectToString","symToStringTag","getRawTag","objectToString","require$$1","require$$2","baseGetTag","isObject","isObjectLike","isSymbol","trimmedEndIndex","baseTrim","toNumber","now"],"sources":["node_modules/lodash/_freeGlobal.js","node_modules/lodash/_root.js","node_modules/lodash/_Symbol.js","node_modules/lodash/_getRawTag.js","node_modules/lodash/_objectToString.js","node_modules/lodash/_baseGetTag.js","node_modules/lodash/isObject.js","node_modules/lodash/isObjectLike.js","node_modules/lodash/isSymbol.js","node_modules/lodash/_trimmedEndIndex.js","node_modules/lodash/_baseTrim.js","node_modules/lodash/toNumber.js","node_modules/lodash/now.js","node_modules/lodash/debounce.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built by Revolist OU ❤️
3
3
  */
4
- import { L as EDIT_INPUT_WR } from './index-c428acf6.js';
4
+ import { L as EDIT_INPUT_WR } from './index-74b9801b.js';
5
5
 
6
6
  // is edit input
7
7
  function isEditInput(el) {
@@ -14,4 +14,4 @@ function isEditorCtrConstructible(editor) {
14
14
 
15
15
  export { isEditorCtrConstructible as a, isEditInput as i };
16
16
 
17
- //# sourceMappingURL=edit.utils-c3f5c9f4.js.map
17
+ //# sourceMappingURL=edit.utils-0666e5bd.js.map
@@ -1 +1 @@
1
- {"file":"edit.utils-c3f5c9f4.js","mappings":";;;;;AAIA;SACgB,WAAW,CAAC,EAAgB;IAC1C,OAAO,CAAC,EAAC,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,OAAO,CAAC,IAAI,aAAa,EAAE,CAAC,CAAA,CAAC;AAC5C,CAAC;AAGD;SACgB,wBAAwB,CACtC,MAAW;IAEX,OAAO,OAAO,MAAM,KAAK,UAAU,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,QAAQ,CAAC;AAC9E;;;;","names":[],"sources":["src/components/editors/edit.utils.ts"],"sourcesContent":["import { EDIT_INPUT_WR } from '../../utils/consts';\nimport {\n EditorCtrConstructible,\n} from '@type';\n// is edit input\nexport function isEditInput(el?: HTMLElement) {\n return !!el?.closest(`.${EDIT_INPUT_WR}`);\n}\n\n\n// Type guard for EditorCtrConstructible\nexport function isEditorCtrConstructible(\n editor: any,\n): editor is EditorCtrConstructible {\n return typeof editor === 'function' && typeof editor.prototype === 'object';\n}\n"],"version":3}
1
+ {"file":"edit.utils-0666e5bd.js","mappings":";;;;;AAIA;SACgB,WAAW,CAAC,EAAgB;IAC1C,OAAO,CAAC,EAAC,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,OAAO,CAAC,IAAI,aAAa,EAAE,CAAC,CAAA,CAAC;AAC5C,CAAC;AAGD;SACgB,wBAAwB,CACtC,MAAW;IAEX,OAAO,OAAO,MAAM,KAAK,UAAU,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,QAAQ,CAAC;AAC9E;;;;","names":[],"sources":["src/components/editors/edit.utils.ts"],"sourcesContent":["import { EDIT_INPUT_WR } from '../../utils/consts';\nimport {\n EditorCtrConstructible,\n} from '@type';\n// is edit input\nexport function isEditInput(el?: HTMLElement) {\n return !!el?.closest(`.${EDIT_INPUT_WR}`);\n}\n\n\n// Type guard for EditorCtrConstructible\nexport function isEditorCtrConstructible(\n editor: any,\n): editor is EditorCtrConstructible {\n return typeof editor === 'function' && typeof editor.prototype === 'object';\n}\n"],"version":3}
@@ -2,8 +2,44 @@
2
2
  * Built by Revolist OU ❤️
3
3
  */
4
4
  import { h } from './index-a61f225b.js';
5
- import { d as dispatch } from './dispatcher-ea08404f.js';
6
- import { l as doPropMerge } from './column.service-6f1faf2d.js';
5
+ import { e as doPropMerge } from './column.service-414e9cba.js';
6
+
7
+ /**
8
+ * Dispatches a custom event to a specified target element.
9
+ *
10
+ * @param target - The target element to dispatch the event to.
11
+ * @param eventName - The name of the custom event.
12
+ * @param detail - Optional. The detail of the custom event.
13
+ * @returns The custom event that was dispatched.
14
+ */
15
+ function dispatch(target, eventName, detail) {
16
+ // Create a new CustomEvent with the specified event name and detail.
17
+ const event = new CustomEvent(eventName, {
18
+ detail,
19
+ cancelable: true, // Indicates whether the event can be canceled.
20
+ bubbles: true, // Indicates whether the event bubbles up through the DOM.
21
+ });
22
+ // Dispatch the event on the target element.
23
+ target === null || target === void 0 ? void 0 : target.dispatchEvent(event);
24
+ // Return the custom event that was dispatched.
25
+ return event;
26
+ }
27
+ /**
28
+ * Dispatches a custom event based on an existing event object and prevents the default behavior of the original event.
29
+ *
30
+ * @param e - The original event object containing the target and preventDefault method.
31
+ * @param eventName - The name of the custom event.
32
+ * @param detail - Optional. The detail of the custom event.
33
+ * @returns The custom event that was dispatched.
34
+ */
35
+ function dispatchByEvent(e, // The original event object containing the target and preventDefault method.
36
+ eventName, // The name of the custom event.
37
+ detail) {
38
+ // Prevent the default behavior of the original event.
39
+ e.preventDefault();
40
+ // Dispatch the custom event to the target element specified in the original event object.
41
+ return dispatch(e.target, eventName, detail);
42
+ }
7
43
 
8
44
  var ResizeEvents;
9
45
  (function (ResizeEvents) {
@@ -298,6 +334,6 @@ const HeaderCellRenderer = ({ data, props, additionalData }, children) => {
298
334
  children));
299
335
  };
300
336
 
301
- export { HeaderCellRenderer as H, ON_COLUMN_CLICK as O };
337
+ export { HeaderCellRenderer as H, ON_COLUMN_CLICK as O, dispatchByEvent as a, dispatch as d };
302
338
 
303
- //# sourceMappingURL=header-cell-renderer-66d01daa.js.map
339
+ //# sourceMappingURL=header-cell-renderer-ca570fcf.js.map
@@ -0,0 +1 @@
1
+ {"file":"header-cell-renderer-ca570fcf.js","mappings":";;;;;;AAAA;;;;;;;;SAQgB,QAAQ,CACtB,MAA4B,EAC5B,SAAiB,EACjB,MAAuB;;IAGvB,MAAM,KAAK,GAAG,IAAI,WAAW,CAAiB,SAAS,EAAE;QACvD,MAAM;QACN,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;;IAGH,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,CAAC,KAAK,CAAC,CAAC;;IAG7B,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;SAQgB,eAAe,CAC7B,CAAgD;AAChD,SAAiB;AACjB,MAAuB;;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G,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAS,EAAE,QAAiB;IAC1F,IAAI,WAAW,GAA6B,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,KAAI,EAAE,CAAC;IAC7D,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,EAAE;QACxB,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;KAC5D;IACD,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,EAAE;QAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACtC,SAAS,GAAG,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;SACvC;KACF;IACD,QACE,EAAC,gBAAgB,oBAAK,SAAS,IAAE,WAAW,EAAE,CAAC,CAAa;YAC1D,QAAQ,CAAC,CAAC,CAAC,aAA4B,EAAE,eAAe,EAAE;gBACxD,IAAI;gBACJ,KAAK,EAAE,CAAC;aACT,CAAC,CAAC;SACH;QACA,WAAK,KAAK,EAAC,gBAAgB,IAAE,WAAW,CAAO;QAC9C,QAAQ,CACQ,EACnB;AACJ;;;;","names":[],"sources":["src/plugins/dispatcher.ts","src/components/header/resizable.directive.tsx","src/components/header/resizable.element.tsx","src/components/header/header-cell-renderer.tsx"],"sourcesContent":["/**\n * Dispatches a custom event to a specified target element.\n *\n * @param target - The target element to dispatch the event to.\n * @param eventName - The name of the custom event.\n * @param detail - Optional. The detail of the custom event.\n * @returns The custom event that was dispatched.\n */\nexport function dispatch<DispatchDetail = any>(\n target: MouseEvent['target'],\n eventName: string,\n detail?: DispatchDetail,\n) {\n // Create a new CustomEvent with the specified event name and detail.\n const event = new CustomEvent<DispatchDetail>(eventName, {\n detail,\n cancelable: true, // Indicates whether the event can be canceled.\n bubbles: true, // Indicates whether the event bubbles up through the DOM.\n });\n\n // Dispatch the event on the target element.\n target?.dispatchEvent(event);\n\n // Return the custom event that was dispatched.\n return event;\n}\n\n/**\n * Dispatches a custom event based on an existing event object and prevents the default behavior of the original event.\n *\n * @param e - The original event object containing the target and preventDefault method.\n * @param eventName - The name of the custom event.\n * @param detail - Optional. The detail of the custom event.\n * @returns The custom event that was dispatched.\n */\nexport function dispatchByEvent<DispatchDetail = any>(\n e: Pick<MouseEvent, 'target' | 'preventDefault'>, // The original event object containing the target and preventDefault method.\n eventName: string, // The name of the custom event.\n detail?: DispatchDetail, // Optional. The detail of the custom event.\n): CustomEvent {\n // Prevent the default behavior of the original event.\n e.preventDefault();\n\n // Dispatch the custom event to the target element specified in the original event object.\n return dispatch<DispatchDetail>(e.target, eventName, detail);\n}\n","export type ResizeProps = {\n active: ('r' | 'rb' | 'b' | 'lb' | 'l' | 'lt' | 't' | 'rt')[]; // all\n fitParent: boolean; // false\n minWidth: number; // 0\n minHeight: number; // 0\n\n disableAttributes: ('l' | 't' | 'w' | 'h')[]; // []\n maxWidth?: number;\n maxHeight?: number;\n\n onResize?(e: ResizeEvent): void;\n onDoubleClick?(originalEvent: MouseEvent): void;\n};\n\nexport type ResizeEvent = {\n eventName: string;\n changedX?: number;\n changedY?: number;\n width?: number;\n height?: number;\n};\n\nexport enum ResizeEvents {\n start = 'resize:start',\n move = 'resize:move',\n end = 'resize:end',\n}\n\nconst RESIZE_MASK: { [key: string]: any } = {\n 'resizable-r': { bit: 0b0001, cursor: 'ew-resize' },\n 'resizable-rb': { bit: 0b0011, cursor: 'se-resize' },\n 'resizable-b': { bit: 0b0010, cursor: 's-resize' },\n 'resizable-lb': { bit: 0b0110, cursor: 'sw-resize' },\n 'resizable-l': { bit: 0b0100, cursor: 'w-resize' },\n 'resizable-lt': { bit: 0b1100, cursor: 'nw-resize' },\n 'resizable-t': { bit: 0b1000, cursor: 'n-resize' },\n 'resizable-rt': { bit: 0b1001, cursor: 'ne-resize' },\n};\n\nconst DISABLE_MASK = {\n l: 0b0001,\n t: 0b0010,\n w: 0b0100,\n h: 0b1000,\n};\n\nconst defaultProps = (props: Partial<ResizeProps>): ResizeProps => {\n return {\n ...props,\n fitParent: props.fitParent || false,\n active: props.active || [],\n disableAttributes: props.disableAttributes || [],\n minWidth: props.minWidth || 0,\n minHeight: props.minHeight || 0,\n };\n};\n\nexport class ResizeDirective {\n private $el: HTMLElement;\n private props: ResizeProps;\n private minW: number;\n private minH: number;\n private maxW: number;\n private maxH: number;\n\n private mouseX = 0;\n private mouseY = 0;\n\n private width = 0;\n private height = 0;\n\n private changeX = 0;\n private changeY = 0;\n\n private parent: { width: number; height: number };\n private resizeState: number;\n private activeResizer?: HTMLElement;\n private disableCalcMap = 0b1111;\n\n private mouseMoveFunc: () => void;\n private mouseUpFunc: () => void;\n\n constructor(\n private initialProps: Partial<ResizeProps>,\n private $event?: (e: ResizeEvent) => void,\n ) {\n this.props = defaultProps(initialProps);\n this.mouseMoveFunc = this.handleMove.bind(this);\n this.mouseUpFunc = this.handleUp.bind(this);\n\n this.minW = this.props.minWidth;\n this.minH = this.props.minHeight;\n this.maxW = this.props.maxWidth ?? 0;\n this.maxH = this.props.maxHeight ?? 0;\n this.parent = { width: 0, height: 0 };\n this.resizeState = 0;\n }\n\n set($el: HTMLElement) {\n this.$el = $el;\n this.props.disableAttributes.forEach(attr => {\n switch (attr) {\n case 'l':\n this.disableCalcMap &= ~DISABLE_MASK.l;\n break;\n case 't':\n this.disableCalcMap &= ~DISABLE_MASK.t;\n break;\n case 'w':\n this.disableCalcMap &= ~DISABLE_MASK.w;\n break;\n case 'h':\n this.disableCalcMap &= ~DISABLE_MASK.h;\n }\n });\n }\n emitEvent(eventName: string, additionalOptions?: any) {\n if (!this.$event) {\n return;\n }\n const isLeft = this.activeResizer?.classList.contains('resizable-l');\n this.$event({\n eventName,\n width: this.width + this.changeX * (isLeft ? -1 : 1),\n height: this.height + this.changeY,\n changedX: this.changeX,\n changedY: this.changeY,\n ...additionalOptions,\n });\n }\n\n private static isTouchEvent(e: MouseEvent | TouchEvent): e is TouchEvent {\n const event = e as TouchEvent;\n return event.touches?.length >= 0;\n }\n\n handleMove(event: MouseEvent | TouchEvent) {\n if (!this.resizeState) {\n return;\n }\n let eventY, eventX;\n if (ResizeDirective.isTouchEvent(event)) {\n eventY = event.touches[0].clientY;\n eventX = event.touches[0].clientX;\n } else {\n eventY = event.clientY;\n eventX = event.clientX;\n }\n let isX =\n this.resizeState & RESIZE_MASK['resizable-r'].bit ||\n this.resizeState & RESIZE_MASK['resizable-l'].bit;\n\n let isY =\n this.resizeState & RESIZE_MASK['resizable-t'].bit ||\n this.resizeState & RESIZE_MASK['resizable-b'].bit;\n\n if (isY && this.disableCalcMap & DISABLE_MASK.h) {\n let diffY = eventY - this.mouseY;\n let changedY = this.changeY + diffY;\n const newHeight = this.height + changedY;\n // if overcrossed min height\n if (newHeight < this.minH) {\n changedY = -(this.height - this.minH);\n }\n // if overcrossed max heiht\n if (this.maxH && newHeight > this.maxH) {\n changedY = this.maxH - this.height;\n }\n\n this.changeY = changedY;\n this.mouseY = eventY;\n\n if (this.activeResizer) {\n this.activeResizer.style.bottom = `${-this.changeY}px`;\n }\n }\n if (isX && this.disableCalcMap & DISABLE_MASK.w) {\n const isLeft = this.activeResizer?.classList.contains('resizable-l');\n let diffX = eventX - this.mouseX;\n let changedX = this.changeX + diffX;\n const newWidth = this.width + changedX * (isLeft ? -1 : 1);\n\n // if overcrossed min width\n if (newWidth < this.minW) {\n changedX = -(this.width - this.minW);\n }\n // if overcrossed max width\n if (this.maxW && newWidth > this.maxW) {\n changedX = this.maxW - this.width;\n }\n\n this.changeX = changedX;\n this.mouseX = eventX;\n\n if (this.activeResizer) {\n if (!isLeft) {\n this.activeResizer.style.right = `${-this.changeX}px`;\n } else {\n this.activeResizer.style.left = `${this.changeX}px`;\n }\n }\n }\n this.emitEvent(ResizeEvents.move);\n }\n\n handleDown(event: MouseEvent | TouchEvent) {\n if (event.defaultPrevented) {\n return;\n }\n // stop other events if resize in progress\n event.preventDefault();\n\n this.dropInitial();\n for (let elClass in RESIZE_MASK) {\n const target = event.target as HTMLElement | null;\n if (this.$el.contains(target) && target?.classList.contains(elClass)) {\n document.body.style.cursor = RESIZE_MASK[elClass].cursor;\n if (ResizeDirective.isTouchEvent(event)) {\n this.setInitials(event.touches[0], target);\n } else {\n event.preventDefault && event.preventDefault();\n this.setInitials(event, target);\n }\n this.resizeState = RESIZE_MASK[elClass].bit;\n const eventName = ResizeEvents.start;\n this.emitEvent(eventName);\n break;\n }\n }\n this.bindMove();\n }\n\n handleUp(e: MouseEvent) {\n e.preventDefault();\n if (this.resizeState !== 0) {\n this.resizeState = 0;\n document.body.style.cursor = '';\n const eventName = ResizeEvents.end;\n this.emitEvent(eventName);\n }\n this.dropInitial();\n this.unbindMove();\n }\n\n private setInitials(\n { clientX, clientY }: { clientX: number; clientY: number },\n target?: HTMLElement,\n ) {\n const computedStyle = getComputedStyle(this.$el);\n this.$el.classList.add('active');\n this.activeResizer = target;\n\n if (this.disableCalcMap & DISABLE_MASK.w) {\n this.mouseX = clientX;\n this.width = this.$el.clientWidth;\n this.parent.width = this.$el.parentElement?.clientWidth ?? 0;\n\n // min width\n const minPaddingX =\n parseFloat(computedStyle.paddingLeft) +\n parseFloat(computedStyle.paddingRight);\n this.minW = Math.max(minPaddingX, this.initialProps.minWidth || 0);\n\n // max width\n if (this.initialProps.maxWidth) {\n this.maxW = Math.max(this.width, this.initialProps.maxWidth);\n }\n }\n\n if (this.disableCalcMap & DISABLE_MASK.h) {\n this.mouseY = clientY;\n this.height = this.$el.clientHeight;\n this.parent.height = this.$el.parentElement?.clientHeight ?? 0;\n\n // min height\n const minPaddingY =\n parseFloat(computedStyle.paddingTop) +\n parseFloat(computedStyle.paddingBottom);\n this.minH = Math.max(minPaddingY, this.initialProps.minHeight || 0);\n // max height\n if (this.initialProps.maxHeight) {\n this.maxH = Math.max(this.height, this.initialProps.maxHeight);\n }\n }\n }\n\n private dropInitial() {\n this.changeX = this.changeY = this.minW = this.minH;\n this.width = this.height = 0;\n if (this.activeResizer) {\n this.activeResizer.removeAttribute('style');\n }\n this.$el.classList.remove('active');\n this.activeResizer = undefined;\n }\n\n private bindMove() {\n document.documentElement.addEventListener(\n 'mouseup',\n this.mouseUpFunc,\n true,\n );\n document.documentElement.addEventListener(\n 'touchend',\n this.mouseUpFunc,\n true,\n );\n document.documentElement.addEventListener(\n 'mousemove',\n this.mouseMoveFunc,\n true,\n );\n document.documentElement.addEventListener(\n 'touchmove',\n this.mouseMoveFunc,\n true,\n );\n document.documentElement.addEventListener('mouseleave', this.mouseUpFunc);\n }\n\n private unbindMove() {\n document.documentElement.removeEventListener(\n 'mouseup',\n this.mouseUpFunc,\n true,\n );\n document.documentElement.removeEventListener(\n 'touchend',\n this.mouseUpFunc,\n true,\n );\n document.documentElement.removeEventListener(\n 'mousemove',\n this.mouseMoveFunc,\n true,\n );\n document.documentElement.removeEventListener(\n 'touchmove',\n this.mouseMoveFunc,\n true,\n );\n document.documentElement.removeEventListener(\n 'mouseleave',\n this.mouseUpFunc,\n );\n }\n}\n","import { h, VNode } from '@stencil/core';\nimport { ResizeProps, ResizeDirective, ResizeEvents } from './resizable.directive';\nimport type { CellProps } from '@type';\n\nexport const ResizableElement = (props: Partial<ResizeProps> & CellProps, children: VNode[]) => {\n const resizeEls: VNode[] = [];\n const directive =\n (props.canResize &&\n new ResizeDirective(props, e => {\n if (e.eventName === ResizeEvents.end) {\n props.onResize && props.onResize(e);\n }\n })) ||\n null;\n if (props.canResize) {\n if (props.active) {\n for (let p in props.active) {\n resizeEls.push(\n <div\n onClick={e => e.preventDefault()}\n onDblClick={e => {\n e.preventDefault();\n props.onDoubleClick?.(e);\n }}\n onMouseDown={(e: MouseEvent) => directive?.handleDown(e)}\n onTouchStart={(e: TouchEvent) => directive?.handleDown(e)}\n class={`resizable resizable-${props.active[p]}`}\n />,\n );\n }\n }\n } else {\n if (props.active) {\n for (let p in props.active) {\n resizeEls.push(\n <div\n onClick={e => e.preventDefault()}\n onTouchStart={(e: TouchEvent) => e.preventDefault()}\n onDblClick={e => {\n e.preventDefault();\n props.onDoubleClick?.(e);\n }}\n class={`no-resize resizable resizable-${props.active[p]}`}\n />,\n );\n }\n }\n }\n return (\n <div {...props} ref={(e) => e && directive?.set(e)}>\n {children}\n {resizeEls}\n </div>\n );\n};\n","import { h, VNode } from '@stencil/core';\nimport { dispatch } from '../../plugins/dispatcher';\nimport { doPropMerge } from '../data/column.service';\nimport { ResizableElement } from './resizable.element';\nimport { ResizeProps } from './resizable.directive';\nimport { CellProps, ColumnTemplateProp } from '@type';\n\ntype Props = {\n props: CellProps & Partial<ResizeProps>;\n additionalData: any;\n data?: ColumnTemplateProp;\n};\n\nexport const ON_COLUMN_CLICK = 'columnclick';\n\nexport const HeaderCellRenderer = ({ data, props, additionalData }: Props, children: VNode[]): VNode => {\n let colTemplate: VNode | VNode[] | string = data?.name || '';\n let cellProps = props;\n if (data?.columnTemplate) {\n colTemplate = data.columnTemplate(h, data, additionalData);\n }\n if (data?.columnProperties) {\n const extra = data.columnProperties(data);\n if (extra && typeof extra === 'object') {\n cellProps = doPropMerge(props, extra);\n }\n }\n return (\n <ResizableElement {...cellProps} onMouseDown={(e: MouseEvent) => {\n dispatch(e.currentTarget as HTMLElement, ON_COLUMN_CLICK, {\n data,\n event: e,\n });\n }}>\n <div class=\"header-content\">{colTemplate}</div>\n {children}\n </ResizableElement>\n );\n};\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built by Revolist OU ❤️
3
3
  */
4
- import { _ as _baseGetTag, i as isObject_1, a as _root, b as _Symbol, c as isObjectLike_1, d as _freeGlobal, e as isSymbol_1, t as toNumber_1 } from './toNumber-8de324a7.js';
4
+ import { _ as _baseGetTag, i as isObject_1, a as _root, b as _Symbol, c as isObjectLike_1, e as _freeGlobal, f as isSymbol_1, t as toNumber_1 } from './debounce-e8e9464a.js';
5
5
  import { g as getRenderingRef, f as forceUpdate } from './index-a61f225b.js';
6
6
 
7
7
  /**
@@ -4413,6 +4413,6 @@ function applyMixins(derivedCtor, constructors) {
4413
4413
  });
4414
4414
  }
4415
4415
 
4416
- export { isArrayLike_1 as $, HEADER_SORTABLE_CLASS as A, HEADER_ROW_CLASS as B, CELL_CLASS as C, DataStore as D, HEADER_ACTUAL_ROW_CLASS as E, DRAG_ICON_CLASS as F, DRAGGABLE_CLASS as G, HEADER_CLASS as H, FOCUS_CLASS as I, MOBILE_CLASS as J, CELL_HANDLER_CLASS as K, EDIT_INPUT_WR as L, MIN_COL_SIZE as M, DRAGG_TEXT as N, GRID_INTERNALS as O, ROW_FOCUSED_CLASS as P, codesLetter as Q, RESIZE_INTERVAL as R, SELECTION_BORDER_CLASS as S, TMP_SELECTION_BG_CLASS as T, keyValues as U, createStore as V, reduce_1 as W, isArray_1 as X, OsPlatform as Y, KeyCodesEnum as Z, _baseIteratee as _, getVisibleSourceItem as a, keys_1 as a0, findIndex_1 as a1, each as a2, _baseProperty as a3, _baseKeys as a4, _getTag as a5, range_1 as a6, toInteger_1 as a7, _isIterateeCall as a8, _getNative as a9, _baseEach as aa, getSourceItem as b, setSourceByPhysicalIndex as c, setItems as d, getSourceItemVirtualIndexByProp as e, gatherTrimmedItems as f, getPhysical as g, calculateDimensionData as h, getItemByPosition as i, getItemByIndex as j, findPositionInArray as k, pushSorted as l, mergeSortedArray as m, getScrollbarSize as n, scaleValue as o, proxyPlugin as p, timeout as q, range as r, setSourceByVirtualIndex as s, trimmedPlugin as t, applyMixins as u, setStore as v, DATA_COL as w, DATA_ROW as x, DISABLED_CLASS as y, ROW_HEADER_TYPE as z };
4416
+ export { OsPlatform as $, HEADER_SORTABLE_CLASS as A, HEADER_ROW_CLASS as B, CELL_CLASS as C, DataStore as D, HEADER_ACTUAL_ROW_CLASS as E, DRAG_ICON_CLASS as F, DRAGGABLE_CLASS as G, HEADER_CLASS as H, FOCUS_CLASS as I, MOBILE_CLASS as J, CELL_HANDLER_CLASS as K, EDIT_INPUT_WR as L, MIN_COL_SIZE as M, DRAGG_TEXT as N, GRID_INTERNALS as O, ROW_FOCUSED_CLASS as P, codesLetter as Q, RESIZE_INTERVAL as R, SELECTION_BORDER_CLASS as S, TMP_SELECTION_BG_CLASS as T, keyValues as U, createStore as V, reduce_1 as W, isArray_1 as X, each as Y, toInteger_1 as Z, _isIterateeCall as _, getVisibleSourceItem as a, KeyCodesEnum as a0, _baseProperty as a1, _baseKeys as a2, _getTag as a3, isArrayLike_1 as a4, range_1 as a5, _baseIteratee as a6, keys_1 as a7, findIndex_1 as a8, _getNative as a9, _baseEach as aa, getSourceItem as b, setSourceByPhysicalIndex as c, setItems as d, getSourceItemVirtualIndexByProp as e, gatherTrimmedItems as f, getPhysical as g, calculateDimensionData as h, getItemByPosition as i, getItemByIndex as j, findPositionInArray as k, pushSorted as l, mergeSortedArray as m, getScrollbarSize as n, scaleValue as o, proxyPlugin as p, timeout as q, range as r, setSourceByVirtualIndex as s, trimmedPlugin as t, applyMixins as u, setStore as v, DATA_COL as w, DATA_ROW as x, DISABLED_CLASS as y, ROW_HEADER_TYPE as z };
4417
4417
 
4418
- //# sourceMappingURL=index-c428acf6.js.map
4418
+ //# sourceMappingURL=index-74b9801b.js.map