@toclocoinc/lattice-grid 1.68.0 → 1.68.1

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 (163) hide show
  1. package/README.md +1 -1
  2. package/angular/package.json +1 -1
  3. package/docs/API.html +5315 -3774
  4. package/docs/api-detail.html +4 -4
  5. package/lattice-grid.d.ts +3357 -1
  6. package/lattice-grid.esm.min.js +9 -7
  7. package/lattice-grid.min.cjs +9 -7
  8. package/lattice-grid.min.js +9 -7
  9. package/modules/ai.d.ts +64 -1
  10. package/modules/ai.esm.min.js +3 -3
  11. package/modules/ai.min.cjs +3 -3
  12. package/modules/ai.min.js +3 -3
  13. package/modules/angular.d.ts +1 -1
  14. package/modules/angular.esm.min.js +3 -3
  15. package/modules/angular.min.cjs +3 -3
  16. package/modules/angular.min.js +3 -3
  17. package/modules/chart-alluvial.d.ts +1 -1
  18. package/modules/chart-alluvial.esm.min.js +1 -1
  19. package/modules/chart-alluvial.min.cjs +1 -1
  20. package/modules/chart-alluvial.min.js +1 -1
  21. package/modules/chart-arc.d.ts +1 -1
  22. package/modules/chart-arc.esm.min.js +1 -1
  23. package/modules/chart-arc.min.cjs +1 -1
  24. package/modules/chart-arc.min.js +1 -1
  25. package/modules/chart-bubblemap.d.ts +1 -1
  26. package/modules/chart-bubblemap.esm.min.js +1 -1
  27. package/modules/chart-bubblemap.min.cjs +1 -1
  28. package/modules/chart-bubblemap.min.js +1 -1
  29. package/modules/chart-bump.d.ts +1 -1
  30. package/modules/chart-bump.esm.min.js +1 -1
  31. package/modules/chart-bump.min.cjs +1 -1
  32. package/modules/chart-bump.min.js +1 -1
  33. package/modules/chart-calendar.d.ts +1 -1
  34. package/modules/chart-calendar.esm.min.js +1 -1
  35. package/modules/chart-calendar.min.cjs +1 -1
  36. package/modules/chart-calendar.min.js +1 -1
  37. package/modules/chart-decomposition.d.ts +1 -1
  38. package/modules/chart-decomposition.esm.min.js +1 -1
  39. package/modules/chart-decomposition.min.cjs +1 -1
  40. package/modules/chart-decomposition.min.js +1 -1
  41. package/modules/chart-diverging.d.ts +1 -1
  42. package/modules/chart-diverging.esm.min.js +1 -1
  43. package/modules/chart-diverging.min.cjs +1 -1
  44. package/modules/chart-diverging.min.js +1 -1
  45. package/modules/chart-dumbbell.d.ts +1 -1
  46. package/modules/chart-dumbbell.esm.min.js +1 -1
  47. package/modules/chart-dumbbell.min.cjs +1 -1
  48. package/modules/chart-dumbbell.min.js +1 -1
  49. package/modules/chart-fan.d.ts +1 -1
  50. package/modules/chart-fan.esm.min.js +1 -1
  51. package/modules/chart-fan.min.cjs +1 -1
  52. package/modules/chart-fan.min.js +1 -1
  53. package/modules/chart-hexbin.d.ts +1 -1
  54. package/modules/chart-hexbin.esm.min.js +1 -1
  55. package/modules/chart-hexbin.min.cjs +1 -1
  56. package/modules/chart-hexbin.min.js +1 -1
  57. package/modules/chart-hexmap.d.ts +1 -1
  58. package/modules/chart-hexmap.esm.min.js +1 -1
  59. package/modules/chart-hexmap.min.cjs +1 -1
  60. package/modules/chart-hexmap.min.js +1 -1
  61. package/modules/chart-icicle.d.ts +1 -1
  62. package/modules/chart-icicle.esm.min.js +1 -1
  63. package/modules/chart-icicle.min.cjs +1 -1
  64. package/modules/chart-icicle.min.js +1 -1
  65. package/modules/chart-markermap.d.ts +1 -1
  66. package/modules/chart-markermap.esm.min.js +1 -1
  67. package/modules/chart-markermap.min.cjs +1 -1
  68. package/modules/chart-markermap.min.js +1 -1
  69. package/modules/chart-parallel.d.ts +1 -1
  70. package/modules/chart-parallel.esm.min.js +1 -1
  71. package/modules/chart-parallel.min.cjs +1 -1
  72. package/modules/chart-parallel.min.js +1 -1
  73. package/modules/chart-ridgeline.d.ts +1 -1
  74. package/modules/chart-ridgeline.esm.min.js +1 -1
  75. package/modules/chart-ridgeline.min.cjs +1 -1
  76. package/modules/chart-ridgeline.min.js +1 -1
  77. package/modules/chart-roc.d.ts +1 -1
  78. package/modules/chart-roc.esm.min.js +1 -1
  79. package/modules/chart-roc.min.cjs +1 -1
  80. package/modules/chart-roc.min.js +1 -1
  81. package/modules/chart-slope.d.ts +1 -1
  82. package/modules/chart-slope.esm.min.js +1 -1
  83. package/modules/chart-slope.min.cjs +1 -1
  84. package/modules/chart-slope.min.js +1 -1
  85. package/modules/chart-splom.d.ts +1 -1
  86. package/modules/chart-splom.esm.min.js +1 -1
  87. package/modules/chart-splom.min.cjs +1 -1
  88. package/modules/chart-splom.min.js +1 -1
  89. package/modules/chart-waffle.d.ts +1 -1
  90. package/modules/chart-waffle.esm.min.js +1 -1
  91. package/modules/chart-waffle.min.cjs +1 -1
  92. package/modules/chart-waffle.min.js +1 -1
  93. package/modules/charts.d.ts +16 -1
  94. package/modules/charts.esm.min.js +17 -10
  95. package/modules/charts.min.cjs +17 -10
  96. package/modules/charts.min.js +17 -10
  97. package/modules/data-router.d.ts +227 -1
  98. package/modules/data-router.esm.min.js +3 -3
  99. package/modules/data-router.min.cjs +3 -3
  100. package/modules/data-router.min.js +3 -3
  101. package/modules/devtools.d.ts +1 -1
  102. package/modules/devtools.esm.min.js +1 -1
  103. package/modules/devtools.min.cjs +1 -1
  104. package/modules/devtools.min.js +1 -1
  105. package/modules/dhtmlx-compat.d.ts +1 -1
  106. package/modules/dhtmlx-compat.esm.min.js +3 -3
  107. package/modules/dhtmlx-compat.min.cjs +3 -3
  108. package/modules/dhtmlx-compat.min.js +3 -3
  109. package/modules/gantt.d.ts +302 -1
  110. package/modules/gantt.esm.min.js +3 -3
  111. package/modules/gantt.min.cjs +3 -3
  112. package/modules/gantt.min.js +3 -3
  113. package/modules/geo-europe-nuts.d.ts +1 -1
  114. package/modules/geo-europe-nuts.esm.min.js +1 -1
  115. package/modules/geo-uk.d.ts +1 -1
  116. package/modules/geo-uk.esm.min.js +1 -1
  117. package/modules/geo-us-states.d.ts +1 -1
  118. package/modules/geo-us-states.esm.min.js +1 -1
  119. package/modules/geo-world-110m.d.ts +1 -1
  120. package/modules/geo-world-110m.esm.min.js +1 -1
  121. package/modules/geo-world-50m.d.ts +1 -1
  122. package/modules/geo-world-50m.esm.min.js +1 -1
  123. package/modules/htmx.d.ts +1 -1
  124. package/modules/htmx.esm.min.js +9 -7
  125. package/modules/htmx.min.cjs +9 -7
  126. package/modules/htmx.min.js +9 -7
  127. package/modules/kanban.d.ts +233 -1
  128. package/modules/kanban.esm.min.js +3 -3
  129. package/modules/kanban.min.cjs +3 -3
  130. package/modules/kanban.min.js +3 -3
  131. package/modules/kpi.d.ts +171 -1
  132. package/modules/kpi.esm.min.js +4 -4
  133. package/modules/kpi.min.cjs +4 -4
  134. package/modules/kpi.min.js +4 -4
  135. package/modules/layout.d.ts +117 -1
  136. package/modules/layout.esm.min.js +3 -3
  137. package/modules/layout.min.cjs +3 -3
  138. package/modules/layout.min.js +3 -3
  139. package/modules/mock-socket.d.ts +6 -1
  140. package/modules/mock-socket.esm.min.js +1 -1
  141. package/modules/mock-socket.min.cjs +1 -1
  142. package/modules/mock-socket.min.js +1 -1
  143. package/modules/react.d.ts +14 -1
  144. package/modules/react.esm.min.js +3 -3
  145. package/modules/react.min.cjs +3 -3
  146. package/modules/react.min.js +3 -3
  147. package/modules/svelte.d.ts +1 -1
  148. package/modules/svelte.esm.min.js +3 -3
  149. package/modules/svelte.min.cjs +3 -3
  150. package/modules/svelte.min.js +3 -3
  151. package/modules/tabs.d.ts +30 -1
  152. package/modules/tabs.esm.min.js +3 -3
  153. package/modules/tabs.min.cjs +3 -3
  154. package/modules/tabs.min.js +3 -3
  155. package/modules/vue.d.ts +8 -1
  156. package/modules/vue.esm.min.js +3 -3
  157. package/modules/vue.min.cjs +3 -3
  158. package/modules/vue.min.js +3 -3
  159. package/modules/webcomponent.d.ts +113 -1
  160. package/modules/webcomponent.esm.min.js +9 -7
  161. package/modules/webcomponent.min.cjs +9 -7
  162. package/modules/webcomponent.min.js +9 -7
  163. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.68.0, webcomponent module type declarations
2
+ * Lattice Grid 1.68.1, webcomponent module type declarations
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -70,12 +70,34 @@ export interface LatticeViewerEventDetail<Instance = unknown> { instance: Instan
70
70
  export interface LatticeGridElement<Row = any> extends HTMLElement {
71
71
  /** Every attribute in the table above is also a property of the same name. */
72
72
  theme: string | undefined;
73
+ /**
74
+ * The row height and padding as a named step, rather than pixel by pixel. The `density`
75
+ * attribute.
76
+ */
73
77
  density: string | undefined;
78
+ /** The locale the grid formats and sorts in. The `locale` attribute. */
74
79
  locale: string | undefined;
80
+ /**
81
+ * Which field identifies a row. As an attribute it can only be a field name; the
82
+ * composite and function forms are properties.
83
+ */
75
84
  rowKey: string | undefined;
85
+ /** Row height in pixels. The `row-height` attribute, parsed as a number. */
76
86
  rowHeight: number | undefined;
87
+ /**
88
+ * Header height in pixels. The `header-height` attribute, parsed as a number; unset,
89
+ * the header follows the density token.
90
+ */
77
91
  headerHeight: number | undefined;
92
+ /**
93
+ * Let the grid grow to its rows rather than capping its height. The `auto-height`
94
+ * attribute is a bare boolean — present is true.
95
+ */
78
96
  autoHeight: boolean | undefined;
97
+ /**
98
+ * What the reader may select: `single`, `multiple` or `none`. The `selection`
99
+ * attribute; the full selection config goes through `config`.
100
+ */
79
101
  selection: string | undefined;
80
102
  /** The live grid, or null while the element is disconnected. */
81
103
  readonly grid: Grid | null;
@@ -122,64 +144,150 @@ export interface LatticeViewerElement<Instance = unknown> extends HTMLElement {
122
144
  * empty; give it `rows` for a standalone panel.
123
145
  */
124
146
  export interface LatticeKPIElement<Row = any> extends LatticeViewerElement {
147
+ /** The panel's tiles. A structure, so it is a property rather than an attribute. */
125
148
  tiles: unknown[];
149
+ /** Rows for a standalone panel. Set them and the element stops waiting for a grid. */
126
150
  rows: Row[];
151
+ /** How many tile columns to aim for. */
127
152
  columns: number | undefined;
153
+ /** Which field identifies a row, for the panel's own keyed store. */
128
154
  rowKey: string | undefined;
155
+ /** The default locale a clock tile formats in. */
129
156
  locale: string | undefined;
157
+ /**
158
+ * Passed to the panel as `theme`, which the panel does not read — it mirrors the
159
+ * theme of the grid it is mounted beside, and otherwise follows the page's tokens.
160
+ */
130
161
  theme: string | undefined;
162
+ /**
163
+ * Passed to the panel as `density`, which the panel does not read — density is
164
+ * mirrored from the grid the panel belongs to.
165
+ */
131
166
  density: string | undefined;
167
+ /**
168
+ * Passed to the panel as `format`, which the panel does not read — formatting is
169
+ * per tile (`tiles: [{ format }]`).
170
+ */
132
171
  format: unknown;
133
172
  }
134
173
 
135
174
  /** `<lattice-chart>`. Always drawn from a grid, so it waits for one. */
136
175
  export interface LatticeChartElement extends LatticeViewerElement {
176
+ /**
177
+ * A geomap's geometry: a loaded pack, `{ pack: id }`, GeoJSON, or a map of code to path
178
+ * data. A structure, so it is a property.
179
+ */
137
180
  shapes: unknown;
181
+ /** The column that splits the measure into one series per distinct value. */
138
182
  series: unknown;
183
+ /**
184
+ * Passed to the chart as `data`, which the chart does not read — a chart draws the
185
+ * grid's own filtered rows. Use the grid's rows, or the chart spec's `rows`, through
186
+ * `config`.
187
+ */
139
188
  data: unknown;
189
+ /**
190
+ * Passed to the chart as `formatting`, which the chart does not read — a chart formats
191
+ * through the grid's own formatting and each column's type.
192
+ */
140
193
  formatting: unknown;
194
+ /** Which chart to draw. The `type` attribute. */
141
195
  type: string | undefined;
196
+ /** The category column. */
142
197
  x: string | undefined;
198
+ /** The measure column, or several for a multi-measure chart. */
143
199
  y: string | string[] | undefined;
200
+ /** The measure a markermap writes beside each dot and colours it by. */
144
201
  value: string | undefined;
202
+ /** The row-label column, for the types that name their rows. */
145
203
  label: string | undefined;
204
+ /** The longitude column, in degrees east, for the maps that place a row by where it is. */
146
205
  lon: string | undefined;
206
+ /** The latitude column, in degrees north. */
147
207
  lat: string | undefined;
208
+ /** Print the value beside each mark. The `labels` attribute is a bare boolean. */
148
209
  labels: boolean | undefined;
210
+ /**
211
+ * Passed to the chart as `stacked`, which the chart does not read — its own option is
212
+ * `stack`, reachable through `config`.
213
+ */
149
214
  stacked: boolean | undefined;
215
+ /**
216
+ * Passed to the chart as `horizontal`, which the chart does not read — orientation
217
+ * follows the chart type (`horizontalBar` and the row-named types draw along y).
218
+ */
150
219
  horizontal: boolean | undefined;
220
+ /** The colour scheme by name. */
151
221
  scheme: string | undefined;
152
222
  }
153
223
 
154
224
  /** `<lattice-kanban>`. Grid-bound like the KPI panel; give it `rows` to stand alone. */
155
225
  export interface LatticeKanbanElement<Row = any> extends LatticeViewerElement {
226
+ /** Rows for a standalone board. Set them and the element stops waiting for a grid. */
156
227
  rows: Row[];
228
+ /** The board's column definitions. */
157
229
  columns: unknown[];
230
+ /** The card template's field mapping — title, subtitle, labels, assignee and the rest. */
158
231
  card: unknown;
232
+ /**
233
+ * Passed to the board as `facets`, which the board does not read — filter it with
234
+ * `filter`, `quickFilter`, `setSprint` or `setEpic` instead.
235
+ */
159
236
  facets: unknown;
237
+ /** Which field identifies a card. */
160
238
  rowKey: string | undefined;
239
+ /** The row property that puts a card in a column. */
161
240
  columnProperty: string | undefined;
241
+ /**
242
+ * Passed to the board as `titleProperty`, which the board does not read — map the
243
+ * card's headline through `card` (`card: { title: 'name' }`).
244
+ */
162
245
  titleProperty: string | undefined;
246
+ /**
247
+ * Draw the two-dimensional swimlane layout. The `swimlanes` attribute is a bare
248
+ * boolean; name the lane property through `swimlane-property`.
249
+ */
163
250
  swimlanes: boolean | undefined;
164
251
  }
165
252
 
166
253
  /** `<lattice-gantt>`. */
167
254
  export interface LatticeGanttElement extends LatticeViewerElement {
255
+ /** The plan's tasks. A structure, so it is a property. */
168
256
  tasks: unknown[];
257
+ /** The links between tasks. */
169
258
  dependencies: unknown[];
259
+ /** The resource capacities, for over-allocation and levelling. */
170
260
  resources: unknown;
261
+ /** The working-time calendar: the `weekends` preset, or explicit workdays and holidays. */
171
262
  calendar: unknown;
263
+ /** The table panel's columns, for the split view. */
172
264
  columns: unknown;
265
+ /** Which field identifies a task. */
173
266
  rowKey: string | undefined;
267
+ /**
268
+ * Passed to the plan as `scale`, which it does not read — the timeline's zoom is a
269
+ * render option, set through `config: { render: { zoom } }`.
270
+ */
174
271
  scale: string | undefined;
272
+ /**
273
+ * Cascade an edit down the dependency chain rather than only recomputing. A bare
274
+ * boolean attribute.
275
+ */
175
276
  autoSchedule: boolean | undefined;
176
277
  }
177
278
 
178
279
  /** `<lattice-layout>`. */
179
280
  export interface LatticeLayoutElement extends LatticeViewerElement {
281
+ /**
282
+ * The windows to place, each with its content and its cell. A structure, so it is a
283
+ * property.
284
+ */
180
285
  windows: unknown[];
286
+ /** How many columns the grid of windows has. */
181
287
  columns: number | undefined;
288
+ /** How many rows the grid of windows has. */
182
289
  rows: number | undefined;
290
+ /** Which way windows collapse into the space a closed one left. */
183
291
  compact: string | undefined;
184
292
  }
185
293
 
@@ -189,6 +297,10 @@ export interface LatticeLayoutElement extends LatticeViewerElement {
189
297
  * left to the module.
190
298
  */
191
299
  export interface LatticeTabsElement extends LatticeViewerElement {
300
+ /**
301
+ * The tab descriptors. A tab's content comes from a `<template data-tab="‹id›">` child
302
+ * when there is one.
303
+ */
192
304
  tabs: unknown[];
193
305
  }
194
306