@aceshooting/lyra-ui 30.9.0 → 31.1.1
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 +361 -335
- package/dist/ai/adapters/ag-ui.js +1 -1
- package/dist/autoloader-cdn.js +1 -1
- package/dist/components/agent-tools/activity-feed/activity-feed.class.js +1 -1
- package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +12 -1
- package/dist/components/agent-tools/budget-meter/budget-meter.class.js +4 -4
- package/dist/components/agent-tools/compare-panel/compare-panel.class.js +1 -1
- package/dist/components/agent-tools/eval-dataset/eval-dataset.class.js +1 -1
- package/dist/components/agent-tools/thinking-panel/thinking-panel.class.js +1 -1
- package/dist/components/agent-tools/tool-select-dialog/tool-select-dialog.class.js +1 -1
- package/dist/components/charts/chart/box-plot.class.js +2 -2
- package/dist/components/charts/chart/chart-sync.js +1 -1
- package/dist/components/charts/chart/chart.class.d.ts +1 -1
- package/dist/components/charts/chart/chart.class.js +4 -4
- package/dist/components/charts/chart/lite-chart-axis-layout.js +1 -1
- package/dist/components/charts/chart/lite-chart.class.js +2 -2
- package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +26 -11
- package/dist/components/conversation/chat-composer/chat-composer.class.js +11 -9
- package/dist/components/conversation/chat-composer/chat-composer.styles.js +1 -1
- package/dist/components/conversation/chat-message/chat-message.class.d.ts +27 -3
- package/dist/components/conversation/chat-message/chat-message.class.js +14 -12
- package/dist/components/conversation/chat-message/chat-message.styles.js +1 -1
- package/dist/components/conversation/chat-viewport/chat-viewport.class.d.ts +29 -2
- package/dist/components/conversation/chat-viewport/chat-viewport.class.js +2 -2
- package/dist/components/conversation/chat-viewport/chat-viewport.styles.js +1 -1
- package/dist/components/conversation/code-block/code-block-shared.js +1 -1
- package/dist/components/conversation/markdown/markdown-base.class.d.ts +1 -1
- package/dist/components/conversation/markdown/markdown-base.class.js +1 -1
- package/dist/components/conversation/markdown/markdown-code-header.js +1 -1
- package/dist/components/conversation/markdown/markdown-core.class.d.ts +10 -0
- package/dist/components/conversation/markdown/markdown-core.class.js +1 -1
- package/dist/components/conversation/markdown/markdown-shared.d.ts +7 -2
- package/dist/components/conversation/markdown/markdown-shared.js +3 -3
- package/dist/components/conversation/markdown/markdown.class.d.ts +10 -0
- package/dist/components/conversation/markdown/markdown.class.js +1 -1
- package/dist/components/conversation/message-feedback/message-feedback.class.d.ts +11 -3
- package/dist/components/conversation/message-feedback/message-feedback.class.js +12 -6
- package/dist/components/conversation/message-feedback/message-feedback.styles.js +1 -1
- package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
- package/dist/components/conversation/prompt-input/prompt-input.class.d.ts +8 -4
- package/dist/components/conversation/prompt-input/prompt-input.class.js +3 -2
- package/dist/components/conversation/push-to-talk/push-to-talk.class.js +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +4 -0
- package/dist/components/conversation/streaming-text/streaming-text-base.class.js +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-core.class.js +1 -0
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +1 -1
- package/dist/components/conversation/streaming-text/streaming-text.class.js +1 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +17 -3
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.js +3 -3
- package/dist/components/conversation/suggestion-chips/suggestion-chips.d.ts +1 -1
- package/dist/components/conversation/suggestion-chips/suggestion-chips.js +1 -1
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.d.ts +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.js +3 -3
- package/dist/components/conversation/transcript-feed/transcript-feed.class.js +1 -1
- package/dist/components/data/data-grid/data-grid.class.d.ts +10 -10
- package/dist/components/data/data-grid/data-grid.class.js +1 -1
- package/dist/components/data/document-library/document-library-cursor.js +1 -0
- package/dist/components/data/document-library/document-library-types.d.ts +20 -0
- package/dist/components/data/document-library/document-library.class.d.ts +37 -26
- package/dist/components/data/document-library/document-library.class.js +20 -11
- package/dist/components/data/document-library/document-library.styles.js +1 -1
- package/dist/components/data/file-tree/file-tree.class.js +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.js +2 -2
- package/dist/components/data/heatmap/heatmap.class.d.ts +1 -1
- package/dist/components/data/heatmap/heatmap.class.js +1 -1
- package/dist/components/data/pagination/pagination.class.js +1 -1
- package/dist/components/data/table/table.class.d.ts +31 -2
- package/dist/components/data/table/table.class.js +3 -3
- package/dist/components/data/table/table.styles.js +1 -1
- package/dist/components/data/timeline/timeline-cluster.js +1 -1
- package/dist/components/data/timeline/timeline-item.class.d.ts +10 -3
- package/dist/components/data/timeline/timeline-item.class.js +16 -12
- package/dist/components/data/timeline/timeline-item.styles.js +1 -1
- package/dist/components/data/timeline/timeline.class.d.ts +14 -2
- package/dist/components/data/timeline/timeline.class.js +9 -5
- package/dist/components/data/tree/tree-item.class.js +1 -1
- package/dist/components/data/tree/tree.class.d.ts +2 -0
- package/dist/components/data/tree/tree.class.js +1 -1
- package/dist/components/forms/button/button.class.d.ts +8 -6
- package/dist/components/forms/button/button.class.js +2 -2
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
- package/dist/components/forms/color-picker/color-core.js +1 -1
- package/dist/components/forms/combobox/combobox.class.d.ts +20 -12
- package/dist/components/forms/combobox/combobox.class.js +2 -2
- package/dist/components/forms/date-picker/date-input.class.d.ts +1 -1
- package/dist/components/forms/date-picker/date-input.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.class.d.ts +4 -2
- package/dist/components/forms/icon-button/icon-button.class.js +2 -2
- package/dist/components/forms/input/input-shared.js +2 -2
- package/dist/components/forms/input/number-input-locale.js +1 -0
- package/dist/components/forms/input/number-input.class.d.ts +19 -2
- package/dist/components/forms/input/number-input.class.js +2 -2
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +3 -3
- package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
- package/dist/components/layout/app-rail-group/app-rail-group.class.js +1 -1
- package/dist/components/layout/details/accordion-item.class.js +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.d.ts +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.js +1 -1
- package/dist/components/layout/menu/menu.class.js +1 -1
- package/dist/components/layout/multi-split/multi-split.class.js +1 -1
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.js +1 -1
- package/dist/components/layout/page/page.class.d.ts +3 -3
- package/dist/components/layout/page/page.class.js +1 -1
- package/dist/components/layout/segmented/segmented.class.d.ts +20 -7
- package/dist/components/layout/segmented/segmented.class.js +34 -24
- package/dist/components/layout/segmented/segmented.styles.js +1 -1
- package/dist/components/layout/stepper/stepper.styles.js +1 -1
- package/dist/components/layout/tab-group/tab-group.class.d.ts +8 -1
- package/dist/components/layout/tab-group/tab-group.class.js +1 -1
- package/dist/components/layout/tab-group/tab.class.d.ts +7 -1
- package/dist/components/layout/tab-group/tab.class.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.class.d.ts +2 -2
- package/dist/components/layout/virtual-list/virtual-list.class.js +1 -1
- package/dist/components/media/animated-image/animated-image.class.js +1 -1
- package/dist/components/media/attachment-chip/attachment-chip.class.d.ts +21 -14
- package/dist/components/media/attachment-chip/attachment-chip.class.js +1 -1
- package/dist/components/media/attachment-trigger/attachment-trigger.class.d.ts +36 -12
- package/dist/components/media/attachment-trigger/attachment-trigger.class.js +3 -3
- package/dist/components/media/drop-zone/drop-zone.class.d.ts +23 -5
- package/dist/components/media/drop-zone/drop-zone.class.js +2 -2
- package/dist/components/media/drop-zone/drop-zone.styles.js +1 -1
- package/dist/components/media/file-icon/file-icon.class.js +1 -1
- package/dist/components/media/flag/flag-url-resolver.js +1 -1
- package/dist/components/media/image-viewer/image-viewer.class.d.ts +2 -2
- package/dist/components/media/image-viewer/image-viewer.class.js +1 -1
- package/dist/components/media/map/map-anchor-controller.js +1 -1
- package/dist/components/media/map/map-canvas-target.js +1 -0
- package/dist/components/media/map/map-owned-features.js +1 -1
- package/dist/components/media/map/map-scene-elevated-lines.js +2 -2
- package/dist/components/media/map/map-scene-render-controller.js +1 -1
- package/dist/components/media/map/map.class.d.ts +15 -6
- package/dist/components/media/map/map.class.js +4 -4
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/pan-zoom/pan-zoom.class.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +21 -9
- package/dist/components/media/sequence-playback/sequence-playback.class.js +7 -6
- package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
- package/dist/components/media/video/video.class.d.ts +3 -3
- package/dist/components/media/video/video.class.js +3 -1
- package/dist/components/media/video-playlist/video-playlist.class.js +1 -1
- package/dist/components/overlays/chip/chip.class.js +1 -1
- package/dist/components/overlays/overlay/dropdown.class.js +1 -1
- package/dist/components/overlays/overlay/overlay.styles.js +1 -1
- package/dist/components/overlays/overlay/tooltip.class.d.ts +5 -1
- package/dist/components/overlays/overlay/tooltip.class.js +3 -3
- package/dist/components/retrieval/embedding-explorer/embedding-explorer-engine.js +1 -1
- package/dist/components/retrieval/graph/graph-node-renderer.js +1 -1
- package/dist/components/retrieval/graph/graph-spatial-controller.js +1 -1
- package/dist/components/retrieval/graph/graph.class.d.ts +1 -1
- package/dist/components/retrieval/graph/graph.class.js +1 -1
- package/dist/components/retrieval/ingestion-queue/ingestion-queue-presentation.d.ts +11 -0
- package/dist/components/retrieval/ingestion-queue/ingestion-queue-presentation.js +1 -0
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.d.ts +18 -7
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.class.js +13 -26
- package/dist/components/retrieval/ingestion-queue/ingestion-queue.styles.js +1 -1
- package/dist/components/retrieval/mind-map/mind-map.class.js +1 -1
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.d.ts +1 -1
- package/dist/components/retrieval/neighbor-list/neighbor-list.class.js +3 -3
- package/dist/components/retrieval/retrieval-results/retrieval-results.class.js +1 -1
- package/dist/components/utility/diff-view/diff-view.class.d.ts +5 -5
- package/dist/components/utility/diff-view/diff-view.class.js +1 -1
- package/dist/components/utility/icon/icon.class.js +1 -1
- package/dist/components/utility/json-viewer/json-viewer.class.d.ts +16 -1
- package/dist/components/utility/json-viewer/json-viewer.class.js +4 -4
- package/dist/components/utility/json-viewer/json-viewer.styles.js +1 -1
- package/dist/components/utility/known-date/known-date.class.js +1 -1
- package/dist/components/utility/mention-popover/mention-popover.class.js +1 -1
- package/dist/components/viewers/archive-viewer/archive-viewer.class.js +1 -1
- package/dist/components/viewers/calendar-viewer/calendar-viewer.class.js +1 -1
- package/dist/components/viewers/contact-viewer/contact-viewer.class.js +1 -1
- package/dist/components/viewers/csv-viewer/csv-viewer.class.js +1 -1
- package/dist/components/viewers/dataset-viewer/dataset-viewer.class.js +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.js +2 -2
- package/dist/components/viewers/docx-viewer/docx-viewer.class.d.ts +1 -1
- package/dist/components/viewers/docx-viewer/docx-viewer.class.js +2 -2
- package/dist/components/viewers/ebook-viewer/ebook-viewer.class.js +1 -1
- package/dist/components/viewers/email-viewer/email-viewer.class.d.ts +1 -1
- package/dist/components/viewers/email-viewer/email-viewer.class.js +2 -2
- package/dist/components/viewers/html-viewer/html-viewer.class.js +1 -1
- package/dist/components/viewers/include/include.class.js +1 -1
- package/dist/components/viewers/model-viewer/model-viewer.class.js +1 -1
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +1 -1
- package/dist/components/viewers/spreadsheet-viewer/spreadsheet-viewer.class.js +1 -1
- package/dist/components/viewers/svg-viewer/svg-viewer.class.js +1 -1
- package/dist/components/viewers/table-viewer-shared.js +4 -4
- package/dist/components/viewers/xml-viewer/xml-viewer.class.js +2 -2
- package/dist/data-sources.d.ts +10 -0
- package/dist/events.d.ts +9 -4
- package/dist/framework-types.d.ts +1 -1
- package/dist/internal/anchored-overlay-runtime.js +1 -1
- package/dist/internal/catalog-picker.js +1 -1
- package/dist/internal/default-strings/conversation.generated.js +1 -1
- package/dist/internal/default-strings/data.generated.js +1 -1
- package/dist/internal/default-strings/retrieval.generated.js +1 -1
- package/dist/internal/document-tokens.js +2 -2
- package/dist/internal/drop-session-controller.js +1 -1
- package/dist/internal/engine-3d.js +1 -1
- package/dist/internal/icon-only-content.js +1 -1
- package/dist/internal/layered-layout.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/lyra-element.js +2 -2
- package/dist/internal/map-custom-layer-controller.js +1 -1
- package/dist/internal/media-panorama.js +1 -1
- package/dist/internal/native-modal-context.js +1 -1
- package/dist/internal/overlay-manager.js +1 -1
- package/dist/internal/overlay-order.js +1 -1
- package/dist/internal/overlay-stack.js +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/runtime-diagnostics.js +1 -0
- package/dist/internal/safe-url.js +1 -1
- package/dist/internal/scoped-definitions.generated.js +1 -1
- package/dist/internal/scroll-overflow.js +1 -1
- package/dist/internal/source-cursor-controller.js +1 -0
- package/dist/internal/source-cursor-projection.js +1 -0
- package/dist/internal/source-page-scope.js +1 -1
- package/dist/internal/source-window-controller.js +1 -1
- package/dist/internal/text-quote.js +1 -1
- package/dist/internal/viewer-search.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/sequence-time-binding.js +1 -1
- package/dist/simulation-clock.js +1 -1
- package/dist/styles/reservations.css +1 -1
- package/dist/styles/reservations.styles.js +1 -1
- package/dist/testing/happy-dom-shims.js +1 -1
- package/dist/theme/theme-bootstrap.js +1 -1
- package/dist/theme/theme.js +1 -1
- package/dist/utilities/overlay-manager.d.ts +2 -0
- package/llms/components/lr-attachment-chip.md +27 -12
- package/llms/components/lr-attachment-trigger.md +27 -7
- package/llms/components/lr-budget-meter.md +31 -0
- package/llms/components/lr-button.md +6 -4
- package/llms/components/lr-chat-composer.md +26 -9
- package/llms/components/lr-chat-message.md +44 -3
- package/llms/components/lr-chat-viewport.md +39 -2
- package/llms/components/lr-combobox.md +27 -1
- package/llms/components/lr-data-grid.md +2 -0
- package/llms/components/lr-dialog.md +10 -0
- package/llms/components/lr-diff-view.md +6 -0
- package/llms/components/lr-document-library.md +90 -6
- package/llms/components/lr-drop-zone.md +26 -2
- package/llms/components/lr-graph.md +5 -0
- package/llms/components/lr-icon-button.md +2 -1
- package/llms/components/lr-ingestion-queue.md +76 -8
- package/llms/components/lr-json-viewer.md +51 -0
- package/llms/components/lr-lite-chart.md +2 -1
- package/llms/components/lr-locale-picker.md +5 -0
- package/llms/components/lr-map.md +33 -0
- package/llms/components/lr-markdown-core.md +2 -1
- package/llms/components/lr-markdown.md +20 -4
- package/llms/components/lr-menu.md +3 -1
- package/llms/components/lr-message-feedback.md +38 -3
- package/llms/components/lr-number-input.md +28 -1
- package/llms/components/lr-page.md +4 -2
- package/llms/components/lr-prompt-input.md +6 -3
- package/llms/components/lr-segmented.md +30 -10
- package/llms/components/lr-sequence-playback.md +47 -12
- package/llms/components/lr-streaming-text-core.md +3 -2
- package/llms/components/lr-streaming-text.md +4 -1
- package/llms/components/lr-suggestion-chips.md +28 -5
- package/llms/components/lr-tab-group.md +13 -1
- package/llms/components/lr-tab.md +5 -0
- package/llms/components/lr-table.md +25 -4
- package/llms/components/lr-timeline-item.md +1 -1
- package/llms/components/lr-timeline.md +38 -4
- package/llms/components/lr-tooltip.md +3 -1
- package/llms/components/lr-tree.md +4 -0
- package/llms/components/lr-virtual-list.md +4 -1
- package/llms/peers.md +2 -2
- package/llms/shared/events-and-types.md +61 -2
- package/llms/shared/forms-and-accessibility.md +46 -4
- package/llms/shared/imports-and-registration.md +154 -110
- package/llms/shared/testing-and-utilities.md +5 -1
- package/llms/shared.md +266 -117
- package/locales.json +1 -1
- package/package.json +22 -21
- package/registrations.json +1 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [media](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/media.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 4 parts, 3 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -32,14 +32,34 @@ feedback.
|
|
|
32
32
|
Start and stop it with `play()`, `pause()` or `toggle()`; assigning it throws in strict-mode code
|
|
33
33
|
and an authored `playing` attribute starts nothing.
|
|
34
34
|
- `withoutLoop: boolean = false` (attribute `without-loop`) — stops playback on the last item
|
|
35
|
-
instead of wrapping back to the first; read on every tick.
|
|
35
|
+
instead of wrapping back to the first; read on every tick. Starting paused standalone playback
|
|
36
|
+
again from the final item resets to zero. A bound source clock owns restart and loop policy.
|
|
37
|
+
- `valueFormatter?: SequencePlaybackValueFormatter` (property-only) — synchronous, side-effect-free
|
|
38
|
+
`(currentIndex: number) => string | null | undefined`, receiving the normalized **zero-based** index.
|
|
39
|
+
Its plain text supplies the range's `aria-valuetext` and the optional visible readout. Nullish,
|
|
40
|
+
nonstring, or thrown results use the localized ordinal; an explicit empty string remains empty.
|
|
41
|
+
Mutating playback inside the callback discards its result without immediately retrying it.
|
|
42
|
+
- `withValue: boolean = false` (attribute `with-value`) — show a non-live position readout below
|
|
43
|
+
the range. Hidden by default; it duplicates the range's text and is `aria-hidden`.
|
|
36
44
|
- `hidden: boolean = false` (reflected; re-declared over the native IDL property so Lit's
|
|
37
45
|
change-tracking sees it and auto-pauses on `hidden = true`)
|
|
38
46
|
|
|
39
|
-
**Methods:**
|
|
40
|
-
|
|
41
|
-
`
|
|
42
|
-
`
|
|
47
|
+
**Methods:**
|
|
48
|
+
|
|
49
|
+
- `play()` starts playback; repeated calls while playing and starts with fewer than two items do
|
|
50
|
+
nothing. For paused standalone `withoutLoop` playback at the last item, index zero is installed
|
|
51
|
+
**before** `lr-play`; one `lr-sequence-step { currentIndex: 0 }` follows unless a listener supersedes
|
|
52
|
+
the start. A reentrant pause, seek, restart, disconnect, binding attachment, or manual step retires
|
|
53
|
+
the stale reset event. The next timer tick advances from the current index.
|
|
54
|
+
- `pause()` stops playback and is idempotent; `toggle()` pauses or starts with the same replay rules.
|
|
55
|
+
- `next()` and `previous()` preserve playing/paused state, moving one item or doing nothing at the
|
|
56
|
+
respective endpoint. They do not pause active playback.
|
|
57
|
+
- `goTo(currentIndex)` pauses, clamps the requested index, and emits a manual step even when the
|
|
58
|
+
index is unchanged. Use `goTo(index); play()` for an explicit seek-and-resume.
|
|
59
|
+
- `focus(options?)`, `blur()`, and `click()` forward to the play button.
|
|
60
|
+
|
|
61
|
+
When bound, these commands delegate to the source clock; its restart and loop semantics take
|
|
62
|
+
precedence over the standalone rules.
|
|
43
63
|
|
|
44
64
|
**Events:** `lr-play`, `lr-pause` (no detail), `lr-sequence-step`
|
|
45
65
|
(`detail: LyraSequencePlaybackStepDetail { currentIndex }`, fired on every tick and manual step);
|
|
@@ -47,19 +67,22 @@ internal `focus`/`blur` are relayed exactly once as owner-realm native `FocusEve
|
|
|
47
67
|
composed, preserving `relatedTarget`).
|
|
48
68
|
|
|
49
69
|
**Class and event types:** `LyraSequencePlayback`, `LyraSequencePlaybackEventMap`, and
|
|
50
|
-
`LyraSequencePlaybackStepDetail
|
|
70
|
+
`LyraSequencePlaybackStepDetail`, plus the `SequencePlaybackValueFormatter` callback type.
|
|
51
71
|
|
|
52
72
|
**Slots:** `play-icon`, `pause-icon` — decorative glyphs for the paused and playing states; an empty
|
|
53
73
|
slot keeps the built-in glyph. Assigned content renders in an inert, `aria-hidden` layer inside the
|
|
54
74
|
play/pause button, so do not use either slot for a second interactive control.
|
|
55
75
|
|
|
56
|
-
**CSS parts:** `base`, `play-button`, `slider`
|
|
76
|
+
**CSS parts:** `base`, `play-button`, `slider`, `value` (the optional readout)
|
|
57
77
|
|
|
58
78
|
The `slider` carries supplemental localized `aria-valuetext` — `Step {index} of {total}` (key
|
|
59
79
|
`playbackStepPosition`, both numbers formatted with the component's effective locale). Browsers may
|
|
60
80
|
ignore that override on a native range, so the interoperable semantic contract is itself one-based
|
|
61
81
|
(`min=1`, `max=itemCount`, `value=currentIndex+1`): assistive technologies receive the correct
|
|
62
|
-
ordinal even when they expose the native numeric value.
|
|
82
|
+
ordinal even when they expose the native numeric value. `valueFormatter` can supply a frame name,
|
|
83
|
+
date, or state instead; enable `with-value` when sighted users also need that text. The callback is
|
|
84
|
+
called at most once per render and both presentations share its result. The visible text wraps at narrow
|
|
85
|
+
allocations and is not a live region, avoiding unsolicited announcements on every timer tick.
|
|
63
86
|
|
|
64
87
|
**Themeable custom properties:** `--lr-sequence-playback-icon-size` (default
|
|
65
88
|
`calc(var(--lr-icon-button-size) * 0.35)` — the play/pause glyph's size; applied as the button's
|
|
@@ -85,6 +108,19 @@ dimming at `itemCount <= 1`), `--lr-focus-ring-*`.
|
|
|
85
108
|
</script>
|
|
86
109
|
```
|
|
87
110
|
|
|
111
|
+
For caller-owned frame labels, use a property binding (not an attribute):
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
import '@aceshooting/lyra-ui/components/lr-sequence-playback.js';
|
|
115
|
+
import type { LyraSequencePlayback } from '@aceshooting/lyra-ui/components/media/sequence-playback/sequence-playback.class.js';
|
|
116
|
+
|
|
117
|
+
const frames = ['Initial state', 'Review', 'Final state'];
|
|
118
|
+
const playback = document.querySelector<LyraSequencePlayback>('lr-sequence-playback')!;
|
|
119
|
+
playback.itemCount = frames.length;
|
|
120
|
+
playback.withValue = true;
|
|
121
|
+
playback.valueFormatter = index => frames[index];
|
|
122
|
+
```
|
|
123
|
+
|
|
88
124
|
**Known gotchas:**
|
|
89
125
|
|
|
90
126
|
- `currentIndex` is re-clamped into `[0, itemCount)` as soon as `itemCount` shrinks (in
|
|
@@ -102,9 +138,8 @@ dimming at `itemCount <= 1`), `--lr-focus-ring-*`.
|
|
|
102
138
|
values cannot poison end conditions or the slider.
|
|
103
139
|
- `interval-ms` is clamped to the 16ms floor and the browser's finite timer ceiling: a non-finite or
|
|
104
140
|
lower value ticks at 16ms, while an oversized value uses the timer ceiling.
|
|
105
|
-
-
|
|
106
|
-
|
|
107
|
-
enhancement where the platform honors it.
|
|
141
|
+
- The compact default has no visible position readout. Opt in with `with-value`; formatting alone
|
|
142
|
+
updates `aria-valuetext` without adding visible content. The native range remains one-based.
|
|
108
143
|
- Calling `play()`/`pause()` programmatically (not via the button) gives no `aria-live`
|
|
109
144
|
announcement of the Play/Pause state change.
|
|
110
145
|
|
|
@@ -20,7 +20,7 @@ A build-lean `<lr-streaming-text>` variant for a consumer whose fenced-code `lan
|
|
|
20
20
|
covers every language it will ever stream, or who never renders fenced code at all. Every
|
|
21
21
|
capability — token coalescing, `contentMode` auto-detection, the blinking cursor, the
|
|
22
22
|
`lr-content-settled` event, the `languages` property, and the full forwarded Markdown configuration
|
|
23
|
-
surface (`tabSize`, `htmlMode`, `withoutGfm`, `withoutImages`, `linkTarget`, `internalLinkPrefix`, `headingOffset`,
|
|
23
|
+
surface (`tabSize`, `htmlMode`, `withoutGfm`, `withoutImages`, `linkTarget`, `linkSchemes`, `internalLinkPrefix`, `headingOffset`,
|
|
24
24
|
`withoutSyntaxHighlighting`, `headingAnchors`, `math`, `maxHeight`) — is identical to `<lr-streaming-text>`;
|
|
25
25
|
only which Markdown element Markdown mode composes differs: this variant renders
|
|
26
26
|
`<lr-markdown-core>` (`../markdown/markdown-core.js`) instead of `<lr-markdown>`, so importing this
|
|
@@ -48,7 +48,8 @@ attribute names, and defaults described under `<lr-streaming-text>`'s own **Prop
|
|
|
48
48
|
'sanitize'` (attribute `html-mode`); `withoutGfm: boolean = false` (attribute `without-gfm`);
|
|
49
49
|
`withoutImages: boolean = false` (attribute `without-images`); `linkTarget: string | null = '_blank'`
|
|
50
50
|
(attribute `link-target`, still guarded by the composed element's own
|
|
51
|
-
`rel="noopener noreferrer"` whenever a `target` is emitted); `
|
|
51
|
+
`rel="noopener noreferrer"` whenever a `target` is emitted); `linkSchemes?: string` (attribute
|
|
52
|
+
`link-schemes`); `internalLinkPrefix: string = ''`
|
|
52
53
|
(attribute `internal-link-prefix`); `headingOffset: number = 0` (attribute `heading-offset`);
|
|
53
54
|
`streamingRender: MarkdownStreamingRender = 'plain'` (attribute `streaming-render`, not reflected);
|
|
54
55
|
`codeBlockHeader: boolean = false` (attribute `code-block-header`); `withoutSyntaxHighlighting: boolean = false` (attribute
|
|
@@ -64,6 +64,9 @@ properties existed:
|
|
|
64
64
|
`<lr-markdown>`'s own `linkTarget`; the composed element always applies its own
|
|
65
65
|
`rel="noopener noreferrer"` guard whenever a `target` is emitted, including a forwarded
|
|
66
66
|
non-default value, and never a bare `opener`.
|
|
67
|
+
- `linkSchemes?: string` (attribute `link-schemes`) — forwarded to the composed `<lr-markdown>`'s
|
|
68
|
+
own `linkSchemes`; `link-schemes="https"` keeps only `https:` links in streamed model output and
|
|
69
|
+
renders every other link as plain text.
|
|
67
70
|
- `internalLinkPrefix: string = ''` (attribute `internal-link-prefix`) — forwarded to the composed
|
|
68
71
|
`<lr-markdown>`'s own `internalLinkPrefix`.
|
|
69
72
|
- `headingOffset: number = 0` (attribute `heading-offset`) — forwarded to the composed
|
|
@@ -169,7 +172,7 @@ showing the previous stream's stale final content for the length of the window.
|
|
|
169
172
|
Rendering itself is never reimplemented here: Markdown mode composes `<lr-markdown>` directly,
|
|
170
173
|
forwarding this component's own `streaming` through as that component's `streaming` hint prop,
|
|
171
174
|
`streamingRender`, `codeBlockHeader`, `languages` verbatim, and the rest of `<lr-markdown>`'s
|
|
172
|
-
configuration surface verbatim too (`tabSize`, `htmlMode`, `withoutGfm`, `withoutImages`, `linkTarget`,
|
|
175
|
+
configuration surface verbatim too (`tabSize`, `htmlMode`, `withoutGfm`, `withoutImages`, `linkTarget`, `linkSchemes`,
|
|
173
176
|
`internalLinkPrefix`, `headingOffset`, `withoutSyntaxHighlighting`, `headingAnchors`, `math`, `maxHeight` —
|
|
174
177
|
see **Properties** above); plain-text mode
|
|
175
178
|
renders into a `white-space: pre-wrap` span instead. The
|
|
@@ -25,12 +25,17 @@ identifier disappears, focus repairs to the nearest surviving occurrence without
|
|
|
25
25
|
external focus move.
|
|
26
26
|
|
|
27
27
|
**Properties:** `suggestions: readonly LyraChatSuggestion[] = []` (attribute: false) —
|
|
28
|
-
`LyraChatSuggestion { suggestionId: string; label: string; icon?: string; detail?: string; disabled?: boolean }`
|
|
28
|
+
`LyraChatSuggestion { suggestionId: string; label: string; icon?: string; iconName?: string; iconLibrary?: string; detail?: string; disabled?: boolean }`
|
|
29
29
|
(exported here). Identifiers must be nonempty and unique; invalid/later duplicates are omitted with
|
|
30
30
|
the first valid occurrence winning. The input is clone-owned, bounded, and frozen; reassign a new
|
|
31
|
-
array after changing the sequence or a row.
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
array after changing the sequence or a row. Each chip can show one decorative icon before its
|
|
32
|
+
text, in increasing precedence: `icon`, an optional literal hint (for example, an emoji) rendered as
|
|
33
|
+
text, so SVG or other markup in it is shown verbatim and never parsed; `iconName` (with optional
|
|
34
|
+
`iconLibrary`, a registered `lr-icon` library; omitted uses the default set), rendered as an
|
|
35
|
+
`<lr-icon>`; or a light-DOM element assigned to the per-suggestion `icon-<suggestionId>` slot, such
|
|
36
|
+
as an inline `<svg>` or `<lr-icon>`. A slotted `<svg>` without its own `width` is sized to `1em`.
|
|
37
|
+
Icons are always `aria-hidden`; the chip's accessible name stays its `label`. `detail` is an
|
|
38
|
+
optional secondary line. `disabled` marks a suggestion non-actionable: its chip
|
|
34
39
|
renders a genuinely disabled `<button>` (no roving tab stop, no hover/press affordance), activating
|
|
35
40
|
it emits nothing, and arrow-key/Home/End roving navigation steps past it. Empty renders nothing at
|
|
36
41
|
all. `wrap: boolean = false`
|
|
@@ -40,9 +45,13 @@ explicit empty string intentionally leaves the group unnamed.
|
|
|
40
45
|
|
|
41
46
|
**Events:** `lr-suggestion-select` — `detail: { suggestionId, label }`.
|
|
42
47
|
|
|
48
|
+
**Slots:** `icon-<suggestionId>` — decorative icon for the suggestion with that `suggestionId`
|
|
49
|
+
(`slot="icon-a"` for `suggestionId: 'a'`); it replaces that suggestion's `iconName`/`icon`, and the
|
|
50
|
+
fallback returns when the slotted element is removed.
|
|
51
|
+
|
|
43
52
|
**CSS parts:** `base` (the labeled group), `row` (the flex container holding the chips, present in
|
|
44
53
|
both the wrapping and the scrolling layout), `chip` (each suggestion button), `chip-icon` (the
|
|
45
|
-
optional decorative literal icon), `chip-label` (the primary text), `chip-detail` (the secondary
|
|
54
|
+
optional decorative icon wrapper: literal `icon`, `iconName` icon or slotted icon), `chip-label` (the primary text), `chip-detail` (the secondary
|
|
46
55
|
line, only rendered when `detail` is set).
|
|
47
56
|
|
|
48
57
|
**Themeable custom properties:** `--lr-suggestion-chips-justify` (default `flex-start`) — main-axis
|
|
@@ -77,3 +86,17 @@ Enter/Space activate. Renders inside an internal `lr-scroller` (`orientation="ho
|
|
|
77
86
|
chips.addEventListener("lr-suggestion-select", (e) => (composer.value = e.detail.label));
|
|
78
87
|
</script>
|
|
79
88
|
```
|
|
89
|
+
|
|
90
|
+
Vector icons per chip, by name or by slot:
|
|
91
|
+
|
|
92
|
+
```html
|
|
93
|
+
<lr-suggestion-chips id="starters">
|
|
94
|
+
<svg slot="icon-chart" viewBox="0 0 8 8"><circle cx="4" cy="4" r="4"></circle></svg>
|
|
95
|
+
</lr-suggestion-chips>
|
|
96
|
+
<script type="module">
|
|
97
|
+
document.querySelector("#starters").suggestions = [
|
|
98
|
+
{ suggestionId: "search", label: "Search the docs", iconName: "search" },
|
|
99
|
+
{ suggestionId: "chart", label: "Chart last week" },
|
|
100
|
+
];
|
|
101
|
+
</script>
|
|
102
|
+
```
|
|
@@ -97,7 +97,19 @@ selection.
|
|
|
97
97
|
|
|
98
98
|
**Methods:** `show(name: string): void` activates the matching enabled tab through the same
|
|
99
99
|
`lr-tab-hide` then `lr-tab-show` sequence as pointer/keyboard selection. Unknown, disabled, and
|
|
100
|
-
already-active names are no-ops.
|
|
100
|
+
already-active names are no-ops. `focusTab(name: string, options?: FocusOptions): boolean` moves
|
|
101
|
+
keyboard focus to the real `role="tab"` button of the matching enabled, non-inert tab and moves the
|
|
102
|
+
roving `tabindex` with it — for example after `show(name)`, or when closing an overlay opened from a
|
|
103
|
+
tab. Under `activation="auto"` focus and selection move together, so focusing an unselected tab
|
|
104
|
+
also selects it exactly as `show()` does (`lr-tab-hide`/`lr-tab-show`, never `lr-activate`); under
|
|
105
|
+
`activation="manual"` only focus moves. It returns `false` and changes nothing for an unknown,
|
|
106
|
+
disabled or inert name, or for a tab added since the group last read its children (await
|
|
107
|
+
`updateComplete` first). Calling `focus()` on an `<lr-tab>` descriptor does the same for that tab.
|
|
108
|
+
|
|
109
|
+
```js
|
|
110
|
+
group.show("activity");
|
|
111
|
+
group.focusTab("activity");
|
|
112
|
+
```
|
|
101
113
|
|
|
102
114
|
**Overflow and scrolling.** The tablist is a native scroll container (`overflow-x: auto`). A
|
|
103
115
|
horizontal row that does not fit additionally gets two pointer scroll controls flanking it inside
|
|
@@ -31,6 +31,11 @@ prevents activation; `active: boolean = false` (reflected) — SSR selection hin
|
|
|
31
31
|
the owning group after hydration; `closable: boolean = false` (reflected) — shows the mapped close
|
|
32
32
|
affordance.
|
|
33
33
|
|
|
34
|
+
**Methods:** `focus(options?: FocusOptions): void` forwards to the owning group's real tab button,
|
|
35
|
+
exactly as the group's `focusTab(panel)` (under `activation="auto"` that also selects the tab); a
|
|
36
|
+
disabled or inert tab, or a descriptor outside an upgraded group, is not focusable and is left
|
|
37
|
+
alone. `blur(): void` removes focus from that button when it has it.
|
|
38
|
+
|
|
34
39
|
**Events:** `lr-close` (no detail) — the Lyra-convention mapping of Shoelace's `sl-close`, emitted
|
|
35
40
|
when the close affordance is clicked or Delete is pressed on the focused owning tab. It bubbles, is
|
|
36
41
|
composed and noncancelable. A disabled tab never emits it. The tab never removes itself or its
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 57 parts, 27 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -51,9 +51,28 @@ resizable?, sortable?, sortValue?, defaultSortDir?: 'asc'|'desc', align?: 'start
|
|
|
51
51
|
priority?: 'medium'|'low',
|
|
52
52
|
sticky?: 'start'|'end', editTrigger?: 'double-click'|'always', editValue?, editLabel?: (row) => string,
|
|
53
53
|
editType?: 'text'|'number'|'select',
|
|
54
|
-
editOptions?: { value: string; label: string }[], footer?, cellStyle?, heatValue?,
|
|
54
|
+
editOptions?: { value: string; label: string }[], footer?, cellStyle?, cellPart?, heatValue?,
|
|
55
55
|
cell: (row) => unknown }` — `cell` is required for every `editTrigger` except `'always'`, whose
|
|
56
|
-
persistent editor renders unconditionally so the table's render path never falls back to it
|
|
56
|
+
persistent editor renders unconditionally so the table's render path never falls back to it.
|
|
57
|
+
**`cell()` output renders inside the table's shadow root**, so class rules from the page or from
|
|
58
|
+
the component that owns the table never reach it (only inherited properties and custom
|
|
59
|
+
properties cross): ``cell: () => html`<span class="muted">…</span>` `` stays unstyled by the
|
|
60
|
+
owner's `.muted` rule. Style cell content from outside with `::part()` instead —
|
|
61
|
+
`cellPart(row) => string | undefined` wraps that column's resting content in a `display: block`
|
|
62
|
+
`[part~='cell-content']` element that also carries every whitespace-separated name returned
|
|
63
|
+
(non-string results are ignored; no wrapper renders when `cellPart` is omitted, and none inside
|
|
64
|
+
an open inline editor), and a `part` attribute written inside a `cell()` template is equally a
|
|
65
|
+
part of the table. Prefix those names (`cell-…`) so they never collide with the table's own parts:
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
columns = [{ key: 'name', label: 'Name',
|
|
69
|
+
cellPart: (row) => (row.archived ? 'cell-archived' : undefined),
|
|
70
|
+
cell: (row) => html`${row.name}<span part="cell-secondary">${row.owner}</span>` }];
|
|
71
|
+
// in the owner's stylesheet
|
|
72
|
+
// lr-table::part(cell-archived) { opacity: 0.7; }
|
|
73
|
+
// lr-table::part(cell-secondary) { display: block; color: var(--lr-color-text-quiet); }
|
|
74
|
+
```
|
|
75
|
+
—
|
|
57
76
|
`ariaLabel` overrides that column header's accessible name (applied as the `<th>`'s `aria-label`
|
|
58
77
|
whenever set) — e.g. an icon-only `headerCell` with no plain-text `label` to fall back on; when
|
|
59
78
|
`label` is blank (or whitespace-only) and `ariaLabel` is also omitted, the header's accessible
|
|
@@ -519,7 +538,9 @@ geometrically identical to real rows, so `skeleton` is the part to target for th
|
|
|
519
538
|
look: `::part(skeleton) { --lr-skeleton-h: 2em; }`), and
|
|
520
539
|
`pagination` (the pager host; re-exported as `pagination-summary`,
|
|
521
540
|
`pagination-controls`, `pagination-pages`, `pagination-page`, `pagination-page-current`,
|
|
522
|
-
`pagination-page-field`, `pagination-page-input`, `pagination-page-count`, `pagination-button`), `cell-editor`,
|
|
541
|
+
`pagination-page-field`, `pagination-page-input`, `pagination-page-count`, `pagination-button`), `cell-editor`,
|
|
542
|
+
`cell-content` (the block wrapper around a body cell's resting content, rendered only for a column
|
|
543
|
+
defining `cellPart(row)`, which also carries every name that callback returns), `group-row`, `group-cell`, and `resize-handle` (the focusable column
|
|
523
544
|
separator, with a finite explicit ARIA maximum even when no CSS `maxWidth` was supplied). The built-in empty state is addressable rather than fixed: `empty` is the `<lr-empty>`
|
|
524
545
|
host in all three empty states, and it re-exports that element's own inner parts as `empty-base`,
|
|
525
546
|
`empty-icon`, `empty-heading`, `empty-description` and `empty-actions`. Note that the no-columns and
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 12 parts, 9 custom properties — see `lr-timeline.md`
|
|
13
13
|
- **Documented with** `lr-timeline`: see [lr-timeline.md](./lr-timeline.md).
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
@@ -69,6 +69,35 @@ Cluster windows are bounded from their first sorted position rather than transit
|
|
|
69
69
|
dense neighbour, so a large history becomes a useful sequence of markers rather than one axis-wide
|
|
70
70
|
cluster. An isolated item remains an ordinary timeline item. Activating a count marker is a
|
|
71
71
|
notification only; it never expands or selects items internally.
|
|
72
|
+
`ordered: boolean = false` (reflected) presents the items as an ordered sequence of steps:
|
|
73
|
+
`[part='base']` becomes a native `<ol>` (with an explicit `role="list"`, which WebKit otherwise
|
|
74
|
+
drops from an unstyled list), and each item's marker shows its step number as real, readable text
|
|
75
|
+
in `[part='marker-number']` — formatted for the item's effective locale and exposed to assistive
|
|
76
|
+
technology — instead of the decorative dot, so titles need not repeat "Step 1". The marker becomes
|
|
77
|
+
a ring (`--lr-timeline-marker-color` border, transparent fill, `--lr-timeline-marker-number-color`
|
|
78
|
+
text, default size `var(--lr-size-1-5rem)` that widens for a long number) and replaces the
|
|
79
|
+
`marker-icon` slot. Numbering follows document order, renumbers when items are added, removed or
|
|
80
|
+
reordered, clears a removed item's number, and works with every orientation and scale.
|
|
81
|
+
`start: number = 1` sets the first step number, like a native `<ol start>`; a non-finite value
|
|
82
|
+
numbers from 1 and fractions truncate. Ignored unless `ordered`.
|
|
83
|
+
|
|
84
|
+
```html
|
|
85
|
+
<lr-timeline ordered aria-label="Permit application">
|
|
86
|
+
<lr-timeline-item>Submit the form<span slot="timestamp">by 3 March</span></lr-timeline-item>
|
|
87
|
+
<lr-timeline-item>Pay the fee<span slot="description">Within ten working days.</span></lr-timeline-item>
|
|
88
|
+
<lr-timeline-item>Collect the permit</lr-timeline-item>
|
|
89
|
+
</lr-timeline>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Before upgrade:** with `@aceshooting/lyra-ui/reservations.css` (or the adoptable
|
|
93
|
+
`reservationStyles`) loaded, a server-rendered vertical flow timeline already has its upgraded
|
|
94
|
+
layout before any script runs: each item reserves the marker column, paints its marker and trailing
|
|
95
|
+
rail from the timeline's own tokens (the one place that stylesheet paints color), floats a slotted
|
|
96
|
+
`timestamp` to the inline end of the title line and places a slotted `description` beneath it. An
|
|
97
|
+
`ordered` timeline numbers its markers with a CSS counter from 1; for another `start`, also set
|
|
98
|
+
`style="counter-reset: lr-timeline-step N"` where N is `start - 1`. Write the title text first, then
|
|
99
|
+
the slotted elements. The step numbers become real text, and the list semantics apply, once the
|
|
100
|
+
definitions load. Horizontal and `scale="time"` timelines are not reserved.
|
|
72
101
|
`rangeStart` / `rangeEnd` (`Date | string | number`, attribute: false) pin the axis instead of
|
|
73
102
|
deriving it from the earliest/latest item; a reversed or non-finite pair falls back to the derived
|
|
74
103
|
range. An item with no parseable `timestamp` (including one supplied only through the `timestamp`
|
|
@@ -107,11 +136,14 @@ slot falls back to a color-coded dot), `timestamp` (wins outright over the
|
|
|
107
136
|
`timestamp` property whenever it has assigned content), and `description` (its part is hidden
|
|
108
137
|
entirely when empty).
|
|
109
138
|
|
|
110
|
-
**CSS parts:** timeline `base` — the `role="list"` flex container (no separate `list` part
|
|
139
|
+
**CSS parts:** timeline `base` — the `role="list"` flex container (no separate `list` part; an
|
|
140
|
+
`<ol>` while `ordered`). Item:
|
|
111
141
|
`cluster` — the native count button rendered while that item represents a cluster, with a 40px
|
|
112
142
|
minimum action surface; `cluster-count` — its painted count pill; `base`, `track`
|
|
113
143
|
(marker + rail spine, always the opposite axis from `base`), `marker`
|
|
114
|
-
(`aria-hidden="true"`, decorative
|
|
144
|
+
(`aria-hidden="true"`, decorative — except inside an `ordered` timeline, where it is the exposed
|
|
145
|
+
ring around the number), `marker-number` (the step number text, only inside an `ordered`
|
|
146
|
+
timeline), `rail` (the connecting segment; `visibility: hidden` rather than
|
|
115
147
|
removed on the last item, so marker alignment stays consistent), `content`, `header` (flex row
|
|
116
148
|
wrapping `title` and `timestamp`; wraps at narrow widths rather than truncating), `title`,
|
|
117
149
|
`timestamp` (hidden when there's nothing to show), `description`.
|
|
@@ -127,9 +159,11 @@ scrolling. On the item: `--lr-timeline-marker-size`
|
|
|
127
159
|
(default `var(--lr-size-1-25rem)`, both dimensions so the dot stays circular),
|
|
128
160
|
`--lr-timeline-rail-width` (default `var(--lr-border-width-medium)`), `--lr-timeline-rail-color`
|
|
129
161
|
(default `var(--lr-color-border-subtle)`), `--lr-timeline-marker-color` (default
|
|
130
|
-
`var(--lr-color-text-quiet)`, with a private default that changes per `variant`),
|
|
162
|
+
`var(--lr-color-text-quiet)`, with a private default that changes per `variant`),
|
|
163
|
+
`--lr-timeline-marker-number-color` (default `var(--lr-color-text)`, the step number inside an
|
|
164
|
+
`ordered` timeline's marker ring; the marker size defaults to `var(--lr-size-1-5rem)` there), and
|
|
131
165
|
`--lr-timeline-active-ring-color`
|
|
132
|
-
(defaults to the effective marker color). All
|
|
166
|
+
(defaults to the effective marker color). All six item hooks inherit from theme
|
|
133
167
|
ancestors; setting one directly on an item wins over both the inherited value and variant default.
|
|
134
168
|
|
|
135
169
|
Version 9 removes the legacy item `icon` slot; migrate marker glyphs to `slot="marker-icon"`.
|
|
@@ -82,7 +82,9 @@ later text renders normally.
|
|
|
82
82
|
`arrowPlacement: 'anchor'|'start'|'end'|'center' = 'anchor'` (attribute `arrow-placement`) and
|
|
83
83
|
`arrowPadding: number = 0` (attribute `arrow-padding`) — the same arrow trio `<lr-popover>`
|
|
84
84
|
documents (`llms/components/lr-popover.md`).
|
|
85
|
-
- `content: string = ''` — plain-text tooltip content, used when nothing is slotted
|
|
85
|
+
- `content: string = ''` — plain-text tooltip content, used when nothing is slotted. Whitespace-only
|
|
86
|
+
text in the content slot (template indentation around a `slot="trigger"` element) counts as
|
|
87
|
+
nothing, so `content` still paints and describes the trigger.
|
|
86
88
|
- `accessibleLabel: string = ''` (attribute **`aria-label`**) — a host `aria-label` wins by
|
|
87
89
|
attribute presence, including an explicitly empty value. When the attribute is absent, an
|
|
88
90
|
actionable popup with no property label uses the localized `popover` string.
|
|
@@ -70,6 +70,10 @@ data properties, at most 100 badges and 65,536 aggregate display-text units per
|
|
|
70
70
|
oversized rows fail visibly without compacting logical indices. The provider owns global key
|
|
71
71
|
uniqueness and immutable snapshot consistency; validation covers the bounded admitted window.
|
|
72
72
|
|
|
73
|
+
Source row names combine the visible label, description and badge names (a badge's `label` when
|
|
74
|
+
usable, otherwise its `text`). An explicit `accessibleLabel` overrides that default. Rows with
|
|
75
|
+
only blank display content use their stable `id`, while badge-only rows retain their badge name.
|
|
76
|
+
|
|
73
77
|
The source view mounts at most 301 rows, retaining four 100-row pages plus at most one focused
|
|
74
78
|
ready row (401 total). Range requests contain at most 100 rows, with at most two physically pending
|
|
75
79
|
reads. One projection call runs at a time with only the latest replacement queued. Loading/error
|
|
@@ -189,6 +189,7 @@ row is "active." `options.align` is `'start'`, `'end'`, or `'auto'` (default —
|
|
|
189
189
|
already fully visible); `options.behavior` (default `'smooth'`) is forced to `'auto'` under
|
|
190
190
|
`prefers-reduced-motion: reduce`. `index` is clamped to the effective source's `0…count-1` range.
|
|
191
191
|
In auto-height mode, estimate-based jumps are corrected as row and group-marker measurements arrive.
|
|
192
|
+
Measurements and scroll-anchor corrections apply together on the next frame.
|
|
192
193
|
That correction is bound to the source, key function, and target identity and is canceled on a new
|
|
193
194
|
target, data replacement, manual scroll intent, or disconnect, so late observations cannot pull a
|
|
194
195
|
newer view back to stale content.
|
|
@@ -372,7 +373,9 @@ default estimate with sparse `ResizeObserver` measurements for rows that have ac
|
|
|
372
373
|
the first frame.
|
|
373
374
|
- A sticky band only appears when `renderStickyGroup` _and_ at least one valid `groups` entry are
|
|
374
375
|
both present; `groups` alone renders positioned markers with nothing pinned, and
|
|
375
|
-
`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.
|
|
376
379
|
- **A row that renders a popup needs the active-row lift, and this is why `[part='row']` has one.**
|
|
377
380
|
Each row carries `will-change: transform` (a compositor hint for the per-frame translate), which
|
|
378
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.
|
|
43
|
-
| `@aceshooting/lyra-translations` | `^
|
|
42
|
+
| `@aceshooting/lyra-map` | `^1.5.2` | `lr-geojson-viewer`, `lr-map` |
|
|
43
|
+
| `@aceshooting/lyra-translations` | `^31.1.1` | _(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` |
|
|
@@ -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.
|
|
128
|
-
identify logical records, and `order` is canonical source order
|
|
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
|
|
@@ -352,14 +377,31 @@ upgrade:
|
|
|
352
377
|
```
|
|
353
378
|
|
|
354
379
|
It styles **only** `:not(:defined)` elements, inside an `@layer lr-reservations`, so it becomes inert
|
|
355
|
-
the moment a definition upgrades and can never fight a component's own layout. It sets no
|
|
356
|
-
no
|
|
380
|
+
the moment a definition upgrades and can never fight a component's own layout. It sets no `:root`
|
|
381
|
+
rules and no colors except a timeline's marker and rail (below).
|
|
357
382
|
|
|
358
383
|
**Every reservation is expressed with the same custom property and fallback token the component's
|
|
359
384
|
own stylesheet uses** — `--lr-chart-height` / `--lr-size-280px` for the chart family,
|
|
360
385
|
`--lr-map-height` for `lr-map`, `--lr-canvas-reserved-height` for graph/canvas surfaces,
|
|
361
|
-
`--lr-flag-aspect-ratio` for `lr-flag`, `--lr-form-control-height` for the field controls,
|
|
362
|
-
|
|
386
|
+
`--lr-flag-aspect-ratio` for `lr-flag`, `--lr-form-control-height` for the field controls,
|
|
387
|
+
`--lr-checkbox-label-indent` and `--lr-icon-button-size` for `lr-checkbox`, `--lr-badge-min-height`,
|
|
388
|
+
`--lr-badge-padding-inline` and `--lr-badge-font-size` for `lr-badge`, `--lr-chat-composer-padding`
|
|
389
|
+
for `lr-chat-composer` (plus its `--lr-line-height-normal` textarea line under
|
|
390
|
+
`actions-layout="below"`), and so on.
|
|
391
|
+
|
|
392
|
+
Covered tags: the chart family, `lr-map`, `lr-flag`, `lr-flow-canvas`, `lr-graph`,
|
|
393
|
+
`lr-knowledge-graph-explorer`, the inline form-control row (`lr-input`, `lr-number-input`,
|
|
394
|
+
`lr-select`, `lr-combobox`, `lr-date-input`, `lr-phone-input`, `lr-color-picker`, `lr-button`,
|
|
395
|
+
`lr-icon-button`), `lr-checkbox`, `lr-badge`, `lr-chat-composer`, the vertical flow
|
|
396
|
+
`lr-timeline`/`lr-timeline-item` pair, and the tab trio `lr-tab-group`/`lr-tab`/`lr-tab-panel`.
|
|
397
|
+
A timeline is the one reservation that paints color: its markers and rail, from the
|
|
398
|
+
`--lr-timeline-marker-*`/`--lr-timeline-rail-*` tokens, plus CSS-counter step numbers for an
|
|
399
|
+
`ordered` timeline, so a static page reads as a complete list before upgrade. Before upgrade a tab group lays its descriptors out as one
|
|
400
|
+
row of tab-sized boxes and shows only the panel that will be shown (the one marked `active`, else
|
|
401
|
+
the first), for the default top `placement`. The text-bearing reservations (`lr-checkbox`,
|
|
402
|
+
`lr-badge`, the tab trio) also set `font-family: var(--lr-font)`, as every defined Lyra host does,
|
|
403
|
+
because the reserved box is measured from the same text. The badge and checkbox reservations cover
|
|
404
|
+
their default `m` size; a non-default `size` reserves the default footprint. That is the point of shipping it rather than documenting measured pixel values: a hand-written
|
|
363
405
|
reservation rots silently the moment a component's default changes, whereas these track it, and
|
|
364
406
|
theming a component through its documented custom property re-themes its reservation with it.
|
|
365
407
|
|