handsontable 0.0.0-next-9bae5e4-20260708 → 0.0.0-next-bbcfca6-20260708

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 (62) hide show
  1. package/base.js +2 -2
  2. package/base.mjs +2 -2
  3. package/core.js +20 -4
  4. package/core.mjs +20 -4
  5. package/dist/handsontable.full.js +41 -13
  6. package/dist/handsontable.full.min.js +5 -5
  7. package/dist/handsontable.js +41 -13
  8. package/dist/handsontable.min.js +5 -5
  9. package/dist/themes/classic.js +2 -2
  10. package/dist/themes/classic.min.js +2 -2
  11. package/dist/themes/horizon.js +2 -2
  12. package/dist/themes/horizon.min.js +2 -2
  13. package/dist/themes/main.js +2 -2
  14. package/dist/themes/main.min.js +2 -2
  15. package/dist/themes/static/variables/colors/ant.js +2 -2
  16. package/dist/themes/static/variables/colors/ant.min.js +2 -2
  17. package/dist/themes/static/variables/colors/classic.js +2 -2
  18. package/dist/themes/static/variables/colors/classic.min.js +2 -2
  19. package/dist/themes/static/variables/colors/horizon.js +2 -2
  20. package/dist/themes/static/variables/colors/horizon.min.js +2 -2
  21. package/dist/themes/static/variables/colors/main.js +2 -2
  22. package/dist/themes/static/variables/colors/main.min.js +2 -2
  23. package/dist/themes/static/variables/colors/material.js +2 -2
  24. package/dist/themes/static/variables/colors/material.min.js +2 -2
  25. package/dist/themes/static/variables/colors/shadcn.js +2 -2
  26. package/dist/themes/static/variables/colors/shadcn.min.js +2 -2
  27. package/dist/themes/static/variables/density.js +2 -2
  28. package/dist/themes/static/variables/density.min.js +2 -2
  29. package/dist/themes/static/variables/helpers/iconsMap.js +2 -2
  30. package/dist/themes/static/variables/helpers/iconsMap.min.js +2 -2
  31. package/dist/themes/static/variables/icons/horizon.js +2 -2
  32. package/dist/themes/static/variables/icons/horizon.min.js +2 -2
  33. package/dist/themes/static/variables/icons/main.js +2 -2
  34. package/dist/themes/static/variables/icons/main.min.js +2 -2
  35. package/dist/themes/static/variables/sizing.js +2 -2
  36. package/dist/themes/static/variables/sizing.min.js +2 -2
  37. package/dist/themes/static/variables/tokens/classic.js +2 -2
  38. package/dist/themes/static/variables/tokens/classic.min.js +2 -2
  39. package/dist/themes/static/variables/tokens/horizon.js +2 -2
  40. package/dist/themes/static/variables/tokens/horizon.min.js +2 -2
  41. package/dist/themes/static/variables/tokens/main.js +2 -2
  42. package/dist/themes/static/variables/tokens/main.min.js +2 -2
  43. package/editors/baseEditor/baseEditor.d.ts +15 -3
  44. package/editors/baseEditor/baseEditor.js +5 -3
  45. package/editors/baseEditor/baseEditor.mjs +15 -3
  46. package/helpers/mixed.js +1 -1
  47. package/helpers/mixed.mjs +1 -1
  48. package/package.json +1 -1
  49. package/styles/handsontable.css +2 -2
  50. package/styles/handsontable.min.css +2 -2
  51. package/styles/handsontableStyles.js +1 -1
  52. package/styles/handsontableStyles.mjs +1 -1
  53. package/styles/ht-icons-horizon.min.css +2 -2
  54. package/styles/ht-icons-main.min.css +2 -2
  55. package/styles/ht-theme-classic-no-icons.min.css +2 -2
  56. package/styles/ht-theme-classic.min.css +2 -2
  57. package/styles/ht-theme-horizon-no-icons.min.css +2 -2
  58. package/styles/ht-theme-horizon.min.css +2 -2
  59. package/styles/ht-theme-main-no-icons.min.css +2 -2
  60. package/styles/ht-theme-main.min.css +2 -2
  61. package/styles/handsontableStyles.d.mts +0 -2
  62. package/styles/handsontableStyles.d.ts +0 -2
package/base.js CHANGED
@@ -72,8 +72,8 @@ Handsontable.hooks = _hooks.Hooks.getSingleton();
72
72
  Handsontable.CellCoords = _src.CellCoords;
73
73
  Handsontable.CellRange = _src.CellRange;
74
74
  Handsontable.packageName = 'handsontable';
75
- Handsontable.buildDate = "08/07/2026 11:48:46";
76
- Handsontable.version = "0.0.0-next-9bae5e4-20260708";
75
+ Handsontable.buildDate = "08/07/2026 12:47:54";
76
+ Handsontable.version = "0.0.0-next-bbcfca6-20260708";
77
77
  Handsontable.languages = {
78
78
  dictionaryKeys: _registry.dictionaryKeys,
79
79
  getLanguageDictionary: _registry.getLanguageDictionary,
package/base.mjs CHANGED
@@ -43,8 +43,8 @@ Handsontable.hooks = Hooks.getSingleton();
43
43
  Handsontable.CellCoords = CellCoords;
44
44
  Handsontable.CellRange = CellRange;
45
45
  Handsontable.packageName = 'handsontable';
46
- Handsontable.buildDate = "08/07/2026 11:48:46";
47
- Handsontable.version = "0.0.0-next-9bae5e4-20260708";
46
+ Handsontable.buildDate = "08/07/2026 12:47:54";
47
+ Handsontable.version = "0.0.0-next-bbcfca6-20260708";
48
48
  Handsontable.languages = {
49
49
  dictionaryKeys,
50
50
  getLanguageDictionary,
package/core.js CHANGED
@@ -640,8 +640,8 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
640
640
  * format `[[index, amount], [index, amount]...]` this can be used to remove
641
641
  * non-consecutive columns or rows in one call.
642
642
  * @param {number} [amount=1] Amount of rows or columns to remove.
643
- * @param {string} [source] Optional. Source of hook runner.
644
- * @param {boolean} [keepEmptyRows] Optional. Flag for preventing deletion of empty rows.
643
+ * @param {string} [source] Optional. Source indicator passed to related hooks.
644
+ * @param {boolean} [keepEmptyRows] Optional. Flag for skipping the post-alter empty row and column adjustment.
645
645
  */ alter (action, index, amount = 1, source, keepEmptyRows) {
646
646
  const skipAlter = instance.runHooks('beforeAlter', action, index, amount, source, keepEmptyRows);
647
647
  if (skipAlter === false) {
@@ -2814,8 +2814,10 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
2814
2814
  * @param {number|number[]} [index] A visual index of the row/column before or after which the new row/column will be
2815
2815
  * inserted or removed. Can also be an array of arrays, in format `[[index, amount],...]`.
2816
2816
  * @param {number} [amount] The amount of rows or columns to be inserted or removed (default: `1`).
2817
- * @param {string} [source] Source indicator.
2818
- * @param {boolean} [keepEmptyRows] If set to `true`, prevents removing empty rows.
2817
+ * @param {string} [source] Source indicator passed to related hooks.
2818
+ * @param {boolean} [keepEmptyRows] If set to `true`, skips the automatic adjustment that normally adds empty rows
2819
+ * or columns after the operation to satisfy `minRows`, `minSpareRows`,
2820
+ * `minCols`, or `minSpareCols`.
2819
2821
  * @example
2820
2822
  * ```js
2821
2823
  * // above row 10 (by visual index), insert 1 new row
@@ -2835,9 +2837,23 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
2835
2837
  * // remove 2 rows, starting from row 10 (by visual index)
2836
2838
  * hot.alter('remove_row', 10, 2);
2837
2839
  *
2840
+ * // remove 2 columns, starting from column 3 (by visual index)
2841
+ * hot.alter('remove_col', 3, 2);
2842
+ *
2838
2843
  * // remove 3 rows, starting from row 1 (by visual index)
2839
2844
  * // remove 2 rows, starting from row 5 (by visual index)
2840
2845
  * hot.alter('remove_row', [[1, 3], [5, 2]]);
2846
+ *
2847
+ * // pass a custom source string to hooks
2848
+ * hot.addHook('afterCreateRow', (index, amount, source) => {
2849
+ * if (source === 'inventory-import') {
2850
+ * // Run logic only for rows created by the inventory import.
2851
+ * }
2852
+ * });
2853
+ * hot.alter('insert_row_above', 0, 1, 'inventory-import');
2854
+ *
2855
+ * // remove a row without immediately adding empty rows required by `minRows` or `minSpareRows`
2856
+ * hot.alter('remove_row', 4, 1, 'inventory-cleanup', true);
2841
2857
  * ```
2842
2858
  */ this.alter = function(action, index, amount, source, keepEmptyRows) {
2843
2859
  grid.alter(action, index, amount, source, keepEmptyRows);
package/core.mjs CHANGED
@@ -625,8 +625,8 @@ let activeGuid = null;
625
625
  * format `[[index, amount], [index, amount]...]` this can be used to remove
626
626
  * non-consecutive columns or rows in one call.
627
627
  * @param {number} [amount=1] Amount of rows or columns to remove.
628
- * @param {string} [source] Optional. Source of hook runner.
629
- * @param {boolean} [keepEmptyRows] Optional. Flag for preventing deletion of empty rows.
628
+ * @param {string} [source] Optional. Source indicator passed to related hooks.
629
+ * @param {boolean} [keepEmptyRows] Optional. Flag for skipping the post-alter empty row and column adjustment.
630
630
  */ alter (action, index, amount = 1, source, keepEmptyRows) {
631
631
  const skipAlter = instance.runHooks('beforeAlter', action, index, amount, source, keepEmptyRows);
632
632
  if (skipAlter === false) {
@@ -2799,8 +2799,10 @@ let activeGuid = null;
2799
2799
  * @param {number|number[]} [index] A visual index of the row/column before or after which the new row/column will be
2800
2800
  * inserted or removed. Can also be an array of arrays, in format `[[index, amount],...]`.
2801
2801
  * @param {number} [amount] The amount of rows or columns to be inserted or removed (default: `1`).
2802
- * @param {string} [source] Source indicator.
2803
- * @param {boolean} [keepEmptyRows] If set to `true`, prevents removing empty rows.
2802
+ * @param {string} [source] Source indicator passed to related hooks.
2803
+ * @param {boolean} [keepEmptyRows] If set to `true`, skips the automatic adjustment that normally adds empty rows
2804
+ * or columns after the operation to satisfy `minRows`, `minSpareRows`,
2805
+ * `minCols`, or `minSpareCols`.
2804
2806
  * @example
2805
2807
  * ```js
2806
2808
  * // above row 10 (by visual index), insert 1 new row
@@ -2820,9 +2822,23 @@ let activeGuid = null;
2820
2822
  * // remove 2 rows, starting from row 10 (by visual index)
2821
2823
  * hot.alter('remove_row', 10, 2);
2822
2824
  *
2825
+ * // remove 2 columns, starting from column 3 (by visual index)
2826
+ * hot.alter('remove_col', 3, 2);
2827
+ *
2823
2828
  * // remove 3 rows, starting from row 1 (by visual index)
2824
2829
  * // remove 2 rows, starting from row 5 (by visual index)
2825
2830
  * hot.alter('remove_row', [[1, 3], [5, 2]]);
2831
+ *
2832
+ * // pass a custom source string to hooks
2833
+ * hot.addHook('afterCreateRow', (index, amount, source) => {
2834
+ * if (source === 'inventory-import') {
2835
+ * // Run logic only for rows created by the inventory import.
2836
+ * }
2837
+ * });
2838
+ * hot.alter('insert_row_above', 0, 1, 'inventory-import');
2839
+ *
2840
+ * // remove a row without immediately adding empty rows required by `minRows` or `minSpareRows`
2841
+ * hot.alter('remove_row', 4, 1, 'inventory-cleanup', true);
2826
2842
  * ```
2827
2843
  */ this.alter = function(action, index, amount, source, keepEmptyRows) {
2828
2844
  grid.alter(action, index, amount, source, keepEmptyRows);