@toclocoinc/lattice-grid 1.60.0 → 1.62.0

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 (113) hide show
  1. package/README.md +1 -1
  2. package/docs/API.html +21 -17
  3. package/docs/api-detail.html +863 -17
  4. package/lattice-grid.d.ts +22 -11
  5. package/lattice-grid.esm.min.js +614 -49
  6. package/lattice-grid.min.cjs +614 -49
  7. package/lattice-grid.min.css +1 -1
  8. package/lattice-grid.min.js +614 -49
  9. package/modules/ai.d.ts +11 -2
  10. package/modules/ai.esm.min.js +24 -4
  11. package/modules/ai.min.cjs +24 -4
  12. package/modules/ai.min.js +24 -4
  13. package/modules/angular.d.ts +1 -1
  14. package/modules/angular.esm.min.js +2 -2
  15. package/modules/angular.min.cjs +2 -2
  16. package/modules/angular.min.js +2 -2
  17. package/modules/chart-alluvial.d.ts +1 -1
  18. package/modules/chart-alluvial.esm.min.js +1 -1
  19. package/modules/chart-arc.d.ts +1 -1
  20. package/modules/chart-arc.esm.min.js +1 -1
  21. package/modules/chart-bubblemap.d.ts +1 -1
  22. package/modules/chart-bubblemap.esm.min.js +1 -1
  23. package/modules/chart-bump.d.ts +1 -1
  24. package/modules/chart-bump.esm.min.js +1 -1
  25. package/modules/chart-calendar.d.ts +1 -1
  26. package/modules/chart-calendar.esm.min.js +1 -1
  27. package/modules/chart-decomposition.d.ts +1 -1
  28. package/modules/chart-decomposition.esm.min.js +1 -1
  29. package/modules/chart-diverging.d.ts +1 -1
  30. package/modules/chart-diverging.esm.min.js +1 -1
  31. package/modules/chart-dumbbell.d.ts +1 -1
  32. package/modules/chart-dumbbell.esm.min.js +1 -1
  33. package/modules/chart-fan.d.ts +1 -1
  34. package/modules/chart-fan.esm.min.js +1 -1
  35. package/modules/chart-hexbin.d.ts +1 -1
  36. package/modules/chart-hexbin.esm.min.js +1 -1
  37. package/modules/chart-hexmap.d.ts +1 -1
  38. package/modules/chart-hexmap.esm.min.js +1 -1
  39. package/modules/chart-icicle.d.ts +1 -1
  40. package/modules/chart-icicle.esm.min.js +1 -1
  41. package/modules/chart-parallel.d.ts +1 -1
  42. package/modules/chart-parallel.esm.min.js +1 -1
  43. package/modules/chart-ridgeline.d.ts +1 -1
  44. package/modules/chart-ridgeline.esm.min.js +1 -1
  45. package/modules/chart-roc.d.ts +1 -1
  46. package/modules/chart-roc.esm.min.js +1 -1
  47. package/modules/chart-slope.d.ts +1 -1
  48. package/modules/chart-slope.esm.min.js +1 -1
  49. package/modules/chart-splom.d.ts +1 -1
  50. package/modules/chart-splom.esm.min.js +1 -1
  51. package/modules/chart-waffle.d.ts +1 -1
  52. package/modules/chart-waffle.esm.min.js +1 -1
  53. package/modules/charts.d.ts +1 -1
  54. package/modules/charts.esm.min.js +48 -15
  55. package/modules/charts.min.cjs +48 -15
  56. package/modules/charts.min.js +48 -15
  57. package/modules/data-router.d.ts +1 -1
  58. package/modules/data-router.esm.min.js +4 -4
  59. package/modules/data-router.min.cjs +4 -4
  60. package/modules/data-router.min.js +4 -4
  61. package/modules/devtools.d.ts +1 -1
  62. package/modules/devtools.esm.min.js +2 -2
  63. package/modules/devtools.min.cjs +2 -2
  64. package/modules/devtools.min.js +2 -2
  65. package/modules/dhtmlx-compat.d.ts +1 -1
  66. package/modules/dhtmlx-compat.esm.min.js +4 -4
  67. package/modules/dhtmlx-compat.min.cjs +4 -4
  68. package/modules/dhtmlx-compat.min.js +4 -4
  69. package/modules/gantt.d.ts +144 -12
  70. package/modules/gantt.esm.min.js +1070 -201
  71. package/modules/gantt.min.cjs +1070 -201
  72. package/modules/gantt.min.js +1070 -201
  73. package/modules/htmx.d.ts +1 -1
  74. package/modules/htmx.esm.min.js +614 -49
  75. package/modules/htmx.min.cjs +614 -49
  76. package/modules/htmx.min.js +614 -49
  77. package/modules/kanban.d.ts +1 -1
  78. package/modules/kanban.esm.min.js +4 -4
  79. package/modules/kanban.min.cjs +4 -4
  80. package/modules/kanban.min.js +4 -4
  81. package/modules/kpi.d.ts +1 -1
  82. package/modules/kpi.esm.min.js +19 -6
  83. package/modules/kpi.min.cjs +19 -6
  84. package/modules/kpi.min.js +19 -6
  85. package/modules/layout.d.ts +1 -1
  86. package/modules/layout.esm.min.js +4 -4
  87. package/modules/layout.min.cjs +4 -4
  88. package/modules/layout.min.js +4 -4
  89. package/modules/mock-socket.d.ts +1 -1
  90. package/modules/mock-socket.esm.min.js +2 -2
  91. package/modules/mock-socket.min.cjs +2 -2
  92. package/modules/mock-socket.min.js +2 -2
  93. package/modules/react.d.ts +1 -1
  94. package/modules/react.esm.min.js +2 -2
  95. package/modules/react.min.cjs +2 -2
  96. package/modules/react.min.js +2 -2
  97. package/modules/svelte.d.ts +1 -1
  98. package/modules/svelte.esm.min.js +2 -2
  99. package/modules/svelte.min.cjs +2 -2
  100. package/modules/svelte.min.js +2 -2
  101. package/modules/tabs.d.ts +1 -1
  102. package/modules/tabs.esm.min.js +11 -4
  103. package/modules/tabs.min.cjs +11 -4
  104. package/modules/tabs.min.js +11 -4
  105. package/modules/vue.d.ts +1 -1
  106. package/modules/vue.esm.min.js +2 -2
  107. package/modules/vue.min.cjs +2 -2
  108. package/modules/vue.min.js +2 -2
  109. package/modules/webcomponent.d.ts +1 -1
  110. package/modules/webcomponent.esm.min.js +614 -49
  111. package/modules/webcomponent.min.cjs +614 -49
  112. package/modules/webcomponent.min.js +614 -49
  113. package/package.json +1 -1
package/lattice-grid.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.60.0, type declarations
2
+ * Lattice Grid 1.62.0, type declarations
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -72,14 +72,17 @@ export type Align = 'start' | 'center' | 'end' | 'left' | 'right' | 'centre';
72
72
  */
73
73
  export type VAlign = 'top' | 'middle' | 'bottom';
74
74
  /**
75
- * When the grid's scroll viewport keeps its scrollbars visible
76
- * (BACKLOG-0000990).
75
+ * How the grid's scroll viewport draws its scrollbars (BACKLOG-0000990,
76
+ * BACKLOG-0001288).
77
77
  *
78
78
  * `auto` is the platform's native behaviour — overlay scrollbars fade away when
79
- * idle. `always` keeps the bar shown whether or not the pointer is over the
80
- * grid, so the affordance never disappears on a touchpad or an overlay OS.
79
+ * idle. `always` keeps that native bar shown whether or not the pointer is over
80
+ * the grid, so the affordance never disappears on a touchpad or an overlay OS.
81
+ * `custom` replaces it with a bar the grid draws itself: the same size, colour
82
+ * and hit area in every browser, sized by the `--lattice-scrollbar-*` tokens,
83
+ * for a target bigger than the platform's own thin overlay ribbon.
81
84
  */
82
- export type ScrollbarMode = 'auto' | 'always';
85
+ export type ScrollbarMode = 'auto' | 'always' | 'custom';
83
86
  /**
84
87
  * A named preset, or a raw scale where 1 is `standard`. Row heights are
85
88
  * 23.8 / 28 / 42 / 56px for the four presets; a number scales 28px.
@@ -2079,13 +2082,21 @@ export interface GridConfig {
2079
2082
  tooltip?: TooltipConfig;
2080
2083
 
2081
2084
  /**
2082
- * Keep the scroll viewport's scrollbars visible (BACKLOG-0000990).
2085
+ * How the scroll viewport's scrollbars are drawn (BACKLOG-0000990,
2086
+ * BACKLOG-0001288).
2083
2087
  *
2084
2088
  * `'auto'` (the default) is the platform's native behaviour, where overlay
2085
- * scrollbars fade when idle. `'always'` keeps both axes shown whether or not
2086
- * the pointer is over the grid. The object form controls each axis on its
2087
- * own — `{ y: 'always' }` pins the vertical bar while the horizontal one
2088
- * stays native. Omitted, the grid is unchanged on upgrade.
2089
+ * scrollbars fade when idle. `'always'` keeps that native bar shown whether
2090
+ * or not the pointer is over the grid. `'custom'` makes the grid draw its
2091
+ * own bar on each axis instead — always visible, the same in every browser,
2092
+ * and sized by `--lattice-scrollbar-size` / `--lattice-scrollbar-thumb-min`
2093
+ * rather than by the platform. Scrolling itself is unchanged in every mode.
2094
+ *
2095
+ * The object form controls each axis on its own — `{ y: 'always' }` pins the
2096
+ * vertical bar while the horizontal one stays native. Note that `'custom'` on
2097
+ * one axis hides the native bar on both, because no browser offers per-axis
2098
+ * control of that; the grid warns once if the two axes disagree. Omitted, the
2099
+ * grid is unchanged on upgrade.
2089
2100
  */
2090
2101
  scrollbars?: ScrollbarMode | { x?: ScrollbarMode; y?: ScrollbarMode };
2091
2102