handsontable 19.0.0-rc1 → 19.0.0-rc10
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/3rdparty/walkontable/src/overlay/scrollbarProxies.js +3 -1
- package/3rdparty/walkontable/src/overlay/scrollbarProxies.mjs +3 -1
- package/3rdparty/walkontable/src/selection/border/border.d.ts +1 -0
- package/3rdparty/walkontable/src/selection/border/border.js +8 -3
- package/3rdparty/walkontable/src/selection/border/border.mjs +8 -3
- package/CHANGELOG.md +491 -0
- package/README.md +1 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/hooks/constants.d.ts +2 -0
- package/core/hooks/constants.js +15 -6
- package/core/hooks/constants.mjs +15 -6
- package/core/license.js +2 -2
- package/core/license.mjs +2 -2
- package/core/types.d.ts +1 -0
- package/core.js +58 -12
- package/core.mjs +58 -12
- package/dataMap/metaManager/metaSchema.js +1 -0
- package/dataMap/metaManager/metaSchema.mjs +1 -0
- package/dist/handsontable.full.js +699 -194
- package/dist/handsontable.full.min.js +35 -35
- package/dist/handsontable.js +699 -194
- package/dist/handsontable.min.js +35 -35
- package/dist/handsontable.settings-schema.js +33 -23
- package/dist/handsontable.settings-schema.min.js +2 -2
- package/dist/manifest.json +1 -71
- 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/iconStyles.js +2 -2
- package/dist/themes/static/variables/helpers/iconStyles.min.js +2 -2
- package/dist/themes/static/variables/helpers/iconsMap.js +12 -12
- 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/helpers/dom/cellCoords.js +42 -0
- package/helpers/dom/cellCoords.mjs +42 -0
- package/helpers/mixed.d.ts +2 -2
- package/helpers/mixed.js +12 -12
- package/helpers/mixed.mjs +13 -13
- package/package.json +1 -1
- package/plugins/asyncValues/feature.generated.js +0 -1
- package/plugins/asyncValues/feature.generated.mjs +0 -1
- package/plugins/autoColumnSize/autoColumnSize.js +3 -3
- package/plugins/autoColumnSize/autoColumnSize.mjs +3 -3
- package/plugins/autoColumnSize/feature.generated.js +0 -1
- package/plugins/autoColumnSize/feature.generated.mjs +0 -1
- package/plugins/autoLink/feature.generated.js +0 -1
- package/plugins/autoLink/feature.generated.mjs +0 -1
- package/plugins/autoRowHeaderSize/feature.generated.js +0 -1
- package/plugins/autoRowHeaderSize/feature.generated.mjs +0 -1
- package/plugins/autoRowSize/autoRowSize.js +5 -5
- package/plugins/autoRowSize/autoRowSize.mjs +5 -5
- package/plugins/autoRowSize/feature.generated.js +0 -1
- package/plugins/autoRowSize/feature.generated.mjs +0 -1
- package/plugins/autofill/feature.generated.js +0 -1
- package/plugins/autofill/feature.generated.mjs +0 -1
- package/plugins/base/base.d.ts +8 -1
- package/plugins/bindRowsWithHeaders/feature.generated.js +0 -1
- package/plugins/bindRowsWithHeaders/feature.generated.mjs +0 -1
- package/plugins/checkboxHeader/feature.generated.js +0 -1
- package/plugins/checkboxHeader/feature.generated.mjs +0 -1
- package/plugins/collapsibleColumns/feature.generated.js +0 -1
- package/plugins/collapsibleColumns/feature.generated.mjs +0 -1
- package/plugins/columnSorting/feature.generated.js +0 -1
- package/plugins/columnSorting/feature.generated.mjs +0 -1
- package/plugins/columnSummary/feature.generated.js +0 -1
- package/plugins/columnSummary/feature.generated.mjs +0 -1
- package/plugins/comments/feature.generated.js +0 -1
- package/plugins/comments/feature.generated.mjs +0 -1
- package/plugins/contextMenu/feature.generated.js +0 -1
- package/plugins/contextMenu/feature.generated.mjs +0 -1
- package/plugins/copyPaste/feature.generated.js +0 -1
- package/plugins/copyPaste/feature.generated.mjs +0 -1
- package/plugins/customBorders/feature.generated.js +0 -1
- package/plugins/customBorders/feature.generated.mjs +0 -1
- package/plugins/dataProvider/feature.generated.js +0 -1
- package/plugins/dataProvider/feature.generated.mjs +0 -1
- package/plugins/dialog/feature.generated.js +0 -1
- package/plugins/dialog/feature.generated.mjs +0 -1
- package/plugins/dragToScroll/feature.generated.js +0 -1
- package/plugins/dragToScroll/feature.generated.mjs +0 -1
- package/plugins/dropdownMenu/feature.generated.js +0 -1
- package/plugins/dropdownMenu/feature.generated.mjs +0 -1
- package/plugins/emptyDataState/feature.generated.js +0 -1
- package/plugins/emptyDataState/feature.generated.mjs +0 -1
- package/plugins/exportFile/feature.generated.js +0 -1
- package/plugins/exportFile/feature.generated.mjs +0 -1
- package/plugins/exportFile/types/xlsx/numeric-utils.d.ts +19 -8
- package/plugins/exportFile/types/xlsx/numeric-utils.js +88 -7
- package/plugins/exportFile/types/xlsx/numeric-utils.mjs +100 -13
- package/plugins/exportFile/types/xlsx.js +9 -4
- package/plugins/exportFile/types/xlsx.mjs +9 -4
- package/plugins/filters/feature.generated.js +0 -1
- package/plugins/filters/feature.generated.mjs +0 -1
- package/plugins/formulaBuilder/feature.generated.js +0 -1
- package/plugins/formulaBuilder/feature.generated.mjs +0 -1
- package/plugins/formulas/feature.generated.js +0 -1
- package/plugins/formulas/feature.generated.mjs +0 -1
- package/plugins/formulas/formulas.d.ts +2 -2
- package/plugins/formulas/formulas.js +6 -6
- package/plugins/formulas/formulas.mjs +6 -6
- package/plugins/freezeBar/feature.generated.js +0 -1
- package/plugins/freezeBar/feature.generated.mjs +0 -1
- package/plugins/hiddenColumns/feature.generated.js +0 -1
- package/plugins/hiddenColumns/feature.generated.mjs +0 -1
- package/plugins/hiddenRows/feature.generated.js +0 -1
- package/plugins/hiddenRows/feature.generated.mjs +0 -1
- package/plugins/importFile/feature.generated.js +0 -1
- package/plugins/importFile/feature.generated.mjs +0 -1
- package/plugins/importFile/inference.d.ts +3 -1
- package/plugins/importFile/inference.js +16 -6
- package/plugins/importFile/inference.mjs +19 -7
- package/plugins/importFile/mapper.js +89 -1
- package/plugins/importFile/mapper.mjs +89 -1
- package/plugins/loading/feature.generated.js +0 -1
- package/plugins/loading/feature.generated.mjs +0 -1
- package/plugins/manualColumnFreeze/feature.generated.js +0 -1
- package/plugins/manualColumnFreeze/feature.generated.mjs +0 -1
- package/plugins/manualColumnMove/feature.generated.js +0 -1
- package/plugins/manualColumnMove/feature.generated.mjs +0 -1
- package/plugins/manualColumnResize/feature.generated.js +0 -1
- package/plugins/manualColumnResize/feature.generated.mjs +0 -1
- package/plugins/manualRowMove/feature.generated.js +0 -1
- package/plugins/manualRowMove/feature.generated.mjs +0 -1
- package/plugins/manualRowResize/feature.generated.js +0 -1
- package/plugins/manualRowResize/feature.generated.mjs +0 -1
- package/plugins/mergeCells/feature.generated.js +0 -1
- package/plugins/mergeCells/feature.generated.mjs +0 -1
- package/plugins/mergeCells/mergeCells.js +159 -16
- package/plugins/mergeCells/mergeCells.mjs +159 -16
- package/plugins/moveCells/feature.generated.js +0 -1
- package/plugins/moveCells/feature.generated.mjs +0 -1
- package/plugins/moveCells/helpers.d.ts +17 -0
- package/plugins/moveCells/helpers.js +27 -3
- package/plugins/moveCells/helpers.mjs +28 -0
- package/plugins/moveCells/moveCells.js +41 -4
- package/plugins/moveCells/moveCells.mjs +42 -5
- package/plugins/multiColumnSorting/feature.generated.js +0 -1
- package/plugins/multiColumnSorting/feature.generated.mjs +0 -1
- package/plugins/nestedHeaders/feature.generated.js +0 -1
- package/plugins/nestedHeaders/feature.generated.mjs +0 -1
- package/plugins/nestedRows/feature.generated.js +0 -1
- package/plugins/nestedRows/feature.generated.mjs +0 -1
- package/plugins/notification/feature.generated.js +0 -1
- package/plugins/notification/feature.generated.mjs +0 -1
- package/plugins/pagination/feature.generated.js +0 -1
- package/plugins/pagination/feature.generated.mjs +0 -1
- package/plugins/pagination/pagination.js +17 -4
- package/plugins/pagination/pagination.mjs +17 -4
- package/plugins/rowSelection/feature.generated.js +0 -1
- package/plugins/rowSelection/feature.generated.mjs +0 -1
- package/plugins/search/feature.generated.js +0 -1
- package/plugins/search/feature.generated.mjs +0 -1
- package/plugins/selectionHandles/feature.generated.js +0 -1
- package/plugins/selectionHandles/feature.generated.mjs +0 -1
- package/plugins/sheetsBar/feature.generated.js +0 -1
- package/plugins/sheetsBar/feature.generated.mjs +0 -1
- package/plugins/stretchColumns/feature.generated.js +0 -1
- package/plugins/stretchColumns/feature.generated.mjs +0 -1
- package/plugins/trimRows/feature.generated.js +0 -1
- package/plugins/trimRows/feature.generated.mjs +0 -1
- package/plugins/undoRedo/feature.generated.js +0 -1
- package/plugins/undoRedo/feature.generated.mjs +0 -1
- package/plugins/undoRedo/restore.js +20 -8
- package/plugins/undoRedo/restore.mjs +20 -8
- package/plugins/undoRedo/snapshot/gridState.d.ts +5 -1
- package/plugins/undoRedo/snapshot/gridState.js +5 -2
- package/plugins/undoRedo/snapshot/gridState.mjs +5 -2
- package/plugins/viewState/feature.generated.js +0 -1
- package/plugins/viewState/feature.generated.mjs +0 -1
- package/styles/handsontable.css +2 -2
- package/styles/handsontable.min.css +2 -2
- package/styles/handsontableStyles.d.ts +1 -1
- 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/utils/entitlementLicenseKey/constants.d.ts +2 -2
- package/utils/entitlementLicenseKey/constants.js +3 -3
- package/utils/entitlementLicenseKey/constants.mjs +2 -2
- package/utils/entitlementLicenseKey/index.d.ts +1 -1
- package/utils/entitlementLicenseKey/index.js +2 -2
- package/utils/entitlementLicenseKey/index.mjs +1 -1
- package/utils/entitlementLicenseKey/types.d.ts +1 -1
- package/utils/licenseBranding/index.js +6 -5
- package/utils/licenseBranding/index.mjs +6 -5
- package/utils/licenseNotification.js +2 -2
- package/utils/licenseNotification.mjs +2 -2
- package/utils/xlsxEngine/licenseCapabilities.generated.js +0 -4
- package/utils/xlsxEngine/licenseCapabilities.generated.mjs +0 -4
- package/utils/xlsxEngine/numFmtCode.d.ts +15 -0
- package/utils/xlsxEngine/numFmtCode.js +11 -0
- package/utils/xlsxEngine/numFmtCode.mjs +21 -0
|
@@ -579,7 +579,9 @@ function apply(axis, layout, holder, measured, holderStyle) {
|
|
|
579
579
|
// color) shapes the proxy too and its bar keeps filling the gutter it sits in. The track is left to
|
|
580
580
|
// the proxy's background, like the fillers'.
|
|
581
581
|
setStyle(elements.proxy, 'scrollbarWidth', holderStyle.scrollbarWidth);
|
|
582
|
-
|
|
582
|
+
if (typeof holderStyle.scrollbarColor === 'string') {
|
|
583
|
+
setStyle(elements.proxy, 'scrollbarColor', resolveProxyScrollbarColor(holderStyle.scrollbarColor));
|
|
584
|
+
}
|
|
583
585
|
elements.fillers.forEach((filler, index)=>{
|
|
584
586
|
const box = layout.fillers[index];
|
|
585
587
|
if (box) {
|
|
@@ -608,7 +608,9 @@ function apply(axis, layout, holder, measured, holderStyle) {
|
|
|
608
608
|
// color) shapes the proxy too and its bar keeps filling the gutter it sits in. The track is left to
|
|
609
609
|
// the proxy's background, like the fillers'.
|
|
610
610
|
setStyle(elements.proxy, 'scrollbarWidth', holderStyle.scrollbarWidth);
|
|
611
|
-
|
|
611
|
+
if (typeof holderStyle.scrollbarColor === 'string') {
|
|
612
|
+
setStyle(elements.proxy, 'scrollbarColor', resolveProxyScrollbarColor(holderStyle.scrollbarColor));
|
|
613
|
+
}
|
|
612
614
|
elements.fillers.forEach((filler, index)=>{
|
|
613
615
|
const box = layout.fillers[index];
|
|
614
616
|
if (box) {
|
|
@@ -473,6 +473,7 @@ declare class Border {
|
|
|
473
473
|
* `fixedColumnsStart` freeze line: the selection starts at the first track after the frozen ones
|
|
474
474
|
* ({@link Border#isFrozenBoundaryEdge}), or at a later track that scrolling lined up with the frozen area.
|
|
475
475
|
* The master and the frozen overlay then draw the edge's two halves around the line, as for the first track.
|
|
476
|
+
* Never true for a custom border: the frozen overlays draw no copy of it, so its edge is not on the line.
|
|
476
477
|
*
|
|
477
478
|
* @private
|
|
478
479
|
* @param {'row'|'column'} axis The freeze axis to test.
|
|
@@ -773,6 +773,7 @@ const BORDER_STYLE_HORIZONTAL_SUFFIX = '-horizontal';
|
|
|
773
773
|
* `fixedColumnsStart` freeze line: the selection starts at the first track after the frozen ones
|
|
774
774
|
* ({@link Border#isFrozenBoundaryEdge}), or at a later track that scrolling lined up with the frozen area.
|
|
775
775
|
* The master and the frozen overlay then draw the edge's two halves around the line, as for the first track.
|
|
776
|
+
* Never true for a custom border: the frozen overlays draw no copy of it, so its edge is not on the line.
|
|
776
777
|
*
|
|
777
778
|
* @private
|
|
778
779
|
* @param {'row'|'column'} axis The freeze axis to test.
|
|
@@ -782,7 +783,10 @@ const BORDER_STYLE_HORIZONTAL_SUFFIX = '-horizontal';
|
|
|
782
783
|
const fixedCount = this.wot.getSetting(axis === 'row' ? 'fixedRowsTop' : 'fixedColumnsStart');
|
|
783
784
|
// A custom border has no copy in the frozen overlays (the selection manager draws it only where its cell is
|
|
784
785
|
// rendered), so nothing would draw its half on the line: it keeps the shift onto its cell.
|
|
785
|
-
|
|
786
|
+
if (fixedCount <= 0 || this.isCustomBorder()) {
|
|
787
|
+
return false;
|
|
788
|
+
}
|
|
789
|
+
return fromIndex === fixedCount || fromIndex > fixedCount && this.isTrackLinedUpWithFreezeLine(axis, 0, fromIndex);
|
|
786
790
|
}
|
|
787
791
|
/**
|
|
788
792
|
* Tells whether the selection's inline-end edge lies on the `fixedColumnsEnd` freeze line: its column is a
|
|
@@ -1885,8 +1889,9 @@ const BORDER_STYLE_HORIZONTAL_SUFFIX = '-horizontal';
|
|
|
1885
1889
|
this.topStyle.display = 'none';
|
|
1886
1890
|
}
|
|
1887
1891
|
// Only by index: for a column that scrolling lined up, the frozen overlay's holder clips the edge at the line,
|
|
1888
|
-
// so the master keeps the half inside it.
|
|
1889
|
-
|
|
1892
|
+
// so the master keeps the half inside it. Not for a custom border (see `isEdgeOnStartFreezeLine`): the frozen
|
|
1893
|
+
// overlays do not draw it, so the master's copy is the only one.
|
|
1894
|
+
if (this.isFrozenBoundaryEdge('column', originalFromColumn) && !this.isCustomBorder() && (wtTable.isMaster || overlayName === 'top' || overlayName === 'bottom')) {
|
|
1890
1895
|
this.startStyle.display = 'none';
|
|
1891
1896
|
}
|
|
1892
1897
|
// The inline-end mirror of the rule above: a selection starting at the first `fixedColumnsEnd` column has
|
|
@@ -763,6 +763,7 @@ const BORDER_STYLE_HORIZONTAL_SUFFIX = '-horizontal';
|
|
|
763
763
|
* `fixedColumnsStart` freeze line: the selection starts at the first track after the frozen ones
|
|
764
764
|
* ({@link Border#isFrozenBoundaryEdge}), or at a later track that scrolling lined up with the frozen area.
|
|
765
765
|
* The master and the frozen overlay then draw the edge's two halves around the line, as for the first track.
|
|
766
|
+
* Never true for a custom border: the frozen overlays draw no copy of it, so its edge is not on the line.
|
|
766
767
|
*
|
|
767
768
|
* @private
|
|
768
769
|
* @param {'row'|'column'} axis The freeze axis to test.
|
|
@@ -772,7 +773,10 @@ const BORDER_STYLE_HORIZONTAL_SUFFIX = '-horizontal';
|
|
|
772
773
|
const fixedCount = this.wot.getSetting(axis === 'row' ? 'fixedRowsTop' : 'fixedColumnsStart');
|
|
773
774
|
// A custom border has no copy in the frozen overlays (the selection manager draws it only where its cell is
|
|
774
775
|
// rendered), so nothing would draw its half on the line: it keeps the shift onto its cell.
|
|
775
|
-
|
|
776
|
+
if (fixedCount <= 0 || this.isCustomBorder()) {
|
|
777
|
+
return false;
|
|
778
|
+
}
|
|
779
|
+
return fromIndex === fixedCount || fromIndex > fixedCount && this.isTrackLinedUpWithFreezeLine(axis, 0, fromIndex);
|
|
776
780
|
}
|
|
777
781
|
/**
|
|
778
782
|
* Tells whether the selection's inline-end edge lies on the `fixedColumnsEnd` freeze line: its column is a
|
|
@@ -1875,8 +1879,9 @@ const BORDER_STYLE_HORIZONTAL_SUFFIX = '-horizontal';
|
|
|
1875
1879
|
this.topStyle.display = 'none';
|
|
1876
1880
|
}
|
|
1877
1881
|
// Only by index: for a column that scrolling lined up, the frozen overlay's holder clips the edge at the line,
|
|
1878
|
-
// so the master keeps the half inside it.
|
|
1879
|
-
|
|
1882
|
+
// so the master keeps the half inside it. Not for a custom border (see `isEdgeOnStartFreezeLine`): the frozen
|
|
1883
|
+
// overlays do not draw it, so the master's copy is the only one.
|
|
1884
|
+
if (this.isFrozenBoundaryEdge('column', originalFromColumn) && !this.isCustomBorder() && (wtTable.isMaster || overlayName === 'top' || overlayName === 'bottom')) {
|
|
1880
1885
|
this.startStyle.display = 'none';
|
|
1881
1886
|
}
|
|
1882
1887
|
// The inline-end mirror of the rule above: a selection starting at the first `fixedColumnsEnd` column has
|