handsontable 0.0.0-next-07941cf-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.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +26 -4
- package/core.mjs +26 -4
- package/dist/handsontable.full.js +63 -21
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +63 -21
- package/dist/handsontable.min.js +5 -5
- package/dist/themes/classic.js +2 -2
- package/dist/themes/classic.min.js +2 -2
- package/dist/themes/horizon.js +2 -2
- package/dist/themes/horizon.min.js +2 -2
- package/dist/themes/main.js +2 -2
- package/dist/themes/main.min.js +2 -2
- package/dist/themes/static/variables/colors/ant.js +2 -2
- package/dist/themes/static/variables/colors/ant.min.js +2 -2
- package/dist/themes/static/variables/colors/classic.js +2 -2
- package/dist/themes/static/variables/colors/classic.min.js +2 -2
- package/dist/themes/static/variables/colors/horizon.js +2 -2
- package/dist/themes/static/variables/colors/horizon.min.js +2 -2
- package/dist/themes/static/variables/colors/main.js +2 -2
- package/dist/themes/static/variables/colors/main.min.js +2 -2
- package/dist/themes/static/variables/colors/material.js +2 -2
- package/dist/themes/static/variables/colors/material.min.js +2 -2
- package/dist/themes/static/variables/colors/shadcn.js +2 -2
- package/dist/themes/static/variables/colors/shadcn.min.js +2 -2
- package/dist/themes/static/variables/density.js +2 -2
- package/dist/themes/static/variables/density.min.js +2 -2
- package/dist/themes/static/variables/helpers/iconsMap.js +2 -2
- package/dist/themes/static/variables/helpers/iconsMap.min.js +2 -2
- package/dist/themes/static/variables/icons/horizon.js +2 -2
- package/dist/themes/static/variables/icons/horizon.min.js +2 -2
- package/dist/themes/static/variables/icons/main.js +2 -2
- package/dist/themes/static/variables/icons/main.min.js +2 -2
- package/dist/themes/static/variables/sizing.js +2 -2
- package/dist/themes/static/variables/sizing.min.js +2 -2
- package/dist/themes/static/variables/tokens/classic.js +2 -2
- package/dist/themes/static/variables/tokens/classic.min.js +2 -2
- package/dist/themes/static/variables/tokens/horizon.js +2 -2
- package/dist/themes/static/variables/tokens/horizon.min.js +2 -2
- package/dist/themes/static/variables/tokens/main.js +2 -2
- package/dist/themes/static/variables/tokens/main.min.js +2 -2
- package/editors/baseEditor/baseEditor.d.ts +15 -3
- package/editors/baseEditor/baseEditor.js +5 -3
- package/editors/baseEditor/baseEditor.mjs +15 -3
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/shortcuts/context.js +16 -8
- package/shortcuts/context.mjs +16 -8
- package/styles/handsontable.css +2 -2
- package/styles/handsontable.min.css +2 -2
- package/styles/handsontableStyles.js +1 -1
- package/styles/handsontableStyles.mjs +1 -1
- package/styles/ht-icons-horizon.min.css +2 -2
- package/styles/ht-icons-main.min.css +2 -2
- package/styles/ht-theme-classic-no-icons.min.css +2 -2
- package/styles/ht-theme-classic.min.css +2 -2
- package/styles/ht-theme-horizon-no-icons.min.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main-no-icons.min.css +2 -2
- package/styles/ht-theme-main.min.css +2 -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
|
|
76
|
-
Handsontable.version = "0.0.0-next-
|
|
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
|
|
47
|
-
Handsontable.version = "0.0.0-next-
|
|
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
|
|
644
|
-
* @param {boolean} [keepEmptyRows] Optional. Flag for
|
|
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`,
|
|
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);
|
|
@@ -4351,6 +4367,9 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
|
|
|
4351
4367
|
/**
|
|
4352
4368
|
* Scroll viewport to coordinates specified by the `row` and/or `col` object properties.
|
|
4353
4369
|
*
|
|
4370
|
+
* The object-based signature was introduced in v14.0.0. The positional arguments form is retained
|
|
4371
|
+
* for backward compatibility.
|
|
4372
|
+
*
|
|
4354
4373
|
* ```js
|
|
4355
4374
|
* // scroll the viewport to the visual row index (leave the horizontal scroll untouched)
|
|
4356
4375
|
* hot.scrollViewportTo({ row: 50 });
|
|
@@ -4365,6 +4384,9 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
|
|
|
4365
4384
|
* }, () => {
|
|
4366
4385
|
* // callback function executed after the viewport is scrolled
|
|
4367
4386
|
* });
|
|
4387
|
+
*
|
|
4388
|
+
* // scroll the viewport using the backward-compatible positional arguments form
|
|
4389
|
+
* hot.scrollViewportTo(50, 50, true, true);
|
|
4368
4390
|
* ```
|
|
4369
4391
|
*
|
|
4370
4392
|
* @memberof Core#
|
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
|
|
629
|
-
* @param {boolean} [keepEmptyRows] Optional. Flag for
|
|
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`,
|
|
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);
|
|
@@ -4336,6 +4352,9 @@ let activeGuid = null;
|
|
|
4336
4352
|
/**
|
|
4337
4353
|
* Scroll viewport to coordinates specified by the `row` and/or `col` object properties.
|
|
4338
4354
|
*
|
|
4355
|
+
* The object-based signature was introduced in v14.0.0. The positional arguments form is retained
|
|
4356
|
+
* for backward compatibility.
|
|
4357
|
+
*
|
|
4339
4358
|
* ```js
|
|
4340
4359
|
* // scroll the viewport to the visual row index (leave the horizontal scroll untouched)
|
|
4341
4360
|
* hot.scrollViewportTo({ row: 50 });
|
|
@@ -4350,6 +4369,9 @@ let activeGuid = null;
|
|
|
4350
4369
|
* }, () => {
|
|
4351
4370
|
* // callback function executed after the viewport is scrolled
|
|
4352
4371
|
* });
|
|
4372
|
+
*
|
|
4373
|
+
* // scroll the viewport using the backward-compatible positional arguments form
|
|
4374
|
+
* hot.scrollViewportTo(50, 50, true, true);
|
|
4353
4375
|
* ```
|
|
4354
4376
|
*
|
|
4355
4377
|
* @memberof Core#
|