@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.
Files changed (64) hide show
  1. package/README.md +34 -2
  2. package/SKILL.md +52 -0
  3. package/agnosticui-catalog.json +2184 -0
  4. package/dist/catalog.d.ts +5 -0
  5. package/dist/catalog.js +36 -0
  6. package/dist/components/AgAccordion.d.ts +82 -0
  7. package/dist/components/AgAccordion.js +29 -0
  8. package/dist/components/AgAlert.d.ts +971 -0
  9. package/dist/components/AgAlert.js +46 -0
  10. package/dist/components/AgAvatar.d.ts +511 -0
  11. package/dist/components/AgAvatar.js +44 -0
  12. package/dist/components/AgBadge.d.ts +793 -0
  13. package/dist/components/AgBadge.js +49 -0
  14. package/dist/components/AgButton.d.ts +1568 -0
  15. package/dist/components/AgButton.js +61 -0
  16. package/dist/components/AgCard.d.ts +565 -0
  17. package/dist/components/AgCard.js +45 -0
  18. package/dist/components/AgCheckbox.d.ts +1497 -0
  19. package/dist/components/AgCheckbox.js +63 -0
  20. package/dist/components/AgCombobox.d.ts +2733 -0
  21. package/dist/components/AgCombobox.js +91 -0
  22. package/dist/components/AgDivider.d.ts +169 -0
  23. package/dist/components/AgDivider.js +38 -0
  24. package/dist/components/AgEmptyState.d.ts +607 -0
  25. package/dist/components/AgEmptyState.js +42 -0
  26. package/dist/components/AgFieldset.d.ts +433 -0
  27. package/dist/components/AgFieldset.js +39 -0
  28. package/dist/components/AgHeader.d.ts +205 -0
  29. package/dist/components/AgHeader.js +35 -0
  30. package/dist/components/AgInput.d.ts +2988 -0
  31. package/dist/components/AgInput.js +91 -0
  32. package/dist/components/AgMessageBubble.d.ts +670 -0
  33. package/dist/components/AgMessageBubble.js +45 -0
  34. package/dist/components/AgProgress.d.ts +433 -0
  35. package/dist/components/AgProgress.js +39 -0
  36. package/dist/components/AgProgressRing.d.ts +274 -0
  37. package/dist/components/AgProgressRing.js +38 -0
  38. package/dist/components/AgRadio.d.ts +1848 -0
  39. package/dist/components/AgRadio.js +71 -0
  40. package/dist/components/AgRating.d.ts +1433 -0
  41. package/dist/components/AgRating.js +67 -0
  42. package/dist/components/AgSelect.d.ts +1839 -0
  43. package/dist/components/AgSelect.js +69 -0
  44. package/dist/components/AgSpinner.d.ts +151 -0
  45. package/dist/components/AgSpinner.js +34 -0
  46. package/dist/components/AgTabs.d.ts +328 -0
  47. package/dist/components/AgTabs.js +39 -0
  48. package/dist/components/AgTag.d.ts +752 -0
  49. package/dist/components/AgTag.js +44 -0
  50. package/dist/components/AgTimeline.d.ts +274 -0
  51. package/dist/components/AgTimeline.js +38 -0
  52. package/dist/components/AgToggle.d.ts +1848 -0
  53. package/dist/components/AgToggle.js +71 -0
  54. package/dist/functions/validate-surface.d.ts +27 -0
  55. package/dist/functions/validate-surface.js +56 -0
  56. package/dist/harness/mock-stream.d.ts +8 -0
  57. package/dist/harness/mock-stream.js +5 -0
  58. package/dist/index.d.ts +30 -0
  59. package/dist/index.js +31 -0
  60. package/dist/primitives/AgText.d.ts +150 -0
  61. package/dist/primitives/AgText.js +44 -0
  62. package/dist/test-setup.d.ts +1 -0
  63. package/dist/test-setup.js +83 -0
  64. package/package.json +59 -4
@@ -0,0 +1,45 @@
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, ChildListSchema, DynamicStringSchema } from '@a2ui/web_core/v1_0';
6
+ import 'agnosticui-core/message-bubble';
7
+ export const AgMessageBubbleSchema = z
8
+ .object({
9
+ children: ChildListSchema.describe('REF:#/$defs/ChildList|Child component IDs rendered inside AgMessageBubble.').optional(),
10
+ from: z.enum(['me', 'them']).optional(),
11
+ message: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property message.').optional(),
12
+ time: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property time.').optional(),
13
+ author: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property author.').optional(),
14
+ avatarUrl: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property avatarUrl.').optional(),
15
+ footer: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property footer.').optional(),
16
+ variant: z.enum(['warning', 'info', 'success', 'danger', 'default', 'monochrome', 'neutral']).optional(),
17
+ })
18
+ .strict();
19
+ export const AgMessageBubbleApi = {
20
+ name: 'AgMessageBubble',
21
+ schema: AgMessageBubbleSchema,
22
+ };
23
+ export class AgA2uiMessageBubbleElement extends A2uiLitElement {
24
+ static { this.tagName = 'ag-a2ui-message-bubble'; }
25
+ createRenderRoot() {
26
+ return this;
27
+ }
28
+ render() {
29
+ const p = this.controller.props;
30
+ return html `<ag-message-bubble
31
+ .from=${ifDefined(p.from)}
32
+ .message=${ifDefined(p.message)}
33
+ .time=${ifDefined(p.time)}
34
+ .author=${ifDefined(p.author)}
35
+ .avatarUrl=${ifDefined(p.avatarUrl)}
36
+ .footer=${ifDefined(p.footer)}
37
+ .variant=${ifDefined(p.variant)}
38
+ >${(p.children ?? []).map((c) => this.renderNode(c))}</ag-message-bubble>`;
39
+ }
40
+ }
41
+ export const AgMessageBubble = {
42
+ ...AgMessageBubbleApi,
43
+ element: AgA2uiMessageBubbleElement,
44
+ tagName: AgA2uiMessageBubbleElement.tagName,
45
+ };
@@ -0,0 +1,433 @@
1
+ import { z } from 'zod';
2
+ import { A2uiLitElement } from '@a2ui/web_core/v1_0';
3
+ import 'agnosticui-core/progress';
4
+ export declare const AgProgressSchema: z.ZodObject<{
5
+ children: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
6
+ componentId: z.ZodString;
7
+ path: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ path: string;
10
+ componentId: string;
11
+ }, {
12
+ path: string;
13
+ componentId: string;
14
+ }>]>>;
15
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
16
+ '@path': z.ZodOptional<z.ZodString>;
17
+ path: z.ZodOptional<z.ZodString>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ path?: string | undefined;
20
+ '@path'?: string | undefined;
21
+ }, {
22
+ path?: string | undefined;
23
+ '@path'?: string | undefined;
24
+ }>, {
25
+ path?: string | undefined;
26
+ '@path'?: string | undefined;
27
+ }, {
28
+ path?: string | undefined;
29
+ '@path'?: string | undefined;
30
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
31
+ '@call': z.ZodOptional<z.ZodString>;
32
+ call: z.ZodOptional<z.ZodString>;
33
+ catalogId: z.ZodOptional<z.ZodString>;
34
+ }, "strip", z.ZodTypeAny, {
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
+ }>, {
43
+ call?: string | undefined;
44
+ '@call'?: string | undefined;
45
+ catalogId?: string | undefined;
46
+ }, {
47
+ call?: string | undefined;
48
+ '@call'?: string | undefined;
49
+ catalogId?: string | undefined;
50
+ }>, z.ZodAny>>]>>;
51
+ max: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
52
+ '@path': z.ZodOptional<z.ZodString>;
53
+ path: z.ZodOptional<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ path?: string | undefined;
56
+ '@path'?: string | undefined;
57
+ }, {
58
+ path?: string | undefined;
59
+ '@path'?: string | undefined;
60
+ }>, {
61
+ path?: string | undefined;
62
+ '@path'?: string | undefined;
63
+ }, {
64
+ path?: string | undefined;
65
+ '@path'?: string | undefined;
66
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
67
+ '@call': z.ZodOptional<z.ZodString>;
68
+ call: z.ZodOptional<z.ZodString>;
69
+ catalogId: z.ZodOptional<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
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
+ }>, {
79
+ call?: string | undefined;
80
+ '@call'?: string | undefined;
81
+ catalogId?: string | undefined;
82
+ }, {
83
+ call?: string | undefined;
84
+ '@call'?: string | undefined;
85
+ catalogId?: string | undefined;
86
+ }>, z.ZodAny>>]>>;
87
+ label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
88
+ '@path': z.ZodOptional<z.ZodString>;
89
+ path: z.ZodOptional<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ path?: string | undefined;
92
+ '@path'?: string | undefined;
93
+ }, {
94
+ path?: string | undefined;
95
+ '@path'?: string | undefined;
96
+ }>, {
97
+ path?: string | undefined;
98
+ '@path'?: string | undefined;
99
+ }, {
100
+ path?: string | undefined;
101
+ '@path'?: string | undefined;
102
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
103
+ '@call': z.ZodOptional<z.ZodString>;
104
+ call: z.ZodOptional<z.ZodString>;
105
+ catalogId: z.ZodOptional<z.ZodString>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ call?: string | undefined;
108
+ '@call'?: string | undefined;
109
+ catalogId?: string | undefined;
110
+ }, {
111
+ call?: string | undefined;
112
+ '@call'?: string | undefined;
113
+ catalogId?: string | undefined;
114
+ }>, {
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
+ }>, z.ZodAny>>]>>;
123
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
124
+ }, "strict", z.ZodTypeAny, {
125
+ children?: string[] | {
126
+ path: string;
127
+ componentId: string;
128
+ } | undefined;
129
+ value?: any;
130
+ max?: any;
131
+ label?: any;
132
+ size?: "large" | "medium" | "small" | undefined;
133
+ }, {
134
+ children?: string[] | {
135
+ path: string;
136
+ componentId: string;
137
+ } | undefined;
138
+ value?: any;
139
+ max?: any;
140
+ label?: any;
141
+ size?: "large" | "medium" | "small" | undefined;
142
+ }>;
143
+ export declare const AgProgressApi: {
144
+ name: 'AgProgress';
145
+ schema: z.ZodObject<{
146
+ children: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
147
+ componentId: z.ZodString;
148
+ path: z.ZodString;
149
+ }, "strict", z.ZodTypeAny, {
150
+ path: string;
151
+ componentId: string;
152
+ }, {
153
+ path: string;
154
+ componentId: string;
155
+ }>]>>;
156
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
157
+ '@path': z.ZodOptional<z.ZodString>;
158
+ path: z.ZodOptional<z.ZodString>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ path?: string | undefined;
161
+ '@path'?: string | undefined;
162
+ }, {
163
+ path?: string | undefined;
164
+ '@path'?: string | undefined;
165
+ }>, {
166
+ path?: string | undefined;
167
+ '@path'?: string | undefined;
168
+ }, {
169
+ path?: string | undefined;
170
+ '@path'?: string | undefined;
171
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
172
+ '@call': z.ZodOptional<z.ZodString>;
173
+ call: z.ZodOptional<z.ZodString>;
174
+ catalogId: z.ZodOptional<z.ZodString>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ call?: string | undefined;
177
+ '@call'?: string | undefined;
178
+ catalogId?: string | undefined;
179
+ }, {
180
+ call?: string | undefined;
181
+ '@call'?: string | undefined;
182
+ catalogId?: string | undefined;
183
+ }>, {
184
+ call?: string | undefined;
185
+ '@call'?: string | undefined;
186
+ catalogId?: string | undefined;
187
+ }, {
188
+ call?: string | undefined;
189
+ '@call'?: string | undefined;
190
+ catalogId?: string | undefined;
191
+ }>, z.ZodAny>>]>>;
192
+ max: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
193
+ '@path': z.ZodOptional<z.ZodString>;
194
+ path: z.ZodOptional<z.ZodString>;
195
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
205
+ path?: string | undefined;
206
+ '@path'?: string | undefined;
207
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
208
+ '@call': z.ZodOptional<z.ZodString>;
209
+ call: z.ZodOptional<z.ZodString>;
210
+ catalogId: z.ZodOptional<z.ZodString>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ call?: string | undefined;
213
+ '@call'?: string | undefined;
214
+ catalogId?: string | undefined;
215
+ }, {
216
+ call?: string | undefined;
217
+ '@call'?: string | undefined;
218
+ catalogId?: string | undefined;
219
+ }>, {
220
+ call?: string | undefined;
221
+ '@call'?: string | undefined;
222
+ catalogId?: string | undefined;
223
+ }, {
224
+ call?: string | undefined;
225
+ '@call'?: string | undefined;
226
+ catalogId?: string | undefined;
227
+ }>, z.ZodAny>>]>>;
228
+ label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
229
+ '@path': z.ZodOptional<z.ZodString>;
230
+ path: z.ZodOptional<z.ZodString>;
231
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
241
+ path?: string | undefined;
242
+ '@path'?: string | undefined;
243
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
244
+ '@call': z.ZodOptional<z.ZodString>;
245
+ call: z.ZodOptional<z.ZodString>;
246
+ catalogId: z.ZodOptional<z.ZodString>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ call?: string | undefined;
249
+ '@call'?: string | undefined;
250
+ catalogId?: string | undefined;
251
+ }, {
252
+ call?: string | undefined;
253
+ '@call'?: string | undefined;
254
+ catalogId?: string | undefined;
255
+ }>, {
256
+ call?: string | undefined;
257
+ '@call'?: string | undefined;
258
+ catalogId?: string | undefined;
259
+ }, {
260
+ call?: string | undefined;
261
+ '@call'?: string | undefined;
262
+ catalogId?: string | undefined;
263
+ }>, z.ZodAny>>]>>;
264
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
265
+ }, "strict", z.ZodTypeAny, {
266
+ children?: string[] | {
267
+ path: string;
268
+ componentId: string;
269
+ } | undefined;
270
+ value?: any;
271
+ max?: any;
272
+ label?: any;
273
+ size?: "large" | "medium" | "small" | undefined;
274
+ }, {
275
+ children?: string[] | {
276
+ path: string;
277
+ componentId: string;
278
+ } | undefined;
279
+ value?: any;
280
+ max?: any;
281
+ label?: any;
282
+ size?: "large" | "medium" | "small" | undefined;
283
+ }>;
284
+ };
285
+ export declare class AgA2uiProgressElement extends A2uiLitElement<typeof AgProgressApi> {
286
+ static readonly tagName = "ag-a2ui-progress";
287
+ createRenderRoot(): this;
288
+ render(): import("lit-html").TemplateResult<1>;
289
+ }
290
+ export declare const AgProgress: {
291
+ name: 'AgProgress';
292
+ schema: z.ZodObject<{
293
+ children: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
294
+ componentId: z.ZodString;
295
+ path: z.ZodString;
296
+ }, "strict", z.ZodTypeAny, {
297
+ path: string;
298
+ componentId: string;
299
+ }, {
300
+ path: string;
301
+ componentId: string;
302
+ }>]>>;
303
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
304
+ '@path': z.ZodOptional<z.ZodString>;
305
+ path: z.ZodOptional<z.ZodString>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ path?: string | undefined;
308
+ '@path'?: string | undefined;
309
+ }, {
310
+ path?: string | undefined;
311
+ '@path'?: string | undefined;
312
+ }>, {
313
+ path?: string | undefined;
314
+ '@path'?: string | undefined;
315
+ }, {
316
+ path?: string | undefined;
317
+ '@path'?: string | undefined;
318
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
319
+ '@call': z.ZodOptional<z.ZodString>;
320
+ call: z.ZodOptional<z.ZodString>;
321
+ catalogId: z.ZodOptional<z.ZodString>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ call?: string | undefined;
324
+ '@call'?: string | undefined;
325
+ catalogId?: string | undefined;
326
+ }, {
327
+ call?: string | undefined;
328
+ '@call'?: string | undefined;
329
+ catalogId?: string | undefined;
330
+ }>, {
331
+ call?: string | undefined;
332
+ '@call'?: string | undefined;
333
+ catalogId?: string | undefined;
334
+ }, {
335
+ call?: string | undefined;
336
+ '@call'?: string | undefined;
337
+ catalogId?: string | undefined;
338
+ }>, z.ZodAny>>]>>;
339
+ max: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
340
+ '@path': z.ZodOptional<z.ZodString>;
341
+ path: z.ZodOptional<z.ZodString>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ path?: string | undefined;
344
+ '@path'?: string | undefined;
345
+ }, {
346
+ path?: string | undefined;
347
+ '@path'?: string | undefined;
348
+ }>, {
349
+ path?: string | undefined;
350
+ '@path'?: string | undefined;
351
+ }, {
352
+ path?: string | undefined;
353
+ '@path'?: string | undefined;
354
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
355
+ '@call': z.ZodOptional<z.ZodString>;
356
+ call: z.ZodOptional<z.ZodString>;
357
+ catalogId: z.ZodOptional<z.ZodString>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ call?: string | undefined;
360
+ '@call'?: string | undefined;
361
+ catalogId?: string | undefined;
362
+ }, {
363
+ call?: string | undefined;
364
+ '@call'?: string | undefined;
365
+ catalogId?: string | undefined;
366
+ }>, {
367
+ call?: string | undefined;
368
+ '@call'?: string | undefined;
369
+ catalogId?: string | undefined;
370
+ }, {
371
+ call?: string | undefined;
372
+ '@call'?: string | undefined;
373
+ catalogId?: string | undefined;
374
+ }>, z.ZodAny>>]>>;
375
+ label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
376
+ '@path': z.ZodOptional<z.ZodString>;
377
+ path: z.ZodOptional<z.ZodString>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ path?: string | undefined;
380
+ '@path'?: string | undefined;
381
+ }, {
382
+ path?: string | undefined;
383
+ '@path'?: string | undefined;
384
+ }>, {
385
+ path?: string | undefined;
386
+ '@path'?: string | undefined;
387
+ }, {
388
+ path?: string | undefined;
389
+ '@path'?: string | undefined;
390
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
391
+ '@call': z.ZodOptional<z.ZodString>;
392
+ call: z.ZodOptional<z.ZodString>;
393
+ catalogId: z.ZodOptional<z.ZodString>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ call?: string | undefined;
396
+ '@call'?: string | undefined;
397
+ catalogId?: string | undefined;
398
+ }, {
399
+ call?: string | undefined;
400
+ '@call'?: string | undefined;
401
+ catalogId?: string | undefined;
402
+ }>, {
403
+ call?: string | undefined;
404
+ '@call'?: string | undefined;
405
+ catalogId?: string | undefined;
406
+ }, {
407
+ call?: string | undefined;
408
+ '@call'?: string | undefined;
409
+ catalogId?: string | undefined;
410
+ }>, z.ZodAny>>]>>;
411
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>;
412
+ }, "strict", z.ZodTypeAny, {
413
+ children?: string[] | {
414
+ path: string;
415
+ componentId: string;
416
+ } | undefined;
417
+ value?: any;
418
+ max?: any;
419
+ label?: any;
420
+ size?: "large" | "medium" | "small" | undefined;
421
+ }, {
422
+ children?: string[] | {
423
+ path: string;
424
+ componentId: string;
425
+ } | undefined;
426
+ value?: any;
427
+ max?: any;
428
+ label?: any;
429
+ size?: "large" | "medium" | "small" | undefined;
430
+ }>;
431
+ element: typeof AgA2uiProgressElement;
432
+ tagName: string;
433
+ };
@@ -0,0 +1,39 @@
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, ChildListSchema, DynamicNumberSchema, DynamicStringSchema } from '@a2ui/web_core/v1_0';
6
+ import 'agnosticui-core/progress';
7
+ export const AgProgressSchema = z
8
+ .object({
9
+ children: ChildListSchema.describe('REF:#/$defs/ChildList|Child component IDs rendered inside AgProgress.').optional(),
10
+ value: DynamicNumberSchema.describe('REF:#/$defs/DynamicNumber|Numeric property value.').optional(),
11
+ max: DynamicNumberSchema.describe('REF:#/$defs/DynamicNumber|Numeric property max.').optional(),
12
+ label: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property label.').optional(),
13
+ size: z.enum(['small', 'medium', 'large']).optional(),
14
+ })
15
+ .strict();
16
+ export const AgProgressApi = {
17
+ name: 'AgProgress',
18
+ schema: AgProgressSchema,
19
+ };
20
+ export class AgA2uiProgressElement extends A2uiLitElement {
21
+ static { this.tagName = 'ag-a2ui-progress'; }
22
+ createRenderRoot() {
23
+ return this;
24
+ }
25
+ render() {
26
+ const p = this.controller.props;
27
+ return html `<ag-progress
28
+ .value=${ifDefined(p.value)}
29
+ .max=${ifDefined(p.max)}
30
+ .label=${ifDefined(p.label)}
31
+ .size=${ifDefined(p.size)}
32
+ >${(p.children ?? []).map((c) => this.renderNode(c))}</ag-progress>`;
33
+ }
34
+ }
35
+ export const AgProgress = {
36
+ ...AgProgressApi,
37
+ element: AgA2uiProgressElement,
38
+ tagName: AgA2uiProgressElement.tagName,
39
+ };