@toclocoinc/lattice-grid 1.71.0 → 1.71.3
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/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/angular/package.json +1 -1
- package/docs/API.html +73 -15
- package/docs/api/adapters.html +1 -1
- package/docs/api/ai.html +1 -1
- package/docs/api/alarms.html +1 -1
- package/docs/api/charts.html +70 -12
- package/docs/api/data-router.html +1 -1
- package/docs/api/gantt.html +1 -1
- package/docs/api/grid.html +2 -2
- package/docs/api/index.html +2 -2
- package/docs/api/kanban.html +1 -1
- package/docs/api/kpi.html +1 -1
- package/docs/api/layout.html +1 -1
- package/docs/api/mock-socket.html +1 -1
- package/docs/api/tabs.html +1 -1
- package/docs/api/types.html +1 -1
- package/docs/api-detail.html +4 -4
- package/docs/warnings.json +13 -2
- package/lattice-grid.d.ts +53 -7
- package/lattice-grid.esm.min.js +3 -3
- package/lattice-grid.min.cjs +3 -3
- package/lattice-grid.min.js +3 -3
- package/modules/ai.d.ts +1 -1
- package/modules/ai.esm.min.js +2 -2
- package/modules/ai.min.cjs +2 -2
- package/modules/ai.min.js +2 -2
- package/modules/alarms.d.ts +1 -1
- package/modules/alarms.esm.min.js +2 -2
- package/modules/alarms.min.cjs +2 -2
- package/modules/alarms.min.js +2 -2
- package/modules/angular.d.ts +1 -1
- package/modules/angular.esm.min.js +2 -2
- package/modules/angular.min.cjs +2 -2
- package/modules/angular.min.js +2 -2
- package/modules/chart-alluvial.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/modules/chart-markermap.esm.min.js +1 -1
- package/modules/chart-markermap.min.cjs +1 -1
- package/modules/chart-markermap.min.js +1 -1
- package/modules/chart-parallel.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/modules/charts.esm.min.js +141 -137
- package/modules/charts.esm.min.js.map +2 -2
- package/modules/charts.min.cjs +141 -137
- package/modules/charts.min.js +141 -137
- package/modules/charts.min.js.map +2 -2
- package/modules/data-router.d.ts +1 -1
- package/modules/data-router.esm.min.js +2 -2
- package/modules/data-router.min.cjs +2 -2
- package/modules/data-router.min.js +2 -2
- package/modules/devtools.d.ts +1 -1
- package/modules/devtools.esm.min.js +1 -1
- package/modules/devtools.min.cjs +1 -1
- package/modules/devtools.min.js +1 -1
- package/modules/dhtmlx-compat.d.ts +1 -1
- package/modules/dhtmlx-compat.esm.min.js +2 -2
- package/modules/dhtmlx-compat.min.cjs +2 -2
- package/modules/dhtmlx-compat.min.js +2 -2
- package/modules/gantt.d.ts +1 -1
- package/modules/gantt.esm.min.js +2 -2
- package/modules/gantt.min.cjs +2 -2
- package/modules/gantt.min.js +2 -2
- package/modules/geo-europe-nuts.d.ts +1 -1
- package/modules/geo-europe-nuts.esm.min.js +1 -1
- package/modules/geo-europe-nuts.min.cjs +8 -0
- package/modules/geo-europe-nuts.min.js +8 -0
- package/modules/geo-europe-nuts.min.js.map +6 -0
- package/modules/geo-uk.d.ts +1 -1
- package/modules/geo-uk.esm.min.js +1 -1
- package/modules/geo-uk.min.cjs +8 -0
- package/modules/geo-uk.min.js +8 -0
- package/modules/geo-uk.min.js.map +6 -0
- package/modules/geo-us-states.d.ts +1 -1
- package/modules/geo-us-states.esm.min.js +1 -1
- package/modules/geo-us-states.min.cjs +8 -0
- package/modules/geo-us-states.min.js +8 -0
- package/modules/geo-us-states.min.js.map +6 -0
- package/modules/geo-world-110m.d.ts +1 -1
- package/modules/geo-world-110m.esm.min.js +1 -1
- package/modules/geo-world-110m.min.cjs +8 -0
- package/modules/geo-world-110m.min.js +8 -0
- package/modules/geo-world-110m.min.js.map +6 -0
- package/modules/geo-world-50m.d.ts +1 -1
- package/modules/geo-world-50m.esm.min.js +1 -1
- package/modules/geo-world-50m.min.cjs +8 -0
- package/modules/geo-world-50m.min.js +8 -0
- package/modules/geo-world-50m.min.js.map +6 -0
- package/modules/htmx.d.ts +1 -1
- package/modules/htmx.esm.min.js +3 -3
- package/modules/htmx.min.cjs +3 -3
- package/modules/htmx.min.js +3 -3
- package/modules/kanban.d.ts +1 -1
- package/modules/kanban.esm.min.js +2 -2
- package/modules/kanban.min.cjs +2 -2
- package/modules/kanban.min.js +2 -2
- package/modules/kpi.d.ts +1 -1
- package/modules/kpi.esm.min.js +2 -2
- package/modules/kpi.min.cjs +2 -2
- package/modules/kpi.min.js +2 -2
- package/modules/layout.d.ts +1 -1
- package/modules/layout.esm.min.js +2 -2
- package/modules/layout.min.cjs +2 -2
- package/modules/layout.min.js +2 -2
- package/modules/mock-socket.d.ts +1 -1
- package/modules/mock-socket.esm.min.js +1 -1
- package/modules/mock-socket.min.cjs +1 -1
- package/modules/mock-socket.min.js +1 -1
- package/modules/react.d.ts +1 -1
- package/modules/react.esm.min.js +2 -2
- package/modules/react.min.cjs +2 -2
- package/modules/react.min.js +2 -2
- package/modules/svelte.d.ts +1 -1
- package/modules/svelte.esm.min.js +2 -2
- package/modules/svelte.min.cjs +2 -2
- package/modules/svelte.min.js +2 -2
- package/modules/tabs.d.ts +1 -1
- package/modules/tabs.esm.min.js +2 -2
- package/modules/tabs.min.cjs +2 -2
- package/modules/tabs.min.js +2 -2
- package/modules/vue.d.ts +1 -1
- package/modules/vue.esm.min.js +2 -2
- package/modules/vue.min.cjs +2 -2
- package/modules/vue.min.js +2 -2
- package/modules/webcomponent.d.ts +1 -1
- package/modules/webcomponent.esm.min.js +3 -3
- package/modules/webcomponent.min.cjs +3 -3
- package/modules/webcomponent.min.js +3 -3
- package/package.json +1 -1
package/docs/warnings.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.71.
|
|
2
|
+
"version": "1.71.3",
|
|
3
3
|
"generated": "tools/build.js from docs/warnings/catalogue.json",
|
|
4
4
|
"about": "Every developer-facing diagnostic Lattice Grid prints to the console, by the key it de-duplicates on. The key is the stable identifier: it is the `id` of every reported entry `grid.diagnostics.warnings()` hands back, what the devtools panel lists, and what to quote in a support conversation. A `*` in an id stands for a value filled in at runtime (a column id, a chart id, an event name), so `icon:*` is one entry covering every column the icon renderer refuses.",
|
|
5
5
|
"fields": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"snippet": "the smallest configuration that fixes it, where configuration is the answer",
|
|
15
15
|
"docs": "the section of the API reference that covers the feature"
|
|
16
16
|
},
|
|
17
|
-
"count":
|
|
17
|
+
"count": 475,
|
|
18
18
|
"warnings": [
|
|
19
19
|
{
|
|
20
20
|
"id": "ai:actorbar:no-el",
|
|
@@ -4975,6 +4975,17 @@
|
|
|
4975
4975
|
"fix": "Pass the router instance (`createRouter()`'s return, or the one an adapter exposes) and, optionally, the partition kind to publish under.",
|
|
4976
4976
|
"snippet": "alarms.publish(router, 'alarms');\nrouter.attach(alarmGrid, 'alarms');",
|
|
4977
4977
|
"docs": "api/alarms.html#ref-alarms-reference"
|
|
4978
|
+
},
|
|
4979
|
+
{
|
|
4980
|
+
"id": "chart:scheme:array-and-map",
|
|
4981
|
+
"module": "charts",
|
|
4982
|
+
"severity": "warn",
|
|
4983
|
+
"since": "1.71.2",
|
|
4984
|
+
"message": "chart \"scheme\" was given as a name map together with a \"palette\" array; the two do not combine. Colours came from the map and the array was ignored. Pass one or the other.",
|
|
4985
|
+
"meaning": "A `scheme` name map and an array `palette` are two different ways of choosing a chart's colours, and only one can be read. Given both, the map is treated as the caller's intent and the array is dropped, because a map names an explicit colour per category or series while an array only orders them — the more specific instruction wins.",
|
|
4986
|
+
"fix": "Pass either a `scheme` name map (`{ [name]: colour }`) or a `palette` array, not both.",
|
|
4987
|
+
"snippet": "createChart({ grid, container, type: 'donut', x: 'status', y: 'count', scheme: { Operational: 'green', Offline: 'red' } });",
|
|
4988
|
+
"docs": "api/charts.html#chartsmodule"
|
|
4978
4989
|
}
|
|
4979
4990
|
]
|
|
4980
4991
|
}
|
package/lattice-grid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Lattice Grid 1.71.
|
|
2
|
+
* Lattice Grid 1.71.3, type declarations
|
|
3
3
|
* Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
|
|
4
4
|
* https://latticegrid.dev
|
|
5
5
|
*/
|
|
@@ -11636,6 +11636,28 @@ declare global {
|
|
|
11636
11636
|
/** The alarms module's script-tag global. */
|
|
11637
11637
|
// eslint-disable-next-line no-var -- an ambient global is only a global as a var
|
|
11638
11638
|
var LatticeGridAlarms: typeof import('lattice-grid/modules/alarms');
|
|
11639
|
+
/**
|
|
11640
|
+
* The five geometry packs' script-tag globals. Each is
|
|
11641
|
+
* data-only and takes its own global rather than merging into
|
|
11642
|
+
* `LatticeGrid`: all five export the same two names (`pack`, `default`), so
|
|
11643
|
+
* a page loading more than one — say `geo-uk` beside `geo-europe-nuts` —
|
|
11644
|
+
* reaches `LatticeGridGeoUk.pack` and `LatticeGridGeoEuropeNuts.pack`
|
|
11645
|
+
* rather than the second overwriting the first on a shared object.
|
|
11646
|
+
*/
|
|
11647
|
+
// eslint-disable-next-line no-var -- an ambient global is only a global as a var
|
|
11648
|
+
var LatticeGridGeoWorld110m: typeof import('lattice-grid/modules/geo-world-110m');
|
|
11649
|
+
/** The 1:50m world geometry pack's script-tag global. */
|
|
11650
|
+
// eslint-disable-next-line no-var -- an ambient global is only a global as a var
|
|
11651
|
+
var LatticeGridGeoWorld50m: typeof import('lattice-grid/modules/geo-world-50m');
|
|
11652
|
+
/** The Europe NUTS geometry pack's script-tag global. */
|
|
11653
|
+
// eslint-disable-next-line no-var -- an ambient global is only a global as a var
|
|
11654
|
+
var LatticeGridGeoEuropeNuts: typeof import('lattice-grid/modules/geo-europe-nuts');
|
|
11655
|
+
/** The UK geometry pack's script-tag global. */
|
|
11656
|
+
// eslint-disable-next-line no-var -- an ambient global is only a global as a var
|
|
11657
|
+
var LatticeGridGeoUk: typeof import('lattice-grid/modules/geo-uk');
|
|
11658
|
+
/** The US states geometry pack's script-tag global. */
|
|
11659
|
+
// eslint-disable-next-line no-var -- an ambient global is only a global as a var
|
|
11660
|
+
var LatticeGridGeoUsStates: typeof import('lattice-grid/modules/geo-us-states');
|
|
11639
11661
|
}
|
|
11640
11662
|
|
|
11641
11663
|
/** The default British English catalogue. */
|
|
@@ -12078,16 +12100,40 @@ export interface ChartSpec {
|
|
|
12078
12100
|
/** A heading above the plot, drawn in the figure's caption alongside any `subtitle`. */
|
|
12079
12101
|
title?: string;
|
|
12080
12102
|
/**
|
|
12081
|
-
* A named scheme,
|
|
12082
|
-
*
|
|
12083
|
-
*
|
|
12103
|
+
* A named scheme, an array of colours, or a `{ [name]: colour }` map. The built-in names are {@link ChartSchemeName}
|
|
12104
|
+
* (`'default'`, `'bright'`, `'earth'`, `'mono'`); a name registered with
|
|
12105
|
+
* `registerScheme` is a plain string alongside them.
|
|
12106
|
+
*
|
|
12107
|
+
* The map is the form that survives a filter: a pie or donut keys it on the
|
|
12108
|
+
* category (`x`) value, a chart with a `series` column keys it on the
|
|
12109
|
+
* series value, and a single-series bar or column — no `series` — keys it
|
|
12110
|
+
* on the `x` category instead. A name absent from the map falls back to the
|
|
12111
|
+
* ordered scheme by its position among the *other unmapped* names, so
|
|
12112
|
+
* `{ Operational: 'green' }` keeps every other category exactly as it was
|
|
12113
|
+
* whichever ones a filter removes — an ordered array reassigns every colour
|
|
12114
|
+
* after the gap. A map and an array `palette` do not combine; given both,
|
|
12115
|
+
* the map wins and the array is ignored, once, with a warning.
|
|
12084
12116
|
*/
|
|
12085
|
-
scheme?: ChartSchemeName | string | string[]
|
|
12117
|
+
scheme?: ChartSchemeName | string | string[] | Record<string, string>;
|
|
12086
12118
|
/**
|
|
12087
12119
|
* Show the series legend. The object form places it, and `isolate` lets a click on a
|
|
12088
|
-
* legend entry show that series alone.
|
|
12120
|
+
* legend entry show that series alone. `values: true` appends each entry's own total —
|
|
12121
|
+
* a category's for pie and donut, a series' for a series legend — formatted by the
|
|
12122
|
+
* measure column, after the name and a thin space.
|
|
12123
|
+
*/
|
|
12124
|
+
legend?: boolean | {
|
|
12125
|
+
position?: 'top' | 'bottom' | 'left' | 'right'; isolate?: boolean; values?: boolean;
|
|
12126
|
+
};
|
|
12127
|
+
/**
|
|
12128
|
+
* The figure a donut draws in its own hole; ignored by
|
|
12129
|
+
* every other type, which has no hole to draw into. `value: 'total'` sums
|
|
12130
|
+
* the slices actually drawn — a legend click that hides a category moves
|
|
12131
|
+
* the figure with them — formatted by the measure column; a number is a
|
|
12132
|
+
* caller's own figure, formatted the same way; a string is written through
|
|
12133
|
+
* unchanged. `label` is a second line beneath it. Both are sized to fit the
|
|
12134
|
+
* hole and are never drawn past its edge.
|
|
12089
12135
|
*/
|
|
12090
|
-
|
|
12136
|
+
centre?: { value: 'total' | number | string; label?: string };
|
|
12091
12137
|
/**
|
|
12092
12138
|
* Print the value beside each mark. `true` takes the defaults; the object form sets the
|
|
12093
12139
|
* position, the format and the minimum gap. Only the chart types that support labels
|