@coolon/angular-ui-powerups 16.1.0-alpha.309 → 16.1.0-alpha.310
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/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +34 -8
- package/fesm2022/coolon-angular-ui-powerups.mjs +33 -7
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +11 -1
- package/package.json +1 -1
|
@@ -17,6 +17,8 @@ import * as i0 from "@angular/core";
|
|
|
17
17
|
* left out at both levels, so a parent with no child in scope goes too. Only two levels are shown; deeper places
|
|
18
18
|
* stay as tabs in their pages.
|
|
19
19
|
*
|
|
20
|
+
* Only the current place's group starts open, unless {@link groupsStartOpen} opens every group.
|
|
21
|
+
*
|
|
20
22
|
* The rail collapses to an icon strip from the Menu row, and expands over the content when the
|
|
21
23
|
* pointer rests on it. The pinned state is kept in localStorage under {@link persistKey}.
|
|
22
24
|
*
|
|
@@ -92,6 +94,12 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
|
|
|
92
94
|
* is shared by everyone using the browser, so include the user in the key for a per-user state.
|
|
93
95
|
*/
|
|
94
96
|
persistKey: string | null;
|
|
97
|
+
readonly groupsStartOpen$: MutableValueModel<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Every group starts open, not only the current place's. The user can still close any group but
|
|
100
|
+
* the current one, and arriving in a group they closed opens it again.
|
|
101
|
+
*/
|
|
102
|
+
accessor groupsStartOpen: boolean;
|
|
95
103
|
navEndTemplate: TemplateRef<any>;
|
|
96
104
|
/** The pointer has rested on the collapsed rail, so it is expanded over the content. */
|
|
97
105
|
readonly hovering$: MutableValueModel<boolean>;
|
|
@@ -108,6 +116,8 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
|
|
|
108
116
|
readonly currentPath$: ListModelChain<SidePlaceNavigationComponent.PathSegment>;
|
|
109
117
|
/** Groups the user has opened. The current place's group joins on arrival and stays. */
|
|
110
118
|
private readonly openGroups$;
|
|
119
|
+
/** Groups the user has closed, while {@link groupsStartOpen} has every group start open. */
|
|
120
|
+
private readonly closedGroups$;
|
|
111
121
|
readonly childListAnimation: {
|
|
112
122
|
value: string;
|
|
113
123
|
params: {
|
|
@@ -143,7 +153,7 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
|
|
|
143
153
|
private writePinnedState;
|
|
144
154
|
private readStorage;
|
|
145
155
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidePlaceNavigationComponent, never>;
|
|
146
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidePlaceNavigationComponent, "aup-side-place-navigation", never, { "expanded$": { "alias": "expanded$"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "collapsible": { "alias": "collapsible"; "required": false; }; "hoverExpandDelay": { "alias": "hoverExpandDelay"; "required": false; }; "persistKey": { "alias": "persistKey"; "required": false; }; }, {}, ["navEndTemplate"], never, false, never>;
|
|
156
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidePlaceNavigationComponent, "aup-side-place-navigation", never, { "expanded$": { "alias": "expanded$"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "collapsible": { "alias": "collapsible"; "required": false; }; "hoverExpandDelay": { "alias": "hoverExpandDelay"; "required": false; }; "persistKey": { "alias": "persistKey"; "required": false; }; "groupsStartOpen": { "alias": "groupsStartOpen"; "required": false; }; }, {}, ["navEndTemplate"], never, false, never>;
|
|
147
157
|
}
|
|
148
158
|
export declare namespace SidePlaceNavigationComponent {
|
|
149
159
|
/** A top-level entry in the rail: a leaf, or a group header with its children. */
|