@toclocoinc/lattice-grid 1.58.0 → 1.60.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 (113) hide show
  1. package/README.md +3 -3
  2. package/docs/API.html +1773 -73
  3. package/docs/api-detail.html +321 -5
  4. package/lattice-grid.d.ts +281 -2842
  5. package/lattice-grid.esm.min.js +879 -148
  6. package/lattice-grid.min.cjs +879 -148
  7. package/lattice-grid.min.css +1 -1
  8. package/lattice-grid.min.js +879 -148
  9. package/modules/ai.d.ts +401 -0
  10. package/modules/ai.esm.min.js +25 -6
  11. package/modules/ai.min.cjs +25 -6
  12. package/modules/ai.min.js +25 -6
  13. package/modules/angular.d.ts +31 -0
  14. package/modules/angular.esm.min.js +3 -2
  15. package/modules/angular.min.cjs +3 -2
  16. package/modules/angular.min.js +3 -2
  17. package/modules/chart-alluvial.d.ts +18 -0
  18. package/modules/chart-alluvial.esm.min.js +1 -1
  19. package/modules/chart-arc.d.ts +18 -0
  20. package/modules/chart-arc.esm.min.js +1 -1
  21. package/modules/chart-bubblemap.d.ts +18 -0
  22. package/modules/chart-bubblemap.esm.min.js +1 -1
  23. package/modules/chart-bump.d.ts +12 -0
  24. package/modules/chart-bump.esm.min.js +1 -1
  25. package/modules/chart-calendar.d.ts +12 -0
  26. package/modules/chart-calendar.esm.min.js +1 -1
  27. package/modules/chart-decomposition.d.ts +20 -0
  28. package/modules/chart-decomposition.esm.min.js +1 -1
  29. package/modules/chart-diverging.d.ts +12 -0
  30. package/modules/chart-diverging.esm.min.js +1 -1
  31. package/modules/chart-dumbbell.d.ts +18 -0
  32. package/modules/chart-dumbbell.esm.min.js +1 -1
  33. package/modules/chart-fan.d.ts +18 -0
  34. package/modules/chart-fan.esm.min.js +1 -1
  35. package/modules/chart-hexbin.d.ts +18 -0
  36. package/modules/chart-hexbin.esm.min.js +1 -1
  37. package/modules/chart-hexmap.d.ts +18 -0
  38. package/modules/chart-hexmap.esm.min.js +1 -1
  39. package/modules/chart-icicle.d.ts +12 -0
  40. package/modules/chart-icicle.esm.min.js +1 -1
  41. package/modules/chart-parallel.d.ts +19 -0
  42. package/modules/chart-parallel.esm.min.js +1 -1
  43. package/modules/chart-ridgeline.d.ts +14 -0
  44. package/modules/chart-ridgeline.esm.min.js +1 -1
  45. package/modules/chart-roc.d.ts +20 -0
  46. package/modules/chart-roc.esm.min.js +1 -1
  47. package/modules/chart-slope.d.ts +12 -0
  48. package/modules/chart-slope.esm.min.js +1 -1
  49. package/modules/chart-splom.d.ts +19 -0
  50. package/modules/chart-splom.esm.min.js +1 -1
  51. package/modules/chart-waffle.d.ts +12 -0
  52. package/modules/chart-waffle.esm.min.js +1 -1
  53. package/modules/charts.d.ts +122 -0
  54. package/modules/charts.esm.min.js +4 -4
  55. package/modules/charts.min.cjs +4 -4
  56. package/modules/charts.min.js +4 -4
  57. package/modules/data-router.d.ts +91 -0
  58. package/modules/data-router.esm.min.js +109 -17
  59. package/modules/data-router.min.cjs +109 -17
  60. package/modules/data-router.min.js +109 -17
  61. package/modules/devtools.d.ts +28 -0
  62. package/modules/devtools.esm.min.js +2 -2
  63. package/modules/devtools.min.cjs +2 -2
  64. package/modules/devtools.min.js +2 -2
  65. package/modules/dhtmlx-compat.d.ts +19 -0
  66. package/modules/dhtmlx-compat.esm.min.js +4 -4
  67. package/modules/dhtmlx-compat.min.cjs +4 -4
  68. package/modules/dhtmlx-compat.min.js +4 -4
  69. package/modules/gantt.d.ts +515 -0
  70. package/modules/gantt.esm.min.js +109 -33
  71. package/modules/gantt.min.cjs +109 -33
  72. package/modules/gantt.min.js +109 -33
  73. package/modules/htmx.d.ts +176 -0
  74. package/modules/htmx.esm.min.js +879 -148
  75. package/modules/htmx.min.cjs +879 -148
  76. package/modules/htmx.min.js +879 -148
  77. package/modules/kanban.d.ts +492 -0
  78. package/modules/kanban.esm.min.js +4 -4
  79. package/modules/kanban.min.cjs +4 -4
  80. package/modules/kanban.min.js +4 -4
  81. package/modules/kpi.d.ts +255 -0
  82. package/modules/kpi.esm.min.js +40 -7
  83. package/modules/kpi.min.cjs +40 -7
  84. package/modules/kpi.min.js +40 -7
  85. package/modules/layout.d.ts +332 -0
  86. package/modules/layout.esm.min.js +59 -6
  87. package/modules/layout.min.cjs +59 -6
  88. package/modules/layout.min.js +59 -6
  89. package/modules/mock-socket.d.ts +114 -0
  90. package/modules/mock-socket.esm.min.js +2 -2
  91. package/modules/mock-socket.min.cjs +2 -2
  92. package/modules/mock-socket.min.js +2 -2
  93. package/modules/react.d.ts +25 -0
  94. package/modules/react.esm.min.js +3 -2
  95. package/modules/react.min.cjs +3 -2
  96. package/modules/react.min.js +3 -2
  97. package/modules/svelte.d.ts +26 -0
  98. package/modules/svelte.esm.min.js +3 -2
  99. package/modules/svelte.min.cjs +3 -2
  100. package/modules/svelte.min.js +3 -2
  101. package/modules/tabs.d.ts +133 -0
  102. package/modules/tabs.esm.min.js +411 -9
  103. package/modules/tabs.min.cjs +411 -9
  104. package/modules/tabs.min.js +411 -9
  105. package/modules/vue.d.ts +24 -0
  106. package/modules/vue.esm.min.js +3 -2
  107. package/modules/vue.min.cjs +3 -2
  108. package/modules/vue.min.js +3 -2
  109. package/modules/webcomponent.d.ts +47 -0
  110. package/modules/webcomponent.esm.min.js +879 -148
  111. package/modules/webcomponent.min.cjs +879 -148
  112. package/modules/webcomponent.min.js +879 -148
  113. package/package.json +2 -2
@@ -0,0 +1,176 @@
1
+ /*!
2
+ * Lattice Grid 1.60.0, htmx module type declarations
3
+ * Copyright (c) 2026 TOCLOCO Inc. All rights reserved.
4
+ * https://latticegrid.dev
5
+ */
6
+ import type {
7
+ AR,
8
+ AR_SA,
9
+ CS_CZ,
10
+ Column,
11
+ DA_DK,
12
+ DEFAULT_LOCALE,
13
+ DE_DE,
14
+ EL_GR,
15
+ EN_GB,
16
+ EN_US,
17
+ ES_ES,
18
+ FI_FI,
19
+ FR_CA,
20
+ FR_FR,
21
+ Grid,
22
+ GridConfig,
23
+ HU_HU,
24
+ IT_IT,
25
+ JA_JP,
26
+ LOCALES,
27
+ MESSAGE_KEYS,
28
+ MISSING_RATE,
29
+ Messages,
30
+ NB_NO,
31
+ NL_NL,
32
+ NO_CAPABILITIES,
33
+ PL_PL,
34
+ PT_BR,
35
+ RO_RO,
36
+ Registry,
37
+ SV_SE,
38
+ UK_UA,
39
+ UNIT_SYSTEMS,
40
+ WINDOW_KINDS,
41
+ Window,
42
+ applyResidual,
43
+ auditCatalogue,
44
+ capabilitiesOf,
45
+ compileRules,
46
+ convertMoney,
47
+ createCurrencyType,
48
+ createHeadlessGrid,
49
+ createMessages,
50
+ createPushdownSource,
51
+ createRadixType,
52
+ createStat,
53
+ createUnitType,
54
+ defineUnit,
55
+ deltaOf,
56
+ dfqlAdapter,
57
+ duckdbAdapter,
58
+ evaluateFormula,
59
+ formatList,
60
+ formatMoney,
61
+ formatUnit,
62
+ getVersion,
63
+ ingest,
64
+ ingestSync,
65
+ licenceInfo,
66
+ licenceState,
67
+ licenseInfo,
68
+ licenseState,
69
+ looksLikeFormula,
70
+ odataAdapter,
71
+ openWindow,
72
+ parseMoney,
73
+ parseUnit,
74
+ planQuery,
75
+ rateFunction,
76
+ referencesOf,
77
+ registerModules,
78
+ registerUnitSystem,
79
+ resolveCatalogue,
80
+ resolveLocale,
81
+ resolveMutate,
82
+ restAdapter,
83
+ setLicence,
84
+ setLicense,
85
+ splitFilters,
86
+ toneOf,
87
+ version,
88
+ } from '../lattice-grid.js';
89
+
90
+ /**
91
+ * The htmx integration, which re-exports the base API alongside its own,
92
+ * a page using it imports this and never the base package as well.
93
+ */
94
+ export function createGrid(element: Element, config: GridConfig): Grid;
95
+ export function autoInit(root?: ParentNode): Grid[];
96
+ /**
97
+ * Wire the htmx lifecycle events on a document: grids are built in each
98
+ * swapped-in fragment, released before htmx detaches one, and their view
99
+ * state carried across history navigation. Called once on import against
100
+ * the global `document`; call it again only for another document. Returns
101
+ * the function that removes every listener it installed.
102
+ */
103
+ export function attach(doc?: Document): () => void;
104
+ export function initWithin(root: ParentNode): Grid[];
105
+ export function destroyWithin(root: ParentNode): void;
106
+ export function gridElementsWithin(root: ParentNode): Element[];
107
+ export function hydrateTable(table: Element, config?: GridConfig): Grid;
108
+ export function readTable(table: Element): { columns: Column[]; rows: unknown[] };
109
+ export function rowsFromFragment(fragment: ParentNode): unknown[];
110
+ export function rowsFromJson(text: string): unknown[];
111
+ /**
112
+ * Parse a response into rows by its content type: JSON through
113
+ * `rowsFromJson`, anything else through `rowsFromFragment` against the
114
+ * columns given. The fragment arrives already parsed; this never touches
115
+ * `DOMParser` or `innerHTML`. Returns the rows and, when the body carried
116
+ * one, the total.
117
+ */
118
+ export function ingestResponse(
119
+ response: { contentType: string; text?: string; fragment?: ParentNode },
120
+ columns: { field: string }[],
121
+ ): { rows: unknown[]; total: number | undefined };
122
+ /**
123
+ * Drive server-side sort and filter through htmx. `trigger` is the element
124
+ * carrying the htmx request attributes (`hx-get`, `hx-target`,
125
+ * `hx-trigger="lattice:query-changed"`); the grid's query parameters are
126
+ * merged into that element's request and its response ingested. Returns the
127
+ * function that detaches everything this attached.
128
+ */
129
+ export function driveServerMode(
130
+ grid: Grid,
131
+ trigger: Element,
132
+ opts?: { columns?: { field: string }[] },
133
+ ): () => void;
134
+ /**
135
+ * Load rows in chunks as the user nears the end of what is loaded.
136
+ * `sentinelEl` is the element carrying `hx-get` and
137
+ * `hx-trigger="revealed, lattice:scroll-near-end"`; `threshold` is how many
138
+ * rows from the end counts as near (default 20). Returns the function that
139
+ * detaches everything this attached.
140
+ */
141
+ export function driveInfiniteScroll(
142
+ grid: Grid,
143
+ sentinelEl: Element,
144
+ opts?: { columns?: { field: string }[]; threshold?: number },
145
+ ): () => void;
146
+ export function driveOobUpdates(grid: Grid, opts?: object): () => void;
147
+ export function serialiseState(grid: Grid): string;
148
+ export function restoreState(grid: Grid, state: string): void;
149
+ export function saveStateWithin(root: ParentNode): void;
150
+ export function restoreStateWithin(root: ParentNode): void;
151
+ export function queryParams(grid: Grid): Record<string, string>;
152
+ export function warnIfLargeHtmlPayload(rows: number): void;
153
+ export const QUERY_CHANGED_EVENT: string;
154
+ export const SCROLL_NEAR_END_EVENT: string;
155
+ export const HTML_ROW_WARNING_THRESHOLD: number;
156
+ // The core factory surface this module re-exports, so an htmx page builds its
157
+ // configured columns (a currency type, a unit type, a stat) from the one
158
+ // engine it already carries rather than a second copy (BACKLOG-0000786).
159
+ // Typed by reference to the base package; names the base package leaves
160
+ // untyped stay untyped here too.
161
+ export {
162
+ createHeadlessGrid, version, getVersion, Grid, Registry, registerModules,
163
+ createRadixType, createUnitType, registerUnitSystem, defineUnit, UNIT_SYSTEMS, parseUnit, formatUnit,
164
+ createCurrencyType, parseMoney, formatMoney, convertMoney, rateFunction, MISSING_RATE,
165
+ Messages, createMessages, auditCatalogue,
166
+ EN_GB, MESSAGE_KEYS, DEFAULT_LOCALE, formatList, resolveLocale, LOCALES, resolveCatalogue,
167
+ EN_US, FR_FR, FR_CA, IT_IT, ES_ES, PT_BR, DE_DE, NL_NL, SV_SE, DA_DK, NB_NO, FI_FI,
168
+ PL_PL, CS_CZ, HU_HU, RO_RO, UK_UA, EL_GR, JA_JP, AR, AR_SA,
169
+ Window, openWindow, WINDOW_KINDS,
170
+ evaluateFormula, referencesOf, looksLikeFormula, compileRules, ingest, ingestSync,
171
+ createPushdownSource, planQuery, splitFilters, applyResidual, capabilitiesOf, resolveMutate, NO_CAPABILITIES,
172
+ odataAdapter, restAdapter, dfqlAdapter, duckdbAdapter,
173
+ createStat, deltaOf, toneOf,
174
+ } from '../lattice-grid.js';
175
+ // American licence aliases mirror the base package (dom/index.js).
176
+ export { setLicence as setLicense, licenceInfo as licenseInfo, licenceState as licenseState } from '../lattice-grid.js';