@agorapulse/ui-components 20.3.19 → 20.3.21
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.3.21.tgz +0 -0
- package/avatar-group/index.d.ts +29 -0
- package/button/index.d.ts +2 -2
- package/fesm2022/agorapulse-ui-components-avatar-group.mjs +43 -0
- package/fesm2022/agorapulse-ui-components-avatar-group.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-button.mjs +5 -5
- package/fesm2022/agorapulse-ui-components-button.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-icon-button.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-icon-button.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs +21 -13
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs.map +1 -1
- package/nav-selector/index.d.ts +12 -9
- package/package.json +5 -1
- package/agorapulse-ui-components-20.3.19.tgz +0 -0
package/nav-selector/index.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { AvatarNetwork } from '@agorapulse/ui-components/avatar';
|
|
2
2
|
import { agorapulseSymbol } from '@agorapulse/ui-symbol';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import { OnInit, TemplateRef } from '@angular/core';
|
|
4
|
+
import { Signal, OnInit, TemplateRef } from '@angular/core';
|
|
5
5
|
import * as i1 from '@agorapulse/ui-components/directives';
|
|
6
6
|
import { BaseButtonDirective } from '@agorapulse/ui-components/directives';
|
|
7
7
|
|
|
8
|
+
declare const NavSelectorStyle: {
|
|
9
|
+
readonly DEFAULT: "default";
|
|
10
|
+
readonly MENU: "menu";
|
|
11
|
+
};
|
|
12
|
+
type NavSelectorStyle = (typeof NavSelectorStyle)[keyof typeof NavSelectorStyle];
|
|
8
13
|
type NavSelectorLeafActionClickedEvent = {
|
|
9
14
|
/** Name of the action that has been clicked */
|
|
10
15
|
actionName: string;
|
|
@@ -68,8 +73,6 @@ type NavSelectorLeafAction = {
|
|
|
68
73
|
* Represent final entry of the nav selector
|
|
69
74
|
*/
|
|
70
75
|
type NavSelectorLeaf = {
|
|
71
|
-
/** When true, the avatar will be hidden */
|
|
72
|
-
hideAvatar: boolean;
|
|
73
76
|
/** Picture url to display on the avatar, optional */
|
|
74
77
|
pictureUrl: string | null;
|
|
75
78
|
/** Counter to display on the entry, to ignore if the leaf has details */
|
|
@@ -243,8 +246,6 @@ type InternalNavSelectorCategory = {
|
|
|
243
246
|
* Represent final entry of the nav selector
|
|
244
247
|
*/
|
|
245
248
|
type InternalNavSelectorLeaf = {
|
|
246
|
-
/** When true, the avatar will be hidden */
|
|
247
|
-
hideAvatar: boolean;
|
|
248
249
|
/** Indicates if the actions dropdown could be display. Should not be display if the leaf has an error status. */
|
|
249
250
|
actionsDisplayable: boolean;
|
|
250
251
|
/** Actions that can be performed on the leaf */
|
|
@@ -334,13 +335,14 @@ declare class NavSelectorPopoverItemComponent {
|
|
|
334
335
|
*/
|
|
335
336
|
declare class NavSelectorState {
|
|
336
337
|
_entries: _angular_core.WritableSignal<InternalNavSelectorEntry[]>;
|
|
337
|
-
entries:
|
|
338
|
+
entries: Signal<InternalNavSelectorEntry[]>;
|
|
339
|
+
style: Signal<NavSelectorStyle>;
|
|
338
340
|
private multipleModeEnabled;
|
|
339
341
|
private _texts;
|
|
340
342
|
isMultipleModeEnabled: _angular_core.WritableSignal<boolean>;
|
|
341
343
|
search: _angular_core.WritableSignal<string>;
|
|
342
|
-
noResults:
|
|
343
|
-
texts:
|
|
344
|
+
noResults: Signal<boolean>;
|
|
345
|
+
texts: Signal<NavSelectorTranslatedTexts>;
|
|
344
346
|
expanded: _angular_core.WritableSignal<boolean>;
|
|
345
347
|
previousSelectedUids: string[];
|
|
346
348
|
private selectedUidsChangeCallback;
|
|
@@ -381,6 +383,7 @@ declare class NavSelectorComponent implements OnInit {
|
|
|
381
383
|
navSelectorEntries: _angular_core.InputSignal<NavSelectorEntry[]>;
|
|
382
384
|
translatedTexts: _angular_core.InputSignal<NavSelectorTranslatedTexts>;
|
|
383
385
|
multipleModeEnabled: _angular_core.InputSignal<boolean>;
|
|
386
|
+
style: _angular_core.InputSignal<NavSelectorStyle>;
|
|
384
387
|
detailsDisplayedLimit: _angular_core.InputSignal<number>;
|
|
385
388
|
embedded: _angular_core.InputSignal<boolean>;
|
|
386
389
|
/**
|
|
@@ -420,7 +423,7 @@ declare class NavSelectorComponent implements OnInit {
|
|
|
420
423
|
private initializeExpandedState;
|
|
421
424
|
clickExpandButton(): void;
|
|
422
425
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavSelectorComponent, never>;
|
|
423
|
-
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"; "visibleAccountsChange": "visibleAccountsChange"; }, ["headerProjection", "contentHeaderProjection", "footerProjection"], never, true, never>;
|
|
426
|
+
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; }; "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>;
|
|
424
427
|
}
|
|
425
428
|
|
|
426
429
|
export { NavSelectorComponent, NavSelectorPopoverItemComponent };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agorapulse/ui-components",
|
|
3
3
|
"description": "Agorapulse UI Components Library",
|
|
4
|
-
"version": "20.3.
|
|
4
|
+
"version": "20.3.21",
|
|
5
5
|
"author": "Benoit Hediard",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
"types": "./avatar/index.d.ts",
|
|
53
53
|
"default": "./fesm2022/agorapulse-ui-components-avatar.mjs"
|
|
54
54
|
},
|
|
55
|
+
"./avatar-group": {
|
|
56
|
+
"types": "./avatar-group/index.d.ts",
|
|
57
|
+
"default": "./fesm2022/agorapulse-ui-components-avatar-group.mjs"
|
|
58
|
+
},
|
|
55
59
|
"./badge": {
|
|
56
60
|
"types": "./badge/index.d.ts",
|
|
57
61
|
"default": "./fesm2022/agorapulse-ui-components-badge.mjs"
|
|
Binary file
|