@coolon/angular-ui-powerups 16.1.0-alpha.311 → 16.1.0-alpha.313

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.
@@ -20,7 +20,10 @@ 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. The pinned state is kept in localStorage under {@link persistKey}.
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, showing that group's children alone, whatever
25
+ * {@link groupsStartOpen} says, so they open beside the finger; tapping a page, the backdrop, the
26
+ * Menu row or Esc closes it again. The pinned state is kept in localStorage under {@link persistKey}.
24
27
  *
25
28
  * {@link currentPath$} names where the user is the way the rail does, for a breadcrumb.
26
29
  *
@@ -49,6 +52,7 @@ import * as i0 from "@angular/core";
49
52
  * --nav-current-chevron-color: #757575; // the current group's chevron: it can't be collapsed
50
53
  * --nav-focus-color: rgba(255, 255, 255, 0.6);
51
54
  * --nav-overlay-shadow: 6px 0 18px rgba(0, 0, 0, 0.28); // the hover-expanded rail
55
+ * --nav-backdrop-color: rgba(0, 0, 0, 0.32); // behind the rail a tap expanded
52
56
  * --nav-z-index: 100; // lifts the hover-expanded rail over the content
53
57
  * }
54
58
  *
@@ -103,9 +107,16 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
103
107
  navEndTemplate: TemplateRef<any>;
104
108
  /** The pointer has rested on the collapsed rail, so it is expanded over the content. */
105
109
  readonly hovering$: MutableValueModel<boolean>;
106
- /** Labels and children are shown: pinned expanded, or hover-expanded. */
110
+ /**
111
+ * A tap on a collapsed group has expanded the rail over the content, with that group open. It
112
+ * stays until the user goes somewhere or dismisses it: a touch never leaves, as a pointer does.
113
+ */
114
+ readonly tapOpen$: MutableValueModel<boolean>;
115
+ /** The one group a tap expansion shows, if any. Kept apart from the groups the user has opened. */
116
+ private readonly tappedGroup$;
117
+ /** Labels and children are shown: pinned expanded, or expanded over the content. */
107
118
  readonly open$: BooleanValueModelChain;
108
- /** Hover-expanded over the content, as opposed to pinned expanded beside it. */
119
+ /** Expanded over the content, by hover or a tap, as opposed to pinned expanded beside it. */
109
120
  readonly overlay$: BooleanValueModelChain;
110
121
  readonly navItems$: ListModelChain<SidePlaceNavigationComponent.Item>;
111
122
  /**
@@ -135,12 +146,21 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
135
146
  protected animationsDisabled: boolean;
136
147
  private readonly idPrefix;
137
148
  private hoverTimer;
149
+ /** The pointer that pressed last, for the click it is about to make. */
150
+ private pressedWith;
138
151
  private resetHandle;
139
152
  constructor(router: PlaceRouter);
140
- /** A group header toggles while the rail is open; anything else navigates. */
153
+ /**
154
+ * A group header toggles while the rail is open, one group at a time while a tap expanded it, and
155
+ * a touch on a collapsed one opens the rail with it; anything else navigates.
156
+ */
141
157
  activate(item: SidePlaceNavigationComponent.Item): void;
142
158
  navigateTo(place: PlaceDefinition): void;
159
+ /** Pins the rail expanded or collapsed, or closes the rail a tap expanded. */
143
160
  toggleMenu(): void;
161
+ /** Closes the rail a tap expanded over the content. */
162
+ dismiss(): void;
163
+ onRailPointerDown(event: PointerEvent): void;
144
164
  expandMenu(): void;
145
165
  collapseMenu(): void;
146
166
  onRailEnter(event?: PointerEvent): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.311",
3
+ "version": "16.1.0-alpha.313",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",