handsontable 19.0.0-rc1 → 19.0.0-rc2

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 (76) hide show
  1. package/3rdparty/walkontable/src/selection/border/border.d.ts +1 -0
  2. package/3rdparty/walkontable/src/selection/border/border.js +8 -3
  3. package/3rdparty/walkontable/src/selection/border/border.mjs +8 -3
  4. package/CHANGELOG.md +484 -0
  5. package/base.js +2 -2
  6. package/base.mjs +2 -2
  7. package/core/license.js +2 -2
  8. package/core/license.mjs +2 -2
  9. package/dist/handsontable.full.js +147 -34
  10. package/dist/handsontable.full.min.js +15 -15
  11. package/dist/handsontable.js +147 -34
  12. package/dist/handsontable.min.js +15 -15
  13. package/dist/handsontable.settings-schema.js +7 -7
  14. package/dist/handsontable.settings-schema.min.js +2 -2
  15. package/dist/manifest.json +1 -1
  16. package/dist/themes/classic.js +2 -2
  17. package/dist/themes/classic.min.js +2 -2
  18. package/dist/themes/horizon.js +2 -2
  19. package/dist/themes/horizon.min.js +2 -2
  20. package/dist/themes/main.js +2 -2
  21. package/dist/themes/main.min.js +2 -2
  22. package/dist/themes/static/variables/colors/ant.js +2 -2
  23. package/dist/themes/static/variables/colors/ant.min.js +2 -2
  24. package/dist/themes/static/variables/colors/classic.js +2 -2
  25. package/dist/themes/static/variables/colors/classic.min.js +2 -2
  26. package/dist/themes/static/variables/colors/horizon.js +2 -2
  27. package/dist/themes/static/variables/colors/horizon.min.js +2 -2
  28. package/dist/themes/static/variables/colors/main.js +2 -2
  29. package/dist/themes/static/variables/colors/main.min.js +2 -2
  30. package/dist/themes/static/variables/colors/material.js +2 -2
  31. package/dist/themes/static/variables/colors/material.min.js +2 -2
  32. package/dist/themes/static/variables/colors/shadcn.js +2 -2
  33. package/dist/themes/static/variables/colors/shadcn.min.js +2 -2
  34. package/dist/themes/static/variables/density.js +2 -2
  35. package/dist/themes/static/variables/density.min.js +2 -2
  36. package/dist/themes/static/variables/helpers/iconStyles.js +2 -2
  37. package/dist/themes/static/variables/helpers/iconStyles.min.js +2 -2
  38. package/dist/themes/static/variables/helpers/iconsMap.js +2 -2
  39. package/dist/themes/static/variables/helpers/iconsMap.min.js +2 -2
  40. package/dist/themes/static/variables/icons/horizon.js +2 -2
  41. package/dist/themes/static/variables/icons/horizon.min.js +2 -2
  42. package/dist/themes/static/variables/icons/main.js +2 -2
  43. package/dist/themes/static/variables/icons/main.min.js +2 -2
  44. package/dist/themes/static/variables/sizing.js +2 -2
  45. package/dist/themes/static/variables/sizing.min.js +2 -2
  46. package/dist/themes/static/variables/tokens/classic.js +2 -2
  47. package/dist/themes/static/variables/tokens/classic.min.js +2 -2
  48. package/dist/themes/static/variables/tokens/horizon.js +2 -2
  49. package/dist/themes/static/variables/tokens/horizon.min.js +2 -2
  50. package/dist/themes/static/variables/tokens/main.js +2 -2
  51. package/dist/themes/static/variables/tokens/main.min.js +2 -2
  52. package/helpers/dom/cellCoords.js +42 -0
  53. package/helpers/dom/cellCoords.mjs +42 -0
  54. package/helpers/mixed.js +5 -5
  55. package/helpers/mixed.mjs +5 -5
  56. package/package.json +1 -1
  57. package/plugins/moveCells/helpers.d.ts +17 -0
  58. package/plugins/moveCells/helpers.js +27 -3
  59. package/plugins/moveCells/helpers.mjs +28 -0
  60. package/plugins/moveCells/moveCells.js +41 -4
  61. package/plugins/moveCells/moveCells.mjs +42 -5
  62. package/styles/handsontable.css +2 -2
  63. package/styles/handsontable.min.css +2 -2
  64. package/styles/handsontableStyles.d.ts +1 -1
  65. package/styles/handsontableStyles.js +1 -1
  66. package/styles/handsontableStyles.mjs +1 -1
  67. package/styles/ht-icons-horizon.min.css +2 -2
  68. package/styles/ht-icons-main.min.css +2 -2
  69. package/styles/ht-theme-classic-no-icons.min.css +2 -2
  70. package/styles/ht-theme-classic.min.css +2 -2
  71. package/styles/ht-theme-horizon-no-icons.min.css +2 -2
  72. package/styles/ht-theme-horizon.min.css +2 -2
  73. package/styles/ht-theme-main-no-icons.min.css +2 -2
  74. package/styles/ht-theme-main.min.css +2 -2
  75. package/utils/licenseNotification.js +2 -2
  76. package/utils/licenseNotification.mjs +2 -2
@@ -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
- return fixedCount > 0 && (fromIndex === fixedCount || fromIndex > fixedCount && !this.isCustomBorder() && this.isTrackLinedUpWithFreezeLine(axis, 0, fromIndex));
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
- if (this.isFrozenBoundaryEdge('column', originalFromColumn) && (wtTable.isMaster || overlayName === 'top' || overlayName === 'bottom')) {
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
- return fixedCount > 0 && (fromIndex === fixedCount || fromIndex > fixedCount && !this.isCustomBorder() && this.isTrackLinedUpWithFreezeLine(axis, 0, fromIndex));
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
- if (this.isFrozenBoundaryEdge('column', originalFromColumn) && (wtTable.isMaster || overlayName === 'top' || overlayName === 'bottom')) {
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