handsontable 0.0.0-next-1763d65-20240422 → 0.0.0-next-442dd51-20240422

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 (119) 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 +20 -24
  6. package/3rdparty/walkontable/src/overlay/_base.mjs +20 -24
  7. package/3rdparty/walkontable/src/overlay/bottom.js +6 -3
  8. package/3rdparty/walkontable/src/overlay/bottom.mjs +6 -3
  9. package/3rdparty/walkontable/src/overlay/inlineStart.js +6 -3
  10. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +6 -3
  11. package/3rdparty/walkontable/src/overlay/top.js +6 -3
  12. package/3rdparty/walkontable/src/overlay/top.mjs +6 -3
  13. package/3rdparty/walkontable/src/overlays.js +24 -46
  14. package/3rdparty/walkontable/src/overlays.mjs +24 -46
  15. package/3rdparty/walkontable/src/selection/manager.js +0 -7
  16. package/3rdparty/walkontable/src/selection/manager.mjs +0 -7
  17. package/3rdparty/walkontable/src/selection/scanner.js +0 -7
  18. package/3rdparty/walkontable/src/selection/scanner.mjs +0 -7
  19. package/3rdparty/walkontable/src/table.js +11 -10
  20. package/3rdparty/walkontable/src/table.mjs +11 -10
  21. package/base.js +2 -2
  22. package/base.mjs +2 -2
  23. package/core.js +0 -7
  24. package/core.mjs +0 -7
  25. package/dataMap/metaManager/lazyFactoryMap.js +0 -7
  26. package/dataMap/metaManager/lazyFactoryMap.mjs +0 -7
  27. package/dataMap/metaManager/mods/dynamicCellMeta.js +0 -7
  28. package/dataMap/metaManager/mods/dynamicCellMeta.mjs +0 -7
  29. package/dataMap/metaManager/mods/extendMetaProperties.js +31 -44
  30. package/dataMap/metaManager/mods/extendMetaProperties.mjs +31 -44
  31. package/dataMap/metaManager/utils.js +0 -7
  32. package/dataMap/metaManager/utils.mjs +0 -7
  33. package/dist/handsontable.css +2 -2
  34. package/dist/handsontable.full.css +2 -2
  35. package/dist/handsontable.full.js +3780 -10138
  36. package/dist/handsontable.full.min.css +2 -2
  37. package/dist/handsontable.full.min.js +84 -276
  38. package/dist/handsontable.js +2522 -3361
  39. package/dist/handsontable.min.css +2 -2
  40. package/dist/handsontable.min.js +18 -18
  41. package/helpers/array.js +0 -7
  42. package/helpers/array.mjs +0 -7
  43. package/helpers/mixed.js +1 -1
  44. package/helpers/mixed.mjs +1 -1
  45. package/helpers/number.js +2 -12
  46. package/helpers/number.mjs +2 -12
  47. package/package.json +7 -5
  48. package/plugins/autoColumnSize/autoColumnSize.js +0 -7
  49. package/plugins/autoColumnSize/autoColumnSize.mjs +0 -7
  50. package/plugins/autoRowSize/autoRowSize.js +2 -2
  51. package/plugins/autoRowSize/autoRowSize.mjs +2 -2
  52. package/plugins/collapsibleColumns/collapsibleColumns.js +1 -1
  53. package/plugins/collapsibleColumns/collapsibleColumns.mjs +1 -1
  54. package/plugins/columnSorting/utils.js +0 -7
  55. package/plugins/columnSorting/utils.mjs +0 -7
  56. package/plugins/comments/comments.js +8 -2
  57. package/plugins/comments/comments.mjs +8 -2
  58. package/plugins/filters/filters.js +1 -1
  59. package/plugins/filters/filters.mjs +1 -1
  60. package/plugins/filters/ui/multipleSelect.js +12 -15
  61. package/plugins/filters/ui/multipleSelect.mjs +12 -15
  62. package/plugins/filters/utils.js +0 -7
  63. package/plugins/filters/utils.mjs +0 -7
  64. package/plugins/formulas/formulas.js +0 -7
  65. package/plugins/formulas/formulas.mjs +0 -7
  66. package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +1 -1
  67. package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +1 -1
  68. package/plugins/hiddenColumns/contextMenuItem/showColumn.js +1 -1
  69. package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +1 -1
  70. package/plugins/hiddenColumns/hiddenColumns.js +0 -7
  71. package/plugins/hiddenColumns/hiddenColumns.mjs +0 -7
  72. package/plugins/hiddenRows/contextMenuItem/hideRow.js +1 -1
  73. package/plugins/hiddenRows/contextMenuItem/hideRow.mjs +1 -1
  74. package/plugins/hiddenRows/contextMenuItem/showRow.js +1 -1
  75. package/plugins/hiddenRows/contextMenuItem/showRow.mjs +1 -1
  76. package/plugins/hiddenRows/hiddenRows.js +0 -7
  77. package/plugins/hiddenRows/hiddenRows.mjs +0 -7
  78. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -1
  79. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +1 -1
  80. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -1
  81. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +1 -1
  82. package/plugins/manualColumnMove/manualColumnMove.js +1 -1
  83. package/plugins/manualColumnMove/manualColumnMove.mjs +1 -1
  84. package/plugins/manualColumnResize/manualColumnResize.js +2 -2
  85. package/plugins/manualColumnResize/manualColumnResize.mjs +2 -2
  86. package/plugins/manualRowMove/manualRowMove.js +1 -1
  87. package/plugins/manualRowMove/manualRowMove.mjs +1 -1
  88. package/plugins/manualRowResize/manualRowResize.js +2 -2
  89. package/plugins/manualRowResize/manualRowResize.mjs +2 -2
  90. package/plugins/mergeCells/cellsCollection.js +0 -7
  91. package/plugins/mergeCells/cellsCollection.mjs +0 -7
  92. package/plugins/mergeCells/mergeCells.js +0 -7
  93. package/plugins/mergeCells/mergeCells.mjs +0 -7
  94. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.js +0 -7
  95. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +0 -7
  96. package/plugins/nestedHeaders/stateManager/nodeModifiers/expand.js +0 -7
  97. package/plugins/nestedHeaders/stateManager/nodeModifiers/expand.mjs +0 -7
  98. package/plugins/nestedRows/nestedRows.js +0 -7
  99. package/plugins/nestedRows/nestedRows.mjs +0 -7
  100. package/plugins/trimRows/trimRows.js +0 -7
  101. package/plugins/trimRows/trimRows.mjs +0 -7
  102. package/selection/selection.js +0 -7
  103. package/selection/selection.mjs +0 -7
  104. package/selection/utils.js +0 -7
  105. package/selection/utils.mjs +0 -7
  106. package/shortcuts/keyObserver.js +0 -7
  107. package/shortcuts/keyObserver.mjs +0 -7
  108. package/shortcuts/utils.js +0 -7
  109. package/shortcuts/utils.mjs +0 -7
  110. package/tableView.js +4 -1
  111. package/tableView.mjs +4 -1
  112. package/translations/changesObservable/observable.js +0 -7
  113. package/translations/changesObservable/observable.mjs +0 -7
  114. package/translations/indexMapper.js +0 -7
  115. package/translations/indexMapper.mjs +1 -8
  116. package/utils/dataStructures/uniqueSet.js +0 -7
  117. package/utils/dataStructures/uniqueSet.mjs +0 -7
  118. package/utils/paginator.js +0 -7
  119. package/utils/paginator.mjs +0 -7
@@ -1,20 +1,7 @@
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"); } }
12
2
  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; }
13
3
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
14
4
  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();
18
5
  /**
19
6
  * @class ExtendMetaPropertiesMod
20
7
  */
@@ -32,7 +19,11 @@ export class ExtendMetaPropertiesMod {
32
19
  * @type {Map}
33
20
  */
34
21
  _defineProperty(this, "propDescriptors", new Map([['ariaTags', {
35
- initOnly: true
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
+ }
36
27
  }], ['fixedColumnsLeft', {
37
28
  target: 'fixedColumnsStart',
38
29
  onChange(propName) {
@@ -45,52 +36,48 @@ export class ExtendMetaPropertiesMod {
45
36
  }
46
37
  }
47
38
  }], ['layoutDirection', {
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.`);
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
+ }
64
43
  }
65
- });
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
+ ]));
66
61
  this.metaManager = metaManager;
67
62
  this.extendMetaProps();
68
63
  }
64
+
69
65
  /**
70
66
  * Extends the meta options based on the object descriptors from the `propDescriptors` list.
71
67
  */
72
68
  extendMetaProps() {
73
69
  this.propDescriptors.forEach((descriptor, alias) => {
74
70
  const {
75
- initOnly,
76
71
  target,
77
- onChange
72
+ onChange = () => {}
78
73
  } = descriptor;
79
74
  const hasTarget = typeof target === 'string';
80
75
  const targetProp = hasTarget ? target : alias;
81
76
  const origProp = `_${targetProp}`;
82
77
  this.metaManager.globalMeta.meta[origProp] = this.metaManager.globalMeta.meta[targetProp];
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);
78
+ this.installPropWatcher(alias, origProp, onChange);
79
+ if (hasTarget) {
80
+ this.installPropWatcher(target, origProp, onChange);
94
81
  }
95
82
  });
96
83
  }
@@ -7,13 +7,6 @@ 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");
17
10
  var _object = require("../../helpers/object");
18
11
  var _registry = require("../../cellTypes/registry");
19
12
  /**
@@ -1,11 +1,4 @@
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";
9
2
  import { hasOwnProperty, isObject, objectEach, inherit, extend } from "../../helpers/object.mjs";
10
3
  import { getCellType } from "../../cellTypes/registry.mjs";
11
4
  /**
@@ -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-1763d65-20240422
29
- * Release date: 16/04/2024 (built at 22/04/2024 08:13:01)
28
+ * Version: 0.0.0-next-442dd51-20240422
29
+ * Release date: 16/04/2024 (built at 22/04/2024 11:46:24)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles
@@ -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-1763d65-20240422
29
- * Release date: 16/04/2024 (built at 22/04/2024 08:13:01)
28
+ * Version: 0.0.0-next-442dd51-20240422
29
+ * Release date: 16/04/2024 (built at 22/04/2024 11:46:24)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles