@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
|
@@ -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: UIPipelineStatus
|
|
5
5
|
tag: pipeline-status-ui
|
|
6
6
|
component: PipelineStatus
|
|
7
7
|
category: agent
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
* Triggers: click | hover | manual. ESC closes click/manual popovers.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { UIElement } from '../../core/element.js';
|
|
17
17
|
import { anchorPopover } from '../../core/anchor.js';
|
|
18
18
|
|
|
19
19
|
const HOVER_CLOSE_DELAY = 120;
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class UIPopover extends UIElement {
|
|
22
22
|
static properties = {
|
|
23
23
|
placement: { type: String, default: 'bottom', reflect: true },
|
|
24
24
|
gap: { type: Number, default: 4, reflect: true },
|
|
@@ -180,5 +180,5 @@ class AdiaPopover extends AdiaElement {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
customElements.define('popover-ui',
|
|
184
|
-
export {
|
|
183
|
+
customElements.define('popover-ui', UIPopover);
|
|
184
|
+
export { UIPopover };
|
|
@@ -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: UIPopover
|
|
5
5
|
tag: popover-ui
|
|
6
6
|
component: Popover
|
|
7
7
|
category: container
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* (Legacy `value="-1"` is still treated as indeterminate for back-compat.)
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { UIElement } from '../../core/element.js';
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class UIProgress extends UIElement {
|
|
14
14
|
static properties = {
|
|
15
15
|
value: { type: Number, default: null, reflect: true },
|
|
16
16
|
variant: { type: String, default: 'bar', reflect: true },
|
|
@@ -59,6 +59,6 @@ class AdiaProgress extends AdiaElement {
|
|
|
59
59
|
this.#fill = null;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
customElements.define('progress-ui',
|
|
62
|
+
customElements.define('progress-ui', UIProgress);
|
|
63
63
|
|
|
64
|
-
export {
|
|
64
|
+
export { UIProgress };
|
|
@@ -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: UIProgress
|
|
5
5
|
tag: progress-ui
|
|
6
6
|
component: Progress
|
|
7
7
|
category: display
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* variant — success | warning | danger (colors the fill; inherits otherwise)
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
import {
|
|
20
|
+
import { UIElement } from '../../core/element.js';
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class UIProgressRow extends UIElement {
|
|
23
23
|
static properties = {
|
|
24
24
|
label: { type: String, default: '', reflect: true },
|
|
25
25
|
value: { type: Number, default: null, reflect: true },
|
|
@@ -96,6 +96,6 @@ class AdiaProgressRow extends AdiaElement {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
customElements.define('progress-row-ui',
|
|
99
|
+
customElements.define('progress-row-ui', UIProgressRow);
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { UIProgressRow };
|
|
@@ -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: UIProgressRow
|
|
5
5
|
tag: progress-row-ui
|
|
6
6
|
component: ProgressRow
|
|
7
7
|
category: data
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Pure CSS dot via [slot="dot"]::after inner circle. No SVG, no inset shadow hack.
|
|
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 UIRadio 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
|
};
|
|
@@ -68,6 +68,6 @@ class AdiaRadio extends AdiaFormElement {
|
|
|
68
68
|
this.removeEventListener('keydown', this.#onKey);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
customElements.define('radio-ui',
|
|
71
|
+
customElements.define('radio-ui', UIRadio);
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { UIRadio };
|
|
@@ -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: UIRadio
|
|
5
5
|
tag: radio-ui
|
|
6
6
|
component: Radio
|
|
7
7
|
category: input
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* - While dragging: accent highlight on the field
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { UIFormElement } from '../../core/form.js';
|
|
15
15
|
|
|
16
|
-
class
|
|
17
|
-
// Opt out of
|
|
16
|
+
class UIRange extends UIFormElement {
|
|
17
|
+
// Opt out of UIFormElement's per-control `label` deprecation warning.
|
|
18
18
|
// range-ui's `label` is a first-class API: it renders as the in-track
|
|
19
19
|
// caption next to the value (the entire field is the scrubber surface)
|
|
20
20
|
// and the host gets `aria-label` wired from it for proper screen-reader
|
|
@@ -22,8 +22,8 @@ class AdiaRange extends AdiaFormElement {
|
|
|
22
22
|
static labelDeprecated = false;
|
|
23
23
|
|
|
24
24
|
static properties = {
|
|
25
|
-
...
|
|
26
|
-
/** value: Number — overrides
|
|
25
|
+
...UIFormElement.properties,
|
|
26
|
+
/** value: Number — overrides UIFormElement.value (String); syncs as string on form submit. */
|
|
27
27
|
value: { type: Number, default: 0, reflect: true },
|
|
28
28
|
min: { type: Number, default: 0, reflect: true },
|
|
29
29
|
max: { type: Number, default: 100, reflect: true },
|
|
@@ -179,6 +179,6 @@ class AdiaRange extends AdiaFormElement {
|
|
|
179
179
|
this.#valueEl = null;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
customElements.define('range-ui',
|
|
182
|
+
customElements.define('range-ui', UIRange);
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { UIRange };
|
|
@@ -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: UIRange
|
|
5
5
|
tag: range-ui
|
|
6
6
|
component: Range
|
|
7
7
|
category: input
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* <rating-ui value="5" readonly></rating-ui>
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { UIFormElement } from '../../core/form.js';
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class UIRating extends UIFormElement {
|
|
15
15
|
static properties = {
|
|
16
|
-
...
|
|
17
|
-
/** value: Number — overrides
|
|
16
|
+
...UIFormElement.properties,
|
|
17
|
+
/** value: Number — overrides UIFormElement.value (String); syncs as string on form submit. */
|
|
18
18
|
value: { type: Number, default: 0, reflect: true },
|
|
19
19
|
max: { type: Number, default: 5, reflect: true },
|
|
20
20
|
icon: { type: String, default: 'star', reflect: true },
|
|
@@ -134,5 +134,5 @@ class AdiaRating extends AdiaFormElement {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
customElements.define('rating-ui',
|
|
138
|
-
export {
|
|
137
|
+
customElements.define('rating-ui', UIRating);
|
|
138
|
+
export { UIRating };
|
|
@@ -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: UIRating
|
|
5
5
|
tag: rating-ui
|
|
6
6
|
component: Rating
|
|
7
7
|
category: form
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIElement } from '../../core/element.js';
|
|
2
2
|
import { renderMarkdown } from '../../core/markdown.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -15,7 +15,7 @@ import { renderMarkdown } from '../../core/markdown.js';
|
|
|
15
15
|
* const el = document.querySelector('richtext-ui');
|
|
16
16
|
* el.markdown = '# Title\nParagraph text.';
|
|
17
17
|
*/
|
|
18
|
-
class
|
|
18
|
+
class UIRichText extends UIElement {
|
|
19
19
|
static properties = {
|
|
20
20
|
src: { type: String, default: '', reflect: true },
|
|
21
21
|
// Markdown bodies can be arbitrarily large; reflecting to the attribute
|
|
@@ -73,5 +73,5 @@ class AdiaRichText extends AdiaElement {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
customElements.define('richtext-ui',
|
|
77
|
-
export {
|
|
76
|
+
customElements.define('richtext-ui', UIRichText);
|
|
77
|
+
export { UIRichText };
|
|
@@ -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: UIRichtext
|
|
5
5
|
tag: richtext-ui
|
|
6
6
|
component: Richtext
|
|
7
7
|
category: forms
|
package/components/row/row.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* <row-ui draggable>...</row-ui> wires the draggable trait, emits drag-end
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { UIElement } from '../../core/element.js';
|
|
9
9
|
import { draggable } from '../../traits/draggable.js';
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class UIRow extends UIElement {
|
|
12
12
|
static properties = {
|
|
13
13
|
justify: { type: String, default: 'start', reflect: true },
|
|
14
14
|
align: { type: String, default: 'center', reflect: true },
|
|
@@ -34,6 +34,6 @@ class AdiaRow extends AdiaElement {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
customElements.define('row-ui',
|
|
37
|
+
customElements.define('row-ui', UIRow);
|
|
38
38
|
|
|
39
|
-
export {
|
|
39
|
+
export { UIRow };
|
package/components/row/row.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: UIRow
|
|
5
5
|
tag: row-ui
|
|
6
6
|
component: Row
|
|
7
7
|
category: layout
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* Fires debounced 'search' event. Clear button resets and fires immediately.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { UIFormElement } from '../../core/form.js';
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class UISearch extends UIFormElement {
|
|
13
13
|
static properties = {
|
|
14
|
-
...
|
|
14
|
+
...UIFormElement.properties,
|
|
15
15
|
placeholder: { type: String, default: 'Search...', reflect: true },
|
|
16
16
|
debounce: { type: Number, default: 300, reflect: true },
|
|
17
17
|
};
|
|
@@ -119,6 +119,6 @@ class AdiaSearch extends AdiaFormElement {
|
|
|
119
119
|
this.#suffixEl = null;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
customElements.define('search-ui',
|
|
122
|
+
customElements.define('search-ui', UISearch);
|
|
123
123
|
|
|
124
|
-
export {
|
|
124
|
+
export { UISearch };
|
|
@@ -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: UISearch
|
|
5
5
|
tag: search-ui
|
|
6
6
|
component: Search
|
|
7
7
|
category: input
|
|
@@ -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: UISection
|
|
5
5
|
tag: section-ui
|
|
6
6
|
component: Section
|
|
7
7
|
category: container
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* Mirrors the button-ui pattern.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { UIElement } from '../../core/element.js';
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class UISegment extends UIElement {
|
|
12
12
|
static properties = {
|
|
13
13
|
value: { type: String, default: '', reflect: true },
|
|
14
14
|
text: { type: String, default: '', reflect: true },
|
|
@@ -47,6 +47,6 @@ class AdiaSegment extends AdiaElement {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
customElements.define('segment-ui',
|
|
50
|
+
customElements.define('segment-ui', UISegment);
|
|
51
51
|
|
|
52
|
-
export {
|
|
52
|
+
export { UISegment };
|
|
@@ -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: UISegment
|
|
5
5
|
tag: segment-ui
|
|
6
6
|
component: Segment
|
|
7
7
|
category: navigation
|
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
grid-auto-columns: 1fr;
|
|
33
33
|
align-items: stretch;
|
|
34
34
|
position: relative;
|
|
35
|
+
/* Children use `position: relative; z-index: 1` (segments) so they
|
|
36
|
+
paint above the absolute indicator. Without an own stacking context
|
|
37
|
+
here, those z-indexed children escape into the parent context and
|
|
38
|
+
can paint above sticky/fixed siblings (e.g. a sticky page header).
|
|
39
|
+
`isolation: isolate` scopes the inner z-index to this element. */
|
|
40
|
+
isolation: isolate;
|
|
35
41
|
overflow: hidden;
|
|
36
42
|
|
|
37
43
|
min-height: var(--segmented-height);
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* Indicator uses CSS transform (GPU-accelerated).
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import {
|
|
13
|
-
import '
|
|
12
|
+
import { UIFormElement } from '../../core/form.js';
|
|
13
|
+
import '../segment/segment.js';
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class UISegmented extends UIFormElement {
|
|
16
16
|
static properties = {
|
|
17
|
-
...
|
|
17
|
+
...UIFormElement.properties,
|
|
18
18
|
value: { type: String, default: '', reflect: true },
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -129,7 +129,7 @@ class AdiaSegmented extends AdiaFormElement {
|
|
|
129
129
|
|
|
130
130
|
#handleKeydown = (e) => {
|
|
131
131
|
const target = e.target;
|
|
132
|
-
if (target.tagName !== 'SEGMENT-
|
|
132
|
+
if (target.tagName !== 'SEGMENT-UI') return;
|
|
133
133
|
const segs = this.#enabledSegments;
|
|
134
134
|
const idx = segs.indexOf(target);
|
|
135
135
|
if (idx < 0) return;
|
|
@@ -150,6 +150,6 @@ class AdiaSegmented extends AdiaFormElement {
|
|
|
150
150
|
this.#select(segs[next]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
customElements.define('segmented-ui',
|
|
153
|
+
customElements.define('segmented-ui', UISegmented);
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { UISegmented };
|
|
@@ -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: UISegmented
|
|
5
5
|
tag: segmented-ui
|
|
6
6
|
component: Segmented
|
|
7
7
|
category: navigation
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIFormElement } from '../../core/form.js';
|
|
2
2
|
import { anchorPopover } from '../../core/anchor.js';
|
|
3
3
|
|
|
4
4
|
function escapeHTML(s) {
|
|
5
5
|
return s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class UISelect extends UIFormElement {
|
|
9
9
|
static properties = {
|
|
10
|
-
...
|
|
10
|
+
...UIFormElement.properties,
|
|
11
11
|
placeholder: { type: String, default: 'Select...', reflect: true },
|
|
12
12
|
open: { type: Boolean, default: false, reflect: true },
|
|
13
13
|
label: { type: String, default: '', reflect: true },
|
|
@@ -393,6 +393,6 @@ class AdiaSelect extends AdiaFormElement {
|
|
|
393
393
|
this.#listbox = null;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
customElements.define('select-ui',
|
|
396
|
+
customElements.define('select-ui', UISelect);
|
|
397
397
|
|
|
398
|
-
export {
|
|
398
|
+
export { UISelect };
|
|
@@ -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: UISelect
|
|
5
5
|
tag: select-ui
|
|
6
6
|
component: Select
|
|
7
7
|
category: input
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* Radius: none, sm (default), md, lg, full
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { UIElement } from '../../core/element.js';
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class UISkeleton extends UIElement {
|
|
17
17
|
static properties = {
|
|
18
18
|
width: { type: String, default: '100%', reflect: true },
|
|
19
19
|
height: { type: String, default: '1.2em', reflect: true },
|
|
@@ -38,6 +38,6 @@ class AdiaSkeleton extends AdiaElement {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
customElements.define('skeleton-ui',
|
|
41
|
+
customElements.define('skeleton-ui', UISkeleton);
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { UISkeleton };
|
|
@@ -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: UISkeleton
|
|
5
5
|
tag: skeleton-ui
|
|
6
6
|
component: Skeleton
|
|
7
7
|
category: display
|