@aceshooting/lyra-ui 30.5.0 → 30.8.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 +93 -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 +35 -7
- package/dist/components/layout/dock-panel/dock-panel.class.js +8 -5
- 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-elevated-lines.js +36 -0
- package/dist/components/media/map/map-scene-errors.js +1 -0
- package/dist/components/media/map/map-scene-line-encoding.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 +60 -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-custom-layer-attachment.js +1 -0
- package/dist/internal/map-custom-layer-controller.js +1 -0
- package/dist/internal/map-custom-layer-types.d.ts +63 -0
- package/dist/internal/map-scene-layer-runtime.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/map-custom-layers.d.ts +16 -0
- package/dist/map-custom-layers.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 +28 -10
- 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 +401 -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 +261 -0
- package/llms/shared.md +277 -2
- package/locales.json +1 -1
- package/package.json +41 -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
|
@@ -117,6 +117,8 @@ other value (a plain object, a function) is dropped from the row instead of reac
|
|
|
117
117
|
|
|
118
118
|
### `lr-combobox`
|
|
119
119
|
|
|
120
|
+
`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).
|
|
121
|
+
|
|
120
122
|
**Properties:**
|
|
121
123
|
|
|
122
124
|
- `multiple: boolean = false` (reflected)
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-country-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 country/territory selector with localized names and decorative emoji flags.
|
|
20
22
|
Import `@aceshooting/lyra-ui/components/lr-country-picker.js`. The default catalog is the pinned
|
|
21
23
|
249-code ISO alpha-2 list. `value` defaults to `''`; valid two-letter values are trimmed and
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-currency-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, single-currency selector with a compact ISO-code trigger and localized currency
|
|
20
22
|
names and symbols in its options. It composes `lr-select` (or `lr-combobox` when searchable) and `lr-option`; no additional popover,
|
|
21
23
|
currency-name table or optional peer is needed. Selection changes the field value only: exchange
|
|
@@ -209,6 +209,8 @@ day-cell/grid-column size; its private default follows the `size` tier — `2xs`
|
|
|
209
209
|
|
|
210
210
|
### `lr-date-input`
|
|
211
211
|
|
|
212
|
+
`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).
|
|
213
|
+
|
|
212
214
|
Text field + calendar popover, **form-associated** via the shared `FormAssociated` mixin (`name`,
|
|
213
215
|
`value`, `disabled`, `required` all inherited).
|
|
214
216
|
|
|
@@ -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** 5 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
|
---
|
|
@@ -72,25 +72,39 @@ resolved in the host's owner realm.
|
|
|
72
72
|
lost capture, disconnect/adoption, live policy/geometry mutation, no-op attempts, and a prevented
|
|
73
73
|
`lr-resize-request` all emit nothing.
|
|
74
74
|
- `lr-toggle-request` (cancelable) and `lr-toggle` (accepted) are the shared disclosure pair;
|
|
75
|
-
their fresh frozen details contain `{ expanded }`. The former can veto
|
|
76
|
-
(`preventDefault()` leaves the host `collapsed`
|
|
77
|
-
consumer assigns `collapsed` directly. Both details
|
|
75
|
+
their fresh frozen details contain `{ expanded }`. The former can veto the built-in toggle or a
|
|
76
|
+
call to `expand()`, `collapse()` or `toggle()` (`preventDefault()` leaves the host `collapsed`
|
|
77
|
+
property unchanged). Neither is fired when a consumer assigns `collapsed` directly. Both details
|
|
78
|
+
are fresh readonly/frozen snapshots.
|
|
79
|
+
|
|
80
|
+
**Methods:** `expand()`, `collapse()` and `toggle()` drive the fold through that same cancelable
|
|
81
|
+
pair, exactly as the built-in toggle does, so a consumer-owned control (in the content's own header
|
|
82
|
+
row, or a rail item) keeps the panel's disclosure semantics without `collapsible`. `expand()` and
|
|
83
|
+
`toggle()` return whether the panel is expanded afterwards, `collapse()` whether it is collapsed; a
|
|
84
|
+
call that would not change the state emits nothing.
|
|
78
85
|
|
|
79
86
|
Events bubble and are composed, so a listener on an ancestor (for example an `lr-multi-split` that
|
|
80
87
|
contains this panel and listens for its own `lr-resize-request`) should ignore events whose `target`
|
|
81
88
|
is not the element it listens on. Keyboard: the arrow keys step by 16px and Home/End jump to the
|
|
82
89
|
minimum/maximum extent, each through `lr-resize-request`; Alt, Ctrl and Meta chords are left to the
|
|
83
|
-
browser. Collapsing while focus is in the content or on the handle moves focus to the collapse toggle
|
|
90
|
+
browser. Collapsing while focus is in the content or on the handle moves focus to the collapse toggle,
|
|
91
|
+
else to the first focusable `rail` item, else to the host; expanding while focus is on a rail item
|
|
92
|
+
moves it to the toggle or the host, since the rail hides.
|
|
84
93
|
|
|
85
94
|
`lr-resize-input` remains available for live layout feedback; `lr-resize` now provides the shared
|
|
86
95
|
resize event name. Use `lr-resize-change` for persistence. Type imports move from `DockPanel*` to
|
|
87
96
|
`LyraDockPanel*`.
|
|
88
97
|
|
|
89
|
-
**Slots:** default — the panel's own content
|
|
98
|
+
**Slots:** default — the panel's own content; `rail` — shown in the collapsed rail only while
|
|
99
|
+
`collapsed`, after the toggle, typically one icon button per section (each with its own accessible
|
|
100
|
+
name, usually calling `expand()`); `collapse-icon` and `expand-icon` — decorative glyphs replacing the
|
|
101
|
+
toggle's chevron while expanded and collapsed respectively (for example panel-close and panel-open
|
|
102
|
+
icons). The toggle keeps its localized accessible name, and a slotted glyph is not rotated.
|
|
90
103
|
|
|
91
104
|
**CSS parts:** `base` (the panel root), `content` (wraps the default slot; hidden while `collapsed`),
|
|
92
105
|
`handle` (the draggable resize edge; only rendered when not `without-resize` and not `collapsed`),
|
|
93
|
-
`collapse-toggle` (only rendered when `collapsible`)
|
|
106
|
+
`collapse-toggle` (only rendered when `collapsible`), `rail` (wraps the `rail` slot; hidden unless
|
|
107
|
+
`collapsed`)
|
|
94
108
|
|
|
95
109
|
**Themeable custom properties:** `--lr-dock-panel-collapsed-size` (default
|
|
96
110
|
`var(--lr-icon-button-size)`) — the persistent "rail" width/height the panel holds at while
|
|
@@ -105,8 +119,11 @@ exact same colors as before: `--lr-dock-panel-collapse-toggle-hover-bg` (default
|
|
|
105
119
|
`color-mix()` (background) for its pressed state; `--lr-dock-panel-handle-hover-color` (default
|
|
106
120
|
`var(--lr-color-brand)`) themes the handle's hover/keyboard-focus state, and
|
|
107
121
|
`--lr-dock-panel-handle-active-color` (default a `color-mix()` of the hover color) themes it while
|
|
108
|
-
being dragged. `--lr-dock-panel-handle-hit-area`
|
|
109
|
-
`var(--lr-space-m)
|
|
122
|
+
being dragged. `--lr-dock-panel-handle-hit-area` sets the resize target width along the inner edge (default
|
|
123
|
+
`var(--lr-space-m)`). The target sits inside the panel's clipped edge, over its content, so precise
|
|
124
|
+
pointers get exactly that width and content beside the edge stays clickable; set it to the visible
|
|
125
|
+
line (for example `3px`) to give the content every pixel. Coarse or hover-less pointers get at
|
|
126
|
+
least `--lr-icon-button-size`. Plus shared tokens `--lr-color-surface`, `--lr-color-border`,
|
|
110
127
|
`--lr-color-border-subtle`, `--lr-color-brand`, `--lr-color-brand-quiet`, `--lr-color-text`,
|
|
111
128
|
`--lr-radius`, `--lr-space-xs`, `--lr-focus-ring-width/-color/-offset`, `--lr-transition-fast`,
|
|
112
129
|
`--lr-icon-button-size`.
|
|
@@ -140,7 +157,8 @@ reconciliation emits neither resize event and preserves an in-range authored rel
|
|
|
140
157
|
**Known gotchas:**
|
|
141
158
|
|
|
142
159
|
- `collapsed` doesn't zero the panel's box — it shrinks to the persistent rail size
|
|
143
|
-
(`--lr-dock-panel-collapsed-size`). `
|
|
160
|
+
(`--lr-dock-panel-collapsed-size`). With `rail` items it stacks the toggle and those items (a
|
|
161
|
+
column on `start`/`end`, a row on `top`/`bottom`) and grows past that size to fit them. `extent` itself is left untouched while collapsed, so
|
|
144
162
|
re-expanding restores what it was unless the current bounds require a valid clamp.
|
|
145
163
|
- Parent or flex allocation shrink, direct out-of-range property writes, and live min/max changes
|
|
146
164
|
reconcile atomically. A later container grow does not silently restore an extent that was clamped
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [retrieval](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/retrieval.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** `@aceshooting/lyra-3d`, `d3-drag`, `d3-force`, `d3-selection`, `d3-zoom` — see `llms/peers.md`
|
|
12
|
-
- **Themeable via**
|
|
12
|
+
- **Themeable via** 35 parts, 17 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
|
---
|
|
@@ -23,9 +23,50 @@ back to built-in spatial rendering and then the paginated list. Localized feedba
|
|
|
23
23
|
`lr-engine-fallback` with `{ from, to, reason }`; reasons are `'unavailable'`, `'unsupported'`,
|
|
24
24
|
`'context-lost'` or `'error'`.
|
|
25
25
|
|
|
26
|
+
**Custom 3D bodies:** `nodeRenderer: LyraGraphNodeRenderer | null | undefined = undefined`
|
|
27
|
+
(property only) supplies a synchronous mesh callback for local `view="3d" engine="webgl"` scenes.
|
|
28
|
+
`LyraGraphNodeRenderContext` contains frozen `{ id, index, node? }`; `index` is the filtered render
|
|
29
|
+
row, and `node` is present for record inputs. Typed columns supply identity/index without record
|
|
30
|
+
materialization. Return `null`/`undefined` for the standard body, or `LyraGraphNodeMesh` with
|
|
31
|
+
non-indexed Float32Array `positions` (9 values per triangle), `normals` (one outward unit XYZ
|
|
32
|
+
normal per triangle), and optional sRGB RGBA `color` in [0,1]. Vertices fit the unit sphere;
|
|
33
|
+
triangles have consistent outward winding and nonzero area. Geometry uses the graph's world axes,
|
|
34
|
+
scaled by the existing node radius, with flat face lighting. The optional color inherits the
|
|
35
|
+
resolved node fill when omitted. The **Custom spatial nodes** story shows a tetrahedron.
|
|
36
|
+
|
|
37
|
+
Geometry is copied without changing caller buffers. Limits are 64 triangles per custom node,
|
|
38
|
+
16,384 custom rows and 65,536 triangles per scene, with a 4 MiB per-owner mesh payload ceiling.
|
|
39
|
+
Mixed-scene storage preflight can refuse a smaller scene when combined staging/sorting costs
|
|
40
|
+
exceed its bounds. The callback runs in cancellable scheduled slices; each callback itself is
|
|
41
|
+
trusted synchronous application code. Promise results, accessors, shared/resizable buffers and
|
|
42
|
+
invalid geometry are refused. Assign a new callback identity to refresh captured application data;
|
|
43
|
+
hover, selection, theme and camera changes preserve the admitted geometry. Reset with `null` or
|
|
44
|
+
`undefined`. Source-provider, builtin, 2D and list branches retain standard nodes and show a
|
|
45
|
+
localized availability notice without invoking the callback. Keyboard/list identities and labels
|
|
46
|
+
remain available. Custom bodies use exact triangle picks with their original node id; their
|
|
47
|
+
irregular silhouette has no ordinary circular hit padding. Authored alpha zero removes body picks;
|
|
48
|
+
positive-alpha bodies remain pickable when dimmed to zero. Forced colors uses accessible paint.
|
|
49
|
+
|
|
50
|
+
A rejected batch keeps standard nodes and emits noncancelable `lr-node-render-error` with
|
|
51
|
+
`LyraGraphNodeRenderErrorDetail { reason: 'callback' | 'invalid' | 'budget'; nodeId?: string }` once
|
|
52
|
+
for that callback/model generation. Exceptions are represented by localized text. The visible
|
|
53
|
+
`custom-node-notice` part reports refusal or availability. Renderer failures retain the existing
|
|
54
|
+
`lr-engine-fallback` chain.
|
|
55
|
+
|
|
56
|
+
**Optional halo:** `glow: boolean = false` (reflected attribute `glow`) enables static WebGL
|
|
57
|
+
postprocessing. It follows the same explicit 3D/WebGL preference and adds no request or render
|
|
58
|
+
target while unset. It leaves picks and the component's separate label canvas unchanged. The
|
|
59
|
+
**Spatial glow** story provides an on/off control. Enabled glow adds two offscreen blur passes
|
|
60
|
+
and a scene capture; it has an 8 CSS-pixel radius and 0.6 strength. Half-resolution attachments
|
|
61
|
+
have at most 1,048,576 pixels each and a 16 MiB combined color/depth storage estimate, excluding
|
|
62
|
+
driver overhead; resizing can temporarily retain two sets. Forced colors suppresses it; reduced
|
|
63
|
+
motion keeps a static halo. Builtin/list alternatives show a localized `glow-notice`. Genuine
|
|
64
|
+
current effect failures enter the existing renderer fallback chain.
|
|
65
|
+
|
|
26
66
|
`graphColumns: LyraGraphColumns | undefined` (property only) replaces local arrays in 3D/list;
|
|
27
67
|
`graphSource` remains authoritative. Columns support 200,000 nodes and 1,000,000 edges.
|
|
28
68
|
Required `ids` supplies string node IDs; optional Float32Array columns are `x`, `y`, `z`, `size`;
|
|
69
|
+
optional `edgeCurvature` is a Float32Array with one signed curvature per source edge, before filtering.
|
|
29
70
|
optional Uint16Array columns are `category`, `edgeCategory`. Required Uint32Array `source` and
|
|
30
71
|
`target` contain node indices. Optional `categories`/`labels` are string arrays. Validation
|
|
31
72
|
checks lengths, coordinates and indices; coordinates are bounded to ±10,000,000 graph units.
|
|
@@ -83,6 +124,80 @@ frontmost picking. Adaptive edge subdivision approximates crossings; this is not
|
|
|
83
124
|
a guarantee of perfect translucent intersections. Use modest graphs, typically low hundreds;
|
|
84
125
|
the 2D canvas capacity claim below does not apply to 3D.
|
|
85
126
|
|
|
127
|
+
`LyraGraphEdge.curvature?: number` bends ordinary 3D edges along a quadratic curve. Its signed
|
|
128
|
+
value is the midpoint deflection divided by endpoint distance, clamped to `[-1, 1]`.
|
|
129
|
+
Unset, non-number and nonfinite local values mean a straight edge. Typed `edgeCurvature` columns
|
|
130
|
+
and provider scenes reject nonfinite values; provider accessors and non-number values are also
|
|
131
|
+
rejected. Finite values clamp without changing caller data. The perpendicular is the endpoint
|
|
132
|
+
direction crossed with the least-aligned world axis (ties X, then Y, then Z);
|
|
133
|
+
reversing endpoints reverses the bend. Camera movement does not change that world orientation.
|
|
134
|
+
Self-loops and dangling stubs keep their existing shape; 2D ignores curvature.
|
|
135
|
+
|
|
136
|
+
Curves use 16 strokes. Labels use the curve midpoint, arrows follow the endpoint tangent, and
|
|
137
|
+
dash patterns continue across segments. Initial fitting and explicit `fit()` include analytic
|
|
138
|
+
curve extrema, which can extend beyond node-coordinate bounds; existing camera limits can still
|
|
139
|
+
prevent full containment. Changing curvature alone does not refit the camera. Typed columns render
|
|
140
|
+
curves with the optional WebGL engine; their fallback remains the paginated list. Local records and
|
|
141
|
+
provider scenes also support curves in the built-in renderer. In the companion, each curved edge
|
|
142
|
+
reserves 16 strokes plus its directed arrow against the existing 2,000,000-primitive ceiling.
|
|
143
|
+
|
|
144
|
+
**DAG preprocessing:** import `@aceshooting/lyra-3d/graph-layout` explicitly to compute a directed
|
|
145
|
+
acyclic graph's positions before assigning them. The helper is independent of the renderer;
|
|
146
|
+
`lr-graph` keeps the supplied positions and its existing 3D, Fit and List controls. There is no
|
|
147
|
+
new layout selector. Keep original node-row order when mapping xyz results back to ids:
|
|
148
|
+
|
|
149
|
+
```ts
|
|
150
|
+
import type { LyraGraph, LyraGraphNode } from '@aceshooting/lyra-ui/components/retrieval/graph/graph.class.js';
|
|
151
|
+
|
|
152
|
+
function createDagUpdates(graph: LyraGraph) {
|
|
153
|
+
let pending: AbortController | undefined;
|
|
154
|
+
let generation = 0;
|
|
155
|
+
let disposed = false;
|
|
156
|
+
return {
|
|
157
|
+
async replace(nodes: readonly LyraGraphNode[], source: Uint32Array, target: Uint32Array) {
|
|
158
|
+
if (disposed) return;
|
|
159
|
+
pending?.abort();
|
|
160
|
+
const controller = new AbortController();
|
|
161
|
+
pending = controller;
|
|
162
|
+
const revision = ++generation;
|
|
163
|
+
const current = () => !disposed && !controller.signal.aborted && revision === generation;
|
|
164
|
+
try {
|
|
165
|
+
const { layoutGraphDagAsync } = await import('@aceshooting/lyra-3d/graph-layout');
|
|
166
|
+
if (!current()) return;
|
|
167
|
+
const result = await layoutGraphDagAsync({ nodeCount: nodes.length, source, target },
|
|
168
|
+
{ direction: 'y', layerGap: 100, nodeGap: 50 }, { signal: controller.signal });
|
|
169
|
+
if (!current()) return;
|
|
170
|
+
graph.nodes = nodes.map((node, row) => ({ ...node, position: {
|
|
171
|
+
x: result.positions[row * 3]!,
|
|
172
|
+
y: result.positions[row * 3 + 1]!,
|
|
173
|
+
z: result.positions[row * 3 + 2]!,
|
|
174
|
+
} }));
|
|
175
|
+
await graph.updateComplete;
|
|
176
|
+
if (current() && graph.isConnected) graph.fit();
|
|
177
|
+
} catch (error) {
|
|
178
|
+
if (current()) throw error;
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
dispose() { disposed = true; generation++; pending?.abort(); },
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Assign matching edge records separately, use `view="3d"`, and call the returned `dispose()` when
|
|
187
|
+
the owning view disconnects. Handle replacement errors with application-localized status while
|
|
188
|
+
retaining the previous graph. Do not mutate endpoint columns while a request is pending. Returned
|
|
189
|
+
positions and ranks are owned buffers; coordinates use Float32 precision. The synchronous helper
|
|
190
|
+
accepts up to 10,000 nodes/100,000 edges; the cancellable asynchronous helper accepts up to
|
|
191
|
+
200,000 nodes/1,000,000 edges through bounded main-thread tasks, not a worker. These are helper
|
|
192
|
+
admission ceilings, not renderer capacity claims.
|
|
193
|
+
|
|
194
|
+
Both helpers reject cycles rather than reversing edges. The six directions are `x`, `-x`, `y`,
|
|
195
|
+
`-y`, `z` and `-z`; default layer/node gaps are 100/50 world units. The helper rejects coordinates
|
|
196
|
+
outside ±10,000,000 world units; local `LyraGraphNode.position` retains its separate ±1,000,000
|
|
197
|
+
limit, so choose gaps and graph depth that fit the target component. The **Retrieval / Graph /
|
|
198
|
+
Directed acyclic layout** story shows axis replacement, cancellation, strict cycle refusal,
|
|
199
|
+
empty-data fallback and signed curvature on parallel directed links.
|
|
200
|
+
|
|
86
201
|
`camera?: LyraGraphCamera` (property only) accepts readonly `{ yaw, pitch, distance, target }`,
|
|
87
202
|
where `target: LyraGraphPosition`, yaw/pitch use radians and distance uses graph units. Without an
|
|
88
203
|
input, the initial spatial scene is fitted. Camera inputs are copied; invalid fields use safe
|
|
@@ -162,7 +277,7 @@ color?: string; shape?: 'circle' | 'square' | 'diamond' }`, one entry per `LyraG
|
|
|
162
277
|
layout even when no matching `nodeTypes` entry exists
|
|
163
278
|
- `edges: LyraGraphEdge[] = []` (attribute: false) — readonly `LyraGraphEdge { id?: string; source: string; target:
|
|
164
279
|
string; width?: number; label?: string; accessibleLabel?: string; description?: string; directed?:
|
|
165
|
-
boolean; color?: string; dash?: number[] }` (source/target are node ids). `directed` adds an
|
|
280
|
+
boolean; color?: string; dash?: number[]; curvature?: number }` (source/target are node ids). `directed` adds an
|
|
166
281
|
arrowhead; `color` and `dash` style the individual stroke; `label` provides a spoken-name and SVG
|
|
167
282
|
tooltip fallback and is drawn as visible edge text only with `withEdgeLabels`; `accessibleLabel` and `description`
|
|
168
283
|
can override the spoken name and tooltip independently. `width` is normalized before reaching
|
|
@@ -278,6 +393,8 @@ coalesced to one event per frame), and `lr-view-change` (`detail: { view: LyraGr
|
|
|
278
393
|
Direct camera and view property assignments are silent.
|
|
279
394
|
With `engine="webgl"`, `lr-engine-fallback` (`detail: { from, to, reason }`, frozen; `reason` is
|
|
280
395
|
`'unavailable'`, `'unsupported'`, `'context-lost'` or `'error'`) reports each step down the fallback chain.
|
|
396
|
+
Also `lr-node-render-error` (`detail: LyraGraphNodeRenderErrorDetail { reason, nodeId? }`) when a custom
|
|
397
|
+
`nodeRenderer` mesh batch is refused; the reason is sanitized and the node keeps its default body.
|
|
281
398
|
|
|
282
399
|
**Slots:** none.
|
|
283
400
|
|
|
@@ -297,7 +414,8 @@ the offscreen keyboard-roving items), `spatial-toolbar` (3D/list view and camera
|
|
|
297
414
|
`spatial-control` (each toolbar or pagination button), `spatial-canvas` (the 3D drawing and camera
|
|
298
415
|
interaction surface), `spatial-instructions` (camera keyboard instructions), `spatial-list` (the
|
|
299
416
|
visible paginated fallback), `spatial-list-item` (each activatable node, edge or community),
|
|
300
|
-
`spatial-page-count` (localized total and page status),
|
|
417
|
+
`spatial-page-count` (localized total and page status), `spatial-pagination` (page controls),
|
|
418
|
+
`custom-node-notice` (custom body availability/refusal), and `glow-notice` (halo availability).
|
|
301
419
|
Source-mode parts: `source-navigator` (global query, record list and pagination), `source-row`
|
|
302
420
|
(a mounted record activation button), `source-row-active` (the navigator's roving tab stop),
|
|
303
421
|
`source-status` (loading, unavailable-record or error text), and `source-coverage` (full-source
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-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 single-line plain-text input primitive, the `lr-*` equivalent of a plain `wa-input`,
|
|
20
22
|
form-associated via the same `FormAssociated` mixin as `lr-textarea`. Ships the same opt-in
|
|
21
23
|
`label`/`hint`/`errorText` form-control chrome as `lr-textarea`/`lr-select`, and the same
|
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
|
|
19
19
|
`engine: Engine3dPreference = 'builtin'` forwards the renderer preference to the composed graph.
|
|
20
20
|
`engine="webgl"` requests its companion for the 3D view. `lr-engine-fallback` bubbles unchanged
|
|
21
|
-
with `{ from, to, reason }`.
|
|
21
|
+
with `{ from, to, reason }`. `nodeRenderer: LyraGraphNodeRenderer | null | undefined = undefined`
|
|
22
|
+
and `glow: boolean = false` forward the same custom-body and static-halo preferences to the graph;
|
|
23
|
+
`nodeRenderer` is property-only and `glow` reflects its boolean attribute. The graph
|
|
24
|
+
`lr-node-render-error` event bubbles through with its sanitized reason and optional nodeId.
|
|
22
25
|
|
|
23
26
|
Orchestration-level knowledge-graph surface: the `lr-graph` canvas plus entity search, type filters,
|
|
24
27
|
neighborhood expansion, pinned nodes, path finding between pins, node selection, and a details
|
|
@@ -241,6 +244,8 @@ filtered-out id). None change `selectedNodeId` or filters.
|
|
|
241
244
|
`lr-relation-activate` (`detail: { relation, sourceNodeId?, targetNodeId?, occurrenceIndex }`, from `lr-path-strip`).
|
|
242
245
|
- `lr-engine-fallback` (`detail: { from, to, reason }`) — forwarded from the graph when `engine="webgl"`
|
|
243
246
|
steps down the fallback chain.
|
|
247
|
+
- `lr-node-render-error` (`detail: LyraGraphNodeRenderErrorDetail { reason, nodeId? }`) — forwarded from the graph when a
|
|
248
|
+
custom `nodeRenderer` mesh batch is refused; the sanitized reason is `'callback'`, `'invalid'` or `'budget'`.
|
|
244
249
|
|
|
245
250
|
**Slots:** `details` — overrides the details popover's default content (an `lr-entity-card` with a
|
|
246
251
|
nested `lr-neighbor-list` and a pin toggle) entirely, including the two additive slots below.
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
## `lr-locale-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
|
A closed-list locale switcher over the library's own locale registry. First-party invention (no
|
|
20
22
|
Web Awesome equivalent). With `locales` unset (the default), the offered rows are exactly
|
|
21
23
|
`getRegisteredLyraLocales()` — every locale with strings registered via `registerLyraLocale()`,
|
|
@@ -46,7 +48,12 @@ readonly LyraLocaleEntry[]`, `LyraLocaleEntry { tag: string; label?: string; cou
|
|
|
46
48
|
custom labels, or a locale offered before its strings are registered. An entry's `label` overrides
|
|
47
49
|
the derived `localeNativeName(tag)` endonym only when it is non-blank; an explicitly blank (or
|
|
48
50
|
whitespace-only) `label` is treated the same as an omitted one and still falls back to
|
|
49
|
-
`localeNativeName(tag)`.
|
|
51
|
+
`localeNativeName(tag)`. Derived endonyms resolve lazily: a closed picker resolves only the
|
|
52
|
+
locale its trigger shows (nothing when that row has a non-blank `label`), and the other rows
|
|
53
|
+
resolve when the listbox opens, or when closed typeahead or the search filter needs them, then
|
|
54
|
+
stay cached until `locales` or the registry changes. Supplying `{ tag, label }` rows therefore
|
|
55
|
+
keeps `Intl.DisplayNames` out of the closed first render entirely. Names never reorder rows; the
|
|
56
|
+
catalog order is the displayed order. Explicit catalogs are
|
|
50
57
|
capped at the first 512 source entries, cloned and frozen at assignment; mutate a new array/entry
|
|
51
58
|
and reassign it to update the list. The localized `limit` part reports omitted input through
|
|
52
59
|
`localePickerInputLimit`. Closed listboxes contain no option rows after their exit transition;
|