@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,46 @@
|
|
|
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/alert';
|
|
7
|
+
export const AgAlertSchema = z
|
|
8
|
+
.object({
|
|
9
|
+
children: ChildListSchema.describe('REF:#/$defs/ChildList|Child component IDs rendered inside AgAlert.').optional(),
|
|
10
|
+
variant: z.enum(['warning', 'info', 'success', 'error', 'danger', 'primary', 'default', 'monochrome']).optional(),
|
|
11
|
+
bordered: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property bordered.').optional(),
|
|
12
|
+
rounded: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property rounded.').optional(),
|
|
13
|
+
borderedLeft: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property borderedLeft.').optional(),
|
|
14
|
+
dismissible: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property dismissible.').optional(),
|
|
15
|
+
action: ActionSchema.describe('REF:#/$defs/Action|Action dispatched on user interaction.').optional(),
|
|
16
|
+
})
|
|
17
|
+
.strict();
|
|
18
|
+
export const AgAlertApi = {
|
|
19
|
+
name: 'AgAlert',
|
|
20
|
+
schema: AgAlertSchema,
|
|
21
|
+
};
|
|
22
|
+
export class AgA2uiAlertElement extends A2uiLitElement {
|
|
23
|
+
static { this.tagName = 'ag-a2ui-alert'; }
|
|
24
|
+
createRenderRoot() {
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
handleAction() {
|
|
28
|
+
void this.controller.props.action?.();
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
const p = this.controller.props;
|
|
32
|
+
return html `<ag-alert
|
|
33
|
+
.variant=${ifDefined(p.variant)}
|
|
34
|
+
.bordered=${Boolean(p.bordered)}
|
|
35
|
+
.rounded=${Boolean(p.rounded)}
|
|
36
|
+
.borderedLeft=${Boolean(p.borderedLeft)}
|
|
37
|
+
.dismissible=${Boolean(p.dismissible)}
|
|
38
|
+
@click=${this.handleAction}
|
|
39
|
+
>${(p.children ?? []).map((c) => this.renderNode(c))}</ag-alert>`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export const AgAlert = {
|
|
43
|
+
...AgAlertApi,
|
|
44
|
+
element: AgA2uiAlertElement,
|
|
45
|
+
tagName: AgA2uiAlertElement.tagName,
|
|
46
|
+
};
|
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { A2uiLitElement } from '@a2ui/web_core/v1_0';
|
|
3
|
+
import 'agnosticui-core/avatar';
|
|
4
|
+
export declare const AgAvatarSchema: z.ZodObject<{
|
|
5
|
+
text: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
6
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
7
|
+
path: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
path?: string | undefined;
|
|
10
|
+
'@path'?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
path?: string | undefined;
|
|
13
|
+
'@path'?: string | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
path?: string | undefined;
|
|
16
|
+
'@path'?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
path?: string | undefined;
|
|
19
|
+
'@path'?: string | undefined;
|
|
20
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
21
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
22
|
+
call: z.ZodOptional<z.ZodString>;
|
|
23
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
call?: string | undefined;
|
|
26
|
+
'@call'?: string | undefined;
|
|
27
|
+
catalogId?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
call?: string | undefined;
|
|
30
|
+
'@call'?: string | undefined;
|
|
31
|
+
catalogId?: string | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
call?: string | undefined;
|
|
34
|
+
'@call'?: string | undefined;
|
|
35
|
+
catalogId?: string | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
call?: string | undefined;
|
|
38
|
+
'@call'?: string | undefined;
|
|
39
|
+
catalogId?: string | undefined;
|
|
40
|
+
}>, z.ZodAny>>]>>;
|
|
41
|
+
imgSrc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
42
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
43
|
+
path: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
path?: string | undefined;
|
|
46
|
+
'@path'?: string | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
path?: string | undefined;
|
|
49
|
+
'@path'?: string | undefined;
|
|
50
|
+
}>, {
|
|
51
|
+
path?: string | undefined;
|
|
52
|
+
'@path'?: string | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
path?: string | undefined;
|
|
55
|
+
'@path'?: string | undefined;
|
|
56
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
57
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
58
|
+
call: z.ZodOptional<z.ZodString>;
|
|
59
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
call?: string | undefined;
|
|
62
|
+
'@call'?: string | undefined;
|
|
63
|
+
catalogId?: string | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
call?: string | undefined;
|
|
66
|
+
'@call'?: string | undefined;
|
|
67
|
+
catalogId?: string | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
call?: string | undefined;
|
|
70
|
+
'@call'?: string | undefined;
|
|
71
|
+
catalogId?: string | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
call?: string | undefined;
|
|
74
|
+
'@call'?: string | undefined;
|
|
75
|
+
catalogId?: string | undefined;
|
|
76
|
+
}>, z.ZodAny>>]>>;
|
|
77
|
+
imgAlt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
78
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
79
|
+
path: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
path?: string | undefined;
|
|
82
|
+
'@path'?: string | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
path?: string | undefined;
|
|
85
|
+
'@path'?: string | undefined;
|
|
86
|
+
}>, {
|
|
87
|
+
path?: string | undefined;
|
|
88
|
+
'@path'?: string | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
path?: string | undefined;
|
|
91
|
+
'@path'?: string | undefined;
|
|
92
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
93
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
94
|
+
call: z.ZodOptional<z.ZodString>;
|
|
95
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
call?: string | undefined;
|
|
98
|
+
'@call'?: string | undefined;
|
|
99
|
+
catalogId?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
call?: string | undefined;
|
|
102
|
+
'@call'?: string | undefined;
|
|
103
|
+
catalogId?: string | undefined;
|
|
104
|
+
}>, {
|
|
105
|
+
call?: string | undefined;
|
|
106
|
+
'@call'?: string | undefined;
|
|
107
|
+
catalogId?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
call?: string | undefined;
|
|
110
|
+
'@call'?: string | undefined;
|
|
111
|
+
catalogId?: string | undefined;
|
|
112
|
+
}>, z.ZodAny>>]>>;
|
|
113
|
+
size: z.ZodOptional<z.ZodEnum<["xs", "sm", "md", "lg", "xl"]>>;
|
|
114
|
+
shape: z.ZodOptional<z.ZodEnum<["circle", "square", "rounded"]>>;
|
|
115
|
+
variant: z.ZodOptional<z.ZodEnum<["warning", "info", "success", "error", "default", "monochrome", "transparent"]>>;
|
|
116
|
+
ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
117
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
118
|
+
path: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
path?: string | undefined;
|
|
121
|
+
'@path'?: string | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
path?: string | undefined;
|
|
124
|
+
'@path'?: string | undefined;
|
|
125
|
+
}>, {
|
|
126
|
+
path?: string | undefined;
|
|
127
|
+
'@path'?: string | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
path?: string | undefined;
|
|
130
|
+
'@path'?: string | undefined;
|
|
131
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
132
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
133
|
+
call: z.ZodOptional<z.ZodString>;
|
|
134
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
call?: string | undefined;
|
|
137
|
+
'@call'?: string | undefined;
|
|
138
|
+
catalogId?: string | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
call?: string | undefined;
|
|
141
|
+
'@call'?: string | undefined;
|
|
142
|
+
catalogId?: string | undefined;
|
|
143
|
+
}>, {
|
|
144
|
+
call?: string | undefined;
|
|
145
|
+
'@call'?: string | undefined;
|
|
146
|
+
catalogId?: string | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
call?: string | undefined;
|
|
149
|
+
'@call'?: string | undefined;
|
|
150
|
+
catalogId?: string | undefined;
|
|
151
|
+
}>, z.ZodAny>>]>>;
|
|
152
|
+
}, "strict", z.ZodTypeAny, {
|
|
153
|
+
text?: any;
|
|
154
|
+
imgSrc?: any;
|
|
155
|
+
imgAlt?: any;
|
|
156
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | undefined;
|
|
157
|
+
shape?: "circle" | "rounded" | "square" | undefined;
|
|
158
|
+
variant?: "default" | "error" | "info" | "monochrome" | "success" | "transparent" | "warning" | undefined;
|
|
159
|
+
ariaLabel?: any;
|
|
160
|
+
}, {
|
|
161
|
+
text?: any;
|
|
162
|
+
imgSrc?: any;
|
|
163
|
+
imgAlt?: any;
|
|
164
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | undefined;
|
|
165
|
+
shape?: "circle" | "rounded" | "square" | undefined;
|
|
166
|
+
variant?: "default" | "error" | "info" | "monochrome" | "success" | "transparent" | "warning" | undefined;
|
|
167
|
+
ariaLabel?: any;
|
|
168
|
+
}>;
|
|
169
|
+
export declare const AgAvatarApi: {
|
|
170
|
+
name: 'AgAvatar';
|
|
171
|
+
schema: z.ZodObject<{
|
|
172
|
+
text: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
173
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
174
|
+
path: z.ZodOptional<z.ZodString>;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
path?: string | undefined;
|
|
177
|
+
'@path'?: string | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
path?: string | undefined;
|
|
180
|
+
'@path'?: string | undefined;
|
|
181
|
+
}>, {
|
|
182
|
+
path?: string | undefined;
|
|
183
|
+
'@path'?: string | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
path?: string | undefined;
|
|
186
|
+
'@path'?: string | undefined;
|
|
187
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
188
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
189
|
+
call: z.ZodOptional<z.ZodString>;
|
|
190
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
call?: string | undefined;
|
|
193
|
+
'@call'?: string | undefined;
|
|
194
|
+
catalogId?: string | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
call?: string | undefined;
|
|
197
|
+
'@call'?: string | undefined;
|
|
198
|
+
catalogId?: string | undefined;
|
|
199
|
+
}>, {
|
|
200
|
+
call?: string | undefined;
|
|
201
|
+
'@call'?: string | undefined;
|
|
202
|
+
catalogId?: string | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
call?: string | undefined;
|
|
205
|
+
'@call'?: string | undefined;
|
|
206
|
+
catalogId?: string | undefined;
|
|
207
|
+
}>, z.ZodAny>>]>>;
|
|
208
|
+
imgSrc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
209
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
210
|
+
path: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
path?: string | undefined;
|
|
213
|
+
'@path'?: string | undefined;
|
|
214
|
+
}, {
|
|
215
|
+
path?: string | undefined;
|
|
216
|
+
'@path'?: string | undefined;
|
|
217
|
+
}>, {
|
|
218
|
+
path?: string | undefined;
|
|
219
|
+
'@path'?: string | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
path?: string | undefined;
|
|
222
|
+
'@path'?: string | undefined;
|
|
223
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
224
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
225
|
+
call: z.ZodOptional<z.ZodString>;
|
|
226
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
call?: string | undefined;
|
|
229
|
+
'@call'?: string | undefined;
|
|
230
|
+
catalogId?: string | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
call?: string | undefined;
|
|
233
|
+
'@call'?: string | undefined;
|
|
234
|
+
catalogId?: string | undefined;
|
|
235
|
+
}>, {
|
|
236
|
+
call?: string | undefined;
|
|
237
|
+
'@call'?: string | undefined;
|
|
238
|
+
catalogId?: string | undefined;
|
|
239
|
+
}, {
|
|
240
|
+
call?: string | undefined;
|
|
241
|
+
'@call'?: string | undefined;
|
|
242
|
+
catalogId?: string | undefined;
|
|
243
|
+
}>, z.ZodAny>>]>>;
|
|
244
|
+
imgAlt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
245
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
246
|
+
path: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
path?: string | undefined;
|
|
249
|
+
'@path'?: string | undefined;
|
|
250
|
+
}, {
|
|
251
|
+
path?: string | undefined;
|
|
252
|
+
'@path'?: string | undefined;
|
|
253
|
+
}>, {
|
|
254
|
+
path?: string | undefined;
|
|
255
|
+
'@path'?: string | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
path?: string | undefined;
|
|
258
|
+
'@path'?: string | undefined;
|
|
259
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
260
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
261
|
+
call: z.ZodOptional<z.ZodString>;
|
|
262
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
call?: string | undefined;
|
|
265
|
+
'@call'?: string | undefined;
|
|
266
|
+
catalogId?: string | undefined;
|
|
267
|
+
}, {
|
|
268
|
+
call?: string | undefined;
|
|
269
|
+
'@call'?: string | undefined;
|
|
270
|
+
catalogId?: string | undefined;
|
|
271
|
+
}>, {
|
|
272
|
+
call?: string | undefined;
|
|
273
|
+
'@call'?: string | undefined;
|
|
274
|
+
catalogId?: string | undefined;
|
|
275
|
+
}, {
|
|
276
|
+
call?: string | undefined;
|
|
277
|
+
'@call'?: string | undefined;
|
|
278
|
+
catalogId?: string | undefined;
|
|
279
|
+
}>, z.ZodAny>>]>>;
|
|
280
|
+
size: z.ZodOptional<z.ZodEnum<["xs", "sm", "md", "lg", "xl"]>>;
|
|
281
|
+
shape: z.ZodOptional<z.ZodEnum<["circle", "square", "rounded"]>>;
|
|
282
|
+
variant: z.ZodOptional<z.ZodEnum<["warning", "info", "success", "error", "default", "monochrome", "transparent"]>>;
|
|
283
|
+
ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
284
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
285
|
+
path: z.ZodOptional<z.ZodString>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
path?: string | undefined;
|
|
288
|
+
'@path'?: string | undefined;
|
|
289
|
+
}, {
|
|
290
|
+
path?: string | undefined;
|
|
291
|
+
'@path'?: string | undefined;
|
|
292
|
+
}>, {
|
|
293
|
+
path?: string | undefined;
|
|
294
|
+
'@path'?: string | undefined;
|
|
295
|
+
}, {
|
|
296
|
+
path?: string | undefined;
|
|
297
|
+
'@path'?: string | undefined;
|
|
298
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
299
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
300
|
+
call: z.ZodOptional<z.ZodString>;
|
|
301
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
302
|
+
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
call?: string | undefined;
|
|
304
|
+
'@call'?: string | undefined;
|
|
305
|
+
catalogId?: string | undefined;
|
|
306
|
+
}, {
|
|
307
|
+
call?: string | undefined;
|
|
308
|
+
'@call'?: string | undefined;
|
|
309
|
+
catalogId?: string | undefined;
|
|
310
|
+
}>, {
|
|
311
|
+
call?: string | undefined;
|
|
312
|
+
'@call'?: string | undefined;
|
|
313
|
+
catalogId?: string | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
call?: string | undefined;
|
|
316
|
+
'@call'?: string | undefined;
|
|
317
|
+
catalogId?: string | undefined;
|
|
318
|
+
}>, z.ZodAny>>]>>;
|
|
319
|
+
}, "strict", z.ZodTypeAny, {
|
|
320
|
+
text?: any;
|
|
321
|
+
imgSrc?: any;
|
|
322
|
+
imgAlt?: any;
|
|
323
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | undefined;
|
|
324
|
+
shape?: "circle" | "rounded" | "square" | undefined;
|
|
325
|
+
variant?: "default" | "error" | "info" | "monochrome" | "success" | "transparent" | "warning" | undefined;
|
|
326
|
+
ariaLabel?: any;
|
|
327
|
+
}, {
|
|
328
|
+
text?: any;
|
|
329
|
+
imgSrc?: any;
|
|
330
|
+
imgAlt?: any;
|
|
331
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | undefined;
|
|
332
|
+
shape?: "circle" | "rounded" | "square" | undefined;
|
|
333
|
+
variant?: "default" | "error" | "info" | "monochrome" | "success" | "transparent" | "warning" | undefined;
|
|
334
|
+
ariaLabel?: any;
|
|
335
|
+
}>;
|
|
336
|
+
};
|
|
337
|
+
export declare class AgA2uiAvatarElement extends A2uiLitElement<typeof AgAvatarApi> {
|
|
338
|
+
static readonly tagName = "ag-a2ui-avatar";
|
|
339
|
+
createRenderRoot(): this;
|
|
340
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
341
|
+
}
|
|
342
|
+
export declare const AgAvatar: {
|
|
343
|
+
name: 'AgAvatar';
|
|
344
|
+
schema: z.ZodObject<{
|
|
345
|
+
text: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
346
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
347
|
+
path: z.ZodOptional<z.ZodString>;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
path?: string | undefined;
|
|
350
|
+
'@path'?: string | undefined;
|
|
351
|
+
}, {
|
|
352
|
+
path?: string | undefined;
|
|
353
|
+
'@path'?: string | undefined;
|
|
354
|
+
}>, {
|
|
355
|
+
path?: string | undefined;
|
|
356
|
+
'@path'?: string | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
path?: string | undefined;
|
|
359
|
+
'@path'?: string | undefined;
|
|
360
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
361
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
362
|
+
call: z.ZodOptional<z.ZodString>;
|
|
363
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, "strip", z.ZodTypeAny, {
|
|
365
|
+
call?: string | undefined;
|
|
366
|
+
'@call'?: string | undefined;
|
|
367
|
+
catalogId?: string | undefined;
|
|
368
|
+
}, {
|
|
369
|
+
call?: string | undefined;
|
|
370
|
+
'@call'?: string | undefined;
|
|
371
|
+
catalogId?: string | undefined;
|
|
372
|
+
}>, {
|
|
373
|
+
call?: string | undefined;
|
|
374
|
+
'@call'?: string | undefined;
|
|
375
|
+
catalogId?: string | undefined;
|
|
376
|
+
}, {
|
|
377
|
+
call?: string | undefined;
|
|
378
|
+
'@call'?: string | undefined;
|
|
379
|
+
catalogId?: string | undefined;
|
|
380
|
+
}>, z.ZodAny>>]>>;
|
|
381
|
+
imgSrc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
382
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
383
|
+
path: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
path?: string | undefined;
|
|
386
|
+
'@path'?: string | undefined;
|
|
387
|
+
}, {
|
|
388
|
+
path?: string | undefined;
|
|
389
|
+
'@path'?: string | undefined;
|
|
390
|
+
}>, {
|
|
391
|
+
path?: string | undefined;
|
|
392
|
+
'@path'?: string | undefined;
|
|
393
|
+
}, {
|
|
394
|
+
path?: string | undefined;
|
|
395
|
+
'@path'?: string | undefined;
|
|
396
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
397
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
398
|
+
call: z.ZodOptional<z.ZodString>;
|
|
399
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
|
401
|
+
call?: string | undefined;
|
|
402
|
+
'@call'?: string | undefined;
|
|
403
|
+
catalogId?: string | undefined;
|
|
404
|
+
}, {
|
|
405
|
+
call?: string | undefined;
|
|
406
|
+
'@call'?: string | undefined;
|
|
407
|
+
catalogId?: string | undefined;
|
|
408
|
+
}>, {
|
|
409
|
+
call?: string | undefined;
|
|
410
|
+
'@call'?: string | undefined;
|
|
411
|
+
catalogId?: string | undefined;
|
|
412
|
+
}, {
|
|
413
|
+
call?: string | undefined;
|
|
414
|
+
'@call'?: string | undefined;
|
|
415
|
+
catalogId?: string | undefined;
|
|
416
|
+
}>, z.ZodAny>>]>>;
|
|
417
|
+
imgAlt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
418
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
419
|
+
path: z.ZodOptional<z.ZodString>;
|
|
420
|
+
}, "strip", z.ZodTypeAny, {
|
|
421
|
+
path?: string | undefined;
|
|
422
|
+
'@path'?: string | undefined;
|
|
423
|
+
}, {
|
|
424
|
+
path?: string | undefined;
|
|
425
|
+
'@path'?: string | undefined;
|
|
426
|
+
}>, {
|
|
427
|
+
path?: string | undefined;
|
|
428
|
+
'@path'?: string | undefined;
|
|
429
|
+
}, {
|
|
430
|
+
path?: string | undefined;
|
|
431
|
+
'@path'?: string | undefined;
|
|
432
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
433
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
434
|
+
call: z.ZodOptional<z.ZodString>;
|
|
435
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
436
|
+
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
call?: string | undefined;
|
|
438
|
+
'@call'?: string | undefined;
|
|
439
|
+
catalogId?: string | undefined;
|
|
440
|
+
}, {
|
|
441
|
+
call?: string | undefined;
|
|
442
|
+
'@call'?: string | undefined;
|
|
443
|
+
catalogId?: string | undefined;
|
|
444
|
+
}>, {
|
|
445
|
+
call?: string | undefined;
|
|
446
|
+
'@call'?: string | undefined;
|
|
447
|
+
catalogId?: string | undefined;
|
|
448
|
+
}, {
|
|
449
|
+
call?: string | undefined;
|
|
450
|
+
'@call'?: string | undefined;
|
|
451
|
+
catalogId?: string | undefined;
|
|
452
|
+
}>, z.ZodAny>>]>>;
|
|
453
|
+
size: z.ZodOptional<z.ZodEnum<["xs", "sm", "md", "lg", "xl"]>>;
|
|
454
|
+
shape: z.ZodOptional<z.ZodEnum<["circle", "square", "rounded"]>>;
|
|
455
|
+
variant: z.ZodOptional<z.ZodEnum<["warning", "info", "success", "error", "default", "monochrome", "transparent"]>>;
|
|
456
|
+
ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
457
|
+
'@path': z.ZodOptional<z.ZodString>;
|
|
458
|
+
path: z.ZodOptional<z.ZodString>;
|
|
459
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
path?: string | undefined;
|
|
461
|
+
'@path'?: string | undefined;
|
|
462
|
+
}, {
|
|
463
|
+
path?: string | undefined;
|
|
464
|
+
'@path'?: string | undefined;
|
|
465
|
+
}>, {
|
|
466
|
+
path?: string | undefined;
|
|
467
|
+
'@path'?: string | undefined;
|
|
468
|
+
}, {
|
|
469
|
+
path?: string | undefined;
|
|
470
|
+
'@path'?: string | undefined;
|
|
471
|
+
}>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
472
|
+
'@call': z.ZodOptional<z.ZodString>;
|
|
473
|
+
call: z.ZodOptional<z.ZodString>;
|
|
474
|
+
catalogId: z.ZodOptional<z.ZodString>;
|
|
475
|
+
}, "strip", z.ZodTypeAny, {
|
|
476
|
+
call?: string | undefined;
|
|
477
|
+
'@call'?: string | undefined;
|
|
478
|
+
catalogId?: string | undefined;
|
|
479
|
+
}, {
|
|
480
|
+
call?: string | undefined;
|
|
481
|
+
'@call'?: string | undefined;
|
|
482
|
+
catalogId?: string | undefined;
|
|
483
|
+
}>, {
|
|
484
|
+
call?: string | undefined;
|
|
485
|
+
'@call'?: string | undefined;
|
|
486
|
+
catalogId?: string | undefined;
|
|
487
|
+
}, {
|
|
488
|
+
call?: string | undefined;
|
|
489
|
+
'@call'?: string | undefined;
|
|
490
|
+
catalogId?: string | undefined;
|
|
491
|
+
}>, z.ZodAny>>]>>;
|
|
492
|
+
}, "strict", z.ZodTypeAny, {
|
|
493
|
+
text?: any;
|
|
494
|
+
imgSrc?: any;
|
|
495
|
+
imgAlt?: any;
|
|
496
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | undefined;
|
|
497
|
+
shape?: "circle" | "rounded" | "square" | undefined;
|
|
498
|
+
variant?: "default" | "error" | "info" | "monochrome" | "success" | "transparent" | "warning" | undefined;
|
|
499
|
+
ariaLabel?: any;
|
|
500
|
+
}, {
|
|
501
|
+
text?: any;
|
|
502
|
+
imgSrc?: any;
|
|
503
|
+
imgAlt?: any;
|
|
504
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | undefined;
|
|
505
|
+
shape?: "circle" | "rounded" | "square" | undefined;
|
|
506
|
+
variant?: "default" | "error" | "info" | "monochrome" | "success" | "transparent" | "warning" | undefined;
|
|
507
|
+
ariaLabel?: any;
|
|
508
|
+
}>;
|
|
509
|
+
element: typeof AgA2uiAvatarElement;
|
|
510
|
+
tagName: string;
|
|
511
|
+
};
|
|
@@ -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, DynamicStringSchema } from '@a2ui/web_core/v1_0';
|
|
6
|
+
import 'agnosticui-core/avatar';
|
|
7
|
+
export const AgAvatarSchema = z
|
|
8
|
+
.object({
|
|
9
|
+
text: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property text.').optional(),
|
|
10
|
+
imgSrc: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property imgSrc.').optional(),
|
|
11
|
+
imgAlt: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property imgAlt.').optional(),
|
|
12
|
+
size: z.enum(['xs', 'sm', 'md', 'lg', 'xl']).optional(),
|
|
13
|
+
shape: z.enum(['circle', 'square', 'rounded']).optional(),
|
|
14
|
+
variant: z.enum(['warning', 'info', 'success', 'error', 'default', 'monochrome', 'transparent']).optional(),
|
|
15
|
+
ariaLabel: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property ariaLabel.').optional(),
|
|
16
|
+
})
|
|
17
|
+
.strict();
|
|
18
|
+
export const AgAvatarApi = {
|
|
19
|
+
name: 'AgAvatar',
|
|
20
|
+
schema: AgAvatarSchema,
|
|
21
|
+
};
|
|
22
|
+
export class AgA2uiAvatarElement extends A2uiLitElement {
|
|
23
|
+
static { this.tagName = 'ag-a2ui-avatar'; }
|
|
24
|
+
createRenderRoot() {
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const p = this.controller.props;
|
|
29
|
+
return html `<ag-avatar
|
|
30
|
+
.text=${ifDefined(p.text)}
|
|
31
|
+
.imgSrc=${ifDefined(p.imgSrc)}
|
|
32
|
+
.imgAlt=${ifDefined(p.imgAlt)}
|
|
33
|
+
.size=${ifDefined(p.size)}
|
|
34
|
+
.shape=${ifDefined(p.shape)}
|
|
35
|
+
.variant=${ifDefined(p.variant)}
|
|
36
|
+
.ariaLabel=${ifDefined(p.ariaLabel)}
|
|
37
|
+
></ag-avatar>`;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export const AgAvatar = {
|
|
41
|
+
...AgAvatarApi,
|
|
42
|
+
element: AgA2uiAvatarElement,
|
|
43
|
+
tagName: AgA2uiAvatarElement.tagName,
|
|
44
|
+
};
|