@agorapulse/ui-components 20.0.0 → 20.0.1
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.0.1.tgz +0 -0
- package/fesm2022/agorapulse-ui-components-nav-selector-testing.mjs +97 -0
- package/fesm2022/agorapulse-ui-components-nav-selector-testing.mjs.map +1 -0
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs +14 -15
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs.map +1 -1
- package/nav-selector/index.d.ts +4 -2
- package/nav-selector/testing/index.d.ts +69 -0
- package/package.json +49 -45
- package/agorapulse-ui-components-20.0.0.tgz +0 -0
package/nav-selector/index.d.ts
CHANGED
|
@@ -111,6 +111,8 @@ interface NavSelectorLeafDetails {
|
|
|
111
111
|
uid: string;
|
|
112
112
|
/** Counter to display on the entry */
|
|
113
113
|
counter: number | null;
|
|
114
|
+
/** If true, excludes this from the counter sum */
|
|
115
|
+
excludedCounterSum: boolean;
|
|
114
116
|
/** Displayed name of the node */
|
|
115
117
|
name: string;
|
|
116
118
|
/** Translation of the error on the leaf */
|
|
@@ -285,7 +287,6 @@ declare class NavSelectorState {
|
|
|
285
287
|
entries: _angular_core.WritableSignal<InternalNavSelectorEntry[]>;
|
|
286
288
|
private multipleModeEnabled;
|
|
287
289
|
private _texts;
|
|
288
|
-
private lastSelectedUids;
|
|
289
290
|
isMultipleModeEnabled: _angular_core.WritableSignal<boolean>;
|
|
290
291
|
search: _angular_core.WritableSignal<string>;
|
|
291
292
|
noResults: _angular_core.Signal<boolean>;
|
|
@@ -339,6 +340,7 @@ declare class NavSelectorComponent implements OnInit {
|
|
|
339
340
|
selectedEntryUids: _angular_core.ModelSignal<string[]>;
|
|
340
341
|
actionClicked: _angular_core.OutputEmitterRef<NavSelectorLeafActionClickedEvent>;
|
|
341
342
|
headerProjection: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
343
|
+
contentHeaderProjection: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
342
344
|
footerProjection: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
343
345
|
displayFooter: _angular_core.Signal<boolean>;
|
|
344
346
|
expansionState: _angular_core.Signal<"expanded" | "minified">;
|
|
@@ -356,7 +358,7 @@ declare class NavSelectorComponent implements OnInit {
|
|
|
356
358
|
private initializeExpandedState;
|
|
357
359
|
clickExpandButton(): void;
|
|
358
360
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavSelectorComponent, never>;
|
|
359
|
-
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", "footerProjection"], never, true, never>;
|
|
361
|
+
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>;
|
|
360
362
|
}
|
|
361
363
|
|
|
362
364
|
export { NavSelectorComponent, NavSelectorPopoverItemComponent };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Usage Example:
|
|
3
|
+
*
|
|
4
|
+
* import { generateGroupElements, generateLeafElements } from './nav-selector-entry.mock';
|
|
5
|
+
*
|
|
6
|
+
* const mockNavSelectorEntries = [
|
|
7
|
+
* // Generate 30 groups with children using default settings
|
|
8
|
+
* ...generateGroupElements({
|
|
9
|
+
* count: 30,
|
|
10
|
+
* }),
|
|
11
|
+
*
|
|
12
|
+
* // Generate individual leaf elements without groups
|
|
13
|
+
* ...generateLeafElements({
|
|
14
|
+
* count: 1,
|
|
15
|
+
* }),
|
|
16
|
+
* ];
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Utility function to generate leaf type elements
|
|
20
|
+
* @param options Configuration options for generating leaf elements
|
|
21
|
+
* @returns Array of leaf elements
|
|
22
|
+
*/
|
|
23
|
+
declare function generateLeafElements(options: {
|
|
24
|
+
count: number;
|
|
25
|
+
uidPrefix?: string;
|
|
26
|
+
aliasPrefix?: string;
|
|
27
|
+
startUid?: number;
|
|
28
|
+
networks?: string[];
|
|
29
|
+
pictureUrlPattern?: string;
|
|
30
|
+
disableReasonFrequency?: number;
|
|
31
|
+
tokenInvalidFrequency?: number;
|
|
32
|
+
featureLockedFrequency?: number;
|
|
33
|
+
}): {
|
|
34
|
+
uid: string;
|
|
35
|
+
counter: null;
|
|
36
|
+
alias: string;
|
|
37
|
+
pictureUrl: string;
|
|
38
|
+
disableReason: string | null;
|
|
39
|
+
missingPermission: boolean;
|
|
40
|
+
network: string;
|
|
41
|
+
actions: never[];
|
|
42
|
+
details: never[];
|
|
43
|
+
tokenInvalid: boolean;
|
|
44
|
+
featureLocked: boolean;
|
|
45
|
+
type: "LEAF";
|
|
46
|
+
}[];
|
|
47
|
+
/**
|
|
48
|
+
* Utility function to generate group type elements with children
|
|
49
|
+
* @param options Configuration options for generating group elements
|
|
50
|
+
* @returns Array of group elements
|
|
51
|
+
*/
|
|
52
|
+
declare function generateGroupElements(options: {
|
|
53
|
+
count: number;
|
|
54
|
+
startGroupId?: number;
|
|
55
|
+
categories?: string[];
|
|
56
|
+
childrenCounts?: number[];
|
|
57
|
+
uidPrefix?: string;
|
|
58
|
+
childUidPrefix?: string;
|
|
59
|
+
childAliasPrefix?: string;
|
|
60
|
+
startChildUid?: number;
|
|
61
|
+
childUidIncrement?: number;
|
|
62
|
+
networks?: string[];
|
|
63
|
+
pictureUrlPattern?: string;
|
|
64
|
+
disableReasonFrequency?: number;
|
|
65
|
+
tokenInvalidFrequency?: number;
|
|
66
|
+
featureLockedFrequency?: number;
|
|
67
|
+
}): any;
|
|
68
|
+
|
|
69
|
+
export { generateGroupElements, generateLeafElements };
|
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.0.
|
|
4
|
+
"version": "20.0.1",
|
|
5
5
|
"author": "Benoit Hediard",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://github.com/agorapulse/design",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@agorapulse/ui-symbol": "^20.0.
|
|
16
|
-
"@agorapulse/ui-theme": "^20.0.
|
|
17
|
-
"@agorapulse/ui-animations": "^20.0.
|
|
15
|
+
"@agorapulse/ui-symbol": "^20.0.1",
|
|
16
|
+
"@agorapulse/ui-theme": "^20.0.1",
|
|
17
|
+
"@agorapulse/ui-animations": "^20.0.1",
|
|
18
18
|
"@angular/cdk": "20.1.3",
|
|
19
19
|
"@angular/common": "20.1.3",
|
|
20
20
|
"@angular/core": "20.1.3",
|
|
@@ -39,10 +39,6 @@
|
|
|
39
39
|
"types": "./action-dropdown/index.d.ts",
|
|
40
40
|
"default": "./fesm2022/agorapulse-ui-components-action-dropdown.mjs"
|
|
41
41
|
},
|
|
42
|
-
"./autocomplete": {
|
|
43
|
-
"types": "./autocomplete/index.d.ts",
|
|
44
|
-
"default": "./fesm2022/agorapulse-ui-components-autocomplete.mjs"
|
|
45
|
-
},
|
|
46
42
|
"./add-comment": {
|
|
47
43
|
"types": "./add-comment/index.d.ts",
|
|
48
44
|
"default": "./fesm2022/agorapulse-ui-components-add-comment.mjs"
|
|
@@ -55,6 +51,10 @@
|
|
|
55
51
|
"types": "./avatar/index.d.ts",
|
|
56
52
|
"default": "./fesm2022/agorapulse-ui-components-avatar.mjs"
|
|
57
53
|
},
|
|
54
|
+
"./autocomplete": {
|
|
55
|
+
"types": "./autocomplete/index.d.ts",
|
|
56
|
+
"default": "./fesm2022/agorapulse-ui-components-autocomplete.mjs"
|
|
57
|
+
},
|
|
58
58
|
"./button": {
|
|
59
59
|
"types": "./button/index.d.ts",
|
|
60
60
|
"default": "./fesm2022/agorapulse-ui-components-button.mjs"
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"types": "./checkbox/index.d.ts",
|
|
64
64
|
"default": "./fesm2022/agorapulse-ui-components-checkbox.mjs"
|
|
65
65
|
},
|
|
66
|
-
"./confirm-modal": {
|
|
67
|
-
"types": "./confirm-modal/index.d.ts",
|
|
68
|
-
"default": "./fesm2022/agorapulse-ui-components-confirm-modal.mjs"
|
|
69
|
-
},
|
|
70
66
|
"./close-button": {
|
|
71
67
|
"types": "./close-button/index.d.ts",
|
|
72
68
|
"default": "./fesm2022/agorapulse-ui-components-close-button.mjs"
|
|
73
69
|
},
|
|
70
|
+
"./confirm-modal": {
|
|
71
|
+
"types": "./confirm-modal/index.d.ts",
|
|
72
|
+
"default": "./fesm2022/agorapulse-ui-components-confirm-modal.mjs"
|
|
73
|
+
},
|
|
74
74
|
"./directives": {
|
|
75
75
|
"types": "./directives/index.d.ts",
|
|
76
76
|
"default": "./fesm2022/agorapulse-ui-components-directives.mjs"
|
|
@@ -87,10 +87,6 @@
|
|
|
87
87
|
"types": "./dot-stepper/index.d.ts",
|
|
88
88
|
"default": "./fesm2022/agorapulse-ui-components-dot-stepper.mjs"
|
|
89
89
|
},
|
|
90
|
-
"./form-message": {
|
|
91
|
-
"types": "./form-message/index.d.ts",
|
|
92
|
-
"default": "./fesm2022/agorapulse-ui-components-form-message.mjs"
|
|
93
|
-
},
|
|
94
90
|
"./form-field": {
|
|
95
91
|
"types": "./form-field/index.d.ts",
|
|
96
92
|
"default": "./fesm2022/agorapulse-ui-components-form-field.mjs"
|
|
@@ -103,34 +99,34 @@
|
|
|
103
99
|
"types": "./input/index.d.ts",
|
|
104
100
|
"default": "./fesm2022/agorapulse-ui-components-input.mjs"
|
|
105
101
|
},
|
|
106
|
-
"./input-group": {
|
|
107
|
-
"types": "./input-group/index.d.ts",
|
|
108
|
-
"default": "./fesm2022/agorapulse-ui-components-input-group.mjs"
|
|
109
|
-
},
|
|
110
102
|
"./infobox": {
|
|
111
103
|
"types": "./infobox/index.d.ts",
|
|
112
104
|
"default": "./fesm2022/agorapulse-ui-components-infobox.mjs"
|
|
113
105
|
},
|
|
106
|
+
"./input-group": {
|
|
107
|
+
"types": "./input-group/index.d.ts",
|
|
108
|
+
"default": "./fesm2022/agorapulse-ui-components-input-group.mjs"
|
|
109
|
+
},
|
|
114
110
|
"./input-search": {
|
|
115
111
|
"types": "./input-search/index.d.ts",
|
|
116
112
|
"default": "./fesm2022/agorapulse-ui-components-input-search.mjs"
|
|
117
113
|
},
|
|
118
|
-
"./
|
|
119
|
-
"types": "./
|
|
120
|
-
"default": "./fesm2022/agorapulse-ui-components-
|
|
114
|
+
"./form-message": {
|
|
115
|
+
"types": "./form-message/index.d.ts",
|
|
116
|
+
"default": "./fesm2022/agorapulse-ui-components-form-message.mjs"
|
|
121
117
|
},
|
|
122
118
|
"./labels": {
|
|
123
119
|
"types": "./labels/index.d.ts",
|
|
124
120
|
"default": "./fesm2022/agorapulse-ui-components-labels.mjs"
|
|
125
121
|
},
|
|
122
|
+
"./labels-selector": {
|
|
123
|
+
"types": "./labels-selector/index.d.ts",
|
|
124
|
+
"default": "./fesm2022/agorapulse-ui-components-labels-selector.mjs"
|
|
125
|
+
},
|
|
126
126
|
"./media-display-overlay": {
|
|
127
127
|
"types": "./media-display-overlay/index.d.ts",
|
|
128
128
|
"default": "./fesm2022/agorapulse-ui-components-media-display-overlay.mjs"
|
|
129
129
|
},
|
|
130
|
-
"./neo-datepicker": {
|
|
131
|
-
"types": "./neo-datepicker/index.d.ts",
|
|
132
|
-
"default": "./fesm2022/agorapulse-ui-components-neo-datepicker.mjs"
|
|
133
|
-
},
|
|
134
130
|
"./modal": {
|
|
135
131
|
"types": "./modal/index.d.ts",
|
|
136
132
|
"default": "./fesm2022/agorapulse-ui-components-modal.mjs"
|
|
@@ -143,26 +139,30 @@
|
|
|
143
139
|
"types": "./notification/index.d.ts",
|
|
144
140
|
"default": "./fesm2022/agorapulse-ui-components-notification.mjs"
|
|
145
141
|
},
|
|
146
|
-
"./
|
|
147
|
-
"types": "./
|
|
148
|
-
"default": "./fesm2022/agorapulse-ui-components-
|
|
149
|
-
},
|
|
150
|
-
"./phone-number-input": {
|
|
151
|
-
"types": "./phone-number-input/index.d.ts",
|
|
152
|
-
"default": "./fesm2022/agorapulse-ui-components-phone-number-input.mjs"
|
|
142
|
+
"./neo-datepicker": {
|
|
143
|
+
"types": "./neo-datepicker/index.d.ts",
|
|
144
|
+
"default": "./fesm2022/agorapulse-ui-components-neo-datepicker.mjs"
|
|
153
145
|
},
|
|
154
146
|
"./paginator": {
|
|
155
147
|
"types": "./paginator/index.d.ts",
|
|
156
148
|
"default": "./fesm2022/agorapulse-ui-components-paginator.mjs"
|
|
157
149
|
},
|
|
158
|
-
"./
|
|
159
|
-
"types": "./
|
|
160
|
-
"default": "./fesm2022/agorapulse-ui-components-
|
|
150
|
+
"./password-input": {
|
|
151
|
+
"types": "./password-input/index.d.ts",
|
|
152
|
+
"default": "./fesm2022/agorapulse-ui-components-password-input.mjs"
|
|
161
153
|
},
|
|
162
154
|
"./radio": {
|
|
163
155
|
"types": "./radio/index.d.ts",
|
|
164
156
|
"default": "./fesm2022/agorapulse-ui-components-radio.mjs"
|
|
165
157
|
},
|
|
158
|
+
"./popmenu": {
|
|
159
|
+
"types": "./popmenu/index.d.ts",
|
|
160
|
+
"default": "./fesm2022/agorapulse-ui-components-popmenu.mjs"
|
|
161
|
+
},
|
|
162
|
+
"./phone-number-input": {
|
|
163
|
+
"types": "./phone-number-input/index.d.ts",
|
|
164
|
+
"default": "./fesm2022/agorapulse-ui-components-phone-number-input.mjs"
|
|
165
|
+
},
|
|
166
166
|
"./range-slider": {
|
|
167
167
|
"types": "./range-slider/index.d.ts",
|
|
168
168
|
"default": "./fesm2022/agorapulse-ui-components-range-slider.mjs"
|
|
@@ -171,14 +171,14 @@
|
|
|
171
171
|
"types": "./select/index.d.ts",
|
|
172
172
|
"default": "./fesm2022/agorapulse-ui-components-select.mjs"
|
|
173
173
|
},
|
|
174
|
-
"./slide-toggle": {
|
|
175
|
-
"types": "./slide-toggle/index.d.ts",
|
|
176
|
-
"default": "./fesm2022/agorapulse-ui-components-slide-toggle.mjs"
|
|
177
|
-
},
|
|
178
174
|
"./snackbars-thread": {
|
|
179
175
|
"types": "./snackbars-thread/index.d.ts",
|
|
180
176
|
"default": "./fesm2022/agorapulse-ui-components-snackbars-thread.mjs"
|
|
181
177
|
},
|
|
178
|
+
"./slide-toggle": {
|
|
179
|
+
"types": "./slide-toggle/index.d.ts",
|
|
180
|
+
"default": "./fesm2022/agorapulse-ui-components-slide-toggle.mjs"
|
|
181
|
+
},
|
|
182
182
|
"./social-button": {
|
|
183
183
|
"types": "./social-button/index.d.ts",
|
|
184
184
|
"default": "./fesm2022/agorapulse-ui-components-social-button.mjs"
|
|
@@ -187,14 +187,14 @@
|
|
|
187
187
|
"types": "./split-button/index.d.ts",
|
|
188
188
|
"default": "./fesm2022/agorapulse-ui-components-split-button.mjs"
|
|
189
189
|
},
|
|
190
|
-
"./status-card": {
|
|
191
|
-
"types": "./status-card/index.d.ts",
|
|
192
|
-
"default": "./fesm2022/agorapulse-ui-components-status-card.mjs"
|
|
193
|
-
},
|
|
194
190
|
"./status": {
|
|
195
191
|
"types": "./status/index.d.ts",
|
|
196
192
|
"default": "./fesm2022/agorapulse-ui-components-status.mjs"
|
|
197
193
|
},
|
|
194
|
+
"./status-card": {
|
|
195
|
+
"types": "./status-card/index.d.ts",
|
|
196
|
+
"default": "./fesm2022/agorapulse-ui-components-status-card.mjs"
|
|
197
|
+
},
|
|
198
198
|
"./stepper": {
|
|
199
199
|
"types": "./stepper/index.d.ts",
|
|
200
200
|
"default": "./fesm2022/agorapulse-ui-components-stepper.mjs"
|
|
@@ -230,6 +230,10 @@
|
|
|
230
230
|
"./legacy/textarea": {
|
|
231
231
|
"types": "./legacy/textarea/index.d.ts",
|
|
232
232
|
"default": "./fesm2022/agorapulse-ui-components-legacy-textarea.mjs"
|
|
233
|
+
},
|
|
234
|
+
"./nav-selector/testing": {
|
|
235
|
+
"types": "./nav-selector/testing/index.d.ts",
|
|
236
|
+
"default": "./fesm2022/agorapulse-ui-components-nav-selector-testing.mjs"
|
|
233
237
|
}
|
|
234
238
|
},
|
|
235
239
|
"sideEffects": false,
|
|
Binary file
|