@toclocoinc/lattice-grid 1.63.3 → 1.65.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 (163) hide show
  1. package/README.md +4 -2
  2. package/docs/API.html +408 -25
  3. package/docs/CHART-CODES.md +24 -0
  4. package/docs/api-detail.html +115 -5
  5. package/lattice-grid.d.ts +333 -205
  6. package/lattice-grid.esm.min.js +155 -96
  7. package/lattice-grid.min.cjs +155 -96
  8. package/lattice-grid.min.js +155 -96
  9. package/modules/ai.d.ts +10 -13
  10. package/modules/ai.esm.min.js +3 -6
  11. package/modules/ai.min.cjs +3 -6
  12. package/modules/ai.min.js +3 -6
  13. package/modules/angular.d.ts +2 -2
  14. package/modules/angular.esm.min.js +433 -10
  15. package/modules/angular.min.cjs +433 -10
  16. package/modules/angular.min.js +433 -10
  17. package/modules/chart-alluvial.d.ts +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +29 -0
  66. package/modules/chart-markermap.esm.min.js +313 -0
  67. package/modules/chart-markermap.min.cjs +317 -0
  68. package/modules/chart-markermap.min.js +317 -0
  69. package/modules/chart-parallel.d.ts +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +4 -5
  94. package/modules/charts.esm.min.js +395 -33
  95. package/modules/charts.min.cjs +395 -33
  96. package/modules/charts.min.js +395 -33
  97. package/modules/data-router.d.ts +5 -6
  98. package/modules/data-router.esm.min.js +3 -6
  99. package/modules/data-router.min.cjs +3 -6
  100. package/modules/data-router.min.js +3 -6
  101. package/modules/devtools.d.ts +1 -1
  102. package/modules/devtools.esm.min.js +1 -4
  103. package/modules/devtools.min.cjs +1 -4
  104. package/modules/devtools.min.js +1 -4
  105. package/modules/dhtmlx-compat.d.ts +1 -1
  106. package/modules/dhtmlx-compat.esm.min.js +3 -6
  107. package/modules/dhtmlx-compat.min.cjs +3 -6
  108. package/modules/dhtmlx-compat.min.js +3 -6
  109. package/modules/gantt.d.ts +37 -43
  110. package/modules/gantt.esm.min.js +3 -6
  111. package/modules/gantt.min.cjs +3 -6
  112. package/modules/gantt.min.js +3 -6
  113. package/modules/geo-europe-nuts.d.ts +2 -2
  114. package/modules/geo-europe-nuts.esm.min.js +1 -1
  115. package/modules/geo-uk.d.ts +2 -2
  116. package/modules/geo-uk.esm.min.js +1 -1
  117. package/modules/geo-us-states.d.ts +2 -2
  118. package/modules/geo-us-states.esm.min.js +1 -1
  119. package/modules/geo-world-110m.d.ts +2 -2
  120. package/modules/geo-world-110m.esm.min.js +1 -1
  121. package/modules/geo-world-50m.d.ts +2 -2
  122. package/modules/geo-world-50m.esm.min.js +1 -1
  123. package/modules/htmx.d.ts +2 -2
  124. package/modules/htmx.esm.min.js +155 -96
  125. package/modules/htmx.min.cjs +155 -96
  126. package/modules/htmx.min.js +155 -96
  127. package/modules/kanban.d.ts +14 -14
  128. package/modules/kanban.esm.min.js +3 -6
  129. package/modules/kanban.min.cjs +3 -6
  130. package/modules/kanban.min.js +3 -6
  131. package/modules/kpi.d.ts +57 -4
  132. package/modules/kpi.esm.min.js +202 -10
  133. package/modules/kpi.min.cjs +202 -10
  134. package/modules/kpi.min.js +202 -10
  135. package/modules/layout.d.ts +2 -2
  136. package/modules/layout.esm.min.js +3 -6
  137. package/modules/layout.min.cjs +3 -6
  138. package/modules/layout.min.js +3 -6
  139. package/modules/mock-socket.d.ts +1 -1
  140. package/modules/mock-socket.esm.min.js +1 -4
  141. package/modules/mock-socket.min.cjs +1 -4
  142. package/modules/mock-socket.min.js +1 -4
  143. package/modules/react.d.ts +4 -5
  144. package/modules/react.esm.min.js +3 -6
  145. package/modules/react.min.cjs +3 -6
  146. package/modules/react.min.js +3 -6
  147. package/modules/svelte.d.ts +2 -3
  148. package/modules/svelte.esm.min.js +1 -4
  149. package/modules/svelte.min.cjs +1 -4
  150. package/modules/svelte.min.js +1 -4
  151. package/modules/tabs.d.ts +2 -3
  152. package/modules/tabs.esm.min.js +3 -6
  153. package/modules/tabs.min.cjs +3 -6
  154. package/modules/tabs.min.js +3 -6
  155. package/modules/vue.d.ts +1 -1
  156. package/modules/vue.esm.min.js +1 -4
  157. package/modules/vue.min.cjs +1 -4
  158. package/modules/vue.min.js +1 -4
  159. package/modules/webcomponent.d.ts +2 -2
  160. package/modules/webcomponent.esm.min.js +155 -96
  161. package/modules/webcomponent.min.cjs +155 -96
  162. package/modules/webcomponent.min.js +155 -96
  163. package/package.json +1 -1
package/modules/kpi.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.63.3, kpi module type declarations
2
+ * Lattice Grid 1.65.0, kpi module type declarations
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -38,8 +38,10 @@ interface KPISparkline {
38
38
  y: string | ((row: KPIRow) => unknown);
39
39
  }
40
40
 
41
- /** One tile: an aggregate over the routed rows, with optional filter, format, threshold and trend. */
42
- interface KPITile {
41
+ /** An aggregate stat tile: the routed rows reduced to one number, with optional filter, format, threshold and trend. */
42
+ interface KPIStatTile {
43
+ /** Absent, or `'stat'`: the default tile kind. */
44
+ kind?: 'stat';
43
45
  /** A stable identity for the tile (defaults to the label, then the index). */
44
46
  id?: string;
45
47
  /** The tile's accessible label. */
@@ -67,7 +69,46 @@ interface KPITile {
67
69
  }
68
70
 
69
71
  /**
70
- * The hierarchy a KPI panel arranges its tiles into (BACKLOG-0001059): a rail
72
+ * A clock tile: the device clock, not an aggregate — the
73
+ * date on one line and the time on the next, ticking once a second from one
74
+ * shared panel timer. It takes none of a stat tile's measurement options
75
+ * (`aggregation`, `field`, `format`, `thresholds`, `bands`, `target`,
76
+ * `baseline`, `sparkline`): supplying any of them is reported as a
77
+ * configuration warning by name and ignored, because a tile that measures
78
+ * nothing has nothing for them to apply to.
79
+ */
80
+ interface KPIClockTile {
81
+ /** Discriminates a clock tile from an aggregate stat tile. */
82
+ kind: 'clock';
83
+ /** A stable identity for the tile (defaults to the label, then the index). */
84
+ id?: string;
85
+ /** The tile's accessible label (e.g. the city or zone it names). */
86
+ label?: string;
87
+ /**
88
+ * Any IANA zone name (`'Europe/London'`). Omitted, the tile shows the
89
+ * viewer's local time. A name `Intl.DateTimeFormat` does not recognise is
90
+ * reported through the usual diagnostics warning and the tile falls back
91
+ * to local time rather than rendering nothing.
92
+ */
93
+ timeZone?: string;
94
+ /**
95
+ * The locale the date and time are formatted in — the tile's own, else the
96
+ * panel's `KPIConfig.locale`, else the browser's default. A 24-hour clock
97
+ * or a 12-hour one with an AM/PM marker follows from the locale itself
98
+ * (`Intl.DateTimeFormat`'s own convention), never a separate option.
99
+ */
100
+ locale?: string;
101
+ /** Show the seconds on the time line. Default `true`. */
102
+ seconds?: boolean;
103
+ /** Show the date line at all. Default `true`. */
104
+ date?: boolean;
105
+ }
106
+
107
+ /** One tile: a `kind`-discriminated aggregate stat tile (the default) or a clock tile. */
108
+ type KPITile = KPIStatTile | KPIClockTile;
109
+
110
+ /**
111
+ * The hierarchy a KPI panel arranges its tiles into: a rail
71
112
  * of top-level items that expand to the indicators beneath them, each parent
72
113
  * highlighted with the worst status below it.
73
114
  *
@@ -139,10 +180,16 @@ interface KPINodeModel {
139
180
  interface KPITileModel {
140
181
  id: string;
141
182
  label: string;
183
+ /** `'stat'` for an aggregate tile, `'clock'` for a clock tile. */
184
+ kind: 'stat' | 'clock';
142
185
  aggregation: string;
143
186
  field?: string;
187
+ /** For a clock tile, the read instant as epoch milliseconds. */
144
188
  value: unknown;
189
+ /** For a clock tile, the date and time text joined by a space (the same text `clock.date` and `clock.time` carry separately). */
145
190
  formatted: string;
191
+ /** Present only on a clock tile: the date and time lines rendered separately. `date` is `null` when the tile was given `date: false`. */
192
+ clock?: { date: string | null; time: string };
146
193
  /**
147
194
  * The tile's semantic band, or `unknown` when the tile measured nothing.
148
195
  * `unknown` is decided from data presence before any threshold is
@@ -190,6 +237,12 @@ interface KPIConfig {
190
237
  columns?: number;
191
238
  ariaLabel?: string;
192
239
  nullText?: string;
240
+ /**
241
+ * The default locale a clock tile formats in when the tile itself declares
242
+ * none; falls back to the browser's default. No effect
243
+ * on a stat tile, which takes its own `format.locale`.
244
+ */
245
+ locale?: string;
193
246
  /** Arrange the tiles as a hierarchy; `false` keeps the panel flat. */
194
247
  tree?: KPITreeConfig | false;
195
248
  /**