@agorapulse/ui-components 22.11.0 → 22.12.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/agorapulse-ui-components-22.12.0.tgz +0 -0
- package/fesm2022/agorapulse-ui-components-i18n.mjs +11 -0
- package/fesm2022/agorapulse-ui-components-i18n.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-labels-selector.mjs +29 -7
- package/fesm2022/agorapulse-ui-components-labels-selector.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-nav-selector-testing.mjs +10 -3
- package/fesm2022/agorapulse-ui-components-nav-selector-testing.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs +152 -62
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs.map +1 -1
- package/package.json +1 -1
- package/types/agorapulse-ui-components-i18n.d.ts +11 -0
- package/types/agorapulse-ui-components-labels-selector.d.ts +24 -10
- package/types/agorapulse-ui-components-nav-selector-testing.d.ts +2 -2
- package/types/agorapulse-ui-components-nav-selector.d.ts +80 -60
- package/agorapulse-ui-components-22.11.0.tgz +0 -0
package/package.json
CHANGED
|
@@ -15,11 +15,22 @@ declare const DEFAULT_TEXTS: Readonly<{
|
|
|
15
15
|
readonly 'ui-components.filters.save-as-new-preset': "Save as new preset";
|
|
16
16
|
readonly 'ui-components.filters.update-existing-preset': "Update existing preset";
|
|
17
17
|
readonly 'ui-components.filters.date-range-placeholder': "Select date range";
|
|
18
|
+
readonly 'ui-components.nav-selector.view-more': "View more";
|
|
19
|
+
readonly 'ui-components.nav-selector.view-less': "View less";
|
|
20
|
+
readonly 'ui-components.nav-selector.token-invalid': "No valid token";
|
|
21
|
+
readonly 'ui-components.nav-selector.group-token-invalid': "Invalid token(s)";
|
|
22
|
+
readonly 'ui-components.nav-selector.feature-lock': "This feature is not available for your account";
|
|
23
|
+
readonly 'ui-components.nav-selector.attributes': "Attributes";
|
|
24
|
+
readonly 'ui-components.nav-selector.select-only': "Select only {{name}}";
|
|
25
|
+
readonly 'ui-components.nav-selector.action-menu': "Action menu {{name}}";
|
|
26
|
+
readonly 'ui-components.nav-selector.toggle': "Toggle {{name}}";
|
|
18
27
|
readonly 'ui-components.search.placeholder': "Search";
|
|
19
28
|
readonly 'ui-components.search.no-results': "No results found";
|
|
20
29
|
readonly 'ui-components.search.results': "{{count}} results";
|
|
30
|
+
readonly 'ui-components.select.loading': "Loading…";
|
|
21
31
|
readonly 'ui-components.select.only': "Only";
|
|
22
32
|
readonly 'ui-components.select.placeholder': "Select an option";
|
|
33
|
+
readonly 'ui-components.select.type-to-search': "Type to search";
|
|
23
34
|
readonly 'ui-components.selection.label': "Selection";
|
|
24
35
|
readonly 'ui-components.selection.selected-section': "Selected";
|
|
25
36
|
readonly 'ui-components.selection.options-section': "Options";
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, OnChanges, EventEmitter, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { I18nOf } from '@agorapulse/ui-components/i18n';
|
|
3
4
|
import { NgSelectComponent } from '@ng-select/ng-select';
|
|
4
5
|
import { Observable, Subject } from 'rxjs';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Texts of `ap-labels-selector`. `placeholder` and `createLabel` are required; `searchPlaceholder` falls back to the
|
|
9
|
+
* `placeholder` text, `noResults`, `loading` and `typeToSearch` to the DS defaults.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const i18n: LabelsSelectorI18n = { placeholder: 'inbox.labels.placeholder', createLabel: 'inbox.labels.create' };
|
|
13
|
+
*/
|
|
14
|
+
type LabelsSelectorI18n = I18nOf<'placeholder' | 'createLabel', 'searchPlaceholder' | 'noResults' | 'loading' | 'typeToSearch'>;
|
|
11
15
|
declare class LabelsSelectorComponent implements OnInit, OnChanges {
|
|
12
16
|
private changeDetectorRef;
|
|
13
17
|
addLabelEnabled: boolean;
|
|
14
18
|
disabled: boolean;
|
|
15
19
|
initialLabels: string[];
|
|
16
|
-
translation: LabelsSelectorTranslation;
|
|
17
20
|
loadingOnSearch: boolean;
|
|
18
21
|
multipleEnabled: boolean;
|
|
19
22
|
searchLabelsFunction: (val: string) => Observable<string[]>;
|
|
23
|
+
/** Texts of the selector, keys or `raw()` texts; see {@link LabelsSelectorI18n}. */
|
|
24
|
+
readonly i18n: _angular_core.InputSignal<LabelsSelectorI18n>;
|
|
20
25
|
createLabel: EventEmitter<string>;
|
|
21
26
|
addLabel: EventEmitter<string>;
|
|
22
27
|
deleteLabel: EventEmitter<string>;
|
|
@@ -27,6 +32,15 @@ declare class LabelsSelectorComponent implements OnInit, OnChanges {
|
|
|
27
32
|
labelsInput$: Subject<string>;
|
|
28
33
|
labels$: Observable<string[]>;
|
|
29
34
|
labelsLoading: boolean;
|
|
35
|
+
private readonly resolveTexts;
|
|
36
|
+
protected readonly texts: _angular_core.Signal<{
|
|
37
|
+
placeholder: string;
|
|
38
|
+
createLabel: string;
|
|
39
|
+
searchPlaceholder: string;
|
|
40
|
+
noResults: string;
|
|
41
|
+
loading: string;
|
|
42
|
+
typeToSearch: string;
|
|
43
|
+
}>;
|
|
30
44
|
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
31
45
|
ngOnInit(): void;
|
|
32
46
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -36,9 +50,9 @@ declare class LabelsSelectorComponent implements OnInit, OnChanges {
|
|
|
36
50
|
onOpen(): void;
|
|
37
51
|
onLabelsChange(): void;
|
|
38
52
|
setSearchFunction(): void;
|
|
39
|
-
static ɵfac:
|
|
40
|
-
static ɵcmp:
|
|
53
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LabelsSelectorComponent, never>;
|
|
54
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LabelsSelectorComponent, "ap-labels-selector", never, { "addLabelEnabled": { "alias": "addLabelEnabled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "initialLabels": { "alias": "initialLabels"; "required": false; }; "loadingOnSearch": { "alias": "loadingOnSearch"; "required": false; }; "multipleEnabled": { "alias": "multipleEnabled"; "required": false; }; "searchLabelsFunction": { "alias": "searchLabelsFunction"; "required": true; }; "i18n": { "alias": "i18n"; "required": true; "isSignal": true; }; }, { "createLabel": "createLabel"; "addLabel": "addLabel"; "deleteLabel": "deleteLabel"; "selectLabels": "selectLabels"; "searchErrorMessage": "searchErrorMessage"; }, never, never, true, never>;
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
export { LabelsSelectorComponent };
|
|
44
|
-
export type {
|
|
58
|
+
export type { LabelsSelectorI18n };
|
|
@@ -34,7 +34,7 @@ declare function generateLeafElements(options: {
|
|
|
34
34
|
tokenInvalidFrequency?: number;
|
|
35
35
|
featureLockedFrequency?: number;
|
|
36
36
|
actions?: NavSelectorLeafAction[];
|
|
37
|
-
details?:
|
|
37
|
+
details?: NavSelectorLeafDetails[];
|
|
38
38
|
tags?: NavSelectorLeafTags;
|
|
39
39
|
}, customizer?: (leaf: NavSelectorLeaf, index: number) => NavSelectorLeaf): NavSelectorLeaf[];
|
|
40
40
|
/**
|
|
@@ -58,7 +58,7 @@ declare function generateGroupElements(options: {
|
|
|
58
58
|
tokenInvalidFrequency?: number;
|
|
59
59
|
featureLockedFrequency?: number;
|
|
60
60
|
actions?: NavSelectorLeafAction[];
|
|
61
|
-
details?:
|
|
61
|
+
details?: NavSelectorLeafDetails[];
|
|
62
62
|
tags?: NavSelectorLeafTags;
|
|
63
63
|
}): any;
|
|
64
64
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AvatarNetwork } from '@agorapulse/ui-components/avatar';
|
|
2
|
+
import { I18nOf, TranslationRequest } from '@agorapulse/ui-components/i18n';
|
|
2
3
|
import { agorapulseSymbol } from '@agorapulse/ui-symbol';
|
|
3
4
|
import * as _angular_core from '@angular/core';
|
|
4
5
|
import { Signal, OnInit, TemplateRef } from '@angular/core';
|
|
@@ -21,51 +22,17 @@ type NavSelectorCategoryEmptyStateActionEvent = {
|
|
|
21
22
|
actionName: string;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
+
* Texts of the nav selector, each one a translation request. A role left out gets the DS default.
|
|
25
26
|
*/
|
|
26
|
-
|
|
27
|
-
/** Title of the nav selector */
|
|
28
|
-
title: string;
|
|
29
|
-
/** Only text in multi select mode */
|
|
30
|
-
only: string;
|
|
31
|
-
/** Tooltip displayed on folded group when one of its children have token is invalid */
|
|
32
|
-
groupTokenInvalid: string;
|
|
33
|
-
/** Toolip displaying that token is invalid */
|
|
34
|
-
tokenInvalid: string;
|
|
35
|
-
/** Toolip displaying that feature is locked */
|
|
36
|
-
featureLocked: string;
|
|
37
|
-
/** placeholder for the search input */
|
|
38
|
-
searchPlaceholder: string;
|
|
39
|
-
/** Text displayed when the search return no results */
|
|
40
|
-
noResults: string;
|
|
41
|
-
/** Text of the button to show more details, it’s used when we limit the number of details displayed */
|
|
42
|
-
viewMore: string;
|
|
43
|
-
/** Text of the button to show less details, it’s used when we limit the number of details displayed */
|
|
44
|
-
viewLess: string;
|
|
45
|
-
/**
|
|
46
|
-
* Accessible name of the button opening the filter dropdown. The button is icon-only, so this never appears on
|
|
47
|
-
* screen — screen readers still announce it, so keep it translated.
|
|
48
|
-
*/
|
|
49
|
-
filter: string;
|
|
50
|
-
/** Text of the button clearing the filters inside the filter dropdown */
|
|
51
|
-
clearFilters: string;
|
|
52
|
-
/** Text of the button applying the filters picked inside the filter dropdown */
|
|
53
|
-
applyFilters: string;
|
|
54
|
-
/**
|
|
55
|
-
* Heading of each tag group inside the filter dropdown, keyed by tag name. Tag names are a structural taxonomy, not
|
|
56
|
-
* consumer data like the tag values are, so they need a translation of their own. Keying on `NavSelectorLeafTags`
|
|
57
|
-
* makes the compiler ask for one whenever a tag name is added.
|
|
58
|
-
*/
|
|
59
|
-
tagNames: Record<keyof NavSelectorLeafTags, string>;
|
|
60
|
-
}
|
|
27
|
+
type NavSelectorI18n = I18nOf<never, 'title' | 'searchPlaceholder' | 'noResults' | 'only' | 'viewMore' | 'viewLess' | 'tokenInvalidTooltip' | 'groupTokenInvalidTooltip' | 'featureLockTooltip' | 'filterTrigger' | 'applyFilters' | 'clearFilters' | `${keyof NavSelectorLeafTags}Group`>;
|
|
61
28
|
/**
|
|
62
29
|
* Common interface for the NavSelector
|
|
63
30
|
*/
|
|
64
31
|
type NavSelectorBaseNode = {
|
|
65
32
|
/** Unique identifier of the node */
|
|
66
33
|
uid: string;
|
|
67
|
-
/** Displayed name of the node */
|
|
68
|
-
|
|
34
|
+
/** Displayed name of the node: a key to translate, or `raw(...)` for a name coming from data */
|
|
35
|
+
i18n: I18nOf<'label'>;
|
|
69
36
|
};
|
|
70
37
|
/**
|
|
71
38
|
* Represent an action that can be performed on a leaf
|
|
@@ -74,7 +41,7 @@ type NavSelectorLeafAction = {
|
|
|
74
41
|
/** Unique identifier of the action, used for click tracking */
|
|
75
42
|
id: string | null;
|
|
76
43
|
/** Action label to display */
|
|
77
|
-
|
|
44
|
+
i18n: I18nOf<'label'>;
|
|
78
45
|
/** Technical name of the action, used to identify the action */
|
|
79
46
|
name: string;
|
|
80
47
|
/** Optional icon to display on the action */
|
|
@@ -104,8 +71,6 @@ type NavSelectorLeaf = {
|
|
|
104
71
|
missingPermission: boolean;
|
|
105
72
|
/** For social profiles or ad accounts the corresponding network */
|
|
106
73
|
network: AvatarNetwork | null;
|
|
107
|
-
/** Translated text when the entry is disabled */
|
|
108
|
-
disableReason: string | null;
|
|
109
74
|
/** Indicates if entry has its token invalid */
|
|
110
75
|
tokenInvalid: boolean;
|
|
111
76
|
/** Indicates if entry is locked */
|
|
@@ -120,8 +85,10 @@ type NavSelectorLeaf = {
|
|
|
120
85
|
actions: NavSelectorLeafAction[];
|
|
121
86
|
/** List of tags */
|
|
122
87
|
tags: NavSelectorLeafTags;
|
|
88
|
+
/** Label of the leaf, and `disabledTooltip`: when present (even empty) the leaf is disabled and shows it as its tooltip */
|
|
89
|
+
i18n: I18nOf<'label', 'disabledTooltip'>;
|
|
123
90
|
type: 'LEAF';
|
|
124
|
-
} & NavSelectorBaseNode
|
|
91
|
+
} & Omit<NavSelectorBaseNode, 'i18n'>;
|
|
125
92
|
/**
|
|
126
93
|
* Represent a group of entries which has been created by the user (ex: menuGroup)
|
|
127
94
|
*/
|
|
@@ -140,13 +107,13 @@ type NavSelectorCategory = {
|
|
|
140
107
|
children: (NavSelectorLeaf | NavSelectorGroup)[];
|
|
141
108
|
/** Indicates if the group should be folded or expanded when generating the nav selector */
|
|
142
109
|
folded: boolean;
|
|
143
|
-
/**
|
|
144
|
-
emptyStateTitle
|
|
110
|
+
/** Label of the category, and `emptyStateTitle`: the title of its empty state */
|
|
111
|
+
i18n: I18nOf<'label', 'emptyStateTitle'>;
|
|
145
112
|
/** Action of the empty state */
|
|
146
113
|
emptyStateAction?: NavSelectorEmptyStateAction;
|
|
147
114
|
avatar?: NavSelectorCategoryAvatar;
|
|
148
115
|
type: 'CATEGORY';
|
|
149
|
-
} & NavSelectorBaseNode
|
|
116
|
+
} & Omit<NavSelectorBaseNode, 'i18n'>;
|
|
150
117
|
type NavSelectorCategoryAvatar = {
|
|
151
118
|
pictureUrl: string | null;
|
|
152
119
|
rounded: boolean;
|
|
@@ -158,7 +125,8 @@ type NavSelectorCategoryAvatar = {
|
|
|
158
125
|
*/
|
|
159
126
|
type NavSelectorEmptyStateAction = {
|
|
160
127
|
name: string;
|
|
161
|
-
|
|
128
|
+
/** Request for the `label` of the action */
|
|
129
|
+
i18n: I18nOf<'label'>;
|
|
162
130
|
id?: string;
|
|
163
131
|
symbolId?: agorapulseSymbol;
|
|
164
132
|
featureLocked?: boolean;
|
|
@@ -174,11 +142,37 @@ interface NavSelectorLeafDetails {
|
|
|
174
142
|
counter: number | null;
|
|
175
143
|
/** If true, excludes this from the counter sum */
|
|
176
144
|
excludedCounterSum: boolean;
|
|
177
|
-
/**
|
|
145
|
+
/** Label of the detail, and `errorTooltip`: when present the detail is in error and shows it as its tooltip */
|
|
146
|
+
i18n: I18nOf<'label', 'errorTooltip'>;
|
|
147
|
+
}
|
|
148
|
+
/** The public entries with their texts resolved. */
|
|
149
|
+
type ResolvedNavSelectorBaseNode = Omit<NavSelectorBaseNode, 'i18n'> & {
|
|
150
|
+
alias: string;
|
|
151
|
+
};
|
|
152
|
+
type ResolvedNavSelectorLeafAction = NavSelectorLeafAction & {
|
|
153
|
+
label: string;
|
|
154
|
+
};
|
|
155
|
+
type ResolvedNavSelectorLeaf = Omit<NavSelectorLeaf, 'i18n' | 'details' | 'actions'> & ResolvedNavSelectorBaseNode & {
|
|
156
|
+
disableReason: string | null;
|
|
157
|
+
details: ResolvedNavSelectorLeafDetails[];
|
|
158
|
+
actions: ResolvedNavSelectorLeafAction[];
|
|
159
|
+
};
|
|
160
|
+
type ResolvedNavSelectorGroup = Omit<NavSelectorGroup, 'i18n' | 'children'> & ResolvedNavSelectorBaseNode & {
|
|
161
|
+
children: ResolvedNavSelectorLeaf[];
|
|
162
|
+
};
|
|
163
|
+
type ResolvedNavSelectorCategory = Omit<NavSelectorCategory, 'i18n' | 'children' | 'emptyStateAction'> & ResolvedNavSelectorBaseNode & {
|
|
164
|
+
children: (ResolvedNavSelectorLeaf | ResolvedNavSelectorGroup)[];
|
|
165
|
+
emptyStateTitle?: string;
|
|
166
|
+
emptyStateAction?: ResolvedNavSelectorEmptyStateAction;
|
|
167
|
+
};
|
|
168
|
+
type ResolvedNavSelectorEmptyStateAction = Omit<NavSelectorEmptyStateAction, 'i18n'> & {
|
|
169
|
+
title: string;
|
|
170
|
+
};
|
|
171
|
+
type ResolvedNavSelectorEntry = ResolvedNavSelectorLeaf | ResolvedNavSelectorGroup | ResolvedNavSelectorCategory;
|
|
172
|
+
type ResolvedNavSelectorLeafDetails = Omit<NavSelectorLeafDetails, 'i18n'> & {
|
|
178
173
|
name: string;
|
|
179
|
-
/** Translation of the error on the leaf */
|
|
180
174
|
errorReason: string | null;
|
|
181
|
-
}
|
|
175
|
+
};
|
|
182
176
|
/**
|
|
183
177
|
* Represent the accessibility on a node
|
|
184
178
|
*/
|
|
@@ -195,6 +189,8 @@ type NodeAccessibility = {
|
|
|
195
189
|
type InternalNavSelectorLeafAction = {
|
|
196
190
|
/** Unique identifier of the action, used for click tracking */
|
|
197
191
|
id: string | null;
|
|
192
|
+
/** Request the label has been resolved from */
|
|
193
|
+
i18n: I18nOf<'label'>;
|
|
198
194
|
/** Action label to display */
|
|
199
195
|
label: string;
|
|
200
196
|
/** Technical name of the action, used to identify the action */
|
|
@@ -258,7 +254,7 @@ type InternalNavSelectorCategory = {
|
|
|
258
254
|
/** Title of the empty state */
|
|
259
255
|
emptyStateTitle?: string;
|
|
260
256
|
/** Action of the empty state */
|
|
261
|
-
emptyStateAction?:
|
|
257
|
+
emptyStateAction?: ResolvedNavSelectorEmptyStateAction;
|
|
262
258
|
/** Avatar configuration of the category */
|
|
263
259
|
avatarDisplayed: boolean;
|
|
264
260
|
avatarRounded: boolean;
|
|
@@ -357,10 +353,15 @@ declare class NavSelectorPopoverItemComponent {
|
|
|
357
353
|
locked: _angular_core.InputSignal<boolean>;
|
|
358
354
|
id: _angular_core.InputSignal<string | null>;
|
|
359
355
|
name: _angular_core.InputSignal<string>;
|
|
360
|
-
ariaLabel
|
|
356
|
+
/** Accessible name of the item; without `ariaLabel`, the item gets no `aria-label`. */
|
|
357
|
+
i18n: _angular_core.InputSignal<I18nOf<never, "ariaLabel">>;
|
|
358
|
+
protected readonly texts: _angular_core.Signal<{
|
|
359
|
+
readonly ariaLabel: string | undefined;
|
|
360
|
+
}>;
|
|
361
|
+
private readonly resolveTexts;
|
|
361
362
|
readonly baseButtonDirective: BaseButtonDirective;
|
|
362
363
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavSelectorPopoverItemComponent, never>;
|
|
363
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavSelectorPopoverItemComponent, "ap-nav-selector-popover-item", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "locked": { "alias": "locked"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": true; "isSignal": true; }; "
|
|
364
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavSelectorPopoverItemComponent, "ap-nav-selector-popover-item", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "locked": { "alias": "locked"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": true; "isSignal": true; }; "i18n": { "alias": "i18n"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.BaseButtonDirective; inputs: {}; outputs: {}; }]>;
|
|
364
365
|
}
|
|
365
366
|
|
|
366
367
|
/**
|
|
@@ -373,13 +374,25 @@ declare class NavSelectorState {
|
|
|
373
374
|
entries: Signal<InternalNavSelectorEntry[]>;
|
|
374
375
|
style: Signal<NavSelectorStyle>;
|
|
375
376
|
private multipleModeEnabled;
|
|
376
|
-
private
|
|
377
|
+
private readonly resolveTexts;
|
|
378
|
+
private readonly i18n;
|
|
377
379
|
tagsFilterDisplayed: Signal<boolean>;
|
|
378
380
|
tagsFilters: _angular_core.WritableSignal<Partial<InternalNavSelectorLeafTags>>;
|
|
379
381
|
isMultipleModeEnabled: _angular_core.WritableSignal<boolean>;
|
|
380
382
|
search: _angular_core.WritableSignal<string>;
|
|
381
383
|
noResults: Signal<boolean>;
|
|
382
|
-
texts: Signal<
|
|
384
|
+
texts: Signal<{
|
|
385
|
+
readonly title: string | undefined;
|
|
386
|
+
readonly searchPlaceholder: string;
|
|
387
|
+
readonly noResults: string;
|
|
388
|
+
readonly only: string;
|
|
389
|
+
readonly viewMore: string;
|
|
390
|
+
readonly viewLess: string;
|
|
391
|
+
readonly tokenInvalidTooltip: string;
|
|
392
|
+
readonly groupTokenInvalidTooltip: string;
|
|
393
|
+
readonly featureLockTooltip: string;
|
|
394
|
+
}>;
|
|
395
|
+
filterI18n: Signal<I18nOf<never, "applyFilters" | "clearFilters" | "trigger">>;
|
|
383
396
|
isAllSelected: Signal<boolean>;
|
|
384
397
|
isSelectAllIndeterminate: Signal<boolean>;
|
|
385
398
|
expanded: _angular_core.WritableSignal<boolean>;
|
|
@@ -388,8 +401,8 @@ declare class NavSelectorState {
|
|
|
388
401
|
private newSelectedUids;
|
|
389
402
|
constructor();
|
|
390
403
|
updateMultiModeEnabled(enabled: boolean): void;
|
|
391
|
-
initEntries(entries:
|
|
392
|
-
updateEntries(entries:
|
|
404
|
+
initEntries(entries: ResolvedNavSelectorEntry[], initialSelectedEntryUids: string[], detailsDisplayedLimit: number): void;
|
|
405
|
+
updateEntries(entries: ResolvedNavSelectorEntry[], initialSelectedEntryUids: string[], detailsDisplayedLimit: number): void;
|
|
393
406
|
/**
|
|
394
407
|
* Re-applies the unfold the merger discarded, only for newly selected entries: unfolding on every update
|
|
395
408
|
* would re-open a node the user has just folded.
|
|
@@ -401,7 +414,8 @@ declare class NavSelectorState {
|
|
|
401
414
|
onLeafToggleFolding(leaf: InternalNavSelectorEntry): void;
|
|
402
415
|
private findUnfoldedLeafUids;
|
|
403
416
|
onLeafDetailClicked(leafDetail: InternalNavSelectorLeafDetails): void;
|
|
404
|
-
|
|
417
|
+
updateI18n(i18n: NavSelectorI18n): void;
|
|
418
|
+
tagGroupTitle(tagName: string): TranslationRequest | undefined;
|
|
405
419
|
selectOnlyLeaf(leaf: InternalNavSelectorLeaf): void;
|
|
406
420
|
toggleExpanded(): void;
|
|
407
421
|
minify(): void;
|
|
@@ -430,8 +444,13 @@ declare class NavSelectorState {
|
|
|
430
444
|
|
|
431
445
|
declare class NavSelectorComponent implements OnInit {
|
|
432
446
|
private readonly symbolRegistry;
|
|
447
|
+
private readonly translate;
|
|
433
448
|
navSelectorEntries: _angular_core.InputSignal<NavSelectorEntry[]>;
|
|
434
|
-
|
|
449
|
+
/**
|
|
450
|
+
* A role left out gets its DS default; `title` has none and is hidden without it.
|
|
451
|
+
* `filterTrigger`, `applyFilters` and `clearFilters` go as they are to the tags filter, which owns their defaults.
|
|
452
|
+
*/
|
|
453
|
+
readonly i18n: _angular_core.InputSignal<NavSelectorI18n>;
|
|
435
454
|
multipleModeEnabled: _angular_core.InputSignal<boolean>;
|
|
436
455
|
style: _angular_core.InputSignal<NavSelectorStyle>;
|
|
437
456
|
detailsDisplayedLimit: _angular_core.InputSignal<number>;
|
|
@@ -457,6 +476,7 @@ declare class NavSelectorComponent implements OnInit {
|
|
|
457
476
|
componentUid: string;
|
|
458
477
|
ready: _angular_core.WritableSignal<boolean>;
|
|
459
478
|
private stableNavSelectorEntries;
|
|
479
|
+
private resolvedEntries;
|
|
460
480
|
private expanded;
|
|
461
481
|
private entries;
|
|
462
482
|
private visibleEntryUids;
|
|
@@ -472,8 +492,8 @@ declare class NavSelectorComponent implements OnInit {
|
|
|
472
492
|
private initializeExpandedState;
|
|
473
493
|
clickExpandButton(): void;
|
|
474
494
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavSelectorComponent, never>;
|
|
475
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavSelectorComponent, "ap-nav-selector", never, { "navSelectorEntries": { "alias": "navSelectorEntries"; "required": true; "isSignal": true; }; "
|
|
495
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavSelectorComponent, "ap-nav-selector", never, { "navSelectorEntries": { "alias": "navSelectorEntries"; "required": true; "isSignal": true; }; "i18n": { "alias": "i18n"; "required": false; "isSignal": true; }; "multipleModeEnabled": { "alias": "multipleModeEnabled"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "detailsDisplayedLimit": { "alias": "detailsDisplayedLimit"; "required": false; "isSignal": true; }; "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; "forceExpanded": { "alias": "forceExpanded"; "required": false; "isSignal": true; }; "expandedStateLocalStorageKey": { "alias": "expandedStateLocalStorageKey"; "required": false; "isSignal": true; }; "selectedEntryUids": { "alias": "selectedEntryUids"; "required": true; "isSignal": true; }; }, { "selectedEntryUids": "selectedEntryUidsChange"; "actionClicked": "actionClicked"; "emptyStateActionClicked": "emptyStateActionClicked"; "onExpansionStateChange": "onExpansionStateChange"; "visibleAccountsChange": "visibleAccountsChange"; }, ["headerProjection", "contentHeaderProjection", "footerProjection"], never, true, never>;
|
|
476
496
|
}
|
|
477
497
|
|
|
478
498
|
export { NavSelectorComponent, NavSelectorPopoverItemComponent };
|
|
479
|
-
export type { NavSelectorCategory, NavSelectorCategoryEmptyStateActionEvent, NavSelectorEntry, NavSelectorGroup, NavSelectorLeaf, NavSelectorLeafAction, NavSelectorLeafActionClickedEvent, NavSelectorLeafDetails, NavSelectorLeafTags,
|
|
499
|
+
export type { NavSelectorCategory, NavSelectorCategoryEmptyStateActionEvent, NavSelectorEntry, NavSelectorGroup, NavSelectorI18n, NavSelectorLeaf, NavSelectorLeafAction, NavSelectorLeafActionClickedEvent, NavSelectorLeafDetails, NavSelectorLeafTags, NodeAccessibility };
|
|
Binary file
|