@eagami/ui 5.94.0 → 5.95.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/fesm2022/eagami-ui.mjs +40 -7
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eagami-ui.d.ts +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eagami/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.95.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",
|
package/types/eagami-ui.d.ts
CHANGED
|
@@ -9022,7 +9022,9 @@ export type TreeSize = EaSize;
|
|
|
9022
9022
|
* keyboard navigation (Arrow keys, Home, End, Enter / Space, and typeahead
|
|
9023
9023
|
* on node labels). Selection and expansion state are model signals: pass
|
|
9024
9024
|
* `[selectedId]` / `[expandedIds]` to control them, or bind
|
|
9025
|
-
* `[(selectedId)]` / `[(expandedIds)]` for two-way sync.
|
|
9025
|
+
* `[(selectedId)]` / `[(expandedIds)]` for two-way sync. Integrates with
|
|
9026
|
+
* Angular forms via `ControlValueAccessor`, with the selected id as the form
|
|
9027
|
+
* value.
|
|
9026
9028
|
*
|
|
9027
9029
|
* The component implements the ARIA `tree` pattern:
|
|
9028
9030
|
* - The outer `<ul>` carries `role="tree"`
|
|
@@ -9030,7 +9032,7 @@ export type TreeSize = EaSize;
|
|
|
9030
9032
|
* `aria-setsize`, `aria-expanded` (branches only), and `aria-selected`
|
|
9031
9033
|
* - Roving tabindex: only the currently-focused node has `tabindex="0"`
|
|
9032
9034
|
*/
|
|
9033
|
-
export declare class TreeComponent {
|
|
9035
|
+
export declare class TreeComponent implements ControlValueAccessor {
|
|
9034
9036
|
private readonly hostEl;
|
|
9035
9037
|
readonly nodes: import("@angular/core").InputSignal<readonly TreeNode<unknown>[]>;
|
|
9036
9038
|
readonly size: import("@angular/core").InputSignal<EaSize>;
|
|
@@ -9042,6 +9044,10 @@ export declare class TreeComponent {
|
|
|
9042
9044
|
/** Optional aria-label for the tree itself. */
|
|
9043
9045
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
9044
9046
|
readonly nodeClick: import("@angular/core").OutputEmitterRef<TreeNode<unknown>>;
|
|
9047
|
+
private readonly _formDisabled;
|
|
9048
|
+
private onChange;
|
|
9049
|
+
private onTouched;
|
|
9050
|
+
protected readonly isDisabled: Signal<boolean>;
|
|
9045
9051
|
private readonly listEl;
|
|
9046
9052
|
private readonly _focusedId;
|
|
9047
9053
|
private readonly typeahead;
|
|
@@ -9054,10 +9060,15 @@ export declare class TreeComponent {
|
|
|
9054
9060
|
protected readonly focusedId: Signal<string>;
|
|
9055
9061
|
protected readonly hostClasses: Signal<string[]>;
|
|
9056
9062
|
constructor();
|
|
9063
|
+
writeValue(val: string | null | undefined): void;
|
|
9064
|
+
registerOnChange(fn: (value: string | null) => void): void;
|
|
9065
|
+
registerOnTouched(fn: () => void): void;
|
|
9066
|
+
setDisabledState(isDisabled: boolean): void;
|
|
9057
9067
|
protected onNodeSelect(node: TreeNode): void;
|
|
9058
9068
|
protected onNodeToggle(id: string): void;
|
|
9059
9069
|
protected onKeydown(event: KeyboardEvent): void;
|
|
9060
9070
|
protected onTreeFocus(event: FocusEvent): void;
|
|
9071
|
+
protected onTreeFocusOut(event: FocusEvent): void;
|
|
9061
9072
|
private focusNode;
|
|
9062
9073
|
private findNode;
|
|
9063
9074
|
private findParentId;
|