@camaradesuk/m3e-angular 0.1.0-alpha.7 → 0.2.0-alpha.1

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.
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, ElementRef, model, input, computed, Input, Directive, effect, forwardRef, output, contentChildren, ChangeDetectorRef, NgZone, afterNextRender, DestroyRef, ChangeDetectionStrategy, Component, Injectable, booleanAttribute, signal, ANIMATION_MODULE_TYPE, afterRenderEffect, viewChild, PLATFORM_ID, ViewEncapsulation, APP_ID, TemplateRef, ViewContainerRef, untracked, isDevMode, Renderer2, QueryList, Injector, ViewChildren, ContentChildren, HostAttributeToken, contentChild } from '@angular/core';
3
- import * as i1 from '@angular/material/button';
2
+ import { InjectionToken, inject, ElementRef, model, input, computed, Input, Directive, effect, forwardRef, output, contentChildren, ChangeDetectorRef, NgZone, afterNextRender, DestroyRef, ChangeDetectionStrategy, Component, Injectable, booleanAttribute, signal, ANIMATION_MODULE_TYPE, afterRenderEffect, viewChild, PLATFORM_ID, ViewEncapsulation, APP_ID, TemplateRef, ViewContainerRef, untracked, linkedSignal, isDevMode, afterEveryRender, Renderer2, QueryList, Injector, ViewChildren, ContentChildren, HostAttributeToken, contentChild } from '@angular/core';
3
+ import * as i1$1 from '@angular/material/button';
4
4
  import { MatIconButton, MatButton, MatFabButton, MatButtonModule } from '@angular/material/button';
5
5
  import { gsap } from 'gsap';
6
6
  import { MatMenuTrigger, MatMenu } from '@angular/material/menu';
@@ -13,12 +13,14 @@ import { merge, map, ReplaySubject, Subject } from 'rxjs';
13
13
  import { isPlatformBrowser, DOCUMENT, NgTemplateOutlet } from '@angular/common';
14
14
  import { MorphSVGPlugin } from 'gsap/MorphSVGPlugin';
15
15
  import { CustomEase } from 'gsap/CustomEase';
16
- import { FocusMonitor, InteractivityChecker, addAriaReferencedId, removeAriaReferencedId, _IdGenerator } from '@angular/cdk/a11y';
16
+ import { FocusMonitor, InteractivityChecker, addAriaReferencedId, removeAriaReferencedId, _IdGenerator, InputModalityDetector, AriaDescriber } from '@angular/cdk/a11y';
17
17
  import { Directionality } from '@angular/cdk/bidi';
18
18
  import { Overlay, OverlayConfig } from '@angular/cdk/overlay';
19
19
  import { TemplatePortal, CdkPortalOutlet } from '@angular/cdk/portal';
20
20
  import { MatToolbar } from '@angular/material/toolbar';
21
21
  import { MatDrawer, MatDrawerContainer, MatDrawerContent } from '@angular/material/sidenav';
22
+ import * as i1 from '@angular/material/badge';
23
+ import { MatBadge } from '@angular/material/badge';
22
24
  import { CdkStep, CdkStepper, CdkStepHeader } from '@angular/cdk/stepper';
23
25
  import { CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
24
26
  import { MatDialogState, MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
@@ -3677,11 +3679,11 @@ function addRailSpring(timeline, element, property, from, to, options = {}) {
3677
3679
  }
3678
3680
 
3679
3681
  /** @internal Browser-only controller; constructed from afterRenderEffect. */
3680
- function createNavigationRailMotion(panel, content) {
3682
+ function createNavigationRailMotion(panel, content, layout) {
3681
3683
  const media = panel.ownerDocument.defaultView.matchMedia('(prefers-reduced-motion: reduce)');
3682
3684
  const nav = panel.querySelector('nav');
3683
3685
  const headerButtons = () => Array.from(panel.querySelectorAll('[matExpNavigationRailHeader] button, [matExpNavigationRailHeader] a'));
3684
- const targets = () => Array.from(panel.querySelectorAll('[matExpNavigationRailIcon], .mat-exp-navigation-rail-item-label, .mat-exp-navigation-rail-item-badge, .mat-exp-navigation-rail-item-indicator, [matExpNavigationRailHeader] button, [matExpNavigationRailHeader] a, [matExpNavigationRailHeader] mat-icon, [matExpNavigationRailHeader] .mdc-button__label, .mat-exp-navigation-rail-section-label'));
3686
+ const targets = () => Array.from(panel.querySelectorAll('[matExpNavigationRailIcon], .mat-exp-navigation-rail-item-label, .mat-exp-navigation-rail-item .mat-badge-content, .mat-exp-navigation-rail-item-indicator, [matExpNavigationRailHeader] button, [matExpNavigationRailHeader] a, [matExpNavigationRailHeader] mat-icon, [matExpNavigationRailHeader] .mdc-button__label, .mat-exp-navigation-rail-section-label, .mat-exp-navigation-rail-group-chevron, .mat-exp-navigation-rail-group-mark'));
3685
3687
  const capture = () => {
3686
3688
  const origin = panel.getBoundingClientRect();
3687
3689
  const rtl = getComputedStyle(panel).direction === 'rtl';
@@ -3752,7 +3754,11 @@ function createNavigationRailMotion(panel, content) {
3752
3754
  // at every intermediate width, invalidating the FLIP geometry.
3753
3755
  for (const element of elements)
3754
3756
  element.style.transition = 'none';
3755
- nav.style.inlineSize = `${nav.getBoundingClientRect().width}px`;
3757
+ // A fixed-axis rail lays its rows out at the expanded width already, and its nav clips
3758
+ // them: let the nav follow the panel so the clip edge moves with it.
3759
+ if (!layout.fixedAxis()) {
3760
+ nav.style.inlineSize = `${nav.getBoundingClientRect().width}px`;
3761
+ }
3756
3762
  const buttons = headerButtons();
3757
3763
  const header = panel.querySelector('[matExpNavigationRailHeader]');
3758
3764
  if (header) {
@@ -3847,14 +3853,25 @@ function createNavigationRailMotion(panel, content) {
3847
3853
  effects: true,
3848
3854
  });
3849
3855
  }
3850
- if (element.classList.contains('mat-exp-navigation-rail-item-label')) {
3856
+ // A group's chevron moves and fades with its label.
3857
+ if (element.classList.contains('mat-exp-navigation-rail-item-label') ||
3858
+ element.classList.contains('mat-exp-navigation-rail-group-chevron')) {
3851
3859
  const fade = addRailSpring(timeline, element, 'opacity', old.opacity, 0, {
3852
3860
  effects: true,
3853
3861
  });
3854
- addRailSpring(timeline, element, 'opacity', 0, 1, {
3862
+ // A fixed-axis collapsed rail keeps its labels hidden (opacity 0).
3863
+ if (current.opacity > 0) {
3864
+ addRailSpring(timeline, element, 'opacity', 0, current.opacity, {
3865
+ effects: true,
3866
+ at: fade,
3867
+ resetVelocity: true,
3868
+ });
3869
+ }
3870
+ }
3871
+ if (element.classList.contains('mat-exp-navigation-rail-section-label') &&
3872
+ old.opacity !== current.opacity) {
3873
+ addRailSpring(timeline, element, 'opacity', old.opacity, current.opacity, {
3855
3874
  effects: true,
3856
- at: fade,
3857
- resetVelocity: true,
3858
3875
  });
3859
3876
  }
3860
3877
  }
@@ -3897,6 +3914,9 @@ const MAT_EXP_NAVIGATION_RAIL_DEFAULT_OPTIONS = {
3897
3914
  hideOnCollapse: false,
3898
3915
  alignment: 'top',
3899
3916
  ariaLabel: 'Primary navigation',
3917
+ density: 'default',
3918
+ collapsedLayout: 'stacked',
3919
+ peek: false,
3900
3920
  };
3901
3921
  const options$2 = matExpCreateOptions(MAT_EXP_NAVIGATION_RAIL_DEFAULT_OPTIONS);
3902
3922
  const MAT_EXP_NAVIGATION_RAIL_OPTIONS = options$2.token;
@@ -3904,18 +3924,31 @@ const provideMatExpNavigationRailOptions = options$2.provide;
3904
3924
  /** @internal */
3905
3925
  const injectMatExpNavigationRailOptions = options$2.inject;
3906
3926
 
3927
+ /** Hover intent before a pointer peek opens, and grace before it closes (SyRF timings). */
3928
+ const PEEK_OPEN_DELAY = 120;
3929
+ const PEEK_CLOSE_DELAY = 200;
3930
+ /** Characters typed within this window build one typeahead prefix. */
3931
+ const TYPEAHEAD_RESET = 500;
3932
+ /** Modifier keydowns, which precede a Shift+character, keep the typeahead prefix. */
3933
+ const TYPEAHEAD_MODIFIERS = ['Shift', 'Control', 'Alt', 'Meta'];
3907
3934
  /**
3908
3935
  * Expressive navigation layout. Project destinations directly, a menu/FAB in
3909
- * `[matExpNavigationRailHeader]`, and page content in `[matExpNavigationRailContent]`.
3936
+ * `[matExpNavigationRailHeader]`, optional pinned controls in `[matExpNavigationRailFooter]`,
3937
+ * and page content in `[matExpNavigationRailContent]`.
3910
3938
  */
3911
3939
  class MatExpNavigationRail {
3912
3940
  _options = injectMatExpNavigationRailOptions();
3913
3941
  _document = inject(DOCUMENT);
3914
3942
  _checker = inject(InteractivityChecker);
3943
+ _modality = inject(InputModalityDetector);
3915
3944
  _panel = viewChild.required('panel', /* @ts-ignore */
3916
3945
  ...(ngDevMode ? [{ debugName: "_panel" }] : /* istanbul ignore next */ []));
3917
3946
  _drawerElement = viewChild.required('drawer', { ...(ngDevMode ? { debugName: "_drawerElement" } : /* istanbul ignore next */ {}), read: ElementRef });
3918
3947
  _contentElement = viewChild.required('content', { ...(ngDevMode ? { debugName: "_contentElement" } : /* istanbul ignore next */ {}), read: ElementRef });
3948
+ _destinations = viewChild.required('destinations', /* @ts-ignore */
3949
+ ...(ngDevMode ? [{ debugName: "_destinations" }] : /* istanbul ignore next */ []));
3950
+ _footer = viewChild.required('footer', /* @ts-ignore */
3951
+ ...(ngDevMode ? [{ debugName: "_footer" }] : /* istanbul ignore next */ []));
3919
3952
  _motion;
3920
3953
  _previousFocus = null;
3921
3954
  _lastExternalFocus = null;
@@ -3923,6 +3956,33 @@ class MatExpNavigationRail {
3923
3956
  _wasExpanded = false;
3924
3957
  _wasModal = false;
3925
3958
  _warnedMisprojectedContent = false;
3959
+ _focusOnModalOpen = null;
3960
+ _wasPeeking = false;
3961
+ _peekOpenTimer;
3962
+ _peekCloseTimer;
3963
+ /** The last element focused inside the panel, for a peek that hides it as it ends. */
3964
+ _peekFocus = null;
3965
+ _rescuingPeekFocus = false;
3966
+ _groups = signal([], /* @ts-ignore */
3967
+ ...(ngDevMode ? [{ debugName: "_groups" }] : /* istanbul ignore next */ []));
3968
+ /**
3969
+ * Destinations and group rows, in creation order. That matches document order for static
3970
+ * templates, but not for rows `@if` or `@for` insert later, which register last. Only the
3971
+ * Tab stop used before the browser first measures the tree depends on this order.
3972
+ */
3973
+ _rows = signal([], /* @ts-ignore */
3974
+ ...(ngDevMode ? [{ debugName: "_rows" }] : /* istanbul ignore next */ []));
3975
+ _warnedFooterGroup = false;
3976
+ _warnedNestedGroup = false;
3977
+ /** The tab-stop state the browser Tab stop was last computed from. */
3978
+ _syncedTabStopState = null;
3979
+ /** Focus moved into, within or out of the panel since the Tab stop was last computed. */
3980
+ _focusMoved = false;
3981
+ /** Whether the browser has computed the Tab stop from the DOM at least once. */
3982
+ _tabStopSynced = signal(false, /* @ts-ignore */
3983
+ ...(ngDevMode ? [{ debugName: "_tabStopSynced" }] : /* istanbul ignore next */ []));
3984
+ _typeahead = '';
3985
+ _typeaheadAt = 0;
3926
3986
  /** Whether the rail is expanded; supports `[(expanded)]`. @default false */
3927
3987
  expanded = model(this._options.expanded, /* @ts-ignore */
3928
3988
  ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
@@ -3937,9 +3997,80 @@ class MatExpNavigationRail {
3937
3997
  /** Accessible name of the navigation region and modal. @default 'Primary navigation' */
3938
3998
  ariaLabel = input(this._options.ariaLabel, /* @ts-ignore */
3939
3999
  ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
4000
+ /** Expanded row density; `'compact'` gives 48px rows and leaves the collapsed rail as is. @default 'default' */
4001
+ density = input(this._options.density, /* @ts-ignore */
4002
+ ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
4003
+ /**
4004
+ * Collapsed presentation. `'fixed-axis'` keeps the expanded rows in place and clips them to the
4005
+ * collapsed width, with icons on one axis and labels hidden. @default 'stacked'
4006
+ */
4007
+ collapsedLayout = input(this._options.collapsedLayout, /* @ts-ignore */
4008
+ ...(ngDevMode ? [{ debugName: "collapsedLayout" }] : /* istanbul ignore next */ []));
4009
+ /**
4010
+ * Peek: while collapsed, hovering the rail (mouse or pen, after 120ms) or moving keyboard focus
4011
+ * into it shows the expanded rail as a non-modal overlay; leaving it (200ms grace for the
4012
+ * pointer), focus leaving it or Escape ends the peek. `expanded` does not change. Has no effect
4013
+ * with `hideOnCollapse`. @default false
4014
+ */
4015
+ peek = input(this._options.peek, { ...(ngDevMode ? { debugName: "peek" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4016
+ /** Whether peek applies now: enabled, collapsed and not hidden. */
4017
+ _canPeek = computed(() => this.peek() && !this.expanded() && !this.hideOnCollapse(), /* @ts-ignore */
4018
+ ...(ngDevMode ? [{ debugName: "_canPeek" }] : /* istanbul ignore next */ []));
4019
+ /** A peek request; any change in whether peek applies (pinning, hiding) drops it. */
4020
+ _peekRequested = linkedSignal({ ...(ngDevMode ? { debugName: "_peekRequested" } : /* istanbul ignore next */ {}), source: this._canPeek,
4021
+ computation: () => false });
4022
+ /** Whether the collapsed rail is showing its expanded presentation as a peek overlay. */
4023
+ peeking = computed(() => this._canPeek() && this._peekRequested(), /* @ts-ignore */
4024
+ ...(ngDevMode ? [{ debugName: "peeking" }] : /* istanbul ignore next */ []));
4025
+ /**
4026
+ * Whether the rail presents its expanded layout: expanded or peeking. Bind a header FAB's
4027
+ * `extended` to this rather than to `expanded()`.
4028
+ */
4029
+ presentedExpanded = computed(() => this.expanded() || this.peeking(), /* @ts-ignore */
4030
+ ...(ngDevMode ? [{ debugName: "presentedExpanded" }] : /* istanbul ignore next */ []));
3940
4031
  /** @internal */
3941
4032
  _modal = computed(() => this.mode() === 'modal' && this.expanded(), /* @ts-ignore */
3942
4033
  ...(ngDevMode ? [{ debugName: "_modal" }] : /* istanbul ignore next */ []));
4034
+ /**
4035
+ * @internal Any `mat-exp-navigation-rail-group` among the destinations turns them into a tree.
4036
+ * Footer groups are unsupported and never do.
4037
+ */
4038
+ _tree = computed(() => this._groups().some((group) => !group._inFooter()), /* @ts-ignore */
4039
+ ...(ngDevMode ? [{ debugName: "_tree" }] : /* istanbul ignore next */ []));
4040
+ /** @internal The tree's single Tab stop (roving tabindex); null in list mode. */
4041
+ _tabStop = signal(null, /* @ts-ignore */
4042
+ ...(ngDevMode ? [{ debugName: "_tabStop" }] : /* istanbul ignore next */ []));
4043
+ /**
4044
+ * Everything the Tab stop depends on apart from focus: a new object whenever a row registers
4045
+ * or unregisters, or a row's selection, open, disabled or hidden state, or the expansion,
4046
+ * changes. The browser skips its DOM recomputation while this stays the same object.
4047
+ */
4048
+ _tabStopState = computed(() => {
4049
+ this._tree();
4050
+ this.presentedExpanded();
4051
+ this.collapsedLayout();
4052
+ for (const row of this._rows()) {
4053
+ row._rovingCandidate();
4054
+ row._currentState();
4055
+ }
4056
+ return {};
4057
+ }, /* @ts-ignore */
4058
+ ...(ngDevMode ? [{ debugName: "_tabStopState" }] : /* istanbul ignore next */ []));
4059
+ /**
4060
+ * The Tab stop before the browser has measured the tree, as in server-rendered HTML: the
4061
+ * selected destination, else the closed group holding it, else the first enabled row. It is
4062
+ * computed from the registered rows, with no DOM queries.
4063
+ */
4064
+ _initialTabStop = computed(() => {
4065
+ if (!this._tree())
4066
+ return null;
4067
+ const rows = this._rows().filter((row) => row._rovingCandidate());
4068
+ return (rows.find((row) => row._currentState() === 'page') ??
4069
+ rows.find((row) => row._currentState() === 'true') ??
4070
+ rows[0] ??
4071
+ null);
4072
+ }, /* @ts-ignore */
4073
+ ...(ngDevMode ? [{ debugName: "_initialTabStop" }] : /* istanbul ignore next */ []));
3943
4074
  constructor() {
3944
4075
  // Material owns the focus trap. Expansion can change side -> over without
3945
4076
  // opening the drawer again, so focus entry/restoration is managed here.
@@ -3947,8 +4078,13 @@ class MatExpNavigationRail {
3947
4078
  const expanded = this.expanded();
3948
4079
  const modal = this._modal();
3949
4080
  const hidden = !expanded && this.hideOnCollapse();
3950
- // Refresh motion geometry when destination alignment changes.
4081
+ // A peek changes the presented layout only: it animates, but focus entry and restoration
4082
+ // below follow `expanded` and the modal state alone.
4083
+ const peeking = this.peeking();
4084
+ // Refresh motion geometry when alignment, row density or collapsed layout changes.
3951
4085
  this.alignment();
4086
+ this.density();
4087
+ this.collapsedLayout();
3952
4088
  const panel = this._panel().nativeElement;
3953
4089
  if (isDevMode() && !this._warnedMisprojectedContent) {
3954
4090
  const misplaced = panel.querySelector('.mat-exp-navigation-rail-destinations > main, ' +
@@ -3963,12 +4099,17 @@ class MatExpNavigationRail {
3963
4099
  if (this._motion)
3964
4100
  this._motion.update();
3965
4101
  else
3966
- this._motion = createNavigationRailMotion(this._drawerElement().nativeElement, this._contentElement().nativeElement);
4102
+ this._motion = createNavigationRailMotion(this._drawerElement().nativeElement, this._contentElement().nativeElement, { fixedAxis: () => this.collapsedLayout() === 'fixed-axis' });
3967
4103
  if ((expanded && !this._wasExpanded) || (modal && !this._wasModal)) {
3968
4104
  this._previousFocus = this._document.activeElement;
3969
4105
  }
4106
+ const keep = this._focusOnModalOpen;
4107
+ this._focusOnModalOpen = null;
3970
4108
  if (modal && !this._wasModal) {
3971
- const first = Array.from(panel.querySelectorAll('button, a, [tabindex]')).find((element) => this._checker.isFocusable(element) && this._checker.isTabbable(element));
4109
+ // A group expanding a collapsed rail keeps focus on its own row.
4110
+ const first = keep && panel.contains(keep) && this._checker.isFocusable(keep)
4111
+ ? keep
4112
+ : Array.from(panel.querySelectorAll('button, a, [tabindex]')).find((element) => this._checker.isFocusable(element) && this._checker.isTabbable(element));
3972
4113
  (first ?? panel).focus({ preventScroll: true });
3973
4114
  }
3974
4115
  else if ((!expanded && this._wasExpanded) || (!modal && this._wasModal)) {
@@ -3983,42 +4124,116 @@ class MatExpNavigationRail {
3983
4124
  else if (hidden && panel.contains(this._document.activeElement)) {
3984
4125
  this._restoreFocus(true);
3985
4126
  }
4127
+ else if (this._wasPeeking && !peeking && !expanded) {
4128
+ this._keepFocusAfterPeek();
4129
+ }
3986
4130
  this._wasExpanded = expanded;
3987
4131
  this._wasModal = modal;
4132
+ this._wasPeeking = peeking;
3988
4133
  });
4134
+ afterEveryRender(() => this._syncTabStop());
3989
4135
  inject(DestroyRef).onDestroy(() => {
4136
+ this._clearPeekTimers();
3990
4137
  if (this._wasModal)
3991
4138
  this._restoreFocus();
3992
4139
  this._motion?.destroy();
3993
4140
  });
3994
4141
  }
3995
- /** Expand from a menu button. */
4142
+ /** Expand from a menu button. A peeking rail is pinned open. */
3996
4143
  open() {
4144
+ this._endPeek();
3997
4145
  this.expanded.set(true);
3998
4146
  }
3999
4147
  /** Return to the collapsed or hidden presentation. */
4000
4148
  close() {
4149
+ this._endPeek();
4001
4150
  this.expanded.set(false);
4002
4151
  }
4003
4152
  /** Toggle expansion from a menu button. */
4004
4153
  toggle() {
4154
+ this._endPeek();
4005
4155
  this.expanded.update((value) => !value);
4006
4156
  }
4007
4157
  /** @internal */
4158
+ _registerGroup(group) {
4159
+ this._groups.update((groups) => [...groups, group]);
4160
+ const unregisterRow = this._registerRow(group);
4161
+ return () => {
4162
+ this._groups.update((groups) => groups.filter((entry) => entry !== group));
4163
+ unregisterRow();
4164
+ };
4165
+ }
4166
+ /**
4167
+ * @internal Destinations and group rows register in creation order: document order for static
4168
+ * templates, but rows inserted later (`@if`, `@for`) register last. Only the pre-measurement
4169
+ * Tab stop depends on the order.
4170
+ */
4171
+ _registerRow(row) {
4172
+ this._rows.update((rows) => [...rows, row]);
4173
+ return () => this._rows.update((rows) => rows.filter((entry) => entry !== row));
4174
+ }
4175
+ /**
4176
+ * @internal Whether a tree row is the Tab stop: the browser's DOM-computed stop once it has
4177
+ * one, before that (and on the server) the stop computed from the registered rows.
4178
+ */
4179
+ _isTabStop(row, element) {
4180
+ return this._tabStopSynced() ? this._tabStop() === element : this._initialTabStop() === row;
4181
+ }
4182
+ /** @internal Dev-mode warning, once per rail, for a group where groups are unsupported. */
4183
+ _warnGroupPlacement(placement) {
4184
+ if (!isDevMode())
4185
+ return;
4186
+ if (placement === 'footer' && !this._warnedFooterGroup) {
4187
+ console.warn('MatExpNavigationRail: mat-exp-navigation-rail-group is not supported in ' +
4188
+ '[matExpNavigationRailFooter]. A footer group stays out of the tree and its row is a ' +
4189
+ 'plain button; put groups among the destinations.');
4190
+ this._warnedFooterGroup = true;
4191
+ }
4192
+ else if (placement === 'nested' && !this._warnedNestedGroup) {
4193
+ console.warn('MatExpNavigationRail: a mat-exp-navigation-rail-group is nested in another group. The ' +
4194
+ 'tree has two levels: groups and their destinations. Nested group rows report the ' +
4195
+ 'wrong aria-level.');
4196
+ this._warnedNestedGroup = true;
4197
+ }
4198
+ }
4199
+ /** @internal Expand on behalf of a group row, which keeps focus if the rail turns modal. */
4200
+ _expandFrom(element) {
4201
+ this._focusOnModalOpen = element;
4202
+ this.open();
4203
+ }
4204
+ /** @internal */
4008
4205
  _dismiss() {
4009
4206
  if (this._modal())
4010
4207
  this.close();
4011
4208
  }
4012
4209
  /** @internal */
4013
4210
  _onFocusIn(event) {
4211
+ this._focusMoved = true;
4212
+ // A pointer move starts a new typeahead search; typeahead's own focus moves keep the prefix.
4213
+ if (this._modality.mostRecentModality !== 'keyboard')
4214
+ this._typeahead = '';
4215
+ const panel = this._panel().nativeElement;
4014
4216
  const previous = event.relatedTarget;
4015
4217
  const returningToWindow = previous === null && event.target === this._windowBlurredElement;
4016
4218
  this._windowBlurredElement = null;
4017
4219
  if (previous === null && !returningToWindow)
4018
4220
  this._lastExternalFocus = null;
4019
- else if (previous instanceof HTMLElement && !this._panel().nativeElement.contains(previous)) {
4221
+ else if (previous instanceof HTMLElement && !panel.contains(previous)) {
4020
4222
  this._lastExternalFocus = previous;
4021
4223
  }
4224
+ if (this.peek() && event.target instanceof HTMLElement)
4225
+ this._peekFocus = event.target;
4226
+ // Focus arriving from outside peeks at once; a tap that focuses a destination never does.
4227
+ if (!returningToWindow &&
4228
+ !this._rescuingPeekFocus &&
4229
+ !(previous instanceof Node && panel.contains(previous)) &&
4230
+ this._canPeek() &&
4231
+ // User focus only: programmatic focus (no input yet) and touch taps never peek.
4232
+ (this._modality.mostRecentModality === 'keyboard' ||
4233
+ this._modality.mostRecentModality === 'mouse')) {
4234
+ this._clearPeekTimers();
4235
+ this._peekRequested.set(true);
4236
+ }
4022
4237
  }
4023
4238
  /** @internal */
4024
4239
  _onWindowBlur() {
@@ -4026,19 +4241,78 @@ class MatExpNavigationRail {
4026
4241
  this._windowBlurredElement = this._document.activeElement;
4027
4242
  }
4028
4243
  /** @internal */
4029
- _onFocusOut() {
4244
+ _onFocusOut(event) {
4245
+ this._focusMoved = true;
4030
4246
  // A normal in-page exit invalidates any unconsumed window-return snapshot.
4031
- if (this._document.hasFocus())
4247
+ const documentFocused = this._document.hasFocus();
4248
+ if (documentFocused)
4032
4249
  this._windowBlurredElement = null;
4250
+ const next = event.relatedTarget;
4251
+ // Focus moving within the panel, or the window losing focus, keeps a peek.
4252
+ if (next instanceof Node && this._panel().nativeElement.contains(next))
4253
+ return;
4254
+ if (next === null && !documentFocused)
4255
+ return;
4256
+ // Focus left on purpose: ending this peek must not pull it back. A browser that blurs a
4257
+ // destination as the ending peek hides it has not seen focus leave on purpose.
4258
+ const target = event.target;
4259
+ if (next !== null || (target.isConnected && !target.closest('[hidden]'))) {
4260
+ this._peekFocus = null;
4261
+ }
4262
+ this._endPeek();
4263
+ }
4264
+ /** @internal Mouse or pen hover opens a peek after a short intent delay. Touch never peeks. */
4265
+ _onPointerEnter(event) {
4266
+ if (event.pointerType !== 'mouse' && event.pointerType !== 'pen')
4267
+ return;
4268
+ clearTimeout(this._peekCloseTimer);
4269
+ this._peekCloseTimer = undefined;
4270
+ if (!this._canPeek() || this._peekRequested() || this._peekOpenTimer !== undefined)
4271
+ return;
4272
+ this._peekOpenTimer = setTimeout(() => {
4273
+ this._peekOpenTimer = undefined;
4274
+ if (this._canPeek())
4275
+ this._peekRequested.set(true);
4276
+ }, PEEK_OPEN_DELAY);
4277
+ }
4278
+ /** @internal */
4279
+ _onPointerLeave(event) {
4280
+ if (event.pointerType !== 'mouse' && event.pointerType !== 'pen')
4281
+ return;
4282
+ clearTimeout(this._peekOpenTimer);
4283
+ this._peekOpenTimer = undefined;
4284
+ if (!this.peeking() || this._peekCloseTimer !== undefined)
4285
+ return;
4286
+ // Keyboard focus inside the rail keeps the peek (WCAG 1.4.13, persistent); focus leaving ends it.
4287
+ if (this._modality.mostRecentModality === 'keyboard' &&
4288
+ this._panel().nativeElement.contains(this._document.activeElement)) {
4289
+ return;
4290
+ }
4291
+ this._peekCloseTimer = setTimeout(() => {
4292
+ this._peekCloseTimer = undefined;
4293
+ this._peekRequested.set(false);
4294
+ }, PEEK_CLOSE_DELAY);
4033
4295
  }
4034
4296
  /** @internal */
4035
4297
  _onKeydown(event) {
4298
+ // Any key but a typeahead character or a lone modifier ends the typeahead search, as in CDK's
4299
+ // typeahead, so the next character starts a new prefix wherever that key moved focus.
4300
+ if (!this._isTypeaheadKey(event) && !TYPEAHEAD_MODIFIERS.includes(event.key)) {
4301
+ this._typeahead = '';
4302
+ }
4036
4303
  if (event.key === 'Escape' && this._modal() && !event.defaultPrevented) {
4037
4304
  event.preventDefault();
4038
4305
  event.stopPropagation();
4039
4306
  this.close();
4040
4307
  return;
4041
4308
  }
4309
+ if (event.key === 'Escape' && this.peeking() && !event.defaultPrevented) {
4310
+ // Focus stays where it is; the next peek needs a new pointer or focus entry.
4311
+ event.preventDefault();
4312
+ event.stopPropagation();
4313
+ this._endPeek();
4314
+ return;
4315
+ }
4042
4316
  if (event.key === 'Tab' &&
4043
4317
  this._modal() &&
4044
4318
  !event.defaultPrevented &&
@@ -4061,7 +4335,15 @@ class MatExpNavigationRail {
4061
4335
  }
4062
4336
  return;
4063
4337
  }
4064
- if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
4338
+ if (event.altKey || event.ctrlKey || event.metaKey)
4339
+ return;
4340
+ if (this._tree()) {
4341
+ // Shift only matters to typeahead, which matches labels case-insensitively.
4342
+ if (!event.shiftKey || this._isTypeaheadKey(event))
4343
+ this._onTreeKeydown(event);
4344
+ return;
4345
+ }
4346
+ if (event.shiftKey)
4065
4347
  return;
4066
4348
  if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key))
4067
4349
  return;
@@ -4077,6 +4359,195 @@ class MatExpNavigationRail {
4077
4359
  : (index + (event.key === 'ArrowDown' ? 1 : -1) + items.length) % items.length;
4078
4360
  items[next].focus();
4079
4361
  }
4362
+ /** Visible, enabled treeitems in document order. */
4363
+ _treeItems() {
4364
+ return Array.from(this._destinations().nativeElement.querySelectorAll('[role="treeitem"]')).filter((element) => !element.closest('[hidden]') &&
4365
+ element.getAttribute('aria-disabled') !== 'true' &&
4366
+ !element.hasAttribute('disabled'));
4367
+ }
4368
+ /**
4369
+ * One Tab stop for the tree: the focused row while focus is inside; otherwise the selected
4370
+ * leaf, else the closed group holding it, else the first enabled row.
4371
+ */
4372
+ _syncTabStop() {
4373
+ // Skip the DOM work after renders that changed nothing the stop depends on.
4374
+ const state = this._tabStopState();
4375
+ if (state === this._syncedTabStopState && !this._focusMoved)
4376
+ return;
4377
+ this._syncedTabStopState = state;
4378
+ this._focusMoved = false;
4379
+ if (!this._tree()) {
4380
+ if (this._tabStop())
4381
+ this._tabStop.set(null);
4382
+ return;
4383
+ }
4384
+ const items = this._treeItems();
4385
+ const active = this._document.activeElement;
4386
+ const stop = items.find((item) => item === active) ??
4387
+ items.find((item) => item.getAttribute('aria-current') === 'page') ??
4388
+ items.find((item) => item.getAttribute('aria-current') === 'true') ??
4389
+ items[0] ??
4390
+ null;
4391
+ if (stop !== this._tabStop())
4392
+ this._tabStop.set(stop);
4393
+ if (!this._tabStopSynced())
4394
+ this._tabStopSynced.set(true);
4395
+ }
4396
+ /** APG navigation treeview keys; footer destinations keep their own list among themselves. */
4397
+ _onTreeKeydown(event) {
4398
+ const target = event.target;
4399
+ if (this._footer().nativeElement.contains(target)) {
4400
+ this._onFooterKeydown(event, target);
4401
+ return;
4402
+ }
4403
+ // Keys typed elsewhere (a header search field) never build the row list.
4404
+ if (target.getAttribute('role') !== 'treeitem')
4405
+ return;
4406
+ const items = this._treeItems();
4407
+ const index = items.indexOf(target);
4408
+ if (index < 0)
4409
+ return;
4410
+ const rtl = getComputedStyle(target).direction === 'rtl';
4411
+ const key = event.key === 'ArrowRight'
4412
+ ? rtl
4413
+ ? 'out'
4414
+ : 'in'
4415
+ : event.key === 'ArrowLeft'
4416
+ ? rtl
4417
+ ? 'in'
4418
+ : 'out'
4419
+ : event.key;
4420
+ const group = this._groups().find((entry) => entry._rowElement() === target);
4421
+ let next;
4422
+ switch (key) {
4423
+ case 'ArrowDown':
4424
+ next = items[Math.min(index + 1, items.length - 1)];
4425
+ break;
4426
+ case 'ArrowUp':
4427
+ next = items[Math.max(index - 1, 0)];
4428
+ break;
4429
+ case 'Home':
4430
+ next = items[0];
4431
+ break;
4432
+ case 'End':
4433
+ next = items[items.length - 1];
4434
+ break;
4435
+ case 'in':
4436
+ if (group && !group._expanded())
4437
+ group._openFromKeyboard();
4438
+ else if (group) {
4439
+ const children = group._childrenElement();
4440
+ next = items.find((item) => children?.contains(item));
4441
+ }
4442
+ break;
4443
+ case 'out':
4444
+ if (group?._expanded())
4445
+ group._close();
4446
+ else {
4447
+ next = this._groups()
4448
+ .find((entry) => entry._childrenElement()?.contains(target))
4449
+ ?._rowElement();
4450
+ }
4451
+ break;
4452
+ default:
4453
+ if (this._isTypeaheadKey(event))
4454
+ this._onTypeahead(event, items, index);
4455
+ return;
4456
+ }
4457
+ event.preventDefault();
4458
+ next?.focus();
4459
+ }
4460
+ /** A printable character other than Space, which activates. */
4461
+ _isTypeaheadKey(event) {
4462
+ // Count code points, so characters outside the Basic Multilingual Plane are one key too.
4463
+ return [...event.key].length === 1 && event.key !== ' ' && !event.isComposing;
4464
+ }
4465
+ /**
4466
+ * Typeahead (APG navigation treeview, optional): focus the next visible enabled row whose label
4467
+ * starts with the typed characters, wrapping. Characters within 500ms build a prefix; repeating
4468
+ * one character cycles through the rows starting with it.
4469
+ */
4470
+ _onTypeahead(event, items, index) {
4471
+ const now = Date.now();
4472
+ if (now - this._typeaheadAt > TYPEAHEAD_RESET)
4473
+ this._typeahead = '';
4474
+ this._typeaheadAt = now;
4475
+ this._typeahead += event.key.toLowerCase();
4476
+ const typed = this._typeahead;
4477
+ const repeated = Array.from(typed).every((character) => character === typed[0]);
4478
+ const prefix = repeated ? typed[0] : typed;
4479
+ // A new or repeated character looks past the current row; a longer prefix may still match it.
4480
+ const start = prefix.length === 1 ? index + 1 : index;
4481
+ for (let offset = 0; offset < items.length; offset++) {
4482
+ const item = items[(start + offset) % items.length];
4483
+ const label = item
4484
+ .querySelector('.mat-exp-navigation-rail-item-label')
4485
+ ?.textContent?.replace(/\s+/g, ' ')
4486
+ .trim()
4487
+ .toLowerCase();
4488
+ if (label?.startsWith(prefix)) {
4489
+ event.preventDefault();
4490
+ item.focus();
4491
+ return;
4492
+ }
4493
+ }
4494
+ }
4495
+ _onFooterKeydown(event, target) {
4496
+ if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key))
4497
+ return;
4498
+ const items = Array.from(this._footer().nativeElement.querySelectorAll('.mat-exp-navigation-rail-item')).filter((item) => this._checker.isFocusable(item) && this._checker.isTabbable(item));
4499
+ const index = items.findIndex((item) => item === target || item.contains(target));
4500
+ if (index < 0)
4501
+ return;
4502
+ event.preventDefault();
4503
+ const next = event.key === 'Home'
4504
+ ? 0
4505
+ : event.key === 'End'
4506
+ ? items.length - 1
4507
+ : (index + (event.key === 'ArrowDown' ? 1 : -1) + items.length) % items.length;
4508
+ items[next].focus();
4509
+ }
4510
+ /**
4511
+ * @internal Escape dismisses a peek from anywhere (WCAG 1.4.13, dismissible): a hover peek can
4512
+ * cover page content while focus stays outside the rail. Inside the rail, `_onKeydown` handles
4513
+ * Escape first and stops it.
4514
+ */
4515
+ _onDocumentEscape(event) {
4516
+ if (this.peeking() && !event.defaultPrevented)
4517
+ this._endPeek();
4518
+ }
4519
+ _endPeek() {
4520
+ this._clearPeekTimers();
4521
+ this._peekRequested.set(false);
4522
+ }
4523
+ _clearPeekTimers() {
4524
+ clearTimeout(this._peekOpenTimer);
4525
+ clearTimeout(this._peekCloseTimer);
4526
+ this._peekOpenTimer = this._peekCloseTimer = undefined;
4527
+ }
4528
+ /**
4529
+ * A peek ending never moves focus, unless it hid the focused destination (an `expandedOnly`
4530
+ * item): keep focus in the rail rather than losing it to the document. Tree groups move focus
4531
+ * from a hidden child to their own row.
4532
+ */
4533
+ _keepFocusAfterPeek() {
4534
+ const panel = this._panel().nativeElement;
4535
+ const last = this._peekFocus;
4536
+ const active = this._document.activeElement;
4537
+ if (!last || !panel.contains(last))
4538
+ return;
4539
+ if (active !== last && active !== this._document.body && active !== null)
4540
+ return;
4541
+ if (last.isConnected && !last.closest('[hidden]'))
4542
+ return;
4543
+ this._rescuingPeekFocus = true;
4544
+ try {
4545
+ panel.focus({ preventScroll: true });
4546
+ }
4547
+ finally {
4548
+ this._rescuingPeekFocus = false;
4549
+ }
4550
+ }
4080
4551
  _restoreFocus(fallbackToContent = false) {
4081
4552
  const panel = this._panel().nativeElement;
4082
4553
  const candidates = fallbackToContent
@@ -4095,40 +4566,138 @@ class MatExpNavigationRail {
4095
4566
  this._windowBlurredElement = null;
4096
4567
  }
4097
4568
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRail, deps: [], target: i0.ɵɵFactoryTarget.Component });
4098
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.3", type: MatExpNavigationRail, isStandalone: true, selector: "mat-exp-navigation-rail", inputs: { expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, hideOnCollapse: { classPropertyName: "hideOnCollapse", publicName: "hideOnCollapse", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { listeners: { "window:blur": "_onWindowBlur()" }, properties: { "attr.data-expanded": "expanded()", "attr.data-mode": "mode()", "attr.data-hide-on-collapse": "hideOnCollapse()", "attr.data-hidden": "!expanded() && hideOnCollapse()", "attr.data-alignment": "alignment()" }, classAttribute: "mat-exp-navigation-rail" }, viewQueries: [{ propertyName: "_panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "_drawerElement", first: true, predicate: ["drawer"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "_contentElement", first: true, predicate: ["content"], descendants: true, read: ElementRef, isSignal: true }], exportAs: ["matExpNavigationRail"], ngImport: i0, template: "<mat-drawer-container class=\"mat-exp-navigation-rail-layout\" (backdropClick)=\"_dismiss()\">\n <mat-drawer\n #drawer\n class=\"mat-exp-navigation-rail-panel\"\n [mode]=\"_modal() ? 'over' : 'side'\"\n [opened]=\"true\"\n [attr.inert]=\"!expanded() && hideOnCollapse() ? '' : null\"\n [attr.aria-hidden]=\"!expanded() && hideOnCollapse() ? 'true' : null\"\n [disableClose]=\"true\"\n [autoFocus]=\"false\"\n [attr.role]=\"_modal() ? 'dialog' : null\"\n [attr.aria-modal]=\"_modal() ? 'true' : null\"\n [attr.aria-label]=\"_modal() ? ariaLabel() : null\"\n >\n <nav\n #panel\n tabindex=\"-1\"\n [attr.aria-label]=\"ariaLabel()\"\n (keydown)=\"_onKeydown($event)\"\n (focusin)=\"_onFocusIn($event)\"\n (focusout)=\"_onFocusOut()\"\n >\n <div class=\"mat-exp-navigation-rail-header\">\n <ng-content select=\"[matExpNavigationRailHeader]\" />\n </div>\n <div class=\"mat-exp-navigation-rail-destinations\"><ng-content /></div>\n </nav>\n </mat-drawer>\n <mat-drawer-content\n #content\n class=\"mat-exp-navigation-rail-content\"\n tabindex=\"-1\"\n [attr.inert]=\"_modal() ? '' : null\"\n >\n <ng-content select=\"[matExpNavigationRailContent]\" />\n </mat-drawer-content>\n</mat-drawer-container>\n", styles: [".mat-exp-navigation-rail{--_mat-exp-rail-width: var(--mat-exp-navigation-rail-collapsed-width, 6rem);--_mat-exp-rail-reserved: var(--_mat-exp-rail-width);display:block;block-size:100%;min-block-size:0;color:var(--mat-sys-on-surface)}.mat-exp-navigation-rail[data-expanded=true]{--_mat-exp-rail-width: var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail[data-mode=modal][data-expanded=true]{--_mat-exp-rail-reserved: var(--mat-exp-navigation-rail-collapsed-width, 6rem)}.mat-exp-navigation-rail[data-hidden=true],.mat-exp-navigation-rail[data-hide-on-collapse=true][data-mode=modal]{--_mat-exp-rail-reserved: 0rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-layout{block-size:100%;background:inherit;color:inherit}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel{inline-size:var(--_mat-exp-rail-width);max-inline-size:100%;border-radius:0;border:0;background:var(--mat-exp-navigation-rail-container-color, var(--mat-sys-surface-container));color:var(--mat-sys-on-surface-variant);box-shadow:none;transition:none}.mat-exp-navigation-rail[data-mode=modal][data-expanded=true] .mat-exp-navigation-rail-panel{border-start-end-radius:1rem;border-end-end-radius:1rem;box-shadow:var(--mat-sys-level2)}.mat-exp-navigation-rail .mat-exp-navigation-rail-content{outline:none;margin-left:0!important;margin-right:0!important;margin-inline-start:var(--_mat-exp-rail-animated-margin, var(--_mat-exp-rail-reserved))!important;transition:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav{display:flex;flex-direction:column;min-block-size:100%;box-sizing:border-box;padding-block:2.75rem 1.25rem;outline:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-header{padding-inline:1.25rem;margin-block-end:2.5rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-header:empty{display:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-header>[matExpNavigationRailHeader]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-destinations{display:flex;flex-direction:column;gap:.25rem}.mat-exp-navigation-rail[data-alignment=center] .mat-exp-navigation-rail-destinations{margin-block:auto}.mat-exp-navigation-rail[data-expanded=false] .mat-exp-navigation-rail-header>[matExpNavigationRailHeader]{align-items:center}.mat-exp-navigation-rail-item{position:relative;display:flex;justify-content:center;inline-size:100%;box-sizing:border-box;padding:.375rem 1rem;min-block-size:4rem;border:0;background:transparent;color:var(--mat-sys-on-surface-variant);text-decoration:none;cursor:pointer;text-align:center;font:var(--mat-sys-label-medium);letter-spacing:var(--mat-sys-label-medium-tracking);-webkit-tap-highlight-color:transparent}.mat-exp-navigation-rail-item[hidden]{display:none}.mat-exp-navigation-rail-item[aria-disabled=true]{cursor:default;opacity:.38}.mat-exp-navigation-rail-item:focus-visible{outline:.1875rem solid var(--mat-sys-secondary);outline-offset:-.1875rem;border-radius:1rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{position:relative;display:flex;flex-direction:column;align-items:center;max-inline-size:100%;overflow:visible}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon{display:grid;place-items:center;position:relative;inline-size:3.5rem;min-block-size:2rem;border-radius:1rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon>*{inline-size:1.5rem;block-size:1.5rem;font-size:1.5rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:var(--mat-sys-on-secondary-container);opacity:0}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-label{margin-block-start:.25rem;overflow-wrap:anywhere}.mat-exp-navigation-rail-item[data-selected=true]{color:var(--mat-sys-secondary)}.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-icon{background:transparent;color:var(--mat-sys-on-secondary-container);font-variation-settings:\"FILL\" 1}.mat-exp-navigation-rail-item:hover:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.08}.mat-exp-navigation-rail-item:active:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.1}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-badge{position:absolute;inset-block-start:0;inset-inline-start:calc(50% + .5rem);background:var(--mat-sys-error);color:var(--mat-sys-on-error);border-radius:1rem;min-inline-size:1rem;min-block-size:1rem;padding-inline:.25rem;box-sizing:border-box;font:var(--mat-sys-label-small)}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-badge.mat-exp-navigation-rail-item-dot{min-inline-size:.375rem;min-block-size:.375rem;padding:0}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item{justify-content:flex-start;text-align:start;padding:0 1.25rem}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{flex-direction:row;gap:.5rem;box-sizing:border-box;min-block-size:3.5rem;padding:1rem;border-radius:1.75rem}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:var(--mat-sys-on-secondary-container);opacity:0;pointer-events:none}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon{inline-size:1.5rem;min-block-size:1.5rem;flex-shrink:0;background:transparent}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon:before{display:none}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-label{margin:0}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item[data-selected=true]{color:var(--mat-sys-on-secondary-container)}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{background:transparent}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item:hover:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.08}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item:active:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.1}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-badge{position:relative;inset:auto;flex-shrink:0}@media(prefers-reduced-motion:reduce){.mat-exp-navigation-rail .mat-drawer-backdrop{transition:none}}@media(forced-colors:active){.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{outline:2px solid Highlight}}.mat-exp-navigation-rail[data-hidden=true]{--_mat-exp-rail-width: 0rem}.mat-exp-navigation-rail[data-hide-on-collapse=true] .mat-exp-navigation-rail-panel nav{inline-size:var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-destinations{gap:0}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item{min-block-size:3.5rem;font:var(--mat-sys-label-large);letter-spacing:var(--mat-sys-label-large-tracking)}.mat-exp-navigation-rail-item-indicator{position:absolute;inset-block-start:0;inset-inline-start:calc(50% - 1.75rem);inline-size:3.5rem;block-size:2rem;border-radius:1.75rem;background:var(--mat-sys-secondary-container);transform-origin:center;pointer-events:none}.mat-exp-navigation-rail-item-label,.mat-exp-navigation-rail-item-badge{position:relative}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item-indicator{inset:0;inline-size:100%;block-size:100%}.mat-exp-navigation-rail-section{display:flex;flex-direction:column}.mat-exp-navigation-rail-section[hidden]{display:none}.mat-exp-navigation-rail-section .mat-exp-navigation-rail-section-label{padding:.75rem 2.25rem .5rem;font:var(--mat-sys-label-large);color:var(--mat-sys-on-surface-variant)}.mat-exp-navigation-rail[data-expanded=false] .mat-exp-navigation-rail-section-label{display:none}.mat-exp-navigation-rail-item-indicator{opacity:0;transform:scaleX(0)}.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-indicator{opacity:1;transform:scaleX(1)}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-ripple{position:absolute;inset-block-start:0;inset-inline-start:calc(50% - 1.75rem);inline-size:3.5rem;block-size:2rem;border-radius:1.75rem;z-index:1;pointer-events:none;--mat-ripple-color: color-mix(in srgb, var(--mat-sys-on-secondary-container) 10%, transparent)}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item-ripple{inset:0;inline-size:100%;block-size:100%}.mat-exp-navigation-rail-item:focus-visible:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.1}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item:focus-visible:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.1}.mat-exp-navigation-rail .mat-mdc-fab:not(.mat-mdc-extended-fab) .mdc-button__label{position:absolute;opacity:0;pointer-events:none}.mat-exp-navigation-rail[data-expanded=true] [matExpNavigationRailHeader]>.mat-mdc-icon-button{margin-inline-start:calc((3.5rem - var(--mat-icon-button-state-layer-size, 2.5rem)) / 2)}.mat-exp-navigation-rail[data-expanded=true] [matExpNavigationRailHeader]>.mat-mdc-extended-fab>.mat-icon{margin-left:-.25rem;margin-right:.75rem}.mat-exp-navigation-rail[data-expanded=true]:dir(rtl) [matExpNavigationRailHeader]>.mat-mdc-extended-fab>.mat-icon{margin-right:-.25rem;margin-left:.75rem}\n"], dependencies: [{ kind: "component", type: MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: MatDrawerContent, selector: "mat-drawer-content" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4569
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.3", type: MatExpNavigationRail, isStandalone: true, selector: "mat-exp-navigation-rail", inputs: { expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, hideOnCollapse: { classPropertyName: "hideOnCollapse", publicName: "hideOnCollapse", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, collapsedLayout: { classPropertyName: "collapsedLayout", publicName: "collapsedLayout", isSignal: true, isRequired: false, transformFunction: null }, peek: { classPropertyName: "peek", publicName: "peek", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { listeners: { "window:blur": "_onWindowBlur()", "document:keydown.escape": "_onDocumentEscape($event)" }, properties: { "attr.data-expanded": "presentedExpanded()", "attr.data-peek": "peeking() || null", "attr.data-mode": "mode()", "attr.data-hide-on-collapse": "hideOnCollapse()", "attr.data-hidden": "!expanded() && hideOnCollapse()", "attr.data-alignment": "alignment()", "attr.data-density": "density()", "attr.data-collapsed-layout": "collapsedLayout()", "attr.data-tree": "_tree() || null" }, classAttribute: "mat-exp-navigation-rail" }, viewQueries: [{ propertyName: "_panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "_drawerElement", first: true, predicate: ["drawer"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "_contentElement", first: true, predicate: ["content"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "_destinations", first: true, predicate: ["destinations"], descendants: true, isSignal: true }, { propertyName: "_footer", first: true, predicate: ["footer"], descendants: true, isSignal: true }], exportAs: ["matExpNavigationRail"], ngImport: i0, template: "<mat-drawer-container class=\"mat-exp-navigation-rail-layout\" (backdropClick)=\"_dismiss()\">\n <mat-drawer\n #drawer\n class=\"mat-exp-navigation-rail-panel\"\n [mode]=\"_modal() ? 'over' : 'side'\"\n [opened]=\"true\"\n [attr.inert]=\"!expanded() && hideOnCollapse() ? '' : null\"\n [attr.aria-hidden]=\"!expanded() && hideOnCollapse() ? 'true' : null\"\n [disableClose]=\"true\"\n [autoFocus]=\"false\"\n [attr.role]=\"_modal() ? 'dialog' : null\"\n [attr.aria-modal]=\"_modal() ? 'true' : null\"\n [attr.aria-label]=\"_modal() ? ariaLabel() : null\"\n (pointerenter)=\"_onPointerEnter($event)\"\n (pointerleave)=\"_onPointerLeave($event)\"\n >\n <nav\n #panel\n tabindex=\"-1\"\n [attr.aria-label]=\"ariaLabel()\"\n (keydown)=\"_onKeydown($event)\"\n (focusin)=\"_onFocusIn($event)\"\n (focusout)=\"_onFocusOut($event)\"\n >\n <div class=\"mat-exp-navigation-rail-header\">\n <ng-content select=\"[matExpNavigationRailHeader]\" />\n </div>\n <!-- Firefox puts scroll containers in sequential focus; keep them out. -->\n <div\n #destinations\n class=\"mat-exp-navigation-rail-destinations\"\n tabindex=\"-1\"\n [attr.role]=\"_tree() ? 'tree' : null\"\n [attr.aria-label]=\"_tree() ? ariaLabel() : null\"\n >\n <ng-content />\n </div>\n <div #footer class=\"mat-exp-navigation-rail-footer\" tabindex=\"-1\">\n <ng-content select=\"[matExpNavigationRailFooter]\" />\n </div>\n </nav>\n </mat-drawer>\n <mat-drawer-content\n #content\n class=\"mat-exp-navigation-rail-content\"\n tabindex=\"-1\"\n [attr.inert]=\"_modal() ? '' : null\"\n >\n <ng-content select=\"[matExpNavigationRailContent]\" />\n </mat-drawer-content>\n</mat-drawer-container>\n", styles: [".mat-exp-navigation-rail{--_mat-exp-rail-width: var(--mat-exp-navigation-rail-collapsed-width, 6rem);--_mat-exp-rail-reserved: var(--_mat-exp-rail-width);display:block;block-size:100%;min-block-size:0;color:var(--mat-sys-on-surface)}.mat-exp-navigation-rail[data-expanded=true]{--_mat-exp-rail-width: var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail[data-mode=modal][data-expanded=true],.mat-exp-navigation-rail[data-peek]{--_mat-exp-rail-reserved: var(--mat-exp-navigation-rail-collapsed-width, 6rem)}.mat-exp-navigation-rail[data-hidden=true],.mat-exp-navigation-rail[data-hide-on-collapse=true][data-mode=modal]{--_mat-exp-rail-reserved: 0rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-layout{block-size:100%;background:inherit;color:inherit}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel{inline-size:var(--_mat-exp-rail-width);max-inline-size:100%;border-radius:0;border:0;background:var(--mat-exp-navigation-rail-container-color, var(--mat-sys-surface-container));color:var(--mat-sys-on-surface-variant);box-shadow:none;transition:none}.mat-exp-navigation-rail[data-mode=modal][data-expanded=true] .mat-exp-navigation-rail-panel,.mat-exp-navigation-rail[data-peek] .mat-exp-navigation-rail-panel{border-start-end-radius:1rem;border-end-end-radius:1rem;box-shadow:var(--mat-sys-level2)}.mat-exp-navigation-rail[data-peek] .mat-exp-navigation-rail-panel{z-index:2}.mat-exp-navigation-rail .mat-exp-navigation-rail-content{outline:none;margin-left:0!important;margin-right:0!important;margin-inline-start:var(--_mat-exp-rail-animated-margin, var(--_mat-exp-rail-reserved))!important;transition:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav{display:flex;flex-direction:column;min-block-size:100%;box-sizing:border-box;padding-block:2.75rem 1.25rem;outline:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-header{padding-inline:1.25rem;margin-block-end:2.5rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-header:empty{display:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-header>[matExpNavigationRailHeader]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-destinations{display:flex;flex-direction:column;gap:.25rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-destinations,.mat-exp-navigation-rail .mat-exp-navigation-rail-footer{outline:none}.mat-exp-navigation-rail[data-alignment=center] .mat-exp-navigation-rail-destinations{margin-block:auto}.mat-exp-navigation-rail .mat-exp-navigation-rail-footer:empty{display:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-footer>[matExpNavigationRailFooter]{display:flex;flex-direction:column;gap:.25rem}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-footer>[matExpNavigationRailFooter]{gap:0}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*){block-size:100%;min-block-size:0}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-header{flex:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-destinations{flex:1 1 auto;min-block-size:0;overflow-x:hidden;overflow-y:auto}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-footer{display:flex;flex-direction:column;flex:0 1 auto;min-block-size:0;max-block-size:var(--mat-exp-navigation-rail-footer-max-block-size, 50%);overflow-x:hidden;overflow-y:auto}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-destinations>*,.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-footer>*{flex-shrink:0}.mat-exp-navigation-rail[data-alignment=center] .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-destinations{margin-block:0;justify-content:safe center}.mat-exp-navigation-rail[data-expanded=false]:not([data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-header>[matExpNavigationRailHeader]{align-items:center}.mat-exp-navigation-rail-item{position:relative;display:flex;justify-content:center;inline-size:100%;box-sizing:border-box;padding:.375rem 1rem;min-block-size:4rem;border:0;background:transparent;color:var(--mat-sys-on-surface-variant);text-decoration:none;cursor:pointer;text-align:center;font:var(--mat-sys-label-medium);letter-spacing:var(--mat-sys-label-medium-tracking);-webkit-tap-highlight-color:transparent}.mat-exp-navigation-rail-item[hidden]{display:none}.mat-exp-navigation-rail-item[aria-disabled=true]{cursor:default;opacity:.38}.mat-exp-navigation-rail-item:focus-visible{outline:.1875rem solid var(--mat-sys-secondary);outline-offset:-.1875rem;border-radius:1rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{position:relative;display:flex;flex-direction:column;align-items:center;max-inline-size:100%;overflow:visible}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon{display:grid;place-items:center;position:relative;inline-size:3.5rem;min-block-size:2rem;border-radius:1rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon>*{inline-size:1.5rem;block-size:1.5rem;font-size:1.5rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:var(--mat-sys-on-secondary-container);opacity:0}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-label{margin-block-start:.25rem;overflow-wrap:anywhere}.mat-exp-navigation-rail-item[data-selected=true]{color:var(--mat-sys-secondary)}.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-icon{background:transparent;color:var(--mat-sys-on-secondary-container);font-variation-settings:\"FILL\" 1}.mat-exp-navigation-rail-item:hover:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.08}.mat-exp-navigation-rail-item:active:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.1}.mat-exp-navigation-rail-item.mat-badge .mat-badge-content{inset:0 auto auto calc(50% + .5rem)}.mat-exp-navigation-rail-item.mat-badge:dir(rtl) .mat-badge-content{inset:0 calc(50% + .5rem) auto auto}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item{justify-content:flex-start;text-align:start;padding:0 1.25rem}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{flex-direction:row;gap:.5rem;box-sizing:border-box;min-block-size:3.5rem;padding:1rem;border-radius:1.75rem}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:var(--mat-sys-on-secondary-container);opacity:0;pointer-events:none}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon{inline-size:1.5rem;min-block-size:1.5rem;flex-shrink:0;background:transparent}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon:before{display:none}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-label{margin:0}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-selected=true]{color:var(--mat-sys-on-secondary-container)}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{background:transparent}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item:hover:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.08}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item:active:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.1}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item.mat-badge .mat-badge-content{position:relative;inset:auto;flex-shrink:0}@media(prefers-reduced-motion:reduce){.mat-exp-navigation-rail .mat-drawer-backdrop{transition:none}}@media(forced-colors:active){.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{outline:2px solid Highlight}.mat-exp-navigation-rail[data-peek] .mat-exp-navigation-rail-panel{outline:1px solid CanvasText}}.mat-exp-navigation-rail[data-hidden=true]{--_mat-exp-rail-width: 0rem}.mat-exp-navigation-rail[data-hide-on-collapse=true] .mat-exp-navigation-rail-panel nav{inline-size:var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-destinations{gap:0}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item{min-block-size:3.5rem;font:var(--mat-sys-label-large);letter-spacing:var(--mat-sys-label-large-tracking)}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item{min-block-size:3rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{min-block-size:3rem;padding-block:.25rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-tall]{min-block-size:3.75rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-tall] .mat-exp-navigation-rail-item-container{min-block-size:3.75rem}.mat-exp-navigation-rail-item-indicator{position:absolute;inset-block-start:0;inset-inline-start:calc(50% - 1.75rem);inline-size:3.5rem;block-size:2rem;border-radius:1.75rem;background:var(--mat-sys-secondary-container);transform-origin:center;pointer-events:none}.mat-exp-navigation-rail-item-label{position:relative}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item-indicator{inset:0;inline-size:100%;block-size:100%}.mat-exp-navigation-rail-section{display:flex;flex-direction:column}.mat-exp-navigation-rail-section[hidden]{display:none}.mat-exp-navigation-rail-section .mat-exp-navigation-rail-section-label{padding:var(--mat-exp-navigation-rail-section-label-padding, .75rem 2.25rem .5rem);font:var(--mat-exp-navigation-rail-section-label-font, var(--mat-sys-label-large));letter-spacing:var(--mat-exp-navigation-rail-section-label-tracking);text-transform:var(--mat-exp-navigation-rail-section-label-text-transform);color:var(--mat-exp-navigation-rail-section-label-color, var(--mat-sys-on-surface-variant))}.mat-exp-navigation-rail[data-expanded=false] .mat-exp-navigation-rail-section-label{display:none}.mat-exp-navigation-rail-item-indicator{opacity:0;transform:scaleX(0)}.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-indicator{opacity:1;transform:scaleX(1)}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-ripple{position:absolute;inset-block-start:0;inset-inline-start:calc(50% - 1.75rem);inline-size:3.5rem;block-size:2rem;border-radius:1.75rem;z-index:1;pointer-events:none;--mat-ripple-color: color-mix(in srgb, var(--mat-sys-on-secondary-container) 10%, transparent)}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item-ripple{inset:0;inline-size:100%;block-size:100%}.mat-exp-navigation-rail-item:focus-visible:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.1}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item:focus-visible:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.1}.mat-exp-navigation-rail .mat-mdc-fab:not(.mat-mdc-extended-fab) .mdc-button__label{position:absolute;opacity:0;pointer-events:none}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) [matExpNavigationRailHeader]>.mat-mdc-icon-button{margin-inline-start:calc((3.5rem - var(--mat-icon-button-state-layer-size, 2.5rem)) / 2)}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) [matExpNavigationRailHeader]>.mat-mdc-extended-fab>.mat-icon{margin-left:-.25rem;margin-right:.75rem}.mat-exp-navigation-rail[data-expanded=true]:dir(rtl) [matExpNavigationRailHeader]>.mat-mdc-extended-fab>.mat-icon{margin-right:-.25rem;margin-left:.75rem}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis] .mat-exp-navigation-rail-panel nav{overflow-x:clip}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis] .mat-exp-navigation-rail-panel nav>*{box-sizing:border-box;inline-size:var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item-label,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-section-label{opacity:0}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-section-label{display:block}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item:focus-visible{outline:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-indicator,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-ripple,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container:before,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item:focus-visible .mat-exp-navigation-rail-item-container:after{inset-block:0;inset-inline:0 auto;inline-size:3.5rem;block-size:2rem;margin-block:auto;border-radius:1rem}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item:focus-visible .mat-exp-navigation-rail-item-container:after{content:\"\";position:absolute;outline:.1875rem solid var(--mat-sys-secondary);pointer-events:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item.mat-badge .mat-badge-content{position:absolute;inset-block-start:calc(50% - 1rem);inset-inline-start:2.25rem}@media(forced-colors:active){.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{outline:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-indicator{outline:2px solid Highlight}}.mat-exp-navigation-rail .mat-exp-navigation-rail-item.mat-badge .mat-badge-content{margin:0;transition:none}.mat-exp-navigation-rail-group{display:flex;flex-direction:column}.mat-exp-navigation-rail-group-row{-webkit-user-select:none;user-select:none}.mat-exp-navigation-rail-group-children{position:relative;display:flex;flex-direction:column}.mat-exp-navigation-rail-group-chevron{display:none;flex-shrink:0;inline-size:1.375rem;block-size:1.375rem;rotate:-90deg;transition:rotate .25s cubic-bezier(.2,0,0,1)}.mat-exp-navigation-rail-group-chevron:dir(rtl){rotate:90deg}.mat-exp-navigation-rail-group-chevron>svg{display:block;inline-size:100%;block-size:100%;fill:currentColor}.mat-exp-navigation-rail-group-row[data-open=true] .mat-exp-navigation-rail-group-chevron{rotate:0deg}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-group-chevron{display:block}.mat-exp-navigation-rail-group-mark{display:none}@media(prefers-reduced-motion:reduce){.mat-exp-navigation-rail-group-chevron{transition:none}}.mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-icon{display:none}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-child]{min-block-size:3rem}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-container{min-block-size:3rem;padding-block:.25rem;padding-inline-start:3rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-child]{min-block-size:2.5rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-container{min-block-size:2.5rem}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-chevron{opacity:0}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-row[data-selected=true] .mat-exp-navigation-rail-group-mark{display:block;position:absolute;inset-block-start:calc(50% + 1.125rem);inset-inline-start:1.625rem;inline-size:.25rem;block-size:.25rem;border-radius:50%;background:var(--mat-sys-secondary);pointer-events:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-children:before{content:\"\";position:absolute;inset-block:.375rem;inset-inline-start:2.9375rem;inline-size:.125rem;background:var(--mat-sys-outline-variant);pointer-events:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-ripple{display:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-indicator{inset-inline-start:1.4375rem;inline-size:.625rem;block-size:.625rem;border-radius:50%;background:var(--mat-sys-secondary);box-shadow:0 0 0 .1875rem var(--mat-exp-navigation-rail-container-color, var(--mat-sys-surface-container))}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-container:before,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child]:focus-visible .mat-exp-navigation-rail-item-container:after{inset-inline-start:1rem;inline-size:1.5rem;block-size:1.5rem;border-radius:50%}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child].mat-badge .mat-badge-content{--_mat-exp-rail-child-badge-size: var(--mat-badge-small-size-container-size, 6px);inset-block-start:calc(50% - var(--_mat-exp-rail-child-badge-size) / 2);inset-inline-start:2.25rem;inline-size:var(--_mat-exp-rail-child-badge-size);block-size:var(--_mat-exp-rail-child-badge-size);min-inline-size:0;min-block-size:0;padding:0;overflow:hidden;font-size:0;line-height:0}@media(forced-colors:active){.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-children:before{forced-color-adjust:none;background:CanvasText}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-row[data-selected=true] .mat-exp-navigation-rail-group-mark,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-indicator{forced-color-adjust:none;background:Highlight;box-shadow:0 0 0 .1875rem Canvas}}\n"], dependencies: [{ kind: "component", type: MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: MatDrawerContent, selector: "mat-drawer-content" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4099
4570
  }
4100
4571
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRail, decorators: [{
4101
4572
  type: Component,
4102
4573
  args: [{ selector: 'mat-exp-navigation-rail', exportAs: 'matExpNavigationRail', imports: [MatDrawer, MatDrawerContainer, MatDrawerContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
4103
4574
  class: 'mat-exp-navigation-rail',
4104
4575
  '(window:blur)': '_onWindowBlur()',
4105
- '[attr.data-expanded]': 'expanded()',
4576
+ '(document:keydown.escape)': '_onDocumentEscape($event)',
4577
+ '[attr.data-expanded]': 'presentedExpanded()',
4578
+ '[attr.data-peek]': 'peeking() || null',
4106
4579
  '[attr.data-mode]': 'mode()',
4107
4580
  '[attr.data-hide-on-collapse]': 'hideOnCollapse()',
4108
4581
  '[attr.data-hidden]': '!expanded() && hideOnCollapse()',
4109
4582
  '[attr.data-alignment]': 'alignment()',
4110
- }, template: "<mat-drawer-container class=\"mat-exp-navigation-rail-layout\" (backdropClick)=\"_dismiss()\">\n <mat-drawer\n #drawer\n class=\"mat-exp-navigation-rail-panel\"\n [mode]=\"_modal() ? 'over' : 'side'\"\n [opened]=\"true\"\n [attr.inert]=\"!expanded() && hideOnCollapse() ? '' : null\"\n [attr.aria-hidden]=\"!expanded() && hideOnCollapse() ? 'true' : null\"\n [disableClose]=\"true\"\n [autoFocus]=\"false\"\n [attr.role]=\"_modal() ? 'dialog' : null\"\n [attr.aria-modal]=\"_modal() ? 'true' : null\"\n [attr.aria-label]=\"_modal() ? ariaLabel() : null\"\n >\n <nav\n #panel\n tabindex=\"-1\"\n [attr.aria-label]=\"ariaLabel()\"\n (keydown)=\"_onKeydown($event)\"\n (focusin)=\"_onFocusIn($event)\"\n (focusout)=\"_onFocusOut()\"\n >\n <div class=\"mat-exp-navigation-rail-header\">\n <ng-content select=\"[matExpNavigationRailHeader]\" />\n </div>\n <div class=\"mat-exp-navigation-rail-destinations\"><ng-content /></div>\n </nav>\n </mat-drawer>\n <mat-drawer-content\n #content\n class=\"mat-exp-navigation-rail-content\"\n tabindex=\"-1\"\n [attr.inert]=\"_modal() ? '' : null\"\n >\n <ng-content select=\"[matExpNavigationRailContent]\" />\n </mat-drawer-content>\n</mat-drawer-container>\n", styles: [".mat-exp-navigation-rail{--_mat-exp-rail-width: var(--mat-exp-navigation-rail-collapsed-width, 6rem);--_mat-exp-rail-reserved: var(--_mat-exp-rail-width);display:block;block-size:100%;min-block-size:0;color:var(--mat-sys-on-surface)}.mat-exp-navigation-rail[data-expanded=true]{--_mat-exp-rail-width: var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail[data-mode=modal][data-expanded=true]{--_mat-exp-rail-reserved: var(--mat-exp-navigation-rail-collapsed-width, 6rem)}.mat-exp-navigation-rail[data-hidden=true],.mat-exp-navigation-rail[data-hide-on-collapse=true][data-mode=modal]{--_mat-exp-rail-reserved: 0rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-layout{block-size:100%;background:inherit;color:inherit}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel{inline-size:var(--_mat-exp-rail-width);max-inline-size:100%;border-radius:0;border:0;background:var(--mat-exp-navigation-rail-container-color, var(--mat-sys-surface-container));color:var(--mat-sys-on-surface-variant);box-shadow:none;transition:none}.mat-exp-navigation-rail[data-mode=modal][data-expanded=true] .mat-exp-navigation-rail-panel{border-start-end-radius:1rem;border-end-end-radius:1rem;box-shadow:var(--mat-sys-level2)}.mat-exp-navigation-rail .mat-exp-navigation-rail-content{outline:none;margin-left:0!important;margin-right:0!important;margin-inline-start:var(--_mat-exp-rail-animated-margin, var(--_mat-exp-rail-reserved))!important;transition:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav{display:flex;flex-direction:column;min-block-size:100%;box-sizing:border-box;padding-block:2.75rem 1.25rem;outline:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-header{padding-inline:1.25rem;margin-block-end:2.5rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-header:empty{display:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-header>[matExpNavigationRailHeader]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-destinations{display:flex;flex-direction:column;gap:.25rem}.mat-exp-navigation-rail[data-alignment=center] .mat-exp-navigation-rail-destinations{margin-block:auto}.mat-exp-navigation-rail[data-expanded=false] .mat-exp-navigation-rail-header>[matExpNavigationRailHeader]{align-items:center}.mat-exp-navigation-rail-item{position:relative;display:flex;justify-content:center;inline-size:100%;box-sizing:border-box;padding:.375rem 1rem;min-block-size:4rem;border:0;background:transparent;color:var(--mat-sys-on-surface-variant);text-decoration:none;cursor:pointer;text-align:center;font:var(--mat-sys-label-medium);letter-spacing:var(--mat-sys-label-medium-tracking);-webkit-tap-highlight-color:transparent}.mat-exp-navigation-rail-item[hidden]{display:none}.mat-exp-navigation-rail-item[aria-disabled=true]{cursor:default;opacity:.38}.mat-exp-navigation-rail-item:focus-visible{outline:.1875rem solid var(--mat-sys-secondary);outline-offset:-.1875rem;border-radius:1rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{position:relative;display:flex;flex-direction:column;align-items:center;max-inline-size:100%;overflow:visible}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon{display:grid;place-items:center;position:relative;inline-size:3.5rem;min-block-size:2rem;border-radius:1rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon>*{inline-size:1.5rem;block-size:1.5rem;font-size:1.5rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:var(--mat-sys-on-secondary-container);opacity:0}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-label{margin-block-start:.25rem;overflow-wrap:anywhere}.mat-exp-navigation-rail-item[data-selected=true]{color:var(--mat-sys-secondary)}.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-icon{background:transparent;color:var(--mat-sys-on-secondary-container);font-variation-settings:\"FILL\" 1}.mat-exp-navigation-rail-item:hover:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.08}.mat-exp-navigation-rail-item:active:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.1}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-badge{position:absolute;inset-block-start:0;inset-inline-start:calc(50% + .5rem);background:var(--mat-sys-error);color:var(--mat-sys-on-error);border-radius:1rem;min-inline-size:1rem;min-block-size:1rem;padding-inline:.25rem;box-sizing:border-box;font:var(--mat-sys-label-small)}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-badge.mat-exp-navigation-rail-item-dot{min-inline-size:.375rem;min-block-size:.375rem;padding:0}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item{justify-content:flex-start;text-align:start;padding:0 1.25rem}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{flex-direction:row;gap:.5rem;box-sizing:border-box;min-block-size:3.5rem;padding:1rem;border-radius:1.75rem}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:var(--mat-sys-on-secondary-container);opacity:0;pointer-events:none}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon{inline-size:1.5rem;min-block-size:1.5rem;flex-shrink:0;background:transparent}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon:before{display:none}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-label{margin:0}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item[data-selected=true]{color:var(--mat-sys-on-secondary-container)}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{background:transparent}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item:hover:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.08}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item:active:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.1}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-badge{position:relative;inset:auto;flex-shrink:0}@media(prefers-reduced-motion:reduce){.mat-exp-navigation-rail .mat-drawer-backdrop{transition:none}}@media(forced-colors:active){.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{outline:2px solid Highlight}}.mat-exp-navigation-rail[data-hidden=true]{--_mat-exp-rail-width: 0rem}.mat-exp-navigation-rail[data-hide-on-collapse=true] .mat-exp-navigation-rail-panel nav{inline-size:var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-destinations{gap:0}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item{min-block-size:3.5rem;font:var(--mat-sys-label-large);letter-spacing:var(--mat-sys-label-large-tracking)}.mat-exp-navigation-rail-item-indicator{position:absolute;inset-block-start:0;inset-inline-start:calc(50% - 1.75rem);inline-size:3.5rem;block-size:2rem;border-radius:1.75rem;background:var(--mat-sys-secondary-container);transform-origin:center;pointer-events:none}.mat-exp-navigation-rail-item-label,.mat-exp-navigation-rail-item-badge{position:relative}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item-indicator{inset:0;inline-size:100%;block-size:100%}.mat-exp-navigation-rail-section{display:flex;flex-direction:column}.mat-exp-navigation-rail-section[hidden]{display:none}.mat-exp-navigation-rail-section .mat-exp-navigation-rail-section-label{padding:.75rem 2.25rem .5rem;font:var(--mat-sys-label-large);color:var(--mat-sys-on-surface-variant)}.mat-exp-navigation-rail[data-expanded=false] .mat-exp-navigation-rail-section-label{display:none}.mat-exp-navigation-rail-item-indicator{opacity:0;transform:scaleX(0)}.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-indicator{opacity:1;transform:scaleX(1)}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-ripple{position:absolute;inset-block-start:0;inset-inline-start:calc(50% - 1.75rem);inline-size:3.5rem;block-size:2rem;border-radius:1.75rem;z-index:1;pointer-events:none;--mat-ripple-color: color-mix(in srgb, var(--mat-sys-on-secondary-container) 10%, transparent)}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item-ripple{inset:0;inline-size:100%;block-size:100%}.mat-exp-navigation-rail-item:focus-visible:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.1}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item:focus-visible:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.1}.mat-exp-navigation-rail .mat-mdc-fab:not(.mat-mdc-extended-fab) .mdc-button__label{position:absolute;opacity:0;pointer-events:none}.mat-exp-navigation-rail[data-expanded=true] [matExpNavigationRailHeader]>.mat-mdc-icon-button{margin-inline-start:calc((3.5rem - var(--mat-icon-button-state-layer-size, 2.5rem)) / 2)}.mat-exp-navigation-rail[data-expanded=true] [matExpNavigationRailHeader]>.mat-mdc-extended-fab>.mat-icon{margin-left:-.25rem;margin-right:.75rem}.mat-exp-navigation-rail[data-expanded=true]:dir(rtl) [matExpNavigationRailHeader]>.mat-mdc-extended-fab>.mat-icon{margin-right:-.25rem;margin-left:.75rem}\n"] }]
4111
- }], ctorParameters: () => [], propDecorators: { _panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], _drawerElement: [{ type: i0.ViewChild, args: ['drawer', { ...{ read: ElementRef }, isSignal: true }] }], _contentElement: [{ type: i0.ViewChild, args: ['content', { ...{ read: ElementRef }, isSignal: true }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], hideOnCollapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnCollapse", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
4583
+ '[attr.data-density]': 'density()',
4584
+ '[attr.data-collapsed-layout]': 'collapsedLayout()',
4585
+ '[attr.data-tree]': '_tree() || null',
4586
+ }, template: "<mat-drawer-container class=\"mat-exp-navigation-rail-layout\" (backdropClick)=\"_dismiss()\">\n <mat-drawer\n #drawer\n class=\"mat-exp-navigation-rail-panel\"\n [mode]=\"_modal() ? 'over' : 'side'\"\n [opened]=\"true\"\n [attr.inert]=\"!expanded() && hideOnCollapse() ? '' : null\"\n [attr.aria-hidden]=\"!expanded() && hideOnCollapse() ? 'true' : null\"\n [disableClose]=\"true\"\n [autoFocus]=\"false\"\n [attr.role]=\"_modal() ? 'dialog' : null\"\n [attr.aria-modal]=\"_modal() ? 'true' : null\"\n [attr.aria-label]=\"_modal() ? ariaLabel() : null\"\n (pointerenter)=\"_onPointerEnter($event)\"\n (pointerleave)=\"_onPointerLeave($event)\"\n >\n <nav\n #panel\n tabindex=\"-1\"\n [attr.aria-label]=\"ariaLabel()\"\n (keydown)=\"_onKeydown($event)\"\n (focusin)=\"_onFocusIn($event)\"\n (focusout)=\"_onFocusOut($event)\"\n >\n <div class=\"mat-exp-navigation-rail-header\">\n <ng-content select=\"[matExpNavigationRailHeader]\" />\n </div>\n <!-- Firefox puts scroll containers in sequential focus; keep them out. -->\n <div\n #destinations\n class=\"mat-exp-navigation-rail-destinations\"\n tabindex=\"-1\"\n [attr.role]=\"_tree() ? 'tree' : null\"\n [attr.aria-label]=\"_tree() ? ariaLabel() : null\"\n >\n <ng-content />\n </div>\n <div #footer class=\"mat-exp-navigation-rail-footer\" tabindex=\"-1\">\n <ng-content select=\"[matExpNavigationRailFooter]\" />\n </div>\n </nav>\n </mat-drawer>\n <mat-drawer-content\n #content\n class=\"mat-exp-navigation-rail-content\"\n tabindex=\"-1\"\n [attr.inert]=\"_modal() ? '' : null\"\n >\n <ng-content select=\"[matExpNavigationRailContent]\" />\n </mat-drawer-content>\n</mat-drawer-container>\n", styles: [".mat-exp-navigation-rail{--_mat-exp-rail-width: var(--mat-exp-navigation-rail-collapsed-width, 6rem);--_mat-exp-rail-reserved: var(--_mat-exp-rail-width);display:block;block-size:100%;min-block-size:0;color:var(--mat-sys-on-surface)}.mat-exp-navigation-rail[data-expanded=true]{--_mat-exp-rail-width: var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail[data-mode=modal][data-expanded=true],.mat-exp-navigation-rail[data-peek]{--_mat-exp-rail-reserved: var(--mat-exp-navigation-rail-collapsed-width, 6rem)}.mat-exp-navigation-rail[data-hidden=true],.mat-exp-navigation-rail[data-hide-on-collapse=true][data-mode=modal]{--_mat-exp-rail-reserved: 0rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-layout{block-size:100%;background:inherit;color:inherit}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel{inline-size:var(--_mat-exp-rail-width);max-inline-size:100%;border-radius:0;border:0;background:var(--mat-exp-navigation-rail-container-color, var(--mat-sys-surface-container));color:var(--mat-sys-on-surface-variant);box-shadow:none;transition:none}.mat-exp-navigation-rail[data-mode=modal][data-expanded=true] .mat-exp-navigation-rail-panel,.mat-exp-navigation-rail[data-peek] .mat-exp-navigation-rail-panel{border-start-end-radius:1rem;border-end-end-radius:1rem;box-shadow:var(--mat-sys-level2)}.mat-exp-navigation-rail[data-peek] .mat-exp-navigation-rail-panel{z-index:2}.mat-exp-navigation-rail .mat-exp-navigation-rail-content{outline:none;margin-left:0!important;margin-right:0!important;margin-inline-start:var(--_mat-exp-rail-animated-margin, var(--_mat-exp-rail-reserved))!important;transition:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav{display:flex;flex-direction:column;min-block-size:100%;box-sizing:border-box;padding-block:2.75rem 1.25rem;outline:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-header{padding-inline:1.25rem;margin-block-end:2.5rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-header:empty{display:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-header>[matExpNavigationRailHeader]{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-destinations{display:flex;flex-direction:column;gap:.25rem}.mat-exp-navigation-rail .mat-exp-navigation-rail-destinations,.mat-exp-navigation-rail .mat-exp-navigation-rail-footer{outline:none}.mat-exp-navigation-rail[data-alignment=center] .mat-exp-navigation-rail-destinations{margin-block:auto}.mat-exp-navigation-rail .mat-exp-navigation-rail-footer:empty{display:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-footer>[matExpNavigationRailFooter]{display:flex;flex-direction:column;gap:.25rem}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-footer>[matExpNavigationRailFooter]{gap:0}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*){block-size:100%;min-block-size:0}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-header{flex:none}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-destinations{flex:1 1 auto;min-block-size:0;overflow-x:hidden;overflow-y:auto}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-footer{display:flex;flex-direction:column;flex:0 1 auto;min-block-size:0;max-block-size:var(--mat-exp-navigation-rail-footer-max-block-size, 50%);overflow-x:hidden;overflow-y:auto}.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-destinations>*,.mat-exp-navigation-rail .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-footer>*{flex-shrink:0}.mat-exp-navigation-rail[data-alignment=center] .mat-exp-navigation-rail-panel nav:has(>.mat-exp-navigation-rail-footer>*)>.mat-exp-navigation-rail-destinations{margin-block:0;justify-content:safe center}.mat-exp-navigation-rail[data-expanded=false]:not([data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-header>[matExpNavigationRailHeader]{align-items:center}.mat-exp-navigation-rail-item{position:relative;display:flex;justify-content:center;inline-size:100%;box-sizing:border-box;padding:.375rem 1rem;min-block-size:4rem;border:0;background:transparent;color:var(--mat-sys-on-surface-variant);text-decoration:none;cursor:pointer;text-align:center;font:var(--mat-sys-label-medium);letter-spacing:var(--mat-sys-label-medium-tracking);-webkit-tap-highlight-color:transparent}.mat-exp-navigation-rail-item[hidden]{display:none}.mat-exp-navigation-rail-item[aria-disabled=true]{cursor:default;opacity:.38}.mat-exp-navigation-rail-item:focus-visible{outline:.1875rem solid var(--mat-sys-secondary);outline-offset:-.1875rem;border-radius:1rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{position:relative;display:flex;flex-direction:column;align-items:center;max-inline-size:100%;overflow:visible}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon{display:grid;place-items:center;position:relative;inline-size:3.5rem;min-block-size:2rem;border-radius:1rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon>*{inline-size:1.5rem;block-size:1.5rem;font-size:1.5rem}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:var(--mat-sys-on-secondary-container);opacity:0}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-label{margin-block-start:.25rem;overflow-wrap:anywhere}.mat-exp-navigation-rail-item[data-selected=true]{color:var(--mat-sys-secondary)}.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-icon{background:transparent;color:var(--mat-sys-on-secondary-container);font-variation-settings:\"FILL\" 1}.mat-exp-navigation-rail-item:hover:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.08}.mat-exp-navigation-rail-item:active:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.1}.mat-exp-navigation-rail-item.mat-badge .mat-badge-content{inset:0 auto auto calc(50% + .5rem)}.mat-exp-navigation-rail-item.mat-badge:dir(rtl) .mat-badge-content{inset:0 calc(50% + .5rem) auto auto}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item{justify-content:flex-start;text-align:start;padding:0 1.25rem}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{flex-direction:row;gap:.5rem;box-sizing:border-box;min-block-size:3.5rem;padding:1rem;border-radius:1.75rem}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:var(--mat-sys-on-secondary-container);opacity:0;pointer-events:none}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon{inline-size:1.5rem;min-block-size:1.5rem;flex-shrink:0;background:transparent}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-icon:before{display:none}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-label{margin:0}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-selected=true]{color:var(--mat-sys-on-secondary-container)}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{background:transparent}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item:hover:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.08}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item:active:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.1}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item.mat-badge .mat-badge-content{position:relative;inset:auto;flex-shrink:0}@media(prefers-reduced-motion:reduce){.mat-exp-navigation-rail .mat-drawer-backdrop{transition:none}}@media(forced-colors:active){.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{outline:2px solid Highlight}.mat-exp-navigation-rail[data-peek] .mat-exp-navigation-rail-panel{outline:1px solid CanvasText}}.mat-exp-navigation-rail[data-hidden=true]{--_mat-exp-rail-width: 0rem}.mat-exp-navigation-rail[data-hide-on-collapse=true] .mat-exp-navigation-rail-panel nav{inline-size:var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-destinations{gap:0}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item{min-block-size:3.5rem;font:var(--mat-sys-label-large);letter-spacing:var(--mat-sys-label-large-tracking)}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item{min-block-size:3rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container{min-block-size:3rem;padding-block:.25rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-tall]{min-block-size:3.75rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-tall] .mat-exp-navigation-rail-item-container{min-block-size:3.75rem}.mat-exp-navigation-rail-item-indicator{position:absolute;inset-block-start:0;inset-inline-start:calc(50% - 1.75rem);inline-size:3.5rem;block-size:2rem;border-radius:1.75rem;background:var(--mat-sys-secondary-container);transform-origin:center;pointer-events:none}.mat-exp-navigation-rail-item-label{position:relative}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item-indicator{inset:0;inline-size:100%;block-size:100%}.mat-exp-navigation-rail-section{display:flex;flex-direction:column}.mat-exp-navigation-rail-section[hidden]{display:none}.mat-exp-navigation-rail-section .mat-exp-navigation-rail-section-label{padding:var(--mat-exp-navigation-rail-section-label-padding, .75rem 2.25rem .5rem);font:var(--mat-exp-navigation-rail-section-label-font, var(--mat-sys-label-large));letter-spacing:var(--mat-exp-navigation-rail-section-label-tracking);text-transform:var(--mat-exp-navigation-rail-section-label-text-transform);color:var(--mat-exp-navigation-rail-section-label-color, var(--mat-sys-on-surface-variant))}.mat-exp-navigation-rail[data-expanded=false] .mat-exp-navigation-rail-section-label{display:none}.mat-exp-navigation-rail-item-indicator{opacity:0;transform:scaleX(0)}.mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-indicator{opacity:1;transform:scaleX(1)}.mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-ripple{position:absolute;inset-block-start:0;inset-inline-start:calc(50% - 1.75rem);inline-size:3.5rem;block-size:2rem;border-radius:1.75rem;z-index:1;pointer-events:none;--mat-ripple-color: color-mix(in srgb, var(--mat-sys-on-secondary-container) 10%, transparent)}.mat-exp-navigation-rail[data-expanded=true] .mat-exp-navigation-rail-item-ripple{inset:0;inline-size:100%;block-size:100%}.mat-exp-navigation-rail-item:focus-visible:not([aria-disabled=true]) .mat-exp-navigation-rail-item-icon:before{opacity:.1}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item:focus-visible:not([aria-disabled=true]) .mat-exp-navigation-rail-item-container:before{opacity:.1}.mat-exp-navigation-rail .mat-mdc-fab:not(.mat-mdc-extended-fab) .mdc-button__label{position:absolute;opacity:0;pointer-events:none}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) [matExpNavigationRailHeader]>.mat-mdc-icon-button{margin-inline-start:calc((3.5rem - var(--mat-icon-button-state-layer-size, 2.5rem)) / 2)}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) [matExpNavigationRailHeader]>.mat-mdc-extended-fab>.mat-icon{margin-left:-.25rem;margin-right:.75rem}.mat-exp-navigation-rail[data-expanded=true]:dir(rtl) [matExpNavigationRailHeader]>.mat-mdc-extended-fab>.mat-icon{margin-right:-.25rem;margin-left:.75rem}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis] .mat-exp-navigation-rail-panel nav{overflow-x:clip}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis] .mat-exp-navigation-rail-panel nav>*{box-sizing:border-box;inline-size:var(--mat-exp-navigation-rail-expanded-width, 13.75rem)}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item-label,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-section-label{opacity:0}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-section-label{display:block}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item:focus-visible{outline:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-indicator,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-ripple,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item .mat-exp-navigation-rail-item-container:before,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item:focus-visible .mat-exp-navigation-rail-item-container:after{inset-block:0;inset-inline:0 auto;inline-size:3.5rem;block-size:2rem;margin-block:auto;border-radius:1rem}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item:focus-visible .mat-exp-navigation-rail-item-container:after{content:\"\";position:absolute;outline:.1875rem solid var(--mat-sys-secondary);pointer-events:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item.mat-badge .mat-badge-content{position:absolute;inset-block-start:calc(50% - 1rem);inset-inline-start:2.25rem}@media(forced-colors:active){.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-container{outline:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-selected=true] .mat-exp-navigation-rail-item-indicator{outline:2px solid Highlight}}.mat-exp-navigation-rail .mat-exp-navigation-rail-item.mat-badge .mat-badge-content{margin:0;transition:none}.mat-exp-navigation-rail-group{display:flex;flex-direction:column}.mat-exp-navigation-rail-group-row{-webkit-user-select:none;user-select:none}.mat-exp-navigation-rail-group-children{position:relative;display:flex;flex-direction:column}.mat-exp-navigation-rail-group-chevron{display:none;flex-shrink:0;inline-size:1.375rem;block-size:1.375rem;rotate:-90deg;transition:rotate .25s cubic-bezier(.2,0,0,1)}.mat-exp-navigation-rail-group-chevron:dir(rtl){rotate:90deg}.mat-exp-navigation-rail-group-chevron>svg{display:block;inline-size:100%;block-size:100%;fill:currentColor}.mat-exp-navigation-rail-group-row[data-open=true] .mat-exp-navigation-rail-group-chevron{rotate:0deg}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-group-chevron{display:block}.mat-exp-navigation-rail-group-mark{display:none}@media(prefers-reduced-motion:reduce){.mat-exp-navigation-rail-group-chevron{transition:none}}.mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-icon{display:none}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-child]{min-block-size:3rem}.mat-exp-navigation-rail:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-container{min-block-size:3rem;padding-block:.25rem;padding-inline-start:3rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-child]{min-block-size:2.5rem}.mat-exp-navigation-rail[data-density=compact]:is([data-expanded=true],[data-collapsed-layout=fixed-axis]) .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-container{min-block-size:2.5rem}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-chevron{opacity:0}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-row[data-selected=true] .mat-exp-navigation-rail-group-mark{display:block;position:absolute;inset-block-start:calc(50% + 1.125rem);inset-inline-start:1.625rem;inline-size:.25rem;block-size:.25rem;border-radius:50%;background:var(--mat-sys-secondary);pointer-events:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-children:before{content:\"\";position:absolute;inset-block:.375rem;inset-inline-start:2.9375rem;inline-size:.125rem;background:var(--mat-sys-outline-variant);pointer-events:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-ripple{display:none}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-indicator{inset-inline-start:1.4375rem;inline-size:.625rem;block-size:.625rem;border-radius:50%;background:var(--mat-sys-secondary);box-shadow:0 0 0 .1875rem var(--mat-exp-navigation-rail-container-color, var(--mat-sys-surface-container))}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-container:before,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child]:focus-visible .mat-exp-navigation-rail-item-container:after{inset-inline-start:1rem;inline-size:1.5rem;block-size:1.5rem;border-radius:50%}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child].mat-badge .mat-badge-content{--_mat-exp-rail-child-badge-size: var(--mat-badge-small-size-container-size, 6px);inset-block-start:calc(50% - var(--_mat-exp-rail-child-badge-size) / 2);inset-inline-start:2.25rem;inline-size:var(--_mat-exp-rail-child-badge-size);block-size:var(--_mat-exp-rail-child-badge-size);min-inline-size:0;min-block-size:0;padding:0;overflow:hidden;font-size:0;line-height:0}@media(forced-colors:active){.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-children:before{forced-color-adjust:none;background:CanvasText}.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-group-row[data-selected=true] .mat-exp-navigation-rail-group-mark,.mat-exp-navigation-rail[data-collapsed-layout=fixed-axis][data-expanded=false] .mat-exp-navigation-rail-item[data-child] .mat-exp-navigation-rail-item-indicator{forced-color-adjust:none;background:Highlight;box-shadow:0 0 0 .1875rem Canvas}}\n"] }]
4587
+ }], ctorParameters: () => [], propDecorators: { _panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], _drawerElement: [{ type: i0.ViewChild, args: ['drawer', { ...{ read: ElementRef }, isSignal: true }] }], _contentElement: [{ type: i0.ViewChild, args: ['content', { ...{ read: ElementRef }, isSignal: true }] }], _destinations: [{ type: i0.ViewChild, args: ['destinations', { isSignal: true }] }], _footer: [{ type: i0.ViewChild, args: ['footer', { isSignal: true }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], hideOnCollapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnCollapse", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], collapsedLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsedLayout", required: false }] }], peek: [{ type: i0.Input, args: [{ isSignal: true, alias: "peek", required: false }] }] } });
4112
4588
 
4113
- /** A native link or button destination. Selection remains owned by the application's route. */
4589
+ /** A labeled group of secondary destinations, as shown in the Expressive rail specification. */
4590
+ class MatExpNavigationRailSection {
4591
+ _rail = inject(MatExpNavigationRail);
4592
+ /** Visible section heading and accessible group name. */
4593
+ label = input.required(/* @ts-ignore */
4594
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
4595
+ /** Hide this group in the collapsed rail. @default true */
4596
+ expandedOnly = input(true, { ...(ngDevMode ? { debugName: "expandedOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4597
+ /** @internal */
4598
+ _hidden = computed(() => this.expandedOnly() && !this._rail.presentedExpanded(), /* @ts-ignore */
4599
+ ...(ngDevMode ? [{ debugName: "_hidden" }] : /* istanbul ignore next */ []));
4600
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRailSection, deps: [], target: i0.ɵɵFactoryTarget.Component });
4601
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.3", type: MatExpNavigationRailSection, isStandalone: true, selector: "mat-exp-navigation-rail-section", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, expandedOnly: { classPropertyName: "expandedOnly", publicName: "expandedOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "label()", "hidden": "_hidden()" }, classAttribute: "mat-exp-navigation-rail-section" }, exportAs: ["matExpNavigationRailSection"], ngImport: i0, template: `<div class="mat-exp-navigation-rail-section-label" aria-hidden="true">
4602
+ {{ label() }}
4603
+ </div>
4604
+ <ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
4605
+ }
4606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRailSection, decorators: [{
4607
+ type: Component,
4608
+ args: [{
4609
+ selector: 'mat-exp-navigation-rail-section',
4610
+ exportAs: 'matExpNavigationRailSection',
4611
+ changeDetection: ChangeDetectionStrategy.OnPush,
4612
+ template: `<div class="mat-exp-navigation-rail-section-label" aria-hidden="true">
4613
+ {{ label() }}
4614
+ </div>
4615
+ <ng-content />`,
4616
+ host: {
4617
+ class: 'mat-exp-navigation-rail-section',
4618
+ role: 'group',
4619
+ '[attr.aria-label]': 'label()',
4620
+ '[hidden]': '_hidden()',
4621
+ },
4622
+ }]
4623
+ }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], expandedOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedOnly", required: false }] }] } });
4624
+
4625
+ /** @internal The footer slot; destinations inside it stay outside the tree. */
4626
+ const MAT_EXP_NAVIGATION_RAIL_FOOTER_SELECTOR = '[matExpNavigationRailFooter], .mat-exp-navigation-rail-footer';
4627
+ /** @internal Provided by `MatExpNavigationRailGroup` to its projected items. */
4628
+ const MAT_EXP_NAVIGATION_RAIL_GROUP = new InjectionToken('MatExpNavigationRailGroup');
4629
+
4630
+ /**
4631
+ * Non-empty placeholder: MatBadge renders nothing for empty content, and the small size hides
4632
+ * text. A zero-width space (not trimmed by MatBadge) cannot be mistaken for a consumer's own badge.
4633
+ */
4634
+ const DOT_CONTENT = '\u200b';
4635
+ /**
4636
+ * A native link or button destination. Selection remains owned by the application's route.
4637
+ * Badges are Angular Material's `MatBadge`: `badge` (content; null hides it), `badgeDescription`
4638
+ * (announced as the destination's description), `badgeSize` (`'small'` is the dot) and
4639
+ * `badgeHidden`. The rail places the badge on the pill when collapsed and after the label when
4640
+ * expanded. `badgeDot` is the dot preset.
4641
+ */
4114
4642
  class MatExpNavigationRailItem {
4115
4643
  _rail = inject(MatExpNavigationRail);
4644
+ _section = inject(MatExpNavigationRailSection, { optional: true });
4645
+ _badge = inject(MatBadge, { self: true });
4646
+ /** Consumer-bound `badge`/`badgeSize`, remembered while `badgeDot` overrides them. */
4647
+ _boundContent = null;
4648
+ _boundSize = null;
4649
+ /** @internal The tree group this item is a child row of, if any. */
4650
+ _group = inject(MAT_EXP_NAVIGATION_RAIL_GROUP, { optional: true });
4116
4651
  /** @internal */
4117
4652
  _element = inject((ElementRef)).nativeElement;
4118
4653
  /** @internal */
4119
4654
  _isButton = this._element.tagName === 'BUTTON';
4120
4655
  /** Mark the current destination, usually from RouterLinkActive. @default false */
4121
4656
  selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4657
+ /** What the badge means, announced as the destination's description while the badge shows. @default '' */
4658
+ badgeDescription = input('', /* @ts-ignore */
4659
+ ...(ngDevMode ? [{ debugName: "badgeDescription" }] : /* istanbul ignore next */ []));
4660
+ /**
4661
+ * Show the badge as a dot (Material's small badge) without content. Takes precedence over
4662
+ * `badge` and `badgeSize` while true. @default false
4663
+ */
4664
+ badgeDot = input(false, { ...(ngDevMode ? { debugName: "badgeDot" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4122
4665
  /** Skip a temporarily unavailable destination. @default false */
4123
4666
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4124
4667
  /** Reveal a secondary destination only in the expanded rail. @default false */
4125
4668
  expandedOnly = input(false, { ...(ngDevMode ? { debugName: "expandedOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4126
- /** Badge text; empty string displays a dot, null hides it. Describe its meaning in aria-label. @default null */
4127
- badge = input(null, /* @ts-ignore */
4128
- ...(ngDevMode ? [{ debugName: "badge" }] : /* istanbul ignore next */ []));
4669
+ /** Use the 60px tall row in a compact rail, for two-line labels. No effect at default density. @default false */
4670
+ tall = input(false, { ...(ngDevMode ? { debugName: "tall" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4129
4671
  /** @internal */
4130
- _hidden = computed(() => this.expandedOnly() && !this._rail.expanded(), /* @ts-ignore */
4672
+ _hidden = computed(() => this.expandedOnly() && !this._rail.presentedExpanded(), /* @ts-ignore */
4131
4673
  ...(ngDevMode ? [{ debugName: "_hidden" }] : /* istanbul ignore next */ []));
4674
+ /**
4675
+ * @internal Footer destinations stay outside the tree. Checked when tree mode applies, during
4676
+ * binding, when items created by `@for`/`@if` are already in the document.
4677
+ */
4678
+ _treeItem = computed(() => this._rail._tree() &&
4679
+ // A closed group's children are not in the document yet: ask the group.
4680
+ !(this._group
4681
+ ? this._group._inFooter()
4682
+ : this._element.closest(MAT_EXP_NAVIGATION_RAIL_FOOTER_SELECTOR)), /* @ts-ignore */
4683
+ ...(ngDevMode ? [{ debugName: "_treeItem" }] : /* istanbul ignore next */ []));
4684
+ /** @internal */
4685
+ _rovingCandidate = computed(() => this._treeItem() &&
4686
+ !this.disabled() &&
4687
+ !this._hidden() &&
4688
+ !this._section?._hidden() &&
4689
+ (!this._group || (this._group._shown() && this._group._expanded())), /* @ts-ignore */
4690
+ ...(ngDevMode ? [{ debugName: "_rovingCandidate" }] : /* istanbul ignore next */ []));
4691
+ /** @internal */
4692
+ _currentState = computed(() => (this.selected() ? 'page' : null), /* @ts-ignore */
4693
+ ...(ngDevMode ? [{ debugName: "_currentState" }] : /* istanbul ignore next */ []));
4694
+ /** @internal Tree rows share one roving Tab stop; list items keep native Tab order. */
4695
+ _tabIndex = computed(() => {
4696
+ if (!this._treeItem())
4697
+ return this.disabled() ? -1 : null;
4698
+ return !this.disabled() && this._rail._isTabStop(this, this._element) ? 0 : -1;
4699
+ }, /* @ts-ignore */
4700
+ ...(ngDevMode ? [{ debugName: "_tabIndex" }] : /* istanbul ignore next */ []));
4132
4701
  constructor() {
4133
4702
  // Capture prevents consumer handlers and browser link navigation on both
4134
4703
  // primary and auxiliary clicks (middle-click can open a new tab).
@@ -4151,12 +4720,42 @@ class MatExpNavigationRailItem {
4151
4720
  const stopDragStart = renderer.listen(this._element, 'dragstart', stopDisabledActivation, {
4152
4721
  capture: true,
4153
4722
  });
4723
+ const unregister = this._group?._registerItem(this);
4724
+ const unregisterRow = this._rail._registerRow(this);
4154
4725
  inject(DestroyRef).onDestroy(() => {
4726
+ unregister?.();
4727
+ unregisterRow();
4155
4728
  stopClick();
4156
4729
  stopAuxClick();
4157
4730
  stopContextMenu();
4158
4731
  stopDragStart();
4159
4732
  });
4733
+ // MatBadge appends its element to the host; keep it inside the pill container so it can sit
4734
+ // on the pill corner when collapsed and after the label when expanded.
4735
+ const badge = this._badge;
4736
+ // The destination describes its own badge. MatBadge picks aria-describedby only when the host
4737
+ // is interactive at the moment its description is set, which a routerLink anchor (href bound
4738
+ // later), a disabled button or an inert rail is not; its fallback lands in the aria-hidden badge.
4739
+ const describer = inject(AriaDescriber);
4740
+ let describedAs = '';
4741
+ afterEveryRender(() => {
4742
+ const element = badge.getBadgeElement();
4743
+ const container = this._container().nativeElement;
4744
+ if (element && element.parentElement !== container)
4745
+ container.appendChild(element);
4746
+ const description = badge.content && !badge.hidden ? this.badgeDescription() : '';
4747
+ if (description !== describedAs) {
4748
+ if (describedAs)
4749
+ describer.removeDescription(this._element, describedAs);
4750
+ if (description)
4751
+ describer.describe(this._element, description);
4752
+ describedAs = description;
4753
+ }
4754
+ });
4755
+ inject(DestroyRef).onDestroy(() => {
4756
+ if (describedAs)
4757
+ describer.removeDescription(this._element, describedAs);
4758
+ });
4160
4759
  let initialized = false;
4161
4760
  afterRenderEffect((onCleanup) => {
4162
4761
  const selected = this.selected();
@@ -4171,8 +4770,38 @@ class MatExpNavigationRailItem {
4171
4770
  }
4172
4771
  });
4173
4772
  }
4773
+ /**
4774
+ * `badge`/`badgeSize` are aliased MatBadge inputs that Angular writes straight onto it, so a
4775
+ * signal effect cannot see them. Run after every input update: anything other than our own
4776
+ * override is the consumer's value, which is remembered and restored when the dot turns off.
4777
+ */
4778
+ ngDoCheck() {
4779
+ const badge = this._badge;
4780
+ if (this.badgeDot()) {
4781
+ if (this._boundContent === null || badge.content !== DOT_CONTENT) {
4782
+ this._boundContent = badge.content ?? '';
4783
+ }
4784
+ if (this._boundSize === null || badge.size !== 'small')
4785
+ this._boundSize = badge.size;
4786
+ if (badge.content !== DOT_CONTENT)
4787
+ badge.content = DOT_CONTENT;
4788
+ badge.size = 'small';
4789
+ }
4790
+ else if (this._boundContent !== null) {
4791
+ // Restore only what is still our override: a value written in the same pass that turned
4792
+ // the dot off is the consumer's latest one.
4793
+ if (badge.content === DOT_CONTENT)
4794
+ badge.content = this._boundContent;
4795
+ if (badge.size === 'small')
4796
+ badge.size = this._boundSize ?? badge.size;
4797
+ this._boundContent = null;
4798
+ this._boundSize = null;
4799
+ }
4800
+ }
4174
4801
  _indicator = viewChild.required('indicator', /* @ts-ignore */
4175
4802
  ...(ngDevMode ? [{ debugName: "_indicator" }] : /* istanbul ignore next */ []));
4803
+ _container = viewChild.required('container', /* @ts-ignore */
4804
+ ...(ngDevMode ? [{ debugName: "_container" }] : /* istanbul ignore next */ []));
4176
4805
  /** @internal */
4177
4806
  _onClick(event) {
4178
4807
  const mouse = event;
@@ -4193,8 +4822,8 @@ class MatExpNavigationRailItem {
4193
4822
  }
4194
4823
  }
4195
4824
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRailItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
4196
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: MatExpNavigationRailItem, isStandalone: true, selector: "a[matExpNavigationRailItem], button[matExpNavigationRailItem]", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, expandedOnly: { classPropertyName: "expandedOnly", publicName: "expandedOnly", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_onClick($event)", "keydown.space": "_onSpace($event)" }, properties: { "attr.aria-current": "selected() ? \"page\" : null", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.disabled": "disabled() && _isButton ? \"\" : null", "attr.tabindex": "disabled() ? -1 : null", "attr.type": "_isButton ? \"button\" : null", "attr.data-selected": "selected()", "hidden": "_hidden()" }, classAttribute: "mat-exp-navigation-rail-item" }, viewQueries: [{ propertyName: "_indicator", first: true, predicate: ["indicator"], descendants: true, isSignal: true }], exportAs: ["matExpNavigationRailItem"], ngImport: i0, template: `
4197
- <span class="mat-exp-navigation-rail-item-container">
4825
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.3", type: MatExpNavigationRailItem, isStandalone: true, selector: "a[matExpNavigationRailItem], button[matExpNavigationRailItem]", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, badgeDescription: { classPropertyName: "badgeDescription", publicName: "badgeDescription", isSignal: true, isRequired: false, transformFunction: null }, badgeDot: { classPropertyName: "badgeDot", publicName: "badgeDot", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, expandedOnly: { classPropertyName: "expandedOnly", publicName: "expandedOnly", isSignal: true, isRequired: false, transformFunction: null }, tall: { classPropertyName: "tall", publicName: "tall", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_onClick($event)", "keydown.space": "_onSpace($event)" }, properties: { "attr.aria-current": "selected() ? \"page\" : null", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.disabled": "disabled() && _isButton ? \"\" : null", "attr.tabindex": "_tabIndex()", "attr.role": "_treeItem() ? \"treeitem\" : null", "attr.aria-level": "_treeItem() ? (_group ? 2 : 1) : null", "attr.data-child": "_group ? \"\" : null", "attr.type": "_isButton ? \"button\" : null", "attr.data-selected": "selected()", "attr.data-tall": "tall() || null", "hidden": "_hidden()" }, classAttribute: "mat-exp-navigation-rail-item" }, viewQueries: [{ propertyName: "_indicator", first: true, predicate: ["indicator"], descendants: true, isSignal: true }, { propertyName: "_container", first: true, predicate: ["container"], descendants: true, isSignal: true }], exportAs: ["matExpNavigationRailItem"], hostDirectives: [{ directive: i1.MatBadge, inputs: ["matBadge", "badge", "matBadgeSize", "badgeSize", "matBadgeHidden", "badgeHidden"] }], ngImport: i0, template: `
4826
+ <span #container class="mat-exp-navigation-rail-item-container">
4198
4827
  <span
4199
4828
  class="mat-exp-navigation-rail-item-ripple"
4200
4829
  matRipple
@@ -4207,14 +4836,6 @@ class MatExpNavigationRailItem {
4207
4836
  ><ng-content select="[matExpNavigationRailIcon]"
4208
4837
  /></span>
4209
4838
  <span class="mat-exp-navigation-rail-item-label"><ng-content /></span>
4210
- @if (badge() !== null) {
4211
- <span
4212
- class="mat-exp-navigation-rail-item-badge"
4213
- [class.mat-exp-navigation-rail-item-dot]="badge() === ''"
4214
- aria-hidden="true"
4215
- >{{ badge() }}</span
4216
- >
4217
- }
4218
4839
  </span>
4219
4840
  `, isInline: true, dependencies: [{ kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4220
4841
  }
@@ -4227,7 +4848,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
4227
4848
  exportAs: 'matExpNavigationRailItem',
4228
4849
  imports: [MatRipple],
4229
4850
  template: `
4230
- <span class="mat-exp-navigation-rail-item-container">
4851
+ <span #container class="mat-exp-navigation-rail-item-container">
4231
4852
  <span
4232
4853
  class="mat-exp-navigation-rail-item-ripple"
4233
4854
  matRipple
@@ -4240,67 +4861,317 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
4240
4861
  ><ng-content select="[matExpNavigationRailIcon]"
4241
4862
  /></span>
4242
4863
  <span class="mat-exp-navigation-rail-item-label"><ng-content /></span>
4243
- @if (badge() !== null) {
4244
- <span
4245
- class="mat-exp-navigation-rail-item-badge"
4246
- [class.mat-exp-navigation-rail-item-dot]="badge() === ''"
4247
- aria-hidden="true"
4248
- >{{ badge() }}</span
4249
- >
4250
- }
4251
4864
  </span>
4252
4865
  `,
4253
4866
  changeDetection: ChangeDetectionStrategy.OnPush,
4867
+ hostDirectives: [
4868
+ {
4869
+ directive: MatBadge,
4870
+ inputs: ['matBadge: badge', 'matBadgeSize: badgeSize', 'matBadgeHidden: badgeHidden'],
4871
+ },
4872
+ ],
4254
4873
  host: {
4255
4874
  class: 'mat-exp-navigation-rail-item',
4256
4875
  '[attr.aria-current]': 'selected() ? "page" : null',
4257
4876
  '[attr.aria-disabled]': 'disabled() ? "true" : null',
4258
4877
  '[attr.disabled]': 'disabled() && _isButton ? "" : null',
4259
- '[attr.tabindex]': 'disabled() ? -1 : null',
4878
+ '[attr.tabindex]': '_tabIndex()',
4879
+ '[attr.role]': '_treeItem() ? "treeitem" : null',
4880
+ '[attr.aria-level]': '_treeItem() ? (_group ? 2 : 1) : null',
4881
+ '[attr.data-child]': '_group ? "" : null',
4260
4882
  '[attr.type]': '_isButton ? "button" : null',
4261
4883
  '[attr.data-selected]': 'selected()',
4884
+ '[attr.data-tall]': 'tall() || null',
4262
4885
  '[hidden]': '_hidden()',
4263
4886
  '(click)': '_onClick($event)',
4264
4887
  '(keydown.space)': '_onSpace($event)',
4265
4888
  },
4266
4889
  }]
4267
- }], ctorParameters: () => [], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], expandedOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedOnly", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], _indicator: [{ type: i0.ViewChild, args: ['indicator', { isSignal: true }] }] } });
4890
+ }], ctorParameters: () => [], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], badgeDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeDescription", required: false }] }], badgeDot: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeDot", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], expandedOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedOnly", required: false }] }], tall: [{ type: i0.Input, args: [{ isSignal: true, alias: "tall", required: false }] }], _indicator: [{ type: i0.ViewChild, args: ['indicator', { isSignal: true }] }], _container: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }] } });
4268
4891
 
4269
- /** A labeled group of secondary destinations, as shown in the Expressive rail specification. */
4270
- class MatExpNavigationRailSection {
4892
+ let nextId = 0;
4893
+ /**
4894
+ * Opt-in tree destinations (ADR 0013): a group row that opens and closes its child
4895
+ * destinations. Any group turns the rail's destinations into a tree with one Tab stop and
4896
+ * arrow-key navigation; a rail without groups keeps its list behaviour. Project an icon with
4897
+ * `matExpNavigationRailIcon` and the children as `matExpNavigationRailItem`s. The group never
4898
+ * navigates; it opens itself when one of its children becomes selected. The tree has two
4899
+ * levels: groups are not supported inside other groups or in `[matExpNavigationRailFooter]`.
4900
+ */
4901
+ class MatExpNavigationRailGroup {
4271
4902
  _rail = inject(MatExpNavigationRail);
4272
- /** Visible section heading and accessible group name. */
4903
+ _document = inject(DOCUMENT);
4904
+ _host = inject(ElementRef).nativeElement;
4905
+ _section = inject(MatExpNavigationRailSection, { optional: true });
4906
+ /** An outer group: nesting is unsupported (the tree has two levels). */
4907
+ _parent = inject(MAT_EXP_NAVIGATION_RAIL_GROUP, {
4908
+ optional: true,
4909
+ skipSelf: true,
4910
+ });
4911
+ /** Bumped after the first render, when a group created by `@if`/`@for` is in the document. */
4912
+ _placement = signal(0, /* @ts-ignore */
4913
+ ...(ngDevMode ? [{ debugName: "_placement" }] : /* istanbul ignore next */ []));
4914
+ _row = viewChild('row', /* @ts-ignore */
4915
+ ...(ngDevMode ? [{ debugName: "_row" }] : /* istanbul ignore next */ []));
4916
+ _indicator = viewChild.required('indicator', /* @ts-ignore */
4917
+ ...(ngDevMode ? [{ debugName: "_indicator" }] : /* istanbul ignore next */ []));
4918
+ _children = viewChild('children', /* @ts-ignore */
4919
+ ...(ngDevMode ? [{ debugName: "_children" }] : /* istanbul ignore next */ []));
4920
+ _items = signal([], /* @ts-ignore */
4921
+ ...(ngDevMode ? [{ debugName: "_items" }] : /* istanbul ignore next */ []));
4922
+ /** Visible text and accessible name of the group row. */
4273
4923
  label = input.required(/* @ts-ignore */
4274
4924
  ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
4275
- /** Hide this group in the collapsed rail. @default true */
4276
- expandedOnly = input(true, { ...(ngDevMode ? { debugName: "expandedOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4925
+ /** Whether the group shows its children; supports `[(open)]`. @default false */
4926
+ open = model(false, /* @ts-ignore */
4927
+ ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
4277
4928
  /** @internal */
4278
- _hidden = computed(() => this.expandedOnly() && !this._rail.expanded(), /* @ts-ignore */
4279
- ...(ngDevMode ? [{ debugName: "_hidden" }] : /* istanbul ignore next */ []));
4280
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRailSection, deps: [], target: i0.ɵɵFactoryTarget.Component });
4281
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.3", type: MatExpNavigationRailSection, isStandalone: true, selector: "mat-exp-navigation-rail-section", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, expandedOnly: { classPropertyName: "expandedOnly", publicName: "expandedOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "label()", "hidden": "_hidden()" }, classAttribute: "mat-exp-navigation-rail-section" }, exportAs: ["matExpNavigationRailSection"], ngImport: i0, template: `<div class="mat-exp-navigation-rail-section-label" aria-hidden="true">
4282
- {{ label() }}
4929
+ _childrenId = `mat-exp-navigation-rail-group-${nextId++}`;
4930
+ /** @internal A stacked collapsed rail shows groups as single stacked items; a peek does not. */
4931
+ _expanded = computed(() => this.open() &&
4932
+ (this._rail.presentedExpanded() || this._rail.collapsedLayout() === 'fixed-axis'), /* @ts-ignore */
4933
+ ...(ngDevMode ? [{ debugName: "_expanded" }] : /* istanbul ignore next */ []));
4934
+ /**
4935
+ * @internal Groups are unsupported in the footer: one there stays out of the tree. Read when
4936
+ * bindings run, when groups created by `@if`/`@for` are already in place, and again after the
4937
+ * first render.
4938
+ */
4939
+ _inFooter = computed(() => {
4940
+ this._placement();
4941
+ return !!this._host.closest(MAT_EXP_NAVIGATION_RAIL_FOOTER_SELECTOR);
4942
+ }, /* @ts-ignore */
4943
+ ...(ngDevMode ? [{ debugName: "_inFooter" }] : /* istanbul ignore next */ []));
4944
+ /** @internal Whether the row is a treeitem; a footer group's row is a plain button. */
4945
+ _treeRow = computed(() => this._rail._tree() && !this._inFooter(), /* @ts-ignore */
4946
+ ...(ngDevMode ? [{ debugName: "_treeRow" }] : /* istanbul ignore next */ []));
4947
+ /** @internal */
4948
+ _shown = computed(() => !this._section?._hidden() &&
4949
+ (!this._parent || (this._parent._shown() && this._parent._expanded())), /* @ts-ignore */
4950
+ ...(ngDevMode ? [{ debugName: "_shown" }] : /* istanbul ignore next */ []));
4951
+ /** @internal */
4952
+ _rovingCandidate = computed(() => this._treeRow() && this._shown(), /* @ts-ignore */
4953
+ ...(ngDevMode ? [{ debugName: "_rovingCandidate" }] : /* istanbul ignore next */ []));
4954
+ /** @internal */
4955
+ _holdsSelection = computed(() => this._items().some((item) => item.selected()), /* @ts-ignore */
4956
+ ...(ngDevMode ? [{ debugName: "_holdsSelection" }] : /* istanbul ignore next */ []));
4957
+ /** @internal The closed ancestor of the current page. */
4958
+ _current = computed(() => this._holdsSelection() && !this._expanded(), /* @ts-ignore */
4959
+ ...(ngDevMode ? [{ debugName: "_current" }] : /* istanbul ignore next */ []));
4960
+ /** @internal */
4961
+ _currentState = computed(() => (this._current() ? 'true' : null), /* @ts-ignore */
4962
+ ...(ngDevMode ? [{ debugName: "_currentState" }] : /* istanbul ignore next */ []));
4963
+ /** @internal */
4964
+ _tabIndex = computed(() => {
4965
+ if (!this._treeRow())
4966
+ return 0;
4967
+ return this._rail._isTabStop(this, this._row()?.nativeElement) ? 0 : -1;
4968
+ }, /* @ts-ignore */
4969
+ ...(ngDevMode ? [{ debugName: "_tabIndex" }] : /* istanbul ignore next */ []));
4970
+ constructor() {
4971
+ inject(DestroyRef).onDestroy(this._rail._registerGroup(this));
4972
+ if (this._parent)
4973
+ this._rail._warnGroupPlacement('nested');
4974
+ afterNextRender(() => {
4975
+ const inFooter = !!this._host.closest(MAT_EXP_NAVIGATION_RAIL_FOOTER_SELECTOR);
4976
+ if (inFooter !== this._inFooter())
4977
+ this._placement.update((value) => value + 1);
4978
+ if (inFooter)
4979
+ this._rail._warnGroupPlacement('footer');
4980
+ });
4981
+ // Open when a child becomes selected, on load and on every new selection, but never
4982
+ // re-open for the selection the user already closed the group on.
4983
+ let lastSelected;
4984
+ effect(() => {
4985
+ const selected = this._items().find((item) => item.selected());
4986
+ if (selected && selected !== lastSelected)
4987
+ untracked(() => this.open.set(true));
4988
+ lastSelected = selected;
4989
+ });
4990
+ // Component effects run before this view removes the children, so focus can move to the
4991
+ // row before the focused child leaves the document.
4992
+ effect(() => {
4993
+ if (this._expanded())
4994
+ return;
4995
+ untracked(() => this._rescueFocus());
4996
+ });
4997
+ let initialized = false;
4998
+ afterRenderEffect((onCleanup) => {
4999
+ const current = this._current();
5000
+ const element = this._indicator().nativeElement;
5001
+ if (!initialized) {
5002
+ element.style.transform = current ? 'scaleX(1)' : 'scaleX(0)';
5003
+ element.style.opacity = current ? '1' : '0';
5004
+ initialized = true;
5005
+ }
5006
+ else {
5007
+ onCleanup(animateNavigationRailSelection(element, current));
5008
+ }
5009
+ });
5010
+ }
5011
+ /** @internal */
5012
+ _registerItem(item) {
5013
+ this._items.update((items) => [...items, item]);
5014
+ return () => this._items.update((items) => items.filter((entry) => entry !== item));
5015
+ }
5016
+ /** @internal */
5017
+ _rowElement() {
5018
+ return this._row().nativeElement;
5019
+ }
5020
+ /** @internal */
5021
+ _childrenElement() {
5022
+ return this._children()?.nativeElement;
5023
+ }
5024
+ /**
5025
+ * @internal Pointer, Enter and Space: toggle, or open and expand a collapsed rail. A peeking
5026
+ * rail is still collapsed, so activation pins it open.
5027
+ */
5028
+ _activate() {
5029
+ if (!this._rail.expanded()) {
5030
+ this.open.set(true);
5031
+ this._rail._expandFrom(this._rowElement());
5032
+ }
5033
+ else if (this.open()) {
5034
+ this._close();
5035
+ }
5036
+ else {
5037
+ this.open.set(true);
5038
+ }
5039
+ }
5040
+ /** @internal */
5041
+ _openFromKeyboard() {
5042
+ if (!this._rail.presentedExpanded() && this._rail.collapsedLayout() !== 'fixed-axis') {
5043
+ // A stacked collapsed rail cannot show children: expand it, as activation does. A peeking
5044
+ // rail already shows them, so arrow keys open the group without pinning the rail.
5045
+ this._activate();
5046
+ }
5047
+ else {
5048
+ this.open.set(true);
5049
+ }
5050
+ }
5051
+ /** @internal */
5052
+ _close() {
5053
+ this._rescueFocus();
5054
+ this.open.set(false);
5055
+ }
5056
+ /** @internal */
5057
+ _onActivationKey(event) {
5058
+ event.preventDefault();
5059
+ this._activate();
5060
+ }
5061
+ _rescueFocus() {
5062
+ const children = this._childrenElement();
5063
+ if (children?.contains(this._document.activeElement)) {
5064
+ this._rowElement().focus();
5065
+ }
5066
+ }
5067
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRailGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
5068
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: MatExpNavigationRailGroup, isStandalone: true, selector: "mat-exp-navigation-rail-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { attributes: { "role": "none" }, classAttribute: "mat-exp-navigation-rail-group" }, providers: [{ provide: MAT_EXP_NAVIGATION_RAIL_GROUP, useExisting: MatExpNavigationRailGroup }], viewQueries: [{ propertyName: "_row", first: true, predicate: ["row"], descendants: true, isSignal: true }, { propertyName: "_indicator", first: true, predicate: ["indicator"], descendants: true, isSignal: true }, { propertyName: "_children", first: true, predicate: ["children"], descendants: true, isSignal: true }], exportAs: ["matExpNavigationRailGroup"], ngImport: i0, template: `
5069
+ <!-- No aria-selected: ARIA 1.2 does not require it on treeitem; a navigation tree marks the
5070
+ current page with aria-current instead (WAI-ARIA APG), and aria-selected would announce
5071
+ every row as "not selected". A footer group (unsupported) stays out of the tree as a plain
5072
+ disclosure button. -->
5073
+ <div
5074
+ #row
5075
+ class="mat-exp-navigation-rail-item mat-exp-navigation-rail-group-row"
5076
+ [attr.role]="_treeRow() ? 'treeitem' : 'button'"
5077
+ [attr.aria-level]="_treeRow() ? 1 : null"
5078
+ [attr.aria-expanded]="_expanded()"
5079
+ [attr.aria-current]="_current() ? 'true' : null"
5080
+ [attr.aria-owns]="_treeRow() && _expanded() ? _childrenId : null"
5081
+ [attr.aria-controls]="!_treeRow() && _expanded() ? _childrenId : null"
5082
+ [attr.tabindex]="_tabIndex()"
5083
+ [attr.data-selected]="_current()"
5084
+ [attr.data-open]="_expanded()"
5085
+ (click)="_activate()"
5086
+ (keydown.enter)="_onActivationKey($event)"
5087
+ (keydown.space)="_onActivationKey($event)"
5088
+ >
5089
+ <span class="mat-exp-navigation-rail-item-container">
5090
+ <span
5091
+ class="mat-exp-navigation-rail-item-ripple"
5092
+ matRipple
5093
+ [matRippleTrigger]="row"
5094
+ aria-hidden="true"
5095
+ ></span>
5096
+ <span #indicator class="mat-exp-navigation-rail-item-indicator" aria-hidden="true"></span>
5097
+ <span class="mat-exp-navigation-rail-item-icon"
5098
+ ><ng-content select="[matExpNavigationRailIcon]"
5099
+ /></span>
5100
+ <span class="mat-exp-navigation-rail-item-label">{{ label() }}</span>
5101
+ <span class="mat-exp-navigation-rail-group-chevron" aria-hidden="true"
5102
+ ><svg viewBox="0 0 24 24" focusable="false" aria-hidden="true">
5103
+ <path d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" /></svg
5104
+ ></span>
5105
+ <span class="mat-exp-navigation-rail-group-mark" aria-hidden="true"></span>
5106
+ </span>
4283
5107
  </div>
4284
- <ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
5108
+ @if (_expanded()) {
5109
+ <div #children class="mat-exp-navigation-rail-group-children" role="group" [id]="_childrenId">
5110
+ <ng-content />
5111
+ </div>
5112
+ }
5113
+ `, isInline: true, dependencies: [{ kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4285
5114
  }
4286
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRailSection, decorators: [{
5115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRailGroup, decorators: [{
4287
5116
  type: Component,
4288
5117
  args: [{
4289
- selector: 'mat-exp-navigation-rail-section',
4290
- exportAs: 'matExpNavigationRailSection',
4291
- changeDetection: ChangeDetectionStrategy.OnPush,
4292
- template: `<div class="mat-exp-navigation-rail-section-label" aria-hidden="true">
4293
- {{ label() }}
5118
+ selector: 'mat-exp-navigation-rail-group',
5119
+ exportAs: 'matExpNavigationRailGroup',
5120
+ imports: [MatRipple],
5121
+ template: `
5122
+ <!-- No aria-selected: ARIA 1.2 does not require it on treeitem; a navigation tree marks the
5123
+ current page with aria-current instead (WAI-ARIA APG), and aria-selected would announce
5124
+ every row as "not selected". A footer group (unsupported) stays out of the tree as a plain
5125
+ disclosure button. -->
5126
+ <div
5127
+ #row
5128
+ class="mat-exp-navigation-rail-item mat-exp-navigation-rail-group-row"
5129
+ [attr.role]="_treeRow() ? 'treeitem' : 'button'"
5130
+ [attr.aria-level]="_treeRow() ? 1 : null"
5131
+ [attr.aria-expanded]="_expanded()"
5132
+ [attr.aria-current]="_current() ? 'true' : null"
5133
+ [attr.aria-owns]="_treeRow() && _expanded() ? _childrenId : null"
5134
+ [attr.aria-controls]="!_treeRow() && _expanded() ? _childrenId : null"
5135
+ [attr.tabindex]="_tabIndex()"
5136
+ [attr.data-selected]="_current()"
5137
+ [attr.data-open]="_expanded()"
5138
+ (click)="_activate()"
5139
+ (keydown.enter)="_onActivationKey($event)"
5140
+ (keydown.space)="_onActivationKey($event)"
5141
+ >
5142
+ <span class="mat-exp-navigation-rail-item-container">
5143
+ <span
5144
+ class="mat-exp-navigation-rail-item-ripple"
5145
+ matRipple
5146
+ [matRippleTrigger]="row"
5147
+ aria-hidden="true"
5148
+ ></span>
5149
+ <span #indicator class="mat-exp-navigation-rail-item-indicator" aria-hidden="true"></span>
5150
+ <span class="mat-exp-navigation-rail-item-icon"
5151
+ ><ng-content select="[matExpNavigationRailIcon]"
5152
+ /></span>
5153
+ <span class="mat-exp-navigation-rail-item-label">{{ label() }}</span>
5154
+ <span class="mat-exp-navigation-rail-group-chevron" aria-hidden="true"
5155
+ ><svg viewBox="0 0 24 24" focusable="false" aria-hidden="true">
5156
+ <path d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" /></svg
5157
+ ></span>
5158
+ <span class="mat-exp-navigation-rail-group-mark" aria-hidden="true"></span>
5159
+ </span>
4294
5160
  </div>
4295
- <ng-content />`,
5161
+ @if (_expanded()) {
5162
+ <div #children class="mat-exp-navigation-rail-group-children" role="group" [id]="_childrenId">
5163
+ <ng-content />
5164
+ </div>
5165
+ }
5166
+ `,
5167
+ changeDetection: ChangeDetectionStrategy.OnPush,
5168
+ providers: [{ provide: MAT_EXP_NAVIGATION_RAIL_GROUP, useExisting: MatExpNavigationRailGroup }],
4296
5169
  host: {
4297
- class: 'mat-exp-navigation-rail-section',
4298
- role: 'group',
4299
- '[attr.aria-label]': 'label()',
4300
- '[hidden]': '_hidden()',
5170
+ class: 'mat-exp-navigation-rail-group',
5171
+ role: 'none',
4301
5172
  },
4302
5173
  }]
4303
- }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], expandedOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedOnly", required: false }] }] } });
5174
+ }], ctorParameters: () => [], propDecorators: { _row: [{ type: i0.ViewChild, args: ['row', { isSignal: true }] }], _indicator: [{ type: i0.ViewChild, args: ['indicator', { isSignal: true }] }], _children: [{ type: i0.ViewChild, args: ['children', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }] } });
4304
5175
 
4305
5176
  const options$1 = matExpCreateOptions({
4306
5177
  motion: 'system',
@@ -4410,7 +5281,7 @@ function createStepperMotion(options) {
4410
5281
  height: new StepperSpring(0, STEPPER_SPRINGS.indicator, 0.5, [0, Infinity]),
4411
5282
  };
4412
5283
  const panes = new Map();
4413
- /** Out-of-flow, invisible panes waiting for the template to hide them. */
5284
+ /** Panes hidden with `display: none` until the template hides them. */
4414
5285
  const parked = new Set();
4415
5286
  let indicatorPlaced = false;
4416
5287
  let leaving = null;
@@ -4430,26 +5301,27 @@ function createStepperMotion(options) {
4430
5301
  sizing = active;
4431
5302
  options.sizing?.(active);
4432
5303
  };
5304
+ const PANE_STYLES = ['position', 'top', 'left', 'right', 'transform', 'opacity', 'display'];
4433
5305
  const resetPane = (pane) => {
4434
5306
  if (!pane)
4435
5307
  return;
4436
5308
  panes.delete(pane);
4437
5309
  parked.delete(pane);
4438
- for (const property of ['position', 'top', 'left', 'right', 'transform', 'opacity'])
5310
+ for (const property of PANE_STYLES)
4439
5311
  pane.style.removeProperty(property);
4440
5312
  };
4441
5313
  /**
4442
- * Keep a pane out of flow and invisible until the template hides it. Returning it to flow
4443
- * first would let the viewport (and an enclosing dialog) grow for one frame.
5314
+ * Hide a pane outright until the template does. Returning it to flow first would let the
5315
+ * viewport (and an enclosing dialog) grow for one frame; leaving it laid out, even invisible
5316
+ * and out of flow, would make a taller pane flash the viewport's scrollbar.
4444
5317
  */
4445
5318
  const parkPane = (pane) => {
4446
5319
  if (!pane)
4447
5320
  return;
4448
5321
  panes.delete(pane);
4449
- pane.style.removeProperty('transform');
4450
- if (pane.style.position !== 'absolute')
4451
- Object.assign(pane.style, { position: 'absolute', top: '0', left: '0', right: '0' });
4452
- pane.style.opacity = '0';
5322
+ for (const property of PANE_STYLES)
5323
+ pane.style.removeProperty(property);
5324
+ pane.style.display = 'none';
4453
5325
  parked.add(pane);
4454
5326
  };
4455
5327
  const write = () => {
@@ -5742,7 +6614,7 @@ class MatExpDialogLayout {
5742
6614
  <ng-container [ngTemplateOutlet]="actions.template" />
5743
6615
  </div>
5744
6616
  }
5745
- `, isInline: true, styles: ["mat-exp-dialog-layout{display:grid;grid-template:\"heading close\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/1fr auto;min-height:0;max-height:inherit;height:100%}mat-exp-dialog-layout>.mat-exp-dialog-heading{grid-area:heading;margin:0;min-width:0;overflow-wrap:anywhere}mat-exp-dialog-layout>.mat-exp-dialog-body{grid-area:body;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}mat-exp-dialog-layout>.mat-exp-dialog-actions{grid-area:actions}mat-exp-dialog-layout>.mat-exp-dialog-close{grid-area:close;align-self:center;margin-inline-end:16px}@media(max-width:599px){.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]{grid-template:\"close heading actions\" auto \"body body body\" minmax(0,1fr)/auto minmax(0,1fr) auto;padding-top:env(safe-area-inset-top,0px)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-close{grid-area:close;display:inline-flex;align-self:center;margin-inline-start:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading{align-self:center;padding:.75rem .5rem;font:var(--mat-sys-title-large)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading:before{display:none}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-actions{align-self:center;min-height:3.5rem;padding:0;padding-inline-end:max(8px,env(safe-area-inset-right,0px));border:0;flex-wrap:wrap;max-width:45vw}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-close{margin-inline-start:max(8px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-actions{padding-inline-end:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-body{padding-top:1.5rem;padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}}mat-exp-dialog-layout>.mat-exp-dialog-heading{padding:24px 24px 16px;color:var(--mat-sys-on-surface);font:var(--mat-sys-headline-small)}mat-exp-dialog-layout>.mat-exp-dialog-body{padding:0 24px;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium)}mat-exp-dialog-layout>.mat-exp-dialog-body>:first-child{margin-top:0}mat-exp-dialog-layout>.mat-exp-dialog-body>:last-child{margin-bottom:0}mat-exp-dialog-layout>.mat-exp-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:24px}\n"], dependencies: [{ kind: "directive", type: MatExpDialogClose, selector: "[matExpDialogClose]", inputs: ["matExpDialogClose", "type"], exportAs: ["matExpDialogClose"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6617
+ `, isInline: true, styles: ["mat-exp-dialog-layout{display:grid;grid-template:\"heading close\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/1fr auto;min-height:0;max-height:inherit;height:100%}mat-exp-dialog-layout>.mat-exp-dialog-heading{grid-area:heading;margin:0;min-width:0;overflow-wrap:anywhere}mat-exp-dialog-layout>.mat-exp-dialog-body{grid-area:body;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}mat-exp-dialog-layout>.mat-exp-dialog-actions{grid-area:actions}mat-exp-dialog-layout>.mat-exp-dialog-close{grid-area:close;align-self:center;margin-inline-end:16px}@media(max-width:599px){.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]{grid-template:\"close heading actions\" auto \"body body body\" minmax(0,1fr)/auto minmax(0,1fr) auto;padding-top:env(safe-area-inset-top,0px)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-close{grid-area:close;display:inline-flex;align-self:center;margin-inline-start:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading{align-self:center;padding:.75rem .5rem;font:var(--mat-sys-title-large)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading:before{display:none}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-actions{align-self:center;min-height:3.5rem;padding:0;padding-inline-end:max(8px,env(safe-area-inset-right,0px));border:0;flex-wrap:wrap;max-width:45vw}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-close{margin-inline-start:max(8px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-actions{padding-inline-end:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-body{padding-top:1.5rem;padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}}mat-exp-dialog-layout>.mat-exp-dialog-heading{padding:24px 24px 16px;color:var(--mat-sys-on-surface);font:var(--mat-sys-headline-small)}mat-exp-dialog-layout>.mat-exp-dialog-body{padding:0 24px;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium)}mat-exp-dialog-layout>.mat-exp-dialog-body>:first-child{margin-top:0}mat-exp-dialog-layout>.mat-exp-dialog-body>:last-child{margin-bottom:0}mat-exp-dialog-layout>.mat-exp-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:24px}\n"], dependencies: [{ kind: "directive", type: MatExpDialogClose, selector: "[matExpDialogClose]", inputs: ["matExpDialogClose", "type"], exportAs: ["matExpDialogClose"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5746
6618
  }
5747
6619
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogLayout, decorators: [{
5748
6620
  type: Component,
@@ -5788,7 +6660,7 @@ class MatExpDialogConfirmation {
5788
6660
  <button matButton [matExpDialogClose]="true">{{ _data.confirmLabel }}</button>
5789
6661
  </ng-template>
5790
6662
  </mat-exp-dialog-layout>
5791
- `, isInline: true, dependencies: [{ kind: "component", type: MatExpDialogLayout, selector: "mat-exp-dialog-layout", exportAs: ["matExpDialogLayout"] }, { kind: "directive", type: MatExpDialogActions, selector: "ng-template[matExpDialogActions]", exportAs: ["matExpDialogActions"] }, { kind: "directive", type: MatExpDialogClose, selector: "[matExpDialogClose]", inputs: ["matExpDialogClose", "type"], exportAs: ["matExpDialogClose"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6663
+ `, isInline: true, dependencies: [{ kind: "component", type: MatExpDialogLayout, selector: "mat-exp-dialog-layout", exportAs: ["matExpDialogLayout"] }, { kind: "directive", type: MatExpDialogActions, selector: "ng-template[matExpDialogActions]", exportAs: ["matExpDialogActions"] }, { kind: "directive", type: MatExpDialogClose, selector: "[matExpDialogClose]", inputs: ["matExpDialogClose", "type"], exportAs: ["matExpDialogClose"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5792
6664
  }
5793
6665
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogConfirmation, decorators: [{
5794
6666
  type: Component,
@@ -5964,5 +6836,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
5964
6836
  * Generated bundle index. Do not edit.
5965
6837
  */
5966
6838
 
5967
- export { ButtonAdapter, IconButtonAdapter, MAT_EXP_BUTTON_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP, MAT_EXP_BUTTON_GROUP_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP_OPTIONS, MAT_EXP_BUTTON_GROUP_VALUE_ACCESSOR, MAT_EXP_BUTTON_OPTIONS, MAT_EXP_DIALOG_OPTIONS, MAT_EXP_FAB_MENU_OPTIONS, MAT_EXP_ICON_BUTTON_DEFAULT_OPTIONS, MAT_EXP_ICON_BUTTON_OPTIONS, MAT_EXP_LIST_DEFAULT_OPTIONS, MAT_EXP_LIST_OPTIONS, MAT_EXP_LOADING_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_LOADING_INDICATOR_OPTIONS, MAT_EXP_LOADING_INDICATOR_SHAPES, MAT_EXP_LOADING_INDICATOR_VIEW_BOX, MAT_EXP_NAVIGATION_RAIL_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_OPTIONS, MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS, MAT_EXP_RICH_TOOLTIP_OPTIONS, MAT_EXP_SEARCH_DEFAULT_OPTIONS, MAT_EXP_SEARCH_OPTIONS, MAT_EXP_SPLIT_BUTTON_DEFAULT_OPTIONS, MAT_EXP_SPLIT_BUTTON_OPTIONS, MAT_EXP_STEPPER_OPTIONS, MAT_EXP_TOOLBAR_OPTIONS, MatExpButton, MatExpButtonGroup, MatExpDialog, MatExpDialogActions, MatExpDialogClose, MatExpDialogLayout, MatExpDialogRef, MatExpFabMenu, MatExpFabMenuButton, MatExpFabMenuTrigger, MatExpIconButton, MatExpList, MatExpListItem, MatExpListMediaDirective, MatExpLoadingIndicator, MatExpNavigationRail, MatExpNavigationRailItem, MatExpNavigationRailSection, MatExpProgressIndicator, MatExpRichTooltip, MatExpRichTooltipTrigger, MatExpSearch, MatExpSearchResult, MatExpSelectableButtonChange, MatExpSplitButton, MatExpStep, MatExpStepper, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, provideMatExpStepperOptions, provideMatExpToolbarOptions, toButtonGroupChild };
6839
+ export { ButtonAdapter, IconButtonAdapter, MAT_EXP_BUTTON_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP, MAT_EXP_BUTTON_GROUP_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP_OPTIONS, MAT_EXP_BUTTON_GROUP_VALUE_ACCESSOR, MAT_EXP_BUTTON_OPTIONS, MAT_EXP_DIALOG_OPTIONS, MAT_EXP_FAB_MENU_OPTIONS, MAT_EXP_ICON_BUTTON_DEFAULT_OPTIONS, MAT_EXP_ICON_BUTTON_OPTIONS, MAT_EXP_LIST_DEFAULT_OPTIONS, MAT_EXP_LIST_OPTIONS, MAT_EXP_LOADING_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_LOADING_INDICATOR_OPTIONS, MAT_EXP_LOADING_INDICATOR_SHAPES, MAT_EXP_LOADING_INDICATOR_VIEW_BOX, MAT_EXP_NAVIGATION_RAIL_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_OPTIONS, MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS, MAT_EXP_RICH_TOOLTIP_OPTIONS, MAT_EXP_SEARCH_DEFAULT_OPTIONS, MAT_EXP_SEARCH_OPTIONS, MAT_EXP_SPLIT_BUTTON_DEFAULT_OPTIONS, MAT_EXP_SPLIT_BUTTON_OPTIONS, MAT_EXP_STEPPER_OPTIONS, MAT_EXP_TOOLBAR_OPTIONS, MatExpButton, MatExpButtonGroup, MatExpDialog, MatExpDialogActions, MatExpDialogClose, MatExpDialogLayout, MatExpDialogRef, MatExpFabMenu, MatExpFabMenuButton, MatExpFabMenuTrigger, MatExpIconButton, MatExpList, MatExpListItem, MatExpListMediaDirective, MatExpLoadingIndicator, MatExpNavigationRail, MatExpNavigationRailGroup, MatExpNavigationRailItem, MatExpNavigationRailSection, MatExpProgressIndicator, MatExpRichTooltip, MatExpRichTooltipTrigger, MatExpSearch, MatExpSearchResult, MatExpSelectableButtonChange, MatExpSplitButton, MatExpStep, MatExpStepper, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, provideMatExpStepperOptions, provideMatExpToolbarOptions, toButtonGroupChild };
5968
6840
  //# sourceMappingURL=camaradesuk-m3e-angular.mjs.map