@a2ui/angular 0.9.0-alpha.0 → 0.9.0-alpha.2
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/fesm2022/a2ui-angular-src-v0_9.mjs +322 -127
- package/fesm2022/a2ui-angular-src-v0_9.mjs.map +1 -1
- package/fesm2022/a2ui-angular-v0_9.mjs +322 -127
- package/fesm2022/a2ui-angular-v0_9.mjs.map +1 -1
- package/package.json +3 -3
- package/types/a2ui-angular-src-v0_9.d.ts +173 -22
- package/types/a2ui-angular-v0_9.d.ts +173 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a2ui/angular",
|
|
3
|
-
"version": "0.9.0-alpha.
|
|
3
|
+
"version": "0.9.0-alpha.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://a2ui.org/",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"renderer"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@a2ui/web_core": "^0.9.1-alpha.
|
|
23
|
+
"@a2ui/web_core": "^0.9.1-alpha.2",
|
|
24
24
|
"@preact/signals-core": "^1.13.0",
|
|
25
25
|
"tslib": "^2.3.0",
|
|
26
26
|
"zod": "^3.25.76"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@angular/common": "^21.2.0",
|
|
30
30
|
"@angular/core": "^21.2.0",
|
|
31
31
|
"@angular/platform-browser": "^21.2.0",
|
|
32
|
-
"@a2ui/markdown-it": "
|
|
32
|
+
"@a2ui/markdown-it": "^0.0.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"@a2ui/markdown-it": {
|
|
@@ -311,12 +311,47 @@ declare class BasicCatalog extends BasicCatalogBase {
|
|
|
311
311
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<BasicCatalog>;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Copyright 2026 Google LLC
|
|
316
|
+
*
|
|
317
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
318
|
+
* you may not use this file except in compliance with the License.
|
|
319
|
+
* You may obtain a copy of the License at
|
|
320
|
+
*
|
|
321
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
322
|
+
*
|
|
323
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
324
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
325
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
326
|
+
* See the License for the specific language governing permissions and
|
|
327
|
+
* limitations under the License.
|
|
328
|
+
*/
|
|
329
|
+
/**
|
|
330
|
+
* Base class for A2UI basic catalog components in Angular.
|
|
331
|
+
*
|
|
332
|
+
* Automatically injects the basic catalog styles when the component is instantiated.
|
|
333
|
+
*/
|
|
334
|
+
declare abstract class BasicCatalogComponent {
|
|
335
|
+
constructor();
|
|
336
|
+
}
|
|
337
|
+
|
|
314
338
|
/**
|
|
315
339
|
* Angular implementation of the A2UI Text component (v0.9).
|
|
316
340
|
*
|
|
317
341
|
* Renders text with support for simple Markdown.
|
|
318
|
-
|
|
319
|
-
|
|
342
|
+
*
|
|
343
|
+
* Supported CSS variables:
|
|
344
|
+
* - `--a2ui-text-color-text`: Controls the text color.
|
|
345
|
+
* - `--a2ui-text-margin`: Controls the margin of text elements.
|
|
346
|
+
* - `--a2ui-font-family-title`: Controls the font family for titles.
|
|
347
|
+
* - `--a2ui-line-height-headings`: Controls the line height for headings.
|
|
348
|
+
* - `--a2ui-line-height-body`: Controls the line height for body text.
|
|
349
|
+
* - `--a2ui-text-caption-color`: Controls the color for caption text.
|
|
350
|
+
* - `--a2ui-text-a-color`: Controls the color for links.
|
|
351
|
+
* - `--a2ui-text-a-font-weight`: Controls the font weight for links.
|
|
352
|
+
* - Font sizes: `--a2ui-font-size-2xl`, `--a2ui-font-size-xl`, `--a2ui-font-size-l`, `--a2ui-font-size-m`, `--a2ui-font-size-s`, `--a2ui-font-size-xs`.
|
|
353
|
+
*/
|
|
354
|
+
declare class TextComponent extends BasicCatalogComponent {
|
|
320
355
|
/**
|
|
321
356
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
322
357
|
*
|
|
@@ -343,8 +378,11 @@ declare class TextComponent {
|
|
|
343
378
|
*
|
|
344
379
|
* Arranges child components in a horizontal flex layout. Supports both static
|
|
345
380
|
* lists of children and repeating templates bound to a data collection.
|
|
381
|
+
*
|
|
382
|
+
* Supported CSS variables:
|
|
383
|
+
* - `--a2ui-row-gap`: Controls the gap between items in the row. Defaults to `--a2ui-spacing-m` (16px).
|
|
346
384
|
*/
|
|
347
|
-
declare class RowComponent {
|
|
385
|
+
declare class RowComponent extends BasicCatalogComponent {
|
|
348
386
|
/**
|
|
349
387
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
350
388
|
*
|
|
@@ -376,8 +414,11 @@ declare class RowComponent {
|
|
|
376
414
|
*
|
|
377
415
|
* Arranges child components in a vertical flex layout. Supports both static
|
|
378
416
|
* lists of children and repeating templates bound to a data collection.
|
|
417
|
+
*
|
|
418
|
+
* Supported CSS variables:
|
|
419
|
+
* - `--a2ui-column-gap`: Controls the gap between items in the column. Defaults to `--a2ui-spacing-m` (16px).
|
|
379
420
|
*/
|
|
380
|
-
declare class ColumnComponent {
|
|
421
|
+
declare class ColumnComponent extends BasicCatalogComponent {
|
|
381
422
|
/**
|
|
382
423
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
383
424
|
*
|
|
@@ -409,8 +450,17 @@ declare class ColumnComponent {
|
|
|
409
450
|
*
|
|
410
451
|
* Renders a clickable button with a single child component (usually Text).
|
|
411
452
|
* Dispatches an action when clicked if an `action` property is provided.
|
|
453
|
+
*
|
|
454
|
+
* Supported CSS variables:
|
|
455
|
+
* - `--a2ui-button-padding`: Controls the padding.
|
|
456
|
+
* - `--a2ui-button-border-radius`: Controls the border radius.
|
|
457
|
+
* - `--a2ui-button-border`: Controls the border.
|
|
458
|
+
* - `--a2ui-button-margin`: Controls the margin.
|
|
459
|
+
* - `--a2ui-button-background`: Controls the background color.
|
|
460
|
+
* - `--a2ui-button-box-shadow`: Controls the box shadow.
|
|
461
|
+
* - `--a2ui-button-font-weight`: Controls the font weight.
|
|
412
462
|
*/
|
|
413
|
-
declare class ButtonComponent {
|
|
463
|
+
declare class ButtonComponent extends BasicCatalogComponent {
|
|
414
464
|
/**
|
|
415
465
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
416
466
|
*
|
|
@@ -438,8 +488,19 @@ declare class ButtonComponent {
|
|
|
438
488
|
*
|
|
439
489
|
* Renders a text input field with an optional label and placeholder.
|
|
440
490
|
* Updates the bound data model property on every input change.
|
|
441
|
-
|
|
442
|
-
|
|
491
|
+
*
|
|
492
|
+
* Supported CSS variables:
|
|
493
|
+
* - `--a2ui-color-input`: Controls the background color of the input.
|
|
494
|
+
* - `--a2ui-color-on-input`: Controls the text color of the input.
|
|
495
|
+
* - `--a2ui-textfield-border`: Controls the border of the input.
|
|
496
|
+
* - `--a2ui-textfield-border-radius`: Controls the border radius of the input.
|
|
497
|
+
* - `--a2ui-textfield-padding`: Controls the padding of the input.
|
|
498
|
+
* - `--a2ui-textfield-color-border-focus`: Controls the border color on focus.
|
|
499
|
+
* - `--a2ui-textfield-color-error`: Controls the border and text color for error states.
|
|
500
|
+
* - `--a2ui-textfield-label-font-size`: Controls the font size of the label.
|
|
501
|
+
* - `--a2ui-textfield-label-font-weight`: Controls the font weight of the label.
|
|
502
|
+
*/
|
|
503
|
+
declare class TextFieldComponent extends BasicCatalogComponent {
|
|
443
504
|
/**
|
|
444
505
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
445
506
|
*
|
|
@@ -468,8 +529,16 @@ declare class TextFieldComponent {
|
|
|
468
529
|
* Angular implementation of the A2UI Image component (v0.9).
|
|
469
530
|
*
|
|
470
531
|
* Renders an image with configurable fit and shape variants.
|
|
532
|
+
*
|
|
533
|
+
* Supported CSS variables:
|
|
534
|
+
* - `--a2ui-image-border-radius`: Controls the rounded corners.
|
|
535
|
+
* - `--a2ui-image-icon-size`: Size of the icon variant.
|
|
536
|
+
* - `--a2ui-image-avatar-size`: Size of the avatar variant.
|
|
537
|
+
* - `--a2ui-image-small-feature-size`: Max-width of smallFeature variant.
|
|
538
|
+
* - `--a2ui-image-large-feature-size`: Max-height of largeFeature variant.
|
|
539
|
+
* - `--a2ui-image-header-size`: Height of header variant.
|
|
471
540
|
*/
|
|
472
|
-
declare class ImageComponent {
|
|
541
|
+
declare class ImageComponent extends BasicCatalogComponent {
|
|
473
542
|
/**
|
|
474
543
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
475
544
|
*
|
|
@@ -495,8 +564,14 @@ declare class ImageComponent {
|
|
|
495
564
|
* Angular implementation of the A2UI Icon component (v0.9).
|
|
496
565
|
*
|
|
497
566
|
* Supports both Material Icons (by name) and custom SVG icons (by path).
|
|
567
|
+
*
|
|
568
|
+
* Supported CSS variables:
|
|
569
|
+
* - `--a2ui-icon-size`: Controls the width, height, and font size of the icon.
|
|
570
|
+
* - `--a2ui-icon-font-family`: Controls the font family for icon fonts.
|
|
571
|
+
* - `--a2ui-icon-color`: Controls the color of the icon.
|
|
572
|
+
* - `--a2ui-icon-font-variation-settings`: Controls font variation settings (e.g. FILL).
|
|
498
573
|
*/
|
|
499
|
-
declare class IconComponent {
|
|
574
|
+
declare class IconComponent extends BasicCatalogComponent {
|
|
500
575
|
/**
|
|
501
576
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
502
577
|
*
|
|
@@ -522,8 +597,11 @@ declare class IconComponent {
|
|
|
522
597
|
* Angular implementation of the A2UI Video component (v0.9).
|
|
523
598
|
*
|
|
524
599
|
* Renders a video player with standard controls and an optional poster image.
|
|
600
|
+
*
|
|
601
|
+
* Supported CSS variables:
|
|
602
|
+
* - `--a2ui-video-border-radius`: Controls the border radius of the video element.
|
|
525
603
|
*/
|
|
526
|
-
declare class VideoComponent {
|
|
604
|
+
declare class VideoComponent extends BasicCatalogComponent {
|
|
527
605
|
/**
|
|
528
606
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
529
607
|
*
|
|
@@ -545,8 +623,13 @@ declare class VideoComponent {
|
|
|
545
623
|
* Angular implementation of the A2UI AudioPlayer component (v0.9).
|
|
546
624
|
*
|
|
547
625
|
* Renders an audio player with standard controls and an optional description.
|
|
626
|
+
*
|
|
627
|
+
* Supported CSS variables:
|
|
628
|
+
* - `--a2ui-audioplayer-background`: Controls the background of the player. Defaults to `transparent`.
|
|
629
|
+
* - `--a2ui-audioplayer-border-radius`: Controls the border radius. Defaults to `0`.
|
|
630
|
+
* - `--a2ui-audioplayer-padding`: Controls the padding. Defaults to `0`.
|
|
548
631
|
*/
|
|
549
|
-
declare class AudioPlayerComponent {
|
|
632
|
+
declare class AudioPlayerComponent extends BasicCatalogComponent {
|
|
550
633
|
/**
|
|
551
634
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
552
635
|
*
|
|
@@ -569,8 +652,12 @@ declare class AudioPlayerComponent {
|
|
|
569
652
|
*
|
|
570
653
|
* Renders a list of child components with support for ordered, unordered,
|
|
571
654
|
* and unstyled layouts in both vertical and horizontal orientations.
|
|
655
|
+
*
|
|
656
|
+
* Supported CSS variables:
|
|
657
|
+
* - `--a2ui-list-gap`: Controls the gap between items.
|
|
658
|
+
* - `--a2ui-list-padding`: Controls the padding (applied to padding-inline-start).
|
|
572
659
|
*/
|
|
573
|
-
declare class ListComponent {
|
|
660
|
+
declare class ListComponent extends BasicCatalogComponent {
|
|
574
661
|
/**
|
|
575
662
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
576
663
|
*
|
|
@@ -596,8 +683,16 @@ declare class ListComponent {
|
|
|
596
683
|
* Angular implementation of the A2UI Card component (v0.9).
|
|
597
684
|
*
|
|
598
685
|
* Renders a container with a shadow and rounded corners for grouping related content.
|
|
686
|
+
*
|
|
687
|
+
* Supported CSS variables:
|
|
688
|
+
* - `--a2ui-card-padding`: Controls the padding.
|
|
689
|
+
* - `--a2ui-card-border-radius`: Controls the border radius.
|
|
690
|
+
* - `--a2ui-card-box-shadow`: Controls the box shadow.
|
|
691
|
+
* - `--a2ui-card-background`: Controls the background color.
|
|
692
|
+
* - `--a2ui-card-border`: Controls the border.
|
|
693
|
+
* - `--a2ui-card-margin`: Controls the margin.
|
|
599
694
|
*/
|
|
600
|
-
declare class CardComponent {
|
|
695
|
+
declare class CardComponent extends BasicCatalogComponent {
|
|
601
696
|
/**
|
|
602
697
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
603
698
|
*
|
|
@@ -618,8 +713,16 @@ declare class CardComponent {
|
|
|
618
713
|
*
|
|
619
714
|
* Renders a set of tabs where each tab has a label and associated content.
|
|
620
715
|
* Manages the active tab state internally.
|
|
716
|
+
*
|
|
717
|
+
* Supported CSS variables:
|
|
718
|
+
* - `--a2ui-tabs-border`: Controls the border of the tab bar.
|
|
719
|
+
* - `--a2ui-tabs-header-background`: Controls the background of tab buttons.
|
|
720
|
+
* - `--a2ui-tabs-header-color`: Controls the text color of tab buttons.
|
|
721
|
+
* - `--a2ui-tabs-header-background-active`: Controls the background of the active tab button.
|
|
722
|
+
* - `--a2ui-tabs-header-color-active`: Controls the text color of the active tab button.
|
|
723
|
+
* - `--a2ui-tabs-content-padding`: Controls the padding of the tab content.
|
|
621
724
|
*/
|
|
622
|
-
declare class TabsComponent {
|
|
725
|
+
declare class TabsComponent extends BasicCatalogComponent {
|
|
623
726
|
/**
|
|
624
727
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
625
728
|
*
|
|
@@ -646,8 +749,15 @@ declare class TabsComponent {
|
|
|
646
749
|
* Angular implementation of the A2UI Modal component (v0.9).
|
|
647
750
|
*
|
|
648
751
|
* Renders a trigger component that opening an overlay containing a content component.
|
|
752
|
+
*
|
|
753
|
+
* Supported CSS variables:
|
|
754
|
+
* - `--a2ui-modal-background`: Controls the background of the modal content.
|
|
755
|
+
* - `--a2ui-modal-padding`: Controls the padding of the modal content.
|
|
756
|
+
* - `--a2ui-modal-border-radius`: Controls the border radius of the modal content.
|
|
757
|
+
* - `--a2ui-modal-box-shadow`: Controls the box shadow of the modal content.
|
|
758
|
+
* - `--a2ui-modal-backdrop-bg`: Controls the background of the backdrop.
|
|
649
759
|
*/
|
|
650
|
-
declare class ModalComponent {
|
|
760
|
+
declare class ModalComponent extends BasicCatalogComponent {
|
|
651
761
|
/**
|
|
652
762
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
653
763
|
*
|
|
@@ -672,8 +782,12 @@ declare class ModalComponent {
|
|
|
672
782
|
* Angular implementation of the A2UI Divider component (v0.9).
|
|
673
783
|
*
|
|
674
784
|
* Renders a horizontal or vertical line to separate content.
|
|
785
|
+
*
|
|
786
|
+
* Supported CSS variables:
|
|
787
|
+
* - `--a2ui-divider-border`: Controls the border of the divider (horizontal and vertical).
|
|
788
|
+
* - `--a2ui-divider-spacing`: Controls the margin around the divider.
|
|
675
789
|
*/
|
|
676
|
-
declare class DividerComponent {
|
|
790
|
+
declare class DividerComponent extends BasicCatalogComponent {
|
|
677
791
|
/**
|
|
678
792
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
679
793
|
*
|
|
@@ -694,8 +808,19 @@ declare class DividerComponent {
|
|
|
694
808
|
*
|
|
695
809
|
* Renders a checkbox with a label. Updates the bound data model property
|
|
696
810
|
* when the checked state changes.
|
|
697
|
-
|
|
698
|
-
|
|
811
|
+
*
|
|
812
|
+
* Supported CSS variables:
|
|
813
|
+
* - `--a2ui-checkbox-margin`: Controls the margin.
|
|
814
|
+
* - `--a2ui-checkbox-gap`: Controls the gap between checkbox and label.
|
|
815
|
+
* - `--a2ui-checkbox-label-font-size`: Controls the font size of the label.
|
|
816
|
+
* - `--a2ui-checkbox-label-font-weight`: Controls the font weight of the label.
|
|
817
|
+
* - `--a2ui-checkbox-size`: Controls the width and height of the checkbox.
|
|
818
|
+
* - `--a2ui-checkbox-background`: Controls the background of the checkbox.
|
|
819
|
+
* - `--a2ui-checkbox-border`: Controls the border of the checkbox.
|
|
820
|
+
* - `--a2ui-checkbox-border-radius`: Controls the border radius of the checkbox.
|
|
821
|
+
* - `--a2ui-checkbox-color-error`: Controls the color for error states.
|
|
822
|
+
*/
|
|
823
|
+
declare class CheckBoxComponent extends BasicCatalogComponent {
|
|
699
824
|
/**
|
|
700
825
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
701
826
|
*
|
|
@@ -719,8 +844,18 @@ declare class CheckBoxComponent {
|
|
|
719
844
|
*
|
|
720
845
|
* Renders a set of options as either radio buttons/checkboxes or chips.
|
|
721
846
|
* Supports both single and multiple selection.
|
|
722
|
-
|
|
723
|
-
|
|
847
|
+
*
|
|
848
|
+
* Supported CSS variables:
|
|
849
|
+
* - `--a2ui-choicepicker-gap`: Controls spacing between options/chips.
|
|
850
|
+
* - `--a2ui-choicepicker-padding`: Controls padding of the container.
|
|
851
|
+
* - `--a2ui-choicepicker-checkbox-size`: Controls size of checkboxes/radios.
|
|
852
|
+
* - `--a2ui-choicepicker-chip-padding`: Controls padding of chips.
|
|
853
|
+
* - `--a2ui-choicepicker-chip-border-radius`: Controls border radius of chips.
|
|
854
|
+
* - `--a2ui-choicepicker-chip-border`: Controls border of chips.
|
|
855
|
+
* - `--a2ui-choicepicker-chip-background`: Controls background of chips.
|
|
856
|
+
* - `--a2ui-choicepicker-chip-background-selected`: Controls background of selected chips.
|
|
857
|
+
*/
|
|
858
|
+
declare class ChoicePickerComponent extends BasicCatalogComponent {
|
|
724
859
|
/**
|
|
725
860
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
726
861
|
*
|
|
@@ -751,8 +886,15 @@ declare class ChoicePickerComponent {
|
|
|
751
886
|
* Angular implementation of the A2UI Slider component (v0.9).
|
|
752
887
|
*
|
|
753
888
|
* Renders a range input slider with a label and its current value.
|
|
889
|
+
*
|
|
890
|
+
* Supported CSS variables:
|
|
891
|
+
* - `--a2ui-slider-margin`: Controls the margin of the container.
|
|
892
|
+
* - `--a2ui-slider-label-font-size`: Controls the font size of the label.
|
|
893
|
+
* - `--a2ui-slider-label-font-weight`: Controls the font weight of the label.
|
|
894
|
+
* - `--a2ui-slider-thumb-color`: Controls the accent color of the thumb.
|
|
895
|
+
* - `--a2ui-slider-track-color`: Controls the background of the track.
|
|
754
896
|
*/
|
|
755
|
-
declare class SliderComponent {
|
|
897
|
+
declare class SliderComponent extends BasicCatalogComponent {
|
|
756
898
|
/**
|
|
757
899
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
758
900
|
*
|
|
@@ -782,8 +924,17 @@ declare class SliderComponent {
|
|
|
782
924
|
*
|
|
783
925
|
* Renders date and/or time input fields. Combines them into an ISO string
|
|
784
926
|
* for the bound data model property.
|
|
927
|
+
*
|
|
928
|
+
* Supported CSS variables:
|
|
929
|
+
* - `--a2ui-datetimeinput-background`: Controls the background of inputs.
|
|
930
|
+
* - `--a2ui-datetimeinput-color`: Controls the text color of inputs.
|
|
931
|
+
* - `--a2ui-datetimeinput-border`: Controls the border of inputs.
|
|
932
|
+
* - `--a2ui-datetimeinput-border-radius`: Controls the border radius of inputs.
|
|
933
|
+
* - `--a2ui-datetimeinput-padding`: Controls the padding of inputs.
|
|
934
|
+
* - `--a2ui-datetimeinput-label-font-size`: Controls the font size of the label.
|
|
935
|
+
* - `--a2ui-datetimeinput-label-font-weight`: Controls the font weight of the label.
|
|
785
936
|
*/
|
|
786
|
-
declare class DateTimeInputComponent {
|
|
937
|
+
declare class DateTimeInputComponent extends BasicCatalogComponent {
|
|
787
938
|
/**
|
|
788
939
|
* Reactive properties resolved from the A2UI {@link ComponentModel}.
|
|
789
940
|
*
|