@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
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
* external label-row composition (hint, error, action slot, etc.).
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { UIFormElement } from '../../core/form.js';
|
|
15
15
|
|
|
16
|
-
class
|
|
17
|
-
// Opt out of
|
|
16
|
+
class UISlider extends UIFormElement {
|
|
17
|
+
// Opt out of UIFormElement's per-control `label` deprecation warning.
|
|
18
18
|
// slider-ui's `label` is a first-class API rendering as the in-header
|
|
19
19
|
// caption next to the value, with `aria-label` wired on the host for
|
|
20
20
|
// a11y. Same opt-out rationale as input-ui and range-ui.
|
|
21
21
|
static labelDeprecated = false;
|
|
22
22
|
|
|
23
23
|
static properties = {
|
|
24
|
-
...
|
|
25
|
-
/** value: Number — overrides
|
|
24
|
+
...UIFormElement.properties,
|
|
25
|
+
/** value: Number — overrides UIFormElement.value (String); syncs as string on form submit. */
|
|
26
26
|
value: { type: Number, default: 50, reflect: true },
|
|
27
27
|
min: { type: Number, default: 0, reflect: true },
|
|
28
28
|
max: { type: Number, default: 100, reflect: true },
|
|
@@ -169,6 +169,6 @@ class AdiaSlider extends AdiaFormElement {
|
|
|
169
169
|
this.#thumbEl = null;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
customElements.define('slider-ui',
|
|
172
|
+
customElements.define('slider-ui', UISlider);
|
|
173
173
|
|
|
174
|
-
export {
|
|
174
|
+
export { UISlider };
|
|
@@ -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: UISlider
|
|
5
5
|
tag: slider-ui
|
|
6
6
|
component: Slider
|
|
7
7
|
category: input
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* <stack-ui align="center">...</stack-ui>
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { UIElement } from '../../core/element.js';
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class UIStack extends UIElement {
|
|
11
11
|
static properties = {
|
|
12
12
|
align: { type: String, default: 'center', reflect: true },
|
|
13
13
|
};
|
|
14
14
|
static template = () => null;
|
|
15
15
|
}
|
|
16
|
-
customElements.define('stack-ui',
|
|
16
|
+
customElements.define('stack-ui', UIStack);
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { UIStack };
|
|
@@ -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: UIStack
|
|
5
5
|
tag: stack-ui
|
|
6
6
|
component: Stack
|
|
7
7
|
category: layout
|
package/components/stat/stat.js
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* Trend: up, down, neutral (colors the change badge accordingly)
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { UIElement } from '../../core/element.js';
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class UIStat extends UIElement {
|
|
14
14
|
static properties = {
|
|
15
15
|
value: { type: String, default: '', reflect: true },
|
|
16
16
|
label: { type: String, default: '', reflect: true },
|
|
@@ -86,6 +86,6 @@ class AdiaStat extends AdiaElement {
|
|
|
86
86
|
this.#iconEl = null;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
customElements.define('stat-ui',
|
|
89
|
+
customElements.define('stat-ui', UIStat);
|
|
90
90
|
|
|
91
|
-
export {
|
|
91
|
+
export { UIStat };
|
|
@@ -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: UIStat
|
|
5
5
|
tag: stat-ui
|
|
6
6
|
component: Stat
|
|
7
7
|
category: display
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
* orientation — horizontal (default) | vertical
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
import {
|
|
23
|
+
import { UIElement } from '../../core/element.js';
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class UIStepper extends UIElement {
|
|
26
26
|
static properties = {
|
|
27
27
|
step: { type: Number, default: 0, reflect: true },
|
|
28
28
|
orientation: { type: String, default: 'horizontal', reflect: true },
|
|
@@ -69,11 +69,11 @@ class AdiaStepper extends AdiaElement {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
customElements.define('stepper-ui',
|
|
72
|
+
customElements.define('stepper-ui', UIStepper);
|
|
73
73
|
|
|
74
74
|
// ── Item ───────────────────────────────────────────────────────
|
|
75
75
|
|
|
76
|
-
class
|
|
76
|
+
class UIStepperItem extends UIElement {
|
|
77
77
|
static properties = {
|
|
78
78
|
text: { type: String, default: '', reflect: true },
|
|
79
79
|
description: { type: String, default: '', reflect: true },
|
|
@@ -116,6 +116,6 @@ class AdiaStepperItem extends AdiaElement {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
customElements.define('stepper-item-ui',
|
|
119
|
+
customElements.define('stepper-item-ui', UIStepperItem);
|
|
120
120
|
|
|
121
|
-
export {
|
|
121
|
+
export { UIStepper, UIStepperItem };
|
|
@@ -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: UIStepper
|
|
5
5
|
tag: stepper-ui
|
|
6
6
|
component: Stepper
|
|
7
7
|
category: navigation
|
|
@@ -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
|