@adia-ai/web-components 0.8.41 → 0.8.43
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/CHANGELOG.md +35 -0
- package/MIGRATION.md +240 -3
- package/USAGE.md +4 -4
- package/color/index.js +1 -1
- package/components/action-list/action-item.a2ui.json +7 -7
- package/components/action-list/action-item.yaml +21 -9
- package/components/action-list/action-list.class.js +13 -7
- package/components/action-list/action-list.d.ts +2 -2
- package/components/button/button.yaml +1 -1
- package/components/calendar-picker/calendar-picker.a2ui.json +1 -1
- package/components/calendar-picker/calendar-picker.class.js +2 -3
- package/components/calendar-picker/calendar-picker.css +16 -18
- package/components/calendar-picker/calendar-picker.yaml +2 -2
- package/components/card/card.css +3 -3
- package/components/chart/chart.a2ui.json +8 -8
- package/components/chart/chart.class.js +21 -19
- package/components/chart/chart.d.ts +6 -6
- package/components/chart/chart.yaml +16 -9
- package/components/chart-legend/chart-legend.a2ui.json +7 -11
- package/components/chart-legend/chart-legend.class.js +17 -8
- package/components/chart-legend/chart-legend.css +5 -2
- package/components/chart-legend/chart-legend.d.ts +2 -2
- package/components/chart-legend/chart-legend.yaml +12 -8
- package/components/check/check.css +9 -0
- package/components/{color-picker/color-picker.a2ui.json → color-area/color-area.a2ui.json} +15 -12
- package/components/{color-picker/color-picker.class.js → color-area/color-area.class.js} +10 -8
- package/components/color-area/color-area.css +185 -0
- package/components/color-area/color-area.d.ts +66 -0
- package/components/color-area/color-area.examples.md +19 -0
- package/components/color-area/color-area.js +17 -0
- package/components/{color-picker/color-picker.yaml → color-area/color-area.yaml} +17 -9
- package/components/color-input/color-input.a2ui.json +5 -5
- package/components/color-input/color-input.class.js +9 -6
- package/components/color-input/color-input.css +1 -1
- package/components/color-input/color-input.js +2 -2
- package/components/color-input/color-input.yaml +14 -12
- package/components/description-list/description-list.a2ui.json +1 -1
- package/components/description-list/description-list.css +1 -1
- package/components/description-list/description-list.d.ts +1 -1
- package/components/description-list/description-list.yaml +1 -1
- package/components/drilldown/drilldown.a2ui.json +3 -0
- package/components/drilldown/drilldown.css +8 -1
- package/components/drilldown/drilldown.yaml +2 -0
- package/components/field/field.a2ui.json +1 -1
- package/components/field/field.class.js +5 -2
- package/components/field/field.yaml +1 -1
- package/components/index.js +1 -4
- package/components/input/input.a2ui.json +4 -4
- package/components/input/input.class.js +8 -0
- package/components/input/input.css +6 -0
- package/components/input/input.yaml +11 -8
- package/components/integration-card/integration-card.examples.md +2 -1
- package/components/menu/menu-item.a2ui.json +7 -7
- package/components/menu/menu-item.yaml +20 -7
- package/components/menu/menu.class.js +13 -7
- package/components/menu/menu.d.ts +2 -2
- package/components/pane/pane.a2ui.json +11 -11
- package/components/pane/pane.class.js +8 -4
- package/components/pane/pane.css +15 -10
- package/components/pane/pane.d.ts +10 -9
- package/components/pane/pane.yaml +9 -7
- package/components/progress/progress.a2ui.json +1 -1
- package/components/progress/progress.class.js +2 -2
- package/components/progress/progress.d.ts +1 -1
- package/components/progress/progress.yaml +2 -2
- package/components/radio/radio.css +7 -0
- package/components/search/search.css +10 -1
- package/components/segment/segment.a2ui.json +1 -2
- package/components/segment/segment.css +10 -0
- package/components/segment/segment.yaml +1 -2
- package/components/segmented/segmented.a2ui.json +1 -3
- package/components/segmented/segmented.class.js +2 -2
- package/components/segmented/segmented.yaml +2 -4
- package/components/select/select.css +6 -0
- package/components/step-progress/step-progress.yaml +1 -1
- package/components/swatch/swatch.yaml +1 -1
- package/components/switch/switch.css +8 -0
- package/components/table-toolbar/table-toolbar.a2ui.json +42 -1
- package/components/table-toolbar/table-toolbar.class.js +166 -14
- package/components/table-toolbar/table-toolbar.css +46 -0
- package/components/table-toolbar/table-toolbar.d.ts +13 -1
- package/components/table-toolbar/table-toolbar.yaml +104 -14
- package/components/textarea/textarea.css +4 -0
- package/components/time-picker/time-picker.yaml +3 -2
- package/components/tree/tree.yaml +1 -1
- package/components/upload/upload.class.js +16 -0
- package/components/upload/upload.d.ts +7 -0
- package/components/upload/upload.yaml +7 -3
- package/core/icons.js +3 -1
- package/custom-elements.json +147 -468
- package/dist/host.min.css +1 -1
- package/dist/host.sheet.js +1 -1
- package/dist/theme-provider.min.js +1 -1
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +88 -85
- package/dist/web-components.sheet.js +1 -1
- package/index.d.ts +9 -13
- package/package.json +1 -1
- package/patterns/admin-shell/admin-shell.examples.html +2 -2
- package/patterns/chart-in-card/chart-in-card.examples.html +10 -10
- package/patterns/conversion-funnel/conversion-funnel.html +2 -2
- package/patterns/editor-shell/editor-shell.examples.html +3 -3
- package/patterns/form-system/form-system.examples.html +1 -1
- package/styles/colors/semantics/features.css +8 -1
- package/styles/components.css +1 -4
- package/traits/arrow-grid-nav/arrow-grid-nav.js +1 -1
- package/traits/resize-observer/resize-observer.js +1 -1
- package/components/color-picker/color-picker.css +0 -182
- package/components/color-picker/color-picker.d.ts +0 -99
- package/components/color-picker/color-picker.examples.md +0 -19
- package/components/color-picker/color-picker.js +0 -17
- package/components/datetime-picker/datetime-picker.a2ui.json +0 -256
- package/components/datetime-picker/datetime-picker.class.js +0 -58
- package/components/datetime-picker/datetime-picker.css +0 -11
- package/components/datetime-picker/datetime-picker.d.ts +0 -87
- package/components/datetime-picker/datetime-picker.examples.md +0 -25
- package/components/datetime-picker/datetime-picker.js +0 -17
- package/components/datetime-picker/datetime-picker.yaml +0 -254
- package/components/progress-row/progress-row.a2ui.json +0 -107
- package/components/progress-row/progress-row.class.js +0 -118
- package/components/progress-row/progress-row.css +0 -60
- package/components/progress-row/progress-row.d.ts +0 -24
- package/components/progress-row/progress-row.examples.md +0 -7
- package/components/progress-row/progress-row.js +0 -17
- package/components/progress-row/progress-row.yaml +0 -85
- package/components/toggle-group/toggle-group.a2ui.json +0 -148
- package/components/toggle-group/toggle-group.class.js +0 -195
- package/components/toggle-group/toggle-group.css +0 -127
- package/components/toggle-group/toggle-group.d.ts +0 -50
- package/components/toggle-group/toggle-group.examples.md +0 -33
- package/components/toggle-group/toggle-group.js +0 -18
- package/components/toggle-group/toggle-group.yaml +0 -135
- package/components/toggle-group/toggle-option.a2ui.json +0 -86
- package/components/toggle-group/toggle-option.yaml +0 -75
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
|
-
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
|
-
#
|
|
4
|
-
# ADR-0056 (gh#1303): <toggle-option-ui>'s current-state surface converges
|
|
5
|
-
# onto <segment-ui>'s declared, reflected `[selected]` prop (see
|
|
6
|
-
# toggle-option.yaml). This container sets that prop, keeping `value` as the
|
|
7
|
-
# single source of truth.
|
|
8
|
-
#
|
|
9
|
-
# DEPRECATED (gh#1369, #1363 C1, ADR-0057): superseded by
|
|
10
|
-
# <segmented-ui multiple> + <segment-ui> — same comma-separated value
|
|
11
|
-
# encoding, same corpus/catalog presence. Kept working as-is (no behavior
|
|
12
|
-
# change, one-time console.warn on connect); status: deprecated per the
|
|
13
|
-
# yaml deprecation contract rather than a literal JS-level delegation —
|
|
14
|
-
# see PR body "Rejected alternatives" for why.
|
|
15
|
-
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
16
|
-
name: UIToggleGroup
|
|
17
|
-
tag: toggle-group-ui
|
|
18
|
-
status: deprecated
|
|
19
|
-
component: ToggleGroup
|
|
20
|
-
category: navigation
|
|
21
|
-
version: 1
|
|
22
|
-
description: >-
|
|
23
|
-
DEPRECATED (gh#1369) — use <segmented-ui multiple> + <segment-ui>
|
|
24
|
-
instead. Multi-select button group (unlike <segmented-ui> which is
|
|
25
|
-
single-select by default). Hosts <toggle-option-ui> children, each
|
|
26
|
-
independently toggleable; emits change events with the active value
|
|
27
|
-
set.
|
|
28
|
-
props:
|
|
29
|
-
single:
|
|
30
|
-
description: "When true, restrict to one active option (single-select) — clicking the already-selected option again CLEARS it (empty value), unlike a native radiogroup. Migration (gh#1369): [single]=true maps to plain <segmented-ui> (no [multiple]) — note segmented-ui's single-select never clears on re-click, it's standard radiogroup semantics; the default (false, multi-select) maps to <segmented-ui multiple>."
|
|
31
|
-
type: boolean
|
|
32
|
-
default: false
|
|
33
|
-
reflect: false # declarative presentational attribute — CSS/author-time read, non-reactive by design
|
|
34
|
-
value:
|
|
35
|
-
description: Comma-separated selected values
|
|
36
|
-
type: string
|
|
37
|
-
default: ""
|
|
38
|
-
events:
|
|
39
|
-
change:
|
|
40
|
-
description: "Fired when selection changes. detail: { value }"
|
|
41
|
-
detail:
|
|
42
|
-
value:
|
|
43
|
-
type: string
|
|
44
|
-
description: New toggle-group value.
|
|
45
|
-
slots:
|
|
46
|
-
default:
|
|
47
|
-
description: "Default slot — primary child content."
|
|
48
|
-
states:
|
|
49
|
-
- name: idle
|
|
50
|
-
description: Default, ready for interaction.
|
|
51
|
-
traits: []
|
|
52
|
-
tokens:
|
|
53
|
-
--toggle-group-border:
|
|
54
|
-
description: Border color of the group container
|
|
55
|
-
--toggle-group-height:
|
|
56
|
-
description: Height of the group container
|
|
57
|
-
--toggle-group-radius:
|
|
58
|
-
description: Border radius of the group container
|
|
59
|
-
--toggle-option-bg-hover:
|
|
60
|
-
description: Background color on hover
|
|
61
|
-
--toggle-option-border:
|
|
62
|
-
description: Border color between adjacent options
|
|
63
|
-
--toggle-option-duration:
|
|
64
|
-
description: Transition duration
|
|
65
|
-
--toggle-option-easing:
|
|
66
|
-
description: Transition easing function
|
|
67
|
-
--toggle-option-fg:
|
|
68
|
-
description: Default text color
|
|
69
|
-
--toggle-option-fg-disabled:
|
|
70
|
-
description: Text color when disabled
|
|
71
|
-
--toggle-option-fg-hover:
|
|
72
|
-
description: Text color on hover
|
|
73
|
-
--toggle-option-focus-ring:
|
|
74
|
-
description: Focus ring box-shadow
|
|
75
|
-
--toggle-option-font-size:
|
|
76
|
-
description: Font size for option text and icons
|
|
77
|
-
--toggle-option-gap:
|
|
78
|
-
description: Gap between icon and text within an option
|
|
79
|
-
--toggle-option-height:
|
|
80
|
-
description: Min-height of each option
|
|
81
|
-
--toggle-option-px:
|
|
82
|
-
description: Horizontal padding of each option
|
|
83
|
-
--toggle-option-selected-bg:
|
|
84
|
-
description: Background color when selected
|
|
85
|
-
--toggle-option-selected-fg:
|
|
86
|
-
description: Text color when selected
|
|
87
|
-
a2ui:
|
|
88
|
-
allowedChildren:
|
|
89
|
-
- ToggleOption
|
|
90
|
-
rules:
|
|
91
|
-
- rule: 'DEPRECATED (gh#1369, #1363 C1) — generate <segmented-ui multiple> + <segment-ui> children instead when [single] is false/absent (the default, multi-select). When [single] is true, generate plain <segmented-ui> (no [multiple]) instead — single-select toggle-group maps to segmented''s own single-select mode, not the multiple axis; note segmented-ui single-select never clears on re-click (toggle-group[single] does). Same comma-separated value encoding either way; toggle-group is kept working for existing consumers but should not appear in new generated output.'
|
|
92
|
-
reason: 'Deprecation redirect — this is the primary rule for this component now.'
|
|
93
|
-
- rule: 'Multi-select button cluster — hosts <toggle-option-ui> children, each independently toggleable.'
|
|
94
|
-
reason: 'Multi-select cluster contract (legacy).'
|
|
95
|
-
- rule: 'Use for filter chips, multi-flag toggles, day-of-week pickers; for binary on/off use <switch-ui>.'
|
|
96
|
-
reason: 'Capacity guidance (legacy).'
|
|
97
|
-
- rule: 'Sets the child <toggle-option-ui>''s declared [selected] prop to reflect the group value (ADR-0056) — do not author [selected] directly in generated markup; author the group''s value instead.'
|
|
98
|
-
reason: 'Parent-managed declared state — group value stays the single source of truth (legacy).'
|
|
99
|
-
anti_patterns: []
|
|
100
|
-
examples:
|
|
101
|
-
- name: basic-toggle-group
|
|
102
|
-
description: Basic ToggleGroup usage
|
|
103
|
-
a2ui: >-
|
|
104
|
-
[
|
|
105
|
-
{
|
|
106
|
-
"id": "root",
|
|
107
|
-
"component": "Card",
|
|
108
|
-
"children": [
|
|
109
|
-
"sec"
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"id": "sec",
|
|
114
|
-
"component": "Section",
|
|
115
|
-
"children": [
|
|
116
|
-
"comp"
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"id": "comp",
|
|
121
|
-
"component": "ToggleGroup",
|
|
122
|
-
"value": ""
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
keywords:
|
|
126
|
-
- togglegroup
|
|
127
|
-
- toggle-group
|
|
128
|
-
- toggle
|
|
129
|
-
- group
|
|
130
|
-
synonyms:
|
|
131
|
-
toggle-group: [segmented-control, option-group, toggle-set]
|
|
132
|
-
related:
|
|
133
|
-
- ToggleOption
|
|
134
|
-
- Segmented
|
|
135
|
-
- Radio
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://adiaui.dev/a2ui/v0_9/components/ToggleOption.json",
|
|
4
|
-
"title": "ToggleOption",
|
|
5
|
-
"description": "DEPRECATED (gh#1369) — use `<segment-ui>` inside `<segmented-ui multiple>` instead. Child of `<toggle-group-ui>`. One toggleable option inside a single-select or multi-select group. Pressed state mirrors `value` against the parent's selection.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"allOf": [
|
|
8
|
-
{
|
|
9
|
-
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"$ref": "common_types.json#/$defs/CatalogComponentCommon"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"properties": {
|
|
16
|
-
"component": {
|
|
17
|
-
"const": "ToggleOption"
|
|
18
|
-
},
|
|
19
|
-
"disabled": {
|
|
20
|
-
"description": "Disabled state — blocks pointer + keyboard activation.",
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"default": false
|
|
23
|
-
},
|
|
24
|
-
"icon": {
|
|
25
|
-
"description": "Optional Phosphor icon name; renders as a leading icon.",
|
|
26
|
-
"type": "string",
|
|
27
|
-
"default": ""
|
|
28
|
-
},
|
|
29
|
-
"selected": {
|
|
30
|
-
"description": "Whether this option is currently selected. Managed by the parent\n<toggle-group-ui> container (ADR-0056) — don't set directly; the group's\n`value` is the single source of truth. Converges onto <segment-ui>'s\ndeclared reflected-prop mechanism.",
|
|
31
|
-
"type": "boolean",
|
|
32
|
-
"default": false
|
|
33
|
-
},
|
|
34
|
-
"text": {
|
|
35
|
-
"description": "Visible label text.",
|
|
36
|
-
"type": "string",
|
|
37
|
-
"default": ""
|
|
38
|
-
},
|
|
39
|
-
"value": {
|
|
40
|
-
"description": "Stable identifier matched against the parent group's `value`.",
|
|
41
|
-
"type": "string",
|
|
42
|
-
"default": ""
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"required": [
|
|
46
|
-
"component"
|
|
47
|
-
],
|
|
48
|
-
"unevaluatedProperties": false,
|
|
49
|
-
"x-adiaui": {
|
|
50
|
-
"allowedParents": [
|
|
51
|
-
"ToggleGroup"
|
|
52
|
-
],
|
|
53
|
-
"anti_patterns": [],
|
|
54
|
-
"category": "form",
|
|
55
|
-
"composes": [],
|
|
56
|
-
"events": {},
|
|
57
|
-
"examples": [],
|
|
58
|
-
"keywords": [
|
|
59
|
-
"toggle-option",
|
|
60
|
-
"toggle-segment",
|
|
61
|
-
"option-toggle",
|
|
62
|
-
"segmented-option"
|
|
63
|
-
],
|
|
64
|
-
"name": "UIToggleOption",
|
|
65
|
-
"parts": {},
|
|
66
|
-
"related": [
|
|
67
|
-
"ToggleGroup",
|
|
68
|
-
"Segment",
|
|
69
|
-
"Radio"
|
|
70
|
-
],
|
|
71
|
-
"slots": {},
|
|
72
|
-
"states": [],
|
|
73
|
-
"status": "deprecated",
|
|
74
|
-
"synonyms": {
|
|
75
|
-
"toggle-option": [
|
|
76
|
-
"toggle-segment",
|
|
77
|
-
"option-button",
|
|
78
|
-
"segmented-option"
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
"tag": "toggle-option-ui",
|
|
82
|
-
"tokens": {},
|
|
83
|
-
"traits": [],
|
|
84
|
-
"version": 1
|
|
85
|
-
}
|
|
86
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
2
|
-
#
|
|
3
|
-
# §228 (v0.5.9): authored to close the §229 baseline class-export-undeclared
|
|
4
|
-
# drift for UIToggleOption. Ships as a sibling class in toggle-group/toggle-group.class.js
|
|
5
|
-
# + is registered alongside UIToggleGroup.
|
|
6
|
-
#
|
|
7
|
-
# ADR-0056 (gh#1303): `selected` converges onto <segment-ui>'s declared,
|
|
8
|
-
# parent-managed, reflected-prop convention.
|
|
9
|
-
#
|
|
10
|
-
# DEPRECATED (gh#1369, #1363 C1, ADR-0057): superseded by <segment-ui>
|
|
11
|
-
# (used as a child of <segmented-ui multiple>). Kept working as-is; see
|
|
12
|
-
# toggle-group.yaml's header for the deprecation rationale.
|
|
13
|
-
|
|
14
|
-
# Child component of <toggle-group-ui>. Surface only inside that parent.
|
|
15
|
-
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
16
|
-
name: UIToggleOption
|
|
17
|
-
tag: toggle-option-ui
|
|
18
|
-
status: deprecated
|
|
19
|
-
component: ToggleOption
|
|
20
|
-
category: form
|
|
21
|
-
version: 1
|
|
22
|
-
description: |-
|
|
23
|
-
DEPRECATED (gh#1369) — use `<segment-ui>` inside `<segmented-ui multiple>` instead. Child of `<toggle-group-ui>`. One toggleable option inside a single-select or multi-select group. Pressed state mirrors `value` against the parent's selection.
|
|
24
|
-
|
|
25
|
-
props:
|
|
26
|
-
value:
|
|
27
|
-
description: Stable identifier matched against the parent group's `value`.
|
|
28
|
-
type: string
|
|
29
|
-
default: ""
|
|
30
|
-
text:
|
|
31
|
-
description: Visible label text.
|
|
32
|
-
type: string
|
|
33
|
-
default: ""
|
|
34
|
-
icon:
|
|
35
|
-
description: Optional Phosphor icon name; renders as a leading icon.
|
|
36
|
-
type: string
|
|
37
|
-
default: ""
|
|
38
|
-
disabled:
|
|
39
|
-
description: Disabled state — blocks pointer + keyboard activation.
|
|
40
|
-
type: boolean
|
|
41
|
-
default: false
|
|
42
|
-
selected:
|
|
43
|
-
description: |-
|
|
44
|
-
Whether this option is currently selected. Managed by the parent
|
|
45
|
-
<toggle-group-ui> container (ADR-0056) — don't set directly; the group's
|
|
46
|
-
`value` is the single source of truth. Converges onto <segment-ui>'s
|
|
47
|
-
declared reflected-prop mechanism.
|
|
48
|
-
type: boolean
|
|
49
|
-
default: false
|
|
50
|
-
reflect: true
|
|
51
|
-
|
|
52
|
-
keywords:
|
|
53
|
-
- toggle-option
|
|
54
|
-
- toggle-segment
|
|
55
|
-
- option-toggle
|
|
56
|
-
- segmented-option
|
|
57
|
-
|
|
58
|
-
synonyms:
|
|
59
|
-
toggle-option: [toggle-segment, option-button, segmented-option]
|
|
60
|
-
|
|
61
|
-
related:
|
|
62
|
-
- ToggleGroup
|
|
63
|
-
- Segment
|
|
64
|
-
- Radio
|
|
65
|
-
|
|
66
|
-
a2ui:
|
|
67
|
-
allowedParents:
|
|
68
|
-
- ToggleGroup
|
|
69
|
-
rules:
|
|
70
|
-
- rule: 'DEPRECATED (gh#1369, #1363 C1) — generate <segment-ui> instead, as a child of <segmented-ui multiple> (or plain <segmented-ui>, no [multiple], if the parent toggle-group had [single] — see toggle-group.yaml). toggle-option is kept working for existing consumers but should not appear in new generated output.'
|
|
71
|
-
reason: 'Deprecation redirect — this is the primary rule for this component now.'
|
|
72
|
-
- rule: 'Child of <toggle-group-ui> — one independently-toggleable button in a multi-select cluster.'
|
|
73
|
-
reason: 'Multi-select cluster contract (legacy).'
|
|
74
|
-
- rule: 'Selected state exposed via its own declared [selected] reflected prop, set by the parent <toggle-group-ui> (ADR-0056) — mirrors <segment-ui>''s convention. Do not set [selected] directly; drive the group''s value instead.'
|
|
75
|
-
reason: 'Parent-managed declared state — group value stays the single source of truth (legacy).'
|