@aceshooting/lyra-ui 31.0.0 → 31.2.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 (131) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/dist/autoloader-cdn.js +1 -1
  3. package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +12 -1
  4. package/dist/components/agent-tools/budget-meter/budget-meter.class.js +4 -4
  5. package/dist/components/charts/chart/lite-chart.class.js +1 -1
  6. package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +18 -8
  7. package/dist/components/conversation/chat-composer/chat-composer.class.js +11 -9
  8. package/dist/components/conversation/chat-composer/chat-composer.styles.js +1 -1
  9. package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +11 -3
  10. package/dist/components/conversation/message-feedback/message-feedback.class.js +12 -6
  11. package/dist/components/conversation/message-feedback/message-feedback.styles.js +1 -1
  12. package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +6 -3
  13. package/dist/components/conversation/prompt-input/prompt-input.class.js +3 -2
  14. package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
  15. package/dist/components/conversation/thread-list/thread-list.class.d.ts +1 -1
  16. package/dist/components/conversation/thread-list/thread-list.class.js +2 -2
  17. package/dist/components/data/document-library/document-library-cursor.js +1 -0
  18. package/dist/components/data/document-library/document-library-types.d.ts +20 -0
  19. package/dist/components/data/document-library/document-library.class.d.ts +37 -26
  20. package/dist/components/data/document-library/document-library.class.js +20 -11
  21. package/dist/components/data/document-library/document-library.styles.js +1 -1
  22. package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +1 -1
  23. package/dist/components/data/flow-canvas/flow-canvas.class.js +1 -1
  24. package/dist/components/data/timeline/timeline.class.js +1 -1
  25. package/dist/components/data/tree/tree-data-expansion.js +1 -0
  26. package/dist/components/data/tree/tree-item.class.d.ts +10 -4
  27. package/dist/components/data/tree/tree-item.class.js +5 -2
  28. package/dist/components/data/tree/tree-item.styles.js +1 -1
  29. package/dist/components/data/tree/tree-owner-controller.js +1 -1
  30. package/dist/components/data/tree/tree-pointer-reorder.js +1 -0
  31. package/dist/components/data/tree/tree-types.d.ts +5 -1
  32. package/dist/components/data/tree/tree.class.d.ts +27 -9
  33. package/dist/components/data/tree/tree.class.js +5 -3
  34. package/dist/components/data/tree/tree.styles.js +1 -1
  35. package/dist/components/forms/combobox/combobox.class.d.ts +20 -12
  36. package/dist/components/forms/combobox/combobox.class.js +2 -2
  37. package/dist/components/forms/select/select.class.js +1 -1
  38. package/dist/components/layout/dock-panel/dock-panel.class.d.ts +1 -1
  39. package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
  40. package/dist/components/layout/page/page.class.d.ts +3 -3
  41. package/dist/components/layout/page/page.class.js +1 -1
  42. package/dist/components/layout/segmented/segmented.class.d.ts +20 -7
  43. package/dist/components/layout/segmented/segmented.class.js +34 -24
  44. package/dist/components/layout/segmented/segmented.styles.js +1 -1
  45. package/dist/components/layout/stepper/stepper.styles.js +1 -1
  46. package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
  47. package/dist/components/media/map/map-anchor-controller.js +1 -1
  48. package/dist/components/media/map/map-canvas-target.js +1 -0
  49. package/dist/components/media/map/map.class.d.ts +10 -1
  50. package/dist/components/media/map/map.class.js +4 -4
  51. package/dist/components/media/map/map.styles.js +1 -1
  52. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +21 -9
  53. package/dist/components/media/sequence-playback/sequence-playback.class.js +7 -6
  54. package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
  55. package/dist/components/overlays/overlay/overlay.styles.js +1 -1
  56. package/dist/components/retrieval/graph/graph-spatial-controller.js +1 -1
  57. package/dist/components/retrieval/graph/graph.class.js +1 -1
  58. package/dist/components/retrieval/ingestion-queue/ingestion-queue-presentation.d.ts +11 -0
  59. package/dist/components/retrieval/ingestion-queue/ingestion-queue-presentation.js +1 -0
  60. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +18 -7
  61. package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +13 -26
  62. package/dist/components/retrieval/ingestion-queue/ingestion-queue.styles.js +1 -1
  63. package/dist/components/utility/diff-view/diff-view.class.d.ts +5 -5
  64. package/dist/components/utility/diff-view/diff-view.class.js +1 -1
  65. package/dist/components/utility/icon/icon.class.js +1 -1
  66. package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
  67. package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
  68. package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
  69. package/dist/components/viewers/document-preview/document-preview.class.js +2 -2
  70. package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +1 -1
  71. package/dist/components/viewers/docx-viewer/docx-viewer.class.js +1 -1
  72. package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +1 -1
  73. package/dist/components/viewers/email-viewer/email-viewer.class.js +2 -2
  74. package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
  75. package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
  76. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +1 -1
  77. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +1 -1
  78. package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +1 -1
  79. package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
  80. package/dist/components/viewers/xml-viewer/xml-viewer.class.js +2 -2
  81. package/dist/data-sources.d.ts +10 -0
  82. package/dist/events.d.ts +18 -4
  83. package/dist/framework-types.d.ts +1 -1
  84. package/dist/internal/default-strings/conversation.generated.js +1 -1
  85. package/dist/internal/default-strings/data.generated.js +1 -1
  86. package/dist/internal/default-strings/retrieval.generated.js +1 -1
  87. package/dist/internal/localization-types.d.ts +1 -1
  88. package/dist/internal/localization.js +1 -1
  89. package/dist/internal/lyra-element.js +2 -2
  90. package/dist/internal/native-modal-context.js +1 -1
  91. package/dist/internal/overlay-manager.js +1 -1
  92. package/dist/internal/overlay-order.js +1 -1
  93. package/dist/internal/overlay-stack.js +1 -1
  94. package/dist/internal/package-metadata.js +1 -1
  95. package/dist/internal/runtime-diagnostics.js +1 -0
  96. package/dist/internal/sizes.styles.js +1 -1
  97. package/dist/internal/source-cursor-controller.js +1 -0
  98. package/dist/internal/source-cursor-projection.js +1 -0
  99. package/dist/internal/source-page-scope.js +1 -1
  100. package/dist/lyra.d.ts +1 -1
  101. package/dist/theme/theme-bootstrap.js +1 -1
  102. package/dist/theme/theme.js +1 -1
  103. package/dist/utilities/overlay-manager.d.ts +2 -0
  104. package/llms/components/lr-budget-meter.md +31 -0
  105. package/llms/components/lr-chat-composer.md +13 -2
  106. package/llms/components/lr-combobox.md +27 -1
  107. package/llms/components/lr-diff-view.md +6 -0
  108. package/llms/components/lr-document-library.md +90 -6
  109. package/llms/components/lr-graph.md +5 -0
  110. package/llms/components/lr-ingestion-queue.md +76 -8
  111. package/llms/components/lr-json-viewer.md +34 -0
  112. package/llms/components/lr-lite-chart.md +2 -1
  113. package/llms/components/lr-map.md +33 -0
  114. package/llms/components/lr-message-feedback.md +38 -3
  115. package/llms/components/lr-page.md +4 -2
  116. package/llms/components/lr-prompt-input.md +5 -2
  117. package/llms/components/lr-segmented.md +30 -10
  118. package/llms/components/lr-sequence-playback.md +47 -12
  119. package/llms/components/lr-tree-item.md +1 -1
  120. package/llms/components/lr-tree.md +59 -7
  121. package/llms/components/lr-virtual-list.md +3 -1
  122. package/llms/peers.md +2 -2
  123. package/llms/shared/ai-and-peers.md +10 -1
  124. package/llms/shared/events-and-types.md +61 -2
  125. package/llms/shared/forms-and-accessibility.md +25 -0
  126. package/llms/shared/imports-and-registration.md +154 -110
  127. package/llms/shared/testing-and-utilities.md +5 -1
  128. package/llms/shared.md +255 -114
  129. package/locales.json +1 -1
  130. package/package.json +9 -9
  131. package/registrations.json +1 -1
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 10 parts, 5 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 11 parts, 8 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Documented with** `lr-tree-item` (same section below)
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
@@ -141,7 +141,7 @@ deeply-nested node's own shadow root still reaches it).
141
141
  not show that cap notice. Collapsed branches do not instantiate descendants; disclosure projects only normalized
142
142
  children while `aria-setsize` preserves the declared sibling count. `LyraTreeNodeData` is
143
143
  `{ readonly id: string; readonly label: string; readonly children?: readonly LyraTreeNodeData[];
144
- readonly selected?: boolean; readonly disabled?: boolean; readonly lazy?: boolean; readonly
144
+ readonly selected?: boolean; readonly expanded?: boolean; readonly disabled?: boolean; readonly lazy?: boolean; readonly
145
145
  badges?: readonly TreeBadge[]; readonly icon?: unknown; readonly description?: string; readonly
146
146
  accessibleLabel?: string }`. `TreeBadge` is `{ readonly text: string; readonly tone?:
147
147
  LyraVariant; readonly label?: string }`. `badges` renders tone-mapped chips in order. A nonempty
@@ -153,6 +153,15 @@ LyraVariant; readonly label?: string }`. `badges` renders tone-mapped chips in o
153
153
  removed by later object refreshes; removing the author attribute restores the current data name.
154
154
  `id` is the event, roving-focus, reconciliation, and reorder identity and must be unique across
155
155
  the complete reachable hierarchy; malformed rows, blank IDs and later duplicates are omitted as described above
156
+
157
+ An enabled data branch can supply `expanded: true` or `expanded: false` to seed its disclosure.
158
+ The tree remembers user toggles and direct writes to a generated branch row's `expanded` by stable
159
+ ID, including when an ancestor folds or the branch moves. A new explicit boolean overrides the
160
+ remembered state only when the authored value changes. Omitting it preserves the remembered
161
+ state. Removing an ID forgets its state. A visible lazy branch seeded open requests children
162
+ through `lr-lazy-load` and opens when those children arrive. Use both `item` and `generation`
163
+ from that event to correlate a response with the current request.
164
+
156
165
  - `maxNodes: number = 1000` (attribute `max-nodes`) — the object-data node budget, normalized to
157
166
  `1..10000`; unset or non-finite values restore 1,000. Set it before assigning `data`. Raising it
158
167
  does not recover excluded input automatically: reassign the original source after raising the cap.
@@ -164,9 +173,22 @@ LyraVariant; readonly label?: string }`. `badges` renders tone-mapped chips in o
164
173
  `[part="base"]` element. A host `aria-label` takes precedence by attribute presence, including an
165
174
  explicit empty string; removing it restores the `label` fallback. External `aria-labelledby`
166
175
  idrefs are not forwarded across the shadow boundary.
176
+ - `size: LyraSize | undefined` — optional row density for object data and declarative items.
177
+ Accepts `2xs`, `xs`, `s`, `m`, `l`, `xl` and the `small`, `medium`, `large` aliases.
178
+ `size="s"` gives a 32px single-line row with the standard tokens and a 16px root font.
179
+ Unset and unsupported values use the original density. Provider rows keep their measured layout.
180
+ - `pointerReorderable: boolean = false` (attribute `pointer-reorderable`) enables pointer reorder
181
+ requests for data and declarative rows. Drag the row with a mouse or pen. On touchscreens, drag
182
+ the grip or scroll from the label. Escape cancels a drag.
183
+ - `allowCrossParentReorder: boolean = false` (attribute `allow-cross-parent-reorder`) permits a
184
+ pointer drop beside a visible row under another parent. The destination remains at that row's depth.
185
+ - `canDrop?: (request: LyraTreePointerReorderDetail) => boolean` supplies a synchronous predicate
186
+ by property. It receives the proposed move during targeting and again on release. Return `true`
187
+ to accept it. A disabled or inert row, a node's own subtree and a move to its current index are
188
+ ineligible. Provider mode owns its ordering.
167
189
  - `reorderable: boolean = false` (reflected) — opts into keyboard reordering. Unset, no `lr-reorder`
168
190
  is ever emitted, Ctrl/Cmd+Arrow behaves exactly like a plain Arrow press, and the internal live
169
- region is not rendered at all.
191
+ region is rendered only when a reorder mode is enabled.
170
192
 
171
193
  **Read-only getters:** `selectedItems: readonly LyraTreeItem[]` returns a new frozen snapshot of
172
194
  selected item elements in document order, including derived fully-selected parents in either
@@ -214,17 +236,26 @@ by hierarchy depth, and resolved only after the affected rendered item cascade s
214
236
  each depth expand together, preserving their individual lifecycle events, motion durations and lazy
215
237
  loading behavior.
216
238
 
239
+ Bulk collapse cancels pending lazy expansion and clears the stored disclosure of unmounted
240
+ data branches. A bulk operation that changes disclosure emits one bubbling, composed
241
+ `lr-bulk-toggle` with frozen `detail: { expanded: boolean; nodeIds: readonly string[] }`.
242
+ The list contains each changed ID once, including changes to unmounted data branches. Mounted
243
+ items still emit their lifecycle and toggle events. A lazy request enters the summary only
244
+ if its expansion committed during the operation. Later responses use the regular row events.
245
+
217
246
  Both bulk methods are no-ops in source mode, and `reorderable` has no source-mode effect. Expansion
218
247
  and selection use provider projection actions rather than legacy item/lazy lifecycle events.
219
248
 
220
- **Events:** source mode emits `lr-source-selection-change` only after a current user selection
249
+ **Events:** `lr-source-selection-change`, `lr-selection-change`, `lr-reorder`,
250
+ `lr-bulk-toggle` (bulk disclosure summary), and `lr-pointer-reorder` (pointer move request).
251
+ Source mode emits `lr-source-selection-change` only after a current user selection
221
252
  projection commits: frozen readonly `detail: { key: string; selected: boolean;
222
253
  scope: 'item' | 'subtree'; state: string }`. It reports the accepted global-key intent and new
223
254
  opaque state, without constructing a DOM selection array. The following events are legacy-only:
224
255
  `lr-selection-change` (`detail: { selection }`, where both the detail and selection
225
256
  snapshot are frozen; fired for user selection and when a `data` refresh removes or re-seeds selected
226
257
  rows) and `lr-reorder` (`detail: { nodeId, parentNodeId, fromIndex, toIndex }`, only while `reorderable`).
227
- Like every other event here it is a **request**: `data` is host-owned and is never mutated by this
258
+ `lr-reorder` is a **request**: `data` is host-owned and is never mutated by this
228
259
  component, so nothing moves until the host reassigns a reordered `data` — focus then follows the
229
260
  moved node. The live region likewise announces a completed move only after the rendered sibling
230
261
  order confirms the exact requested swap. Ignored or rejected requests stay silent, and unrelated
@@ -238,6 +269,24 @@ reparenting is a structural edit with no keyboard affordance distinguishing the
238
269
  is simply not made: no event, no announcement, focus stays put. Item events listed below bubble
239
270
  through the tree as well.
240
271
 
272
+ **Pointer reorder event.** `lr-pointer-reorder` carries `{ nodeId, fromParentNodeId, fromIndex,
273
+ toParentNodeId, toIndex, targetNodeId, position }`. A root parent is `null`. To apply the request,
274
+ remove the source from its sibling list, then insert it at `toIndex` in the destination list.
275
+ The anchor's `position` is `'before'` or `'after'`. The tree keeps its data and DOM order until
276
+ the host applies the request.
277
+
278
+ For keyboard access to the same outline, enable `reorderable` and apply `lr-reorder` through the
279
+ same data update as pointer moves. For moves between parents, provide labeled controls to choose
280
+ the section, a reference section and whether to move before or after it. Apply the same validation
281
+ and data update, keep focus on the form control, and announce a confirmed move.
282
+
283
+ Set `--lr-tree-row-height` to a CSS length for the minimum row height and `--lr-tree-toggle-size`
284
+ for the disclosure button, leaf placeholder and selection checkbox size. Both inherit from the
285
+ tree and can be overridden on a tree item. The row grows to fit taller labels, descriptions or
286
+ slotted controls. Disclosure and checkbox targets stay at least 24 CSS px in each dimension and
287
+ retain the shared icon-button minimum when hover is unavailable or the pointer is coarse. Slotted
288
+ icon buttons use their own sizing. These properties apply to object data and declarative items.
289
+
241
290
  **Slots:** default — top-level `<lr-tree-item>` elements, each nesting its own children (the
242
291
  declarative model). Leave it empty and assign `data` for the object model; the same slot then holds
243
292
  the items `<lr-tree>` generates. `expand-icon` and `collapse-icon` provide tree-wide disclosure
@@ -245,7 +294,9 @@ icons; an item-level slot with the same name takes precedence.
245
294
 
246
295
  **CSS parts:** `base` and `tree` are aliases on the same `role="tree"` root; `empty` is the
247
296
  empty-state message shown when neither child model has any items; `limit` is the localized
248
- retained-node cap notice when valid object-data nodes exceed `maxNodes`.
297
+ retained-node cap notice when valid object-data nodes exceed `maxNodes`. The `drop-indicator`
298
+ part marks the insertion position at an accepted pointer target. Set `--lr-tree-drop-indicator-color`
299
+ to change the line color.
249
300
  Source mode adds `source-list`, `source-row`, `source-toggle` (branch and retry buttons),
250
301
  `source-label`, `source-status`, and `source-error`, retaining the `base`/`tree` aliases. Its tree
251
302
  root owns the accessible name, busy state and multiselectability; flat source rows own their
@@ -354,7 +405,8 @@ group; `row`, `toggle`, `icon`, `content`, `label`, `description`, `badge`, `gro
354
405
  `expand-button`, `spinner`, `spinner__base`, `children`, `checkbox`, `checkbox__base`,
355
406
  `checkbox__control`, `checkbox__control--checked`, `checkbox__control--indeterminate`,
356
407
  `checkbox__checked-icon`, `checkbox__indeterminate-icon`, and `checkbox__label`. `badge`
357
- is applied to every `item.badges` chip; chips carry
408
+ is applied to every `item.badges` chip. The `reorder-handle` part is the touch drag grip shown
409
+ when pointer reordering is enabled. Badge chips carry
358
410
  `data-tone="neutral|brand|success|warning|danger"`. `icon` is `aria-hidden="true"`; `content`
359
411
  groups the primary label and optional wrapping secondary description while preserving one
360
412
  interactive treeitem per row. `icon`, `description` and `badge` render only in the data model —
@@ -373,7 +373,9 @@ default estimate with sparse `ResizeObserver` measurements for rows that have ac
373
373
  the first frame.
374
374
  - A sticky band only appears when `renderStickyGroup` _and_ at least one valid `groups` entry are
375
375
  both present; `groups` alone renders positioned markers with nothing pinned, and
376
- `renderStickyGroup` alone renders no overlay element at all.
376
+ `renderStickyGroup` alone renders no overlay element at all. Removing the last normalized group
377
+ also removes the measured sticky scroll inset, even while the renderer remains configured.
378
+ Restoring a valid group resumes sticky measurement.
377
379
  - **A row that renders a popup needs the active-row lift, and this is why `[part='row']` has one.**
378
380
  Each row carries `will-change: transform` (a compositor hint for the per-frame translate), which
379
381
  makes every row its own stacking context. Rows otherwise carry no `z-index`, so they paint in DOM
package/llms/peers.md CHANGED
@@ -39,8 +39,8 @@ for the page.
39
39
  |---|---|---|
40
40
  | `@aceshooting/lyra-3d` | `^1.2.0` | `lr-chart-3d`, `lr-embedding-explorer`, `lr-graph`, `lr-image-viewer`, `lr-knowledge-graph-explorer`, `lr-model-viewer`, `lr-video` |
41
41
  | `@aceshooting/lyra-flags` | `^2.3.1` | _(loaded by a shared internal module)_ |
42
- | `@aceshooting/lyra-map` | `^1.5.1` | `lr-geojson-viewer`, `lr-map` |
43
- | `@aceshooting/lyra-translations` | `^31.0.0` | _(not referenced by any component)_ |
42
+ | `@aceshooting/lyra-map` | `^1.5.2` | `lr-geojson-viewer`, `lr-map` |
43
+ | `@aceshooting/lyra-translations` | `^31.2.0` | _(not referenced by any component)_ |
44
44
  | `@aiden0z/pptx-renderer` | `^1.4.0` | `lr-pptx-viewer` |
45
45
  | `@sgratzl/chartjs-chart-boxplot` | `^4.0.0` | `lr-box-plot` |
46
46
  | `chart.js` | `^4.0.1` | `lr-bar-chart`, `lr-box-plot`, `lr-bubble-chart`, `lr-chart`, `lr-doughnut-chart`, `lr-histogram`, `lr-line-chart`, `lr-pie-chart`, `lr-polar-area-chart`, `lr-radar-chart`, `lr-scatter-chart` |
@@ -265,7 +265,16 @@ import { createDocxSession } from '@aceshooting/lyra-docs/docx';
265
265
 
266
266
  `lr-docx-editor` provides command search (Ctrl/Command+K), bounded find excerpts and
267
267
  replace-and-advance, Outline, Checks and Review panels, table formatting and local raster
268
- image tools. `createDocxSession({ mount })` supports a host-owned toolbar; it requires a
268
+ image tools. Set `document-tools-placement="first-row"` to put document tools after insertion.
269
+ With `toolbar-placement="layout"`, a parent grid can place `::part(toolbar-area)` across the
270
+ page and `::part(workspace)` between sidebars. The toolbar follows its own width, and
271
+ `zoom="fit"` follows the document column. Set `--lr-docx-editor-tool-border` to style toolbar
272
+ icon borders. `toolbar-layout="auto"` fits the toolbar groups to their contents; `density="compact"`
273
+ shrinks tools without changing dialog fields. `file-actions` selects toolbar file buttons, and
274
+ cancelable `lr-new-request`/`lr-open-request` events let the host supply a template or file chooser.
275
+ [Page-wide toolbar example](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-docs/README.md#page-wide-toolbar-layout).
276
+
277
+ `createDocxSession({ mount })` supports a host-owned toolbar; it requires a
269
278
  connected empty light-DOM mount. Both routes expose `can()`/`execute()`, `find()`/
270
279
  `selectMatch()`/`replaceMatch()`, `outline()`/`selectOutlineItem()`, `inspectDocument()`/
271
280
  `selectDiagnostic()`, and `review()`/`selectReviewItem()`. Await `execute()` before inspecting its
@@ -124,8 +124,9 @@ a capped prefix does not provide access to a million-record source.
124
124
 
125
125
  The host owns each source and its indexes, storage and query work. Keep its revision, counts,
126
126
  records and returned projections immutable for a request snapshot. Revisions are nonempty strings
127
- or finite numbers; counts, offsets and record orders are nonnegative safe integers. Nonempty keys
128
- identify logical records, and `order` is canonical source order independent of query sorting.
127
+ or finite numbers; where present, counts, offsets and record orders are nonnegative safe integers.
128
+ Nonempty keys identify logical records, and a counted record's `order` is canonical source order
129
+ independent of query sorting. Cursor records instead carry only key/value identity.
129
130
  A provider can generate or fetch a requested window without allocating an array for the entire collection.
130
131
  Arbitrary work inside a host callback remains the host's responsibility.
131
132
 
@@ -148,6 +149,14 @@ Choose the access shape that matches the host's data:
148
149
  `total` describes every query match, not loaded rows; group ranges describe the globally
149
150
  ordered query and facets describe the full source catalogue. A declared `Summary` is required
150
151
  in each result, while the default `undefined` summary can be omitted.
152
+ - `LyraCursorSource<T, Q>` supplies unknown-total continuation batches without `total`, `order`,
153
+ lookup or locate. Its nonempty `scope` is an identity namespace; a compatible scope keeps keys
154
+ meaningful across query/revision changes. `query(request: LyraCursorRequest<Q>)` receives
155
+ `{ scope, revision, locale, signal, query, cursor, limit }` and resolves `LyraCursorResult<T>`:
156
+ `{ rows: readonly LyraCursorRecord<T>[]; nextCursor: string | null }`, where each record is
157
+ readonly `{ key: string; value: T }`. `cursor: null` starts a query and `nextCursor: null` ends
158
+ continuation; nonempty string tokens remain opaque and may continue an empty/short batch. They do
159
+ not promise another record or a total. The provider applies the full query before paging.
151
160
  - `LyraTabularSource` has separate column metadata and zero-based body rows, using either
152
161
  `cellAt` or bounded rectangular `readCells`. `LyraWorkbookSource` names sheets separately.
153
162
  Search results use a bounded hit list, `total: null` when the global total is unknown, and
@@ -161,6 +170,26 @@ Choose the access shape that matches the host's data:
161
170
  bins. Global node/edge totals, scene coverage and displayed counts have distinct meanings;
162
171
  a neighborhood or aggregate scene is not a complete graph layout.
163
172
 
173
+ Cursor binding is supported by **`lr-document-library.cursorSource` only**; the type declaration
174
+ does not enable it on other provider components. Choose exactly one of that input and its
175
+ counted `dataSource`. The table shows the current batch, `sourcePage` is inactive, and
176
+ `sourceTotal` remains `null`, including at the end. No facet catalogue, match total, absolute
177
+ membership or global selection is inferred from batches. Selected IDs are explicit unverified
178
+ intent; page selection preserves off-page IDs and the host validates them before mutations. A
179
+ different scope clears prior intent; assign the new `cursorSource` before restoring selected IDs.
180
+
181
+ The document cursor adapter bounds requests to 1–500 rows (default 100), scope/string-revision/
182
+ token text to 8,192 UTF-16 units, and visited request-cursor history to 32 entries including current.
183
+ Previous refetches; Start over discards history. It retains no old page rows, persisted tokens or
184
+ prefetch work. `LyraCursorSourceStatus` and the frozen `LyraCursorNavigationState` expose only
185
+ `status`, `canGoBack`, `canGoForward`, `atEnd` and `historyTruncated`; tokens never enter public
186
+ navigation state or events. User search edits emit `lr-query-change` without a match count;
187
+ existing counted `lr-filter-change` keeps its numeric contract. Source reassignment, refresh,
188
+ query/locale/limit change or reconnect starts at `null`; named visual paints do not refetch.
189
+ Callbacks must settle promptly on abort because the physical query permit is held until actual
190
+ settlement. See [document-library](../components/lr-document-library.md) for row/input admission bounds,
191
+ retry semantics, method results, selection binding order and navigation parts.
192
+
164
193
  Numeric helpers inspect all source positions in bounded chunks. Preparation has total O(n)
165
194
  source-read work per pass, plus reducer work, even though each chunk and the retained result are
166
195
  bounded. The default `batchSize` is 2,048 and its maximum is 8,192; it must be a positive safe
@@ -471,6 +500,36 @@ These named interfaces and helper signatures are available to typed integrations
471
500
  scene(request: LyraGraphSceneRequest): Promise<LyraGraphScene<N, E>>;
472
501
  overview?(request: LyraSourceContext & { readonly limit: number }): Promise<LyraGraphOverview>;
473
502
  }`
503
+ `LyraCursorRecord<T> {
504
+ readonly key: string;
505
+ readonly value: T;
506
+ }`
507
+ `LyraCursorRequest<Q> extends LyraSourceContext {
508
+ readonly revision: LyraSourceRevision;
509
+ readonly locale: string;
510
+ readonly signal: AbortSignal;
511
+ readonly scope: string;
512
+ readonly query: Q;
513
+ readonly cursor: string | null;
514
+ readonly limit: number;
515
+ }`
516
+ `LyraCursorResult<T> {
517
+ readonly rows: readonly LyraCursorRecord<T>[];
518
+ readonly nextCursor: string | null;
519
+ }`
520
+ `LyraCursorSource<T, Q> {
521
+ readonly revision: LyraSourceRevision;
522
+ readonly scope: string;
523
+ query(request: LyraCursorRequest<Q>): Promise<LyraCursorResult<T>>;
524
+ }`
525
+ `LyraCursorSourceStatus = 'idle' | 'loading' | 'ready' | 'error'`
526
+ `LyraCursorNavigationState {
527
+ readonly status: LyraCursorSourceStatus;
528
+ readonly canGoBack: boolean;
529
+ readonly canGoForward: boolean;
530
+ readonly atEnd: boolean;
531
+ readonly historyTruncated: boolean;
532
+ }`
474
533
 
475
534
  - **`utilities-data-preparation-contracts`** — Public staged numeric helpers and result contracts from `utilities/data-preparation.js`. Preparation reads the full immutable source in bounded chunks; retained summaries are distinct from source counts. Inherited fields are repeated for reference. Defaulted options may be omitted.
476
535
 
@@ -122,6 +122,31 @@ activation.
122
122
  `lr-time-range` is form-associated only for fieldset-cascaded disablement: no submission value,
123
123
  no state restoration.
124
124
 
125
+ ### Hiding the label visually: `label-display`
126
+
127
+ On controls that expose `labelDisplay: LyraLabelDisplay` (`'visible' | 'hidden'`, reflected as
128
+ `label-display`), use `label-display="hidden"` to visually hide the existing field caption without
129
+ removing its accessible-name relationship. The caption leaves normal layout but remains available
130
+ to assistive technology. Keep a meaningful `label` or documented label slot; the display setting
131
+ does not supply a label. A host `aria-label` retains its documented naming precedence.
132
+
133
+ The display choice affects the `form-control-label` part only: hint/error text, their description
134
+ relationships, required semantics and validation are unchanged. It does not hide the whole control.
135
+ The default is `'visible'` on `lr-input`, `lr-number-input`, `lr-time-input`, `lr-textarea`,
136
+ `lr-select`, `lr-combobox`, `lr-date-input`, `lr-phone-input`, `lr-token-input`, `lr-locale-picker`,
137
+ `lr-country-picker`, `lr-currency-picker`, `lr-time-zone-picker`, `lr-unit-picker`, `lr-model-select`
138
+ and `lr-voice-picker`. `lr-segmented` uses the same vocabulary but defaults to `'hidden'`; set
139
+ `label-display="visible"` to add its field caption. Supporting text follows each component's own
140
+ hint/error API; `lr-segmented` provides a hint, not form validation or an error field.
141
+
142
+ ```js
143
+ import '@aceshooting/lyra-ui/components/lr-select.js';
144
+ ```
145
+
146
+ ```html
147
+ <lr-select label="Sort order" label-display="hidden"></lr-select>
148
+ ```
149
+
125
150
  ### Enter submits the form
126
151
 
127
152
  A native `<input>` submits its form owner when the user presses Enter. The `<input>` these controls