@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.
- package/README.md +4 -2
- package/docs/API.html +408 -25
- package/docs/CHART-CODES.md +24 -0
- package/docs/api-detail.html +115 -5
- package/lattice-grid.d.ts +333 -205
- package/lattice-grid.esm.min.js +155 -96
- package/lattice-grid.min.cjs +155 -96
- package/lattice-grid.min.js +155 -96
- package/modules/ai.d.ts +10 -13
- package/modules/ai.esm.min.js +3 -6
- package/modules/ai.min.cjs +3 -6
- package/modules/ai.min.js +3 -6
- package/modules/angular.d.ts +2 -2
- package/modules/angular.esm.min.js +433 -10
- package/modules/angular.min.cjs +433 -10
- package/modules/angular.min.js +433 -10
- package/modules/chart-alluvial.d.ts +2 -2
- package/modules/chart-alluvial.esm.min.js +1 -1
- package/modules/chart-alluvial.min.cjs +1 -1
- package/modules/chart-alluvial.min.js +1 -1
- package/modules/chart-arc.d.ts +2 -2
- package/modules/chart-arc.esm.min.js +1 -1
- package/modules/chart-arc.min.cjs +1 -1
- package/modules/chart-arc.min.js +1 -1
- package/modules/chart-bubblemap.d.ts +2 -2
- package/modules/chart-bubblemap.esm.min.js +1 -1
- package/modules/chart-bubblemap.min.cjs +1 -1
- package/modules/chart-bubblemap.min.js +1 -1
- package/modules/chart-bump.d.ts +2 -2
- package/modules/chart-bump.esm.min.js +1 -1
- package/modules/chart-bump.min.cjs +1 -1
- package/modules/chart-bump.min.js +1 -1
- package/modules/chart-calendar.d.ts +2 -2
- package/modules/chart-calendar.esm.min.js +1 -1
- package/modules/chart-calendar.min.cjs +1 -1
- package/modules/chart-calendar.min.js +1 -1
- package/modules/chart-decomposition.d.ts +2 -2
- package/modules/chart-decomposition.esm.min.js +1 -1
- package/modules/chart-decomposition.min.cjs +1 -1
- package/modules/chart-decomposition.min.js +1 -1
- package/modules/chart-diverging.d.ts +2 -2
- package/modules/chart-diverging.esm.min.js +1 -1
- package/modules/chart-diverging.min.cjs +1 -1
- package/modules/chart-diverging.min.js +1 -1
- package/modules/chart-dumbbell.d.ts +2 -2
- package/modules/chart-dumbbell.esm.min.js +1 -1
- package/modules/chart-dumbbell.min.cjs +1 -1
- package/modules/chart-dumbbell.min.js +1 -1
- package/modules/chart-fan.d.ts +2 -2
- package/modules/chart-fan.esm.min.js +1 -1
- package/modules/chart-fan.min.cjs +1 -1
- package/modules/chart-fan.min.js +1 -1
- package/modules/chart-hexbin.d.ts +2 -2
- package/modules/chart-hexbin.esm.min.js +1 -1
- package/modules/chart-hexbin.min.cjs +1 -1
- package/modules/chart-hexbin.min.js +1 -1
- package/modules/chart-hexmap.d.ts +2 -2
- package/modules/chart-hexmap.esm.min.js +1 -1
- package/modules/chart-hexmap.min.cjs +1 -1
- package/modules/chart-hexmap.min.js +1 -1
- package/modules/chart-icicle.d.ts +2 -2
- package/modules/chart-icicle.esm.min.js +1 -1
- package/modules/chart-icicle.min.cjs +1 -1
- package/modules/chart-icicle.min.js +1 -1
- package/modules/chart-markermap.d.ts +29 -0
- package/modules/chart-markermap.esm.min.js +313 -0
- package/modules/chart-markermap.min.cjs +317 -0
- package/modules/chart-markermap.min.js +317 -0
- package/modules/chart-parallel.d.ts +2 -2
- package/modules/chart-parallel.esm.min.js +1 -1
- package/modules/chart-parallel.min.cjs +1 -1
- package/modules/chart-parallel.min.js +1 -1
- package/modules/chart-ridgeline.d.ts +2 -2
- package/modules/chart-ridgeline.esm.min.js +1 -1
- package/modules/chart-ridgeline.min.cjs +1 -1
- package/modules/chart-ridgeline.min.js +1 -1
- package/modules/chart-roc.d.ts +2 -2
- package/modules/chart-roc.esm.min.js +1 -1
- package/modules/chart-roc.min.cjs +1 -1
- package/modules/chart-roc.min.js +1 -1
- package/modules/chart-slope.d.ts +2 -2
- package/modules/chart-slope.esm.min.js +1 -1
- package/modules/chart-slope.min.cjs +1 -1
- package/modules/chart-slope.min.js +1 -1
- package/modules/chart-splom.d.ts +2 -2
- package/modules/chart-splom.esm.min.js +1 -1
- package/modules/chart-splom.min.cjs +1 -1
- package/modules/chart-splom.min.js +1 -1
- package/modules/chart-waffle.d.ts +2 -2
- package/modules/chart-waffle.esm.min.js +1 -1
- package/modules/chart-waffle.min.cjs +1 -1
- package/modules/chart-waffle.min.js +1 -1
- package/modules/charts.d.ts +4 -5
- package/modules/charts.esm.min.js +395 -33
- package/modules/charts.min.cjs +395 -33
- package/modules/charts.min.js +395 -33
- package/modules/data-router.d.ts +5 -6
- package/modules/data-router.esm.min.js +3 -6
- package/modules/data-router.min.cjs +3 -6
- package/modules/data-router.min.js +3 -6
- package/modules/devtools.d.ts +1 -1
- package/modules/devtools.esm.min.js +1 -4
- package/modules/devtools.min.cjs +1 -4
- package/modules/devtools.min.js +1 -4
- package/modules/dhtmlx-compat.d.ts +1 -1
- package/modules/dhtmlx-compat.esm.min.js +3 -6
- package/modules/dhtmlx-compat.min.cjs +3 -6
- package/modules/dhtmlx-compat.min.js +3 -6
- package/modules/gantt.d.ts +37 -43
- package/modules/gantt.esm.min.js +3 -6
- package/modules/gantt.min.cjs +3 -6
- package/modules/gantt.min.js +3 -6
- package/modules/geo-europe-nuts.d.ts +2 -2
- package/modules/geo-europe-nuts.esm.min.js +1 -1
- package/modules/geo-uk.d.ts +2 -2
- package/modules/geo-uk.esm.min.js +1 -1
- package/modules/geo-us-states.d.ts +2 -2
- package/modules/geo-us-states.esm.min.js +1 -1
- package/modules/geo-world-110m.d.ts +2 -2
- package/modules/geo-world-110m.esm.min.js +1 -1
- package/modules/geo-world-50m.d.ts +2 -2
- package/modules/geo-world-50m.esm.min.js +1 -1
- package/modules/htmx.d.ts +2 -2
- package/modules/htmx.esm.min.js +155 -96
- package/modules/htmx.min.cjs +155 -96
- package/modules/htmx.min.js +155 -96
- package/modules/kanban.d.ts +14 -14
- package/modules/kanban.esm.min.js +3 -6
- package/modules/kanban.min.cjs +3 -6
- package/modules/kanban.min.js +3 -6
- package/modules/kpi.d.ts +57 -4
- package/modules/kpi.esm.min.js +202 -10
- package/modules/kpi.min.cjs +202 -10
- package/modules/kpi.min.js +202 -10
- package/modules/layout.d.ts +2 -2
- package/modules/layout.esm.min.js +3 -6
- package/modules/layout.min.cjs +3 -6
- package/modules/layout.min.js +3 -6
- package/modules/mock-socket.d.ts +1 -1
- package/modules/mock-socket.esm.min.js +1 -4
- package/modules/mock-socket.min.cjs +1 -4
- package/modules/mock-socket.min.js +1 -4
- package/modules/react.d.ts +4 -5
- package/modules/react.esm.min.js +3 -6
- package/modules/react.min.cjs +3 -6
- package/modules/react.min.js +3 -6
- package/modules/svelte.d.ts +2 -3
- package/modules/svelte.esm.min.js +1 -4
- package/modules/svelte.min.cjs +1 -4
- package/modules/svelte.min.js +1 -4
- package/modules/tabs.d.ts +2 -3
- package/modules/tabs.esm.min.js +3 -6
- package/modules/tabs.min.cjs +3 -6
- package/modules/tabs.min.js +3 -6
- package/modules/vue.d.ts +1 -1
- package/modules/vue.esm.min.js +1 -4
- package/modules/vue.min.cjs +1 -4
- package/modules/vue.min.js +1 -4
- package/modules/webcomponent.d.ts +2 -2
- package/modules/webcomponent.esm.min.js +155 -96
- package/modules/webcomponent.min.cjs +155 -96
- package/modules/webcomponent.min.js +155 -96
- package/package.json +1 -1
package/modules/ai.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Lattice Grid 1.
|
|
2
|
+
* Lattice Grid 1.65.0, ai module type declarations
|
|
3
3
|
* Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
|
|
4
4
|
* https://latticegrid.dev
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* The provider-agnostic model callback the host supplies
|
|
7
|
+
* The provider-agnostic model callback the host supplies.
|
|
8
8
|
* The module never imports a provider SDK, reads a key, or makes a network
|
|
9
9
|
* call — it builds this payload and awaits the host's reply. A host may wrap a
|
|
10
10
|
* chat provider (`{ text }`), a completion (a bare string), a tool-calling turn
|
|
@@ -46,8 +46,7 @@ interface AIFact {
|
|
|
46
46
|
* A narrative target. `view` narrates the current filtered view; `column`
|
|
47
47
|
* narrates one column's profile; `forecast` adds its projection; `kpi`/`chart`
|
|
48
48
|
* narrate figures the caller passes through in `facts`; `risk` assembles a
|
|
49
|
-
* project RISK SUMMARY from the separate Gantt / Kanban modules' public outputs
|
|
50
|
-
* (BACKLOG-0000979).
|
|
49
|
+
* project RISK SUMMARY from the separate Gantt / Kanban modules' public outputs.
|
|
51
50
|
*/
|
|
52
51
|
interface AITarget {
|
|
53
52
|
kind?: 'view' | 'column' | 'forecast' | 'kpi' | 'chart' | 'risk';
|
|
@@ -109,7 +108,7 @@ interface AIFactsPacket {
|
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
/**
|
|
112
|
-
* The risk facts a board / Gantt risk summary grounds on
|
|
111
|
+
* The risk facts a board / Gantt risk summary grounds on,
|
|
113
112
|
* from {@link buildRiskFacts}: the facts plus which module sources resolved and
|
|
114
113
|
* which opt-in exposures (task names, cost) were honoured.
|
|
115
114
|
*/
|
|
@@ -172,8 +171,7 @@ interface AIConfig {
|
|
|
172
171
|
onProposal?: (result: AIProposal) => void;
|
|
173
172
|
/**
|
|
174
173
|
* A Kanban board (from `createKanban`) the governed actor writes moves
|
|
175
|
-
* through: an NL card move applies via the board's own `beforeMove` gate
|
|
176
|
-
* (BACKLOG-0000967), never a kanban-specific write bypass.
|
|
174
|
+
* through: an NL card move applies via the board's own `beforeMove` gate, never a kanban-specific write bypass.
|
|
177
175
|
*/
|
|
178
176
|
board?: unknown;
|
|
179
177
|
/** Cap on rows any tool result carries to `ask()`. */
|
|
@@ -210,7 +208,7 @@ interface AIApplyReport {
|
|
|
210
208
|
}
|
|
211
209
|
|
|
212
210
|
/**
|
|
213
|
-
* The result of an ask-your-data question
|
|
211
|
+
* The result of an ask-your-data question: a validated,
|
|
214
212
|
* READ-ONLY query spec — never rows — that the host reviews before applying.
|
|
215
213
|
*/
|
|
216
214
|
interface AIQueryResult {
|
|
@@ -238,7 +236,7 @@ interface AIQueryResult {
|
|
|
238
236
|
apply(opts?: { router?: unknown; onResult?: (rows: object[]) => void }): AIApplyReport;
|
|
239
237
|
}
|
|
240
238
|
|
|
241
|
-
/** One before/after change in a governed-actor proposal
|
|
239
|
+
/** One before/after change in a governed-actor proposal. */
|
|
242
240
|
interface AIDiffEntry {
|
|
243
241
|
/** The target row key. */
|
|
244
242
|
key: string;
|
|
@@ -259,7 +257,7 @@ interface AIDiffEntry {
|
|
|
259
257
|
}
|
|
260
258
|
|
|
261
259
|
/**
|
|
262
|
-
* A governed-actor proposal (Play C
|
|
260
|
+
* A governed-actor proposal (Play C): the model's structured
|
|
263
261
|
* edits, VALIDATED and resolved against the current view — never written until
|
|
264
262
|
* a human approves. `apply()` writes ONLY through the grid's own gate.
|
|
265
263
|
*/
|
|
@@ -325,8 +323,7 @@ interface AI {
|
|
|
325
323
|
/** An alias for {@link AI.explain}. */
|
|
326
324
|
narrate(target?: AITarget, opts?: object): Promise<AINarrative>;
|
|
327
325
|
/**
|
|
328
|
-
* Produce a grounded, reconciled board / Gantt RISK SUMMARY
|
|
329
|
-
* (BACKLOG-0000979): a plain-language reading like "3 tasks at risk on the
|
|
326
|
+
* Produce a grounded, reconciled board / Gantt RISK SUMMARY: a plain-language reading like "3 tasks at risk on the
|
|
330
327
|
* critical path, SPI 0.67, 2 SLA breaches". A convenience over
|
|
331
328
|
* `explain({ kind: 'risk', ... })`; the module sources go in `sources`
|
|
332
329
|
* (`gantt`, `board`/`sla`, or precomputed outputs). Every figure runs through
|
|
@@ -395,7 +392,7 @@ interface AI {
|
|
|
395
392
|
export function createAI(grid: unknown, config?: AIConfig): AI;
|
|
396
393
|
|
|
397
394
|
/**
|
|
398
|
-
* Build the RISK-SUMMARY facts packet
|
|
395
|
+
* Build the RISK-SUMMARY facts packet from the separate
|
|
399
396
|
* Gantt / Kanban modules' public outputs — SPI/CPI and variances from
|
|
400
397
|
* `gantt.earnedValue()`, tasks at risk / on the critical path from
|
|
401
398
|
* `gantt.schedule`, and SLA breaches from `board.sla`. Reads the module
|