@adia-ai/web-components 0.0.29 → 0.0.33
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/components/accordion/accordion.a2ui.json +1 -1
- package/components/accordion/accordion.js +6 -6
- package/components/accordion/accordion.yaml +1 -1
- package/components/action-list/action-list.a2ui.json +1 -1
- package/components/action-list/action-list.js +6 -6
- package/components/action-list/action-list.yaml +1 -1
- package/components/agent-artifact/agent-artifact.a2ui.json +1 -1
- package/components/agent-artifact/agent-artifact.js +4 -4
- package/components/agent-artifact/agent-artifact.yaml +1 -1
- package/components/agent-feedback-bar/agent-feedback-bar.a2ui.json +1 -1
- package/components/agent-feedback-bar/agent-feedback-bar.js +4 -4
- package/components/agent-feedback-bar/agent-feedback-bar.yaml +1 -1
- package/components/agent-questions/agent-questions.a2ui.json +1 -1
- package/components/agent-questions/agent-questions.js +4 -4
- package/components/agent-questions/agent-questions.yaml +1 -1
- package/components/agent-reasoning/agent-reasoning.a2ui.json +3 -3
- package/components/agent-reasoning/agent-reasoning.js +4 -4
- package/components/agent-reasoning/agent-reasoning.yaml +3 -3
- package/components/agent-suggestions/agent-suggestions.a2ui.json +1 -1
- package/components/agent-suggestions/agent-suggestions.js +4 -4
- package/components/agent-suggestions/agent-suggestions.yaml +1 -1
- package/components/agent-trace/agent-trace.a2ui.json +1 -1
- package/components/agent-trace/agent-trace.js +4 -4
- package/components/agent-trace/agent-trace.yaml +1 -1
- package/components/alert/alert.a2ui.json +1 -1
- package/components/alert/alert.js +4 -4
- package/components/alert/alert.yaml +1 -1
- package/components/aside/aside.a2ui.json +1 -1
- package/components/aside/aside.yaml +1 -1
- package/components/avatar/avatar.a2ui.json +1 -1
- package/components/avatar/avatar.js +8 -8
- package/components/avatar/avatar.yaml +1 -1
- package/components/badge/badge.a2ui.json +1 -1
- package/components/badge/badge.js +4 -4
- package/components/badge/badge.yaml +1 -1
- package/components/block/block.a2ui.json +1 -1
- package/components/block/block.js +4 -4
- package/components/block/block.yaml +1 -1
- package/components/breadcrumb/breadcrumb.a2ui.json +1 -1
- package/components/breadcrumb/breadcrumb.js +4 -4
- package/components/breadcrumb/breadcrumb.yaml +1 -1
- package/components/button/button.a2ui.json +1 -1
- package/components/button/button.js +4 -4
- package/components/button/button.yaml +1 -1
- package/components/calendar-picker/calendar-picker.a2ui.json +1 -1
- package/components/calendar-picker/calendar-picker.js +6 -6
- package/components/calendar-picker/calendar-picker.yaml +1 -1
- package/components/canvas/canvas.a2ui.json +1 -1
- package/components/canvas/canvas.js +4 -4
- package/components/canvas/canvas.yaml +1 -1
- package/components/card/card.a2ui.json +1 -1
- package/components/card/card.js +4 -4
- package/components/card/card.yaml +1 -1
- package/components/chart/chart.a2ui.json +1 -1
- package/components/chart/chart.js +5 -5
- package/components/chart/chart.yaml +1 -1
- package/components/chart-legend/chart-legend.a2ui.json +1 -1
- package/components/chart-legend/chart-legend.js +7 -7
- package/components/chart-legend/chart-legend.yaml +1 -1
- package/components/{chat → chat-thread}/chat-input.js +5 -5
- package/components/{chat/chat.a2ui.json → chat-thread/chat-thread.a2ui.json} +6 -6
- package/components/{chat/chat.css → chat-thread/chat-thread.css} +2 -2
- package/components/{chat/chat.js → chat-thread/chat-thread.js} +7 -7
- package/components/{chat/chat.yaml → chat-thread/chat-thread.yaml} +4 -4
- package/components/check/check.a2ui.json +1 -1
- package/components/check/check.js +5 -5
- package/components/check/check.yaml +1 -1
- package/components/code/code.a2ui.json +1 -1
- package/components/code/code.js +4 -4
- package/components/code/code.yaml +1 -1
- package/components/col/col.a2ui.json +1 -1
- package/components/col/col.js +4 -4
- package/components/col/col.yaml +1 -1
- package/components/color-picker/color-picker.a2ui.json +1 -1
- package/components/color-picker/color-picker.js +6 -6
- package/components/color-picker/color-picker.yaml +1 -1
- package/components/command/command.a2ui.json +1 -1
- package/components/command/command.js +5 -5
- package/components/command/command.yaml +1 -1
- package/components/description-list/description-list.a2ui.json +1 -1
- package/components/description-list/description-list.js +4 -4
- package/components/description-list/description-list.yaml +1 -1
- package/components/divider/divider.a2ui.json +1 -1
- package/components/divider/divider.js +4 -4
- package/components/divider/divider.yaml +1 -1
- package/components/drawer/drawer.a2ui.json +1 -1
- package/components/drawer/drawer.js +4 -4
- package/components/drawer/drawer.yaml +1 -1
- package/components/embed/embed.a2ui.json +1 -1
- package/components/embed/embed.js +4 -4
- package/components/embed/embed.yaml +1 -1
- package/components/empty-state/empty-state.a2ui.json +1 -1
- package/components/empty-state/empty-state.js +4 -4
- package/components/empty-state/empty-state.yaml +1 -1
- package/components/feed/feed-item.yaml +2 -2
- package/components/feed/feed.a2ui.json +2 -2
- package/components/feed/feed.css +12 -3
- package/components/feed/feed.js +22 -22
- package/components/feed/feed.yaml +2 -2
- package/components/field/field.a2ui.json +1 -1
- package/components/field/field.js +10 -10
- package/components/field/field.yaml +2 -2
- package/components/footer/footer.a2ui.json +1 -1
- package/components/footer/footer.yaml +1 -1
- package/components/grid/grid.a2ui.json +1 -1
- package/components/grid/grid.js +4 -4
- package/components/grid/grid.yaml +1 -1
- package/components/header/header.a2ui.json +1 -1
- package/components/header/header.yaml +1 -1
- package/components/heatmap/heatmap.a2ui.json +1 -1
- package/components/heatmap/heatmap.js +4 -4
- package/components/heatmap/heatmap.yaml +1 -1
- package/components/icon/icon.a2ui.json +1 -1
- package/components/icon/icon.js +4 -4
- package/components/icon/icon.yaml +1 -1
- package/components/image/image.a2ui.json +1 -1
- package/components/image/image.js +4 -4
- package/components/image/image.yaml +1 -1
- package/components/index.js +88 -85
- package/components/input/input.a2ui.json +1 -1
- package/components/input/input.js +7 -7
- package/components/input/input.yaml +1 -1
- package/components/inspector/inspector.a2ui.json +1 -1
- package/components/inspector/inspector.js +4 -4
- package/components/inspector/inspector.yaml +1 -1
- package/components/kbd/kbd.a2ui.json +1 -1
- package/components/kbd/kbd.js +4 -4
- package/components/kbd/kbd.yaml +1 -1
- package/components/list/list.a2ui.json +1 -1
- package/components/list/list.js +6 -6
- package/components/list/list.yaml +1 -1
- package/components/menu/menu.a2ui.json +1 -1
- package/components/menu/menu.js +8 -8
- package/components/menu/menu.yaml +1 -1
- package/components/modal/modal.a2ui.json +1 -1
- package/components/modal/modal.js +4 -4
- package/components/modal/modal.yaml +1 -1
- package/components/nav/nav.a2ui.json +98 -0
- package/components/nav/nav.css +133 -0
- package/components/nav/nav.js +140 -0
- package/components/nav/nav.test.js +428 -0
- package/components/nav/nav.yaml +114 -0
- package/components/nav-group/nav-group.a2ui.json +100 -0
- package/components/nav-group/nav-group.css +317 -0
- package/components/nav-group/nav-group.js +142 -0
- package/components/nav-group/nav-group.yaml +69 -0
- package/components/nav-item/nav-item.a2ui.json +106 -0
- package/components/nav-item/nav-item.css +194 -0
- package/components/nav-item/nav-item.js +76 -0
- package/components/nav-item/nav-item.yaml +73 -0
- package/components/noodles/noodles.a2ui.json +1 -1
- package/components/noodles/noodles.js +4 -4
- package/components/noodles/noodles.yaml +1 -1
- package/components/option-card/option-card.a2ui.json +1 -1
- package/components/option-card/option-card.js +6 -6
- package/components/option-card/option-card.yaml +1 -1
- package/components/otp-input/otp-input.a2ui.json +1 -1
- package/components/otp-input/otp-input.js +5 -5
- package/components/otp-input/otp-input.yaml +1 -1
- package/components/page/page.a2ui.json +3 -3
- package/components/page/page.js +4 -4
- package/components/page/page.yaml +3 -3
- package/components/pagination/pagination.a2ui.json +1 -1
- package/components/pagination/pagination.js +4 -4
- package/components/pagination/pagination.yaml +1 -1
- package/components/pane/pane.a2ui.json +1 -1
- package/components/pane/pane.js +4 -4
- package/components/pane/pane.yaml +1 -1
- package/components/pipeline-status/pipeline-status.a2ui.json +1 -1
- package/components/pipeline-status/pipeline-status.js +4 -4
- package/components/pipeline-status/pipeline-status.yaml +1 -1
- package/components/popover/popover.a2ui.json +1 -1
- package/components/popover/popover.js +4 -4
- package/components/popover/popover.yaml +1 -1
- package/components/progress/progress.a2ui.json +1 -1
- package/components/progress/progress.js +4 -4
- package/components/progress/progress.yaml +1 -1
- package/components/progress-row/progress-row.a2ui.json +1 -1
- package/components/progress-row/progress-row.js +4 -4
- package/components/progress-row/progress-row.yaml +1 -1
- package/components/radio/radio.a2ui.json +1 -1
- package/components/radio/radio.js +5 -5
- package/components/radio/radio.yaml +1 -1
- package/components/range/range.a2ui.json +1 -1
- package/components/range/range.js +7 -7
- package/components/range/range.yaml +1 -1
- package/components/rating/rating.a2ui.json +1 -1
- package/components/rating/rating.js +6 -6
- package/components/rating/rating.yaml +1 -1
- package/components/richtext/richtext.a2ui.json +1 -1
- package/components/richtext/richtext.js +4 -4
- package/components/richtext/richtext.yaml +1 -1
- package/components/row/row.a2ui.json +1 -1
- package/components/row/row.js +4 -4
- package/components/row/row.yaml +1 -1
- package/components/search/search.a2ui.json +1 -1
- package/components/search/search.js +5 -5
- package/components/search/search.yaml +1 -1
- package/components/section/section.a2ui.json +1 -1
- package/components/section/section.yaml +1 -1
- package/components/segment/segment.a2ui.json +1 -1
- package/components/segment/segment.js +4 -4
- package/components/segment/segment.yaml +1 -1
- package/components/segmented/segmented.a2ui.json +1 -1
- package/components/segmented/segmented.css +6 -0
- package/components/segmented/segmented.js +7 -7
- package/components/segmented/segmented.yaml +1 -1
- package/components/select/select.a2ui.json +1 -1
- package/components/select/select.js +5 -5
- package/components/select/select.yaml +1 -1
- package/components/skeleton/skeleton.a2ui.json +1 -1
- package/components/skeleton/skeleton.js +4 -4
- package/components/skeleton/skeleton.yaml +1 -1
- package/components/slider/slider.a2ui.json +1 -1
- package/components/slider/slider.js +7 -7
- package/components/slider/slider.yaml +1 -1
- package/components/stack/stack.a2ui.json +1 -1
- package/components/stack/stack.js +4 -4
- package/components/stack/stack.yaml +1 -1
- package/components/stat/stat.a2ui.json +1 -1
- package/components/stat/stat.js +4 -4
- package/components/stat/stat.yaml +1 -1
- package/components/stepper/stepper.a2ui.json +1 -1
- package/components/stepper/stepper.js +6 -6
- package/components/stepper/stepper.yaml +1 -1
- package/components/stream/stream.a2ui.json +1 -1
- package/components/stream/stream.js +4 -4
- package/components/stream/stream.yaml +1 -1
- package/components/swatch/swatch.a2ui.json +1 -1
- package/components/swatch/swatch.js +4 -4
- package/components/swatch/swatch.yaml +1 -1
- package/components/swiper/swiper.a2ui.json +1 -1
- package/components/swiper/swiper.js +4 -4
- package/components/swiper/swiper.yaml +1 -1
- package/components/switch/switch.a2ui.json +1 -1
- package/components/switch/switch.js +5 -5
- package/components/switch/switch.yaml +1 -1
- package/components/table/table.a2ui.json +1 -1
- package/components/table/table.js +4 -4
- package/components/table/table.yaml +1 -1
- package/components/table-toolbar/table-toolbar.a2ui.json +1 -1
- package/components/table-toolbar/table-toolbar.js +4 -4
- package/components/table-toolbar/table-toolbar.yaml +1 -1
- package/components/tabs/tab.js +4 -4
- package/components/tabs/tabs.a2ui.json +1 -1
- package/components/tabs/tabs.js +5 -5
- package/components/tabs/tabs.yaml +1 -1
- package/components/tag/tag.a2ui.json +1 -1
- package/components/tag/tag.js +4 -4
- package/components/tag/tag.yaml +1 -1
- package/components/text/text.a2ui.json +1 -1
- package/components/text/text.js +4 -4
- package/components/text/text.yaml +1 -1
- package/components/textarea/textarea.a2ui.json +1 -1
- package/components/textarea/textarea.js +5 -5
- package/components/textarea/textarea.yaml +1 -1
- package/components/timeline/timeline.a2ui.json +1 -1
- package/components/timeline/timeline.js +6 -6
- package/components/timeline/timeline.yaml +1 -1
- package/components/toast/toast.a2ui.json +1 -1
- package/components/toast/toast.js +18 -18
- package/components/toast/toast.yaml +1 -1
- package/components/toggle-group/toggle-group.a2ui.json +1 -1
- package/components/toggle-group/toggle-group.js +6 -6
- package/components/toggle-group/toggle-group.yaml +1 -1
- package/components/toolbar/toolbar.a2ui.json +1 -1
- package/components/toolbar/toolbar.js +6 -6
- package/components/toolbar/toolbar.yaml +1 -1
- package/components/tooltip/tooltip.a2ui.json +1 -1
- package/components/tooltip/tooltip.js +7 -7
- package/components/tooltip/tooltip.yaml +1 -1
- package/components/tree/tree.a2ui.json +1 -1
- package/components/tree/tree.js +6 -6
- package/components/tree/tree.yaml +1 -1
- package/components/upload/upload.a2ui.json +1 -1
- package/components/upload/upload.js +6 -6
- package/components/upload/upload.yaml +1 -1
- package/core/element.js +4 -4
- package/core/element.test.js +18 -18
- package/core/form.js +9 -9
- package/core/index.js +2 -2
- package/core/provider.js +7 -7
- package/core/template.js +1 -1
- package/index.css +1 -1
- package/index.js +10 -8
- package/package.json +1 -1
- package/styles/components.css +10 -6
- package/styles/resets.css +1 -1
- package/traits/define.js +2 -2
- /package/components/{chat → chat-thread}/chat-input.css +0 -0
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
* toggle — { detail: { open } }
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { UIElement } from '../../core/element.js';
|
|
16
16
|
|
|
17
17
|
// ── Accordion Container ────────────────────────────────────────
|
|
18
18
|
|
|
19
|
-
class
|
|
19
|
+
class UIAccordion extends UIElement {
|
|
20
20
|
static properties = {
|
|
21
21
|
multiple: { type: Boolean, default: false, reflect: true },
|
|
22
22
|
};
|
|
@@ -46,11 +46,11 @@ class AdiaAccordion extends AdiaElement {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
customElements.define('accordion-ui',
|
|
49
|
+
customElements.define('accordion-ui', UIAccordion);
|
|
50
50
|
|
|
51
51
|
// ── Accordion Item ─────────────────────────────────────────────
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class UIAccordionItem extends UIElement {
|
|
54
54
|
static properties = {
|
|
55
55
|
text: { type: String, default: '', reflect: true },
|
|
56
56
|
open: { type: Boolean, default: false, reflect: true },
|
|
@@ -120,6 +120,6 @@ class AdiaAccordionItem extends AdiaElement {
|
|
|
120
120
|
}));
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
customElements.define('accordion-item-ui',
|
|
123
|
+
customElements.define('accordion-item-ui', UIAccordionItem);
|
|
124
124
|
|
|
125
|
-
export {
|
|
125
|
+
export { UIAccordion, UIAccordionItem };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIAccordion
|
|
5
5
|
tag: accordion-ui
|
|
6
6
|
component: Accordion
|
|
7
7
|
category: container
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* or activated via keyboard (Enter / Space). Keyboard nav: ArrowUp/Down, Home/End.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import {
|
|
18
|
+
import { UIElement } from '../../core/element.js';
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class UIActionList extends UIElement {
|
|
21
21
|
static properties = {};
|
|
22
22
|
static template = () => null;
|
|
23
23
|
|
|
@@ -75,9 +75,9 @@ class AdiaActionList extends AdiaElement {
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
customElements.define('action-list-ui',
|
|
78
|
+
customElements.define('action-list-ui', UIActionList);
|
|
79
79
|
|
|
80
|
-
class
|
|
80
|
+
class UIActionItem extends UIElement {
|
|
81
81
|
static properties = {
|
|
82
82
|
icon: { type: String, default: '', reflect: true },
|
|
83
83
|
text: { type: String, default: '', reflect: true },
|
|
@@ -144,6 +144,6 @@ class AdiaActionItem extends AdiaElement {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
customElements.define('action-item-ui',
|
|
147
|
+
customElements.define('action-item-ui', UIActionItem);
|
|
148
148
|
|
|
149
|
-
export {
|
|
149
|
+
export { UIActionList, UIActionItem };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIActionList
|
|
5
5
|
tag: action-list-ui
|
|
6
6
|
component: ActionList
|
|
7
7
|
category: navigation
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* artifact-toggle — detail: { collapsed }
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
import {
|
|
30
|
+
import { UIElement } from '../../core/element.js';
|
|
31
31
|
|
|
32
32
|
const TONE_TO_BADGE_VARIANT = {
|
|
33
33
|
neutral: 'default',
|
|
@@ -36,7 +36,7 @@ const TONE_TO_BADGE_VARIANT = {
|
|
|
36
36
|
danger: 'danger',
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class UIAgentArtifact extends UIElement {
|
|
40
40
|
static properties = {
|
|
41
41
|
title: { type: String, default: '', reflect: true },
|
|
42
42
|
kind: { type: String, default: '', reflect: true },
|
|
@@ -186,5 +186,5 @@ class AdiaAgentArtifact extends AdiaElement {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
customElements.define('agent-artifact-ui',
|
|
190
|
-
export {
|
|
189
|
+
customElements.define('agent-artifact-ui', UIAgentArtifact);
|
|
190
|
+
export { UIAgentArtifact };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIAgentArtifact
|
|
5
5
|
tag: agent-artifact-ui
|
|
6
6
|
component: AgentArtifact
|
|
7
7
|
category: agent
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
* .reset() clear status, re-enable buttons
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
import {
|
|
33
|
+
import { UIElement } from '../../core/element.js';
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class UIAgentFeedbackBar extends UIElement {
|
|
36
36
|
static properties = {
|
|
37
37
|
saveLabel: { type: String, default: '', reflect: true, attribute: 'save-label' },
|
|
38
38
|
saveIcon: { type: String, default: 'bookmark-simple', reflect: true, attribute: 'save-icon' },
|
|
@@ -148,5 +148,5 @@ function makeButton({ icon, text = '' }) {
|
|
|
148
148
|
return btn;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
customElements.define('agent-feedback-bar-ui',
|
|
152
|
-
export {
|
|
151
|
+
customElements.define('agent-feedback-bar-ui', UIAgentFeedbackBar);
|
|
152
|
+
export { UIAgentFeedbackBar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIAgentFeedbackBar
|
|
5
5
|
tag: agent-feedback-bar-ui
|
|
6
6
|
component: AgentFeedbackBar
|
|
7
7
|
category: agent
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
* questions-answer — detail: { selected: string[], option: chosen | null }
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
|
-
import {
|
|
29
|
+
import { UIElement } from '../../core/element.js';
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class UIAgentQuestions extends UIElement {
|
|
32
32
|
static properties = {
|
|
33
33
|
multi: { type: Boolean, default: false, reflect: true },
|
|
34
34
|
question: { type: String, default: '', reflect: true },
|
|
@@ -185,5 +185,5 @@ function escapeAttr(s) {
|
|
|
185
185
|
return String(s).replace(/"/g, '"');
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
customElements.define('agent-questions-ui',
|
|
189
|
-
export {
|
|
188
|
+
customElements.define('agent-questions-ui', UIAgentQuestions);
|
|
189
|
+
export { UIAgentQuestions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIAgentQuestions
|
|
5
5
|
tag: agent-questions-ui
|
|
6
6
|
component: AgentQuestions
|
|
7
7
|
category: agent
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"plan",
|
|
79
79
|
"iteration"
|
|
80
80
|
],
|
|
81
|
-
"name": "
|
|
81
|
+
"name": "UIAgentReasoning",
|
|
82
82
|
"related": [
|
|
83
83
|
"agent-trace-ui",
|
|
84
84
|
"pipeline-status-ui"
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
}
|
|
96
96
|
],
|
|
97
97
|
"synonyms": {
|
|
98
|
-
"chain-of-thought-
|
|
99
|
-
"cot-
|
|
98
|
+
"chain-of-thought-ui": "agent-reasoning-ui",
|
|
99
|
+
"cot-ui": "agent-reasoning-ui"
|
|
100
100
|
},
|
|
101
101
|
"tag": "agent-reasoning-ui",
|
|
102
102
|
"tokens": {},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* reasoning-finish — .finish() was called (detail: { summary, status })
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
|
-
import {
|
|
48
|
+
import { UIElement } from '../../core/element.js';
|
|
49
49
|
|
|
50
50
|
// Status lifecycle for the reasoning surface as a whole.
|
|
51
51
|
// active — still thinking (default; renders the spinner)
|
|
@@ -54,7 +54,7 @@ import { AdiaElement } from '../../core/element.js';
|
|
|
54
54
|
// idle — not started (renders muted dot)
|
|
55
55
|
const REASONING_STATUSES = new Set(['idle', 'active', 'done', 'error']);
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class UIAgentReasoning extends UIElement {
|
|
58
58
|
static properties = {
|
|
59
59
|
collapsed: { type: Boolean, default: false, reflect: true },
|
|
60
60
|
noAutocollapse: { type: Boolean, default: false, reflect: true, attribute: 'no-autocollapse' },
|
|
@@ -499,5 +499,5 @@ function formatDuration(ms) {
|
|
|
499
499
|
return Math.round(ms / 1000) + 's';
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
customElements.define('agent-reasoning-ui',
|
|
503
|
-
export {
|
|
502
|
+
customElements.define('agent-reasoning-ui', UIAgentReasoning);
|
|
503
|
+
export { UIAgentReasoning };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIAgentReasoning
|
|
5
5
|
tag: agent-reasoning-ui
|
|
6
6
|
component: AgentReasoning
|
|
7
7
|
category: agent
|
|
@@ -66,8 +66,8 @@ keywords:
|
|
|
66
66
|
- plan
|
|
67
67
|
- iteration
|
|
68
68
|
synonyms:
|
|
69
|
-
chain-of-thought-
|
|
70
|
-
cot-
|
|
69
|
+
chain-of-thought-ui: agent-reasoning-ui
|
|
70
|
+
cot-ui: agent-reasoning-ui
|
|
71
71
|
related:
|
|
72
72
|
- agent-trace-ui
|
|
73
73
|
- pipeline-status-ui
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
* suggestion-select — detail: { label, prompt, index }
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
import {
|
|
27
|
+
import { UIElement } from '../../core/element.js';
|
|
28
28
|
|
|
29
|
-
class
|
|
29
|
+
class UIAgentSuggestions extends UIElement {
|
|
30
30
|
static properties = {
|
|
31
31
|
variant: { type: String, default: 'outline', reflect: true },
|
|
32
32
|
size: { type: String, default: 'sm', reflect: true },
|
|
@@ -83,5 +83,5 @@ function truncate(s, n) {
|
|
|
83
83
|
return s.length > n ? s.slice(0, n - 1) + '…' : s;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
customElements.define('agent-suggestions-ui',
|
|
87
|
-
export {
|
|
86
|
+
customElements.define('agent-suggestions-ui', UIAgentSuggestions);
|
|
87
|
+
export { UIAgentSuggestions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIAgentSuggestions
|
|
5
5
|
tag: agent-suggestions-ui
|
|
6
6
|
component: AgentSuggestions
|
|
7
7
|
category: agent
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
* trace-toggle — summary opened/closed
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
|
-
import {
|
|
37
|
+
import { UIElement } from '../../core/element.js';
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class UIAgentTrace extends UIElement {
|
|
40
40
|
static properties = {
|
|
41
41
|
// agent-* family is default-visible disclosure (see component-token-contract.md
|
|
42
42
|
// §"Toggle state naming"). Use `collapsed` to hide; bare element shows.
|
|
@@ -214,5 +214,5 @@ function escapeAttr(s) {
|
|
|
214
214
|
return String(s).replace(/"/g, '"');
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
customElements.define('agent-trace-ui',
|
|
218
|
-
export {
|
|
217
|
+
customElements.define('agent-trace-ui', UIAgentTrace);
|
|
218
|
+
export { UIAgentTrace };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIAgentTrace
|
|
5
5
|
tag: agent-trace-ui
|
|
6
6
|
component: AgentTrace
|
|
7
7
|
category: agent
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* close — fired when the user dismisses the alert
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { UIElement } from '../../core/element.js';
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class UIAlert extends UIElement {
|
|
17
17
|
static properties = {
|
|
18
18
|
text: { type: String, default: '', reflect: true },
|
|
19
19
|
variant: { type: String, default: 'default', reflect: true },
|
|
@@ -88,6 +88,6 @@ class AdiaAlert extends AdiaElement {
|
|
|
88
88
|
this.remove();
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
customElements.define('alert-ui',
|
|
91
|
+
customElements.define('alert-ui', UIAlert);
|
|
92
92
|
|
|
93
|
-
export {
|
|
93
|
+
export { UIAlert };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIAlert
|
|
5
5
|
tag: alert-ui
|
|
6
6
|
component: Alert
|
|
7
7
|
category: container
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* Overlapping avatar stack with +N overflow counter.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { UIElement } from '../../core/element.js';
|
|
18
18
|
|
|
19
19
|
// ── Avatar ──────────────────────────────────────────────────
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class UIAvatar extends UIElement {
|
|
22
22
|
static properties = {
|
|
23
23
|
src: { type: String, default: '', reflect: true },
|
|
24
24
|
text: { type: String, default: '', reflect: true },
|
|
@@ -41,8 +41,8 @@ class AdiaAvatar extends AdiaElement {
|
|
|
41
41
|
|
|
42
42
|
connected() {
|
|
43
43
|
this.setAttribute('role', 'img');
|
|
44
|
-
if (this.name && !this.text && !
|
|
45
|
-
|
|
44
|
+
if (this.name && !this.text && !UIAvatar.#nameWarned) {
|
|
45
|
+
UIAvatar.#nameWarned = true;
|
|
46
46
|
// eslint-disable-next-line no-console
|
|
47
47
|
console.warn(
|
|
48
48
|
`[AdiaUI] <avatar-ui name="…"> is deprecated — use text="…" instead. ` +
|
|
@@ -111,11 +111,11 @@ class AdiaAvatar extends AdiaElement {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
customElements.define('avatar-ui',
|
|
114
|
+
customElements.define('avatar-ui', UIAvatar);
|
|
115
115
|
|
|
116
116
|
// ── Avatar Group ────────────────────────────────────────────
|
|
117
117
|
|
|
118
|
-
class
|
|
118
|
+
class UIAvatarGroup extends UIElement {
|
|
119
119
|
static properties = {
|
|
120
120
|
max: { type: Number, default: 5, reflect: true },
|
|
121
121
|
size: { type: String, default: '', reflect: true },
|
|
@@ -163,6 +163,6 @@ class AdiaAvatarGroup extends AdiaElement {
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
customElements.define('avatar-group-ui',
|
|
166
|
+
customElements.define('avatar-group-ui', UIAvatarGroup);
|
|
167
167
|
|
|
168
|
-
export {
|
|
168
|
+
export { UIAvatar, UIAvatarGroup };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIAvatar
|
|
5
5
|
tag: avatar-ui
|
|
6
6
|
component: Avatar
|
|
7
7
|
category: display
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* Status: semantic shorthand that auto-maps variant + text.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { UIElement } from '../../core/element.js';
|
|
18
18
|
|
|
19
19
|
const STATUS_MAP = {
|
|
20
20
|
new: { variant: 'success', text: 'New' },
|
|
@@ -24,7 +24,7 @@ const STATUS_MAP = {
|
|
|
24
24
|
beta: { variant: 'accent', text: 'Beta' },
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class UIBadge extends UIElement {
|
|
28
28
|
static properties = {
|
|
29
29
|
text: { type: String, default: '', reflect: true },
|
|
30
30
|
variant: { type: String, default: 'default', reflect: true },
|
|
@@ -77,6 +77,6 @@ class AdiaBadge extends AdiaElement {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
customElements.define('badge-ui',
|
|
80
|
+
customElements.define('badge-ui', UIBadge);
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { UIBadge };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIBadge
|
|
5
5
|
tag: badge-ui
|
|
6
6
|
component: Badge
|
|
7
7
|
category: display
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* margin — none | xs | sm | md | lg | xl (default 'none')
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { UIElement } from '../../core/element.js';
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class UIBlock extends UIElement {
|
|
14
14
|
static properties = {
|
|
15
15
|
padding: { type: String, default: 'md', reflect: true },
|
|
16
16
|
margin: { type: String, default: 'none', reflect: true },
|
|
@@ -18,6 +18,6 @@ class AdiaBlock extends AdiaElement {
|
|
|
18
18
|
|
|
19
19
|
static template = () => null;
|
|
20
20
|
}
|
|
21
|
-
customElements.define('block-ui',
|
|
21
|
+
customElements.define('block-ui', UIBlock);
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { UIBlock };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIBlock
|
|
5
5
|
tag: block-ui
|
|
6
6
|
component: Block
|
|
7
7
|
category: layout
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* z-index battles inside scrolling containers).
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import {
|
|
22
|
+
import { UIElement } from '../../core/element.js';
|
|
23
23
|
|
|
24
|
-
class
|
|
24
|
+
class UIBreadcrumb extends UIElement {
|
|
25
25
|
static properties = {
|
|
26
26
|
separator: { type: String, default: '/', reflect: true },
|
|
27
27
|
collapse: { type: Boolean, default: false, reflect: true },
|
|
@@ -118,5 +118,5 @@ class AdiaBreadcrumb extends AdiaElement {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
customElements.define('breadcrumb-ui',
|
|
122
|
-
export {
|
|
121
|
+
customElements.define('breadcrumb-ui', UIBreadcrumb);
|
|
122
|
+
export { UIBreadcrumb };
|