@olvnck/ingrid 0.0.0-stage → 0.15.20

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 (220) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +5533 -2
  4. package/THIRD_PARTY_NOTICES.md +10 -0
  5. package/dist/engine/clipboard/copy.d.ts +40 -0
  6. package/dist/engine/clipboard/options.d.ts +16 -0
  7. package/dist/engine/clipboard/text.d.ts +32 -0
  8. package/dist/engine/columns/autosize.d.ts +43 -0
  9. package/dist/engine/columns/dataType.d.ts +30 -0
  10. package/dist/engine/columns/fold.d.ts +48 -0
  11. package/dist/engine/columns/layout.d.ts +150 -0
  12. package/dist/engine/columns/model.d.ts +369 -0
  13. package/dist/engine/columns/query.d.ts +16 -0
  14. package/dist/engine/columns/tooltips.d.ts +27 -0
  15. package/dist/engine/data/client/clientSource.d.ts +151 -0
  16. package/dist/engine/data/client/columnFilters.d.ts +106 -0
  17. package/dist/engine/data/client/descendants.d.ts +35 -0
  18. package/dist/engine/data/client/diff.d.ts +23 -0
  19. package/dist/engine/data/client/fields.d.ts +70 -0
  20. package/dist/engine/data/client/filter.d.ts +95 -0
  21. package/dist/engine/data/client/flatten.d.ts +141 -0
  22. package/dist/engine/data/client/groupSize.d.ts +14 -0
  23. package/dist/engine/data/client/hierarchy.d.ts +85 -0
  24. package/dist/engine/data/client/order.d.ts +32 -0
  25. package/dist/engine/data/client/pipeline.d.ts +277 -0
  26. package/dist/engine/data/client/remap.d.ts +33 -0
  27. package/dist/engine/data/client/trees.d.ts +41 -0
  28. package/dist/engine/data/client/types.d.ts +173 -0
  29. package/dist/engine/data/memory/generate.d.ts +36 -0
  30. package/dist/engine/data/memory/memoryDatasource.d.ts +46 -0
  31. package/dist/engine/data/rowKey.d.ts +15 -0
  32. package/dist/engine/data/server/contract.d.ts +64 -0
  33. package/dist/engine/data/server/expansion.d.ts +35 -0
  34. package/dist/engine/data/server/levelStore.d.ts +99 -0
  35. package/dist/engine/data/server/loader.d.ts +128 -0
  36. package/dist/engine/data/server/reader.d.ts +88 -0
  37. package/dist/engine/data/server/response.d.ts +31 -0
  38. package/dist/engine/data/server/serverSource.d.ts +130 -0
  39. package/dist/engine/data/shared/aggregate.d.ts +12 -0
  40. package/dist/engine/data/shared/columnFilter.d.ts +19 -0
  41. package/dist/engine/data/shared/compare.d.ts +12 -0
  42. package/dist/engine/data/shared/dateParts.d.ts +19 -0
  43. package/dist/engine/data/shared/distinct.d.ts +30 -0
  44. package/dist/engine/data/shared/filterRecord.d.ts +7 -0
  45. package/dist/engine/data/shared/keys.d.ts +17 -0
  46. package/dist/engine/data/shared/quickFilter.d.ts +17 -0
  47. package/dist/engine/data/shared/sourceUtils.d.ts +11 -0
  48. package/dist/engine/data/shared/splice.d.ts +9 -0
  49. package/dist/engine/detail/builds.d.ts +26 -0
  50. package/dist/engine/detail/content.d.ts +24 -0
  51. package/dist/engine/detail/controller.d.ts +176 -0
  52. package/dist/engine/detail/events.d.ts +11 -0
  53. package/dist/engine/detail/follow.d.ts +56 -0
  54. package/dist/engine/detail/layer.d.ts +119 -0
  55. package/dist/engine/detail/live.d.ts +96 -0
  56. package/dist/engine/detail/options.d.ts +53 -0
  57. package/dist/engine/detail/state.d.ts +140 -0
  58. package/dist/engine/edit/clear.d.ts +20 -0
  59. package/dist/engine/edit/editing.d.ts +4 -0
  60. package/dist/engine/edit/editors/date.d.ts +3 -0
  61. package/dist/engine/edit/editors/index.d.ts +23 -0
  62. package/dist/engine/edit/editors/internals.d.ts +25 -0
  63. package/dist/engine/edit/editors/largeText.d.ts +2 -0
  64. package/dist/engine/edit/editors/number.d.ts +4 -0
  65. package/dist/engine/edit/editors/select.d.ts +2 -0
  66. package/dist/engine/edit/editors/text.d.ts +15 -0
  67. package/dist/engine/edit/fill.d.ts +47 -0
  68. package/dist/engine/edit/fillHandle.d.ts +66 -0
  69. package/dist/engine/edit/fillValues.d.ts +15 -0
  70. package/dist/engine/edit/operations.d.ts +68 -0
  71. package/dist/engine/edit/paste.d.ts +23 -0
  72. package/dist/engine/edit/pastePlan.d.ts +17 -0
  73. package/dist/engine/edit/popupHost.d.ts +63 -0
  74. package/dist/engine/edit/session.d.ts +52 -0
  75. package/dist/engine/edit/types.d.ts +234 -0
  76. package/dist/engine/edit/undo.d.ts +38 -0
  77. package/dist/engine/edit/validation.d.ts +10 -0
  78. package/dist/engine/edit/values.d.ts +38 -0
  79. package/dist/engine/export/columns.d.ts +19 -0
  80. package/dist/engine/export/deliver.d.ts +47 -0
  81. package/dist/engine/export/dsv.d.ts +2 -0
  82. package/dist/engine/export/expanded.d.ts +69 -0
  83. package/dist/engine/export/export.d.ts +25 -0
  84. package/dist/engine/export/headers.d.ts +15 -0
  85. package/dist/engine/export/options.d.ts +19 -0
  86. package/dist/engine/export/plan.d.ts +43 -0
  87. package/dist/engine/export/values.d.ts +33 -0
  88. package/dist/engine/export/walk.d.ts +31 -0
  89. package/dist/engine/export/writer.d.ts +62 -0
  90. package/dist/engine/export/xlsx/cells.d.ts +31 -0
  91. package/dist/engine/export/xlsx/index.d.ts +12 -0
  92. package/dist/engine/export/xlsx/parts.d.ts +36 -0
  93. package/dist/engine/export/xlsx/sheet.d.ts +30 -0
  94. package/dist/engine/export/xlsx/styles.d.ts +15 -0
  95. package/dist/engine/export/xlsx/table.d.ts +8 -0
  96. package/dist/engine/export/xlsx/zip.d.ts +24 -0
  97. package/dist/engine/filter/groupFilter.d.ts +28 -0
  98. package/dist/engine/filter/model.d.ts +235 -0
  99. package/dist/engine/filter/shorthand.d.ts +36 -0
  100. package/dist/engine/filter/state.d.ts +76 -0
  101. package/dist/engine/filter/summary.d.ts +16 -0
  102. package/dist/engine/filter/values.d.ts +40 -0
  103. package/dist/engine/find/index.d.ts +94 -0
  104. package/dist/engine/find/match.d.ts +38 -0
  105. package/dist/engine/find/model.d.ts +115 -0
  106. package/dist/engine/grid.d.ts +42 -0
  107. package/dist/engine/i18n/numbers.d.ts +34 -0
  108. package/dist/engine/i18n/texts.d.ts +306 -0
  109. package/dist/engine/interact/autoScroll.d.ts +11 -0
  110. package/dist/engine/interact/body.d.ts +41 -0
  111. package/dist/engine/interact/focus.d.ts +158 -0
  112. package/dist/engine/interact/header.d.ts +216 -0
  113. package/dist/engine/interact/host.d.ts +400 -0
  114. package/dist/engine/interact/keyboard.d.ts +20 -0
  115. package/dist/engine/interact/menuKey.d.ts +7 -0
  116. package/dist/engine/interact/own.d.ts +2 -0
  117. package/dist/engine/interact/ranges.d.ts +68 -0
  118. package/dist/engine/interact/rowSelection.d.ts +53 -0
  119. package/dist/engine/interact/shortcut.d.ts +21 -0
  120. package/dist/engine/interact/tooltips.d.ts +63 -0
  121. package/dist/engine/measure.d.ts +30 -0
  122. package/dist/engine/render/cells.d.ts +322 -0
  123. package/dist/engine/render/columns.d.ts +28 -0
  124. package/dist/engine/render/dom.d.ts +24 -0
  125. package/dist/engine/render/flash.d.ts +74 -0
  126. package/dist/engine/render/groupCell.d.ts +50 -0
  127. package/dist/engine/render/groupPanel.d.ts +21 -0
  128. package/dist/engine/render/header.d.ts +162 -0
  129. package/dist/engine/render/overlay.d.ts +15 -0
  130. package/dist/engine/render/pinnedRows.d.ts +106 -0
  131. package/dist/engine/render/rowPool.d.ts +3 -0
  132. package/dist/engine/render/scrollbars.d.ts +77 -0
  133. package/dist/engine/render/strategy.d.ts +397 -0
  134. package/dist/engine/reportError.d.ts +7 -0
  135. package/dist/engine/rowdrag/controller.d.ts +80 -0
  136. package/dist/engine/rowdrag/events.d.ts +17 -0
  137. package/dist/engine/rowdrag/gesture.d.ts +33 -0
  138. package/dist/engine/rowdrag/keys.d.ts +21 -0
  139. package/dist/engine/rowdrag/model.d.ts +67 -0
  140. package/dist/engine/rowdrag/options.d.ts +34 -0
  141. package/dist/engine/rowdrag/rows.d.ts +61 -0
  142. package/dist/engine/rowdrag/target.d.ts +59 -0
  143. package/dist/engine/rowdrag/zones.d.ts +79 -0
  144. package/dist/engine/schedule.d.ts +29 -0
  145. package/dist/engine/selection/aggregate.d.ts +30 -0
  146. package/dist/engine/selection/options.d.ts +7 -0
  147. package/dist/engine/selection/rangeRows.d.ts +19 -0
  148. package/dist/engine/selection/ranges.d.ts +114 -0
  149. package/dist/engine/selection/rows.d.ts +207 -0
  150. package/dist/engine/source.d.ts +225 -0
  151. package/dist/engine/synthetic.d.ts +28 -0
  152. package/dist/engine/table/cells.d.ts +52 -0
  153. package/dist/engine/table/headers.d.ts +20 -0
  154. package/dist/engine/table/host.d.ts +65 -0
  155. package/dist/engine/table/job.d.ts +21 -0
  156. package/dist/engine/table/rows.d.ts +99 -0
  157. package/dist/engine/table/slicer.d.ts +54 -0
  158. package/dist/engine/table/takes.d.ts +145 -0
  159. package/dist/engine/types.d.ts +2950 -0
  160. package/dist/engine/ui/announce.d.ts +7 -0
  161. package/dist/engine/ui/chooser.d.ts +19 -0
  162. package/dist/engine/ui/columnList.d.ts +41 -0
  163. package/dist/engine/ui/columnMenu.d.ts +96 -0
  164. package/dist/engine/ui/columnsPanel.d.ts +16 -0
  165. package/dist/engine/ui/contextMenu.d.ts +48 -0
  166. package/dist/engine/ui/controller.d.ts +295 -0
  167. package/dist/engine/ui/filters/apply.d.ts +53 -0
  168. package/dist/engine/ui/filters/custom.d.ts +3 -0
  169. package/dist/engine/ui/filters/date.d.ts +12 -0
  170. package/dist/engine/ui/filters/host.d.ts +102 -0
  171. package/dist/engine/ui/filters/multi.d.ts +6 -0
  172. package/dist/engine/ui/filters/number.d.ts +15 -0
  173. package/dist/engine/ui/filters/numberMask.d.ts +15 -0
  174. package/dist/engine/ui/filters/set.d.ts +3 -0
  175. package/dist/engine/ui/filters/simple.d.ts +52 -0
  176. package/dist/engine/ui/filters/text.d.ts +5 -0
  177. package/dist/engine/ui/filtersPanel.d.ts +18 -0
  178. package/dist/engine/ui/floating.d.ts +66 -0
  179. package/dist/engine/ui/floatingShorthand.d.ts +20 -0
  180. package/dist/engine/ui/floatingTypes.d.ts +82 -0
  181. package/dist/engine/ui/icons.d.ts +25 -0
  182. package/dist/engine/ui/menu.d.ts +45 -0
  183. package/dist/engine/ui/overlayHost.d.ts +7 -0
  184. package/dist/engine/ui/place.d.ts +37 -0
  185. package/dist/engine/ui/popup.d.ts +97 -0
  186. package/dist/engine/ui/sideBar.d.ts +26 -0
  187. package/dist/engine/ui/statusBar.d.ts +29 -0
  188. package/dist/engine/ui/toolbar/buttons.d.ts +21 -0
  189. package/dist/engine/ui/toolbar/chipState.d.ts +52 -0
  190. package/dist/engine/ui/toolbar/chips.d.ts +23 -0
  191. package/dist/engine/ui/toolbar/findBox.d.ts +10 -0
  192. package/dist/engine/ui/toolbar/quickFilterBox.d.ts +12 -0
  193. package/dist/engine/ui/toolbar/registry.d.ts +5 -0
  194. package/dist/engine/ui/toolbar/toolbar.d.ts +31 -0
  195. package/dist/engine/ui/toolbar/types.d.ts +23 -0
  196. package/dist/engine/ui/tooltip.d.ts +34 -0
  197. package/dist/engine/ui/virtualList.d.ts +35 -0
  198. package/dist/engine/viewport/heightView.d.ts +62 -0
  199. package/dist/engine/viewport/heights.d.ts +39 -0
  200. package/dist/engine/viewport/intervals.d.ts +19 -0
  201. package/dist/engine/viewport/range.d.ts +51 -0
  202. package/dist/engine/viewport/scroll.d.ts +45 -0
  203. package/dist/engine/viewport/stack.d.ts +160 -0
  204. package/dist/grid-C34VEap6.js +32310 -0
  205. package/dist/index.d.ts +19 -0
  206. package/dist/index.js +1273 -0
  207. package/dist/ingrid.css +1 -0
  208. package/dist/internal.d.ts +13 -0
  209. package/dist/internal.js +1 -0
  210. package/dist/locale/de.d.ts +4 -0
  211. package/dist/locale/de.js +222 -0
  212. package/dist/themes/primevue.css +63 -0
  213. package/dist/themes/tailwind.css +68 -0
  214. package/dist/vue/InGrid.vue.d.ts +263 -0
  215. package/dist/vue/stableOptions.d.ts +8 -0
  216. package/dist/vue/useClientSource.d.ts +28 -0
  217. package/dist/vue/useServerSource.d.ts +8 -0
  218. package/dist/vue/vueRenderer.d.ts +164 -0
  219. package/dist/xlsx-59umS_n_.js +325 -0
  220. package/package.json +78 -5
@@ -0,0 +1,30 @@
1
+ import type { SetModel } from '../../filter/model';
2
+ import type { FilterValues } from '../../source';
3
+ /** Blank: null, undefined, '', a whitespace-only string, an empty array. */
4
+ export declare function isBlankValue(value: unknown): boolean;
5
+ /**
6
+ * The set-filter key of a scalar: blank -> null; string -> itself; number -> String(n) (-0 is '0');
7
+ * boolean -> 'true' / 'false'; valid Date -> local 'YYYY-MM-DD' (+ ' hh:mm:ss' when not at midnight), an invalid one
8
+ * 'Invalid Date'; anything else its textOf (null when that is blank). Arrays: see forEachKey.
9
+ */
10
+ export declare function filterKey(value: unknown): string | null;
11
+ /** One key per array element (an empty array: null once), else the single key; `item` is the element visited. */
12
+ export declare function forEachKey(value: unknown, visit: (key: string | null, item: unknown) => void): void;
13
+ export interface DistinctOptions {
14
+ counts: boolean;
15
+ /** Order after the blank entry. */
16
+ compare: (a: unknown, b: unknown) => number;
17
+ /** Keep values whose textOf contains it (case-insensitive); blanks drop out. */
18
+ search?: string;
19
+ /** Cut after this many entries: complete: false. */
20
+ limit?: number;
21
+ }
22
+ /**
23
+ * Distinct values of the rows whose mask byte is set (all rows without a mask): blank entry (null) first, the rest by
24
+ * `compare`; the first value seen is kept for each key. A row counts once per key, however often an array cell holds it.
25
+ */
26
+ export declare function distinctValues(values: ArrayLike<unknown>, mask: Uint8Array | null, options: DistinctOptions): FilterValues;
27
+ /** Sources list keys case-sensitively; the set filter UI merges case variants under the first casing seen (counts summed). */
28
+ export declare function mergeCase(values: FilterValues): FilterValues;
29
+ /** Whether a row key is ticked in the model; without caseSensitive keys differing only in case match. */
30
+ export declare function setKeyTest(model: SetModel, caseSensitive: boolean): (key: string | null) => boolean;
@@ -0,0 +1,7 @@
1
+ import type { ColumnFilterModel } from '../../filter/model';
2
+ import type { FieldFilter } from '../../source';
3
+ /**
4
+ * A keyed filter model from a request's entries (for backends written against one): field → model. When two
5
+ * columns filter one field the first entry wins.
6
+ */
7
+ export declare function filterRecord(filters: readonly FieldFilter[]): Record<string, ColumnFilterModel>;
@@ -0,0 +1,17 @@
1
+ import type { GroupKey } from '../server/contract';
2
+ /** Identity of a path: JSON keeps 1 and '1', null and '' apart. The root is '[]'. */
3
+ export declare function pathKey(path: readonly GroupKey[]): string;
4
+ /**
5
+ * A value as a group key or path element, without allocating: strings, booleans and
6
+ * finite numbers as they are, null and undefined as null; anything else — NaN and ±Infinity (which JSON would write as
7
+ * null), bigints, dates, symbols, objects — converted with String(). Never throws: if String() does (a prototype-less
8
+ * object, a throwing toString), the key is Object.prototype.toString's tag.
9
+ */
10
+ export declare function keyOf(value: unknown): GroupKey;
11
+ /** `keyOf` plus whether the value had to be converted (its callers report that once per field or response). */
12
+ export declare function normaliseKey(value: unknown): {
13
+ key: GroupKey;
14
+ coerced: boolean;
15
+ };
16
+ /** Labelled "(Blank)" in the group column. */
17
+ export declare function isBlankKey(value: unknown): boolean;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The quick filter's lower-casing: `toLowerCase`, locale-independent, for haystacks and words
3
+ * alike, in the client source and in `memoryDatasource`. Not `toLocaleLowerCase`: the same text then searches the same
4
+ * on every machine (a Turkish-locale browser would map 'I' to 'ı'), and it is the cheaper call on the first keystroke's
5
+ * haystack build. Context-sensitive mappings that are not language-specific (Greek final sigma) still apply.
6
+ */
7
+ export declare function lowerCased(text: string): string;
8
+ /**
9
+ * The words of a quick-filter text: trimmed, split on whitespace, each lower-cased with
10
+ * `lowerCased` (haystacks are lower-cased the same way). No words: the filter is off.
11
+ */
12
+ export declare function quickFilterWords(text: string): string[];
13
+ /**
14
+ * A row passes when every word occurs in its haystack: the lower-cased texts of its quick-filter fields joined by
15
+ * '\n'. A word holds no whitespace, so it never matches across two fields. Called per row: a plain loop.
16
+ */
17
+ export declare function matchesWords(haystack: string, words: readonly string[]): boolean;
@@ -0,0 +1,11 @@
1
+ /** Small helpers both row sources share: `serverSource` and `clientSource`. */
2
+ /** How many leading fields two `groupBy` lists share. */
3
+ export declare function commonPrefix(a: readonly string[], b: readonly string[]): number;
4
+ /**
5
+ * The levels of the expansion a `groupBy` change keeps: those the old and the new list share — from no
6
+ * grouping, all of the new list's, so an expansion set before the first grouping arrives (a saved view restored
7
+ * before its grouping) is kept within the new depth. Ungrouping keeps none.
8
+ */
9
+ export declare function keptLevels(prev: readonly string[], next: readonly string[]): number;
10
+ /** Adds `listener` to `set`; the returned function removes it again. */
11
+ export declare function listen<T>(set: Set<T>, listener: T): () => void;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Rows [at, at + removed) of a displayed order replaced by `inserted` new rows (SourceChange
3
+ * 'splice'), in positions as they are before the change.
4
+ */
5
+ export interface Splice {
6
+ at: number;
7
+ removed: number;
8
+ inserted: number;
9
+ }
@@ -0,0 +1,26 @@
1
+ import type { RowRange } from '../viewport/range';
2
+ import type { DetailLayer, DetailRecord } from './layer';
3
+ import type { LiveDetail, LiveDetails } from './live';
4
+ import type { RowKey } from './state';
5
+ /** What the queue needs of the controller beyond the strips and the live details. */
6
+ export interface DetailBuildHooks {
7
+ /** Queues work after the pass within the frame's budget. */
8
+ defer(task: () => void): void;
9
+ /** The controller was destroyed: a queued build does nothing. */
10
+ dead(): boolean;
11
+ /** `d`'s content was just built (or failed to build) at `record`'s row: the controller's `into` follows. */
12
+ built(record: DetailRecord, d: LiveDetail): void;
13
+ }
14
+ export interface DetailBuilds {
15
+ /** Queues `key`'s build: one deferred task at a time. */
16
+ want(key: RowKey): void;
17
+ /** A pass begins over `visible` rows (the build order); a frame that begins with builds still queued is counted. */
18
+ frame(visible: RowRange): void;
19
+ /** `key`'s build is no longer wanted (its detail was destroyed). */
20
+ delete(key: RowKey): void;
21
+ /** No build is wanted (every detail was destroyed). */
22
+ clear(): void;
23
+ /** The frames that began with builds still queued. */
24
+ readonly queuedFrames: number;
25
+ }
26
+ export declare function createDetailBuilds(layer: Pick<DetailLayer, 'get'>, live: Pick<LiveDetails, 'get' | 'build'>, hooks: DetailBuildHooks): DetailBuilds;
@@ -0,0 +1,24 @@
1
+ import type { LocaleOptions } from '../i18n/texts';
2
+ import type { Grid, GridOptions } from '../types';
3
+ import type { DetailContentFactory } from './live';
4
+ /** What the factory needs of the master (handed in by the controller, so the detail modules do not import `grid.ts`). */
5
+ export interface ContentEnv {
6
+ /** The engine's `createGrid`. */
7
+ createGrid(host: HTMLElement, options: GridOptions): Grid;
8
+ /** The engine's internal natural-height hook. */
9
+ onNaturalHeight(grid: Grid, listener: (h: number) => void): () => void;
10
+ /** The master's `locale` option: a detail grid takes it unless its options set one. */
11
+ locale(): LocaleOptions | undefined;
12
+ /** A row number as the master formats counts (the label's "n"). */
13
+ format(n: number): string;
14
+ /** A built-in grid's natural height changed (an `'auto'` height): the detail of `host` is sized again. */
15
+ natural(host: HTMLElement, height: number): void;
16
+ /** Reports an app callback's error (once per key). */
17
+ report(key: string, error: unknown): void;
18
+ }
19
+ /**
20
+ * Focuses the first (`'start'`) or last tabbable element in `host`; false when there is none. A focus move, not
21
+ * a frame: the rects read lays the page out once.
22
+ */
23
+ export declare function focusEdge(host: HTMLElement, edge: 'start' | 'end'): boolean;
24
+ export declare function createContentFactory(env: ContentEnv): DetailContentFactory;
@@ -0,0 +1,176 @@
1
+ import type { DetailColumnSpec } from '../columns/model';
2
+ import type { LocaleOptions } from '../i18n/texts';
3
+ import type { InteractHost } from '../interact/host';
4
+ import type { DropMark, FrameState, RowDetails } from '../render/strategy';
5
+ import type { SourceChange } from '../source';
6
+ import type { DetailGridInfo, DetailOptions, DetailRowContext, DetailToggle, Grid, GridOptions } from '../types';
7
+ import { DetailIndex, type HeightView } from '../viewport/heightView';
8
+ import type { RowRange } from '../viewport/range';
9
+ import type { DetailEvents } from './events';
10
+ import { type DetailPart } from './layer';
11
+ import { type ResolvedDetail } from './options';
12
+ /** What `grid.ts` calls. */
13
+ export interface DetailController {
14
+ /** Takes a new `GridOptions.detail` (through `diffDetail`): `undefined` turns master/detail off. */
15
+ setOptions(option: DetailOptions | undefined): void;
16
+ /** The resolved options; null while master/detail is off. */
17
+ options(): ResolvedDetail | null;
18
+ /**
19
+ * The toggle column the column model should hold: `{ width }` while the toggle resolves to `'column'`, else null.
20
+ * Resolves again, as the columns (`ColumnDef.detailToggle`, the default toggle) may have changed since.
21
+ */
22
+ columnSpec(): DetailColumnSpec | null;
23
+ /** What the row pool draws (`StrategyContext.details`); null while master/detail is off. */
24
+ rowDetails(): RowDetails | null;
25
+ /**
26
+ * The pass's height round over `range`: `master` and a function `openByDefault` are asked for the loaded
27
+ * rows not asked yet, and the loaded rows not placed yet get their detail term — an open master's, else none. True
28
+ * when a term changed.
29
+ */
30
+ evaluate(range: RowRange): boolean;
31
+ /** The row is a master whose detail is open (asked first when not asked yet). */
32
+ isOpen(row: number): boolean;
33
+ /**
34
+ * The open state of the row `ctx` describes, by its key, remembering nothing (an export's `ctx.open`):
35
+ * loaded or not, displayed or inside a closed group.
36
+ */
37
+ openOf(ctx: DetailRowContext): boolean;
38
+ /** Opens or closes masters' details; non-masters are skipped silently; one event per changed row. */
39
+ setOpen(rows: number | readonly number[], open: boolean, source: DetailToggle['source']): void;
40
+ /** A chevron click or a key: false when the row is no master. */
41
+ toggle(row: number, source: 'pointer' | 'keyboard'): boolean;
42
+ /** Every master open or closed: the default becomes `open`, the exceptions go; one event with `row: null`. */
43
+ setAll(open: boolean, source: DetailToggle['source']): void;
44
+ /**
45
+ * A change of the grid's source, after the grid applied it: the asked and placed rows and the detail
46
+ * index follow it as the grid's heights do — a reset clears the index on a client source and keeps it as estimates on
47
+ * any other (a server purge), until the rows are evaluated —, a `rows` change forgets its rows' answers, exceptions
48
+ * whose key left the data go (no event), and a count change or a reset places the explicit opens at once.
49
+ */
50
+ sourceChanged(change: SourceChange): void;
51
+ /**
52
+ * After a batch of source changes (the grid's `settle`): the explicit opens placed by key. True when a term
53
+ * changed since the last call — the caller keeps the anchor row still.
54
+ */
55
+ settled(): boolean;
56
+ /**
57
+ * `setRows`: another source — the open state, the answers, the detail terms, the index keys and the strips
58
+ * go.
59
+ */
60
+ sourceReplaced(): void;
61
+ /** The detail terms the grid's height view reads; null until the first term. */
62
+ index(): DetailIndex | null;
63
+ /**
64
+ * The detail layer after the rows are bound (`strategy.render`): every bound open master — the render
65
+ * range's and the kept row — shows its strip (created with its panel in this pass) at the y the row pool
66
+ * wrote plus the row's cell height, its term as height; every other strip is hidden and kept (the live details
67
+ * evict past `keep`). One walk over the render range reading the stored terms, no app callback, writes only what
68
+ * changed. `visible`: the content build order.
69
+ */
70
+ render(frame: FrameState, visible: RowRange): void;
71
+ /** The shown strips placed again after a height change outside the pass (right after `strategy.reposition`). */
72
+ reposition(frame: FrameState): void;
73
+ /** The rows area's width (the viewport's), which the panels take (`--_ig-detail-w`). */
74
+ widthChanged(width: number): void;
75
+ /** The detail an element of this grid's layer belongs to — its master's row (−1 while hidden) and the part. */
76
+ detailOf(el: Element): {
77
+ row: number;
78
+ part: DetailPart;
79
+ } | null;
80
+ /** The shown strip of `row`'s detail, null when none (`StrategyContext.detailEl`; the detail stop). */
81
+ element(row: number): HTMLElement | null;
82
+ /**
83
+ * The master row now of the detail whose content holds `el`, by its key (a reset leaves the strips' rows unknown until
84
+ * the next pass); −1 outside every content host of this grid's details.
85
+ */
86
+ masterOf(el: Element): number;
87
+ /**
88
+ * DOM focus into `row`'s detail content at `edge`: a built-in grid's `focus()` (its remembered
89
+ * cell), a renderer's `focus(edge)`, else its first or last tabbable element. A detail not drawn or not built yet
90
+ * takes it once it is (drawn: after that pass; built: after its build), while its stop is still the focus position.
91
+ */
92
+ into(row: number, edge: 'start' | 'end'): void;
93
+ /**
94
+ * The row's detail is a stop: an open master whose detail takes room — its term, or for a row not placed yet the
95
+ * term it will get (an explicit height 0 has none).
96
+ */
97
+ hasStop(row: number): boolean;
98
+ /** Focus is inside `row`'s detail content: its Tab sentinels take Tab, the others' none; −1: none. */
99
+ focusInside(row: number): void;
100
+ /**
101
+ * The shared autoHeight observer saw `el` (not a cell wrapper) at `height`: custom content's box. True when a
102
+ * detail term changed (the caller keeps the anchor still).
103
+ */
104
+ measured(el: Element, height: number): boolean;
105
+ /** `row`'s live detail grid: the registered one, else the built-in one; null otherwise. */
106
+ gridOf(row: number): Grid | null;
107
+ /** Every live detail grid, drawn or kept, with its master's row now (−1: not displayed). */
108
+ grids(): DetailGridInfo[];
109
+ /** `refreshDetails`: these rows' live details (null: every one), as a data change or rebuilt. */
110
+ refresh(rows: readonly number[] | null, rebuild: boolean): void;
111
+ /** The master's `setLocale`: built-in grids without a locale of their own follow; the panels' texts too. */
112
+ localeChanged(locale: LocaleOptions | undefined): void;
113
+ /**
114
+ * The detail holding the focus is never evicted: `row`'s, or none (`null`). `render` pins the stop's detail —
115
+ * the focus position, also while DOM focus is inside it or elsewhere.
116
+ */
117
+ pin(row: number | null): void;
118
+ /** `detailStats`: the live details and the frames that began with builds queued; null while off. */
119
+ stats(): {
120
+ live: number;
121
+ queuedFrames: number;
122
+ } | null;
123
+ destroy(): void;
124
+ }
125
+ /** What the controller needs of the grid beyond the `InteractHost`. */
126
+ export interface DetailHooks {
127
+ /** The rows slab, where the detail layer goes. */
128
+ slab: HTMLElement;
129
+ /** Some column definition sets `ColumnDef.detailToggle` (the default toggle is then `'cells'`). */
130
+ toggleColumns(): boolean;
131
+ /** The grid's `onDetailToggle` listeners: made by the first listener or by this controller. */
132
+ events: DetailEvents;
133
+ /** The grid's height view: the row count the detail index keeps. */
134
+ view: HeightView;
135
+ /**
136
+ * A term changed outside the pass (a toggle, the API, new options): the grid keeps the anchor row still and moves the
137
+ * drawn rows (its `heightsChanged`). Never called while the grid renders.
138
+ */
139
+ heightsChanged(): void;
140
+ /** The y the row pool wrote for a bound row (slab-relative), null when unbound (`RenderStrategy.rowY`). */
141
+ rowY(row: number): number | null;
142
+ /**
143
+ * A bound row's outer node among the slab's children — its span box when it sits in one, else its element —, null
144
+ * when unbound (`RenderStrategy.rowOuter`).
145
+ */
146
+ rowOuter(row: number): HTMLElement | null;
147
+ /** The displayed column count (`aria-colcount`): a detail panel spans them all. */
148
+ columnCount(): number;
149
+ /** Queues work after the pass within the frame's budget: the content builds. */
150
+ defer(task: () => void): void;
151
+ /** The grid's shared autoHeight observer: custom content's box, measured through `measured`. */
152
+ observe(el: Element): void;
153
+ unobserve(el: Element): void;
154
+ /** The master's `locale` option: a detail grid takes it unless its options set one. */
155
+ locale(): LocaleOptions | undefined;
156
+ /** The engine's `createGrid` and its natural-height hook, handed in: the detail modules import no `grid.ts`. */
157
+ createGrid(host: HTMLElement, options: GridOptions): Grid;
158
+ onNaturalHeight(grid: Grid, listener: (h: number) => void): () => void;
159
+ /**
160
+ * A row drag's marks on this grid, read once per render: the rows a drag from it carries (null:
161
+ * none) — their strips dimmed with them —, and the drop mark (null: none) — a `below` one drawn under its detail.
162
+ */
163
+ dragged(): ReadonlySet<number> | null;
164
+ dropMark(): DropMark | null;
165
+ }
166
+ /** Registers a grid's controller for `detailStats` (`grid.ts`, once per grid). */
167
+ export declare function trackDetails(grid: Grid, controller: () => DetailController | null): void;
168
+ /**
169
+ * A grid's live details and the frames that began with content builds still queued; null while master/detail is off
170
+ * or the grid is destroyed. Internal (`src/internal.ts`).
171
+ */
172
+ export declare function detailStats(grid: Grid): {
173
+ live: number;
174
+ queuedFrames: number;
175
+ } | null;
176
+ export declare function createDetailController(host: InteractHost, hooks: DetailHooks): DetailController;
@@ -0,0 +1,11 @@
1
+ import type { DetailToggle } from '../types';
2
+ export interface DetailEvents {
3
+ /** Adds a listener; returns its remover. */
4
+ on(listener: (e: DetailToggle) => void): () => void;
5
+ /** Queues `event` for the listeners (through the grid's queue); each listener isolated. */
6
+ emit(event: DetailToggle): void;
7
+ /** A listener exists: without one the caller builds no event object. */
8
+ has(): boolean;
9
+ destroy(): void;
10
+ }
11
+ export declare function createDetailEvents(queue: (run: () => void) => void): DetailEvents;
@@ -0,0 +1,56 @@
1
+ import { type SourceChange, type ViewportSource } from '../source';
2
+ import type { DetailLayer, DetailRecord } from './layer';
3
+ import type { LiveDetail, LiveDetails } from './live';
4
+ import { type RowKey } from './state';
5
+ /** What following the source needs of the controller beyond the strips and the live details. */
6
+ export interface DetailFollowHooks {
7
+ /** The grid's source now. */
8
+ source(): ViewportSource;
9
+ /** The index keys of rows without an id: a reloaded master is found by its key. */
10
+ readonly indexKeys: Map<number, object>;
11
+ /** Queues work after the pass: the refresh of a master noted as reloaded while drawn. */
12
+ defer(task: () => void): void;
13
+ /** The controller was destroyed: a queued refresh does nothing. */
14
+ dead(): boolean;
15
+ /** A master's data changed: `master` and a height function asked again, its detail refreshed. */
16
+ changed(d: LiveDetail, row: number, data: unknown): void;
17
+ /** A master left the data: its detail destroyed silently. */
18
+ drop(key: RowKey): void;
19
+ }
20
+ export interface DetailFollow {
21
+ /**
22
+ * A source change, before the controller's own bookkeeping: a server reset keeps the shown strips at their rows
23
+ * while those reload, any other change but `rows` ends that; the shown strips and the live details follow
24
+ * it as the bound rows do.
25
+ */
26
+ sourceChanged(change: SourceChange, client: boolean): void;
27
+ /**
28
+ * A `rows` change of a server source over `first`…`last`: the live details whose master's row lies in it,
29
+ * still holds that master (by id) and carries data of a newer generation (a refresh, a purge) are noted for `settled`
30
+ * — a walk over the live details (keep + drawn), not over the changed rows. A master that moved meanwhile is caught
31
+ * when drawn.
32
+ */
33
+ noteReloads(source: ViewportSource, first: number, last: number): void;
34
+ /**
35
+ * After a batch: a client master whose key left the data loses its detail, one whose row object changed
36
+ * refreshes it; a server master whose row reloaded refreshes it.
37
+ */
38
+ settled(): void;
39
+ /** A pass draws the open masters: a server source with live details and its generation, read once until `endPass`. */
40
+ beginPass(): void;
41
+ endPass(): void;
42
+ /** The strip a server reset left at `row` while that row reloads, if any; the caller checks it is live. */
43
+ at(row: number): DetailRecord | undefined;
44
+ /**
45
+ * `key`'s master was drawn at `row`: the row arrived, so a strip left there by a server reset goes; a server master
46
+ * that moved while its data reloaded (a sort) is refreshed after the pass.
47
+ */
48
+ drawn(row: number, key: RowKey): void;
49
+ /** A live detail made for a drawn master: on a server source, the generation of its data. */
50
+ born(key: RowKey, row: number): void;
51
+ /** A destroyed detail: no refresh noted for it, no generation kept. */
52
+ forget(key: RowKey): void;
53
+ /** Every detail destroyed: no strip kept for a reloading row, nothing noted. */
54
+ clear(): void;
55
+ }
56
+ export declare function createDetailFollow(layer: Pick<DetailLayer, 'shown'>, live: Pick<LiveDetails, 'get' | 'all'>, hooks: DetailFollowHooks): DetailFollow;
@@ -0,0 +1,119 @@
1
+ import type { GridTexts } from '../i18n/texts';
2
+ import type { RowKey } from './state';
3
+ /** Where an element of a detail sits (`DetailController.detailOf`): the strip, its panel, the content host, a sentinel. */
4
+ export type DetailPart = 'strip' | 'panel' | 'content' | 'start' | 'end';
5
+ /** A live detail's elements and what was last written to them. */
6
+ export interface DetailRecord {
7
+ readonly key: RowKey;
8
+ /** The master's display row the strip was last placed at; −1 while hidden. */
9
+ row: number;
10
+ readonly strip: HTMLElement;
11
+ readonly panel: HTMLElement;
12
+ readonly start: HTMLElement;
13
+ readonly content: HTMLElement;
14
+ readonly end: HTMLElement;
15
+ /** `top` / `height` last written (NaN: never). */
16
+ top: number;
17
+ height: number;
18
+ hidden: boolean;
19
+ /** The row and the texts the label was written for (−1 / null: never), and the `aria-colspan` last written. */
20
+ labelRow: number;
21
+ labelTexts: GridTexts | null;
22
+ span: number;
23
+ /** The controller's render stamp the record was last drawn in. */
24
+ seen: number;
25
+ /** The content host is as tall as the strip less the room around it (a built-in grid); else it sizes itself. */
26
+ fixed: boolean;
27
+ /** The content host's height last written (NaN: none). */
28
+ contentHeight: number;
29
+ /** The loading or error panel, and what it was last written for. */
30
+ message: HTMLElement | null;
31
+ messageKind: 'loading' | 'error' | null;
32
+ messageTexts: GridTexts | null;
33
+ /** The content host is observed by the grid's shared autoHeight observer (custom content). */
34
+ observed: boolean;
35
+ /** `.ig-row-dragging` and `.ig-detail-drop-below` as last written. */
36
+ dragging: boolean;
37
+ dropBelow: boolean;
38
+ }
39
+ /** What the layer needs of the grid beyond the slab. */
40
+ export interface DetailLayerHooks {
41
+ /** Where the room probe goes: the grid's root, beside its other probes. */
42
+ root: HTMLElement;
43
+ /** Watches an element's size (the probe's: a token change), calling `changed` on every change; returns the stop. */
44
+ watch(el: HTMLElement, changed: () => void): () => void;
45
+ /** The room around the content changed (the detail terms include it): after the fixed content hosts were fitted. */
46
+ roomChanged(): void;
47
+ }
48
+ export interface DetailLayer {
49
+ /** The record of `key`, if it is live. */
50
+ get(key: RowKey): DetailRecord | undefined;
51
+ /** A new record for `key`: its elements built, out of the DOM and hidden until `show`. */
52
+ create(key: RowKey): DetailRecord;
53
+ /** The shown records (the controller hides those its render did not draw). */
54
+ shown(): ReadonlySet<DetailRecord>;
55
+ /**
56
+ * Puts the strip at `y` (slab-relative) with height `h` — and a fixed content host at `h` less the room around it;
57
+ * writes only what changed.
58
+ */
59
+ place(record: DetailRecord, y: number, h: number): void;
60
+ /** The content host follows the strip's height (`true`: a built-in grid) or sizes itself (custom content). */
61
+ setFixed(record: DetailRecord, fixed: boolean): void;
62
+ /**
63
+ * The loading or error panel in the panel, outside the content host, `aria-busy` on the strip while loading;
64
+ * `null` removes it. Written when the kind or the texts changed.
65
+ */
66
+ message(record: DetailRecord, kind: 'loading' | 'error' | null, texts: GridTexts): void;
67
+ /**
68
+ * The vertical room a strip takes around its content in px — the panel's padding above and below and the strip's
69
+ * bottom line (as a row's): read from a probe made with the first strip (`create`), watched for token
70
+ * changes.
71
+ */
72
+ room(): number;
73
+ /** Takes a strip out of the DOM and forgets its record (an evicted or destroyed detail). */
74
+ remove(record: DetailRecord): void;
75
+ /**
76
+ * The accessible name ("Details of row n", n = `row` + 1 formatted by `format`) and the panel's `aria-colspan`;
77
+ * written when the row, the texts or the column count changed.
78
+ */
79
+ describe(record: DetailRecord, row: number, texts: GridTexts, format: (n: number) => string, span: number): void;
80
+ /**
81
+ * Shows a created or hidden strip at its display place, among the strips shown for the rows before and after it
82
+ * (the display order of shown strips holds, so the idle reorder can put every row around them): right after its
83
+ * master's row element (`rowElement(record.row)`: the row's outer node, its span box when it sits in one;
84
+ * none: nothing happens), unless that element lies outside the
85
+ * strips shown for the rows before (`prev`) and after (`next`) — then right after `prev`, else right before `next`'s
86
+ * master. A shown strip is not moved.
87
+ */
88
+ show(record: DetailRecord, rowElement: (row: number) => HTMLElement | null): void;
89
+ /** Hides a shown strip (`hidden`: no layout, no scroll range); it stays where it is in the DOM. */
90
+ hide(record: DetailRecord): void;
91
+ /** The panel's width, `--_ig-detail-w` on the slab (the rows area's width); written when it changed. */
92
+ setWidth(width: number): void;
93
+ /** The record and part an element of the layer belongs to (an element inside the content host: `'content'`). */
94
+ partOf(el: Element): {
95
+ record: DetailRecord;
96
+ part: DetailPart;
97
+ } | null;
98
+ /** The shown strip placed at master `row`, null when none (a scan of the shown strips). */
99
+ element(row: number): HTMLElement | null;
100
+ /**
101
+ * The Tab sentinels around `record`'s content take Tab (`tabindex="0"`) while focus is inside it — the start
102
+ * one with `start`, the end one with `end` —, else they are no Tab stop; written when it changed.
103
+ */
104
+ sentinels(record: DetailRecord, start: boolean, end: boolean): void;
105
+ /**
106
+ * `.ig-detail-focus` on the stop's strip (read in `render` like the focus draw): on `record`, off the one before.
107
+ */
108
+ ring(record: DetailRecord | null): void;
109
+ /**
110
+ * A row drag's marks on a strip: `.ig-row-dragging` while its master is dragged, `.ig-detail-drop-below` while a
111
+ * drop goes below its master (the insert line on its bottom edge); written when they changed.
112
+ */
113
+ marks(record: DetailRecord, dragging: boolean, dropBelow: boolean): void;
114
+ /** Takes every strip out of the DOM and forgets the records (master/detail off, another source). */
115
+ clear(): void;
116
+ /** `clear`, and the slab's width variable goes. */
117
+ destroy(): void;
118
+ }
119
+ export declare function createDetailLayer(slab: HTMLElement, hooks: DetailLayerHooks): DetailLayer;
@@ -0,0 +1,96 @@
1
+ import type { GridTexts, LocaleOptions } from '../i18n/texts';
2
+ import type { DetailContext, Grid } from '../types';
3
+ import type { ResolvedDetail } from './options';
4
+ import { type RowKey } from './state';
5
+ /** One detail's content, as the factory built it. */
6
+ export interface DetailContentInstance {
7
+ /** The built-in grid (the registry's entry); null for custom content. */
8
+ readonly grid: Grid | null;
9
+ /** A built-in grid over `rows`: its rows arrived (the client source's `setData`). */
10
+ setRows(rows: readonly object[]): void;
11
+ /** Custom content: `update(ctx)`; a built-in grid over a `source`: the source's `refresh()`. */
12
+ update(ctx: DetailContext): void;
13
+ /** Moves focus inside; false when nothing there takes it. */
14
+ focus(edge: 'start' | 'end'): boolean;
15
+ /** The detail was hidden: its popups close (`Grid.hidePopups`). */
16
+ hide(): void;
17
+ destroy(): void;
18
+ /** The master's row number or texts changed: a built-in grid's label follows unless its options set one. */
19
+ relabel?(row: number, texts: GridTexts): void;
20
+ /** The master's `setLocale`: a built-in grid follows unless its options set a locale. */
21
+ locale?(locale: LocaleOptions | undefined): void;
22
+ }
23
+ export interface DetailContentFactory {
24
+ /**
25
+ * Builds the content into `host`: `o.grid` is the spec object (a `grid` function already called) or null. Throws
26
+ * when the content cannot be built — a renderer's `create`, a `source`, the grid's creation — (the error panel).
27
+ */
28
+ build(host: HTMLElement, o: ResolvedDetail, ctx: DetailContext): DetailContentInstance;
29
+ }
30
+ export interface LiveDetail {
31
+ readonly key: RowKey;
32
+ /** The master's display row, last known (−1: not displayed). */
33
+ row: number;
34
+ /** The master's data, last known (a new object refreshes). */
35
+ data: unknown;
36
+ /** `'panel'`: waiting for its build (none yet, or destroyed by a rebuild); the others after it. */
37
+ state: 'panel' | 'loading' | 'ready' | 'error';
38
+ content: DetailContentInstance | null;
39
+ /** The grid custom content registered (`ctx.register`): the app's, never destroyed here. */
40
+ registered: Grid | null;
41
+ /** Moves with every `rows` call: a result whose number is not the last one is dropped. */
42
+ seq: number;
43
+ /**
44
+ * The content's natural height, without the room around it (an `'auto'` height); null until known. Written by the
45
+ * caller.
46
+ */
47
+ measured: number | null;
48
+ }
49
+ /** What the live details need of their owner (the controller). */
50
+ export interface LiveDetailHooks {
51
+ /** The detail's context, without `register` (the live details make that, bound to the content it was built for). */
52
+ context(d: LiveDetail): Omit<DetailContext, 'register'>;
53
+ /** The detail's content host. */
54
+ host(d: LiveDetail): HTMLElement;
55
+ /** `d.state` changed (the loading and error panels, `'panel'`: build it). Not called by `destroy` / `destroyAll`. */
56
+ state(d: LiveDetail): void;
57
+ /** Reports an app callback's error (once per key). */
58
+ report(key: string, error: unknown): void;
59
+ }
60
+ export interface LiveDetails {
61
+ /** The record of `key`, created (state `'panel'`, nothing built) when it is not live yet; its row is `row` now. */
62
+ ensure(key: RowKey, row: number, data: unknown): LiveDetail;
63
+ get(key: RowKey): LiveDetail | undefined;
64
+ /** Builds a detail in state `'panel'` with the current options (a new `grid` reaches the next build). */
65
+ build(d: LiveDetail): void;
66
+ /** The detail was hidden: its popups close, it is kept; returns the keys evicted past `keep` (destroyed). */
67
+ hide(key: RowKey): RowKey[];
68
+ /** Drawn again: no longer counted among the kept. */
69
+ show(key: RowKey): void;
70
+ /**
71
+ * The master's data changed: the same object changes nothing; a new one refreshes the detail by the current
72
+ * `refresh` (a detail not built yet just takes it).
73
+ */
74
+ dataChanged(key: RowKey, row: number, data: unknown): void;
75
+ /** `refreshDetails`: as a data change, or `rebuild` whatever the strategy; `null`: every live detail. */
76
+ refresh(keys: readonly RowKey[] | null, rebuild: boolean): void;
77
+ /** The live detail grid of `key`: the registered one, else the built-in one. */
78
+ gridOf(key: RowKey): Grid | null;
79
+ /** Every live detail with a grid, drawn or kept. */
80
+ grids(): {
81
+ detail: LiveDetail;
82
+ grid: Grid;
83
+ }[];
84
+ /** Every live detail. */
85
+ all(): IterableIterator<LiveDetail>;
86
+ readonly size: number;
87
+ /** A new `keep` (evicts at once); returns the evicted keys. */
88
+ setKeep(n: number): RowKey[];
89
+ /** The detail holding the focus is never evicted; `null` releases it. Returns the evicted keys. */
90
+ pin(key: RowKey | null): RowKey[];
91
+ /** Destroys one detail (its master went, or stopped being one); silent. */
92
+ destroy(key: RowKey): void;
93
+ /** Destroys every detail (`setRows`, `detail` off, `destroy`); silent. */
94
+ destroyAll(): void;
95
+ }
96
+ export declare function createLiveDetails(factory: DetailContentFactory, options: () => ResolvedDetail | null, hooks: LiveDetailHooks): LiveDetails;