@eui/ecl 22.0.0-alpha.1 → 22.0.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.
@@ -1,5 +1,5 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, AfterContentInit, OnDestroy, QueryList } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { EventEmitter, OnDestroy } from '@angular/core';
3
3
  import { EclBaseEvent, ECLBaseDirective } from '@eui/ecl/core';
4
4
 
5
5
  interface EclCategoryFilterItem {
@@ -26,7 +26,7 @@ declare class EclCategoryFilterItemComponent extends ECLBaseDirective implements
26
26
  * Link URL associated with this category filter item.
27
27
  * If not provided, the item acts as a toggle only.
28
28
  */
29
- readonly href: i0.InputSignal<string>;
29
+ readonly href: _angular_core.InputSignal<string>;
30
30
  /**
31
31
  * Unique identifier for the item. Used to manage selection state.
32
32
  */
@@ -36,29 +36,23 @@ declare class EclCategoryFilterItemComponent extends ECLBaseDirective implements
36
36
  */
37
37
  itemSelect: EventEmitter<EclCategoryFilterItemSelectEvent>;
38
38
  /**
39
- * Static class binding for base list item styling.
39
+ * Whether the item is currently expanded (open).
40
+ * Backed by a signal so that parent mutations trigger template updates.
40
41
  */
41
- className: boolean;
42
+ get isExpanded(): boolean;
43
+ set isExpanded(value: boolean);
44
+ private readonly _isExpanded;
42
45
  /**
43
- * Defines the ARIA role for the list item. Always set to "listitem".
46
+ * Whether the item is currently selected.
47
+ * Backed by a signal so that parent mutations trigger template updates.
44
48
  */
45
- role: string;
46
- /**
47
- * Indicates whether the item is expanded. Applied only if the item has children.
48
- */
49
- get isAriaExpanded(): boolean;
50
- /**
51
- * Indicates whether the item is currently expanded (open).
52
- */
53
- isExpanded: boolean;
54
- /**
55
- * Indicates whether the item is currently selected.
56
- */
57
- isCurrent: boolean;
49
+ get isCurrent(): boolean;
50
+ set isCurrent(value: boolean);
51
+ private readonly _isCurrent;
58
52
  /**
59
53
  * Child list component if the item has nested children.
60
54
  */
61
- readonly eclCategoryList: i0.Signal<any>;
55
+ readonly eclCategoryList: _angular_core.Signal<any>;
62
56
  /**
63
57
  * Returns the hierarchical level of the item within the tree.
64
58
  */
@@ -97,29 +91,20 @@ declare class EclCategoryFilterItemComponent extends ECLBaseDirective implements
97
91
  * Prevents navigation if no `href` is defined.
98
92
  */
99
93
  onItemClick(evt: MouseEvent): void;
100
- private toggleExpanded;
101
94
  private updateChildListLevel;
102
- static ɵfac: i0.ɵɵFactoryDeclaration<EclCategoryFilterItemComponent, never>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<EclCategoryFilterItemComponent, "ecl-category-filter-item", never, { "href": { "alias": "href"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; }; }, { "itemSelect": "itemSelect"; }, ["eclCategoryList"], ["ecl-category-filter-list", "*"], true, never>;
95
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclCategoryFilterItemComponent, never>;
96
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclCategoryFilterItemComponent, "ecl-category-filter-item", never, { "href": { "alias": "href"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; }; }, { "itemSelect": "itemSelect"; }, ["eclCategoryList"], ["ecl-category-filter-list", "*"], true, never>;
104
97
  }
105
98
 
106
99
  declare class EclCategoryFilterListComponent extends ECLBaseDirective {
107
100
  /**
108
- * Adds the base class for the category filter list component.
109
- */
110
- className: boolean;
111
- /**
112
- * Sets ARIA role to "list" for accessibility purposes.
101
+ * ID of this list element, referenced by the parent item's aria-controls.
113
102
  */
114
- role: string;
115
- /**
116
- * ARIA attribute that points to the element controlled by this list (if applicable).
117
- */
118
- controls: string;
103
+ id: string;
119
104
  /**
120
105
  * List of all category filter items projected inside this list.
121
106
  */
122
- readonly eclCategoryFilterItems: i0.Signal<readonly EclCategoryFilterItemComponent[]>;
107
+ readonly eclCategoryFilterItems: _angular_core.Signal<readonly EclCategoryFilterItemComponent[]>;
123
108
  /**
124
109
  * Gets the nesting level of this list in the category tree.
125
110
  */
@@ -142,48 +127,39 @@ declare class EclCategoryFilterListComponent extends ECLBaseDirective {
142
127
  * @param value Level value to set on each child.
143
128
  */
144
129
  updateChildrenItemsLevel(value: number): void;
145
- static ɵfac: i0.ɵɵFactoryDeclaration<EclCategoryFilterListComponent, never>;
146
- static ɵcmp: i0.ɵɵComponentDeclaration<EclCategoryFilterListComponent, "ecl-category-filter-list", never, {}, {}, ["eclCategoryFilterItems"], ["*"], true, never>;
130
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclCategoryFilterListComponent, never>;
131
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclCategoryFilterListComponent, "ecl-category-filter-list", never, {}, {}, ["eclCategoryFilterItems"], ["*"], true, never>;
147
132
  }
148
133
 
149
- declare class EclCategoryFilterComponent extends ECLBaseDirective implements AfterContentInit, OnDestroy {
134
+ declare class EclCategoryFilterComponent extends ECLBaseDirective implements OnDestroy {
150
135
  /**
151
136
  * ID of the currently selected item. When provided, the item with the matching ID
152
137
  * will be marked as current and automatically expanded on initialization.
153
138
  */
154
- readonly currentItemId: i0.InputSignal<string>;
155
- /**
156
- * Static class applied to the host element for styling.
157
- * Always returns true to include the `ecl-category-filter` class.
158
- */
159
- className: boolean;
160
- /**
161
- * Defines the ARIA role for the host element. Always set to "navigation".
162
- */
163
- role: string;
139
+ readonly currentItemId: _angular_core.InputSignal<string>;
164
140
  /**
165
141
  * Aria-label for the navigation role. Defaults to "Category filter".
166
142
  */
167
143
  ariaLabel: string | null;
168
- readonly eclCategoryList: i0.Signal<any>;
169
- eclCategoryFilterItemsAll: QueryList<EclCategoryFilterItemComponent>;
144
+ readonly eclCategoryList: _angular_core.Signal<any>;
145
+ /**
146
+ * Signal-based query for all descendant category filter items.
147
+ */
148
+ readonly eclCategoryFilterItemsAll: _angular_core.Signal<readonly EclCategoryFilterItemComponent[]>;
170
149
  private destroy$;
171
- private readonly cdr;
172
- private readonly injector;
173
150
  private readonly initializedItems;
174
- ngAfterContentInit(): void;
151
+ constructor();
175
152
  ngOnDestroy(): void;
176
153
  private connectCategoryfilterItemEventsOnce;
177
- private scheduleLevelUpdate;
178
- private setId;
154
+ private setIds;
179
155
  private connectCategoryfilterItemEvents;
180
156
  private onItemSelected;
181
157
  private setPreselectedCurrentItem;
182
158
  private expandParents;
183
159
  private closeAllItemsButOne;
184
160
  private deselectAllItemsButOne;
185
- static ɵfac: i0.ɵɵFactoryDeclaration<EclCategoryFilterComponent, never>;
186
- static ɵcmp: i0.ɵɵComponentDeclaration<EclCategoryFilterComponent, "ecl-category-filter", never, { "currentItemId": { "alias": "currentItemId"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, {}, ["eclCategoryList", "eclCategoryFilterItemsAll"], ["*"], true, never>;
161
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclCategoryFilterComponent, never>;
162
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclCategoryFilterComponent, "ecl-category-filter", never, { "currentItemId": { "alias": "currentItemId"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, {}, ["eclCategoryList", "eclCategoryFilterItemsAll"], ["*"], true, never>;
187
163
  }
188
164
 
189
165
  declare const EUI_ECL_CATEGORY_FILTER: readonly [typeof EclCategoryFilterComponent, typeof EclCategoryFilterListComponent, typeof EclCategoryFilterItemComponent];
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-category-filter.d.ts","sources":["../../components/ecl-category-filter/models/ecl-category-filter-item.model.ts","../../components/ecl-category-filter/events/ecl-category-filter-item-select.event.ts","../../components/ecl-category-filter/ecl-category-filter-list/ecl-category-filter-item.component.ts","../../components/ecl-category-filter/ecl-category-filter-list/ecl-category-filter-list.component.ts","../../components/ecl-category-filter/ecl-category-filter/ecl-category-filter.component.ts","../../components/ecl-category-filter/index.ts"],"mappings":";;;;UAAiB,qBAAqB;;;;;AAKrC;;ACFD;;AAEG;AAC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0B;2CAA1B,0BAA0B;AA8ItC;;AC1KD,cAAa,uBAAuB,mBAAA,0BAAA,SAAA,8BAAA,SAAA,8BAAA;;;;","names":["_angular_core"]}
1
+ {"version":3,"file":"eui-ecl-components-ecl-category-filter.d.ts","sources":["../../components/ecl-category-filter/models/ecl-category-filter-item.model.ts","../../components/ecl-category-filter/events/ecl-category-filter-item-select.event.ts","../../components/ecl-category-filter/ecl-category-filter-list/ecl-category-filter-item.component.ts","../../components/ecl-category-filter/ecl-category-filter-list/ecl-category-filter-list.component.ts","../../components/ecl-category-filter/ecl-category-filter/ecl-category-filter.component.ts","../../components/ecl-category-filter/index.ts"],"mappings":";;;;UAAiB,qBAAqB;;;;;AAKrC;;ACFD;;AAEG;AACH,cAAa,gCAAiC,SAAQ,YAAY;AAK3C,UAAM,qBAAqB;AAJ9C;;;AAGG;AACgB,sBAAM,qBAAqB;AAGjD;;ACND,cAaa,8BAA+B,SAAQ,gBAAiB,YAAW,qBAAqB;AACjG;;;AAGG;mBACU,aAAA,CAAA,WAAA;AAEb;;AAEG;;AAGH;;AAEG;AACO,gBAAU,YAAA,CAAA,gCAAA;AAEpB;;;AAGG;;AAIH;AAGA;AAEA;;;AAGG;;AAIH;AAGA;AAEA;;AAEG;8BACqB,aAAA,CAAA,MAAA;AAExB;;AAEG;;AAKH;;AAEG;AACH;;AAMA;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;AACH,6BAAyB,8BAA8B;AAIvD;;AAEG;;AAKH;;AAEG;;AAKH;;AAEG;;AAKH;;;AAGG;AACH,qBAAiB,UAAU;AAU3B;oDAtHS,8BAA8B;sDAA9B,8BAA8B;AA4H1C;;AC7ID,cASa,8BAA+B,SAAQ,gBAAgB;AAChE;;AAEG;;AAGH;;AAEG;qCAC4B,aAAA,CAAA,MAAA,UAAA,8BAAA;AAE/B;;AAEG;;AAKH;;AAEG;AACH;;AAMA;;AAEG;;AAMH;;AAEG;AACH,6BAAyB,8BAA8B;AAIvD;;;AAGG;AACH;o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