@a2ui/angular 0.8.2 → 0.9.0-alpha.0
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/LICENSE +203 -0
- package/README.md +111 -3
- package/fesm2022/a2ui-angular-src-v0_8.mjs +1797 -0
- package/fesm2022/a2ui-angular-src-v0_8.mjs.map +1 -0
- package/fesm2022/a2ui-angular-src-v0_9.mjs +2330 -0
- package/fesm2022/a2ui-angular-src-v0_9.mjs.map +1 -0
- package/fesm2022/a2ui-angular-v0_8.mjs +1797 -0
- package/fesm2022/a2ui-angular-v0_8.mjs.map +1 -0
- package/fesm2022/a2ui-angular-v0_9.mjs +2330 -0
- package/fesm2022/a2ui-angular-v0_9.mjs.map +1 -0
- package/fesm2022/a2ui-angular.mjs +1558 -616
- package/fesm2022/a2ui-angular.mjs.map +1 -1
- package/package.json +51 -7
- package/types/a2ui-angular-src-v0_8.d.ts +400 -0
- package/types/a2ui-angular-src-v0_9.d.ts +813 -0
- package/types/a2ui-angular-v0_8.d.ts +400 -0
- package/types/a2ui-angular-v0_9.d.ts +813 -0
- package/types/a2ui-angular.d.ts +362 -35
- package/fesm2022/a2ui-angular-audio-DoZb9mn_.mjs +0 -48
- package/fesm2022/a2ui-angular-audio-DoZb9mn_.mjs.map +0 -1
- package/fesm2022/a2ui-angular-button-CvH0kAtN.mjs +0 -61
- package/fesm2022/a2ui-angular-button-CvH0kAtN.mjs.map +0 -1
- package/fesm2022/a2ui-angular-card-Ix6OIdUv.mjs +0 -48
- package/fesm2022/a2ui-angular-card-Ix6OIdUv.mjs.map +0 -1
- package/fesm2022/a2ui-angular-checkbox-BN4EF2Ci.mjs +0 -78
- package/fesm2022/a2ui-angular-checkbox-BN4EF2Ci.mjs.map +0 -1
- package/fesm2022/a2ui-angular-datetime-input-dmZAjvrF.mjs +0 -120
- package/fesm2022/a2ui-angular-datetime-input-dmZAjvrF.mjs.map +0 -1
- package/fesm2022/a2ui-angular-divider-BizPl3qL.mjs +0 -30
- package/fesm2022/a2ui-angular-divider-BizPl3qL.mjs.map +0 -1
- package/fesm2022/a2ui-angular-icon-BE9Hj9V6.mjs +0 -48
- package/fesm2022/a2ui-angular-icon-BE9Hj9V6.mjs.map +0 -1
- package/fesm2022/a2ui-angular-image-BWzAw0rh.mjs +0 -54
- package/fesm2022/a2ui-angular-image-BWzAw0rh.mjs.map +0 -1
- package/fesm2022/a2ui-angular-list-nEeT59V3.mjs +0 -45
- package/fesm2022/a2ui-angular-list-nEeT59V3.mjs.map +0 -1
- package/fesm2022/a2ui-angular-modal-mr9LmczA.mjs +0 -108
- package/fesm2022/a2ui-angular-modal-mr9LmczA.mjs.map +0 -1
- package/fesm2022/a2ui-angular-multiple-choice-Bry7X74i.mjs +0 -78
- package/fesm2022/a2ui-angular-multiple-choice-Bry7X74i.mjs.map +0 -1
- package/fesm2022/a2ui-angular-slider-BgseUbN2.mjs +0 -79
- package/fesm2022/a2ui-angular-slider-BgseUbN2.mjs.map +0 -1
- package/fesm2022/a2ui-angular-tabs-q5Mn9vgq.mjs +0 -87
- package/fesm2022/a2ui-angular-tabs-q5Mn9vgq.mjs.map +0 -1
- package/fesm2022/a2ui-angular-text-field-Deokh07j.mjs +0 -85
- package/fesm2022/a2ui-angular-text-field-Deokh07j.mjs.map +0 -1
- package/fesm2022/a2ui-angular-video-DuFTfN0B.mjs +0 -48
- package/fesm2022/a2ui-angular-video-DuFTfN0B.mjs.map +0 -1
|
@@ -0,0 +1,813 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Type, InjectionToken, OnDestroy, OnInit, Signal, DestroyRef, NgZone } from '@angular/core';
|
|
3
|
+
import { Catalog, ComponentApi, A2uiClientAction, A2uiMessage, SurfaceGroupModel, ComponentContext, Signal as Signal$1, FunctionImplementation } from '@a2ui/web_core/v0_9';
|
|
4
|
+
export { signal as preactSignal } from '@a2ui/web_core/v0_9';
|
|
5
|
+
export { BASIC_FUNCTIONS } from '@a2ui/web_core/v0_9/basic_catalog';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Copyright 2026 Google LLC
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Extends the generic {@link ComponentApi} to include Angular-specific component metadata.
|
|
25
|
+
*/
|
|
26
|
+
interface AngularComponentImplementation extends ComponentApi {
|
|
27
|
+
/**
|
|
28
|
+
* The Angular component class used to render this component.
|
|
29
|
+
*
|
|
30
|
+
* This class must be an Angular {@link Type} (e.g., a standalone component class)
|
|
31
|
+
* that accepts `props`, `surfaceId`, and `dataContextPath` as inputs.
|
|
32
|
+
*/
|
|
33
|
+
readonly component: Type<any>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A collection of Angular component and function implementations mapped to
|
|
37
|
+
* A2UI protocol types.
|
|
38
|
+
*
|
|
39
|
+
* Catalogs are used by the {@link MessageProcessor} to resolve component
|
|
40
|
+
* definitions and by {@link ComponentHostComponent} to instantiate the
|
|
41
|
+
* correct Angular components.
|
|
42
|
+
*/
|
|
43
|
+
declare class AngularCatalog extends Catalog<AngularComponentImplementation> {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Copyright 2026 Google LLC
|
|
48
|
+
*
|
|
49
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
50
|
+
* you may not use this file except in compliance with the License.
|
|
51
|
+
* You may obtain a copy of the License at
|
|
52
|
+
*
|
|
53
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
54
|
+
*
|
|
55
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
56
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
57
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
58
|
+
* See the License for the specific language governing permissions and
|
|
59
|
+
* limitations under the License.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Configuration for the A2UI renderer.
|
|
64
|
+
*/
|
|
65
|
+
interface RendererConfiguration {
|
|
66
|
+
/** The catalogs containing the available components and functions. */
|
|
67
|
+
catalogs: AngularCatalog[];
|
|
68
|
+
/**
|
|
69
|
+
* Optional handler for actions dispatched from any surface.
|
|
70
|
+
*
|
|
71
|
+
* This callback is invoked whenever a component in any surface triggers an action
|
|
72
|
+
* (e.g., clicking a button with an `onTap` property).
|
|
73
|
+
*/
|
|
74
|
+
actionHandler?: (action: A2uiClientAction) => void;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Injection token for the A2UI renderer configuration.
|
|
78
|
+
*/
|
|
79
|
+
declare const A2UI_RENDERER_CONFIG: InjectionToken<RendererConfiguration>;
|
|
80
|
+
/**
|
|
81
|
+
* Manages A2UI v0.9 rendering sessions by bridging the MessageProcessor to Angular.
|
|
82
|
+
*
|
|
83
|
+
* This service is the central entry point for the A2UI renderer. It maintains a
|
|
84
|
+
* {@link MessageProcessor} that turns A2UI protocol messages into a reactive
|
|
85
|
+
* {@link SurfaceGroupModel}.
|
|
86
|
+
*/
|
|
87
|
+
declare class A2uiRendererService implements OnDestroy {
|
|
88
|
+
private config;
|
|
89
|
+
private _messageProcessor;
|
|
90
|
+
private _catalogs;
|
|
91
|
+
constructor(config: RendererConfiguration);
|
|
92
|
+
/**
|
|
93
|
+
* Processes a list of A2UI messages and updates the internal surface models.
|
|
94
|
+
*
|
|
95
|
+
* This should be called whenever new messages arrive from an agent or orchestrator.
|
|
96
|
+
*
|
|
97
|
+
* @param messages The list of {@link A2uiMessage}s to process.
|
|
98
|
+
*/
|
|
99
|
+
processMessages(messages: A2uiMessage[]): void;
|
|
100
|
+
/**
|
|
101
|
+
* The current surface group model containing all active surfaces.
|
|
102
|
+
*
|
|
103
|
+
* Surfaces can be retrieved from this group using their `surfaceId`.
|
|
104
|
+
*/
|
|
105
|
+
get surfaceGroup(): SurfaceGroupModel<AngularComponentImplementation>;
|
|
106
|
+
ngOnDestroy(): void;
|
|
107
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<A2uiRendererService, never>;
|
|
108
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<A2uiRendererService>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Dynamically renders an A2UI component as defined in the current surface model.
|
|
113
|
+
*
|
|
114
|
+
* This component acts as a bridge between the A2UI surface model and Angular components.
|
|
115
|
+
* It resolves the appropriate component from the catalog based on the component's type,
|
|
116
|
+
* and uses {@link ComponentBinder} to create reactive property bindings.
|
|
117
|
+
*
|
|
118
|
+
* Usually, you'll use the higher-level {@link SurfaceComponent} which automatically
|
|
119
|
+
* sets up a host for the 'root' component.
|
|
120
|
+
*/
|
|
121
|
+
declare class ComponentHostComponent implements OnInit {
|
|
122
|
+
/** The key of the component to render, either an ID string or an object with ID and basePath. Defaults to 'root'. */
|
|
123
|
+
componentKey: _angular_core.InputSignal<string | {
|
|
124
|
+
id: string;
|
|
125
|
+
basePath: string;
|
|
126
|
+
}>;
|
|
127
|
+
/** The unique identifier of the surface this component belongs to. */
|
|
128
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
129
|
+
private rendererService;
|
|
130
|
+
private binder;
|
|
131
|
+
private destroyRef;
|
|
132
|
+
protected componentType: Type<any> | null;
|
|
133
|
+
protected props: any;
|
|
134
|
+
private context?;
|
|
135
|
+
protected resolvedComponentId: string;
|
|
136
|
+
protected resolvedDataContextPath: string;
|
|
137
|
+
ngOnInit(): void;
|
|
138
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComponentHostComponent, never>;
|
|
139
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComponentHostComponent, "a2ui-v09-component-host", never, { "componentKey": { "alias": "componentKey"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* High-level component for rendering an entire A2UI surface.
|
|
144
|
+
*
|
|
145
|
+
* This component handles the boilerplate of setting up a {@link ComponentHostComponent}
|
|
146
|
+
* for the 'root' component of a surface. It is the recommended way to embed an
|
|
147
|
+
* A2UI surface in an Angular application.
|
|
148
|
+
*/
|
|
149
|
+
declare class SurfaceComponent {
|
|
150
|
+
/** The unique identifier of the surface to render. */
|
|
151
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The path within the surface's data model that represents the current state.
|
|
154
|
+
* Defaults to the root ('/').
|
|
155
|
+
*/
|
|
156
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
157
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SurfaceComponent, never>;
|
|
158
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SurfaceComponent, "a2ui-v09-surface", never, { "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Copyright 2026 Google LLC
|
|
163
|
+
*
|
|
164
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
165
|
+
* you may not use this file except in compliance with the License.
|
|
166
|
+
* You may obtain a copy of the License at
|
|
167
|
+
*
|
|
168
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
169
|
+
*
|
|
170
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
171
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
172
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
173
|
+
* See the License for the specific language governing permissions and
|
|
174
|
+
* limitations under the License.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Represents a component property bound to an Angular Signal and update logic.
|
|
179
|
+
*
|
|
180
|
+
* This interface is used by {@link ComponentBinder} to expose properties to
|
|
181
|
+
* Angular components. It contains the current value as a Signal, the raw
|
|
182
|
+
* property definition, and an update function.
|
|
183
|
+
*
|
|
184
|
+
* @template T The type of the property value.
|
|
185
|
+
*/
|
|
186
|
+
interface BoundProperty<T = any> {
|
|
187
|
+
/**
|
|
188
|
+
* The reactive Angular Signal containing the current resolved value.
|
|
189
|
+
*
|
|
190
|
+
* This signal automatically updates whenever the underlying A2UI data
|
|
191
|
+
* model changes.
|
|
192
|
+
*/
|
|
193
|
+
readonly value: Signal<T>;
|
|
194
|
+
/**
|
|
195
|
+
* The raw value from the A2UI ComponentModel.
|
|
196
|
+
*
|
|
197
|
+
* This may be a literal value or a data binding path object.
|
|
198
|
+
*/
|
|
199
|
+
readonly raw: any;
|
|
200
|
+
/**
|
|
201
|
+
* Callback to update the value in the A2UI DataContext.
|
|
202
|
+
*
|
|
203
|
+
* If the property is bound to a path in the data model, calling this
|
|
204
|
+
* will update that path. If the property is a literal value, this
|
|
205
|
+
* is typically a no-op.
|
|
206
|
+
*/
|
|
207
|
+
readonly onUpdate: (newValue: T) => void;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Binds A2UI ComponentModel properties to reactive Angular Signals.
|
|
212
|
+
*
|
|
213
|
+
* This service is used by {@link ComponentHostComponent} to resolve data bindings
|
|
214
|
+
* from the A2UI DataContext and expose them as Angular Signals. It ensures that
|
|
215
|
+
* property updates from the A2UI protocol are correctly reflected in Angular
|
|
216
|
+
* components and provides callbacks for updating the data model.
|
|
217
|
+
*/
|
|
218
|
+
declare class ComponentBinder {
|
|
219
|
+
private destroyRef;
|
|
220
|
+
private ngZone;
|
|
221
|
+
/**
|
|
222
|
+
* Binds all properties of a component to an object of Angular Signals.
|
|
223
|
+
*
|
|
224
|
+
* @param context The ComponentContext containing the model and data context.
|
|
225
|
+
* @returns An object where each key corresponds to a component prop and its value is an Angular Signal.
|
|
226
|
+
*/
|
|
227
|
+
bind(context: ComponentContext): Record<string, BoundProperty>;
|
|
228
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComponentBinder, never>;
|
|
229
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ComponentBinder>;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Copyright 2026 Google LLC
|
|
234
|
+
*
|
|
235
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
236
|
+
* you may not use this file except in compliance with the License.
|
|
237
|
+
* You may obtain a copy of the License at
|
|
238
|
+
*
|
|
239
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
240
|
+
*
|
|
241
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
242
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
243
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
244
|
+
* See the License for the specific language governing permissions and
|
|
245
|
+
* limitations under the License.
|
|
246
|
+
*/
|
|
247
|
+
|
|
248
|
+
declare function toAngularSignal<T>(preactSignal: Signal$1<T>, destroyRef: DestroyRef, ngZone?: NgZone): Signal<T>;
|
|
249
|
+
/**
|
|
250
|
+
* Normalizes a data model path by combining a relative path with a base context.
|
|
251
|
+
*
|
|
252
|
+
* This is used to create unique absolute paths for components within a repeating
|
|
253
|
+
* collection or nested structure.
|
|
254
|
+
*
|
|
255
|
+
* @param path The relative or absolute path from the component properties.
|
|
256
|
+
* @param dataContextPath The current base data context path.
|
|
257
|
+
* @param index The index of the child component.
|
|
258
|
+
* @returns A fully normalized absolute path for the indexed child.
|
|
259
|
+
*/
|
|
260
|
+
declare function getNormalizedPath(path: string, dataContextPath: string, index: number): string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* The set of default Angular implementations for each component in the basic catalog.
|
|
264
|
+
*/
|
|
265
|
+
declare const DEFAULT_COMPONENT_IMPLEMENTATIONS: Record<string, AngularComponentImplementation>;
|
|
266
|
+
/**
|
|
267
|
+
* Interface for specifying overrides and configuration for the basic catalog.
|
|
268
|
+
*/
|
|
269
|
+
interface BasicCatalogOptions {
|
|
270
|
+
/**
|
|
271
|
+
* An optional override for the catalog's unique identifier.
|
|
272
|
+
*/
|
|
273
|
+
id?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Optional overrides for individual components in the catalog.
|
|
276
|
+
*/
|
|
277
|
+
components?: Partial<{
|
|
278
|
+
[K in keyof typeof DEFAULT_COMPONENT_IMPLEMENTATIONS]: AngularComponentImplementation;
|
|
279
|
+
}>;
|
|
280
|
+
/**
|
|
281
|
+
* Optional additional components to include in the catalog beyond
|
|
282
|
+
* the standard basic catalog components.
|
|
283
|
+
*/
|
|
284
|
+
extraComponents?: AngularComponentImplementation[];
|
|
285
|
+
/**
|
|
286
|
+
* An optional set of function implementations to use instead of the defaults.
|
|
287
|
+
*/
|
|
288
|
+
functions?: FunctionImplementation[];
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* The set of Angular UI components provided by the basic catalog.
|
|
292
|
+
*/
|
|
293
|
+
declare const BASIC_COMPONENTS: AngularComponentImplementation[];
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* A base class for basic catalogs, providing extensibility for non-DI use cases.
|
|
297
|
+
*/
|
|
298
|
+
declare class BasicCatalogBase extends AngularCatalog {
|
|
299
|
+
constructor(options?: BasicCatalogOptions);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* A basic catalog of components and functions for v0.9 verification.
|
|
303
|
+
*
|
|
304
|
+
* This catalog includes a wide range of UI components (Text, Button, Row, etc.)
|
|
305
|
+
* and utility functions (capitalize, formatString) defined in the A2UI v0.9
|
|
306
|
+
* basic catalog specification.
|
|
307
|
+
*/
|
|
308
|
+
declare class BasicCatalog extends BasicCatalogBase {
|
|
309
|
+
constructor();
|
|
310
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BasicCatalog, never>;
|
|
311
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<BasicCatalog>;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Angular implementation of the A2UI Text component (v0.9).
|
|
316
|
+
*
|
|
317
|
+
* Renders text with support for simple Markdown.
|
|
318
|
+
*/
|
|
319
|
+
declare class TextComponent {
|
|
320
|
+
/**
|
|
321
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
322
|
+
*
|
|
323
|
+
* Expected properties:
|
|
324
|
+
* - `text`: The string content to display.
|
|
325
|
+
* - `variant`: A hint for the base text style ('h1', 'h2', 'h3', 'h4', 'h5', 'caption', 'body').
|
|
326
|
+
*/
|
|
327
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
328
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
329
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
330
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
331
|
+
private markdownRenderer;
|
|
332
|
+
variant: _angular_core.Signal<any>;
|
|
333
|
+
text: _angular_core.Signal<any>;
|
|
334
|
+
resolvedText: _angular_core.WritableSignal<string>;
|
|
335
|
+
private renderRequestId;
|
|
336
|
+
constructor();
|
|
337
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextComponent, never>;
|
|
338
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextComponent, "a2ui-v09-text", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Angular implementation of the A2UI Row component (v0.9).
|
|
343
|
+
*
|
|
344
|
+
* Arranges child components in a horizontal flex layout. Supports both static
|
|
345
|
+
* lists of children and repeating templates bound to a data collection.
|
|
346
|
+
*/
|
|
347
|
+
declare class RowComponent {
|
|
348
|
+
/**
|
|
349
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
350
|
+
*
|
|
351
|
+
* Expected properties:
|
|
352
|
+
* - `children`: A list of component IDs OR a repeating collection definition.
|
|
353
|
+
* - `justify`: Flexbox justify-content value (e.g., 'flex-start', 'center').
|
|
354
|
+
* - `align`: Flexbox align-items value (e.g., 'flex-start', 'center').
|
|
355
|
+
*/
|
|
356
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
357
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
358
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
359
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
360
|
+
protected justify: _angular_core.Signal<any>;
|
|
361
|
+
protected align: _angular_core.Signal<any>;
|
|
362
|
+
protected children: _angular_core.Signal<any[]>;
|
|
363
|
+
protected isRepeating: _angular_core.Signal<boolean>;
|
|
364
|
+
protected templateId: _angular_core.Signal<any>;
|
|
365
|
+
protected normalizedChildren: _angular_core.Signal<{
|
|
366
|
+
id: string;
|
|
367
|
+
basePath: string;
|
|
368
|
+
}[]>;
|
|
369
|
+
protected getNormalizedPath(index: number): string;
|
|
370
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RowComponent, never>;
|
|
371
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RowComponent, "a2ui-v09-row", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Angular implementation of the A2UI Column component (v0.9).
|
|
376
|
+
*
|
|
377
|
+
* Arranges child components in a vertical flex layout. Supports both static
|
|
378
|
+
* lists of children and repeating templates bound to a data collection.
|
|
379
|
+
*/
|
|
380
|
+
declare class ColumnComponent {
|
|
381
|
+
/**
|
|
382
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
383
|
+
*
|
|
384
|
+
* Expected properties:
|
|
385
|
+
* - `children`: A list of component IDs OR a repeating collection definition.
|
|
386
|
+
* - `justify`: Flexbox justify-content value (e.g., 'flex-start', 'center').
|
|
387
|
+
* - `align`: Flexbox align-items value (e.g., 'flex-start', 'center').
|
|
388
|
+
*/
|
|
389
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
390
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
391
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
392
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
393
|
+
protected justify: _angular_core.Signal<any>;
|
|
394
|
+
protected align: _angular_core.Signal<any>;
|
|
395
|
+
protected children: _angular_core.Signal<any[]>;
|
|
396
|
+
protected isRepeating: _angular_core.Signal<boolean>;
|
|
397
|
+
protected templateId: _angular_core.Signal<any>;
|
|
398
|
+
protected normalizedChildren: _angular_core.Signal<{
|
|
399
|
+
id: string;
|
|
400
|
+
basePath: string;
|
|
401
|
+
}[]>;
|
|
402
|
+
protected getNormalizedPath(index: number): string;
|
|
403
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnComponent, never>;
|
|
404
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColumnComponent, "a2ui-v09-column", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Angular implementation of the A2UI Button component (v0.9).
|
|
409
|
+
*
|
|
410
|
+
* Renders a clickable button with a single child component (usually Text).
|
|
411
|
+
* Dispatches an action when clicked if an `action` property is provided.
|
|
412
|
+
*/
|
|
413
|
+
declare class ButtonComponent {
|
|
414
|
+
/**
|
|
415
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
416
|
+
*
|
|
417
|
+
* Expected properties:
|
|
418
|
+
* - `child`: The ID of the component to render inside the button.
|
|
419
|
+
* - `variant`: Button style variant ('default', 'primary', 'borderless').
|
|
420
|
+
* - `action`: The A2UI action to dispatch on click.
|
|
421
|
+
* - `checks`: Optional validation rules.
|
|
422
|
+
*/
|
|
423
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
424
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
425
|
+
componentId: _angular_core.InputSignal<string>;
|
|
426
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
427
|
+
private rendererService;
|
|
428
|
+
variant: _angular_core.Signal<any>;
|
|
429
|
+
child: _angular_core.Signal<any>;
|
|
430
|
+
action: _angular_core.Signal<any>;
|
|
431
|
+
handleClick(): void;
|
|
432
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
433
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "a2ui-v09-button", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": true; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Angular implementation of the A2UI TextField component (v0.9).
|
|
438
|
+
*
|
|
439
|
+
* Renders a text input field with an optional label and placeholder.
|
|
440
|
+
* Updates the bound data model property on every input change.
|
|
441
|
+
*/
|
|
442
|
+
declare class TextFieldComponent {
|
|
443
|
+
/**
|
|
444
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
445
|
+
*
|
|
446
|
+
* Expected properties:
|
|
447
|
+
* - `value`: The current string value of the input.
|
|
448
|
+
* - `label`: Optional label text to display above the input.
|
|
449
|
+
* - `placeholder`: Hint text shown when the input is empty.
|
|
450
|
+
* - `variant`: Input type variant ('default', 'obscured' (password), 'number').
|
|
451
|
+
* - `checks`: Optional validation rules.
|
|
452
|
+
*/
|
|
453
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
454
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
455
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
456
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
457
|
+
label: _angular_core.Signal<any>;
|
|
458
|
+
value: _angular_core.Signal<any>;
|
|
459
|
+
placeholder: _angular_core.Signal<any>;
|
|
460
|
+
variant: _angular_core.Signal<any>;
|
|
461
|
+
inputType: _angular_core.Signal<"text" | "password" | "number">;
|
|
462
|
+
handleInput(event: Event): void;
|
|
463
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextFieldComponent, never>;
|
|
464
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextFieldComponent, "a2ui-v09-text-field", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Angular implementation of the A2UI Image component (v0.9).
|
|
469
|
+
*
|
|
470
|
+
* Renders an image with configurable fit and shape variants.
|
|
471
|
+
*/
|
|
472
|
+
declare class ImageComponent {
|
|
473
|
+
/**
|
|
474
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
475
|
+
*
|
|
476
|
+
* Expected properties:
|
|
477
|
+
* - `url`: The absolute URL of the image.
|
|
478
|
+
* - `description`: Accessibility text for the image.
|
|
479
|
+
* - `fit`: Object-fit mode ('cover', 'contain', 'fill', 'none', 'scale-down').
|
|
480
|
+
* - `variant`: Style variant ('default', 'circle', 'rounded', 'icon', 'avatar', 'smallFeature', 'mediumFeature', 'largeFeature', 'header').
|
|
481
|
+
*/
|
|
482
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
483
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
484
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
485
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
486
|
+
url: _angular_core.Signal<any>;
|
|
487
|
+
description: _angular_core.Signal<any>;
|
|
488
|
+
fit: _angular_core.Signal<any>;
|
|
489
|
+
variant: _angular_core.Signal<any>;
|
|
490
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ImageComponent, never>;
|
|
491
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ImageComponent, "a2ui-v09-image", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Angular implementation of the A2UI Icon component (v0.9).
|
|
496
|
+
*
|
|
497
|
+
* Supports both Material Icons (by name) and custom SVG icons (by path).
|
|
498
|
+
*/
|
|
499
|
+
declare class IconComponent {
|
|
500
|
+
/**
|
|
501
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
502
|
+
*
|
|
503
|
+
* Expected properties:
|
|
504
|
+
* - `name`: The name of the icon (e.g., 'home', 'settings') OR an object
|
|
505
|
+
* with a `path` property for SVG icons.
|
|
506
|
+
* - `color`: The CSS color to apply to the icon.
|
|
507
|
+
*/
|
|
508
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
509
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
510
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
511
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
512
|
+
color: _angular_core.Signal<any>;
|
|
513
|
+
iconNameRaw: _angular_core.Signal<any>;
|
|
514
|
+
isPath: _angular_core.Signal<boolean>;
|
|
515
|
+
path: _angular_core.Signal<any>;
|
|
516
|
+
iconName: _angular_core.Signal<string>;
|
|
517
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
518
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconComponent, "a2ui-v09-icon", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Angular implementation of the A2UI Video component (v0.9).
|
|
523
|
+
*
|
|
524
|
+
* Renders a video player with standard controls and an optional poster image.
|
|
525
|
+
*/
|
|
526
|
+
declare class VideoComponent {
|
|
527
|
+
/**
|
|
528
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
529
|
+
*
|
|
530
|
+
* Expected properties:
|
|
531
|
+
* - `url`: The absolute URL of the video file.
|
|
532
|
+
* - `posterUrl`: The URL of an image to show before the video starts.
|
|
533
|
+
*/
|
|
534
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
535
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
536
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
537
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
538
|
+
url: _angular_core.Signal<any>;
|
|
539
|
+
posterUrl: _angular_core.Signal<any>;
|
|
540
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VideoComponent, never>;
|
|
541
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VideoComponent, "a2ui-v09-video", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Angular implementation of the A2UI AudioPlayer component (v0.9).
|
|
546
|
+
*
|
|
547
|
+
* Renders an audio player with standard controls and an optional description.
|
|
548
|
+
*/
|
|
549
|
+
declare class AudioPlayerComponent {
|
|
550
|
+
/**
|
|
551
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
552
|
+
*
|
|
553
|
+
* Expected properties:
|
|
554
|
+
* - `url`: The absolute URL of the audio file.
|
|
555
|
+
* - `description`: Optional text to display above the player.
|
|
556
|
+
*/
|
|
557
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
558
|
+
surfaceId: _angular_core.InputSignal<string | undefined>;
|
|
559
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
560
|
+
dataContextPath: _angular_core.InputSignal<string | undefined>;
|
|
561
|
+
description: _angular_core.Signal<any>;
|
|
562
|
+
url: _angular_core.Signal<any>;
|
|
563
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AudioPlayerComponent, never>;
|
|
564
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AudioPlayerComponent, "a2ui-v09-audio-player", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": false; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Angular implementation of the A2UI List component (v0.9).
|
|
569
|
+
*
|
|
570
|
+
* Renders a list of child components with support for ordered, unordered,
|
|
571
|
+
* and unstyled layouts in both vertical and horizontal orientations.
|
|
572
|
+
*/
|
|
573
|
+
declare class ListComponent {
|
|
574
|
+
/**
|
|
575
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
576
|
+
*
|
|
577
|
+
* Expected properties:
|
|
578
|
+
* - `children`: A list of component IDs to render as list items.
|
|
579
|
+
* - `listStyle`: The type of list ('ordered', 'unordered', 'none').
|
|
580
|
+
* - `orientation`: The layout direction ('vertical', 'horizontal').
|
|
581
|
+
*/
|
|
582
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
583
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
584
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
585
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
586
|
+
listStyle: _angular_core.Signal<any>;
|
|
587
|
+
orientation: _angular_core.Signal<any>;
|
|
588
|
+
children: _angular_core.Signal<any[]>;
|
|
589
|
+
listTag: _angular_core.Signal<"ol" | "ul" | "div">;
|
|
590
|
+
styleType: _angular_core.Signal<"" | "none">;
|
|
591
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListComponent, never>;
|
|
592
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "a2ui-v09-list", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Angular implementation of the A2UI Card component (v0.9).
|
|
597
|
+
*
|
|
598
|
+
* Renders a container with a shadow and rounded corners for grouping related content.
|
|
599
|
+
*/
|
|
600
|
+
declare class CardComponent {
|
|
601
|
+
/**
|
|
602
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
603
|
+
*
|
|
604
|
+
* Expected properties:
|
|
605
|
+
* - `child`: The component ID to render inside the card.
|
|
606
|
+
*/
|
|
607
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
608
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
609
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
610
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
611
|
+
child: _angular_core.Signal<any>;
|
|
612
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
613
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "a2ui-v09-card", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Angular implementation of the A2UI Tabs component (v0.9).
|
|
618
|
+
*
|
|
619
|
+
* Renders a set of tabs where each tab has a label and associated content.
|
|
620
|
+
* Manages the active tab state internally.
|
|
621
|
+
*/
|
|
622
|
+
declare class TabsComponent {
|
|
623
|
+
/**
|
|
624
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
625
|
+
*
|
|
626
|
+
* Expected properties:
|
|
627
|
+
* - `tabs`: A list of tab objects, each containing a `label` and `content` ID.
|
|
628
|
+
*/
|
|
629
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
630
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
631
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
632
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
633
|
+
activeTabIndex: _angular_core.WritableSignal<number>;
|
|
634
|
+
tabs: _angular_core.Signal<any>;
|
|
635
|
+
activeTab: _angular_core.Signal<any>;
|
|
636
|
+
protected normalizedActiveTabContent: _angular_core.Signal<{
|
|
637
|
+
id: string;
|
|
638
|
+
basePath: string;
|
|
639
|
+
} | null>;
|
|
640
|
+
setActiveTab(index: number): void;
|
|
641
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
642
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabsComponent, "a2ui-v09-tabs", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Angular implementation of the A2UI Modal component (v0.9).
|
|
647
|
+
*
|
|
648
|
+
* Renders a trigger component that opening an overlay containing a content component.
|
|
649
|
+
*/
|
|
650
|
+
declare class ModalComponent {
|
|
651
|
+
/**
|
|
652
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
653
|
+
*
|
|
654
|
+
* Expected properties:
|
|
655
|
+
* - `trigger`: The ID of the component that opens the modal.
|
|
656
|
+
* - `content`: The ID of the component to display inside the modal.
|
|
657
|
+
*/
|
|
658
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
659
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
660
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
661
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
662
|
+
isOpen: _angular_core.WritableSignal<boolean>;
|
|
663
|
+
trigger: _angular_core.Signal<any>;
|
|
664
|
+
content: _angular_core.Signal<any>;
|
|
665
|
+
openModal(): void;
|
|
666
|
+
closeModal(): void;
|
|
667
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
668
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "a2ui-v09-modal", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Angular implementation of the A2UI Divider component (v0.9).
|
|
673
|
+
*
|
|
674
|
+
* Renders a horizontal or vertical line to separate content.
|
|
675
|
+
*/
|
|
676
|
+
declare class DividerComponent {
|
|
677
|
+
/**
|
|
678
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
679
|
+
*
|
|
680
|
+
* Expected properties:
|
|
681
|
+
* - `axis`: The orientation of the divider ('horizontal' (default) or 'vertical').
|
|
682
|
+
*/
|
|
683
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
684
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
685
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
686
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
687
|
+
axis: _angular_core.Signal<any>;
|
|
688
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DividerComponent, never>;
|
|
689
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DividerComponent, "a2ui-v09-divider", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Angular implementation of the A2UI CheckBox component (v0.9).
|
|
694
|
+
*
|
|
695
|
+
* Renders a checkbox with a label. Updates the bound data model property
|
|
696
|
+
* when the checked state changes.
|
|
697
|
+
*/
|
|
698
|
+
declare class CheckBoxComponent {
|
|
699
|
+
/**
|
|
700
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
701
|
+
*
|
|
702
|
+
* Expected properties:
|
|
703
|
+
* - `label`: The text to display next to the checkbox.
|
|
704
|
+
* - `value`: Boolean indicating whether the checkbox is checked.
|
|
705
|
+
*/
|
|
706
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
707
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
708
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
709
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
710
|
+
value: _angular_core.Signal<boolean>;
|
|
711
|
+
label: _angular_core.Signal<any>;
|
|
712
|
+
handleChange(event: Event): void;
|
|
713
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CheckBoxComponent, never>;
|
|
714
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CheckBoxComponent, "a2ui-v09-check-box", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Angular implementation of the A2UI ChoicePicker component (v0.9).
|
|
719
|
+
*
|
|
720
|
+
* Renders a set of options as either radio buttons/checkboxes or chips.
|
|
721
|
+
* Supports both single and multiple selection.
|
|
722
|
+
*/
|
|
723
|
+
declare class ChoicePickerComponent {
|
|
724
|
+
/**
|
|
725
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
726
|
+
*
|
|
727
|
+
* Expected properties:
|
|
728
|
+
* - `value`: The currently selected value(s).
|
|
729
|
+
* - `choices` or `options`: List of choice objects (label and value).
|
|
730
|
+
* - `displayStyle`: How to render the choices ('default' or 'chips').
|
|
731
|
+
* - `variant`: Selection mode ('singleSelection' or 'multipleSelection').
|
|
732
|
+
*/
|
|
733
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
734
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
735
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
736
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
737
|
+
displayStyle: _angular_core.Signal<any>;
|
|
738
|
+
choices: _angular_core.Signal<any>;
|
|
739
|
+
variant: _angular_core.Signal<any>;
|
|
740
|
+
selectedValue: _angular_core.Signal<any>;
|
|
741
|
+
isMultiple(): boolean;
|
|
742
|
+
isSelected(value: string): boolean;
|
|
743
|
+
onCheckChange(value: string, event: Event): void;
|
|
744
|
+
toggleActive(value: string): void;
|
|
745
|
+
private updateValue;
|
|
746
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChoicePickerComponent, never>;
|
|
747
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChoicePickerComponent, "a2ui-v09-choice-picker", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Angular implementation of the A2UI Slider component (v0.9).
|
|
752
|
+
*
|
|
753
|
+
* Renders a range input slider with a label and its current value.
|
|
754
|
+
*/
|
|
755
|
+
declare class SliderComponent {
|
|
756
|
+
/**
|
|
757
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
758
|
+
*
|
|
759
|
+
* Expected properties:
|
|
760
|
+
* - `value`: The current numeric value.
|
|
761
|
+
* - `label`: Label text to display.
|
|
762
|
+
* - `min`: Minimum value (default: 0).
|
|
763
|
+
* - `max`: Maximum value (default: 100).
|
|
764
|
+
* - `step`: Increment step (default: 1).
|
|
765
|
+
*/
|
|
766
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
767
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
768
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
769
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
770
|
+
label: _angular_core.Signal<any>;
|
|
771
|
+
value: _angular_core.Signal<any>;
|
|
772
|
+
min: _angular_core.Signal<any>;
|
|
773
|
+
max: _angular_core.Signal<any>;
|
|
774
|
+
step: _angular_core.Signal<any>;
|
|
775
|
+
handleInput(event: Event): void;
|
|
776
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
777
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderComponent, "a2ui-v09-slider", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Angular implementation of the A2UI DateTimeInput component (v0.9).
|
|
782
|
+
*
|
|
783
|
+
* Renders date and/or time input fields. Combines them into an ISO string
|
|
784
|
+
* for the bound data model property.
|
|
785
|
+
*/
|
|
786
|
+
declare class DateTimeInputComponent {
|
|
787
|
+
/**
|
|
788
|
+
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
789
|
+
*
|
|
790
|
+
* Expected properties:
|
|
791
|
+
* - `value`: The current ISO date/time string.
|
|
792
|
+
* - `label`: Optional label text.
|
|
793
|
+
* - `enableDate`: Whether to show the date picker (default: true).
|
|
794
|
+
* - `enableTime`: Whether to show the time picker (default: false).
|
|
795
|
+
*/
|
|
796
|
+
props: _angular_core.InputSignal<Record<string, BoundProperty<any>>>;
|
|
797
|
+
surfaceId: _angular_core.InputSignal<string>;
|
|
798
|
+
componentId: _angular_core.InputSignal<string | undefined>;
|
|
799
|
+
dataContextPath: _angular_core.InputSignal<string>;
|
|
800
|
+
label: _angular_core.Signal<any>;
|
|
801
|
+
enableDate: _angular_core.Signal<any>;
|
|
802
|
+
enableTime: _angular_core.Signal<any>;
|
|
803
|
+
private rawValue;
|
|
804
|
+
dateValue: _angular_core.Signal<any>;
|
|
805
|
+
timeValue: _angular_core.Signal<any>;
|
|
806
|
+
handleDateChange(event: Event): void;
|
|
807
|
+
handleTimeChange(event: Event): void;
|
|
808
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeInputComponent, never>;
|
|
809
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateTimeInputComponent, "a2ui-v09-date-time-input", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "surfaceId": { "alias": "surfaceId"; "required": true; "isSignal": true; }; "componentId": { "alias": "componentId"; "required": false; "isSignal": true; }; "dataContextPath": { "alias": "dataContextPath"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
export { A2UI_RENDERER_CONFIG, A2uiRendererService, AngularCatalog, AudioPlayerComponent, BASIC_COMPONENTS, BasicCatalog, BasicCatalogBase, ButtonComponent, CardComponent, CheckBoxComponent, ChoicePickerComponent, ColumnComponent, ComponentBinder, ComponentHostComponent, DateTimeInputComponent, DividerComponent, IconComponent, ImageComponent, ListComponent, ModalComponent, RowComponent, SliderComponent, SurfaceComponent, TabsComponent, TextComponent, TextFieldComponent, VideoComponent, getNormalizedPath, toAngularSignal };
|
|
813
|
+
export type { AngularComponentImplementation, BasicCatalogOptions, BoundProperty, RendererConfiguration };
|