@toclocoinc/lattice-grid 1.68.2 → 1.69.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 (164) hide show
  1. package/README.md +1 -1
  2. package/angular/package.json +1 -1
  3. package/docs/API.html +5 -4
  4. package/docs/api-detail.html +5 -4
  5. package/lattice-grid.d.ts +10 -1
  6. package/lattice-grid.esm.min.js +69 -18
  7. package/lattice-grid.min.cjs +69 -18
  8. package/lattice-grid.min.css +1 -1
  9. package/lattice-grid.min.js +69 -18
  10. package/modules/ai.d.ts +1 -1
  11. package/modules/ai.esm.min.js +19 -3
  12. package/modules/ai.min.cjs +19 -3
  13. package/modules/ai.min.js +19 -3
  14. package/modules/angular.d.ts +1 -1
  15. package/modules/angular.esm.min.js +3 -3
  16. package/modules/angular.min.cjs +3 -3
  17. package/modules/angular.min.js +3 -3
  18. package/modules/chart-alluvial.d.ts +1 -1
  19. package/modules/chart-alluvial.esm.min.js +1 -1
  20. package/modules/chart-alluvial.min.cjs +1 -1
  21. package/modules/chart-alluvial.min.js +1 -1
  22. package/modules/chart-arc.d.ts +1 -1
  23. package/modules/chart-arc.esm.min.js +1 -1
  24. package/modules/chart-arc.min.cjs +1 -1
  25. package/modules/chart-arc.min.js +1 -1
  26. package/modules/chart-bubblemap.d.ts +1 -1
  27. package/modules/chart-bubblemap.esm.min.js +1 -1
  28. package/modules/chart-bubblemap.min.cjs +1 -1
  29. package/modules/chart-bubblemap.min.js +1 -1
  30. package/modules/chart-bump.d.ts +1 -1
  31. package/modules/chart-bump.esm.min.js +1 -1
  32. package/modules/chart-bump.min.cjs +1 -1
  33. package/modules/chart-bump.min.js +1 -1
  34. package/modules/chart-calendar.d.ts +1 -1
  35. package/modules/chart-calendar.esm.min.js +1 -1
  36. package/modules/chart-calendar.min.cjs +1 -1
  37. package/modules/chart-calendar.min.js +1 -1
  38. package/modules/chart-decomposition.d.ts +1 -1
  39. package/modules/chart-decomposition.esm.min.js +1 -1
  40. package/modules/chart-decomposition.min.cjs +1 -1
  41. package/modules/chart-decomposition.min.js +1 -1
  42. package/modules/chart-diverging.d.ts +1 -1
  43. package/modules/chart-diverging.esm.min.js +1 -1
  44. package/modules/chart-diverging.min.cjs +1 -1
  45. package/modules/chart-diverging.min.js +1 -1
  46. package/modules/chart-dumbbell.d.ts +1 -1
  47. package/modules/chart-dumbbell.esm.min.js +1 -1
  48. package/modules/chart-dumbbell.min.cjs +1 -1
  49. package/modules/chart-dumbbell.min.js +1 -1
  50. package/modules/chart-fan.d.ts +1 -1
  51. package/modules/chart-fan.esm.min.js +1 -1
  52. package/modules/chart-fan.min.cjs +1 -1
  53. package/modules/chart-fan.min.js +1 -1
  54. package/modules/chart-hexbin.d.ts +1 -1
  55. package/modules/chart-hexbin.esm.min.js +1 -1
  56. package/modules/chart-hexbin.min.cjs +1 -1
  57. package/modules/chart-hexbin.min.js +1 -1
  58. package/modules/chart-hexmap.d.ts +1 -1
  59. package/modules/chart-hexmap.esm.min.js +1 -1
  60. package/modules/chart-hexmap.min.cjs +1 -1
  61. package/modules/chart-hexmap.min.js +1 -1
  62. package/modules/chart-icicle.d.ts +1 -1
  63. package/modules/chart-icicle.esm.min.js +1 -1
  64. package/modules/chart-icicle.min.cjs +1 -1
  65. package/modules/chart-icicle.min.js +1 -1
  66. package/modules/chart-markermap.d.ts +1 -1
  67. package/modules/chart-markermap.esm.min.js +1 -1
  68. package/modules/chart-markermap.min.cjs +1 -1
  69. package/modules/chart-markermap.min.js +1 -1
  70. package/modules/chart-parallel.d.ts +1 -1
  71. package/modules/chart-parallel.esm.min.js +1 -1
  72. package/modules/chart-parallel.min.cjs +1 -1
  73. package/modules/chart-parallel.min.js +1 -1
  74. package/modules/chart-ridgeline.d.ts +1 -1
  75. package/modules/chart-ridgeline.esm.min.js +1 -1
  76. package/modules/chart-ridgeline.min.cjs +1 -1
  77. package/modules/chart-ridgeline.min.js +1 -1
  78. package/modules/chart-roc.d.ts +1 -1
  79. package/modules/chart-roc.esm.min.js +1 -1
  80. package/modules/chart-roc.min.cjs +1 -1
  81. package/modules/chart-roc.min.js +1 -1
  82. package/modules/chart-slope.d.ts +1 -1
  83. package/modules/chart-slope.esm.min.js +1 -1
  84. package/modules/chart-slope.min.cjs +1 -1
  85. package/modules/chart-slope.min.js +1 -1
  86. package/modules/chart-splom.d.ts +1 -1
  87. package/modules/chart-splom.esm.min.js +1 -1
  88. package/modules/chart-splom.min.cjs +1 -1
  89. package/modules/chart-splom.min.js +1 -1
  90. package/modules/chart-waffle.d.ts +1 -1
  91. package/modules/chart-waffle.esm.min.js +1 -1
  92. package/modules/chart-waffle.min.cjs +1 -1
  93. package/modules/chart-waffle.min.js +1 -1
  94. package/modules/charts.d.ts +1 -1
  95. package/modules/charts.esm.min.js +3 -3
  96. package/modules/charts.min.cjs +3 -3
  97. package/modules/charts.min.js +3 -3
  98. package/modules/data-router.d.ts +1 -1
  99. package/modules/data-router.esm.min.js +3 -3
  100. package/modules/data-router.min.cjs +3 -3
  101. package/modules/data-router.min.js +3 -3
  102. package/modules/devtools.d.ts +1 -1
  103. package/modules/devtools.esm.min.js +1 -1
  104. package/modules/devtools.min.cjs +1 -1
  105. package/modules/devtools.min.js +1 -1
  106. package/modules/dhtmlx-compat.d.ts +1 -1
  107. package/modules/dhtmlx-compat.esm.min.js +3 -3
  108. package/modules/dhtmlx-compat.min.cjs +3 -3
  109. package/modules/dhtmlx-compat.min.js +3 -3
  110. package/modules/gantt.d.ts +1 -1
  111. package/modules/gantt.esm.min.js +10 -7
  112. package/modules/gantt.min.cjs +10 -7
  113. package/modules/gantt.min.js +10 -7
  114. package/modules/geo-europe-nuts.d.ts +1 -1
  115. package/modules/geo-europe-nuts.esm.min.js +1 -1
  116. package/modules/geo-uk.d.ts +1 -1
  117. package/modules/geo-uk.esm.min.js +1 -1
  118. package/modules/geo-us-states.d.ts +1 -1
  119. package/modules/geo-us-states.esm.min.js +1 -1
  120. package/modules/geo-world-110m.d.ts +1 -1
  121. package/modules/geo-world-110m.esm.min.js +1 -1
  122. package/modules/geo-world-50m.d.ts +1 -1
  123. package/modules/geo-world-50m.esm.min.js +1 -1
  124. package/modules/htmx.d.ts +1 -1
  125. package/modules/htmx.esm.min.js +69 -18
  126. package/modules/htmx.min.cjs +69 -18
  127. package/modules/htmx.min.js +69 -18
  128. package/modules/kanban.d.ts +1 -1
  129. package/modules/kanban.esm.min.js +3 -3
  130. package/modules/kanban.min.cjs +3 -3
  131. package/modules/kanban.min.js +3 -3
  132. package/modules/kpi.d.ts +1 -1
  133. package/modules/kpi.esm.min.js +3 -3
  134. package/modules/kpi.min.cjs +3 -3
  135. package/modules/kpi.min.js +3 -3
  136. package/modules/layout.d.ts +1 -1
  137. package/modules/layout.esm.min.js +3 -3
  138. package/modules/layout.min.cjs +3 -3
  139. package/modules/layout.min.js +3 -3
  140. package/modules/mock-socket.d.ts +1 -1
  141. package/modules/mock-socket.esm.min.js +1 -1
  142. package/modules/mock-socket.min.cjs +1 -1
  143. package/modules/mock-socket.min.js +1 -1
  144. package/modules/react.d.ts +1 -1
  145. package/modules/react.esm.min.js +3 -3
  146. package/modules/react.min.cjs +3 -3
  147. package/modules/react.min.js +3 -3
  148. package/modules/svelte.d.ts +1 -1
  149. package/modules/svelte.esm.min.js +3 -3
  150. package/modules/svelte.min.cjs +3 -3
  151. package/modules/svelte.min.js +3 -3
  152. package/modules/tabs.d.ts +1 -1
  153. package/modules/tabs.esm.min.js +3 -3
  154. package/modules/tabs.min.cjs +3 -3
  155. package/modules/tabs.min.js +3 -3
  156. package/modules/vue.d.ts +1 -1
  157. package/modules/vue.esm.min.js +3 -3
  158. package/modules/vue.min.cjs +3 -3
  159. package/modules/vue.min.js +3 -3
  160. package/modules/webcomponent.d.ts +1 -1
  161. package/modules/webcomponent.esm.min.js +69 -18
  162. package/modules/webcomponent.min.cjs +69 -18
  163. package/modules/webcomponent.min.js +69 -18
  164. package/package.json +1 -1
package/README.md CHANGED
@@ -5,7 +5,7 @@ dependencies, no build step required. Optional adapters for React, Vue, Svelte
5
5
  and Web Components ship alongside it, and Angular has compiled components of its
6
6
  own at `@toclocoinc/lattice-grid/angular` — inside this package, not beside it.
7
7
 
8
- Version 1.68.2 · [latticegrid.dev](https://www.latticegrid.dev) · TOCLOCO Inc
8
+ Version 1.69.0 · [latticegrid.dev](https://www.latticegrid.dev) · TOCLOCO Inc
9
9
 
10
10
  ---
11
11
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.68.2",
2
+ "version": "1.69.0",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
5
  "module": "./fesm2022/toclocoinc-lattice-grid-angular.mjs",
package/docs/API.html CHANGED
@@ -363,7 +363,7 @@
363
363
  <div class="shell">
364
364
  <aside class="rail">
365
365
  <p class="rail__brand">Lattice Grid</p>
366
- <p class="rail__sub">API reference · v1.68.2</p>
366
+ <p class="rail__sub">API reference · v1.69.0</p>
367
367
  <nav>
368
368
  <div class="rail__group">
369
369
  <span class="rail__label">Start</span>
@@ -529,7 +529,7 @@
529
529
  </header>
530
530
 
531
531
  <p class="chips">
532
- <span class="chip">Version 1.68.2</span>
532
+ <span class="chip">Version 1.69.0</span>
533
533
  <span class="chip">Zero dependencies</span>
534
534
  <span class="chip"><a href="api-detail.html">Developer guide &rarr;</a></span>
535
535
  </p>
@@ -2033,7 +2033,7 @@ grid.destroy();
2033
2033
  <table>
2034
2034
  <thead><tr><th>Member</th><th>Returns</th><th>Description</th></tr></thead>
2035
2035
  <tbody>
2036
- <tr><td class="sig">getVersion()</td><td class="type">string</td><td class="desc">The version this grid came from, e.g. <code>'1.68.2'</code>. Also on the module as <code>getVersion()</code>, for when you have no grid to hand.</td></tr>
2036
+ <tr><td class="sig">getVersion()</td><td class="type">string</td><td class="desc">The version this grid came from, e.g. <code>'1.69.0'</code>. Also on the module as <code>getVersion()</code>, for when you have no grid to hand.</td></tr>
2037
2037
  <tr><td class="sig">get(key)</td><td class="type">unknown</td><td class="desc">Read any configuration key.</td></tr>
2038
2038
  <tr><td class="sig">set(key, value)</td><td class="type">void</td><td class="desc">Write one key. Every key is live; nothing needs a rebuild.</td></tr>
2039
2039
  <tr><td class="sig">setAll(values)</td><td class="type">void</td><td class="desc">Write several in one pass. Emits one <code>config:changed</code> for the batch, not one per key.</td></tr>
@@ -10519,6 +10519,7 @@ return `next ${p.mean.toFixed(1)}; r2 ${f.r2.toFixed(1)}; band ${p.upper - p.low
10519
10519
  <tr><td class="name">edit</td><td class="type">EditConfig | boolean</td><td class="desc">Editing, and how a change is committed and validated. <small>(optional)</small></td></tr>
10520
10520
  <tr><td class="name">pagination</td><td class="type">PaginationConfig | boolean</td><td class="desc">Page the rows rather than scrolling them. <small>(optional)</small></td></tr>
10521
10521
  <tr><td class="name">locale</td><td class="type">string</td><td class="desc">The BCP-47 locale everything the grid formats and collates uses — numbers, dates, text ordering, and the message catalogue. Falls back to the page's own `&lt;html lang&gt;` and then to `en-GB`. <small>(optional)</small></td></tr>
10522
+ <tr><td class="name">messages</td><td class="type">Record&lt;string, string | Record&lt;string, string&gt;&gt;</td><td class="desc">A partial message catalogue laid over the one `locale` resolves — every string the grid renders or announces. Supply a bundled catalogue (`FR_FR`, `AR`, …) or your own object; overrides merge over the default rather than replacing it, so translating part of the interface leaves the remainder in English rather than showing raw keys. Every valid key is listed in `MESSAGE_KEYS`; a key that is not is ignored with a warning. <small>(optional)</small></td></tr>
10522
10523
  <tr><td class="name">direction</td><td class="type">'ltr' | 'rtl' | 'auto'</td><td class="desc">Writing direction. An explicit `'ltr'` or `'rtl'` always wins. Omit it, or say `'auto'`, to settle it from the mount or the nearest ancestor carrying a `dir="ltr"`/`dir="rtl"` attribute, and only then from `locale`: `ar`, `he`, `fa` and the rest resolve to `rtl`. A page-level `dir="ltr"` therefore wins over an RTL locale — a host that wants RTL inside an LTR page sets `direction: 'rtl'` explicitly. In a right-to-left grid the logical alignments `start`/`end` mirror while the physical `left`/`right` do not (see {@link Align}). <small>(optional)</small></td></tr>
10523
10524
  <tr><td class="name">timeZone</td><td class="type">string</td><td class="desc">IANA zone every date column formats in, e.g. 'Europe/London' or 'UTC'. Omit to use each viewer's own zone. A column's own `format.timeZone` wins. <small>(optional)</small></td></tr>
10524
10525
  <tr><td class="name">theme</td><td class="type">Theme</td><td class="desc">The visual theme. <small>(optional)</small></td></tr>
@@ -19002,7 +19003,7 @@ return `next ${p.mean.toFixed(1)}; r2 ${f.r2.toFixed(1)}; band ${p.upper - p.low
19002
19003
  <!-- END GENERATED TYPE REFERENCE -->
19003
19004
 
19004
19005
  <footer>
19005
- Lattice Grid 1.68.2 · Copyright © 2026 TOCLOCO Inc. All rights reserved.
19006
+ Lattice Grid 1.69.0 · Copyright © 2026 TOCLOCO Inc. All rights reserved.
19006
19007
  This document describes the behaviour of the shipped library. Where this guide and the code
19007
19008
  disagree, the code wins: please <a href="https://www.latticegrid.dev">tell us</a>.
19008
19009
  </footer>
@@ -437,7 +437,7 @@
437
437
  <div class="shell">
438
438
  <aside class="rail">
439
439
  <p class="rail__brand">Lattice Grid</p>
440
- <p class="rail__sub">Developer guide · v1.68.2</p>
440
+ <p class="rail__sub">Developer guide · v1.69.0</p>
441
441
  <nav>
442
442
  <div class="rail__group">
443
443
  <span class="rail__label">Start here</span>
@@ -554,7 +554,7 @@
554
554
  <a href="API.html">reference tables</a> are the shorter version for when you already know.
555
555
  </p>
556
556
  <p class="chips">
557
- <span class="chip">Version 1.68.2</span>
557
+ <span class="chip">Version 1.69.0</span>
558
558
  <span class="chip">Zero dependencies</span>
559
559
  <span class="chip">No build step</span>
560
560
  </p>
@@ -588,6 +588,7 @@ createGrid(element, { locale: 'fr-FR', messages: FR_FR });</code></pre>
588
588
 
589
589
  <h3>Keys seeded in English, awaiting translation</h3>
590
590
  <p>A key added after a catalogue was written ships in British English only until a translator supplies it; <code>Messages</code> merges every catalogue over the default, so the grid says it in English rather than showing the key. The shipped catalogues do not carry an English copy under the guise of a translation, and the build's completeness test lists exactly which keys are in this state. As of 1.55 the most recent additions are the strings that had shipped as template literals, untranslated in every locale (BACKLOG-0001106): the presence live region and roster note, <code>a11y.presence.refused</code>, <code>presence.someoneElse</code> and <code>presence.hidden</code>; the comment panel's changed-since note, <code>comments.valueMoved</code>; the facet band's accessible name, <code>facets.filter</code>; the heading tooltip that names a reduction, <code>header.totalOf</code>; the audit-mode tooltip, <code>diff.before</code> and <code>diff.empty</code>; the kanban list names, <code>kanban.columnCards</code> and <code>kanban.laneCards</code>, both plural objects selected by <code>count</code>; and the gantt lag label, <code>gantt.lag</code> and <code>gantt.lead</code>. Supply any of them in <code>messages</code> to translate it today.</p>
591
+ <p>The rest of that text followed in 1.69 (BACKLOG-0001172): the gantt's pointer tooltip, <code>gantt.tip.range</code>, <code>gantt.tip.duration</code> and <code>gantt.tip.slack</code> — plain strings rather than plural objects, because the day unit is an abbreviation that does not inflect; the comment panel's own labels, <code>comments.resolve</code>, <code>comments.reopen</code>, <code>comments.loading</code>, <code>comments.empty</code>, <code>comments.unknownAuthor</code>, <code>comments.edited</code> (which takes the already-rendered time as <code>{time}</code>, so the marker need not come last) and <code>comments.cellTitle</code>; the accessible name of each entry in the presence roster, <code>presence.peer</code>, <code>presence.peerIdle</code> and <code>presence.peerHidden</code>; and the reduction named in a column heading, which now reads the same <code>total.*</code> keys the tool panel does, with <code>total.custom</code> for a reduction supplied as a function and <code>total.passRate</code> and <code>total.failureCount</code> for the two capability reductions that had no key at all.</p>
591
592
  <p>The kanban board and the gantt view are modules and do not import the catalogue. A board bound to a grid, or a plan created with one, borrows that grid's <code>messages</code>; otherwise pass <code>messages</code> — a grid's own, or any object with <code>t(key, params)</code> — to <code>createKanban</code> or to <code>gantt.mount</code>. With neither they render the English.</p>
592
593
 
593
594
  <div class="why">
@@ -1492,7 +1493,7 @@ off(); <span class="cmt">// every subscrip
1492
1493
  </p>
1493
1494
  <div class="example">
1494
1495
  <p class="example__label">Which version am I running?</p>
1495
- <pre><code>grid.getVersion(); <span class="cmt">// '1.68.2'</span>
1496
+ <pre><code>grid.getVersion(); <span class="cmt">// '1.69.0'</span>
1496
1497
  LatticeGrid.getVersion(); <span class="cmt">// the same, when you have no grid to hand</span></code></pre>
1497
1498
  </div>
1498
1499
  <p class="lead-in">
@@ -9783,7 +9784,7 @@ grid.licence.state(); <span class="cmt">// 'licensed' | 'localhost' | 'trial'<
9783
9784
 
9784
9785
  <footer>
9785
9786
  <p>
9786
- Lattice Grid 1.68.2 · Copyright © 2026 TOCLOCO Inc. All rights reserved.
9787
+ Lattice Grid 1.69.0 · Copyright © 2026 TOCLOCO Inc. All rights reserved.
9787
9788
  Written against the shipped source. Where this guide and the code disagree, the code wins,
9788
9789
  please <a href="https://www.latticegrid.dev">tell us</a>.
9789
9790
  </p>
package/lattice-grid.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Lattice Grid 1.68.2, type declarations
2
+ * Lattice Grid 1.69.0, type declarations
3
3
  * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
4
  * https://latticegrid.dev
5
5
  */
@@ -3410,6 +3410,15 @@ export interface GridConfig {
3410
3410
  * own `<html lang>` and then to `en-GB`.
3411
3411
  */
3412
3412
  locale?: string;
3413
+ /**
3414
+ * A partial message catalogue laid over the one `locale` resolves — every
3415
+ * string the grid renders or announces. Supply a bundled catalogue (`FR_FR`,
3416
+ * `AR`, …) or your own object; overrides merge over the default rather than
3417
+ * replacing it, so translating part of the interface leaves the remainder in
3418
+ * English rather than showing raw keys. Every valid key is listed in
3419
+ * `MESSAGE_KEYS`; a key that is not is ignored with a warning.
3420
+ */
3421
+ messages?: Record<string, string | Record<string, string>>;
3413
3422
  /**
3414
3423
  * Writing direction. An explicit `'ltr'` or `'rtl'` always wins. Omit it, or
3415
3424
  * say `'auto'`, to settle it from the mount or the nearest ancestor