handsontable 0.0.0-next-2c41c5b-20250814 → 0.0.0-next-fce5825-20250822

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.

Potentially problematic release.


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

Files changed (126) hide show
  1. package/base.js +2 -2
  2. package/base.mjs +2 -2
  3. package/cellTypes/autocompleteType/autocompleteType.js +1 -4
  4. package/cellTypes/autocompleteType/autocompleteType.mjs +1 -4
  5. package/cellTypes/checkboxType/checkboxType.js +1 -3
  6. package/cellTypes/checkboxType/checkboxType.mjs +1 -3
  7. package/cellTypes/dropdownType/dropdownType.js +1 -4
  8. package/cellTypes/dropdownType/dropdownType.mjs +1 -4
  9. package/cellTypes/numericType/numericType.js +1 -3
  10. package/cellTypes/numericType/numericType.mjs +1 -3
  11. package/core/focusCatcher/index.js +37 -20
  12. package/core/focusCatcher/index.mjs +37 -20
  13. package/core/focusCatcher/utils.js +3 -64
  14. package/core/focusCatcher/utils.mjs +1 -60
  15. package/core/hooks/constants.js +58 -0
  16. package/core/hooks/constants.mjs +58 -0
  17. package/core/hooks/index.d.ts +7 -0
  18. package/core.d.ts +0 -1
  19. package/core.js +59 -55
  20. package/core.mjs +61 -57
  21. package/dataMap/dataMap.js +3 -13
  22. package/dataMap/dataMap.mjs +4 -14
  23. package/dataMap/dataSource.js +0 -16
  24. package/dataMap/dataSource.mjs +0 -16
  25. package/dataMap/metaManager/lazyFactoryMap.js +3 -4
  26. package/dataMap/metaManager/lazyFactoryMap.mjs +1 -2
  27. package/dataMap/metaManager/metaLayers/cellMeta.js +2 -3
  28. package/dataMap/metaManager/metaLayers/cellMeta.mjs +2 -3
  29. package/dataMap/metaManager/metaSchema.js +97 -68
  30. package/dataMap/metaManager/metaSchema.mjs +97 -68
  31. package/dataMap/metaManager/utils.js +11 -0
  32. package/dataMap/metaManager/utils.mjs +10 -0
  33. package/dist/handsontable.css +103 -5
  34. package/dist/handsontable.full.css +103 -5
  35. package/dist/handsontable.full.js +2770 -1954
  36. package/dist/handsontable.full.min.css +3 -3
  37. package/dist/handsontable.full.min.js +67 -67
  38. package/dist/handsontable.js +2772 -1956
  39. package/dist/handsontable.min.css +3 -3
  40. package/dist/handsontable.min.js +27 -27
  41. package/editors/autocompleteEditor/autocompleteEditor.js +8 -33
  42. package/editors/autocompleteEditor/autocompleteEditor.mjs +9 -34
  43. package/editors/baseEditor/baseEditor.js +2 -2
  44. package/editors/baseEditor/baseEditor.mjs +2 -2
  45. package/helpers/a11y.js +5 -1
  46. package/helpers/a11y.mjs +3 -1
  47. package/helpers/mixed.js +64 -1
  48. package/helpers/mixed.mjs +62 -1
  49. package/helpers/number.js +0 -28
  50. package/helpers/number.mjs +0 -26
  51. package/helpers/string.js +0 -19
  52. package/helpers/string.mjs +0 -18
  53. package/index.d.ts +9 -0
  54. package/package.json +6 -1
  55. package/plugins/autofill/autofill.js +3 -50
  56. package/plugins/autofill/autofill.mjs +3 -50
  57. package/plugins/base/base.js +75 -14
  58. package/plugins/base/base.mjs +75 -14
  59. package/plugins/contextMenu/contextMenu.js +1 -0
  60. package/plugins/contextMenu/contextMenu.mjs +1 -0
  61. package/plugins/copyPaste/copyPaste.js +28 -61
  62. package/plugins/copyPaste/copyPaste.mjs +29 -62
  63. package/plugins/dialog/dialog.d.ts +23 -0
  64. package/plugins/dialog/dialog.js +469 -0
  65. package/plugins/dialog/dialog.mjs +465 -0
  66. package/plugins/dialog/index.d.ts +1 -0
  67. package/plugins/dialog/index.js +7 -0
  68. package/plugins/dialog/index.mjs +1 -0
  69. package/plugins/dialog/ui.js +240 -0
  70. package/plugins/dialog/ui.mjs +235 -0
  71. package/plugins/dropdownMenu/dropdownMenu.js +1 -0
  72. package/plugins/dropdownMenu/dropdownMenu.mjs +1 -0
  73. package/plugins/index.d.ts +3 -0
  74. package/plugins/index.js +3 -0
  75. package/plugins/index.mjs +3 -1
  76. package/plugins/pagination/focusController.js +27 -0
  77. package/plugins/pagination/focusController.mjs +23 -0
  78. package/plugins/pagination/pagination.js +165 -18
  79. package/plugins/pagination/pagination.mjs +165 -18
  80. package/plugins/pagination/ui.js +101 -62
  81. package/plugins/pagination/ui.mjs +102 -63
  82. package/selection/range.js +11 -0
  83. package/selection/range.mjs +11 -0
  84. package/selection/selection.js +63 -2
  85. package/selection/selection.mjs +63 -2
  86. package/selection/utils.js +2 -1
  87. package/selection/utils.mjs +2 -1
  88. package/settings.d.ts +3 -3
  89. package/shortcuts/context.js +4 -1
  90. package/shortcuts/context.mjs +4 -1
  91. package/shortcuts/manager.js +17 -3
  92. package/shortcuts/manager.mjs +17 -3
  93. package/styles/handsontable.css +106 -22
  94. package/styles/handsontable.min.css +3 -3
  95. package/styles/ht-theme-horizon.css +24 -6
  96. package/styles/ht-theme-horizon.min.css +3 -3
  97. package/styles/ht-theme-main.css +52 -34
  98. package/styles/ht-theme-main.min.css +3 -3
  99. package/tableView.js +7 -2
  100. package/tableView.mjs +7 -2
  101. package/{core/focusCatcher → utils}/focusDetector.js +29 -11
  102. package/{core/focusCatcher → utils}/focusDetector.mjs +29 -11
  103. package/validators/autocompleteValidator/autocompleteValidator.js +1 -2
  104. package/validators/autocompleteValidator/autocompleteValidator.mjs +1 -2
  105. package/cellTypes/autocompleteType/accessors/index.js +0 -7
  106. package/cellTypes/autocompleteType/accessors/index.mjs +0 -2
  107. package/cellTypes/autocompleteType/accessors/valueGetter.js +0 -14
  108. package/cellTypes/autocompleteType/accessors/valueGetter.mjs +0 -10
  109. package/cellTypes/autocompleteType/accessors/valueSetter.js +0 -25
  110. package/cellTypes/autocompleteType/accessors/valueSetter.mjs +0 -21
  111. package/cellTypes/checkboxType/accessors/index.js +0 -5
  112. package/cellTypes/checkboxType/accessors/index.mjs +0 -1
  113. package/cellTypes/checkboxType/accessors/valueSetter.js +0 -26
  114. package/cellTypes/checkboxType/accessors/valueSetter.mjs +0 -22
  115. package/cellTypes/dropdownType/accessors/index.js +0 -7
  116. package/cellTypes/dropdownType/accessors/index.mjs +0 -2
  117. package/cellTypes/dropdownType/accessors/valueGetter.js +0 -14
  118. package/cellTypes/dropdownType/accessors/valueGetter.mjs +0 -10
  119. package/cellTypes/dropdownType/accessors/valueSetter.js +0 -17
  120. package/cellTypes/dropdownType/accessors/valueSetter.mjs +0 -13
  121. package/cellTypes/numericType/accessors/index.js +0 -5
  122. package/cellTypes/numericType/accessors/index.mjs +0 -1
  123. package/cellTypes/numericType/accessors/valueSetter.js +0 -19
  124. package/cellTypes/numericType/accessors/valueSetter.mjs +0 -15
  125. package/utils/valueAccessors.js +0 -45
  126. package/utils/valueAccessors.mjs +0 -40
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- var _valueSetter = require("./valueSetter");
5
- exports.valueSetter = _valueSetter.valueSetter;
@@ -1 +0,0 @@
1
- export { valueSetter } from "./valueSetter.mjs";
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.valueSetter = valueSetter;
5
- var _number = require("../../../helpers/number");
6
- var _utils = require("../../../dataMap/metaManager/utils");
7
- /**
8
- * Defines what value is set to a numeric-typed cell.
9
- *
10
- * @param {*} newValue The value to be set.
11
- * @returns {*} The new value to be set.
12
- */
13
- function valueSetter(newValue) {
14
- if (typeof newValue === 'string' && (0, _number.isNumericLike)(newValue)) {
15
- const parsedNumber = (0, _number.getParsedNumber)(newValue);
16
- return (0, _utils.isNullish)(parsedNumber) ? newValue : parsedNumber;
17
- }
18
- return newValue;
19
- }
@@ -1,15 +0,0 @@
1
- import { isNumericLike, getParsedNumber } from "../../../helpers/number.mjs";
2
- import { isNullish } from "../../../dataMap/metaManager/utils.mjs";
3
- /**
4
- * Defines what value is set to a numeric-typed cell.
5
- *
6
- * @param {*} newValue The value to be set.
7
- * @returns {*} The new value to be set.
8
- */
9
- export function valueSetter(newValue) {
10
- if (typeof newValue === 'string' && isNumericLike(newValue)) {
11
- const parsedNumber = getParsedNumber(newValue);
12
- return isNullish(parsedNumber) ? newValue : parsedNumber;
13
- }
14
- return newValue;
15
- }
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.getValueGetterValue = getValueGetterValue;
5
- exports.getValueSetterValue = getValueSetterValue;
6
- var _function = require("../helpers/function");
7
- /**
8
- * Get the value to be set in the cell.
9
- *
10
- * @param {*} value Initial value.
11
- * @param {object} cellMeta The cell meta object.
12
- * @returns {*} The value to be set in the cell.
13
- */
14
- function getValueSetterValue(value, cellMeta) {
15
- const {
16
- instance,
17
- visualRow,
18
- visualCol,
19
- valueSetter
20
- } = cellMeta;
21
- if ((0, _function.isFunction)(valueSetter)) {
22
- return valueSetter.call(instance, value, visualRow, visualCol, cellMeta);
23
- }
24
- return value;
25
- }
26
-
27
- /**
28
- * Get the value to be displayed in the cell.
29
- *
30
- * @param {*} value Initial value.
31
- * @param {object} cellMeta The cell meta object.
32
- * @returns {*} The value to be displayed in the cell.
33
- */
34
- function getValueGetterValue(value, cellMeta) {
35
- const {
36
- instance,
37
- visualRow,
38
- visualCol,
39
- valueGetter
40
- } = cellMeta;
41
- if ((0, _function.isFunction)(valueGetter)) {
42
- return valueGetter.call(instance, value, visualRow, visualCol, cellMeta);
43
- }
44
- return value;
45
- }
@@ -1,40 +0,0 @@
1
- import { isFunction } from "../helpers/function.mjs";
2
- /**
3
- * Get the value to be set in the cell.
4
- *
5
- * @param {*} value Initial value.
6
- * @param {object} cellMeta The cell meta object.
7
- * @returns {*} The value to be set in the cell.
8
- */
9
- export function getValueSetterValue(value, cellMeta) {
10
- const {
11
- instance,
12
- visualRow,
13
- visualCol,
14
- valueSetter
15
- } = cellMeta;
16
- if (isFunction(valueSetter)) {
17
- return valueSetter.call(instance, value, visualRow, visualCol, cellMeta);
18
- }
19
- return value;
20
- }
21
-
22
- /**
23
- * Get the value to be displayed in the cell.
24
- *
25
- * @param {*} value Initial value.
26
- * @param {object} cellMeta The cell meta object.
27
- * @returns {*} The value to be displayed in the cell.
28
- */
29
- export function getValueGetterValue(value, cellMeta) {
30
- const {
31
- instance,
32
- visualRow,
33
- visualCol,
34
- valueGetter
35
- } = cellMeta;
36
- if (isFunction(valueGetter)) {
37
- return valueGetter.call(instance, value, visualRow, visualCol, cellMeta);
38
- }
39
- return value;
40
- }