@coolon/angular-ui-powerups 16.1.0-alpha.286 → 16.1.0-alpha.290

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.
@@ -43,7 +43,7 @@ import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
43
43
  import * as i4$2 from 'ng-table-virtual-scroll';
44
44
  import { TableVirtualScrollDataSource, TableVirtualScrollModule } from 'ng-table-virtual-scroll';
45
45
  import * as i1$3 from '@coolon/pectin';
46
- import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, proxify, ValueModel, Proxify, Logger, StoreInValueModel, Command, MutableListModel, StoreInListModel, ListModel, Disposable, Trace, DelegatingListModel, MutableValueModel, DelegateToValueModel, FocusManager, EventListenerList, Guard, DelegatingFormListModel, Binding, DebugContext, DelegateToListModel, DelegatingFormValueModel, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry, DependsOnOptions, LoadingStateTracker, HasValue, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel, SingleSelectionModel, DirtyTrackingForm } from '@coolon/pectin';
46
+ import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, proxify, ValueModel, Proxify, Logger, StoreInValueModel, Command, MutableListModel, StoreInListModel, ListModel, Disposable, Trace, DelegatingListModel, MutableValueModel, DelegateToValueModel, FocusManager, EventListenerList, Guard, DelegatingFormListModel, Binding, DebugContext, DelegateToListModel, DelegatingFormValueModel, Functions, PageController, SelectionModel, CanProxy, MultipleSelectionModel, WatchList, ProxyRegistry, DependsOnOptions, LoadingStateTracker, Loadable, HasValue, DelegatingCommand, ComputedListModel, Deferred, ReducingValueModel, AndValueModel, SingleSelectionModel, DirtyTrackingForm } from '@coolon/pectin';
47
47
  import { __decorate, __metadata, __param } from 'tslib';
48
48
  import * as i1 from '@angular/platform-browser';
49
49
  import escapeStringRegexp from 'escape-string-regexp';
@@ -5306,13 +5306,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
5306
5306
  type: Input
5307
5307
  }] } });
5308
5308
 
5309
+ /**
5310
+ * Page controls for a collection read a window at a time, showing which window is on screen and how
5311
+ * big the whole collection is.
5312
+ *
5313
+ * It binds to any {@link PageController}, so it works over a client-side slice of an already-loaded
5314
+ * list and over a server-paged data source alike — the difference between them is not the pager's
5315
+ * business.
5316
+ */
5309
5317
  class PaginatorComponent extends DisposableComponent {
5310
5318
  #pageController_accessor_storage = proxify(PageController);
5311
5319
  get pageController() { return this.#pageController_accessor_storage; }
5312
5320
  set pageController(value) { this.#pageController_accessor_storage = value; }
5313
5321
  constructor() {
5314
5322
  super();
5315
- const { chain } = Dsl.disposeWith(this);
5323
+ // These getters read model values directly, so nothing would repaint on its own. Inside an
5324
+ // ON_PUSH parent — a table footer, say — the counts would show whatever they were on first paint
5325
+ // and never move again.
5326
+ this.viewStateDependsOn(this.pageController.totalItems$, this.pageController.pageNumber$, this.pageController.totalPages$, this.pageController.pageSize$);
5316
5327
  }
5317
5328
  get totalItems() {
5318
5329
  return this.pageController.totalItems$.value;
@@ -5323,6 +5334,14 @@ class PaginatorComponent extends DisposableComponent {
5323
5334
  get pageNumber() {
5324
5335
  return this.pageController.pageNumber$.value;
5325
5336
  }
5337
+ /** The position of the first row on screen, counting from one. Zero when there are no rows at all. */
5338
+ get firstItem() {
5339
+ return this.totalItems < 1 ? 0 : ((this.pageNumber - 1) * (this.pageController.pageSize$.value ?? 0)) + 1;
5340
+ }
5341
+ /** The position of the last row on screen, which on a short final page is the end of the collection. */
5342
+ get lastItem() {
5343
+ return Math.min(this.pageNumber * (this.pageController.pageSize$.value ?? 0), this.totalItems);
5344
+ }
5326
5345
  get previousCommand() {
5327
5346
  return this.pageController.previousCommand;
5328
5347
  }
@@ -5330,7 +5349,7 @@ class PaginatorComponent extends DisposableComponent {
5330
5349
  return this.pageController.nextCommand;
5331
5350
  }
5332
5351
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5333
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PaginatorComponent, selector: "aup-paginator", inputs: { pageController: "pageController" }, usesInheritance: true, ngImport: i0, template: "<p>Items {{totalItems}}<span class=\"spacer\"></span>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]=\"previousCommand\"><aup-icon icon=\"mat:keyboard_arrow_left\"></aup-icon></button>\n<button mat-icon-button [pectinCommand]=\"nextCommand\"><aup-icon icon=\"mat:keyboard_arrow_right\"></aup-icon></button>\n\n", styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:#0009}:host p{color:inherit;margin:0 8px 0 0}:host span.spacer{padding:0 calc(var(--default-padding) / 2)}:host span.spacer:before{content:\"|\";opacity:.35}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
5352
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PaginatorComponent, selector: "aup-paginator", inputs: { pageController: "pageController" }, usesInheritance: true, ngImport: i0, template: "<p>Showing {{firstItem}}\u2013{{lastItem}} of {{totalItems}}<span class=\"spacer\"></span>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]=\"previousCommand\"><aup-icon icon=\"mat:keyboard_arrow_left\"></aup-icon></button>\n<button mat-icon-button [pectinCommand]=\"nextCommand\"><aup-icon icon=\"mat:keyboard_arrow_right\"></aup-icon></button>\n", styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:#0009}:host p{color:inherit;margin:0 8px 0 0}:host span.spacer{padding:0 calc(var(--default-padding) / 2)}:host span.spacer:before{content:\"|\";opacity:.35}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
5334
5353
  }
5335
5354
  __decorate([
5336
5355
  Proxify(),
@@ -5338,7 +5357,7 @@ __decorate([
5338
5357
  ], PaginatorComponent.prototype, "pageController", null);
5339
5358
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PaginatorComponent, decorators: [{
5340
5359
  type: Component,
5341
- args: [{ selector: 'aup-paginator', template: "<p>Items {{totalItems}}<span class=\"spacer\"></span>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]=\"previousCommand\"><aup-icon icon=\"mat:keyboard_arrow_left\"></aup-icon></button>\n<button mat-icon-button [pectinCommand]=\"nextCommand\"><aup-icon icon=\"mat:keyboard_arrow_right\"></aup-icon></button>\n\n", styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:#0009}:host p{color:inherit;margin:0 8px 0 0}:host span.spacer{padding:0 calc(var(--default-padding) / 2)}:host span.spacer:before{content:\"|\";opacity:.35}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}\n"] }]
5360
+ args: [{ selector: 'aup-paginator', template: "<p>Showing {{firstItem}}\u2013{{lastItem}} of {{totalItems}}<span class=\"spacer\"></span>Page {{pageNumber}} of {{totalPages}}</p>\n<button mat-icon-button [pectinCommand]=\"previousCommand\"><aup-icon icon=\"mat:keyboard_arrow_left\"></aup-icon></button>\n<button mat-icon-button [pectinCommand]=\"nextCommand\"><aup-icon icon=\"mat:keyboard_arrow_right\"></aup-icon></button>\n", styles: [":host{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px;padding:0 8px;color:#0009}:host p{color:inherit;margin:0 8px 0 0}:host span.spacer{padding:0 calc(var(--default-padding) / 2)}:host span.spacer:before{content:\"|\";opacity:.35}:host button.md-button.md-icon-button{padding:0;margin:0;width:30px;height:30px}\n"] }]
5342
5361
  }], ctorParameters: function () { return []; }, propDecorators: { pageController: [{
5343
5362
  type: Input
5344
5363
  }] } });
@@ -7036,6 +7055,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
7036
7055
 
7037
7056
  class LoadableComponent extends DisposableComponent {
7038
7057
  #_loaded$ = new MutableValueModel();
7058
+ #_loadProgress$ = new DelegatingValueModel().withDefault(0);
7059
+ #_loadCounts$ = new DelegatingValueModel().withDefault([0, undefined]);
7039
7060
  #asyncLoadables = [];
7040
7061
  #awaitedLoadables = [];
7041
7062
  #gatedLoadables = [];
@@ -7047,12 +7068,41 @@ class LoadableComponent extends DisposableComponent {
7047
7068
  get loaded$() {
7048
7069
  return this.#_loaded$.readonly$;
7049
7070
  }
7071
+ /**
7072
+ * How far through loading the component is, from 0 to 1, for a determinate progress bar: combined over
7073
+ * the loadables that {@link loaded$} waits for, with a part they share counted once (see
7074
+ * {@link Loadable.combinedProgress}). Loadables registered with `wait: false` or a gate are left out,
7075
+ * as they are from loaded$. Reads 1 exactly when loaded$ is true, and so stays 1 if a loadable
7076
+ * later reloads, as loaded$ does; 0 until `ngOnInit`.
7077
+ */
7078
+ get loadProgress$() {
7079
+ return this.#_loadProgress$.readonly$;
7080
+ }
7081
+ /**
7082
+ * Items loaded so far and expected, [loadedCount, totalItems], over the same loadables as
7083
+ * {@link loadProgress$}, for "1,200 of 4,000" (see {@link Loadable.combinedCounts}). totalItems is
7084
+ * undefined until every one of them knows its own; [0, undefined] until `ngOnInit`.
7085
+ */
7086
+ get loadCounts$() {
7087
+ return this.#_loadCounts$.readonly$;
7088
+ }
7089
+ /** The loadables {@link loaded$} waits for, so anything combining this component with others counts them once. */
7090
+ get loadableParts() {
7091
+ return this.#awaitedLoadables;
7092
+ }
7050
7093
  ngOnInit() {
7051
7094
  super.ngOnInit();
7052
7095
  this.loadDependencies();
7053
7096
  }
7054
7097
  loadDependencies() {
7055
7098
  this.loadTracker?.triggered();
7099
+ // The awaited set is complete now: loadables registered later belong to a component that has
7100
+ // already finished loading, so they are not waited for and not counted.
7101
+ // Tied to loaded$ rather than left to the loadables alone: loaded$ turns true a microtask after
7102
+ // they do, and stays true if one later reloads, and progress has to agree with it both ways.
7103
+ const { chain } = Dsl.disposeWith(this);
7104
+ this.#_loadProgress$.setDelegate(chain.reduce(this.#_loaded$, Loadable.combinedProgress(this.#awaitedLoadables, this), (loaded, progress) => (loaded ? 1 : Math.min(progress, Loadable.UNFINISHED_CEILING))));
7105
+ this.#_loadCounts$.setDelegate(Loadable.combinedCounts(this.#awaitedLoadables, this));
7056
7106
  // Non-blocking loadables (`{ wait: false }` and gated ones) load independently and never gate
7057
7107
  // `loaded$` — fire them up front so they don't wait on the blocking dependencies below.
7058
7108
  this.#asyncLoadables.forEach((it) => this.#fireLoad(it));
@@ -9382,9 +9432,10 @@ class PlaceDefinition {
9382
9432
  children;
9383
9433
  redirectToFirstChild;
9384
9434
  rememberLastChild;
9435
+ navDepth;
9385
9436
  _parent;
9386
9437
  name;
9387
- constructor(component, path, authenticate, role, data, routeParameters, children, redirectToFirstChild, rememberLastChild) {
9438
+ constructor(component, path, authenticate, role, data, routeParameters, children, redirectToFirstChild, rememberLastChild, navDepth = 2) {
9388
9439
  this.component = component;
9389
9440
  this.path = path;
9390
9441
  this.authenticate = authenticate;
@@ -9394,6 +9445,7 @@ class PlaceDefinition {
9394
9445
  this.children = children;
9395
9446
  this.redirectToFirstChild = redirectToFirstChild;
9396
9447
  this.rememberLastChild = rememberLastChild;
9448
+ this.navDepth = navDepth;
9397
9449
  const s = component.name.replace(/Component$/, '');
9398
9450
  this.name = s.charAt(0).toLowerCase() + s.slice(1);
9399
9451
  this.children.forEach(it => it.setParent(this));
@@ -14509,25 +14561,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
14509
14561
  args: [{ selector: 'aup-list-place-nav', template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [class.active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n [attr.data-cy]=\"item.place.path\"\n >\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--selected-border-color: #838383;--selected-color: inherit;--selected-background: #f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}\n"] }]
14510
14562
  }], ctorParameters: function () { return [{ type: PlaceRouter }]; } });
14511
14563
 
14564
+ /** Every transition in the rail runs at this pace; the scss's `$motion` must match it. */
14565
+ const MOTION = '220ms ease';
14566
+ /** How long the hover-expanded rail waits after the pointer leaves before collapsing again. */
14567
+ const HOVER_COLLAPSE_DELAY = 120;
14568
+ let nextInstanceId = 0;
14512
14569
  /**
14570
+ * A place with children is listed as a group header with its children beneath it, when:
14571
+ * - it has `redirectToFirstChild` (it has no page of its own, so its header never navigates while
14572
+ * the rail is open);
14573
+ * - it hasn't opted out with `navDepth: 1` (see {@link Place.Options.navDepth});
14574
+ * - at least two of its children are authorised: one child isn't a choice, so a parent with one
14575
+ * authorised child is a single entry that navigates to it.
14576
+ * Anything else is a leaf that navigates to its place. A `redirectToFirstChild` parent with no
14577
+ * authorised child is dropped, as it has nowhere to land. Only two levels are shown; deeper places
14578
+ * stay as tabs in their pages.
14579
+ *
14580
+ * The rail collapses to an icon strip from the Menu row, and expands over the content when the
14581
+ * pointer rests on it. The pinned state is kept in localStorage under {@link persistKey}.
14582
+ *
14583
+ * {@link currentPath$} names where the user is the way the rail does, for a breadcrumb.
14584
+ *
14513
14585
  * @example
14514
14586
  * // Usage
14515
- * <aup-vertical-place-navigation [places]="placeConstructorArray"
14516
- * [placeOutlet]="placeOutletComponent">
14517
- * </aup-vertical-place-navigation>
14587
+ * <aup-side-place-navigation [places]="placeConstructorArray"
14588
+ * [placeOutlet]="placeOutletComponent">
14589
+ * </aup-side-place-navigation>
14518
14590
  * <aup-place-outlet #placeOutletComponent></aup-place-outlet>
14519
14591
  *
14520
- * // CSS overrides:
14592
+ * // Layout: the host is the rail's slot, so give it a height (it stretches in a flex row or a
14593
+ * // grid) and put the content beside it. The content is offset by the pinned width; the
14594
+ * // hover-expanded rail overlays it.
14595
+ *
14596
+ * // CSS overrides (set on the element or any ancestor; defaults shown):
14521
14597
  * aup-side-place-navigation {
14522
- * --nav-width: 56px
14523
- * --nav-expanded-width: 235px
14524
- * --nav-item-height: var(--nav-width)
14598
+ * --nav-width: 56px; // the collapsed rail
14599
+ * --nav-expanded-width: 232px;
14525
14600
  * --nav-background-color: #555;
14526
- * --nav-color: rgba(255, 255, 255, 0.9);
14601
+ * --nav-color: #fff; // the Menu row, and the current place's labels
14602
+ * --nav-item-color: #eee; // top-level labels
14603
+ * --nav-child-color: #d0d0d0; // child labels
14604
+ * --nav-current-background: #3a3a3a; // the current place's row
14605
+ * --nav-hover-background: #4c4c4c;
14606
+ * --nav-chevron-color: #bdbdbd;
14607
+ * --nav-current-chevron-color: #757575; // the current group's chevron: it can't be collapsed
14608
+ * --nav-focus-color: rgba(255, 255, 255, 0.6);
14609
+ * --nav-overlay-shadow: 6px 0 18px rgba(0, 0, 0, 0.28); // the hover-expanded rail
14610
+ * --nav-z-index: 100; // lifts the hover-expanded rail over the content
14527
14611
  * }
14528
14612
  *
14529
14613
  * // Content Templates:
14530
- * #navEndTemplate
14614
+ * #navEndTemplate, rendered below the items
14531
14615
  * <ng-template #navEndTemplate>
14532
14616
  * <a mat-list-item (click)="logout()" matTooltip="Logout">
14533
14617
  * <mat-icon>exit_to_app</mat-icon>
@@ -14556,24 +14640,241 @@ class SidePlaceNavigationComponent extends AbstractPlaceNavigationComponent {
14556
14640
  get expanded$() { return this.#expanded$_accessor_storage; }
14557
14641
  set expanded$(value) { this.#expanded$_accessor_storage = value; }
14558
14642
  #expanded_accessor_storage = false;
14643
+ /**
14644
+ * Whether the rail is pinned expanded (true) or collapsed to icons. The binding is the initial
14645
+ * state: once the user has pinned the rail from the Menu row, the state they chose is restored
14646
+ * from {@link persistKey} instead.
14647
+ */
14559
14648
  get expanded() { return this.#expanded_accessor_storage; }
14560
14649
  set expanded(value) { this.#expanded_accessor_storage = value; }
14650
+ /** Show the Menu row, so the user can pin the rail expanded or collapsed. */
14651
+ collapsible = true;
14652
+ /** How long, in ms, the pointer must rest on the collapsed rail before it expands. */
14653
+ hoverExpandDelay = 150;
14654
+ /**
14655
+ * The localStorage key the pinned state is kept under; `null` turns persistence off. The default
14656
+ * is shared by everyone using the browser, so include the user in the key for a per-user state.
14657
+ */
14658
+ persistKey = 'aup-side-place-navigation.expanded';
14561
14659
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
14562
14660
  navEndTemplate;
14661
+ /** The pointer has rested on the collapsed rail, so it is expanded over the content. */
14662
+ hovering$ = new MutableValueModel(false);
14663
+ /** Labels and children are shown: pinned expanded, or hover-expanded. */
14664
+ open$;
14665
+ /** Hover-expanded over the content, as opposed to pinned expanded beside it. */
14666
+ overlay$;
14667
+ navItems$;
14668
+ /**
14669
+ * Where the user is, as the rail names it: the group and the current child in it, or else the one
14670
+ * current entry. Grouped by the rail's rules and settled when it is, after a navigation, so a
14671
+ * breadcrumb bound to it always agrees with the rail. Empty while no listed place is current.
14672
+ */
14673
+ currentPath$;
14674
+ /** Groups the user has opened. The current place's group joins on arrival and stays. */
14675
+ openGroups$ = new MutableValueModel(new Set());
14676
+ childListAnimation = { value: '', params: { duration: MOTION } };
14677
+ trackByNavItem = (index, item) => item.place;
14678
+ trackByNavChild = (index, child) => child.place;
14679
+ /**
14680
+ * Animations are suppressed while a navigation is in flight, and for a frame after it settles, so
14681
+ * the current group doesn't visibly slide open on every page load. What should animate is a group
14682
+ * the user opens or closes, and the children leaving as the rail collapses. Same arrangement as
14683
+ * TabbedPlaceNavigationComponent.
14684
+ */
14685
+ animationsDisabled = true;
14686
+ idPrefix = `aup-side-nav-${nextInstanceId++}`;
14687
+ hoverTimer;
14688
+ resetHandle = null;
14563
14689
  constructor(router) {
14564
14690
  super(router);
14691
+ const { chain, when } = Dsl.disposeWith(this);
14692
+ const { accessGuard$ } = router.authService;
14693
+ const activeVisit$ = router.activeVisit$;
14694
+ this.open$ = chain.booleanValue(this.expanded$).or(this.hovering$);
14695
+ this.overlay$ = chain.booleanValue(this.hovering$).andNot(this.expanded$);
14696
+ // Where the user is, and what they may see, postponed like the top-level list it extends: child
14697
+ // authorisation settles during a navigation, and reading it mid-flight would flicker.
14698
+ const entries$ = chain(this.menuItems).mapAll(items => {
14699
+ const guard = accessGuard$.value;
14700
+ const visit = activeVisit$.value;
14701
+ const visible = (place) => guard.isAuthorised(place) || !!visit?.isPlaceActive(place);
14702
+ return items
14703
+ .map(({ place, active }) => {
14704
+ const children = place.redirectToFirstChild ? place.children.filter(visible) : [];
14705
+ const currentChild = active ? children.find(child => visit?.isPlaceActive(child)) : undefined;
14706
+ return { place, current: active, children, currentChild };
14707
+ })
14708
+ // A redirectToFirstChild parent with no authorised child has nowhere to land, so it goes -
14709
+ // unless it's current, so the rail never loses the place the user is on.
14710
+ .filter(({ place, current, children }) => current || !place.redirectToFirstChild || !place.hasChildren() || children.length > 0);
14711
+ }, {
14712
+ dependsOn: [accessGuard$, activeVisit$],
14713
+ postponeWhile: router.navigationInProgress$
14714
+ });
14715
+ const isGroup = ({ place, children }) => place.navDepth > 1 && children.length > 1;
14716
+ this.navItems$ = chain(entries$).mapAll(entries => {
14717
+ const railOpen = this.open$.value;
14718
+ const openGroups = this.openGroups$.value;
14719
+ return entries.map(({ place, current, children, currentChild }) => {
14720
+ const group = isGroup({ place, children });
14721
+ const showChildren = group && railOpen && (current || openGroups.has(place));
14722
+ return {
14723
+ place,
14724
+ face: this.getNavigationFace(place),
14725
+ group,
14726
+ current,
14727
+ showChildren,
14728
+ highlighted: current && !showChildren,
14729
+ children: group ? children.map(child => ({
14730
+ place: child,
14731
+ face: this.getNavigationFace(child),
14732
+ current: child === currentChild
14733
+ })) : [],
14734
+ childListId: `${this.idPrefix}-${place.placeId}`
14735
+ };
14736
+ });
14737
+ }, {
14738
+ dependsOn: [this.openGroups$, this.open$]
14739
+ });
14740
+ // From the entries rather than navItems$: the path doesn't change as the rail opens and closes.
14741
+ this.currentPath$ = chain(entries$).mapAll(entries => {
14742
+ const entry = entries.find(it => it.current);
14743
+ if (!entry) {
14744
+ return [];
14745
+ }
14746
+ const segment = (place) => ({ place, face: this.getNavigationFace(place) });
14747
+ return isGroup(entry) && entry.currentChild
14748
+ ? [segment(entry.place), segment(entry.currentChild)]
14749
+ : [segment(entry.place)];
14750
+ });
14751
+ // Navigating into a group opens it, by child, deep link or redirect alike.
14752
+ const currentPlace$ = chain(this._activePlaceComponent).pluck('placeDefinition');
14753
+ when(currentPlace$).changes(place => this.openGroup(place), { initialValue: "triggerChange" });
14754
+ when(router.navigationInProgress$).changes(inProgress => {
14755
+ if (this.resetHandle !== null) {
14756
+ cancelAnimationFrame(this.resetHandle);
14757
+ this.resetHandle = null;
14758
+ }
14759
+ if (inProgress) {
14760
+ this.animationsDisabled = true;
14761
+ return;
14762
+ }
14763
+ // The trailing frame matters: the list is often rendered in the same turn the navigation
14764
+ // completes, and re-enabling immediately would let that first render animate anyway.
14765
+ this.resetHandle = requestAnimationFrame(() => {
14766
+ this.resetHandle = null;
14767
+ this.animationsDisabled = false;
14768
+ this.markForCheck();
14769
+ });
14770
+ }, { initialValue: "triggerChange" });
14771
+ this.onInit(() => this.restorePinnedState());
14772
+ this.onDispose(() => {
14773
+ this.clearHoverTimer();
14774
+ if (this.resetHandle !== null) {
14775
+ cancelAnimationFrame(this.resetHandle);
14776
+ }
14777
+ });
14778
+ this.viewStateDependsOn(this.navItems$, this.open$, this.overlay$, this.expanded$);
14779
+ }
14780
+ /** A group header toggles while the rail is open; anything else navigates. */
14781
+ activate(item) {
14782
+ if (item.group && this.open$.value) {
14783
+ this.toggleGroup(item);
14784
+ }
14785
+ else {
14786
+ // A group on the collapsed rail navigates to its own place, and the router's
14787
+ // redirectToFirstChild lands on the child visited last (rememberLastChild), or else the first
14788
+ // authorised one.
14789
+ this.navigateTo(item.place);
14790
+ }
14791
+ }
14792
+ navigateTo(place) {
14793
+ this.placeRouter.navigate(place.component);
14794
+ }
14795
+ toggleMenu() {
14796
+ this.pin(!this.expanded);
14565
14797
  }
14566
14798
  expandMenu() {
14567
- this.expanded = true;
14799
+ this.pin(true);
14568
14800
  }
14569
14801
  collapseMenu() {
14570
- this.expanded = false;
14802
+ this.pin(false);
14571
14803
  }
14572
- toggleMenu() {
14573
- this.expanded = !this.expanded;
14804
+ onRailEnter(event) {
14805
+ // A touch has no hover: a tap on the collapsed rail navigates, and expanding over the content
14806
+ // afterwards would leave the rail covering whatever the next tap was meant for.
14807
+ if (this.expanded || event?.pointerType === 'touch') {
14808
+ return;
14809
+ }
14810
+ this.clearHoverTimer();
14811
+ this.hoverTimer = setTimeout(() => this.hovering$.value = true, this.hoverExpandDelay);
14812
+ }
14813
+ onRailLeave() {
14814
+ this.clearHoverTimer();
14815
+ if (this.hovering$.value) {
14816
+ this.hoverTimer = setTimeout(() => this.hovering$.value = false, HOVER_COLLAPSE_DELAY);
14817
+ }
14818
+ }
14819
+ toggleGroup(item) {
14820
+ // The group holding the current place is always open.
14821
+ if (item.current) {
14822
+ return;
14823
+ }
14824
+ const openGroups = new Set(this.openGroups$.value);
14825
+ if (!openGroups.delete(item.place)) {
14826
+ openGroups.add(item.place);
14827
+ }
14828
+ this.openGroups$.value = openGroups;
14829
+ }
14830
+ openGroup(place) {
14831
+ if (place && !this.openGroups$.value.has(place)) {
14832
+ this.openGroups$.value = new Set(this.openGroups$.value).add(place);
14833
+ }
14834
+ }
14835
+ pin(expanded) {
14836
+ this.clearHoverTimer();
14837
+ this.hovering$.value = false;
14838
+ this.expanded = expanded;
14839
+ this.writePinnedState(expanded);
14840
+ }
14841
+ clearHoverTimer() {
14842
+ if (this.hoverTimer !== undefined) {
14843
+ clearTimeout(this.hoverTimer);
14844
+ this.hoverTimer = undefined;
14845
+ }
14846
+ }
14847
+ restorePinnedState() {
14848
+ // Without the Menu row the user can't have chosen, so there is nothing to restore.
14849
+ if (!this.collapsible || !this.persistKey) {
14850
+ return;
14851
+ }
14852
+ const stored = this.readStorage(this.persistKey);
14853
+ if (stored === 'true' || stored === 'false') {
14854
+ this.expanded = stored === 'true';
14855
+ }
14856
+ }
14857
+ writePinnedState(expanded) {
14858
+ if (this.persistKey) {
14859
+ try {
14860
+ localStorage.setItem(this.persistKey, String(expanded));
14861
+ }
14862
+ catch {
14863
+ // Storage is unavailable (private mode, blocked site data): the rail still works, it just
14864
+ // won't remember.
14865
+ }
14866
+ }
14867
+ }
14868
+ readStorage(key) {
14869
+ try {
14870
+ return localStorage.getItem(key);
14871
+ }
14872
+ catch {
14873
+ return null;
14874
+ }
14574
14875
  }
14575
14876
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
14576
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SidePlaceNavigationComponent, selector: "aup-side-place-navigation", inputs: { expanded$: "expanded$", expanded: "expanded" }, host: { properties: { "class.expanded": "this.expanded" } }, queries: [{ propertyName: "navEndTemplate", first: true, predicate: ["navEndTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\">\n <aup-icon matListItemIcon icon=\"mat:menu\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">Menu</span>\n </a>\n <a *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n mat-list-item\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [activated]=\"item.active\"\n aup-gc #gc=\"aup-gc\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n >\n <aup-icon matListItemIcon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 235px);--resolved-color: var(--nav-color, rgba(255, 255, 255, .9));--resolved-background-color: var(--nav-background-color, #555);color:var(--resolved-color);background-color:var(--resolved-background-color);width:var(--resolved-nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host aup-icon{margin-right:12px}:host>mat-nav-list{flex:1;display:flex;flex-direction:column;padding:0}:host .mat-mdc-list-item,:host .mat-mdc-list-item-icon,:host .mat-mdc-list-item-icon.activated,:host .mdc-list-item--with-leading-icon:hover .mdc-list-item__start,:host .mdc-list-item__primary-text{color:var(--resolved-color)}:host .mdc-list-item--activated .mdc-list-item__primary-text,:host .mdc-list-item--activated .mat-mdc-list-item-icon{color:var(--resolved-color)}:host .mdc-list-item:hover{background-color:#444}:host .mdc-list-item:hover .mdc-list-item__primary-text{color:var(--resolved-color)}:host .mdc-list-item--activated{background-color:#444}:host *.flip-horizontal{transform:scaleX(-1)}\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: i3$3.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i3$3.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i3$3.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i3$3.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }] });
14877
+ 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" }, 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 });
14577
14878
  }
14578
14879
  __decorate([
14579
14880
  Proxify(),
@@ -14585,7 +14886,7 @@ __decorate([
14585
14886
  ], SidePlaceNavigationComponent.prototype, "expanded", null);
14586
14887
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SidePlaceNavigationComponent, decorators: [{
14587
14888
  type: Component,
14588
- args: [{ selector: 'aup-side-place-navigation', template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\">\n <aup-icon matListItemIcon icon=\"mat:menu\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">Menu</span>\n </a>\n <a *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n mat-list-item\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [activated]=\"item.active\"\n aup-gc #gc=\"aup-gc\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\"\n >\n <aup-icon matListItemIcon *ngIf=\"getNavigationFace(item.place).icon()\" [icon]=\"getNavigationFace(item.place).icon()\"></aup-icon>\n <span matListItemTitle class=\"expanded-only\">{{getNavigationFace(item.place).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n", styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width: var(--nav-width, 56px);--resolved-expanded-width: var(--nav-expanded-width, 235px);--resolved-color: var(--nav-color, rgba(255, 255, 255, .9));--resolved-background-color: var(--nav-background-color, #555);color:var(--resolved-color);background-color:var(--resolved-background-color);width:var(--resolved-nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host aup-icon{margin-right:12px}:host>mat-nav-list{flex:1;display:flex;flex-direction:column;padding:0}:host .mat-mdc-list-item,:host .mat-mdc-list-item-icon,:host .mat-mdc-list-item-icon.activated,:host .mdc-list-item--with-leading-icon:hover .mdc-list-item__start,:host .mdc-list-item__primary-text{color:var(--resolved-color)}:host .mdc-list-item--activated .mdc-list-item__primary-text,:host .mdc-list-item--activated .mat-mdc-list-item-icon{color:var(--resolved-color)}:host .mdc-list-item:hover{background-color:#444}:host .mdc-list-item:hover .mdc-list-item__primary-text{color:var(--resolved-color)}:host .mdc-list-item--activated{background-color:#444}:host *.flip-horizontal{transform:scaleX(-1)}\n"] }]
14889
+ 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"] }]
14589
14890
  }], ctorParameters: function () { return [{ type: PlaceRouter }]; }, propDecorators: { expanded$: [{
14590
14891
  type: Input
14591
14892
  }], expanded: [{
@@ -14593,6 +14894,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
14593
14894
  }, {
14594
14895
  type: HostBinding,
14595
14896
  args: ['class.expanded']
14897
+ }], collapsible: [{
14898
+ type: Input
14899
+ }], hoverExpandDelay: [{
14900
+ type: Input
14901
+ }], persistKey: [{
14902
+ type: Input
14596
14903
  }],
14597
14904
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TemplateRef<any> is the Angular convention for ng-template refs
14598
14905
  navEndTemplate: [{
@@ -14617,21 +14924,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
14617
14924
  * --aup-tab-nav-selected-color: <accent>; // selected label
14618
14925
  * --aup-tab-nav-hover-color: #212121; // unselected label on hover
14619
14926
  * --aup-tab-nav-hover-background: rgba(63, 81, 181, 0.07);
14620
- * --aup-tab-nav-bar-background: #f0f2f5; // folder: the strip behind the tabs
14927
+ * --aup-tab-nav-bar-background: #fff; // folder: the strip behind the tabs
14621
14928
  * --aup-tab-nav-inset: 8px; // folder: space before the first tab
14622
14929
  * --aup-tab-nav-page-background: var(--aup-default-background, #fff); // folder: the page colour;
14623
14930
  * // the selected tab takes it so the two join up
14624
- * --aup-tab-nav-edge-color: #aeb4be; // folder: selected tab outline and join line
14931
+ * --aup-tab-nav-edge-color: <--pinstripe-border-color, else rgba(0,0,0,.2)>; // folder: selected
14932
+ * // tab outline and join line
14625
14933
  * --aup-tab-nav-top-line-width: 2px; // folder: accent line on the selected tab
14626
14934
  * --aup-tab-nav-label-padding-bottom: 0 | 8px; // folder: room under the label (8px when the
14627
14935
  * // tab has an icon, so it balances the top line)
14628
- * --aup-tab-nav-segment-track-background: <bar-background>; // segmented: the track
14936
+ * --aup-tab-nav-segment-track-background: <bar-background if set, else #f0f2f5>; // segmented: track
14629
14937
  * --aup-tab-nav-segment-border-color: #d9dce2; // segmented: the track outline
14630
14938
  * --aup-tab-nav-segment-selected-background: #fff; // segmented: the sliding highlight
14631
14939
  * --aup-tab-nav-segmented-padding: 12px 12px 4px; // segmented: space around the control
14632
14940
  * --aup-tab-nav-tonal-selected-background: <theme primary 50>; // tonal: the sliding tint
14633
14941
  * --aup-tab-nav-underline-color: #d9dce2; // tonal: the full-width line under the bar
14634
14942
  * --aup-tab-nav-tonal-padding: 8px 12px; // tonal: space around the options
14943
+ * --aup-tab-nav-tonal-tab-height: 30px; // tonal: each option's height
14944
+ * --aup-tab-nav-tonal-tab-padding: 0 12px; // tonal: space inside each option
14945
+ * --aup-tab-nav-tonal-gap: 2px; // tonal: space between the options
14946
+ * --aup-tab-nav-tonal-font-size: 13px;
14947
+ * --aup-tab-nav-tonal-selected-weight: 700; // tonal: the selected option's label
14635
14948
  * }
14636
14949
  */
14637
14950
  class TabbedPlaceNavigationComponent extends AbstractPlaceNavigationComponent {
@@ -14675,11 +14988,11 @@ class TabbedPlaceNavigationComponent extends AbstractPlaceNavigationComponent {
14675
14988
  }, { initialValue: "triggerChange" });
14676
14989
  }
14677
14990
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TabbedPlaceNavigationComponent, deps: [{ token: PlaceRouter }], target: i0.ɵɵFactoryTarget.Component });
14678
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TabbedPlaceNavigationComponent, selector: "aup-tabbed-place-navigation", inputs: { appearance: "appearance" }, host: { properties: { "attr.appearance": "this.appearance", "@.disabled": "this.animationsDisabled" } }, usesInheritance: true, ngImport: i0, template: "<!-- Declared BEFORE the nav that references it: the nav lives in an *ngIf embedded view, and a\n template ref declared after it can be unresolved on that view's first render. -->\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n<!-- Tabs keep their natural width, packed to the left; Material stretches them to fill by default. -->\n<nav mat-tab-nav-bar [mat-stretch-tabs]=\"false\" [tabPanel]=\"tabPanel\"\n *ngIf=\"!hidden$.value\" [@slideDownOnEnter]>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n", styles: [":host{display:block}nav{overflow:hidden}:host([appearance=folder]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mdc-secondary-navigation-tab-container-height: 38px;background:var(--aup-tab-nav-bar-background, #f0f2f5);padding-top:6px;padding-left:var(--aup-tab-nav-inset, 8px);box-shadow:inset 0 -1px 0 var(--aup-tab-nav-edge-color, #aeb4be)}:host([appearance=folder]) .mat-mdc-tab-link{position:relative;min-width:0;padding:0 12px var(--aup-tab-nav-label-padding-bottom, 0);margin-right:2px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;transition:background-color .12s linear}:host([appearance=folder]) .mat-mdc-tab-link:has(aup-icon){padding-bottom:var(--aup-tab-nav-label-padding-bottom, 8px)}:host([appearance=folder]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active{background-color:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-color:var(--aup-tab-nav-edge-color, #aeb4be);font-weight:700}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active:after{content:\"\";position:absolute;inset:-1px -1px 0;border-radius:10px 10px 0 0;background:linear-gradient(var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)) 0 var(--aup-tab-nav-top-line-width, 2px),transparent 0);pointer-events:none}:host([appearance=folder]) ::ng-deep .mdc-tab-indicator{display:none}:host([appearance=folder]) ::ng-deep .mdc-tab__content{height:100%}:host([appearance=folder]) ::ng-deep .mdc-tab__ripple,:host([appearance=folder]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=segmented]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));margin:var(--aup-tab-nav-segmented-padding, 12px 12px 4px);--mdc-secondary-navigation-tab-container-height: 26px;display:inline-flex;max-width:100%;padding:3px;border:1px solid var(--aup-tab-nav-segment-border-color, #d9dce2);border-radius:9px;background:var(--aup-tab-nav-segment-track-background, var(--aup-tab-nav-bar-background, #f0f2f5))}:host([appearance=segmented]) .mat-mdc-tab-link{min-width:0;padding:0 12px;border-radius:6px;font-size:13px}:host([appearance=segmented]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:2px}:host([appearance=segmented]) .mat-mdc-tab-link.mdc-tab--active{font-weight:700}:host([appearance=segmented]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-segment-selected-background, #fff);box-shadow:0 1px 2px #00000024,0 1px 4px #0000000f}:host([appearance=segmented]) ::ng-deep .mdc-tab__ripple,:host([appearance=segmented]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=tonal]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));padding:var(--aup-tab-nav-tonal-padding, 8px 12px);background:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-bottom:1px solid var(--aup-tab-nav-underline-color, #d9dce2);--mdc-secondary-navigation-tab-container-height: 30px}:host([appearance=tonal]) .mat-mdc-tab-link{min-width:0;padding:0 12px;border-radius:6px;font-size:13px;transition:background-color .12s linear}:host([appearance=tonal]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:2px}:host([appearance=tonal]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=tonal]) .mat-mdc-tab-link.mdc-tab--active{font-weight:700}:host([appearance=tonal]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-tonal-selected-background, var(--aup-tab-nav-theme-accent-soft, #e8eaf6))}:host([appearance=tonal]) ::ng-deep .mdc-tab__ripple,:host([appearance=tonal]) ::ng-deep .mat-mdc-tab-ripple{display: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: "component", type: i3$2.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "animationDuration"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i3$2.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i3$2.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["disabled", "disableRipple", "tabIndex", "active", "id"], exportAs: ["matTabLink"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }], animations: [slideDownOnEnterAnimation] });
14991
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TabbedPlaceNavigationComponent, selector: "aup-tabbed-place-navigation", inputs: { appearance: "appearance" }, host: { properties: { "attr.appearance": "this.appearance", "@.disabled": "this.animationsDisabled" } }, usesInheritance: true, ngImport: i0, template: "<!-- Declared BEFORE the nav that references it: the nav lives in an *ngIf embedded view, and a\n template ref declared after it can be unresolved on that view's first render. -->\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n<!-- Tabs keep their natural width, packed to the left; Material stretches them to fill by default. -->\n<nav mat-tab-nav-bar [mat-stretch-tabs]=\"false\" [tabPanel]=\"tabPanel\"\n *ngIf=\"!hidden$.value\" [@slideDownOnEnter]>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n", styles: [":host{display:block}nav{overflow:hidden}:host([appearance=folder]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mdc-secondary-navigation-tab-container-height: 38px;background:var(--aup-tab-nav-bar-background, #fff);padding-top:6px;padding-left:var(--aup-tab-nav-inset, 8px);box-shadow:inset 0 -1px 0 var(--aup-tab-nav-edge-color, var(--pinstripe-border-color, rgba(0, 0, 0, .2)))}:host([appearance=folder]) .mat-mdc-tab-link{position:relative;min-width:0;padding:0 12px var(--aup-tab-nav-label-padding-bottom, 0);margin-right:2px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;transition:background-color .12s linear}:host([appearance=folder]) .mat-mdc-tab-link:has(aup-icon){padding-bottom:var(--aup-tab-nav-label-padding-bottom, 8px)}:host([appearance=folder]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active{background-color:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-color:var(--aup-tab-nav-edge-color, var(--pinstripe-border-color, rgba(0, 0, 0, .2)));font-weight:700}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active:after{content:\"\";position:absolute;inset:-1px -1px 0;border-radius:10px 10px 0 0;background:linear-gradient(var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)) 0 var(--aup-tab-nav-top-line-width, 2px),transparent 0);pointer-events:none}:host([appearance=folder]) ::ng-deep .mdc-tab-indicator{display:none}:host([appearance=folder]) ::ng-deep .mdc-tab__content{height:100%}:host([appearance=folder]) ::ng-deep .mdc-tab__ripple,:host([appearance=folder]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=segmented]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));margin:var(--aup-tab-nav-segmented-padding, 12px 12px 4px);--mdc-secondary-navigation-tab-container-height: 26px;display:inline-flex;max-width:100%;padding:3px;border:1px solid var(--aup-tab-nav-segment-border-color, #d9dce2);border-radius:9px;background:var(--aup-tab-nav-segment-track-background, var(--aup-tab-nav-bar-background, #f0f2f5))}:host([appearance=segmented]) .mat-mdc-tab-link{min-width:0;padding:0 12px;border-radius:6px;font-size:13px}:host([appearance=segmented]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:2px}:host([appearance=segmented]) .mat-mdc-tab-link.mdc-tab--active{font-weight:700}:host([appearance=segmented]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-segment-selected-background, #fff);box-shadow:0 1px 2px #00000024,0 1px 4px #0000000f}:host([appearance=segmented]) ::ng-deep .mdc-tab__ripple,:host([appearance=segmented]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=tonal]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));padding:var(--aup-tab-nav-tonal-padding, 8px 12px);background:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-bottom:1px solid var(--aup-tab-nav-underline-color, #d9dce2);--mdc-secondary-navigation-tab-container-height: var(--aup-tab-nav-tonal-tab-height, 30px)}:host([appearance=tonal]) .mat-mdc-tab-link{min-width:0;padding:var(--aup-tab-nav-tonal-tab-padding, 0 12px);border-radius:6px;font-size:var(--aup-tab-nav-tonal-font-size, 13px);transition:background-color .12s linear}:host([appearance=tonal]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:var(--aup-tab-nav-tonal-gap, 2px)}:host([appearance=tonal]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=tonal]) .mat-mdc-tab-link.mdc-tab--active{font-weight:var(--aup-tab-nav-tonal-selected-weight, 700)}:host([appearance=tonal]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-tonal-selected-background, var(--aup-tab-nav-theme-accent-soft, #e8eaf6))}:host([appearance=tonal]) ::ng-deep .mdc-tab__ripple,:host([appearance=tonal]) ::ng-deep .mat-mdc-tab-ripple{display: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: "component", type: i3$2.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "animationDuration"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i3$2.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i3$2.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["disabled", "disableRipple", "tabIndex", "active", "id"], exportAs: ["matTabLink"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: CommandDirective, selector: "[pectinCommand]", inputs: ["pectinCommand", "commandParameter", "preventDefault"] }, { kind: "directive", type: GarbageCollectorDirective, selector: "[aup-gc]", exportAs: ["aup-gc"] }, { kind: "component", type: CommandFaceComponent, selector: "aup-command-face", inputs: ["faces", "face", "ignoreIcon", "ignoreText", "includeMissingIconInLayout"] }], animations: [slideDownOnEnterAnimation] });
14679
14992
  }
14680
14993
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TabbedPlaceNavigationComponent, decorators: [{
14681
14994
  type: Component,
14682
- args: [{ selector: 'aup-tabbed-place-navigation', animations: [slideDownOnEnterAnimation], template: "<!-- Declared BEFORE the nav that references it: the nav lives in an *ngIf embedded view, and a\n template ref declared after it can be unresolved on that view's first render. -->\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n<!-- Tabs keep their natural width, packed to the left; Material stretches them to fill by default. -->\n<nav mat-tab-nav-bar [mat-stretch-tabs]=\"false\" [tabPanel]=\"tabPanel\"\n *ngIf=\"!hidden$.value\" [@slideDownOnEnter]>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n", styles: [":host{display:block}nav{overflow:hidden}:host([appearance=folder]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mdc-secondary-navigation-tab-container-height: 38px;background:var(--aup-tab-nav-bar-background, #f0f2f5);padding-top:6px;padding-left:var(--aup-tab-nav-inset, 8px);box-shadow:inset 0 -1px 0 var(--aup-tab-nav-edge-color, #aeb4be)}:host([appearance=folder]) .mat-mdc-tab-link{position:relative;min-width:0;padding:0 12px var(--aup-tab-nav-label-padding-bottom, 0);margin-right:2px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;transition:background-color .12s linear}:host([appearance=folder]) .mat-mdc-tab-link:has(aup-icon){padding-bottom:var(--aup-tab-nav-label-padding-bottom, 8px)}:host([appearance=folder]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active{background-color:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-color:var(--aup-tab-nav-edge-color, #aeb4be);font-weight:700}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active:after{content:\"\";position:absolute;inset:-1px -1px 0;border-radius:10px 10px 0 0;background:linear-gradient(var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)) 0 var(--aup-tab-nav-top-line-width, 2px),transparent 0);pointer-events:none}:host([appearance=folder]) ::ng-deep .mdc-tab-indicator{display:none}:host([appearance=folder]) ::ng-deep .mdc-tab__content{height:100%}:host([appearance=folder]) ::ng-deep .mdc-tab__ripple,:host([appearance=folder]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=segmented]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));margin:var(--aup-tab-nav-segmented-padding, 12px 12px 4px);--mdc-secondary-navigation-tab-container-height: 26px;display:inline-flex;max-width:100%;padding:3px;border:1px solid var(--aup-tab-nav-segment-border-color, #d9dce2);border-radius:9px;background:var(--aup-tab-nav-segment-track-background, var(--aup-tab-nav-bar-background, #f0f2f5))}:host([appearance=segmented]) .mat-mdc-tab-link{min-width:0;padding:0 12px;border-radius:6px;font-size:13px}:host([appearance=segmented]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:2px}:host([appearance=segmented]) .mat-mdc-tab-link.mdc-tab--active{font-weight:700}:host([appearance=segmented]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-segment-selected-background, #fff);box-shadow:0 1px 2px #00000024,0 1px 4px #0000000f}:host([appearance=segmented]) ::ng-deep .mdc-tab__ripple,:host([appearance=segmented]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=tonal]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));padding:var(--aup-tab-nav-tonal-padding, 8px 12px);background:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-bottom:1px solid var(--aup-tab-nav-underline-color, #d9dce2);--mdc-secondary-navigation-tab-container-height: 30px}:host([appearance=tonal]) .mat-mdc-tab-link{min-width:0;padding:0 12px;border-radius:6px;font-size:13px;transition:background-color .12s linear}:host([appearance=tonal]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:2px}:host([appearance=tonal]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=tonal]) .mat-mdc-tab-link.mdc-tab--active{font-weight:700}:host([appearance=tonal]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-tonal-selected-background, var(--aup-tab-nav-theme-accent-soft, #e8eaf6))}:host([appearance=tonal]) ::ng-deep .mdc-tab__ripple,:host([appearance=tonal]) ::ng-deep .mat-mdc-tab-ripple{display:none}\n"] }]
14995
+ args: [{ selector: 'aup-tabbed-place-navigation', animations: [slideDownOnEnterAnimation], template: "<!-- Declared BEFORE the nav that references it: the nav lives in an *ngIf embedded view, and a\n template ref declared after it can be unresolved on that view's first render. -->\n<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n<!-- Tabs keep their natural width, packed to the left; Material stretches them to fill by default. -->\n<nav mat-tab-nav-bar [mat-stretch-tabs]=\"false\" [tabPanel]=\"tabPanel\"\n *ngIf=\"!hidden$.value\" [@slideDownOnEnter]>\n <ng-content select=\"[nav-start]\"></ng-content>\n <a mat-tab-link *ngFor=\"let item of menuItems.value; trackBy: trackByPlaceDef\"\n aup-gc #gc=\"aup-gc\"\n [pectinCommand]=\"commandFactory.create(item.place, {disposedWith: gc})\"\n [active]=\"item.active\"\n [matTooltip]=\"getNavigationFace(item.place).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(item.place)]\"></aup-command-face>\n </a>\n <ng-content select=\"[nav-end]\"></ng-content>\n</nav>\n", styles: [":host{display:block}nav{overflow:hidden}:host([appearance=folder]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mdc-secondary-navigation-tab-container-height: 38px;background:var(--aup-tab-nav-bar-background, #fff);padding-top:6px;padding-left:var(--aup-tab-nav-inset, 8px);box-shadow:inset 0 -1px 0 var(--aup-tab-nav-edge-color, var(--pinstripe-border-color, rgba(0, 0, 0, .2)))}:host([appearance=folder]) .mat-mdc-tab-link{position:relative;min-width:0;padding:0 12px var(--aup-tab-nav-label-padding-bottom, 0);margin-right:2px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;transition:background-color .12s linear}:host([appearance=folder]) .mat-mdc-tab-link:has(aup-icon){padding-bottom:var(--aup-tab-nav-label-padding-bottom, 8px)}:host([appearance=folder]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active{background-color:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-color:var(--aup-tab-nav-edge-color, var(--pinstripe-border-color, rgba(0, 0, 0, .2)));font-weight:700}:host([appearance=folder]) .mat-mdc-tab-link.mdc-tab--active:after{content:\"\";position:absolute;inset:-1px -1px 0;border-radius:10px 10px 0 0;background:linear-gradient(var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)) 0 var(--aup-tab-nav-top-line-width, 2px),transparent 0);pointer-events:none}:host([appearance=folder]) ::ng-deep .mdc-tab-indicator{display:none}:host([appearance=folder]) ::ng-deep .mdc-tab__content{height:100%}:host([appearance=folder]) ::ng-deep .mdc-tab__ripple,:host([appearance=folder]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=segmented]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));margin:var(--aup-tab-nav-segmented-padding, 12px 12px 4px);--mdc-secondary-navigation-tab-container-height: 26px;display:inline-flex;max-width:100%;padding:3px;border:1px solid var(--aup-tab-nav-segment-border-color, #d9dce2);border-radius:9px;background:var(--aup-tab-nav-segment-track-background, var(--aup-tab-nav-bar-background, #f0f2f5))}:host([appearance=segmented]) .mat-mdc-tab-link{min-width:0;padding:0 12px;border-radius:6px;font-size:13px}:host([appearance=segmented]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:2px}:host([appearance=segmented]) .mat-mdc-tab-link.mdc-tab--active{font-weight:700}:host([appearance=segmented]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-segment-selected-background, #fff);box-shadow:0 1px 2px #00000024,0 1px 4px #0000000f}:host([appearance=segmented]) ::ng-deep .mdc-tab__ripple,:host([appearance=segmented]) ::ng-deep .mat-mdc-tab-ripple{display:none}:host([appearance=tonal]) nav.mat-mdc-tab-nav-bar{--mat-tab-header-label-text-tracking: normal;--mat-tab-header-inactive-label-text-color: var(--aup-tab-nav-color, #6b6f76);--mat-tab-header-inactive-hover-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-inactive-focus-label-text-color: var(--aup-tab-nav-hover-color, #212121);--mat-tab-header-active-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-hover-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));--mat-tab-header-active-focus-label-text-color: var(--aup-tab-nav-selected-color, var(--aup-tab-nav-accent, var(--aup-tab-nav-theme-accent, #3f51b5)));padding:var(--aup-tab-nav-tonal-padding, 8px 12px);background:var(--aup-tab-nav-page-background, var(--aup-default-background, #fff));border-bottom:1px solid var(--aup-tab-nav-underline-color, #d9dce2);--mdc-secondary-navigation-tab-container-height: var(--aup-tab-nav-tonal-tab-height, 30px)}:host([appearance=tonal]) .mat-mdc-tab-link{min-width:0;padding:var(--aup-tab-nav-tonal-tab-padding, 0 12px);border-radius:6px;font-size:var(--aup-tab-nav-tonal-font-size, 13px);transition:background-color .12s linear}:host([appearance=tonal]) .mat-mdc-tab-link+.mat-mdc-tab-link{margin-left:var(--aup-tab-nav-tonal-gap, 2px)}:host([appearance=tonal]) .mat-mdc-tab-link:hover:not(.mdc-tab--active){background-color:var(--aup-tab-nav-hover-background, rgba(63, 81, 181, .07))}:host([appearance=tonal]) .mat-mdc-tab-link.mdc-tab--active{font-weight:var(--aup-tab-nav-tonal-selected-weight, 700)}:host([appearance=tonal]) ::ng-deep .mdc-tab-indicator__content--underline{align-self:stretch;height:100%;border:0;border-radius:6px;background:var(--aup-tab-nav-tonal-selected-background, var(--aup-tab-nav-theme-accent-soft, #e8eaf6))}:host([appearance=tonal]) ::ng-deep .mdc-tab__ripple,:host([appearance=tonal]) ::ng-deep .mat-mdc-tab-ripple{display:none}\n"] }]
14683
14996
  }], ctorParameters: function () { return [{ type: PlaceRouter }]; }, propDecorators: { appearance: [{
14684
14997
  type: Input
14685
14998
  }, {
@@ -15041,7 +15354,7 @@ var PlaceAccessGuard;
15041
15354
  function Place(options) {
15042
15355
  return (target) => {
15043
15356
  if (PlaceComponent.isPlaceComponentConstructor(target)) {
15044
- PlaceComponent.injectDefinition(target, new PlaceDefinition(target, options.path, isNil(options.authenticate) ? true : options.authenticate, options.role ?? options.roles, options.data, PlaceComponent.getRouteParameters(target), (options.children || []).map(c => PlaceComponent.getDefinition(c)), options.redirectToFirstChild ?? false, options.rememberLastChild ?? true));
15357
+ PlaceComponent.injectDefinition(target, new PlaceDefinition(target, options.path, isNil(options.authenticate) ? true : options.authenticate, options.role ?? options.roles, options.data, PlaceComponent.getRouteParameters(target), (options.children || []).map(c => PlaceComponent.getDefinition(c)), options.redirectToFirstChild ?? false, options.rememberLastChild ?? true, options.navDepth ?? 2));
15045
15358
  if (options.roles) {
15046
15359
  console.warn(`${target.name} @Place({roles: string[]}) is deprecated. Use @Place({role:any}) instead`);
15047
15360
  }