@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/kanban.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Lattice Grid 1.
|
|
2
|
+
* Lattice Grid 1.65.0, kanban module type declarations
|
|
3
3
|
* Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
|
|
4
4
|
* https://latticegrid.dev
|
|
5
5
|
*/
|
|
@@ -47,7 +47,7 @@ type KanbanColumnDef = string | {
|
|
|
47
47
|
wipLimit?: number;
|
|
48
48
|
collapsed?: boolean;
|
|
49
49
|
/**
|
|
50
|
-
* A per-column SLA override
|
|
50
|
+
* A per-column SLA override: a lone threshold read as the
|
|
51
51
|
* breach level, or a `{ warn, breach }` pair. Overrides the global `sla`
|
|
52
52
|
* thresholds for cards in this column (precedence: lane → column → global).
|
|
53
53
|
*/
|
|
@@ -102,7 +102,7 @@ interface KanbanEvent {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* A card-aging / SLA threshold
|
|
105
|
+
* A card-aging / SLA threshold: a raw millisecond count, or
|
|
106
106
|
* a `{ weeks, days, hours, minutes, seconds, ms }` spec whose fields are summed
|
|
107
107
|
* (`{ days: 3, hours: 12 }` → 3.5 days). A negative or non-finite value means
|
|
108
108
|
* "no threshold at this level".
|
|
@@ -117,7 +117,7 @@ type KanbanSlaThreshold = number | {
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Card-aging / SLA configuration
|
|
120
|
+
* Card-aging / SLA configuration. A card is measured against a
|
|
121
121
|
* `warn` and a `breach` threshold; the view puts an age chip on aged cards and a
|
|
122
122
|
* highlight on breached ones, and a rising crossing fires the `card:sla` event
|
|
123
123
|
* and the matching `onWarn`/`onBreach` callback (signature `(level, rows)`, the
|
|
@@ -159,7 +159,7 @@ interface KanbanSlaConfig {
|
|
|
159
159
|
onBreach?: (level: 'warn' | 'breach', rows: KanbanRow[]) => void;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
/** The computed SLA state of one card
|
|
162
|
+
/** The computed SLA state of one card. */
|
|
163
163
|
interface KanbanSlaState {
|
|
164
164
|
key: unknown;
|
|
165
165
|
columnId: string | null;
|
|
@@ -181,7 +181,7 @@ interface KanbanSlaState {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
* The card-aging / SLA monitor
|
|
184
|
+
* The card-aging / SLA monitor, reached as {@link Kanban#sla}
|
|
185
185
|
* when a `sla` config is supplied. Pure and DOM-free: it computes each card's
|
|
186
186
|
* ageing state from the board's card model and the flow transition log, and the
|
|
187
187
|
* view paints it.
|
|
@@ -248,7 +248,7 @@ interface KanbanConfig {
|
|
|
248
248
|
/** Card virtualization for tall columns: true, or `{ rowHeight, overscan, threshold, viewport }`. */
|
|
249
249
|
virtualize?: boolean | { rowHeight?: number; overscan?: number; threshold?: number; viewport?: number };
|
|
250
250
|
/**
|
|
251
|
-
* Card aging / SLA highlighting
|
|
251
|
+
* Card aging / SLA highlighting: warn/breach thresholds
|
|
252
252
|
* (globally, per column and/or per lane) that age each card and fire
|
|
253
253
|
* `card:sla` on a rising crossing. Opt-in; reached at runtime as
|
|
254
254
|
* {@link Kanban#sla}. See {@link KanbanSlaConfig}.
|
|
@@ -263,7 +263,7 @@ interface KanbanConfig {
|
|
|
263
263
|
/**
|
|
264
264
|
* Create a card for a column on add-card; return the row to create (with
|
|
265
265
|
* its key), a Promise of that row, or nothing to auto-generate. A rejected
|
|
266
|
-
* Promise creates no card and leaves the board unchanged
|
|
266
|
+
* Promise creates no card and leaves the board unchanged.
|
|
267
267
|
*/
|
|
268
268
|
onAddCard?: (columnId: string) => KanbanRow | Promise<KanbanRow> | void;
|
|
269
269
|
/** A predicate filter over cards; only matching cards are shown. */
|
|
@@ -349,8 +349,8 @@ interface KanbanRows {
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
* Named card predicates, composed with AND
|
|
353
|
-
* grid's `filters.where` convention
|
|
352
|
+
* Named card predicates, composed with AND, following the
|
|
353
|
+
* grid's `filters.where` convention. Several may be
|
|
354
354
|
* registered under different names at once; each can be replaced or removed
|
|
355
355
|
* without touching the others. `setFilter(fn)` is unchanged sugar for
|
|
356
356
|
* `where(DEFAULT, fn)` / `where(DEFAULT, null)`.
|
|
@@ -378,7 +378,7 @@ interface Kanban {
|
|
|
378
378
|
readonly el: unknown | null;
|
|
379
379
|
readonly rowKey: string | ((row: KanbanRow) => unknown);
|
|
380
380
|
rows: KanbanRows;
|
|
381
|
-
/** The card-aging / SLA monitor, present only when a `sla` config was supplied
|
|
381
|
+
/** The card-aging / SLA monitor, present only when a `sla` config was supplied. */
|
|
382
382
|
sla?: KanbanSla;
|
|
383
383
|
columns(): KanbanColumn[];
|
|
384
384
|
column(id: string): KanbanColumn | undefined;
|
|
@@ -416,7 +416,7 @@ interface Kanban {
|
|
|
416
416
|
reorderLanes(order: string[]): Kanban;
|
|
417
417
|
/** Move one swimlane before another (or to the end); emits `swimlane:reorder`. */
|
|
418
418
|
moveLane(id: string, beforeId: string | null): Kanban;
|
|
419
|
-
/** Named card predicates, composed with AND
|
|
419
|
+
/** Named card predicates, composed with AND. See {@link KanbanFilters}. */
|
|
420
420
|
filters: KanbanFilters;
|
|
421
421
|
/** Set a predicate filter over cards, or clear it with null. Sugar for `filters.where(filters.DEFAULT, fn)`. */
|
|
422
422
|
setFilter(fn: ((row: KanbanRow, card: KanbanCard) => boolean) | null): Kanban;
|
|
@@ -457,7 +457,7 @@ interface Kanban {
|
|
|
457
457
|
/**
|
|
458
458
|
* Add a card to a column and open it in inline edit; emits `card:add`.
|
|
459
459
|
* Returns the new key directly, or a Promise of it when `onAddCard`
|
|
460
|
-
* returns a Promise or a `beforeAdd` handler defers
|
|
460
|
+
* returns a Promise or a `beforeAdd` handler defers; a
|
|
461
461
|
* rejected `onAddCard` Promise resolves this to `null` with no card added.
|
|
462
462
|
*/
|
|
463
463
|
addCard(columnId: string, seed?: KanbanRow): unknown | Promise<unknown>;
|
|
@@ -471,7 +471,7 @@ interface Kanban {
|
|
|
471
471
|
setError(message: string | null): Kanban;
|
|
472
472
|
setRows(rows: KanbanRow[]): Kanban;
|
|
473
473
|
/**
|
|
474
|
-
* Replace the board's configured column set
|
|
474
|
+
* Replace the board's configured column set. Keeps card
|
|
475
475
|
* placement and interaction state (collapsed columns, column order, quick
|
|
476
476
|
* filter, selection) for every column id that survives; a dropped id is
|
|
477
477
|
* not specially handled — a card whose value has nowhere configured to go
|