@eagami/ui 5.84.0 → 5.86.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eagami/ui",
3
- "version": "5.84.0",
3
+ "version": "5.86.0",
4
4
  "description": "Lightweight, accessible, themeable Angular UI component library and icon set built on CSS custom properties",
5
5
  "author": "Michal Wiraszka <michal@eagami.com>",
6
6
  "license": "MIT",
@@ -1020,6 +1020,8 @@ export declare class AutocompleteComponent extends LabelledFieldControlBase impl
1020
1020
  private readonly i18n;
1021
1021
  /** Accessible name for the input and suggestion list when no visible label is provided. */
1022
1022
  readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
1023
+ /** Space-separated ids of the elements whose text names the input and suggestion list, such as a label outside the component. */
1024
+ readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
1023
1025
  readonly placeholder: import("@angular/core").InputSignal<string>;
1024
1026
  /** Selectable options, either flat or split into groups. */
1025
1027
  readonly options: import("@angular/core").InputSignal<SelectOptions>;
@@ -1105,6 +1107,11 @@ export declare class AutocompleteComponent extends LabelledFieldControlBase impl
1105
1107
  "required": false;
1106
1108
  "isSignal": true;
1107
1109
  };
1110
+ "ariaLabelledby": {
1111
+ "alias": "aria-labelledby";
1112
+ "required": false;
1113
+ "isSignal": true;
1114
+ };
1108
1115
  "placeholder": {
1109
1116
  "alias": "placeholder";
1110
1117
  "required": false;
@@ -2917,9 +2924,9 @@ export type MenuSize = EaSize;
2917
2924
  /**
2918
2925
  * Popup action menu attached to any focusable element via the
2919
2926
  * `[eaMenuTrigger]` directive. Supports keyboard navigation
2920
- * (arrow keys, Home/End), closes on outside click or Escape, and restores
2921
- * focus to the trigger on close. Positioning, dismissal, and SSR-safe scroll
2922
- * handling are provided by `<ea-popover>`.
2927
+ * (arrow keys, Home/End, typeahead on item labels), closes on outside click
2928
+ * or Escape, and restores focus to the trigger on close. Positioning,
2929
+ * dismissal, and SSR-safe scroll handling are provided by `<ea-popover>`.
2923
2930
  */
2924
2931
  export declare class MenuComponent {
2925
2932
  private readonly injector;
@@ -2927,6 +2934,7 @@ export declare class MenuComponent {
2927
2934
  private readonly listEl;
2928
2935
  private readonly popover;
2929
2936
  private readonly focusFirstItemOnReveal;
2937
+ private readonly typeahead;
2930
2938
  readonly placement: import("@angular/core").InputSignal<MenuPlacement>;
2931
2939
  /** Visual size of the menu; every item inherits it. */
2932
2940
  readonly size: import("@angular/core").InputSignal<EaSize>;
@@ -3626,6 +3634,8 @@ export type CodeInputSize = EaSize;
3626
3634
  export declare class CodeInputComponent extends LabelledFieldControlBase implements ControlValueAccessor {
3627
3635
  readonly digitEls: import("@angular/core").Signal<readonly ElementRef<HTMLInputElement>[]>;
3628
3636
  protected readonly i18n: EagamiI18nService;
3637
+ /** Accessible name for the group of digit fields when no visible `label` is set. */
3638
+ readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
3629
3639
  /** Space-separated ids of the elements whose text names the group of digit fields, such as a label outside the component. */
3630
3640
  readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
3631
3641
  /** Placeholder text spread one character per cell (cell i shows character i). */
@@ -3670,6 +3680,11 @@ export declare class CodeInputComponent extends LabelledFieldControlBase impleme
3670
3680
  private focusDigit;
3671
3681
  static ɵfac: i0.ɵɵFactoryDeclaration<CodeInputComponent, never>;
3672
3682
  static ɵcmp: i0.ɵɵComponentDeclaration<CodeInputComponent, "ea-code-input", never, {
3683
+ "ariaLabel": {
3684
+ "alias": "aria-label";
3685
+ "required": false;
3686
+ "isSignal": true;
3687
+ };
3673
3688
  "ariaLabelledby": {
3674
3689
  "alias": "aria-labelledby";
3675
3690
  "required": false;
@@ -3761,6 +3776,8 @@ export declare class DatePickerComponent extends LabelledFieldControlBase implem
3761
3776
  protected readonly i18n: EagamiI18nService;
3762
3777
  /** Placeholder shown in the field when no date is selected. */
3763
3778
  readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
3779
+ /** Accessible name for the date picker when no visible `label` is set. */
3780
+ readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
3764
3781
  /** Space-separated ids of the elements whose text names the field, such as a label outside the component. */
3765
3782
  readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
3766
3783
  readonly size: import("@angular/core").InputSignal<EaSize>;
@@ -3878,6 +3895,11 @@ export declare class DatePickerComponent extends LabelledFieldControlBase implem
3878
3895
  "required": false;
3879
3896
  "isSignal": true;
3880
3897
  };
3898
+ "ariaLabel": {
3899
+ "alias": "aria-label";
3900
+ "required": false;
3901
+ "isSignal": true;
3902
+ };
3881
3903
  "ariaLabelledby": {
3882
3904
  "alias": "aria-labelledby";
3883
3905
  "required": false;
@@ -4391,8 +4413,7 @@ export declare class DropdownComponent extends LabelledFieldControlBase implemen
4391
4413
  readonly focusedIndex: import("@angular/core").WritableSignal<number>;
4392
4414
  protected readonly searchTerm: import("@angular/core").WritableSignal<string>;
4393
4415
  private readonly _formDisabled;
4394
- private typeaheadQuery;
4395
- private typeaheadTimer;
4416
+ private readonly typeahead;
4396
4417
  private onChange;
4397
4418
  private onTouched;
4398
4419
  constructor();
@@ -6788,6 +6809,8 @@ export declare class RangeSliderComponent extends LabelledFieldControlBase imple
6788
6809
  readonly ariaLabelLow: import("@angular/core").InputSignal<string | undefined>;
6789
6810
  /** Accessible label for the high (end) thumb. Falls back to a localized default when omitted. */
6790
6811
  readonly ariaLabelHigh: import("@angular/core").InputSignal<string | undefined>;
6812
+ /** Accessible name for the range slider when no visible `label` is set, read ahead of each thumb's own label. */
6813
+ readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
6791
6814
  /** Space-separated ids of the elements whose text names the slider, ahead of each thumb's own label, such as a label outside the component. */
6792
6815
  readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
6793
6816
  readonly id: import("@angular/core").InputSignal<string>;
@@ -6805,6 +6828,7 @@ export declare class RangeSliderComponent extends LabelledFieldControlBase imple
6805
6828
  readonly highPercent: import("@angular/core").Signal<number>;
6806
6829
  readonly lowThumbLabel: import("@angular/core").Signal<string>;
6807
6830
  readonly highThumbLabel: import("@angular/core").Signal<string>;
6831
+ protected readonly fieldAriaLabel: import("@angular/core").Signal<string | null>;
6808
6832
  readonly lowThumbLabelledBy: import("@angular/core").Signal<string>;
6809
6833
  readonly highThumbLabelledBy: import("@angular/core").Signal<string>;
6810
6834
  private thumbLabelledBy;
@@ -6891,6 +6915,11 @@ export declare class RangeSliderComponent extends LabelledFieldControlBase imple
6891
6915
  "required": false;
6892
6916
  "isSignal": true;
6893
6917
  };
6918
+ "ariaLabel": {
6919
+ "alias": "aria-label";
6920
+ "required": false;
6921
+ "isSignal": true;
6922
+ };
6894
6923
  "ariaLabelledby": {
6895
6924
  "alias": "aria-labelledby";
6896
6925
  "required": false;
@@ -6934,6 +6963,8 @@ export declare class RatingComponent extends LabelledFieldControlBase implements
6934
6963
  constructor();
6935
6964
  private readonly starsEl;
6936
6965
  protected readonly i18n: EagamiI18nService;
6966
+ /** Accessible name for the rating when no visible `label` is set. */
6967
+ readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
6937
6968
  /** Space-separated ids of the elements whose text names the rating, such as a label outside the component. */
6938
6969
  readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
6939
6970
  readonly size: import("@angular/core").InputSignal<EaSize>;
@@ -7003,6 +7034,11 @@ export declare class RatingComponent extends LabelledFieldControlBase implements
7003
7034
  private computePointerValue;
7004
7035
  static ɵfac: i0.ɵɵFactoryDeclaration<RatingComponent, never>;
7005
7036
  static ɵcmp: i0.ɵɵComponentDeclaration<RatingComponent, "ea-rating", never, {
7037
+ "ariaLabel": {
7038
+ "alias": "aria-label";
7039
+ "required": false;
7040
+ "isSignal": true;
7041
+ };
7006
7042
  "ariaLabelledby": {
7007
7043
  "alias": "aria-labelledby";
7008
7044
  "required": false;
@@ -9023,10 +9059,10 @@ export declare function visibleNodeIds<T>(nodes: readonly TreeNode<T>[], expande
9023
9059
  export type TreeSize = EaSize;
9024
9060
  /**
9025
9061
  * `<ea-tree>` renders a hierarchical, single-selection treeview with full
9026
- * keyboard navigation (Arrow keys, Home, End, Enter / Space). Selection and
9027
- * expansion state are model signals: pass `[selectedId]` / `[expandedIds]`
9028
- * to control them, or bind `[(selectedId)]` / `[(expandedIds)]` for two-way
9029
- * sync.
9062
+ * keyboard navigation (Arrow keys, Home, End, Enter / Space, and typeahead
9063
+ * on node labels). Selection and expansion state are model signals: pass
9064
+ * `[selectedId]` / `[expandedIds]` to control them, or bind
9065
+ * `[(selectedId)]` / `[(expandedIds)]` for two-way sync.
9030
9066
  *
9031
9067
  * The component implements the ARIA `tree` pattern:
9032
9068
  * - The outer `<ul>` carries `role="tree"`
@@ -9048,6 +9084,7 @@ export declare class TreeComponent {
9048
9084
  readonly nodeClick: import("@angular/core").OutputEmitterRef<TreeNode<unknown>>;
9049
9085
  private readonly listEl;
9050
9086
  private readonly _focusedId;
9087
+ private readonly typeahead;
9051
9088
  protected readonly expandedSet: Signal<ReadonlySet<string>>;
9052
9089
  /**
9053
9090
  * The node id currently driving the roving tabindex. Defaults to the first