@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,69 @@
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, DynamicBooleanSchema, DynamicNumberSchema, DynamicStringSchema } from '@a2ui/web_core/v1_0';
6
+ import 'agnosticui-core/select';
7
+ export const AgSelectSchema = z
8
+ .object({
9
+ size: z.enum(['small', 'large']).optional(),
10
+ value: DynamicStringSchema.describe('REF:#/$defs/DynamicString|Selected option value for AgSelect.').optional(),
11
+ multiple: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property multiple.').optional(),
12
+ disabled: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property disabled.').optional(),
13
+ name: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property name.').optional(),
14
+ multipleSize: DynamicNumberSchema.describe('REF:#/$defs/DynamicNumber|Numeric property multipleSize.').optional(),
15
+ label: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property label.').optional(),
16
+ labelPosition: z.enum(['top', 'bottom', 'end', 'start']).optional(),
17
+ labelHidden: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property labelHidden.').optional(),
18
+ noLabel: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property noLabel.').optional(),
19
+ required: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property required.').optional(),
20
+ invalid: DynamicBooleanSchema.describe('REF:#/$defs/DynamicBoolean|Boolean property invalid.').optional(),
21
+ errorMessage: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property errorMessage.').optional(),
22
+ helpText: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property helpText.').optional(),
23
+ action: ActionSchema.describe('REF:#/$defs/Action|Action dispatched on user interaction.').optional(),
24
+ })
25
+ .strict();
26
+ export const AgSelectApi = {
27
+ name: 'AgSelect',
28
+ schema: AgSelectSchema,
29
+ };
30
+ export class AgA2uiSelectElement extends A2uiLitElement {
31
+ static { this.tagName = 'ag-a2ui-select'; }
32
+ createRenderRoot() {
33
+ return this;
34
+ }
35
+ handleAction() {
36
+ void this.controller.props.action?.();
37
+ }
38
+ handleTwoWay(e) {
39
+ const next = e.detail?.value ?? e.target?.value ?? "";
40
+ this.controller.props.setValue?.(next);
41
+ void this.controller.props.action?.();
42
+ }
43
+ render() {
44
+ const p = this.controller.props;
45
+ return html `<ag-select
46
+ .size=${ifDefined(p.size)}
47
+ .value=${ifDefined(p.value)}
48
+ .multiple=${Boolean(p.multiple)}
49
+ .disabled=${Boolean(p.disabled)}
50
+ .name=${ifDefined(p.name)}
51
+ .multipleSize=${ifDefined(p.multipleSize)}
52
+ .label=${ifDefined(p.label)}
53
+ .labelPosition=${ifDefined(p.labelPosition)}
54
+ .labelHidden=${Boolean(p.labelHidden)}
55
+ .noLabel=${Boolean(p.noLabel)}
56
+ .required=${Boolean(p.required)}
57
+ .invalid=${Boolean(p.invalid)}
58
+ .errorMessage=${ifDefined(p.errorMessage)}
59
+ .helpText=${ifDefined(p.helpText)}
60
+ @click=${this.handleAction}
61
+ @change=${this.handleTwoWay}
62
+ ></ag-select>`;
63
+ }
64
+ }
65
+ export const AgSelect = {
66
+ ...AgSelectApi,
67
+ element: AgA2uiSelectElement,
68
+ tagName: AgA2uiSelectElement.tagName,
69
+ };
@@ -0,0 +1,151 @@
1
+ import { z } from 'zod';
2
+ import { A2uiLitElement } from '@a2ui/web_core/v1_0';
3
+ import 'agnosticui-core/spinner';
4
+ export declare const AgSpinnerSchema: z.ZodObject<{
5
+ size: z.ZodOptional<z.ZodEnum<["default", "small", "large", "xlarge"]>>;
6
+ ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
7
+ '@path': z.ZodOptional<z.ZodString>;
8
+ path: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ path?: string | undefined;
11
+ '@path'?: string | undefined;
12
+ }, {
13
+ path?: string | undefined;
14
+ '@path'?: string | undefined;
15
+ }>, {
16
+ path?: string | undefined;
17
+ '@path'?: string | undefined;
18
+ }, {
19
+ path?: string | undefined;
20
+ '@path'?: string | undefined;
21
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
22
+ '@call': z.ZodOptional<z.ZodString>;
23
+ call: z.ZodOptional<z.ZodString>;
24
+ catalogId: z.ZodOptional<z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ call?: string | undefined;
27
+ '@call'?: string | undefined;
28
+ catalogId?: string | undefined;
29
+ }, {
30
+ call?: string | undefined;
31
+ '@call'?: string | undefined;
32
+ catalogId?: string | undefined;
33
+ }>, {
34
+ call?: string | undefined;
35
+ '@call'?: string | undefined;
36
+ catalogId?: string | undefined;
37
+ }, {
38
+ call?: string | undefined;
39
+ '@call'?: string | undefined;
40
+ catalogId?: string | undefined;
41
+ }>, z.ZodAny>>]>>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ size?: "default" | "large" | "small" | "xlarge" | undefined;
44
+ ariaLabel?: any;
45
+ }, {
46
+ size?: "default" | "large" | "small" | "xlarge" | undefined;
47
+ ariaLabel?: any;
48
+ }>;
49
+ export declare const AgSpinnerApi: {
50
+ name: 'AgSpinner';
51
+ schema: z.ZodObject<{
52
+ size: z.ZodOptional<z.ZodEnum<["default", "small", "large", "xlarge"]>>;
53
+ ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
54
+ '@path': z.ZodOptional<z.ZodString>;
55
+ path: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ path?: string | undefined;
58
+ '@path'?: string | undefined;
59
+ }, {
60
+ path?: string | undefined;
61
+ '@path'?: string | undefined;
62
+ }>, {
63
+ path?: string | undefined;
64
+ '@path'?: string | undefined;
65
+ }, {
66
+ path?: string | undefined;
67
+ '@path'?: string | undefined;
68
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
69
+ '@call': z.ZodOptional<z.ZodString>;
70
+ call: z.ZodOptional<z.ZodString>;
71
+ catalogId: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ call?: string | undefined;
74
+ '@call'?: string | undefined;
75
+ catalogId?: string | undefined;
76
+ }, {
77
+ call?: string | undefined;
78
+ '@call'?: string | undefined;
79
+ catalogId?: string | undefined;
80
+ }>, {
81
+ call?: string | undefined;
82
+ '@call'?: string | undefined;
83
+ catalogId?: string | undefined;
84
+ }, {
85
+ call?: string | undefined;
86
+ '@call'?: string | undefined;
87
+ catalogId?: string | undefined;
88
+ }>, z.ZodAny>>]>>;
89
+ }, "strict", z.ZodTypeAny, {
90
+ size?: "default" | "large" | "small" | "xlarge" | undefined;
91
+ ariaLabel?: any;
92
+ }, {
93
+ size?: "default" | "large" | "small" | "xlarge" | undefined;
94
+ ariaLabel?: any;
95
+ }>;
96
+ };
97
+ export declare class AgA2uiSpinnerElement extends A2uiLitElement<typeof AgSpinnerApi> {
98
+ static readonly tagName = "ag-a2ui-spinner";
99
+ createRenderRoot(): this;
100
+ render(): import("lit-html").TemplateResult<1>;
101
+ }
102
+ export declare const AgSpinner: {
103
+ name: 'AgSpinner';
104
+ schema: z.ZodObject<{
105
+ size: z.ZodOptional<z.ZodEnum<["default", "small", "large", "xlarge"]>>;
106
+ ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
107
+ '@path': z.ZodOptional<z.ZodString>;
108
+ path: z.ZodOptional<z.ZodString>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ path?: string | undefined;
111
+ '@path'?: string | undefined;
112
+ }, {
113
+ path?: string | undefined;
114
+ '@path'?: string | undefined;
115
+ }>, {
116
+ path?: string | undefined;
117
+ '@path'?: string | undefined;
118
+ }, {
119
+ path?: string | undefined;
120
+ '@path'?: string | undefined;
121
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
122
+ '@call': z.ZodOptional<z.ZodString>;
123
+ call: z.ZodOptional<z.ZodString>;
124
+ catalogId: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ call?: string | undefined;
127
+ '@call'?: string | undefined;
128
+ catalogId?: string | undefined;
129
+ }, {
130
+ call?: string | undefined;
131
+ '@call'?: string | undefined;
132
+ catalogId?: string | undefined;
133
+ }>, {
134
+ call?: string | undefined;
135
+ '@call'?: string | undefined;
136
+ catalogId?: string | undefined;
137
+ }, {
138
+ call?: string | undefined;
139
+ '@call'?: string | undefined;
140
+ catalogId?: string | undefined;
141
+ }>, z.ZodAny>>]>>;
142
+ }, "strict", z.ZodTypeAny, {
143
+ size?: "default" | "large" | "small" | "xlarge" | undefined;
144
+ ariaLabel?: any;
145
+ }, {
146
+ size?: "default" | "large" | "small" | "xlarge" | undefined;
147
+ ariaLabel?: any;
148
+ }>;
149
+ element: typeof AgA2uiSpinnerElement;
150
+ tagName: string;
151
+ };
@@ -0,0 +1,34 @@
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/spinner';
7
+ export const AgSpinnerSchema = z
8
+ .object({
9
+ size: z.enum(['default', 'small', 'large', 'xlarge']).optional(),
10
+ ariaLabel: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property ariaLabel.').optional(),
11
+ })
12
+ .strict();
13
+ export const AgSpinnerApi = {
14
+ name: 'AgSpinner',
15
+ schema: AgSpinnerSchema,
16
+ };
17
+ export class AgA2uiSpinnerElement extends A2uiLitElement {
18
+ static { this.tagName = 'ag-a2ui-spinner'; }
19
+ createRenderRoot() {
20
+ return this;
21
+ }
22
+ render() {
23
+ const p = this.controller.props;
24
+ return html `<ag-spinner
25
+ .size=${ifDefined(p.size)}
26
+ .ariaLabel=${ifDefined(p.ariaLabel)}
27
+ ></ag-spinner>`;
28
+ }
29
+ }
30
+ export const AgSpinner = {
31
+ ...AgSpinnerApi,
32
+ element: AgA2uiSpinnerElement,
33
+ tagName: AgA2uiSpinnerElement.tagName,
34
+ };
@@ -0,0 +1,328 @@
1
+ import { z } from 'zod';
2
+ import { A2uiLitElement } from '@a2ui/web_core/v1_0';
3
+ import 'agnosticui-core/tabs';
4
+ export declare const AgTabsSchema: 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
+ activation: z.ZodOptional<z.ZodEnum<["manual", "automatic"]>>;
16
+ activeTab: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
17
+ '@path': z.ZodOptional<z.ZodString>;
18
+ path: z.ZodOptional<z.ZodString>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ path?: string | undefined;
21
+ '@path'?: string | undefined;
22
+ }, {
23
+ path?: string | undefined;
24
+ '@path'?: string | undefined;
25
+ }>, {
26
+ path?: string | undefined;
27
+ '@path'?: string | undefined;
28
+ }, {
29
+ path?: string | undefined;
30
+ '@path'?: string | undefined;
31
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
32
+ '@call': z.ZodOptional<z.ZodString>;
33
+ call: z.ZodOptional<z.ZodString>;
34
+ catalogId: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ call?: string | undefined;
37
+ '@call'?: string | undefined;
38
+ catalogId?: string | undefined;
39
+ }, {
40
+ call?: string | undefined;
41
+ '@call'?: string | undefined;
42
+ catalogId?: string | undefined;
43
+ }>, {
44
+ call?: string | undefined;
45
+ '@call'?: string | undefined;
46
+ catalogId?: string | undefined;
47
+ }, {
48
+ call?: string | undefined;
49
+ '@call'?: string | undefined;
50
+ catalogId?: string | undefined;
51
+ }>, z.ZodAny>>]>>;
52
+ orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
53
+ ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
54
+ '@path': z.ZodOptional<z.ZodString>;
55
+ path: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ path?: string | undefined;
58
+ '@path'?: string | undefined;
59
+ }, {
60
+ path?: string | undefined;
61
+ '@path'?: string | undefined;
62
+ }>, {
63
+ path?: string | undefined;
64
+ '@path'?: string | undefined;
65
+ }, {
66
+ path?: string | undefined;
67
+ '@path'?: string | undefined;
68
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
69
+ '@call': z.ZodOptional<z.ZodString>;
70
+ call: z.ZodOptional<z.ZodString>;
71
+ catalogId: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ call?: string | undefined;
74
+ '@call'?: string | undefined;
75
+ catalogId?: string | undefined;
76
+ }, {
77
+ call?: string | undefined;
78
+ '@call'?: string | undefined;
79
+ catalogId?: string | undefined;
80
+ }>, {
81
+ call?: string | undefined;
82
+ '@call'?: string | undefined;
83
+ catalogId?: string | undefined;
84
+ }, {
85
+ call?: string | undefined;
86
+ '@call'?: string | undefined;
87
+ catalogId?: string | undefined;
88
+ }>, z.ZodAny>>]>>;
89
+ }, "strict", z.ZodTypeAny, {
90
+ children?: string[] | {
91
+ path: string;
92
+ componentId: string;
93
+ } | undefined;
94
+ activation?: "automatic" | "manual" | undefined;
95
+ activeTab?: any;
96
+ orientation?: "horizontal" | "vertical" | undefined;
97
+ ariaLabel?: any;
98
+ }, {
99
+ children?: string[] | {
100
+ path: string;
101
+ componentId: string;
102
+ } | undefined;
103
+ activation?: "automatic" | "manual" | undefined;
104
+ activeTab?: any;
105
+ orientation?: "horizontal" | "vertical" | undefined;
106
+ ariaLabel?: any;
107
+ }>;
108
+ export declare const AgTabsApi: {
109
+ name: 'AgTabs';
110
+ schema: z.ZodObject<{
111
+ children: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
112
+ componentId: z.ZodString;
113
+ path: z.ZodString;
114
+ }, "strict", z.ZodTypeAny, {
115
+ path: string;
116
+ componentId: string;
117
+ }, {
118
+ path: string;
119
+ componentId: string;
120
+ }>]>>;
121
+ activation: z.ZodOptional<z.ZodEnum<["manual", "automatic"]>>;
122
+ activeTab: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
123
+ '@path': z.ZodOptional<z.ZodString>;
124
+ path: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ path?: string | undefined;
127
+ '@path'?: string | undefined;
128
+ }, {
129
+ path?: string | undefined;
130
+ '@path'?: string | undefined;
131
+ }>, {
132
+ path?: string | undefined;
133
+ '@path'?: string | undefined;
134
+ }, {
135
+ path?: string | undefined;
136
+ '@path'?: string | undefined;
137
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
138
+ '@call': z.ZodOptional<z.ZodString>;
139
+ call: z.ZodOptional<z.ZodString>;
140
+ catalogId: z.ZodOptional<z.ZodString>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ call?: string | undefined;
143
+ '@call'?: string | undefined;
144
+ catalogId?: string | undefined;
145
+ }, {
146
+ call?: string | undefined;
147
+ '@call'?: string | undefined;
148
+ catalogId?: string | undefined;
149
+ }>, {
150
+ call?: string | undefined;
151
+ '@call'?: string | undefined;
152
+ catalogId?: string | undefined;
153
+ }, {
154
+ call?: string | undefined;
155
+ '@call'?: string | undefined;
156
+ catalogId?: string | undefined;
157
+ }>, z.ZodAny>>]>>;
158
+ orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
159
+ ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
160
+ '@path': z.ZodOptional<z.ZodString>;
161
+ path: z.ZodOptional<z.ZodString>;
162
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
172
+ path?: string | undefined;
173
+ '@path'?: string | undefined;
174
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
175
+ '@call': z.ZodOptional<z.ZodString>;
176
+ call: z.ZodOptional<z.ZodString>;
177
+ catalogId: z.ZodOptional<z.ZodString>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ call?: string | undefined;
180
+ '@call'?: string | undefined;
181
+ catalogId?: string | undefined;
182
+ }, {
183
+ call?: string | undefined;
184
+ '@call'?: string | undefined;
185
+ catalogId?: string | undefined;
186
+ }>, {
187
+ call?: string | undefined;
188
+ '@call'?: string | undefined;
189
+ catalogId?: string | undefined;
190
+ }, {
191
+ call?: string | undefined;
192
+ '@call'?: string | undefined;
193
+ catalogId?: string | undefined;
194
+ }>, z.ZodAny>>]>>;
195
+ }, "strict", z.ZodTypeAny, {
196
+ children?: string[] | {
197
+ path: string;
198
+ componentId: string;
199
+ } | undefined;
200
+ activation?: "automatic" | "manual" | undefined;
201
+ activeTab?: any;
202
+ orientation?: "horizontal" | "vertical" | undefined;
203
+ ariaLabel?: any;
204
+ }, {
205
+ children?: string[] | {
206
+ path: string;
207
+ componentId: string;
208
+ } | undefined;
209
+ activation?: "automatic" | "manual" | undefined;
210
+ activeTab?: any;
211
+ orientation?: "horizontal" | "vertical" | undefined;
212
+ ariaLabel?: any;
213
+ }>;
214
+ };
215
+ export declare class AgA2uiTabsElement extends A2uiLitElement<typeof AgTabsApi> {
216
+ static readonly tagName = "ag-a2ui-tabs";
217
+ createRenderRoot(): this;
218
+ render(): import("lit-html").TemplateResult<1>;
219
+ }
220
+ export declare const AgTabs: {
221
+ name: 'AgTabs';
222
+ schema: z.ZodObject<{
223
+ children: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
224
+ componentId: z.ZodString;
225
+ path: z.ZodString;
226
+ }, "strict", z.ZodTypeAny, {
227
+ path: string;
228
+ componentId: string;
229
+ }, {
230
+ path: string;
231
+ componentId: string;
232
+ }>]>>;
233
+ activation: z.ZodOptional<z.ZodEnum<["manual", "automatic"]>>;
234
+ activeTab: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodObject<{
235
+ '@path': z.ZodOptional<z.ZodString>;
236
+ path: z.ZodOptional<z.ZodString>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ path?: string | undefined;
239
+ '@path'?: string | undefined;
240
+ }, {
241
+ path?: string | undefined;
242
+ '@path'?: string | undefined;
243
+ }>, {
244
+ path?: string | undefined;
245
+ '@path'?: string | undefined;
246
+ }, {
247
+ path?: string | undefined;
248
+ '@path'?: string | undefined;
249
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
250
+ '@call': z.ZodOptional<z.ZodString>;
251
+ call: z.ZodOptional<z.ZodString>;
252
+ catalogId: z.ZodOptional<z.ZodString>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ call?: string | undefined;
255
+ '@call'?: string | undefined;
256
+ catalogId?: string | undefined;
257
+ }, {
258
+ call?: string | undefined;
259
+ '@call'?: string | undefined;
260
+ catalogId?: string | undefined;
261
+ }>, {
262
+ call?: string | undefined;
263
+ '@call'?: string | undefined;
264
+ catalogId?: string | undefined;
265
+ }, {
266
+ call?: string | undefined;
267
+ '@call'?: string | undefined;
268
+ catalogId?: string | undefined;
269
+ }>, z.ZodAny>>]>>;
270
+ orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
271
+ ariaLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
272
+ '@path': z.ZodOptional<z.ZodString>;
273
+ path: z.ZodOptional<z.ZodString>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ path?: string | undefined;
276
+ '@path'?: string | undefined;
277
+ }, {
278
+ path?: string | undefined;
279
+ '@path'?: string | undefined;
280
+ }>, {
281
+ path?: string | undefined;
282
+ '@path'?: string | undefined;
283
+ }, {
284
+ path?: string | undefined;
285
+ '@path'?: string | undefined;
286
+ }>, z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
287
+ '@call': z.ZodOptional<z.ZodString>;
288
+ call: z.ZodOptional<z.ZodString>;
289
+ catalogId: z.ZodOptional<z.ZodString>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ call?: string | undefined;
292
+ '@call'?: string | undefined;
293
+ catalogId?: string | undefined;
294
+ }, {
295
+ call?: string | undefined;
296
+ '@call'?: string | undefined;
297
+ catalogId?: string | undefined;
298
+ }>, {
299
+ call?: string | undefined;
300
+ '@call'?: string | undefined;
301
+ catalogId?: string | undefined;
302
+ }, {
303
+ call?: string | undefined;
304
+ '@call'?: string | undefined;
305
+ catalogId?: string | undefined;
306
+ }>, z.ZodAny>>]>>;
307
+ }, "strict", z.ZodTypeAny, {
308
+ children?: string[] | {
309
+ path: string;
310
+ componentId: string;
311
+ } | undefined;
312
+ activation?: "automatic" | "manual" | undefined;
313
+ activeTab?: any;
314
+ orientation?: "horizontal" | "vertical" | undefined;
315
+ ariaLabel?: any;
316
+ }, {
317
+ children?: string[] | {
318
+ path: string;
319
+ componentId: string;
320
+ } | undefined;
321
+ activation?: "automatic" | "manual" | undefined;
322
+ activeTab?: any;
323
+ orientation?: "horizontal" | "vertical" | undefined;
324
+ ariaLabel?: any;
325
+ }>;
326
+ element: typeof AgA2uiTabsElement;
327
+ tagName: string;
328
+ };
@@ -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/tabs';
7
+ export const AgTabsSchema = z
8
+ .object({
9
+ children: ChildListSchema.describe('REF:#/$defs/ChildList|Child component IDs rendered inside AgTabs.').optional(),
10
+ activation: z.enum(['manual', 'automatic']).optional(),
11
+ activeTab: DynamicNumberSchema.describe('REF:#/$defs/DynamicNumber|Numeric property activeTab.').optional(),
12
+ orientation: z.enum(['vertical', 'horizontal']).optional(),
13
+ ariaLabel: DynamicStringSchema.describe('REF:#/$defs/DynamicString|String property ariaLabel.').optional(),
14
+ })
15
+ .strict();
16
+ export const AgTabsApi = {
17
+ name: 'AgTabs',
18
+ schema: AgTabsSchema,
19
+ };
20
+ export class AgA2uiTabsElement extends A2uiLitElement {
21
+ static { this.tagName = 'ag-a2ui-tabs'; }
22
+ createRenderRoot() {
23
+ return this;
24
+ }
25
+ render() {
26
+ const p = this.controller.props;
27
+ return html `<ag-tabs
28
+ .activation=${ifDefined(p.activation)}
29
+ .activeTab=${ifDefined(p.activeTab)}
30
+ .orientation=${ifDefined(p.orientation)}
31
+ .ariaLabel=${ifDefined(p.ariaLabel)}
32
+ >${(p.children ?? []).map((c) => this.renderNode(c))}</ag-tabs>`;
33
+ }
34
+ }
35
+ export const AgTabs = {
36
+ ...AgTabsApi,
37
+ element: AgA2uiTabsElement,
38
+ tagName: AgA2uiTabsElement.tagName,
39
+ };