@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.
@@ -15030,7 +15030,10 @@ let nextInstanceId = 0;
15030
15030
  * Only the current place's group starts open, unless {@link groupsStartOpen} opens every group.
15031
15031
  *
15032
15032
  * The rail collapses to an icon strip from the Menu row, and expands over the content when the
15033
- * pointer rests on it. The pinned state is kept in localStorage under {@link persistKey}.
15033
+ * pointer rests on it. A touch has no hover, so on touch a tap on a collapsed group expands the rail
15034
+ * over the content instead of navigating, showing that group's children alone, whatever
15035
+ * {@link groupsStartOpen} says, so they open beside the finger; tapping a page, the backdrop, the
15036
+ * Menu row or Esc closes it again. The pinned state is kept in localStorage under {@link persistKey}.
15034
15037
  *
15035
15038
  * {@link currentPath$} names where the user is the way the rail does, for a breadcrumb.
15036
15039
  *
@@ -15059,6 +15062,7 @@ let nextInstanceId = 0;
15059
15062
  * --nav-current-chevron-color: #757575; // the current group's chevron: it can't be collapsed
15060
15063
  * --nav-focus-color: rgba(255, 255, 255, 0.6);
15061
15064
  * --nav-overlay-shadow: 6px 0 18px rgba(0, 0, 0, 0.28); // the hover-expanded rail
15065
+ * --nav-backdrop-color: rgba(0, 0, 0, 0.32); // behind the rail a tap expanded
15062
15066
  * --nav-z-index: 100; // lifts the hover-expanded rail over the content
15063
15067
  * }
15064
15068
  *
@@ -15120,9 +15124,16 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
15120
15124
  navEndTemplate;
15121
15125
  /** The pointer has rested on the collapsed rail, so it is expanded over the content. */
15122
15126
  hovering$ = new MutableValueModel(false);
15123
- /** Labels and children are shown: pinned expanded, or hover-expanded. */
15127
+ /**
15128
+ * A tap on a collapsed group has expanded the rail over the content, with that group open. It
15129
+ * stays until the user goes somewhere or dismisses it: a touch never leaves, as a pointer does.
15130
+ */
15131
+ tapOpen$ = new MutableValueModel(false);
15132
+ /** The one group a tap expansion shows, if any. Kept apart from the groups the user has opened. */
15133
+ tappedGroup$ = new MutableValueModel(undefined);
15134
+ /** Labels and children are shown: pinned expanded, or expanded over the content. */
15124
15135
  open$;
15125
- /** Hover-expanded over the content, as opposed to pinned expanded beside it. */
15136
+ /** Expanded over the content, by hover or a tap, as opposed to pinned expanded beside it. */
15126
15137
  overlay$;
15127
15138
  navItems$;
15128
15139
  /**
@@ -15147,14 +15158,16 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
15147
15158
  animationsDisabled = true;
15148
15159
  idPrefix = `aup-side-nav-${nextInstanceId++}`;
15149
15160
  hoverTimer;
15161
+ /** The pointer that pressed last, for the click it is about to make. */
15162
+ pressedWith;
15150
15163
  resetHandle = null;
15151
15164
  constructor(router) {
15152
15165
  super(router);
15153
15166
  const { chain, when } = Dsl.disposeWith(this);
15154
15167
  const { accessGuard$ } = router.authService;
15155
15168
  const activeVisit$ = router.activeVisit$;
15156
- this.open$ = chain.booleanValue(this.expanded$).or(this.hovering$);
15157
- this.overlay$ = chain.booleanValue(this.hovering$).andNot(this.expanded$);
15169
+ this.open$ = chain.booleanValue(this.expanded$).or(this.hovering$).or(this.tapOpen$);
15170
+ this.overlay$ = chain.booleanValue(this.hovering$).or(this.tapOpen$).andNot(this.expanded$);
15158
15171
  // Where the user is, and what they may see, postponed like the top-level list it extends: child
15159
15172
  // authorisation settles during a navigation, and reading it mid-flight would flicker.
15160
15173
  const entries$ = chain(this.menuItems).mapAll(items => {
@@ -15177,12 +15190,16 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
15177
15190
  const isGroup = ({ place, children }) => place.navDepth > 1 && children.length > 1;
15178
15191
  this.navItems$ = chain(entries$).mapAll(entries => {
15179
15192
  const railOpen = this.open$.value;
15193
+ // A tap expansion shows the tapped group alone: every other open group, the current one
15194
+ // included, would push its children away from the finger.
15195
+ const tapped = this.tapOpen$.value ? this.tappedGroup$.value : null;
15180
15196
  const openGroups = this.openGroups$.value;
15181
15197
  const closedGroups = this.closedGroups$.value;
15182
15198
  const groupOpen = (place) => this.groupsStartOpen$.value ? !closedGroups.has(place) : openGroups.has(place);
15183
15199
  return entries.map(({ place, current, children, currentChild }) => {
15184
15200
  const group = isGroup({ place, children });
15185
- const showChildren = group && railOpen && (current || groupOpen(place));
15201
+ const showChildren = group && railOpen &&
15202
+ (tapped !== null ? place === tapped : current || groupOpen(place));
15186
15203
  return {
15187
15204
  place,
15188
15205
  face: this.getNavigationFace(place),
@@ -15199,7 +15216,8 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
15199
15216
  };
15200
15217
  });
15201
15218
  }, {
15202
- dependsOn: [this.openGroups$, this.closedGroups$, this.groupsStartOpen$, this.open$]
15219
+ dependsOn: [this.openGroups$, this.closedGroups$, this.groupsStartOpen$, this.open$, this.tapOpen$,
15220
+ this.tappedGroup$]
15203
15221
  });
15204
15222
  // From the entries rather than navItems$: the path doesn't change as the rail opens and closes.
15205
15223
  this.currentPath$ = chain(entries$).mapAll(entries => {
@@ -15239,13 +15257,26 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
15239
15257
  cancelAnimationFrame(this.resetHandle);
15240
15258
  }
15241
15259
  });
15242
- this.viewStateDependsOn(this.navItems$, this.open$, this.overlay$, this.expanded$);
15260
+ this.viewStateDependsOn(this.navItems$, this.open$, this.overlay$, this.expanded$, this.tapOpen$);
15243
15261
  }
15244
- /** A group header toggles while the rail is open; anything else navigates. */
15262
+ /**
15263
+ * A group header toggles while the rail is open, one group at a time while a tap expanded it, and
15264
+ * a touch on a collapsed one opens the rail with it; anything else navigates.
15265
+ */
15245
15266
  activate(item) {
15246
- if (item.group && this.open$.value) {
15267
+ const touch = this.pressedWith === 'touch';
15268
+ this.pressedWith = undefined;
15269
+ if (item.group && this.tapOpen$.value) {
15270
+ this.tappedGroup$.value = this.tappedGroup$.value === item.place ? undefined : item.place;
15271
+ }
15272
+ else if (item.group && this.open$.value) {
15247
15273
  this.toggleGroup(item);
15248
15274
  }
15275
+ else if (item.group && touch) {
15276
+ // Navigating would land on one child with no way to reach its siblings.
15277
+ this.tappedGroup$.value = item.place;
15278
+ this.tapOpen$.value = true;
15279
+ }
15249
15280
  else {
15250
15281
  // A group on the collapsed rail navigates to its own place, and the router's
15251
15282
  // redirectToFirstChild lands on the child visited last (rememberLastChild), or else the first
@@ -15254,10 +15285,24 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
15254
15285
  }
15255
15286
  }
15256
15287
  navigateTo(place) {
15288
+ this.tapOpen$.value = false;
15257
15289
  this.placeRouter.navigate(place.component);
15258
15290
  }
15291
+ /** Pins the rail expanded or collapsed, or closes the rail a tap expanded. */
15259
15292
  toggleMenu() {
15260
- this.pin(!this.expanded);
15293
+ if (this.tapOpen$.value) {
15294
+ this.dismiss();
15295
+ }
15296
+ else {
15297
+ this.pin(!this.expanded);
15298
+ }
15299
+ }
15300
+ /** Closes the rail a tap expanded over the content. */
15301
+ dismiss() {
15302
+ this.tapOpen$.value = false;
15303
+ }
15304
+ onRailPointerDown(event) {
15305
+ this.pressedWith = event.pointerType;
15261
15306
  }
15262
15307
  expandMenu() {
15263
15308
  this.pin(true);
@@ -15266,8 +15311,8 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
15266
15311
  this.pin(false);
15267
15312
  }
15268
15313
  onRailEnter(event) {
15269
- // A touch has no hover: a tap on the collapsed rail navigates, and expanding over the content
15270
- // afterwards would leave the rail covering whatever the next tap was meant for.
15314
+ // A touch has no hover: a tap on the collapsed rail navigates or opens a group (see activate),
15315
+ // and expanding over the content after every tap would cover whatever the next one was meant for.
15271
15316
  if (this.expanded || event?.pointerType === 'touch') {
15272
15317
  return;
15273
15318
  }
@@ -15305,6 +15350,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
15305
15350
  pin(expanded) {
15306
15351
  this.clearHoverTimer();
15307
15352
  this.hovering$.value = false;
15353
+ this.tapOpen$.value = false;
15308
15354
  this.expanded = expanded;
15309
15355
  this.writePinnedState(expanded);
15310
15356
  }
@@ -15344,7 +15390,7 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
15344
15390
  }
15345
15391
  }
15346
15392
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
15347
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SidePlaceNavigationComponent, selector: "aup-side-place-navigation", inputs: { expanded$: "expanded$", expanded: "expanded", collapsible: "collapsible", hoverExpandDelay: "hoverExpandDelay", persistKey: "persistKey", groupsStartOpen: "groupsStartOpen" }, host: { properties: { "class.expanded": "this.expanded" } }, queries: [{ propertyName: "navEndTemplate", first: true, predicate: ["navEndTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }], animations: [slideDownOnEnterAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush });
15393
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SidePlaceNavigationComponent, selector: "aup-side-place-navigation", inputs: { expanded$: "expanded$", expanded: "expanded", collapsible: "collapsible", hoverExpandDelay: "hoverExpandDelay", persistKey: "persistKey", groupsStartOpen: "groupsStartOpen" }, host: { properties: { "class.expanded": "this.expanded" } }, queries: [{ propertyName: "navEndTemplate", first: true, predicate: ["navEndTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"tapOpen$.value && !expanded\" class=\"backdrop\" (click)=\"dismiss()\"></div>\n\n<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerdown)=\"onRailPointerDown($event)\"\n (keydown.escape)=\"dismiss()\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded || tapOpen$.value\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded || tapOpen$.value ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.backdrop{position:fixed;inset:0;background-color:var(--nav-backdrop-color, rgba(0, 0, 0, .32))}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }], animations: [slideDownOnEnterAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush });
15348
15394
  }
15349
15395
  __decorate([
15350
15396
  Proxify(),
@@ -15360,7 +15406,7 @@ __decorate([
15360
15406
  ], SidePlaceNavigationComponent.prototype, "groupsStartOpen", null);
15361
15407
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, decorators: [{
15362
15408
  type: Component,
15363
- args: [{ selector: 'aup-side-place-navigation', changeDetection: ChangeDetectionStrategy.OnPush, animations: [slideDownOnEnterAnimation], template: "<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"] }]
15409
+ args: [{ selector: 'aup-side-place-navigation', changeDetection: ChangeDetectionStrategy.OnPush, animations: [slideDownOnEnterAnimation], template: "<div *ngIf=\"tapOpen$.value && !expanded\" class=\"backdrop\" (click)=\"dismiss()\"></div>\n\n<nav class=\"rail\"\n [class.open]=\"open$.value\"\n [class.overlay]=\"overlay$.value\"\n (pointerdown)=\"onRailPointerDown($event)\"\n (keydown.escape)=\"dismiss()\"\n (pointerenter)=\"onRailEnter($event)\"\n (pointerleave)=\"onRailLeave()\">\n\n <button *ngIf=\"collapsible\" type=\"button\" class=\"menu-toggle\"\n [attr.aria-expanded]=\"expanded || tapOpen$.value\"\n (click)=\"toggleMenu()\">\n <span class=\"icon\"><aup-icon [icon]=\"expanded || tapOpen$.value ? 'mat:menu_open' : 'mat:menu'\"></aup-icon></span>\n <span class=\"label\">Menu</span>\n </button>\n\n <ul class=\"items\" [@.disabled]=\"animationsDisabled\">\n <li *ngFor=\"let item of navItems$.value; trackBy: trackByNavItem\">\n <!-- A group standing in for its hidden current child is the current item, not the page. -->\n <button type=\"button\" class=\"item\"\n [class.current]=\"item.current\"\n [class.highlighted]=\"item.highlighted\"\n [title]=\"item.face.text()\"\n [attr.aria-expanded]=\"item.group ? item.showChildren : null\"\n [attr.aria-controls]=\"item.group ? item.childListId : null\"\n [attr.aria-current]=\"item.highlighted ? (item.group ? 'true' : 'page') : null\"\n (click)=\"activate(item)\">\n <span class=\"icon\"><aup-icon *ngIf=\"item.face.icon()\" [icon]=\"item.face.icon()\"></aup-icon></span>\n <span class=\"label\">{{item.face.text()}}</span>\n <aup-icon *ngIf=\"item.group\" class=\"chevron\" [class.open]=\"item.showChildren\" icon=\"mat:expand_more\"></aup-icon>\n </button>\n\n <!-- Always present, so the header's aria-controls names a real element while it's closed. -->\n <div *ngIf=\"item.group\" [id]=\"item.childListId\">\n <ul *ngIf=\"item.showChildren\" class=\"children\" [@slideDownOnEnter]=\"childListAnimation\">\n <li *ngFor=\"let child of item.children; trackBy: trackByNavChild\">\n <button type=\"button\" class=\"child\"\n [class.current]=\"child.current\"\n [attr.aria-current]=\"child.current ? 'page' : null\"\n (click)=\"navigateTo(child.place)\">{{child.face.text()}}</button>\n </li>\n </ul>\n </div>\n </li>\n </ul>\n\n <div *ngIf=\"navEndTemplate\" class=\"nav-end\">\n <ng-container [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n </div>\n</nav>\n", styles: [":host{--resolved-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 232px);--resolved-background-color: var(--nav-background-color, #555);--resolved-color: var(--nav-color, #fff);--resolved-item-color: var(--nav-item-color, #eee);--resolved-child-color: var(--nav-child-color, #d0d0d0);--resolved-current-background: var(--nav-current-background, #3a3a3a);--resolved-hover-background: var(--nav-hover-background, #4c4c4c);--resolved-chevron-color: var(--nav-chevron-color, #bdbdbd);--resolved-current-chevron-color: var(--nav-current-chevron-color, #757575);--resolved-focus-color: var(--nav-focus-color, rgba(255, 255, 255, .6));display:block;position:relative;z-index:var(--nav-z-index, 100);flex:none;width:var(--resolved-width);transition:width .22s ease}:host.expanded{width:var(--resolved-expanded-width)}.backdrop{position:fixed;inset:0;background-color:var(--nav-backdrop-color, rgba(0, 0, 0, .32))}.rail{position:absolute;inset:0 auto 0 0;width:var(--resolved-width);display:flex;flex-direction:column;overflow:hidden;color:var(--resolved-color);background-color:var(--resolved-background-color);box-shadow:none;transition:width .22s ease,box-shadow .22s ease}.rail.open{width:var(--resolved-expanded-width)}.rail.overlay{box-shadow:var(--nav-overlay-shadow, 6px 0 18px rgba(0, 0, 0, .28))}ul{list-style:none;margin:0;padding:0}.items{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}.menu-toggle,.item,.child{appearance:none;box-sizing:border-box;width:100%;margin:0;border:0;border-radius:0;color:inherit;background:transparent;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.menu-toggle:hover,.item:hover,.child:hover{background-color:var(--resolved-hover-background)}.menu-toggle:focus-visible,.item:focus-visible,.child:focus-visible{outline:2px solid var(--resolved-focus-color);outline-offset:-2px}.menu-toggle,.item{display:flex;align-items:center;gap:16px;padding:0 18px;font-size:14px}.menu-toggle{flex:none;height:48px}.item{height:40px;color:var(--resolved-item-color);font-weight:400}.item.current{color:var(--resolved-color);font-weight:500}.item.highlighted:not(:hover){background-color:var(--resolved-current-background)}.icon{flex:none;display:inline-flex;width:20px;height:20px;--aup-icon-size: 20px}.label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .22s ease}.chevron{--aup-icon-size: 18px;flex:none;color:var(--resolved-chevron-color);opacity:0;transform:rotate(-90deg);transition:transform .22s ease,opacity .22s ease}.chevron.open{transform:none}.item.current .chevron{color:var(--resolved-current-chevron-color)}.rail.open .label,.rail.open .chevron{opacity:1}.children{overflow:hidden}.child{display:block;height:34px;line-height:34px;padding:0 16px 0 54px;overflow:hidden;text-overflow:ellipsis;color:var(--resolved-child-color);font-size:13px;font-weight:400}.child.current{color:var(--resolved-color);font-weight:500}.child.current:not(:hover){background-color:var(--resolved-current-background)}.nav-end{flex:none}\n"] }]
15364
15410
  }], ctorParameters: function () { return [{ type: PlaceRouter }]; }, propDecorators: { expanded$: [{
15365
15411
  type: Input
15366
15412
  }], expanded: [{