@coolon/angular-ui-powerups 16.1.0-alpha.311 → 16.1.0-alpha.312
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 +48 -13
- package/fesm2022/coolon-angular-ui-powerups.mjs +47 -12
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +21 -4
- package/package.json +1 -1
|
@@ -20,7 +20,9 @@ import * as i0 from "@angular/core";
|
|
|
20
20
|
* Only the current place's group starts open, unless {@link groupsStartOpen} opens every group.
|
|
21
21
|
*
|
|
22
22
|
* The rail collapses to an icon strip from the Menu row, and expands over the content when the
|
|
23
|
-
* pointer rests on it.
|
|
23
|
+
* pointer rests on it. A touch has no hover, so on touch a tap on a collapsed group expands the rail
|
|
24
|
+
* over the content instead of navigating, with that group open; tapping a page, the backdrop, the
|
|
25
|
+
* Menu row or Esc closes it again. The pinned state is kept in localStorage under {@link persistKey}.
|
|
24
26
|
*
|
|
25
27
|
* {@link currentPath$} names where the user is the way the rail does, for a breadcrumb.
|
|
26
28
|
*
|
|
@@ -49,6 +51,7 @@ import * as i0 from "@angular/core";
|
|
|
49
51
|
* --nav-current-chevron-color: #757575; // the current group's chevron: it can't be collapsed
|
|
50
52
|
* --nav-focus-color: rgba(255, 255, 255, 0.6);
|
|
51
53
|
* --nav-overlay-shadow: 6px 0 18px rgba(0, 0, 0, 0.28); // the hover-expanded rail
|
|
54
|
+
* --nav-backdrop-color: rgba(0, 0, 0, 0.32); // behind the rail a tap expanded
|
|
52
55
|
* --nav-z-index: 100; // lifts the hover-expanded rail over the content
|
|
53
56
|
* }
|
|
54
57
|
*
|
|
@@ -103,9 +106,14 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
|
|
|
103
106
|
navEndTemplate: TemplateRef<any>;
|
|
104
107
|
/** The pointer has rested on the collapsed rail, so it is expanded over the content. */
|
|
105
108
|
readonly hovering$: MutableValueModel<boolean>;
|
|
106
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* A tap on a collapsed group has expanded the rail over the content, with that group open. It
|
|
111
|
+
* stays until the user goes somewhere or dismisses it: a touch never leaves, as a pointer does.
|
|
112
|
+
*/
|
|
113
|
+
readonly tapOpen$: MutableValueModel<boolean>;
|
|
114
|
+
/** Labels and children are shown: pinned expanded, or expanded over the content. */
|
|
107
115
|
readonly open$: BooleanValueModelChain;
|
|
108
|
-
/**
|
|
116
|
+
/** Expanded over the content, by hover or a tap, as opposed to pinned expanded beside it. */
|
|
109
117
|
readonly overlay$: BooleanValueModelChain;
|
|
110
118
|
readonly navItems$: ListModelChain<SidePlaceNavigationComponent.Item>;
|
|
111
119
|
/**
|
|
@@ -135,12 +143,21 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
|
|
|
135
143
|
protected animationsDisabled: boolean;
|
|
136
144
|
private readonly idPrefix;
|
|
137
145
|
private hoverTimer;
|
|
146
|
+
/** The pointer that pressed last, for the click it is about to make. */
|
|
147
|
+
private pressedWith;
|
|
138
148
|
private resetHandle;
|
|
139
149
|
constructor(router: PlaceRouter);
|
|
140
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* A group header toggles while the rail is open, and a touch on a collapsed one opens the rail
|
|
152
|
+
* with it; anything else navigates.
|
|
153
|
+
*/
|
|
141
154
|
activate(item: SidePlaceNavigationComponent.Item): void;
|
|
142
155
|
navigateTo(place: PlaceDefinition): void;
|
|
156
|
+
/** Pins the rail expanded or collapsed, or closes the rail a tap expanded. */
|
|
143
157
|
toggleMenu(): void;
|
|
158
|
+
/** Closes the rail a tap expanded over the content. */
|
|
159
|
+
dismiss(): void;
|
|
160
|
+
onRailPointerDown(event: PointerEvent): void;
|
|
144
161
|
expandMenu(): void;
|
|
145
162
|
collapseMenu(): void;
|
|
146
163
|
onRailEnter(event?: PointerEvent): void;
|