@agorapulse/ui-components 20.1.10 → 20.1.11
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-20.1.11.tgz +0 -0
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs +10 -4
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs.map +1 -1
- package/nav-selector/index.d.ts +19 -1
- package/package.json +1 -1
- package/agorapulse-ui-components-20.1.10.tgz +0 -0
package/nav-selector/index.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ type NavSelectorLeafActionClickedEvent = {
|
|
|
11
11
|
/** Leaf on which the action has been clicked */
|
|
12
12
|
leafUid: string;
|
|
13
13
|
};
|
|
14
|
+
type NavSelectorCategoryEmptyStateActionEvent = {
|
|
15
|
+
/** Name of the action that has been clicked */
|
|
16
|
+
actionName: string;
|
|
17
|
+
};
|
|
14
18
|
/**
|
|
15
19
|
* As translation is not available in the DS, this all translations needed
|
|
16
20
|
*/
|
|
@@ -105,8 +109,19 @@ type NavSelectorCategory = {
|
|
|
105
109
|
folded: boolean;
|
|
106
110
|
/** Title of the empty state */
|
|
107
111
|
emptyStateTitle?: string;
|
|
112
|
+
/** Action of the empty state */
|
|
113
|
+
emptyStateAction?: NavSelectorEmptyStateAction;
|
|
108
114
|
type: 'CATEGORY';
|
|
109
115
|
} & NavSelectorBaseNode;
|
|
116
|
+
/**
|
|
117
|
+
* Represent the action available in the empty state
|
|
118
|
+
*/
|
|
119
|
+
type NavSelectorEmptyStateAction = {
|
|
120
|
+
name: string;
|
|
121
|
+
title: string;
|
|
122
|
+
id?: string;
|
|
123
|
+
symbolId?: agorapulseSymbol;
|
|
124
|
+
};
|
|
110
125
|
type NavSelectorEntry = NavSelectorLeaf | NavSelectorGroup | NavSelectorCategory;
|
|
111
126
|
/**
|
|
112
127
|
* Represent details of a leaf, they are used to allow to display more specific information about the leaf
|
|
@@ -199,6 +214,8 @@ type InternalNavSelectorCategory = {
|
|
|
199
214
|
folded: boolean;
|
|
200
215
|
/** Title of the empty state */
|
|
201
216
|
emptyStateTitle?: string;
|
|
217
|
+
/** Action of the empty state */
|
|
218
|
+
emptyStateAction?: NavSelectorEmptyStateAction;
|
|
202
219
|
type: 'CATEGORY';
|
|
203
220
|
} & InternalNavSelectorBaseNode;
|
|
204
221
|
/**
|
|
@@ -350,6 +367,7 @@ declare class NavSelectorComponent implements OnInit {
|
|
|
350
367
|
expandedStateLocalStorageKey: _angular_core.InputSignal<string | undefined>;
|
|
351
368
|
selectedEntryUids: _angular_core.ModelSignal<string[]>;
|
|
352
369
|
actionClicked: _angular_core.OutputEmitterRef<NavSelectorLeafActionClickedEvent>;
|
|
370
|
+
emptyStateActionClicked: _angular_core.OutputEmitterRef<NavSelectorCategoryEmptyStateActionEvent>;
|
|
353
371
|
headerProjection: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
354
372
|
contentHeaderProjection: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
355
373
|
footerProjection: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
@@ -375,7 +393,7 @@ declare class NavSelectorComponent implements OnInit {
|
|
|
375
393
|
private initializeExpandedState;
|
|
376
394
|
clickExpandButton(): void;
|
|
377
395
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavSelectorComponent, never>;
|
|
378
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavSelectorComponent, "ap-nav-selector", never, { "navSelectorEntries": { "alias": "navSelectorEntries"; "required": true; "isSignal": true; }; "translatedTexts": { "alias": "translatedTexts"; "required": true; "isSignal": true; }; "multipleModeEnabled": { "alias": "multipleModeEnabled"; "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"; "onExpansionStateChange": "onExpansionStateChange"; }, ["headerProjection", "contentHeaderProjection", "footerProjection"], never, true, never>;
|
|
396
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavSelectorComponent, "ap-nav-selector", never, { "navSelectorEntries": { "alias": "navSelectorEntries"; "required": true; "isSignal": true; }; "translatedTexts": { "alias": "translatedTexts"; "required": true; "isSignal": true; }; "multipleModeEnabled": { "alias": "multipleModeEnabled"; "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"; }, ["headerProjection", "contentHeaderProjection", "footerProjection"], never, true, never>;
|
|
379
397
|
}
|
|
380
398
|
|
|
381
399
|
export { NavSelectorComponent, NavSelectorPopoverItemComponent };
|
package/package.json
CHANGED
|
Binary file
|