handsontable 0.0.0-next-442dd51-20240422 → 0.0.0-next-499b821-20240423

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

Files changed (123) hide show
  1. package/3rdparty/walkontable/src/calculator/viewportColumns.js +2 -2
  2. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +2 -2
  3. package/3rdparty/walkontable/src/calculator/viewportRows.js +1 -1
  4. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +1 -1
  5. package/3rdparty/walkontable/src/overlay/_base.js +24 -20
  6. package/3rdparty/walkontable/src/overlay/_base.mjs +24 -20
  7. package/3rdparty/walkontable/src/overlay/bottom.js +3 -6
  8. package/3rdparty/walkontable/src/overlay/bottom.mjs +3 -6
  9. package/3rdparty/walkontable/src/overlay/inlineStart.js +3 -6
  10. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +3 -6
  11. package/3rdparty/walkontable/src/overlay/top.js +3 -6
  12. package/3rdparty/walkontable/src/overlay/top.mjs +3 -6
  13. package/3rdparty/walkontable/src/overlays.js +46 -24
  14. package/3rdparty/walkontable/src/overlays.mjs +46 -24
  15. package/3rdparty/walkontable/src/selection/manager.js +7 -0
  16. package/3rdparty/walkontable/src/selection/manager.mjs +7 -0
  17. package/3rdparty/walkontable/src/selection/scanner.js +7 -0
  18. package/3rdparty/walkontable/src/selection/scanner.mjs +7 -0
  19. package/3rdparty/walkontable/src/table.js +10 -11
  20. package/3rdparty/walkontable/src/table.mjs +10 -11
  21. package/base.js +2 -2
  22. package/base.mjs +2 -2
  23. package/core.js +7 -2
  24. package/core.mjs +7 -2
  25. package/dataMap/metaManager/lazyFactoryMap.js +7 -0
  26. package/dataMap/metaManager/lazyFactoryMap.mjs +7 -0
  27. package/dataMap/metaManager/mods/dynamicCellMeta.js +7 -0
  28. package/dataMap/metaManager/mods/dynamicCellMeta.mjs +7 -0
  29. package/dataMap/metaManager/mods/extendMetaProperties.js +44 -31
  30. package/dataMap/metaManager/mods/extendMetaProperties.mjs +44 -31
  31. package/dataMap/metaManager/utils.js +7 -0
  32. package/dataMap/metaManager/utils.mjs +7 -0
  33. package/dist/handsontable.css +3 -3
  34. package/dist/handsontable.full.css +3 -3
  35. package/dist/handsontable.full.js +10147 -3789
  36. package/dist/handsontable.full.min.css +3 -3
  37. package/dist/handsontable.full.min.js +276 -84
  38. package/dist/handsontable.js +3370 -2531
  39. package/dist/handsontable.min.css +3 -3
  40. package/dist/handsontable.min.js +18 -18
  41. package/focusManager.js +2 -4
  42. package/focusManager.mjs +2 -4
  43. package/helpers/array.js +7 -0
  44. package/helpers/array.mjs +7 -0
  45. package/helpers/mixed.js +1 -1
  46. package/helpers/mixed.mjs +1 -1
  47. package/helpers/number.js +12 -2
  48. package/helpers/number.mjs +12 -2
  49. package/package.json +5 -7
  50. package/plugins/autoColumnSize/autoColumnSize.js +7 -0
  51. package/plugins/autoColumnSize/autoColumnSize.mjs +7 -0
  52. package/plugins/autoRowSize/autoRowSize.js +2 -2
  53. package/plugins/autoRowSize/autoRowSize.mjs +2 -2
  54. package/plugins/collapsibleColumns/collapsibleColumns.js +1 -1
  55. package/plugins/collapsibleColumns/collapsibleColumns.mjs +1 -1
  56. package/plugins/columnSorting/utils.js +7 -0
  57. package/plugins/columnSorting/utils.mjs +7 -0
  58. package/plugins/comments/comments.js +2 -8
  59. package/plugins/comments/comments.mjs +2 -8
  60. package/plugins/comments/contextMenuItem/addEditComment.js +0 -1
  61. package/plugins/comments/contextMenuItem/addEditComment.mjs +0 -1
  62. package/plugins/filters/filters.js +1 -1
  63. package/plugins/filters/filters.mjs +1 -1
  64. package/plugins/filters/ui/multipleSelect.js +22 -14
  65. package/plugins/filters/ui/multipleSelect.mjs +22 -14
  66. package/plugins/filters/utils.js +7 -0
  67. package/plugins/filters/utils.mjs +7 -0
  68. package/plugins/formulas/formulas.js +7 -0
  69. package/plugins/formulas/formulas.mjs +7 -0
  70. package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +1 -1
  71. package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +1 -1
  72. package/plugins/hiddenColumns/contextMenuItem/showColumn.js +1 -1
  73. package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +1 -1
  74. package/plugins/hiddenColumns/hiddenColumns.js +7 -0
  75. package/plugins/hiddenColumns/hiddenColumns.mjs +7 -0
  76. package/plugins/hiddenRows/contextMenuItem/hideRow.js +1 -1
  77. package/plugins/hiddenRows/contextMenuItem/hideRow.mjs +1 -1
  78. package/plugins/hiddenRows/contextMenuItem/showRow.js +1 -1
  79. package/plugins/hiddenRows/contextMenuItem/showRow.mjs +1 -1
  80. package/plugins/hiddenRows/hiddenRows.js +7 -0
  81. package/plugins/hiddenRows/hiddenRows.mjs +7 -0
  82. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -1
  83. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +1 -1
  84. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -1
  85. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +1 -1
  86. package/plugins/manualColumnMove/manualColumnMove.js +1 -1
  87. package/plugins/manualColumnMove/manualColumnMove.mjs +1 -1
  88. package/plugins/manualColumnResize/manualColumnResize.js +2 -2
  89. package/plugins/manualColumnResize/manualColumnResize.mjs +2 -2
  90. package/plugins/manualRowMove/manualRowMove.js +1 -1
  91. package/plugins/manualRowMove/manualRowMove.mjs +1 -1
  92. package/plugins/manualRowResize/manualRowResize.js +2 -2
  93. package/plugins/manualRowResize/manualRowResize.mjs +2 -2
  94. package/plugins/mergeCells/cellsCollection.js +7 -0
  95. package/plugins/mergeCells/cellsCollection.mjs +7 -0
  96. package/plugins/mergeCells/mergeCells.js +7 -0
  97. package/plugins/mergeCells/mergeCells.mjs +7 -0
  98. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.js +7 -0
  99. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +7 -0
  100. package/plugins/nestedHeaders/stateManager/nodeModifiers/expand.js +7 -0
  101. package/plugins/nestedHeaders/stateManager/nodeModifiers/expand.mjs +7 -0
  102. package/plugins/nestedRows/nestedRows.js +7 -0
  103. package/plugins/nestedRows/nestedRows.mjs +7 -0
  104. package/plugins/trimRows/trimRows.js +7 -0
  105. package/plugins/trimRows/trimRows.mjs +7 -0
  106. package/selection/selection.js +7 -0
  107. package/selection/selection.mjs +7 -0
  108. package/selection/utils.js +7 -0
  109. package/selection/utils.mjs +7 -0
  110. package/shortcuts/keyObserver.js +7 -0
  111. package/shortcuts/keyObserver.mjs +7 -0
  112. package/shortcuts/utils.js +7 -0
  113. package/shortcuts/utils.mjs +7 -0
  114. package/tableView.js +1 -4
  115. package/tableView.mjs +1 -4
  116. package/translations/changesObservable/observable.js +7 -0
  117. package/translations/changesObservable/observable.mjs +7 -0
  118. package/translations/indexMapper.js +7 -0
  119. package/translations/indexMapper.mjs +8 -1
  120. package/utils/dataStructures/uniqueSet.js +7 -0
  121. package/utils/dataStructures/uniqueSet.mjs +7 -0
  122. package/utils/paginator.js +7 -0
  123. package/utils/paginator.mjs +7 -0
@@ -1,7 +1,20 @@
1
1
  import "core-js/modules/es.error.cause.js";
2
+ import "core-js/modules/es.array.push.js";
3
+ import "core-js/modules/esnext.set.difference.v2.js";
4
+ import "core-js/modules/esnext.set.intersection.v2.js";
5
+ import "core-js/modules/esnext.set.is-disjoint-from.v2.js";
6
+ import "core-js/modules/esnext.set.is-subset-of.v2.js";
7
+ import "core-js/modules/esnext.set.is-superset-of.v2.js";
8
+ import "core-js/modules/esnext.set.symmetric-difference.v2.js";
9
+ import "core-js/modules/esnext.set.union.v2.js";
10
+ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
11
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
2
12
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
4
14
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
16
+ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
17
+ var _initOnlyCallback = /*#__PURE__*/new WeakMap();
5
18
  /**
6
19
  * @class ExtendMetaPropertiesMod
7
20
  */
@@ -19,11 +32,7 @@ export class ExtendMetaPropertiesMod {
19
32
  * @type {Map}
20
33
  */
21
34
  _defineProperty(this, "propDescriptors", new Map([['ariaTags', {
22
- onChange(propName, value, isInitialChange) {
23
- if (!isInitialChange) {
24
- throw new Error(`The \`${propName}\` option can not be updated after the Handsontable instance was initialized.`);
25
- }
26
- }
35
+ initOnly: true
27
36
  }], ['fixedColumnsLeft', {
28
37
  target: 'fixedColumnsStart',
29
38
  onChange(propName) {
@@ -36,48 +45,52 @@ export class ExtendMetaPropertiesMod {
36
45
  }
37
46
  }
38
47
  }], ['layoutDirection', {
39
- onChange(propName, value, isInitialChange) {
40
- if (!isInitialChange) {
41
- throw new Error(`The \`${propName}\` option can not be updated after the Handsontable is initialized.`);
42
- }
48
+ initOnly: true
49
+ }], ['renderAllColumns', {
50
+ initOnly: true
51
+ }], ['renderAllRows', {
52
+ initOnly: true
53
+ }]]));
54
+ /**
55
+ * Callback called when the prop is marked as `initOnly`.
56
+ *
57
+ * @param {string} propName The property name.
58
+ * @param {*} value The new value.
59
+ * @param {boolean} isInitialChange Is the change initial.
60
+ */
61
+ _classPrivateFieldInitSpec(this, _initOnlyCallback, (propName, value, isInitialChange) => {
62
+ if (!isInitialChange) {
63
+ throw new Error(`The \`${propName}\` option can not be updated after the Handsontable is initialized.`);
43
64
  }
44
- }]
45
- // Temporary commented out due to the bug in the React wrapper.
46
- // ['renderAllColumns', {
47
- // onChange(propName, value, isInitialChange) {
48
- // if (!isInitialChange) {
49
- // throw new Error(`The \`${propName}\` option can not be updated after the Handsontable is initialized.`);
50
- // }
51
- // }
52
- // }],
53
- // ['renderAllRows', {
54
- // onChange(propName, value, isInitialChange) {
55
- // if (!isInitialChange) {
56
- // throw new Error(`The \`${propName}\` option can not be updated after the Handsontable is initialized.`);
57
- // }
58
- // }
59
- // }],
60
- ]));
65
+ });
61
66
  this.metaManager = metaManager;
62
67
  this.extendMetaProps();
63
68
  }
64
-
65
69
  /**
66
70
  * Extends the meta options based on the object descriptors from the `propDescriptors` list.
67
71
  */
68
72
  extendMetaProps() {
69
73
  this.propDescriptors.forEach((descriptor, alias) => {
70
74
  const {
75
+ initOnly,
71
76
  target,
72
- onChange = () => {}
77
+ onChange
73
78
  } = descriptor;
74
79
  const hasTarget = typeof target === 'string';
75
80
  const targetProp = hasTarget ? target : alias;
76
81
  const origProp = `_${targetProp}`;
77
82
  this.metaManager.globalMeta.meta[origProp] = this.metaManager.globalMeta.meta[targetProp];
78
- this.installPropWatcher(alias, origProp, onChange);
79
- if (hasTarget) {
80
- this.installPropWatcher(target, origProp, onChange);
83
+ if (onChange) {
84
+ this.installPropWatcher(alias, origProp, onChange);
85
+ if (hasTarget) {
86
+ this.installPropWatcher(target, origProp, onChange);
87
+ }
88
+ } else if (initOnly) {
89
+ this.installPropWatcher(alias, origProp, _classPrivateFieldGet(_initOnlyCallback, this));
90
+ if (!this.metaManager.globalMeta.meta._initOnlySettings) {
91
+ this.metaManager.globalMeta.meta._initOnlySettings = [];
92
+ }
93
+ this.metaManager.globalMeta.meta._initOnlySettings.push(alias);
81
94
  }
82
95
  });
83
96
  }
@@ -7,6 +7,13 @@ exports.extendByMetaType = extendByMetaType;
7
7
  exports.isNullish = isNullish;
8
8
  exports.isUnsignedNumber = isUnsignedNumber;
9
9
  require("core-js/modules/es.error.cause.js");
10
+ require("core-js/modules/esnext.set.difference.v2.js");
11
+ require("core-js/modules/esnext.set.intersection.v2.js");
12
+ require("core-js/modules/esnext.set.is-disjoint-from.v2.js");
13
+ require("core-js/modules/esnext.set.is-subset-of.v2.js");
14
+ require("core-js/modules/esnext.set.is-superset-of.v2.js");
15
+ require("core-js/modules/esnext.set.symmetric-difference.v2.js");
16
+ require("core-js/modules/esnext.set.union.v2.js");
10
17
  var _object = require("../../helpers/object");
11
18
  var _registry = require("../../cellTypes/registry");
12
19
  /**
@@ -1,4 +1,11 @@
1
1
  import "core-js/modules/es.error.cause.js";
2
+ import "core-js/modules/esnext.set.difference.v2.js";
3
+ import "core-js/modules/esnext.set.intersection.v2.js";
4
+ import "core-js/modules/esnext.set.is-disjoint-from.v2.js";
5
+ import "core-js/modules/esnext.set.is-subset-of.v2.js";
6
+ import "core-js/modules/esnext.set.is-superset-of.v2.js";
7
+ import "core-js/modules/esnext.set.symmetric-difference.v2.js";
8
+ import "core-js/modules/esnext.set.union.v2.js";
2
9
  import { hasOwnProperty, isObject, objectEach, inherit, extend } from "../../helpers/object.mjs";
3
10
  import { getCellType } from "../../cellTypes/registry.mjs";
4
11
  /**
@@ -25,8 +25,8 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 0.0.0-next-442dd51-20240422
29
- * Release date: 16/04/2024 (built at 22/04/2024 11:46:24)
28
+ * Version: 0.0.0-next-499b821-20240423
29
+ * Release date: 16/04/2024 (built at 23/04/2024 10:35:47)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles
@@ -1412,7 +1412,7 @@ textarea.HandsontableCopyPaste {
1412
1412
  }
1413
1413
 
1414
1414
  .htUIMultipleSelect .ht_master .wtHolder {
1415
- overflow-y: scroll;
1415
+ overflow: auto;
1416
1416
  }
1417
1417
 
1418
1418
  .handsontable .htFiltersActive .changeType {
@@ -25,8 +25,8 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 0.0.0-next-442dd51-20240422
29
- * Release date: 16/04/2024 (built at 22/04/2024 11:46:24)
28
+ * Version: 0.0.0-next-499b821-20240423
29
+ * Release date: 16/04/2024 (built at 23/04/2024 10:35:47)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles
@@ -1645,7 +1645,7 @@ textarea.HandsontableCopyPaste {
1645
1645
  }
1646
1646
 
1647
1647
  .htUIMultipleSelect .ht_master .wtHolder {
1648
- overflow-y: scroll;
1648
+ overflow: auto;
1649
1649
  }
1650
1650
 
1651
1651
  .handsontable .htFiltersActive .changeType {