@aceshooting/lyra-ui 30.5.0 → 30.7.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.
- package/CHANGELOG.md +78 -0
- package/README.md +1 -1
- package/dist/components/agent-tools/artifact-panel/artifact-panel.class.d.ts +7 -4
- package/dist/components/agent-tools/artifact-panel/artifact-panel.class.js +5 -5
- package/dist/components/conversation/code-block/onig.provenance.json +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-core.class.d.ts +11 -1
- package/dist/components/conversation/markdown/markdown-core.class.js +1 -1
- package/dist/components/conversation/markdown/markdown-progressive.js +2 -2
- 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 +11 -1
- package/dist/components/conversation/markdown/markdown.class.js +1 -1
- package/dist/components/conversation/message-parts/message-parts.class.d.ts +1 -1
- package/dist/components/conversation/message-parts/message-parts.class.js +1 -1
- package/dist/components/conversation/message-parts/message-parts.d.ts +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +8 -1
- package/dist/components/conversation/model-select/model-select.class.js +2 -2
- package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +5 -0
- package/dist/components/conversation/streaming-text/streaming-text-base.class.js +2 -2
- 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 +6 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +9 -2
- package/dist/components/conversation/voice-picker/voice-picker.class.js +2 -2
- package/dist/components/conversation/widget-renderer/default-registry.js +1 -1
- package/dist/components/conversation/widget-renderer/registry.d.ts +1 -27
- package/dist/components/conversation/widget-renderer/registry.js +1 -1
- package/dist/components/conversation/widget-renderer/resolve.d.ts +1 -29
- package/dist/components/conversation/widget-renderer/resolve.js +1 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.class.d.ts +1 -1
- package/dist/components/conversation/widget-renderer/widget-renderer.class.js +1 -1
- package/dist/components/forms/catalog-picker-base.d.ts +3 -1
- package/dist/components/forms/catalog-picker-base.js +3 -3
- package/dist/components/forms/combobox/combobox.class.d.ts +9 -2
- package/dist/components/forms/combobox/combobox.class.js +2 -2
- package/dist/components/forms/date-picker/date-input.class.d.ts +9 -2
- package/dist/components/forms/date-picker/date-input.class.js +2 -2
- package/dist/components/forms/input/input-shared.d.ts +9 -2
- package/dist/components/forms/input/input-shared.js +2 -2
- package/dist/components/forms/input/time-input.class.d.ts +9 -2
- package/dist/components/forms/input/time-input.class.js +2 -2
- package/dist/components/forms/input/time-input.styles.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +18 -3
- package/dist/components/forms/locale-picker/locale-picker.class.js +2 -2
- package/dist/components/forms/phone-input/phone-input.class.d.ts +9 -2
- package/dist/components/forms/phone-input/phone-input.class.js +2 -2
- package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
- package/dist/components/forms/select/select.class.d.ts +9 -2
- package/dist/components/forms/select/select.class.js +2 -2
- package/dist/components/forms/textarea/textarea.class.d.ts +9 -2
- package/dist/components/forms/textarea/textarea.class.js +2 -2
- package/dist/components/forms/token-input/token-input.class.d.ts +9 -2
- package/dist/components/forms/token-input/token-input.class.js +2 -2
- package/dist/components/forms/token-input/token-input.styles.js +1 -1
- package/dist/components/layout/dock-panel/dock-panel.class.d.ts +5 -2
- package/dist/components/layout/dock-panel/dock-panel.styles.js +1 -1
- package/dist/components/layout/menu/menu-item.class.d.ts +7 -4
- package/dist/components/layout/menu/menu-item.class.js +3 -2
- package/dist/components/layout/multi-split/multi-split.class.d.ts +73 -6
- package/dist/components/layout/multi-split/multi-split.class.js +4 -4
- package/dist/components/layout/multi-split/multi-split.styles.js +1 -1
- package/dist/components/layout/page/page.class.d.ts +7 -0
- package/dist/components/layout/page/page.styles.js +1 -1
- package/dist/components/media/flag/language-map.js +1 -1
- package/dist/components/media/image-viewer/image-viewer-panorama.d.ts +1 -5
- package/dist/components/media/image-viewer/image-viewer-panorama.js +1 -8
- package/dist/components/media/image-viewer/image-viewer.class.d.ts +1 -1
- package/dist/components/media/image-viewer/image-viewer.class.js +1 -1
- package/dist/components/media/map/map-control-options.d.ts +7 -3
- package/dist/components/media/map/map-control-options.js +1 -1
- package/dist/components/media/map/map-controls-lifecycle.js +1 -1
- package/dist/components/media/map/map-feature-loader.js +1 -1
- package/dist/components/media/map/map-loader.d.ts +10 -4
- package/dist/components/media/map/map-loader.js +1 -1
- package/dist/components/media/map/map-scene-admission.js +1 -0
- package/dist/components/media/map/map-scene-completion-adapter.js +1 -0
- package/dist/components/media/map/map-scene-completion-camera.js +1 -0
- package/dist/components/media/map/map-scene-configuration-controller.js +1 -0
- package/dist/components/media/map/map-scene-configuration.d.ts +15 -0
- package/dist/components/media/map/map-scene-configuration.js +1 -0
- package/dist/components/media/map/map-scene-controls.js +1 -0
- package/dist/components/media/map/map-scene-errors.js +1 -0
- package/dist/components/media/map/map-scene-line-layer.js +1 -0
- package/dist/components/media/map/map-scene-lines.js +1 -0
- package/dist/components/media/map/map-scene-owner.js +1 -0
- package/dist/components/media/map/map-scene-position-registry.js +1 -0
- package/dist/components/media/map/map-scene-render-controller.js +1 -0
- package/dist/components/media/map/map-scene-render-input.js +1 -0
- package/dist/components/media/map/map-scene-source-snapshot.js +1 -0
- package/dist/components/media/map/map-scene-status.js +1 -0
- package/dist/components/media/map/map-scene-types.d.ts +55 -0
- package/dist/components/media/map/map.class.d.ts +60 -12
- package/dist/components/media/map/map.class.js +23 -6
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +1 -1
- package/dist/components/media/sequence-playback/sequence-playback.class.js +1 -1
- package/dist/components/media/video/video.class.d.ts +1 -1
- package/dist/components/media/video/video.class.js +1 -1
- package/dist/components/retrieval/graph/graph-builtin-3d-engine.js +1 -1
- package/dist/components/retrieval/graph/graph-curvature.js +1 -0
- package/dist/components/retrieval/graph/graph-engine-columns.js +1 -1
- package/dist/components/retrieval/graph/graph-model.d.ts +4 -0
- package/dist/components/retrieval/graph/graph-node-renderer.d.ts +13 -0
- package/dist/components/retrieval/graph/graph-node-renderer.js +1 -0
- package/dist/components/retrieval/graph/graph-source-controller.js +1 -1
- package/dist/components/retrieval/graph/graph-spatial-controller.js +3 -1
- package/dist/components/retrieval/graph/graph-spatial.js +1 -1
- package/dist/components/retrieval/graph/graph-webgl-engine.js +1 -1
- package/dist/components/retrieval/graph/graph.class.d.ts +11 -3
- package/dist/components/retrieval/graph/graph.class.js +4 -4
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.d.ts +8 -2
- package/dist/components/retrieval/knowledge-graph-explorer/knowledge-graph-explorer.class.js +4 -2
- package/dist/events.d.ts +36 -1
- package/dist/framework-types.d.ts +1 -1
- package/dist/internal/collection-policy.js +1 -0
- package/dist/internal/collection-snapshot.js +1 -1
- package/dist/internal/default-strings/media.generated.js +1 -1
- package/dist/internal/default-strings/retrieval.generated.js +1 -1
- package/dist/internal/engine-3d-loader.d.ts +8 -2
- package/dist/internal/engine-3d-loader.js +1 -1
- package/dist/internal/form-control.styles.js +1 -1
- package/dist/internal/locale-loaders.generated.js +1 -1
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/map-camera-follow-controller.d.ts +9 -0
- package/dist/internal/map-camera-follow-controller.js +1 -0
- package/dist/internal/map-camera-follow-data.js +1 -0
- package/dist/internal/map-camera-follow-scene.js +1 -0
- package/dist/internal/map-camera-session-controller.d.ts +59 -0
- package/dist/internal/map-camera-session-controller.js +1 -0
- package/dist/internal/map-camera-session-data.d.ts +16 -0
- package/dist/internal/map-camera-session-data.js +1 -0
- package/dist/internal/map-camera-session.js +1 -0
- package/dist/internal/map-scene-session.js +1 -0
- package/dist/internal/media-panorama.d.ts +5 -0
- package/dist/internal/media-panorama.js +8 -0
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/sequence-playback-binding.js +1 -0
- package/dist/internal/typed-columns.d.ts +3 -1
- package/dist/internal/typed-columns.js +1 -1
- package/dist/internal/variants.d.ts +7 -0
- package/dist/internal/widget-default-registry.js +1 -0
- package/dist/internal/widget-document.d.ts +29 -0
- package/dist/internal/widget-document.js +1 -0
- package/dist/internal/widget-type-registry.d.ts +27 -0
- package/dist/internal/widget-type-registry.js +1 -0
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/map-camera-session.d.ts +10 -0
- package/dist/map-camera-session.js +1 -0
- package/dist/sequence-time-binding.d.ts +3 -0
- package/dist/sequence-time-binding.js +1 -0
- package/dist/simulation-clock.d.ts +3 -0
- package/dist/simulation-clock.js +1 -0
- package/dist/time-index.d.ts +3 -0
- package/dist/time-index.js +1 -0
- package/llms/components/lr-artifact-panel.md +8 -3
- package/llms/components/lr-combobox.md +2 -0
- package/llms/components/lr-country-picker.md +2 -0
- package/llms/components/lr-currency-picker.md +2 -0
- package/llms/components/lr-date-picker.md +2 -0
- package/llms/components/lr-dock-panel.md +5 -2
- package/llms/components/lr-graph.md +121 -3
- package/llms/components/lr-input.md +2 -0
- package/llms/components/lr-knowledge-graph-explorer.md +6 -1
- package/llms/components/lr-locale-picker.md +8 -1
- package/llms/components/lr-map.md +315 -7
- package/llms/components/lr-markdown-core.md +2 -1
- package/llms/components/lr-markdown.md +12 -1
- package/llms/components/lr-menu.md +5 -2
- package/llms/components/lr-model-select.md +2 -0
- package/llms/components/lr-multi-split.md +53 -4
- package/llms/components/lr-native-time-input.md +2 -0
- package/llms/components/lr-number-input.md +2 -0
- package/llms/components/lr-page.md +9 -1
- package/llms/components/lr-phone-input.md +2 -0
- package/llms/components/lr-select.md +2 -0
- package/llms/components/lr-sequence-playback.md +44 -0
- 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 +6 -2
- package/llms/components/lr-textarea.md +2 -0
- package/llms/components/lr-time-input.md +2 -0
- package/llms/components/lr-time-zone-picker.md +2 -0
- package/llms/components/lr-token-input.md +2 -0
- package/llms/components/lr-unit-picker.md +2 -0
- package/llms/components/lr-voice-picker.md +2 -0
- package/llms/peers.md +7 -7
- package/llms/shared/imports-and-registration.md +1 -1
- package/llms/shared/localization-and-rtl.md +15 -1
- package/llms/shared/testing-and-utilities.md +184 -0
- package/llms/shared.md +200 -2
- package/locales.json +1 -1
- package/package.json +37 -21
- package/registrations.json +1 -1
- package/skills/lyra-ui/lyra-gen.md +2 -0
- /package/dist/{components/media/image-viewer/image-viewer-panorama.styles.js → internal/media-panorama.styles.js} +0 -0
|
@@ -79,6 +79,16 @@ uses for its own `[part="body"]`.
|
|
|
79
79
|
Markdown still renders; `trusted` renders raw HTML without sanitization and is only for trusted
|
|
80
80
|
content. In escape mode, a consumer `renderer.text` or `renderer.html` override replaces the
|
|
81
81
|
escaping and is the consumer's responsibility.
|
|
82
|
+
- `withoutImages: boolean = false` (attribute `without-images`) — the untrusted-content switch for
|
|
83
|
+
images, in every `htmlMode`. The scheme allowlist alone still admits any `http(s)`, relative or
|
|
84
|
+
`data:` image, so untrusted Markdown (a streamed language-model answer, for example) can make the
|
|
85
|
+
page request an arbitrary URL as soon as it renders. With `without-images`, every Markdown image
|
|
86
|
+
renders as its alt text, exactly like a refused URL, and the finished HTML is enforced too:
|
|
87
|
+
raw-HTML `<img>` and `<input type="image">` become their alt text, `<picture>` sources and SVG
|
|
88
|
+
`<image>`/`<feImage>` are removed, and `<video>` loses its `poster`. In `sanitize` mode authored
|
|
89
|
+
`<style>` elements are also removed; `trusted` mode does not inspect authored CSS. Changing it
|
|
90
|
+
re-renders. Pair it with the default `sanitize` mode for language-model output:
|
|
91
|
+
`<lr-markdown without-images></lr-markdown>`.
|
|
82
92
|
- `withoutGfm: boolean = false` (attribute `without-gfm`) — disables GitHub-flavored Markdown
|
|
83
93
|
(tables, strikethrough, autolinks, task lists), which is on by default.
|
|
84
94
|
GFM task-list checkboxes stay disabled. Unordered tasks replace their bullets and align their
|
|
@@ -370,7 +380,8 @@ can cover the other. Both surfaces use `white-space: pre` and scroll horizontall
|
|
|
370
380
|
relative URLs — plus `data:` for images only), independently of `htmlMode` — `sanitize` and
|
|
371
381
|
`escape` both reject a disallowed scheme (e.g. `javascript:`) by dropping the anchor/image and
|
|
372
382
|
rendering only its text/alt content, exactly like the malformed-`href` case above; only
|
|
373
|
-
`html-mode="trusted"` skips this check, consistent with its documented full bypass.
|
|
383
|
+
`html-mode="trusted"` skips this check, consistent with its documented full bypass. The allowlist
|
|
384
|
+
does not stop an allowed image URL from being fetched; set `without-images` for that.
|
|
374
385
|
- `target` is not in DOMPurify's default attribute allowlist (unlike `part`/`rel`/`class`, which
|
|
375
386
|
already are), so sanitization is called with `ADD_ATTR: ['target']` — without that, every rendered
|
|
376
387
|
link's `target` would be silently stripped by sanitization even though the anchor itself survives.
|
|
@@ -145,8 +145,11 @@ A focusable action row owned by `<lr-menu>`. The host itself carries `role="menu
|
|
|
145
145
|
`[part="base"]` renders as a real `<a href=…>` instead of a `<span>`, and activation (click, or
|
|
146
146
|
the owning menu's Enter/Space handling, which forwards through `click()` for a link item so the
|
|
147
147
|
anchor's own native default action runs) navigates there in addition to firing the usual
|
|
148
|
-
`select()`/`lr-select` contract.
|
|
149
|
-
|
|
148
|
+
`select()`/`lr-select` contract. The anchor carries the row's accessible name as its own
|
|
149
|
+
`aria-label` (a non-empty host `aria-label` wins, otherwise the visible label) and keeps it live
|
|
150
|
+
when either changes, because its visible label sits behind the decorative label wrapper. An
|
|
151
|
+
unsafe/unparseable value falls back to the plain `<span>`, matching `lr-button`'s identical
|
|
152
|
+
fallback
|
|
150
153
|
- `target?: string` — native anchor `target`, used only while `href` resolves to a link. Setting it
|
|
151
154
|
(e.g. `'_blank'`) always force-adds `noopener noreferrer` to the rendered anchor's `rel`,
|
|
152
155
|
matching `lr-button`'s identical pattern
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-model-select`
|
|
18
18
|
|
|
19
|
+
`labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
|
|
20
|
+
|
|
19
21
|
The model list follows the [shared surface treatment](../shared/styles-and-tokens.md);
|
|
20
22
|
its editing field retains an opaque fill.
|
|
21
23
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 3 parts,
|
|
12
|
+
- **Themeable via** 3 parts, 9 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
|
---
|
|
@@ -103,7 +103,10 @@ needs a different scrolling surface.
|
|
|
103
103
|
doesn't resolve to a length. Also reflected as `data-effective-orientation` (only present while
|
|
104
104
|
`orientationBreakpoint` resolves to a usable length).
|
|
105
105
|
- `storageKey?: string` (attribute `storage-key`) — persists a versioned list of `{ panelId, size }`
|
|
106
|
-
records to `localStorage` under `` `lr-multi-split:${key}:panels` ``.
|
|
106
|
+
records to `localStorage` under `` `lr-multi-split:${key}:panels` ``. While a panel is folded
|
|
107
|
+
(`collapsedPanels`) the record is version 2 and a folded panel's entry adds `collapsed: true` and
|
|
108
|
+
the `expandedSize` it returns to; with nothing folded the original version-1 shape is written, and
|
|
109
|
+
both versions restore. Every direct panel must have
|
|
107
110
|
a unique, nonempty, whitespace-stable `panel-id`; a missing, surrounding-whitespace, or duplicate identity fails persistence closed without
|
|
108
111
|
disabling the live split. Restores and same-instance membership reconciliation follow `panelId`,
|
|
109
112
|
so a reorder/replacement never transfers a saved size to a different business panel.
|
|
@@ -205,6 +208,24 @@ number; maxPx?: number; minPercent?: number; maxPercent?: number }`, index-align
|
|
|
205
208
|
releases a pin, so ordinary resizing inside one band leaves it alone. Left unset (the default), a
|
|
206
209
|
pin survives every band and orientation change until a consumer writes `'auto'` — the pre-existing
|
|
207
210
|
behavior.
|
|
211
|
+
- `collapsedPanels: string[] = []` (attribute: false) — the `panel-id`s of panels folded to a narrow
|
|
212
|
+
rail strip by a host control, at any container width and for any panel (not only an edge one).
|
|
213
|
+
Empty (the default) leaves the split exactly as before. A collapsed panel clamps along the resize
|
|
214
|
+
axis to `--lr-multi-split-collapsed-panel-size` (default `var(--lr-size-2-5rem)`), carries a
|
|
215
|
+
`data-panel-collapsed` marker, clips its overflow, and stays rendered: the panel's own content
|
|
216
|
+
paints the strip (a rotated title, an expand control) under `[data-panel-collapsed]` and takes its
|
|
217
|
+
full content out of the tab order itself (for example `display: none` or `inert` on the hidden
|
|
218
|
+
region). Its share moves to the open panels in proportion to their sizes, never past a panel's
|
|
219
|
+
`panelConstraints` maximum (a capped panel's surplus goes to the others); its `sizes` entry reads
|
|
220
|
+
`0` while folded, and expanding restores the share it had when it folded, reclaimed from the open
|
|
221
|
+
panels' room above their minimums. Requires the full `panel-id` identity model (otherwise the set
|
|
222
|
+
is ignored); unknown ids are ignored, and at least one panel stays open (a set naming every panel
|
|
223
|
+
leaves the last one open). Assigning it is silent, like `sizes`; a `sizes` assignment made
|
|
224
|
+
together with it may already describe the fold (zero entries for the folded panels), otherwise a
|
|
225
|
+
`sizes` value with a non-zero entry for a folded panel is rejected like any invalid layout. A
|
|
226
|
+
valid `storageKey` layout restores the set, unless this property already names panels. The
|
|
227
|
+
responsive `collapse` pane is independent: while it is `'rail'`/`'floating'` its own state governs
|
|
228
|
+
that panel, and a per-panel fold of the same panel shows again once it is `'wide'`.
|
|
208
229
|
|
|
209
230
|
**Methods:** `expandPane()`, `collapsePane()` and `togglePane()` drive the collapse feature
|
|
210
231
|
semantically, each picking the mechanism the pane's *current band* provides rather than its pinned
|
|
@@ -220,6 +241,24 @@ write does not. They are named `…Pane()` rather than `expand()`/`collapse()`/`
|
|
|
220
241
|
`collapse` is already the pane-selection property, following `<lr-page>`'s `showNavigation()` trio.
|
|
221
242
|
The component still renders no trigger of its own — wire these to your own control.
|
|
222
243
|
|
|
244
|
+
`collapsePanel(panel)`, `expandPanel(panel)` and `togglePanel(panel)` fold and unfold one panel of
|
|
245
|
+
`collapsedPanels`; `panel` is its `panel-id` or the panel element. Each applies synchronously:
|
|
246
|
+
`sizes` is redistributed, the layout persists under `storageKey` (with the collapsed set), the panel
|
|
247
|
+
is decorated, and `lr-multi-split-panel-collapse-change` fires. Each returns whether anything
|
|
248
|
+
changed: `false` for an unknown panel, one already in the requested state, the last open panel, or a
|
|
249
|
+
split without valid `panel-id`s. Called before the first update, they only record the request,
|
|
250
|
+
silently. Wire them to a chevron in each panel's header and mirror the fold onto that control's
|
|
251
|
+
`aria-expanded` from the event or the `data-panel-collapsed` marker:
|
|
252
|
+
|
|
253
|
+
```js
|
|
254
|
+
split.addEventListener('lr-multi-split-panel-collapse-change', (event) => {
|
|
255
|
+
const { panelId, collapsed } = event.detail;
|
|
256
|
+
const toggle = split.querySelector(`[panel-id="${panelId}"] .toggle`);
|
|
257
|
+
toggle.setAttribute('aria-expanded', String(!collapsed));
|
|
258
|
+
});
|
|
259
|
+
toggleButton.addEventListener('click', () => split.togglePanel(toggleButton.closest('[panel-id]')));
|
|
260
|
+
```
|
|
261
|
+
|
|
223
262
|
`collapse`'s three resulting states — `'wide'` (default, today's plain layout) / `'rail'` / `'floating'`
|
|
224
263
|
— are exposed as: a `data-collapse-state` attribute on both the host and the collapsing panel element
|
|
225
264
|
itself (absent for `'wide'`/`collapse="none"`); and the `lr-multi-split-collapse-change` event below. The
|
|
@@ -265,7 +304,12 @@ Forced closes emit no request. Direct `open` writes and no-op dismissals emit ne
|
|
|
265
304
|
`lr-multi-split-constraints-invalid` (`detail: LyraMultiSplitConstraintIssueDetail`, fired once per configuration when the
|
|
266
305
|
configured panel minimums/maximums cannot fit the track; resizing the container does not repeat it; the infeasible set is rejected for interaction and a
|
|
267
306
|
normalized percent minimum is used instead), `lr-multi-split-orientation-change` (`detail: { orientation }`,
|
|
268
|
-
fired only when an enabled `orientationBreakpoint` actually changes `effectiveOrientation`)
|
|
307
|
+
fired only when an enabled `orientationBreakpoint` actually changes `effectiveOrientation`),
|
|
308
|
+
`lr-multi-split-panel-collapse-change` (`detail: LyraMultiSplitPanelCollapseChangeDetail = { panelId,
|
|
309
|
+
collapsed, collapsedPanels, sizes }`, an immutable snapshot fired when `collapsePanel()`,
|
|
310
|
+
`expandPanel()` or `togglePanel()` folds or unfolds a panel, after the redistributed `sizes` are
|
|
311
|
+
applied and persisted and the `data-panel-collapsed` marker is set; never for a direct
|
|
312
|
+
`collapsedPanels`/`sizes` assignment or a stored-layout restore)
|
|
269
313
|
|
|
270
314
|
**Slots:** default (each direct child element is one panel; set a unique `panel-id` on every child
|
|
271
315
|
when `storage-key` is used).
|
|
@@ -273,7 +317,9 @@ when `storage-key` is used).
|
|
|
273
317
|
**CSS parts:** `base` (`position: relative`, so the `'floating'` state can anchor to it), `divider`
|
|
274
318
|
(carries `aria-disabled="true"` and is drag/keyboard-inert while its adjacent panel is collapsed;
|
|
275
319
|
while that panel is `'floating'` it takes no track and paints no line, but stays focusable as the
|
|
276
|
-
collapse-focus fallback; beside a `'rail'` panel it keeps both
|
|
320
|
+
collapse-focus fallback; beside a `'rail'` panel it keeps both; beside a `collapsedPanels` panel it
|
|
321
|
+
instead resizes the nearest open panel on each side, reports that leading panel as `aria-valuenow`
|
|
322
|
+
and names those two panels in its label, and is disabled only when one side has no open panel),
|
|
277
323
|
`backdrop` (the `'floating'` drawer's scrim — only rendered while `collapseState === 'floating'` and
|
|
278
324
|
`open`)
|
|
279
325
|
|
|
@@ -304,6 +350,9 @@ needed against the inline style the component rewrites on every render.
|
|
|
304
350
|
`collapse` anchors the drawer to, so one declaration insets all three anchored edges; the free inline
|
|
305
351
|
edge stays governed by the panel's own width. Unset, the drawer is flush with its container exactly
|
|
306
352
|
as before.
|
|
353
|
+
`--lr-multi-split-collapsed-panel-size` (default `var(--lr-size-2-5rem)`) sets the rail a
|
|
354
|
+
`collapsedPanels` panel clamps to: its inline size in a horizontal split, its block size in a
|
|
355
|
+
vertical one. Set it on the split or an ancestor.
|
|
307
356
|
Otherwise shared tokens only.
|
|
308
357
|
|
|
309
358
|
**Optional peer deps:** none.
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-native-time-input`
|
|
18
18
|
|
|
19
|
+
Attribute `label-display` (`'visible'` default, or `'hidden'`) removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`").
|
|
20
|
+
|
|
19
21
|
The Lyra 7 browser-native time field preserved under an explicit tag. It shares the input
|
|
20
22
|
implementation with `lr-input`, forces its internal native input to `type="time"` on construction and reconnect, and retypes
|
|
21
23
|
`min`/`max` so time-shaped attributes such as `09:00:30` are forwarded verbatim instead of parsed
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-number-input`
|
|
18
18
|
|
|
19
|
+
Attribute `label-display` (`'visible'` default, or `'hidden'`) removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`").
|
|
20
|
+
|
|
19
21
|
A numeric field with the complete `lr-input` form, validation and native-editing contract, plus its
|
|
20
22
|
own increment/decrement stepper pair. Its constructor and `connectedCallback()` both force
|
|
21
23
|
`type = 'number'`; all inherited `lr-input` form and editing APIs remain available.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 22 parts,
|
|
12
|
+
- **Themeable via** 22 parts, 26 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
|
---
|
|
@@ -140,6 +140,14 @@ var(--lr-color-mix-partner) var(--lr-color-mix-active))`),
|
|
|
140
140
|
`--lr-page-navigation-drawer-bg` (default `var(--lr-color-surface-overlay)`), and
|
|
141
141
|
`--lr-page-navigation-drawer-shadow` (default `var(--lr-shadow-l)`).
|
|
142
142
|
|
|
143
|
+
The sticky banner, header, and subheader each paint an opaque surface so main content scrolling
|
|
144
|
+
underneath never shows through: `--lr-page-banner-bg`, `--lr-page-header-bg`, and
|
|
145
|
+
`--lr-page-subheader-bg` (each default `var(--lr-color-surface)`, so they follow light and dark
|
|
146
|
+
themes). They are inherited inline fallbacks like the paints above, so set one on the Page or any
|
|
147
|
+
ancestor to retheme only that region; `::part(header)` and its siblings still win. A region named in
|
|
148
|
+
`disable-sticky` drops back to a transparent background, and the non-sticky `footer` is never
|
|
149
|
+
painted.
|
|
150
|
+
|
|
143
151
|
`disable-sticky` is a whitespace-token attribute, not a comma-separated value. Accepted tokens are
|
|
144
152
|
`banner`, `header`, `subheader`, `menu`, and `aside`; each only disables that region. Sticky offsets
|
|
145
153
|
use the three configured height properties, so set them to the real minimum heights when those rows
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-phone-input`
|
|
18
18
|
|
|
19
|
+
`labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
|
|
20
|
+
|
|
19
21
|
A form-associated, country-aware telephone field. The submitted `value` is either canonical E.164
|
|
20
22
|
(for example `+352621123456`) or `''` while the editable input is empty, incomplete, or invalid.
|
|
21
23
|
Numbering-plan metadata and national formatting stay outside Lyra's base bundle: supply a
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-select`
|
|
18
18
|
|
|
19
|
+
`labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
|
|
20
|
+
|
|
19
21
|
Floating form-control panels follow the [shared surface treatment](../shared/styles-and-tokens.md).
|
|
20
22
|
Editing fields and inline color editors retain opaque interiors.
|
|
21
23
|
|
|
@@ -109,3 +109,47 @@ dimming at `itemCount <= 1`), `--lr-focus-ring-*`.
|
|
|
109
109
|
announcement of the Play/Pause state change.
|
|
110
110
|
|
|
111
111
|
---
|
|
112
|
+
|
|
113
|
+
### Shared epoch-time binding
|
|
114
|
+
|
|
115
|
+
Import `createSimulationClock` from `@aceshooting/lyra-ui/simulation-clock.js`, `createTimeIndex`
|
|
116
|
+
from `@aceshooting/lyra-ui/time-index.js`, and `bindSequencePlayback` from
|
|
117
|
+
`@aceshooting/lyra-ui/sequence-time-binding.js`. Register the control separately with
|
|
118
|
+
`@aceshooting/lyra-ui/components/lr-sequence-playback.js`; the helper registers nothing.
|
|
119
|
+
|
|
120
|
+
```js
|
|
121
|
+
const samples = createTimeIndex([Date.UTC(2026, 0, 1), Date.UTC(2026, 0, 1) + 4000,
|
|
122
|
+
Date.UTC(2026, 0, 1) + 13000]);
|
|
123
|
+
const clock = createSimulationClock({ range: [samples.instantAt(0), samples.instantAt(2)],
|
|
124
|
+
instant: samples.instantAt(0) });
|
|
125
|
+
const release = bindSequencePlayback(playback, clock, samples);
|
|
126
|
+
const unsubscribe = clock.subscribe(({ instant }) => updateApplicationViews(instant));
|
|
127
|
+
// When the application scope ends:
|
|
128
|
+
release(); unsubscribe(); clock.dispose();
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
The bound slider remains sample-index based; irregular sample durations come from the shared clock.
|
|
132
|
+
`itemCount` and `currentIndex` report the displayed count and lower sample index. The binding owns
|
|
133
|
+
those values: direct property/attribute writes do not seek shared time. `intervalMs` and
|
|
134
|
+
`withoutLoop` remain dormant while bound. Playback is forward-only and stops at the clock range end.
|
|
135
|
+
`goTo()` requests a sample timestamp, pauses, then emits one step even at the same index;
|
|
136
|
+
`next()`/`previous()` retain replay state and do nothing at their displayed endpoints. Clock range
|
|
137
|
+
clamping wins: event detail reports the actual mapped index, not an unreachable requested sample.
|
|
138
|
+
Empty bindings disable navigation/play without pausing other clock consumers. Singleton `goTo(0)`
|
|
139
|
+
can explicitly seek/pause; disabled UI prevents accidental activation.
|
|
140
|
+
|
|
141
|
+
`lr-play`/`lr-pause` reflect effective replay transitions; `lr-sequence-step` retains exactly
|
|
142
|
+
`{ currentIndex }`. Fractional movement within a sample emits no step, crossing several samples
|
|
143
|
+
emits one, and manual actions do not duplicate their subscription-driven projection. A pause
|
|
144
|
+
transition precedes its manual step. Commands are synchronous except commands issued during clock
|
|
145
|
+
fan-out, whose accepted projection is deferred to the next delivery. Reentrant release/disconnect
|
|
146
|
+
retires the old event continuation.
|
|
147
|
+
|
|
148
|
+
Attach/detach and restoration emit no synthetic play/pause/step events. Release restores standalone
|
|
149
|
+
index values paused. Host `hidden = true`, disconnect, adoption, or abort releases only that
|
|
150
|
+
control; other subscribers continue. Clock disposal releases all of its bindings and subscribers.
|
|
151
|
+
Show/reconnect requires explicit rebinding. Ancestor
|
|
152
|
+
CSS visibility is not observed. Import helper and control from the same package module instance;
|
|
153
|
+
duplicate installed copies do not share private attachment authority. Unsupported, inactive or
|
|
154
|
+
already-bound hosts fail before ownership transfer. See the shared clock utilities guide for
|
|
155
|
+
scheduling, live/replay, disposal and error-code contracts.
|
|
@@ -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`, `linkTarget`, `internalLinkPrefix`, `headingOffset`,
|
|
23
|
+
surface (`tabSize`, `htmlMode`, `withoutGfm`, `withoutImages`, `linkTarget`, `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
|
|
@@ -45,7 +45,8 @@ concrete-grammar priority and combined-map reuse as `<lr-streaming-text>`. The r
|
|
|
45
45
|
`<lr-markdown-core>`'s configuration surface forwards verbatim too, sharing the same properties,
|
|
46
46
|
attribute names, and defaults described under `<lr-streaming-text>`'s own **Properties** above:
|
|
47
47
|
`tabSize: number = 4` (attribute `tab-size`); `htmlMode: 'sanitize' | 'escape' | 'trusted' =
|
|
48
|
-
'sanitize'` (attribute `html-mode`); `withoutGfm: boolean = false` (attribute `without-gfm`);
|
|
48
|
+
'sanitize'` (attribute `html-mode`); `withoutGfm: boolean = false` (attribute `without-gfm`);
|
|
49
|
+
`withoutImages: boolean = false` (attribute `without-images`); `linkTarget: string | null = '_blank'`
|
|
49
50
|
(attribute `link-target`, still guarded by the composed element's own
|
|
50
51
|
`rel="noopener noreferrer"` whenever a `target` is emitted); `internalLinkPrefix: string = ''`
|
|
51
52
|
(attribute `internal-link-prefix`); `headingOffset: number = 0` (attribute `heading-offset`);
|
|
@@ -57,6 +57,9 @@ properties existed:
|
|
|
57
57
|
the composed `<lr-markdown>`'s own `htmlMode`.
|
|
58
58
|
- `withoutGfm: boolean = false` (attribute `without-gfm`) — forwarded to the composed
|
|
59
59
|
`<lr-markdown>`'s own `withoutGfm`.
|
|
60
|
+
- `withoutImages: boolean = false` (attribute `without-images`) — forwarded to the composed
|
|
61
|
+
`<lr-markdown>`'s own `withoutImages`; set it when streaming untrusted language-model output so
|
|
62
|
+
an answer's images render as alt text instead of loading.
|
|
60
63
|
- `linkTarget: string | null = '_blank'` (attribute `link-target`) — forwarded to the composed
|
|
61
64
|
`<lr-markdown>`'s own `linkTarget`; the composed element always applies its own
|
|
62
65
|
`rel="noopener noreferrer"` guard whenever a `target` is emitted, including a forwarded
|
|
@@ -166,7 +169,7 @@ showing the previous stream's stale final content for the length of the window.
|
|
|
166
169
|
Rendering itself is never reimplemented here: Markdown mode composes `<lr-markdown>` directly,
|
|
167
170
|
forwarding this component's own `streaming` through as that component's `streaming` hint prop,
|
|
168
171
|
`streamingRender`, `codeBlockHeader`, `languages` verbatim, and the rest of `<lr-markdown>`'s
|
|
169
|
-
configuration surface verbatim too (`tabSize`, `htmlMode`, `withoutGfm`, `linkTarget`,
|
|
172
|
+
configuration surface verbatim too (`tabSize`, `htmlMode`, `withoutGfm`, `withoutImages`, `linkTarget`,
|
|
170
173
|
`internalLinkPrefix`, `headingOffset`, `withoutSyntaxHighlighting`, `headingAnchors`, `math`, `maxHeight` —
|
|
171
174
|
see **Properties** above); plain-text mode
|
|
172
175
|
renders into a `white-space: pre-wrap` span instead. The
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [conversation](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/conversation.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 6 parts,
|
|
12
|
+
- **Themeable via** 6 parts, 6 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
|
---
|
|
@@ -53,7 +53,11 @@ start). `--lr-suggestion-chips-hover-bg` (default `var(--lr-color-brand-quiet)`)
|
|
|
53
53
|
background on hover. `--lr-suggestion-chips-hover-border` (default `var(--lr-color-brand)`) — a
|
|
54
54
|
`chip`'s border color on hover. All three are declared as `var()` fallbacks at the point of use, not
|
|
55
55
|
on `:host`. `--lr-suggestion-chips-disabled-opacity` (default `var(--lr-opacity-disabled)`) — opacity of a chip whose
|
|
56
|
-
suggestion sets `disabled`.
|
|
56
|
+
suggestion sets `disabled`. `--lr-suggestion-chips-label-lines` (default `1`; `3` when `wrap` is
|
|
57
|
+
set) — how many lines a `chip-label` shows before it is clamped with an ellipsis, so full-question
|
|
58
|
+
starter prompts stay readable in a narrow chat column. `--lr-suggestion-chips-chip-max-inline-size`
|
|
59
|
+
(default `var(--lr-size-16rem)`) — each chip's maximum inline size; in a `wrap` row it is further
|
|
60
|
+
clamped to the row's inline size, so a chip never overflows its container. Plus shared tokens `--lr-space-xs/-m/-2xs`,
|
|
57
61
|
`--lr-color-border/-surface/-text/-text-quiet`, `--lr-radius-pill`, `--lr-font-size-xs`,
|
|
58
62
|
`--lr-focus-ring-width/-color/-offset`.
|
|
59
63
|
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-textarea`
|
|
18
18
|
|
|
19
|
+
`labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
|
|
20
|
+
|
|
19
21
|
A multiline plain-text input primitive, form-associated (participates in native `<form>`
|
|
20
22
|
submission/validation/reset via `name`/`value`/`disabled`/`required`/`checkValidity()`/
|
|
21
23
|
`reportValidity()`). Ships an opt-in `label`/`hint`/`errorText` form-control chrome mirroring
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-time-input`
|
|
18
18
|
|
|
19
|
+
`labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
|
|
20
|
+
|
|
19
21
|
A locale-aware segmented field and column picker mirroring `wa-time-input`. Its wire and submitted
|
|
20
22
|
value is always timezone-free, 24-hour ASCII: `HH:mm`, or `HH:mm:ss` when seconds are visible.
|
|
21
23
|
Locale changes segment order, separators, digits, and day-period labels — never the wire value.
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-time-zone-picker`
|
|
18
18
|
|
|
19
|
+
Attribute `label-display` (`'visible'` default, or `'hidden'`) removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`").
|
|
20
|
+
|
|
19
21
|
A form-associated identifier selector. Import
|
|
20
22
|
`@aceshooting/lyra-ui/components/lr-time-zone-picker.js`. It follows the
|
|
21
23
|
[shared field contract](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/components/lr-country-picker.md),
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-token-input`
|
|
18
18
|
|
|
19
|
+
`labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
|
|
20
|
+
|
|
19
21
|
An editable form-associated token list. Enter, comma, Tab, or blur commits a token; Tab is not
|
|
20
22
|
prevented, so focus still advances normally. Backspace removes the last token. `value` is a
|
|
21
23
|
readonly owned `readonly string[]` snapshot and repeated values are submitted under `name`; mutate
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-unit-picker`
|
|
18
18
|
|
|
19
|
+
Attribute `label-display` (`'visible'` default, or `'hidden'`) removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`").
|
|
20
|
+
|
|
19
21
|
A form-associated measurement-unit selector. Import
|
|
20
22
|
`@aceshooting/lyra-ui/components/lr-unit-picker.js`. It follows the
|
|
21
23
|
[shared field contract](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/components/lr-country-picker.md),
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-voice-picker`
|
|
18
18
|
|
|
19
|
+
`labelDisplay: 'visible' | 'hidden' = 'visible'` (attribute `label-display`) — `'hidden'` removes the label visually while it stays the accessible name; hint and error are unaffected (see "Hiding the label visually: `label-display`" in the shared forms notes).
|
|
20
|
+
|
|
19
21
|
Override `--lr-voice-picker-trigger-padding`, `--lr-voice-picker-font-size`, and `--lr-voice-picker-expand-size` for trigger spacing, text size, and the expand control’s minimum target cap.
|
|
20
22
|
|
|
21
23
|
The voice list follows the [shared surface treatment](../shared/styles-and-tokens.md);
|
package/llms/peers.md
CHANGED
|
@@ -37,20 +37,20 @@ for the page.
|
|
|
37
37
|
|
|
38
38
|
| Peer | Range | Needed by |
|
|
39
39
|
|---|---|---|
|
|
40
|
-
| `@aceshooting/lyra-3d` | `^1.
|
|
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.
|
|
43
|
-
| `@aceshooting/lyra-translations` | `^30.
|
|
42
|
+
| `@aceshooting/lyra-map` | `^1.4.0` | `lr-geojson-viewer`, `lr-map` |
|
|
43
|
+
| `@aceshooting/lyra-translations` | `^30.7.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` |
|
|
47
47
|
| `chartjs-plugin-annotation` | `^3.0.0` | `lr-bar-chart`, `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` |
|
|
48
48
|
| `chartjs-plugin-datalabels` | `^2.2.0` | `lr-bar-chart`, `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` |
|
|
49
49
|
| `chartjs-plugin-zoom` | `^2.0.0` | `lr-bar-chart`, `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` |
|
|
50
|
-
| `d3-drag` | `^3.0.
|
|
51
|
-
| `d3-force` | `^3.0.
|
|
52
|
-
| `d3-selection` | `^3.0.
|
|
53
|
-
| `d3-zoom` | `^3.0.
|
|
50
|
+
| `d3-drag` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
|
|
51
|
+
| `d3-force` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
|
|
52
|
+
| `d3-selection` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
|
|
53
|
+
| `d3-zoom` | `^3.0.1` | `lr-graph`, `lr-knowledge-graph-explorer` |
|
|
54
54
|
| `dompurify` | `^3.4.14` | `lr-agent-workspace`, `lr-dashboard-grid`, `lr-docx-viewer`, `lr-email-viewer`, `lr-eval-run`, `lr-geojson-viewer`, `lr-html-viewer`, `lr-icon`, `lr-icon-button`, `lr-include`, `lr-map`, `lr-markdown`, `lr-markdown-core`, `lr-message-parts`, `lr-notebook-viewer`, `lr-rag-answer`, `lr-streaming-text`, `lr-streaming-text-core`, `lr-svg-viewer`, `lr-video`, `lr-video-playlist`, `lr-widget-renderer` |
|
|
55
55
|
| `emoji-picker-element-data` | `^1.8.0` | `lr-emoji-picker` |
|
|
56
56
|
| `epubjs` | `^0.3.93` | `lr-ebook-viewer` |
|
|
@@ -183,7 +183,7 @@ The entry points, then:
|
|
|
183
183
|
`@aceshooting/lyra-ui/localization.js` (side-effect-free locale runtime),
|
|
184
184
|
`@aceshooting/lyra-ui/autoloader.js` (side-effect-free on-demand tag loading),
|
|
185
185
|
`@aceshooting/lyra-ui/autoloader-cdn.js` (browser-guarded auto-start side effect),
|
|
186
|
-
`@aceshooting/lyra-translations/<locale>.js` (the
|
|
186
|
+
`@aceshooting/lyra-translations/<locale>.js` (the eighty message catalogs, in the companion package),
|
|
187
187
|
`@aceshooting/lyra-ui/events` (the global typed-event map — types only, no runtime),
|
|
188
188
|
`@aceshooting/lyra-ui/ai` (provider-neutral data types), `@aceshooting/lyra-ui/testing`
|
|
189
189
|
(happy-dom shims, `createLyraEvent()` for building a validated test event, a small set of
|
|
@@ -109,6 +109,9 @@ transport. The helper neither reloads the page nor changes module URLs to bypass
|
|
|
109
109
|
category selection walks the same chain, so the two can never disagree:
|
|
110
110
|
|
|
111
111
|
1. **The BCP-47 truncation walk, most specific first**, with any explicitly registered delta parent chain inserted immediately after its child — `zh-Hans-CN` → `zh-Hans` → `zh`.
|
|
112
|
+
A tag without a script subtag whose CLDR likely script differs from its bare language's walks
|
|
113
|
+
that implied script just before the bare language: `sr-ME` (likely `sr-Latn-ME`) →
|
|
114
|
+
`sr-Latn` → `sr`, while `sr-RS` (likely Cyrillic, like bare `sr`) goes straight to `sr`.
|
|
112
115
|
Casing and `_` separators are normalized, so `pt_BR` and `pt-br` are the same key. Lookup chains
|
|
113
116
|
are memoized and capped at 64 candidates. A structurally valid tag beyond the normal complexity
|
|
114
117
|
ceiling retains its exact tag, base language and English fallback without constructing an
|
|
@@ -200,7 +203,7 @@ silently defeats a registered catalog — omit it, or pass `undefined`.
|
|
|
200
203
|
|
|
201
204
|
### Ready-made catalogs: `@aceshooting/lyra-translations/<locale>.js`
|
|
202
205
|
|
|
203
|
-
|
|
206
|
+
Eighty catalogs ship in the companion package `@aceshooting/lyra-translations` (`pnpm add @aceshooting/lyra-translations`, same version as `@aceshooting/lyra-ui`), each covering every key in `LYRA_DEFAULT_STRINGS`.
|
|
204
207
|
The public `@aceshooting/lyra-ui/locales.json` manifest lists their canonical identities, authored
|
|
205
208
|
source spellings, import paths, and structural coverage. It also distinguishes translation
|
|
206
209
|
coverage from linguistic review tier. The catalogs are **side-effect-only modules**: import one
|
|
@@ -222,6 +225,8 @@ import "@aceshooting/lyra-translations/ro.js"; // Romanian
|
|
|
222
225
|
import "@aceshooting/lyra-translations/zh-CN.js"; // Simplified: serves zh, zh-Hans, zh-SG and zh-Hans-CN
|
|
223
226
|
import "@aceshooting/lyra-translations/zh-TW.js"; // Traditional: serves zh-Hant and zh-MO
|
|
224
227
|
import "@aceshooting/lyra-translations/zh-HK.js"; // Hong Kong: differences over zh-TW
|
|
228
|
+
import "@aceshooting/lyra-translations/sr.js"; // Serbian Cyrillic: serves sr, sr-Cyrl, sr-RS, sr-BA
|
|
229
|
+
import "@aceshooting/lyra-translations/sr-Latn.js"; // Serbian Latin: serves sr-Latn, sr-Latn-RS, sr-ME
|
|
225
230
|
```
|
|
226
231
|
|
|
227
232
|
Persian and Hebrew use CLDR plural categories (`fa`: `one`/`other`; `he`:
|
|
@@ -242,6 +247,15 @@ they register only the messages that differ and resolve every other message thro
|
|
|
242
247
|
(`de`, the built-in English, `es`, `fr`, `zh-TW`), and importing one also imports its parent catalog (`en-GB` has none: English is built in).
|
|
243
248
|
The four regional additions are AI-assisted translations; no human or native-speaker review is claimed.
|
|
244
249
|
|
|
250
|
+
Serbian ships in both scripts as two complete catalogs: `sr` (Cyrillic, the CLDR default for bare
|
|
251
|
+
`sr`) and `sr-Latn` (Latin). Script decides, not region: `sr-Latn-*` tags and script-less tags whose
|
|
252
|
+
likely script is Latin (`sr-ME`) reach `sr-Latn`; `sr-Cyrl-*`, `sr-RS`, `sr-BA` and `sr-XK` reach
|
|
253
|
+
`sr`. The `sk`, `bg`, `lt`, `lv`, `et`, `ca`, `ga`, `mt`, `sr` and `sr-Latn` catalogs are
|
|
254
|
+
AI-assisted translations with structural verification only (keys, placeholders, ICU syntax and CLDR
|
|
255
|
+
plural categories); they await native-speaker review, and no human or native-speaker review is
|
|
256
|
+
claimed. Regional tags such as `ca-ES-valencia`, `ga-IE` and `mt-MT` reach their base catalog by
|
|
257
|
+
truncation.
|
|
258
|
+
|
|
245
259
|
Import only the locales the application can actually offer — each is a separate module, so unimported
|
|
246
260
|
ones cost nothing. A catalog registered this way is merged like any other, so a later
|
|
247
261
|
`registerLyraLocale('de', { close: '…' })` still overrides individual keys, and a per-instance
|