@agorapulse/ui-components 18.0.13 → 18.0.15
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-18.0.15.tgz +0 -0
- package/avatar/avatar.component.d.ts +1 -1
- package/checkbox/checkbox.component.d.ts +1 -1
- package/esm2022/add-comment/add-comment.component.mjs +3 -3
- package/esm2022/checkbox/checkbox.component.mjs +5 -4
- package/esm2022/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/labels/label-list.component.mjs +3 -3
- package/esm2022/labels-selector/labels-selector.component.mjs +3 -3
- package/esm2022/media-display-overlay/media-display-overlay-dialog.component.mjs +3 -3
- package/esm2022/modal/modal.component.mjs +3 -3
- package/esm2022/nav-selector/directives/nav-selector-popover-trigger.directive.mjs +71 -0
- package/esm2022/nav-selector/nav-selector-category/nav-selector-category.component.mjs +15 -12
- package/esm2022/nav-selector/nav-selector-group/nav-selector-group.component.mjs +17 -14
- package/esm2022/nav-selector/nav-selector-leaf/nav-selector-leaf.component.mjs +38 -94
- package/esm2022/nav-selector/nav-selector-leaf/nav-selector-leaf.presenter.mjs +2 -2
- package/esm2022/nav-selector/nav-selector-leaf-detail/nav-selector-leaf-detail.component.mjs +6 -6
- package/esm2022/nav-selector/nav-selector-leaf-details/nav-selector-leaf-details.component.mjs +12 -9
- package/esm2022/nav-selector/nav-selector-popover/nav-selector-popover-item.component.mjs +14 -0
- package/esm2022/nav-selector/nav-selector-popover/nav-selector-popover.component.mjs +127 -0
- package/esm2022/nav-selector/nav-selector.component.mjs +45 -23
- package/esm2022/nav-selector/nav-selector.mjs +1 -1
- package/esm2022/nav-selector/nav-selector.state.mjs +35 -11
- package/esm2022/nav-selector/utils/leaf.utils.mjs +12 -3
- package/esm2022/nav-selector/utils/nav-selector.accessibility.mjs +22 -14
- package/esm2022/nav-selector/utils/nav-selector.builder.mjs +4 -2
- package/esm2022/nav-selector/utils/nav-selector.filter.mjs +49 -11
- package/esm2022/nav-selector/utils/nav-selector.folding.mjs +26 -23
- package/esm2022/nav-selector/utils/nav-selector.merger.mjs +76 -0
- package/esm2022/nav-selector/utils/nav-selector.minifying.mjs +14 -9
- package/esm2022/nav-selector/utils/nav-selector.multi-select.mjs +2 -2
- package/esm2022/nav-selector/utils/nav-selector.single-select.mjs +46 -23
- package/esm2022/neo-datepicker/neo-datepicker.component.mjs +3 -3
- package/esm2022/notification/notification.component.mjs +3 -3
- package/esm2022/paginator/paginator-button/paginator-button.component.mjs +2 -2
- package/esm2022/password-input/password-input.component.mjs +3 -3
- package/esm2022/popmenu/popmenu.component.mjs +3 -3
- package/esm2022/slide-toggle/slide-toggle.component.mjs +3 -3
- package/esm2022/snackbars-thread/component/snackbars-thread.component.mjs +3 -3
- package/esm2022/stepper/stepper.component.mjs +3 -3
- package/fesm2022/agorapulse-ui-components-add-comment.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-add-comment.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-checkbox.mjs +4 -3
- package/fesm2022/agorapulse-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-datepicker.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-labels-selector.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-labels-selector.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-labels.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-labels.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-media-display-overlay.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-media-display-overlay.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-modal.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-modal.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs +599 -238
- package/fesm2022/agorapulse-ui-components-nav-selector.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-neo-datepicker.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-neo-datepicker.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-notification.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-notification.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-paginator.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-password-input.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-password-input.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-popmenu.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-popmenu.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-slide-toggle.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-slide-toggle.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-snackbars-thread.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-snackbars-thread.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-stepper.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-stepper.mjs.map +1 -1
- package/nav-selector/directives/nav-selector-popover-trigger.directive.d.ts +25 -0
- package/nav-selector/nav-selector-group/nav-selector-group.component.d.ts +1 -1
- package/nav-selector/nav-selector-leaf/nav-selector-leaf.component.d.ts +5 -20
- package/nav-selector/nav-selector-leaf/nav-selector-leaf.presenter.d.ts +1 -1
- package/nav-selector/nav-selector-leaf-detail/nav-selector-leaf-detail.component.d.ts +1 -1
- package/nav-selector/nav-selector-popover/nav-selector-popover-item.component.d.ts +6 -0
- package/nav-selector/nav-selector-popover/nav-selector-popover.component.d.ts +39 -0
- package/nav-selector/nav-selector.component.d.ts +6 -4
- package/nav-selector/nav-selector.d.ts +6 -0
- package/nav-selector/nav-selector.state.d.ts +3 -2
- package/nav-selector/utils/leaf.utils.d.ts +15 -2
- package/nav-selector/utils/nav-selector.accessibility.d.ts +1 -1
- package/nav-selector/utils/nav-selector.filter.d.ts +3 -1
- package/nav-selector/utils/nav-selector.folding.d.ts +6 -3
- package/nav-selector/utils/nav-selector.merger.d.ts +23 -0
- package/nav-selector/utils/nav-selector.minifying.d.ts +4 -2
- package/nav-selector/utils/nav-selector.single-select.d.ts +2 -0
- package/package.json +1 -1
- package/agorapulse-ui-components-18.0.13.tgz +0 -0
|
@@ -10,9 +10,10 @@ export declare class NavSelectorFolding {
|
|
|
10
10
|
*
|
|
11
11
|
* @param entries nav selector entries
|
|
12
12
|
* @param entryUid the entry uid to toggle
|
|
13
|
+
* @param multipleMode to update the focusable state of leaves and details correctly.
|
|
13
14
|
* @param minified true if the nav selector is minified. Needed for leaf as they are not foldable in minified mode
|
|
14
15
|
*/
|
|
15
|
-
static toggleFolding<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, minified: boolean): InternalNavSelectorEntry[];
|
|
16
|
+
static toggleFolding<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, multipleMode: boolean, minified: boolean): InternalNavSelectorEntry[];
|
|
16
17
|
/**
|
|
17
18
|
* Fold an entry.
|
|
18
19
|
*
|
|
@@ -21,9 +22,10 @@ export declare class NavSelectorFolding {
|
|
|
21
22
|
*
|
|
22
23
|
* @param entries nav selector entries
|
|
23
24
|
* @param entryUid the entry uid to fold
|
|
25
|
+
* @param multipleMode to update the focusable state of leaves and details correctly.
|
|
24
26
|
* @param minified true if the nav selector is minified. Needed for leaf as they are not foldable in minified mode
|
|
25
27
|
*/
|
|
26
|
-
static fold<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, minified: boolean): InternalNavSelectorEntry[];
|
|
28
|
+
static fold<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, multipleMode: boolean, minified: boolean): InternalNavSelectorEntry[];
|
|
27
29
|
/**
|
|
28
30
|
* Unfold an entry.
|
|
29
31
|
*
|
|
@@ -32,9 +34,10 @@ export declare class NavSelectorFolding {
|
|
|
32
34
|
*
|
|
33
35
|
* @param entries nav selector entries
|
|
34
36
|
* @param entryUid the entry uid to unfold
|
|
37
|
+
* @param multipleMode to update the focusable state of leaves and details correctly.
|
|
35
38
|
* @param minified true if the nav selector is minified. Needed for leaf as they are not foldable in minified mode
|
|
36
39
|
*/
|
|
37
|
-
static unfold<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, minified: boolean): InternalNavSelectorEntry[];
|
|
40
|
+
static unfold<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string, multipleMode: boolean, minified: boolean): InternalNavSelectorEntry[];
|
|
38
41
|
private static toggleEntryFolding;
|
|
39
42
|
private static foldEntry;
|
|
40
43
|
private static unfoldEntry;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InternalNavSelectorEntry } from '../nav-selector';
|
|
2
|
+
/**
|
|
3
|
+
* NavSelectorMerger is a utility class that merges old entries into new entries.
|
|
4
|
+
* It is used to keep some previous properties of the previous state. Ex: folded, selected, focused, etc.
|
|
5
|
+
*/
|
|
6
|
+
export declare class NavSelectorMerger {
|
|
7
|
+
/**
|
|
8
|
+
* Merges the old entries into the new entries.
|
|
9
|
+
*
|
|
10
|
+
* Modify directly the new entries as new entries are generated from scratch so no need to destructure them to have a new reference.
|
|
11
|
+
*
|
|
12
|
+
* @param newEntries
|
|
13
|
+
* @param oldEntries
|
|
14
|
+
*
|
|
15
|
+
* @returns the new entries with the old entries merged into them
|
|
16
|
+
*/
|
|
17
|
+
static mergeInternalNavSelectorEntries(newEntries: InternalNavSelectorEntry[], oldEntries: InternalNavSelectorEntry[]): InternalNavSelectorEntry[];
|
|
18
|
+
private static merge;
|
|
19
|
+
private static mergeNode;
|
|
20
|
+
private static mergeGroup;
|
|
21
|
+
private static mergeLeaf;
|
|
22
|
+
private static isInternalLeafLogicValid;
|
|
23
|
+
}
|
|
@@ -10,9 +10,10 @@ export declare class NavSelectorMinifying {
|
|
|
10
10
|
* Detail are not focusable when minified.
|
|
11
11
|
*
|
|
12
12
|
* @param entries The entries to minify.
|
|
13
|
+
* @param multipleMode to update the focusable state of leaves correctly.
|
|
13
14
|
* @returns The modified entries.
|
|
14
15
|
*/
|
|
15
|
-
static minify<T extends InternalNavSelectorEntry>(entries: T[]): InternalNavSelectorEntry[];
|
|
16
|
+
static minify<T extends InternalNavSelectorEntry>(entries: T[], multipleMode: boolean): InternalNavSelectorEntry[];
|
|
16
17
|
/**
|
|
17
18
|
* When expanding the nav selector, compute the focusable state of the entries.
|
|
18
19
|
*
|
|
@@ -20,8 +21,9 @@ export declare class NavSelectorMinifying {
|
|
|
20
21
|
* Detail are focusable when expanded.
|
|
21
22
|
*
|
|
22
23
|
* @param entries The entries to minify.
|
|
24
|
+
* @param multipleMode to update the focusable state of leaves and details correctly.
|
|
23
25
|
* @returns The modified entries.
|
|
24
26
|
*/
|
|
25
|
-
static expand<T extends InternalNavSelectorEntry>(entries: T[]): InternalNavSelectorEntry[];
|
|
27
|
+
static expand<T extends InternalNavSelectorEntry>(entries: T[], multipleMode: boolean): InternalNavSelectorEntry[];
|
|
26
28
|
private static compute;
|
|
27
29
|
}
|
|
@@ -11,5 +11,7 @@ export declare class NavSelectorSingleSelect {
|
|
|
11
11
|
static select<T extends InternalNavSelectorEntry>(entries: T[], entryUid: string): InternalNavSelectorEntry[];
|
|
12
12
|
private static selectALeaf;
|
|
13
13
|
private static selectALeafWithDetails;
|
|
14
|
+
private static selectALeafWitDetailsNotDisplayable;
|
|
15
|
+
private static selectALeafWithDisplayableDetails;
|
|
14
16
|
private static selectALeafWithoutDetails;
|
|
15
17
|
}
|
package/package.json
CHANGED
|
Binary file
|