@agnosticui/a2ui-lit 0.0.0-stage → 2.0.0-alpha.1
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/README.md +34 -2
- package/SKILL.md +52 -0
- package/agnosticui-catalog.json +2184 -0
- package/dist/catalog.d.ts +5 -0
- package/dist/catalog.js +36 -0
- package/dist/components/AgAccordion.d.ts +82 -0
- package/dist/components/AgAccordion.js +29 -0
- package/dist/components/AgAlert.d.ts +971 -0
- package/dist/components/AgAlert.js +46 -0
- package/dist/components/AgAvatar.d.ts +511 -0
- package/dist/components/AgAvatar.js +44 -0
- package/dist/components/AgBadge.d.ts +793 -0
- package/dist/components/AgBadge.js +49 -0
- package/dist/components/AgButton.d.ts +1568 -0
- package/dist/components/AgButton.js +61 -0
- package/dist/components/AgCard.d.ts +565 -0
- package/dist/components/AgCard.js +45 -0
- package/dist/components/AgCheckbox.d.ts +1497 -0
- package/dist/components/AgCheckbox.js +63 -0
- package/dist/components/AgCombobox.d.ts +2733 -0
- package/dist/components/AgCombobox.js +91 -0
- package/dist/components/AgDivider.d.ts +169 -0
- package/dist/components/AgDivider.js +38 -0
- package/dist/components/AgEmptyState.d.ts +607 -0
- package/dist/components/AgEmptyState.js +42 -0
- package/dist/components/AgFieldset.d.ts +433 -0
- package/dist/components/AgFieldset.js +39 -0
- package/dist/components/AgHeader.d.ts +205 -0
- package/dist/components/AgHeader.js +35 -0
- package/dist/components/AgInput.d.ts +2988 -0
- package/dist/components/AgInput.js +91 -0
- package/dist/components/AgMessageBubble.d.ts +670 -0
- package/dist/components/AgMessageBubble.js +45 -0
- package/dist/components/AgProgress.d.ts +433 -0
- package/dist/components/AgProgress.js +39 -0
- package/dist/components/AgProgressRing.d.ts +274 -0
- package/dist/components/AgProgressRing.js +38 -0
- package/dist/components/AgRadio.d.ts +1848 -0
- package/dist/components/AgRadio.js +71 -0
- package/dist/components/AgRating.d.ts +1433 -0
- package/dist/components/AgRating.js +67 -0
- package/dist/components/AgSelect.d.ts +1839 -0
- package/dist/components/AgSelect.js +69 -0
- package/dist/components/AgSpinner.d.ts +151 -0
- package/dist/components/AgSpinner.js +34 -0
- package/dist/components/AgTabs.d.ts +328 -0
- package/dist/components/AgTabs.js +39 -0
- package/dist/components/AgTag.d.ts +752 -0
- package/dist/components/AgTag.js +44 -0
- package/dist/components/AgTimeline.d.ts +274 -0
- package/dist/components/AgTimeline.js +38 -0
- package/dist/components/AgToggle.d.ts +1848 -0
- package/dist/components/AgToggle.js +71 -0
- package/dist/functions/validate-surface.d.ts +27 -0
- package/dist/functions/validate-surface.js +56 -0
- package/dist/harness/mock-stream.d.ts +8 -0
- package/dist/harness/mock-stream.js +5 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +31 -0
- package/dist/primitives/AgText.d.ts +150 -0
- package/dist/primitives/AgText.js +44 -0
- package/dist/test-setup.d.ts +1 -0
- package/dist/test-setup.js +83 -0
- package/package.json +59 -4
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// AUTO-GENERATED by v2/a2ui/catalog/scripts/generate-catalog.ts — do not edit by hand
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { A2uiLitElement, ActionSchema, ChildListSchema, DynamicBooleanSchema } from '@a2ui/web_core/v1_0';
|
|
6
|
+
import 'agnosticui-core/tag';
|
|
7
|
+
export const AgTagSchema = z
|
|
8
|
+
.object({
|
|
9
|
+
children: ChildListSchema.describe('REF:#/$defs/ChildList|Child component IDs rendered inside AgTag.').optional(),
|
|
10
|
+
variant: z.enum(['warning', 'info', 'success', 'error', 'primary', 'monochrome']).optional(),
|
|
11
|
+
shape: z.enum(['circle', 'pill', 'round']).optional(),
|
|
12
|
+
uppercase: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property uppercase.').optional(),
|
|
13
|
+
removable: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property removable.').optional(),
|
|
14
|
+
action: ActionSchema.describe('REF:#/$defs/Action|Action dispatched on user interaction.').optional(),
|
|
15
|
+
})
|
|
16
|
+
.strict();
|
|
17
|
+
export const AgTagApi = {
|
|
18
|
+
name: 'AgTag',
|
|
19
|
+
schema: AgTagSchema,
|
|
20
|
+
};
|
|
21
|
+
export class AgA2uiTagElement extends A2uiLitElement {
|
|
22
|
+
static { this.tagName = 'ag-a2ui-tag'; }
|
|
23
|
+
createRenderRoot() {
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
handleAction() {
|
|
27
|
+
void this.controller.props.action?.();
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const p = this.controller.props;
|
|
31
|
+
return html `<ag-tag
|
|
32
|
+
.variant=${ifDefined(p.variant)}
|
|
33
|
+
.shape=${ifDefined(p.shape)}
|
|
34
|
+
.uppercase=${Boolean(p.uppercase)}
|
|
35
|
+
.removable=${Boolean(p.removable)}
|
|
36
|
+
@click=${this.handleAction}
|
|
37
|
+
>${(p.children ?? []).map((c) => this.renderNode(c))}</ag-tag>`;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export const AgTag = {
|
|
41
|
+
...AgTagApi,
|
|
42
|
+
element: AgA2uiTagElement,
|
|
43
|
+
tagName: AgA2uiTagElement.tagName,
|
|
44
|
+
};
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { A2uiLitElement } from '@a2ui/web_core/v1_0';
|
|
3
|
+
import 'agnosticui-core/timeline';
|
|
4
|
+
export declare const AgTimelineSchema: z.ZodObject<{
|
|
5
|
+
orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
6
|
+
variant: z.ZodOptional<z.ZodEnum<["warning", "success", "danger", "primary", "monochrome"]>>;
|
|
7
|
+
compact: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
|
|
8
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
9
|
+
path: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
path?: string | undefined;
|
|
12
|
+
'@path'?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
path?: string | undefined;
|
|
15
|
+
'@path'?: string | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
path?: string | undefined;
|
|
18
|
+
'@path'?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
path?: string | undefined;
|
|
21
|
+
'@path'?: string | undefined;
|
|
22
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
23
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
24
|
+
call: z.ZodOptional<z.ZodString>;
|
|
25
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
call?: string | undefined;
|
|
28
|
+
'@call'?: string | undefined;
|
|
29
|
+
catalogId?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
call?: string | undefined;
|
|
32
|
+
'@call'?: string | undefined;
|
|
33
|
+
catalogId?: string | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
call?: string | undefined;
|
|
36
|
+
'@call'?: string | undefined;
|
|
37
|
+
catalogId?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
call?: string | undefined;
|
|
40
|
+
'@call'?: string | undefined;
|
|
41
|
+
catalogId?: string | undefined;
|
|
42
|
+
}>, z.ZodAny>>]>>;
|
|
43
|
+
ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
44
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
45
|
+
path: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
path?: string | undefined;
|
|
48
|
+
'@path'?: string | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
path?: string | undefined;
|
|
51
|
+
'@path'?: string | undefined;
|
|
52
|
+
}>, {
|
|
53
|
+
path?: string | undefined;
|
|
54
|
+
'@path'?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
path?: string | undefined;
|
|
57
|
+
'@path'?: string | undefined;
|
|
58
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
59
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
60
|
+
call: z.ZodOptional<z.ZodString>;
|
|
61
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
call?: string | undefined;
|
|
64
|
+
'@call'?: string | undefined;
|
|
65
|
+
catalogId?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
call?: string | undefined;
|
|
68
|
+
'@call'?: string | undefined;
|
|
69
|
+
catalogId?: string | undefined;
|
|
70
|
+
}>, {
|
|
71
|
+
call?: string | undefined;
|
|
72
|
+
'@call'?: string | undefined;
|
|
73
|
+
catalogId?: string | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
call?: string | undefined;
|
|
76
|
+
'@call'?: string | undefined;
|
|
77
|
+
catalogId?: string | undefined;
|
|
78
|
+
}>, z.ZodAny>>]>>;
|
|
79
|
+
}, "strict", z.ZodTypeAny, {
|
|
80
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
81
|
+
variant?: "danger" | "monochrome" | "primary" | "success" | "warning" | undefined;
|
|
82
|
+
compact?: any;
|
|
83
|
+
ariaLabel?: any;
|
|
84
|
+
}, {
|
|
85
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
86
|
+
variant?: "danger" | "monochrome" | "primary" | "success" | "warning" | undefined;
|
|
87
|
+
compact?: any;
|
|
88
|
+
ariaLabel?: any;
|
|
89
|
+
}>;
|
|
90
|
+
export declare const AgTimelineApi: {
|
|
91
|
+
name: 'AgTimeline';
|
|
92
|
+
schema: z.ZodObject<{
|
|
93
|
+
orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
94
|
+
variant: z.ZodOptional<z.ZodEnum<["warning", "success", "danger", "primary", "monochrome"]>>;
|
|
95
|
+
compact: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
|
|
96
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
97
|
+
path: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
path?: string | undefined;
|
|
100
|
+
'@path'?: string | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
path?: string | undefined;
|
|
103
|
+
'@path'?: string | undefined;
|
|
104
|
+
}>, {
|
|
105
|
+
path?: string | undefined;
|
|
106
|
+
'@path'?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
path?: string | undefined;
|
|
109
|
+
'@path'?: string | undefined;
|
|
110
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
111
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
112
|
+
call: z.ZodOptional<z.ZodString>;
|
|
113
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
call?: string | undefined;
|
|
116
|
+
'@call'?: string | undefined;
|
|
117
|
+
catalogId?: string | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
call?: string | undefined;
|
|
120
|
+
'@call'?: string | undefined;
|
|
121
|
+
catalogId?: string | undefined;
|
|
122
|
+
}>, {
|
|
123
|
+
call?: string | undefined;
|
|
124
|
+
'@call'?: string | undefined;
|
|
125
|
+
catalogId?: string | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
call?: string | undefined;
|
|
128
|
+
'@call'?: string | undefined;
|
|
129
|
+
catalogId?: string | undefined;
|
|
130
|
+
}>, z.ZodAny>>]>>;
|
|
131
|
+
ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
132
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
133
|
+
path: z.ZodOptional<z.ZodString>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
path?: string | undefined;
|
|
136
|
+
'@path'?: string | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
path?: string | undefined;
|
|
139
|
+
'@path'?: string | undefined;
|
|
140
|
+
}>, {
|
|
141
|
+
path?: string | undefined;
|
|
142
|
+
'@path'?: string | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
path?: string | undefined;
|
|
145
|
+
'@path'?: string | undefined;
|
|
146
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
147
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
148
|
+
call: z.ZodOptional<z.ZodString>;
|
|
149
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
call?: string | undefined;
|
|
152
|
+
'@call'?: string | undefined;
|
|
153
|
+
catalogId?: string | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
call?: string | undefined;
|
|
156
|
+
'@call'?: string | undefined;
|
|
157
|
+
catalogId?: string | undefined;
|
|
158
|
+
}>, {
|
|
159
|
+
call?: string | undefined;
|
|
160
|
+
'@call'?: string | undefined;
|
|
161
|
+
catalogId?: string | undefined;
|
|
162
|
+
}, {
|
|
163
|
+
call?: string | undefined;
|
|
164
|
+
'@call'?: string | undefined;
|
|
165
|
+
catalogId?: string | undefined;
|
|
166
|
+
}>, z.ZodAny>>]>>;
|
|
167
|
+
}, "strict", z.ZodTypeAny, {
|
|
168
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
169
|
+
variant?: "danger" | "monochrome" | "primary" | "success" | "warning" | undefined;
|
|
170
|
+
compact?: any;
|
|
171
|
+
ariaLabel?: any;
|
|
172
|
+
}, {
|
|
173
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
174
|
+
variant?: "danger" | "monochrome" | "primary" | "success" | "warning" | undefined;
|
|
175
|
+
compact?: any;
|
|
176
|
+
ariaLabel?: any;
|
|
177
|
+
}>;
|
|
178
|
+
};
|
|
179
|
+
export declare class AgA2uiTimelineElement extends A2uiLitElement<typeof AgTimelineApi> {
|
|
180
|
+
static readonly tagName = "ag-a2ui-timeline";
|
|
181
|
+
createRenderRoot(): this;
|
|
182
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
183
|
+
}
|
|
184
|
+
export declare const AgTimeline: {
|
|
185
|
+
name: 'AgTimeline';
|
|
186
|
+
schema: z.ZodObject<{
|
|
187
|
+
orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
188
|
+
variant: z.ZodOptional<z.ZodEnum<["warning", "success", "danger", "primary", "monochrome"]>>;
|
|
189
|
+
compact: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
|
|
190
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
191
|
+
path: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
path?: string | undefined;
|
|
194
|
+
'@path'?: string | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
path?: string | undefined;
|
|
197
|
+
'@path'?: string | undefined;
|
|
198
|
+
}>, {
|
|
199
|
+
path?: string | undefined;
|
|
200
|
+
'@path'?: string | undefined;
|
|
201
|
+
}, {
|
|
202
|
+
path?: string | undefined;
|
|
203
|
+
'@path'?: string | undefined;
|
|
204
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
205
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
206
|
+
call: z.ZodOptional<z.ZodString>;
|
|
207
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
call?: string | undefined;
|
|
210
|
+
'@call'?: string | undefined;
|
|
211
|
+
catalogId?: string | undefined;
|
|
212
|
+
}, {
|
|
213
|
+
call?: string | undefined;
|
|
214
|
+
'@call'?: string | undefined;
|
|
215
|
+
catalogId?: string | undefined;
|
|
216
|
+
}>, {
|
|
217
|
+
call?: string | undefined;
|
|
218
|
+
'@call'?: string | undefined;
|
|
219
|
+
catalogId?: string | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
call?: string | undefined;
|
|
222
|
+
'@call'?: string | undefined;
|
|
223
|
+
catalogId?: string | undefined;
|
|
224
|
+
}>, z.ZodAny>>]>>;
|
|
225
|
+
ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
226
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
227
|
+
path: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
path?: string | undefined;
|
|
230
|
+
'@path'?: string | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
path?: string | undefined;
|
|
233
|
+
'@path'?: string | undefined;
|
|
234
|
+
}>, {
|
|
235
|
+
path?: string | undefined;
|
|
236
|
+
'@path'?: string | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
path?: string | undefined;
|
|
239
|
+
'@path'?: string | undefined;
|
|
240
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
241
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
242
|
+
call: z.ZodOptional<z.ZodString>;
|
|
243
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
call?: string | undefined;
|
|
246
|
+
'@call'?: string | undefined;
|
|
247
|
+
catalogId?: string | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
call?: string | undefined;
|
|
250
|
+
'@call'?: string | undefined;
|
|
251
|
+
catalogId?: string | undefined;
|
|
252
|
+
}>, {
|
|
253
|
+
call?: string | undefined;
|
|
254
|
+
'@call'?: string | undefined;
|
|
255
|
+
catalogId?: string | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
call?: string | undefined;
|
|
258
|
+
'@call'?: string | undefined;
|
|
259
|
+
catalogId?: string | undefined;
|
|
260
|
+
}>, z.ZodAny>>]>>;
|
|
261
|
+
}, "strict", z.ZodTypeAny, {
|
|
262
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
263
|
+
variant?: "danger" | "monochrome" | "primary" | "success" | "warning" | undefined;
|
|
264
|
+
compact?: any;
|
|
265
|
+
ariaLabel?: any;
|
|
266
|
+
}, {
|
|
267
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
268
|
+
variant?: "danger" | "monochrome" | "primary" | "success" | "warning" | undefined;
|
|
269
|
+
compact?: any;
|
|
270
|
+
ariaLabel?: any;
|
|
271
|
+
}>;
|
|
272
|
+
element: typeof AgA2uiTimelineElement;
|
|
273
|
+
tagName: string;
|
|
274
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// AUTO-GENERATED by v2/a2ui/catalog/scripts/generate-catalog.ts — do not edit by hand
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { A2uiLitElement, DynamicBooleanSchema, DynamicStringSchema } from '@a2ui/web_core/v1_0';
|
|
6
|
+
import 'agnosticui-core/timeline';
|
|
7
|
+
export const AgTimelineSchema = z
|
|
8
|
+
.object({
|
|
9
|
+
orientation: z.enum(['vertical', 'horizontal']).optional(),
|
|
10
|
+
variant: z.enum(['warning', 'success', 'danger', 'primary', 'monochrome']).optional(),
|
|
11
|
+
compact: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property compact.').optional(),
|
|
12
|
+
ariaLabel: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property ariaLabel.').optional(),
|
|
13
|
+
})
|
|
14
|
+
.strict();
|
|
15
|
+
export const AgTimelineApi = {
|
|
16
|
+
name: 'AgTimeline',
|
|
17
|
+
schema: AgTimelineSchema,
|
|
18
|
+
};
|
|
19
|
+
export class AgA2uiTimelineElement extends A2uiLitElement {
|
|
20
|
+
static { this.tagName = 'ag-a2ui-timeline'; }
|
|
21
|
+
createRenderRoot() {
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const p = this.controller.props;
|
|
26
|
+
return html `<ag-timeline
|
|
27
|
+
.orientation=${ifDefined(p.orientation)}
|
|
28
|
+
.variant=${ifDefined(p.variant)}
|
|
29
|
+
.compact=${Boolean(p.compact)}
|
|
30
|
+
.ariaLabel=${ifDefined(p.ariaLabel)}
|
|
31
|
+
></ag-timeline>`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export const AgTimeline = {
|
|
35
|
+
...AgTimelineApi,
|
|
36
|
+
element: AgA2uiTimelineElement,
|
|
37
|
+
tagName: AgA2uiTimelineElement.tagName,
|
|
38
|
+
};
|