@adia-ai/web-components 0.0.29 → 0.0.34
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 +89 -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/step-progress/step-progress.a2ui.json +111 -0
- package/components/step-progress/step-progress.css +61 -0
- package/components/step-progress/step-progress.js +88 -0
- package/components/step-progress/step-progress.test.js +118 -0
- package/components/step-progress/step-progress.yaml +93 -0
- 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 +11 -6
- package/styles/resets.css +1 -1
- package/traits/define.js +2 -2
- /package/components/{chat → chat-thread}/chat-input.css +0 -0
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* stream-error — stream error (detail: { error })
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { UIElement } from '../../core/element.js';
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class UIStream extends UIElement {
|
|
24
24
|
static properties = {
|
|
25
25
|
pace: { type: Number, default: 0, reflect: true },
|
|
26
26
|
hideCursor: { type: Boolean, default: false, reflect: true, attribute: 'hide-cursor' },
|
|
@@ -94,6 +94,6 @@ class AdiaStream extends AdiaElement {
|
|
|
94
94
|
this.stop();
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
customElements.define('stream-ui',
|
|
97
|
+
customElements.define('stream-ui', UIStream);
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { UIStream };
|
|
@@ -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: UIStream
|
|
5
5
|
tag: stream-ui
|
|
6
6
|
component: Stream
|
|
7
7
|
category: agent
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
* <span data-label></span> — the label text (omitted when no label/slot)
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
|
-
import {
|
|
28
|
+
import { UIElement } from '../../core/element.js';
|
|
29
29
|
|
|
30
30
|
const SHAPES = new Set(['block', 'dot', 'square', 'line', 'dashed']);
|
|
31
31
|
const SIZES = new Set(['sm', 'md', 'lg']);
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class UISwatch extends UIElement {
|
|
34
34
|
static properties = {
|
|
35
35
|
shape: { type: String, default: 'square', reflect: true },
|
|
36
36
|
size: { type: String, default: 'md', reflect: true },
|
|
@@ -117,5 +117,5 @@ class AdiaSwatch extends AdiaElement {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
customElements.define('swatch-ui',
|
|
121
|
-
export {
|
|
120
|
+
customElements.define('swatch-ui', UISwatch);
|
|
121
|
+
export { UISwatch };
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
* autoplay-resume
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {
|
|
24
|
+
import { UIElement } from '../../core/element.js';
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class UISwiper extends UIElement {
|
|
27
27
|
static properties = {
|
|
28
28
|
autoplay: { type: Boolean, default: false, reflect: true },
|
|
29
29
|
interval: { type: Number, default: 5000, reflect: true },
|
|
@@ -359,5 +359,5 @@ class AdiaSwiper extends AdiaElement {
|
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
customElements.define('swiper-ui',
|
|
363
|
-
export {
|
|
362
|
+
customElements.define('swiper-ui', UISwiper);
|
|
363
|
+
export { UISwiper };
|
|
@@ -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: UISwiper
|
|
5
5
|
tag: swiper-ui
|
|
6
6
|
component: Swiper
|
|
7
7
|
category: layout
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Pure CSS track + thumb, no native <input>.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { UIFormElement } from '../../core/form.js';
|
|
7
7
|
import { html } from '../../core/element.js';
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class UISwitch extends UIFormElement {
|
|
10
10
|
static properties = {
|
|
11
|
-
...
|
|
11
|
+
...UIFormElement.properties,
|
|
12
12
|
checked: { type: Boolean, default: false, reflect: true },
|
|
13
13
|
label: { type: String, default: '', reflect: true },
|
|
14
14
|
size: { type: String, default: '', reflect: true },
|
|
@@ -48,6 +48,6 @@ class AdiaSwitch extends AdiaFormElement {
|
|
|
48
48
|
this.removeEventListener('keydown', this.#onKey);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
customElements.define('switch-ui',
|
|
51
|
+
customElements.define('switch-ui', UISwitch);
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { UISwitch };
|
|
@@ -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: UISwitch
|
|
5
5
|
tag: switch-ui
|
|
6
6
|
component: Switch
|
|
7
7
|
category: layout
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* cell-click — { detail: { key, row, value, dataIndex } }
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
|
-
import {
|
|
39
|
+
import { UIElement } from '../../core/element.js';
|
|
40
40
|
import { cellTypes, sortFns } from './cell-types.js';
|
|
41
41
|
|
|
42
42
|
// ── Helpers ──────────────────────────────────────────────────────────────────
|
|
@@ -77,7 +77,7 @@ function csvEscape(val) {
|
|
|
77
77
|
|
|
78
78
|
// ── Component ────────────────────────────────────────────────────────────────
|
|
79
79
|
|
|
80
|
-
class
|
|
80
|
+
class UITable extends UIElement {
|
|
81
81
|
static properties = {
|
|
82
82
|
sortable: { type: Boolean, default: false, reflect: true },
|
|
83
83
|
selectable: { type: Boolean, default: false, reflect: true },
|
|
@@ -1439,6 +1439,6 @@ class AdiaTable extends AdiaElement {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
}
|
|
1441
1441
|
|
|
1442
|
-
customElements.define('table-ui',
|
|
1442
|
+
customElements.define('table-ui', UITable);
|
|
1443
1443
|
|
|
1444
|
-
export {
|
|
1444
|
+
export { UITable };
|
|
@@ -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: UITable
|
|
5
5
|
tag: table-ui
|
|
6
6
|
component: Table
|
|
7
7
|
category: agent
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
* column hidden → table.columns = (clone with hidden flag flipped)
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import {
|
|
24
|
+
import { UIElement } from '../../core/element.js';
|
|
25
25
|
import { anchorPopover } from '../../core/anchor.js';
|
|
26
26
|
|
|
27
27
|
const SEARCH_DEBOUNCE = 200;
|
|
28
28
|
|
|
29
|
-
class
|
|
29
|
+
class UITableToolbar extends UIElement {
|
|
30
30
|
static properties = {
|
|
31
31
|
for: { type: String, default: '', reflect: true },
|
|
32
32
|
text: { type: String, default: '', reflect: false },
|
|
@@ -693,6 +693,6 @@ function collectUniqueValues(col, data) {
|
|
|
693
693
|
return [...set].sort((a, b) => a.localeCompare(b, undefined, { numeric: true }));
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
customElements.define('table-toolbar-ui',
|
|
696
|
+
customElements.define('table-toolbar-ui', UITableToolbar);
|
|
697
697
|
|
|
698
|
-
export {
|
|
698
|
+
export { UITableToolbar };
|
package/components/tabs/tab.js
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* The tab button is rendered by the parent tabs-ui, not by tab-ui itself.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { UIElement } from '../../core/element.js';
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class UITab extends UIElement {
|
|
13
13
|
static properties = {
|
|
14
14
|
text: { type: String, default: '', reflect: true },
|
|
15
15
|
value: { type: String, default: '', reflect: true },
|
|
@@ -29,6 +29,6 @@ class AdiaTab extends AdiaElement {
|
|
|
29
29
|
else this.removeAttribute('aria-disabled');
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
customElements.define('tab-ui',
|
|
32
|
+
customElements.define('tab-ui', UITab);
|
|
33
33
|
|
|
34
|
-
export {
|
|
34
|
+
export { UITab };
|
package/components/tabs/tabs.js
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* ArrowLeft / ArrowRight to navigate tabs
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
18
|
-
import '
|
|
17
|
+
import { UIElement, html } from '../../core/element.js';
|
|
18
|
+
import './tab.js';
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class UITabs extends UIElement {
|
|
21
21
|
static properties = {
|
|
22
22
|
value: { type: String, default: '', reflect: true },
|
|
23
23
|
orientation: { type: String, default: '', reflect: true },
|
|
@@ -227,6 +227,6 @@ class AdiaTabs extends AdiaElement {
|
|
|
227
227
|
this.#select(buttons[next].dataset.value);
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
customElements.define('tabs-ui',
|
|
230
|
+
customElements.define('tabs-ui', UITabs);
|
|
231
231
|
|
|
232
|
-
export {
|
|
232
|
+
export { UITabs };
|
|
@@ -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: UITabs
|
|
5
5
|
tag: tabs-ui
|
|
6
6
|
component: Tabs
|
|
7
7
|
category: container
|
package/components/tag/tag.js
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* remove — { detail: { text, value } } fired when dismiss is clicked
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { UIElement } from '../../core/element.js';
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class UITag extends UIElement {
|
|
17
17
|
static properties = {
|
|
18
18
|
text: { type: String, default: '', reflect: true },
|
|
19
19
|
variant: { type: String, default: 'default', reflect: true },
|
|
@@ -83,6 +83,6 @@ class AdiaTag extends AdiaElement {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
customElements.define('tag-ui',
|
|
86
|
+
customElements.define('tag-ui', UITag);
|
|
87
87
|
|
|
88
|
-
export {
|
|
88
|
+
export { UITag };
|
package/components/tag/tag.yaml
CHANGED
|
@@ -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: UITag
|
|
5
5
|
tag: tag-ui
|
|
6
6
|
component: Tag
|
|
7
7
|
category: display
|
package/components/text/text.js
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* lines — multi-line clamp count (0 = no clamp)
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { UIElement } from '../../core/element.js';
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class UIText extends UIElement {
|
|
17
17
|
static properties = {
|
|
18
18
|
variant: { type: String, default: 'body', reflect: true },
|
|
19
19
|
truncate: { type: Boolean, default: false, reflect: true },
|
|
@@ -30,6 +30,6 @@ class AdiaText extends AdiaElement {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
customElements.define('text-ui',
|
|
33
|
+
customElements.define('text-ui', UIText);
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { UIText };
|
|
@@ -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: UIText
|
|
5
5
|
tag: text-ui
|
|
6
6
|
component: Text
|
|
7
7
|
category: display
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* No native <textarea> inside.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { UIFormElement } from '../../core/form.js';
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class UITextarea extends UIFormElement {
|
|
10
10
|
static properties = {
|
|
11
|
-
...
|
|
11
|
+
...UIFormElement.properties,
|
|
12
12
|
placeholder: { type: String, default: '', reflect: true },
|
|
13
13
|
label: { type: String, default: '', reflect: true },
|
|
14
14
|
rows: { type: Number, default: 3, reflect: true },
|
|
@@ -109,6 +109,6 @@ class AdiaTextarea extends AdiaFormElement {
|
|
|
109
109
|
this.#textEl = null;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
customElements.define('textarea-ui',
|
|
112
|
+
customElements.define('textarea-ui', UITextarea);
|
|
113
113
|
|
|
114
|
-
export {
|
|
114
|
+
export { UITextarea };
|
|
@@ -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: UITextarea
|
|
5
5
|
tag: textarea-ui
|
|
6
6
|
component: Textarea
|
|
7
7
|
category: layout
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
* .outcomes = string[] // renders an expandable sub-list under the row
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
|
-
import {
|
|
45
|
+
import { UIElement } from '../../core/element.js';
|
|
46
46
|
|
|
47
47
|
// ── Container ──────────────────────────────────────────────────
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class UITimeline extends UIElement {
|
|
50
50
|
static properties = {
|
|
51
51
|
orientation: { type: String, default: 'vertical', reflect: true },
|
|
52
52
|
size: { type: String, default: 'md', reflect: true },
|
|
@@ -62,11 +62,11 @@ class AdiaTimeline extends AdiaElement {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
customElements.define('timeline-ui',
|
|
65
|
+
customElements.define('timeline-ui', UITimeline);
|
|
66
66
|
|
|
67
67
|
// ── Item ───────────────────────────────────────────────────────
|
|
68
68
|
|
|
69
|
-
class
|
|
69
|
+
class UITimelineItem extends UIElement {
|
|
70
70
|
static properties = {
|
|
71
71
|
text: { type: String, default: '', reflect: true },
|
|
72
72
|
description: { type: String, default: '', reflect: true },
|
|
@@ -166,6 +166,6 @@ class AdiaTimelineItem extends AdiaElement {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
customElements.define('timeline-item-ui',
|
|
169
|
+
customElements.define('timeline-item-ui', UITimelineItem);
|
|
170
170
|
|
|
171
|
-
export {
|
|
171
|
+
export { UITimeline, UITimelineItem };
|
|
@@ -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: UITimeline
|
|
5
5
|
tag: timeline-ui
|
|
6
6
|
component: Timeline
|
|
7
7
|
category: display
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <toast-ui> — Thin facade over `<feed-ui>` / `
|
|
2
|
+
* <toast-ui> — Thin facade over `<feed-ui>` / `UIFeed.post()`.
|
|
3
3
|
*
|
|
4
4
|
* Phase 4 of `docs/specs/feed-channel.md` (SPEC-FEED-CHANNEL-001) —
|
|
5
5
|
* toast-ui no longer owns its own per-position container. Both
|
|
6
|
-
* declarative `<toast-ui>` and imperative `
|
|
7
|
-
* route through `
|
|
6
|
+
* declarative `<toast-ui>` and imperative `UIToast.show()` paths
|
|
7
|
+
* route through `UIFeed`. The element exists for back-compat:
|
|
8
8
|
* authoring `<toast-ui text="…">` still produces a feed item.
|
|
9
9
|
*
|
|
10
|
-
* // Imperative API (delegates to
|
|
11
|
-
*
|
|
10
|
+
* // Imperative API (delegates to UIFeed.post)
|
|
11
|
+
* UIToast.show({ text: 'Saved!', variant: 'success' });
|
|
12
12
|
*
|
|
13
13
|
* // Global event channel — same shape, same delegation.
|
|
14
14
|
* window.dispatchEvent(new CustomEvent('toast', {
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
* `<feed-ui>` (see ../feed/feed.js).
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
26
|
+
import { UIElement, html } from '../../core/element.js';
|
|
27
|
+
import { UIFeed } from '../feed/feed.js';
|
|
28
28
|
|
|
29
|
-
class
|
|
29
|
+
class UIToast extends UIElement {
|
|
30
30
|
static properties = {
|
|
31
31
|
text: { type: String, default: '', reflect: true },
|
|
32
32
|
variant: { type: String, default: 'info', reflect: true },
|
|
@@ -37,13 +37,13 @@ class AdiaToast extends AdiaElement {
|
|
|
37
37
|
static template = () => html``;
|
|
38
38
|
|
|
39
39
|
connected() {
|
|
40
|
-
/* Declarative path: post into
|
|
40
|
+
/* Declarative path: post into UIFeed and remove self. The
|
|
41
41
|
element is fire-and-forget — its only job is to forward the
|
|
42
42
|
authored attributes to the feed, then dissolve. Re-entrant
|
|
43
43
|
guard keeps this safe under HMR / dev-mode re-attachment. */
|
|
44
44
|
if (this.__routedToFeed) return;
|
|
45
45
|
this.__routedToFeed = true;
|
|
46
|
-
|
|
46
|
+
UIFeed.post({
|
|
47
47
|
text: this.text,
|
|
48
48
|
variant: this.variant === 'error' ? 'danger' : this.variant,
|
|
49
49
|
duration: this.duration,
|
|
@@ -55,9 +55,9 @@ class AdiaToast extends AdiaElement {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* Static facade — delegates to
|
|
58
|
+
* Static facade — delegates to UIFeed.post(). Kept for back-compat
|
|
59
59
|
* with consumer code shaped like `customElements.get('toast-ui').show(...)`
|
|
60
|
-
* or `
|
|
60
|
+
* or `UIToast.show(...)`. New code should call UIFeed.post()
|
|
61
61
|
* directly.
|
|
62
62
|
*
|
|
63
63
|
* @param {Object} opts
|
|
@@ -69,7 +69,7 @@ class AdiaToast extends AdiaElement {
|
|
|
69
69
|
*/
|
|
70
70
|
static show(opts = {}) {
|
|
71
71
|
const { text, variant = 'info', duration = 4000, position = 'bottom-right' } = opts;
|
|
72
|
-
return
|
|
72
|
+
return UIFeed.post({
|
|
73
73
|
text,
|
|
74
74
|
variant: variant === 'error' ? 'danger' : variant,
|
|
75
75
|
duration,
|
|
@@ -81,15 +81,15 @@ class AdiaToast extends AdiaElement {
|
|
|
81
81
|
/* Idempotent install of the global 'toast' CustomEvent listener.
|
|
82
82
|
Same shape as the historical channel — code that posts via
|
|
83
83
|
`window.dispatchEvent(new CustomEvent('toast', {detail:{…}}))`
|
|
84
|
-
keeps working. The listener delegates to
|
|
85
|
-
delegates to
|
|
84
|
+
keeps working. The listener delegates to UIToast.show(), which
|
|
85
|
+
delegates to UIFeed.post(). */
|
|
86
86
|
if (typeof window !== 'undefined' && !window.__adiaToastListenerInstalled) {
|
|
87
87
|
window.__adiaToastListenerInstalled = true;
|
|
88
88
|
window.addEventListener('toast', (e) => {
|
|
89
|
-
if (e?.detail && typeof e.detail === 'object')
|
|
89
|
+
if (e?.detail && typeof e.detail === 'object') UIToast.show(e.detail);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
customElements.define('toast-ui',
|
|
93
|
+
customElements.define('toast-ui', UIToast);
|
|
94
94
|
|
|
95
|
-
export {
|
|
95
|
+
export { UIToast };
|
|
@@ -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: UIToast
|
|
5
5
|
tag: toast-ui
|
|
6
6
|
component: Toast
|
|
7
7
|
category: container
|