@adia-ai/web-components 0.0.20 → 0.0.21
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.
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <avatar-ui src="photo.jpg"
|
|
2
|
+
* <avatar-ui src="photo.jpg" text="Alice Smith" size="md" shape="circle"></avatar-ui>
|
|
3
3
|
*
|
|
4
4
|
* Fallback chain: image → initials → empty.
|
|
5
|
-
* If src fails to load, falls back to initials derived from
|
|
5
|
+
* If src fails to load, falls back to initials derived from text.
|
|
6
|
+
* `name` is a deprecated alias for `text` (warns on use).
|
|
6
7
|
*
|
|
7
8
|
* <avatar-group-ui max="4" size="md">
|
|
8
|
-
* <avatar-ui
|
|
9
|
-
* <avatar-ui
|
|
9
|
+
* <avatar-ui text="Alice"></avatar-ui>
|
|
10
|
+
* <avatar-ui text="Bob"></avatar-ui>
|
|
10
11
|
* ...
|
|
11
12
|
* </avatar-group-ui>
|
|
12
13
|
*
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Standalone legend primitive for the AdiaUI chart family. Renders a row
|
|
5
5
|
* of badge-ui chips (swatch + label) that are keyboard-focusable and
|
|
6
|
-
* click-toggleable — clicking emits a `
|
|
7
|
-
* (or chart-ui via [for]) wire to series visibility.
|
|
6
|
+
* click-toggleable — clicking emits a canonical `toggle` event that
|
|
7
|
+
* consumers (or chart-ui via [for]) wire to series visibility.
|
|
8
8
|
*
|
|
9
9
|
* Attributes:
|
|
10
10
|
* for — id-ref of a chart-ui / heatmap-ui to mirror. When set, the
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
* static — when set, rows render as non-interactive <span>s. Default
|
|
24
24
|
* is interactive <button>s that toggle.
|
|
25
25
|
* on-toggle — hide | opacity. Default hide. Escape hatch per OD-CHART-09.
|
|
26
|
-
* Reported via
|
|
26
|
+
* Reported via the `toggle` event detail; chart-ui reads it
|
|
27
27
|
* when wired via [for].
|
|
28
28
|
*
|
|
29
29
|
* Events:
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* toggle — detail: {key, active, mode}. Fires on row click when
|
|
31
|
+
* not [static]. `active` is the new state (true=visible).
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
import { AdiaElement } from '../../core/element.js';
|
|
@@ -7,9 +7,11 @@ import { AdiaElement } from '../../core/element.js';
|
|
|
7
7
|
* an expandable history log. Auto-collapses when the pipeline finishes.
|
|
8
8
|
*
|
|
9
9
|
* Properties:
|
|
10
|
-
* stage
|
|
11
|
-
* message
|
|
12
|
-
*
|
|
10
|
+
* stage : String — current stage name (interpret, analyze, plan, generate, validate, render)
|
|
11
|
+
* message : String — current stage description
|
|
12
|
+
* status : String — 'idle' | 'active' | 'completed' | 'error'. Set to
|
|
13
|
+
* 'completed' to render the final state and collapse
|
|
14
|
+
* the history log.
|
|
13
15
|
*/
|
|
14
16
|
|
|
15
17
|
const STAGE_LABELS = {
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* <timeline-ui> — Vertical (or horizontal) event / progress log.
|
|
3
3
|
*
|
|
4
|
-
* Each <timeline-item-ui> is one entry, with its own state
|
|
5
|
-
*
|
|
4
|
+
* Each <timeline-item-ui> is one entry, with its own state via the `status`
|
|
5
|
+
* enum (idle | active | completed | error), optional icon, duration, and an
|
|
6
|
+
* expandable outcomes list. `[spinner]` is an orthogonal presentation hint
|
|
7
|
+
* that animates the dot as a ring when combined with `status="active"`.
|
|
6
8
|
*
|
|
7
9
|
* <timeline-ui>
|
|
8
|
-
* <timeline-item-ui text="Shipped" time="2h ago" completed></timeline-item-ui>
|
|
9
|
-
* <timeline-item-ui text="Delivery" time="now" active spinner></timeline-item-ui>
|
|
10
|
-
* <timeline-item-ui text="Received"
|
|
10
|
+
* <timeline-item-ui text="Shipped" time="2h ago" status="completed"></timeline-item-ui>
|
|
11
|
+
* <timeline-item-ui text="Delivery" time="now" status="active" spinner></timeline-item-ui>
|
|
12
|
+
* <timeline-item-ui text="Received"></timeline-item-ui>
|
|
11
13
|
* </timeline-ui>
|
|
12
14
|
*
|
|
13
15
|
* For agent reasoning / pipeline views, set size="sm" and use
|
|
14
|
-
* duration, outcomes, spinner, error
|
|
16
|
+
* duration, outcomes, spinner, status="error"
|
|
15
17
|
*
|
|
16
18
|
* <timeline-ui size="sm">
|
|
17
|
-
* <timeline-item-ui text="search" duration="850ms" completed></timeline-item-ui>
|
|
18
|
-
* <timeline-item-ui text="generate" active spinner></timeline-item-ui>
|
|
19
|
+
* <timeline-item-ui text="search" duration="850ms" status="completed"></timeline-item-ui>
|
|
20
|
+
* <timeline-item-ui text="generate" status="active" spinner></timeline-item-ui>
|
|
19
21
|
* </timeline-ui>
|
|
20
22
|
*
|
|
21
23
|
* For wizard / numbered-circle patterns, use the dedicated <stepper-ui>.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/web-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "AdiaUI web components — vanilla custom elements. A2UI runtime (renderer, registry, streams, wiring) lives in @adia-ai/a2ui-utils.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|