@camaradesuk/m3e-angular 0.1.0-alpha.6 → 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,11 +1,11 @@
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, Injector, 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';
7
7
  import { SelectionModel } from '@angular/cdk/collections';
8
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
8
+ import { NG_VALUE_ACCESSOR, AbstractControl } from '@angular/forms';
9
9
  import { MediaMatcher } from '@angular/cdk/layout';
10
10
  import { MATERIAL_ANIMATIONS, MatRipple } from '@angular/material/core';
11
11
  import { toSignal } from '@angular/core/rxjs-interop';
@@ -13,12 +13,15 @@ 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';
24
+ import { CdkStep, CdkStepper, CdkStepHeader } from '@angular/cdk/stepper';
22
25
  import { CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
23
26
  import { MatDialogState, MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
24
27
 
@@ -94,6 +97,10 @@ const injectMatExpButtonGroupOptions = _buttonGroupOptions.inject;
94
97
  const FAST_SPATIAL_SPRING = { dampingRatio: 0.6, stiffness: 800 };
95
98
  /** Critically damped fast effects motion, without overshoot. @internal */
96
99
  const FAST_EFFECTS_SPRING = { dampingRatio: 1, stiffness: 3800 };
100
+ /** Default spatial motion for partial-surface layout changes, with slight overshoot. @internal */
101
+ const DEFAULT_SPATIAL_SPRING = { dampingRatio: 0.8, stiffness: 380 };
102
+ /** Critically damped default effects motion, without overshoot. @internal */
103
+ const DEFAULT_EFFECTS_SPRING = { dampingRatio: 1, stiffness: 1600 };
97
104
 
98
105
  /** Unit-mass spring sampled from position and velocity at an arbitrary time.
99
106
  * Supports damping ratios from 0 through 1 (underdamped or critical) and positive stiffness.
@@ -1108,13 +1115,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
1108
1115
  args: [{ providedIn: 'root' }]
1109
1116
  }] });
1110
1117
 
1111
- const options$6 = matExpCreateOptions({ color: 'primary', motion: true });
1118
+ const options$7 = matExpCreateOptions({ color: 'primary', motion: true });
1112
1119
  /** Injector-scoped FAB menu defaults. */
1113
- const MAT_EXP_FAB_MENU_OPTIONS = options$6.token;
1120
+ const MAT_EXP_FAB_MENU_OPTIONS = options$7.token;
1114
1121
  /** Override FAB menu defaults without configuring each trigger separately. */
1115
- const provideMatExpFabMenuOptions = options$6.provide;
1122
+ const provideMatExpFabMenuOptions = options$7.provide;
1116
1123
  /** @internal */
1117
- const injectMatExpFabMenuOptions = options$6.inject;
1124
+ const injectMatExpFabMenuOptions = options$7.inject;
1118
1125
 
1119
1126
  /** Configures the official web adaptation: a FAB opening a native Material menu. */
1120
1127
  class MatExpFabMenu {
@@ -2278,11 +2285,11 @@ const MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS = {
2278
2285
  touchGestures: true,
2279
2286
  disabled: false,
2280
2287
  };
2281
- const options$5 = matExpCreateOptions(MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS);
2282
- const MAT_EXP_RICH_TOOLTIP_OPTIONS = options$5.token;
2283
- const provideMatExpRichTooltipOptions = options$5.provide;
2288
+ const options$6 = matExpCreateOptions(MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS);
2289
+ const MAT_EXP_RICH_TOOLTIP_OPTIONS = options$6.token;
2290
+ const provideMatExpRichTooltipOptions = options$6.provide;
2284
2291
  /** @internal */
2285
- const injectMatExpRichTooltipOptions = options$5.inject;
2292
+ const injectMatExpRichTooltipOptions = options$6.inject;
2286
2293
 
2287
2294
  // Web adaptation: a brief opacity entrance; M3 tooltip guidance mandates no spring choreography.
2288
2295
  const ENTER_DURATION_SECONDS = 0.15;
@@ -2777,13 +2784,13 @@ const MAT_EXP_TOOLBAR_DEFAULT_OPTIONS = {
2777
2784
  appearance: 'standard',
2778
2785
  alignment: 'auto',
2779
2786
  };
2780
- const options$4 = matExpCreateOptions(MAT_EXP_TOOLBAR_DEFAULT_OPTIONS);
2787
+ const options$5 = matExpCreateOptions(MAT_EXP_TOOLBAR_DEFAULT_OPTIONS);
2781
2788
  /** Defaults for the toolbar directive. Prefer the merging provider function. */
2782
- const MAT_EXP_TOOLBAR_OPTIONS = options$4.token;
2789
+ const MAT_EXP_TOOLBAR_OPTIONS = options$5.token;
2783
2790
  /** Override toolbar defaults at any injector level. */
2784
- const provideMatExpToolbarOptions = options$4.provide;
2791
+ const provideMatExpToolbarOptions = options$5.provide;
2785
2792
  /** @internal */
2786
- const injectMatExpToolbarOptions = options$4.inject;
2793
+ const injectMatExpToolbarOptions = options$5.inject;
2787
2794
 
2788
2795
  // Custom playfulMotionScheme.defaultSpatialSpec from the official article,
2789
2796
  // not a named Expressive preset or a toolbar-specific token.
@@ -3083,11 +3090,11 @@ const MAT_EXP_LIST_DEFAULT_OPTIONS = {
3083
3090
  appearance: 'segmented',
3084
3091
  textWrap: 'wrap',
3085
3092
  };
3086
- const options$3 = matExpCreateOptions(MAT_EXP_LIST_DEFAULT_OPTIONS);
3087
- const MAT_EXP_LIST_OPTIONS = options$3.token;
3088
- const provideMatExpListOptions = options$3.provide;
3093
+ const options$4 = matExpCreateOptions(MAT_EXP_LIST_DEFAULT_OPTIONS);
3094
+ const MAT_EXP_LIST_OPTIONS = options$4.token;
3095
+ const provideMatExpListOptions = options$4.provide;
3089
3096
  /** @internal */
3090
- const injectMatExpListOptions = options$3.inject;
3097
+ const injectMatExpListOptions = options$4.inject;
3091
3098
 
3092
3099
  /**
3093
3100
  * Opt-in Expressive presentation. Material owns interaction, focus and forms.
@@ -3159,11 +3166,11 @@ const MAT_EXP_SEARCH_DEFAULT_OPTIONS = {
3159
3166
  clearLabel: 'Clear search',
3160
3167
  closeOnBackdrop: true,
3161
3168
  };
3162
- const options$2 = matExpCreateOptions(MAT_EXP_SEARCH_DEFAULT_OPTIONS);
3163
- const MAT_EXP_SEARCH_OPTIONS = options$2.token;
3164
- const provideMatExpSearchOptions = options$2.provide;
3169
+ const options$3 = matExpCreateOptions(MAT_EXP_SEARCH_DEFAULT_OPTIONS);
3170
+ const MAT_EXP_SEARCH_OPTIONS = options$3.token;
3171
+ const provideMatExpSearchOptions = options$3.provide;
3165
3172
  /** @internal */
3166
- const injectMatExpSearchOptions = options$2.inject;
3173
+ const injectMatExpSearchOptions = options$3.inject;
3167
3174
 
3168
3175
  /** Marks a native result button or link for Arrow/Home/End navigation. Keep its native semantics. */
3169
3176
  class MatExpSearchResult {
@@ -3672,11 +3679,11 @@ function addRailSpring(timeline, element, property, from, to, options = {}) {
3672
3679
  }
3673
3680
 
3674
3681
  /** @internal Browser-only controller; constructed from afterRenderEffect. */
3675
- function createNavigationRailMotion(panel, content) {
3682
+ function createNavigationRailMotion(panel, content, layout) {
3676
3683
  const media = panel.ownerDocument.defaultView.matchMedia('(prefers-reduced-motion: reduce)');
3677
3684
  const nav = panel.querySelector('nav');
3678
3685
  const headerButtons = () => Array.from(panel.querySelectorAll('[matExpNavigationRailHeader] button, [matExpNavigationRailHeader] a'));
3679
- 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'));
3680
3687
  const capture = () => {
3681
3688
  const origin = panel.getBoundingClientRect();
3682
3689
  const rtl = getComputedStyle(panel).direction === 'rtl';
@@ -3747,7 +3754,11 @@ function createNavigationRailMotion(panel, content) {
3747
3754
  // at every intermediate width, invalidating the FLIP geometry.
3748
3755
  for (const element of elements)
3749
3756
  element.style.transition = 'none';
3750
- 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
+ }
3751
3762
  const buttons = headerButtons();
3752
3763
  const header = panel.querySelector('[matExpNavigationRailHeader]');
3753
3764
  if (header) {
@@ -3842,14 +3853,25 @@ function createNavigationRailMotion(panel, content) {
3842
3853
  effects: true,
3843
3854
  });
3844
3855
  }
3845
- 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')) {
3846
3859
  const fade = addRailSpring(timeline, element, 'opacity', old.opacity, 0, {
3847
3860
  effects: true,
3848
3861
  });
3849
- 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, {
3850
3874
  effects: true,
3851
- at: fade,
3852
- resetVelocity: true,
3853
3875
  });
3854
3876
  }
3855
3877
  }
@@ -3892,25 +3914,41 @@ const MAT_EXP_NAVIGATION_RAIL_DEFAULT_OPTIONS = {
3892
3914
  hideOnCollapse: false,
3893
3915
  alignment: 'top',
3894
3916
  ariaLabel: 'Primary navigation',
3917
+ density: 'default',
3918
+ collapsedLayout: 'stacked',
3919
+ peek: false,
3895
3920
  };
3896
- const options$1 = matExpCreateOptions(MAT_EXP_NAVIGATION_RAIL_DEFAULT_OPTIONS);
3897
- const MAT_EXP_NAVIGATION_RAIL_OPTIONS = options$1.token;
3898
- const provideMatExpNavigationRailOptions = options$1.provide;
3921
+ const options$2 = matExpCreateOptions(MAT_EXP_NAVIGATION_RAIL_DEFAULT_OPTIONS);
3922
+ const MAT_EXP_NAVIGATION_RAIL_OPTIONS = options$2.token;
3923
+ const provideMatExpNavigationRailOptions = options$2.provide;
3899
3924
  /** @internal */
3900
- const injectMatExpNavigationRailOptions = options$1.inject;
3925
+ const injectMatExpNavigationRailOptions = options$2.inject;
3901
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'];
3902
3934
  /**
3903
3935
  * Expressive navigation layout. Project destinations directly, a menu/FAB in
3904
- * `[matExpNavigationRailHeader]`, and page content in `[matExpNavigationRailContent]`.
3936
+ * `[matExpNavigationRailHeader]`, optional pinned controls in `[matExpNavigationRailFooter]`,
3937
+ * and page content in `[matExpNavigationRailContent]`.
3905
3938
  */
3906
3939
  class MatExpNavigationRail {
3907
3940
  _options = injectMatExpNavigationRailOptions();
3908
3941
  _document = inject(DOCUMENT);
3909
3942
  _checker = inject(InteractivityChecker);
3943
+ _modality = inject(InputModalityDetector);
3910
3944
  _panel = viewChild.required('panel', /* @ts-ignore */
3911
3945
  ...(ngDevMode ? [{ debugName: "_panel" }] : /* istanbul ignore next */ []));
3912
3946
  _drawerElement = viewChild.required('drawer', { ...(ngDevMode ? { debugName: "_drawerElement" } : /* istanbul ignore next */ {}), read: ElementRef });
3913
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 */ []));
3914
3952
  _motion;
3915
3953
  _previousFocus = null;
3916
3954
  _lastExternalFocus = null;
@@ -3918,6 +3956,33 @@ class MatExpNavigationRail {
3918
3956
  _wasExpanded = false;
3919
3957
  _wasModal = false;
3920
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;
3921
3986
  /** Whether the rail is expanded; supports `[(expanded)]`. @default false */
3922
3987
  expanded = model(this._options.expanded, /* @ts-ignore */
3923
3988
  ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
@@ -3932,9 +3997,80 @@ class MatExpNavigationRail {
3932
3997
  /** Accessible name of the navigation region and modal. @default 'Primary navigation' */
3933
3998
  ariaLabel = input(this._options.ariaLabel, /* @ts-ignore */
3934
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 */ []));
3935
4031
  /** @internal */
3936
4032
  _modal = computed(() => this.mode() === 'modal' && this.expanded(), /* @ts-ignore */
3937
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 */ []));
3938
4074
  constructor() {
3939
4075
  // Material owns the focus trap. Expansion can change side -> over without
3940
4076
  // opening the drawer again, so focus entry/restoration is managed here.
@@ -3942,8 +4078,13 @@ class MatExpNavigationRail {
3942
4078
  const expanded = this.expanded();
3943
4079
  const modal = this._modal();
3944
4080
  const hidden = !expanded && this.hideOnCollapse();
3945
- // 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.
3946
4085
  this.alignment();
4086
+ this.density();
4087
+ this.collapsedLayout();
3947
4088
  const panel = this._panel().nativeElement;
3948
4089
  if (isDevMode() && !this._warnedMisprojectedContent) {
3949
4090
  const misplaced = panel.querySelector('.mat-exp-navigation-rail-destinations > main, ' +
@@ -3958,12 +4099,17 @@ class MatExpNavigationRail {
3958
4099
  if (this._motion)
3959
4100
  this._motion.update();
3960
4101
  else
3961
- this._motion = createNavigationRailMotion(this._drawerElement().nativeElement, this._contentElement().nativeElement);
4102
+ this._motion = createNavigationRailMotion(this._drawerElement().nativeElement, this._contentElement().nativeElement, { fixedAxis: () => this.collapsedLayout() === 'fixed-axis' });
3962
4103
  if ((expanded && !this._wasExpanded) || (modal && !this._wasModal)) {
3963
4104
  this._previousFocus = this._document.activeElement;
3964
4105
  }
4106
+ const keep = this._focusOnModalOpen;
4107
+ this._focusOnModalOpen = null;
3965
4108
  if (modal && !this._wasModal) {
3966
- 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));
3967
4113
  (first ?? panel).focus({ preventScroll: true });
3968
4114
  }
3969
4115
  else if ((!expanded && this._wasExpanded) || (!modal && this._wasModal)) {
@@ -3978,42 +4124,116 @@ class MatExpNavigationRail {
3978
4124
  else if (hidden && panel.contains(this._document.activeElement)) {
3979
4125
  this._restoreFocus(true);
3980
4126
  }
4127
+ else if (this._wasPeeking && !peeking && !expanded) {
4128
+ this._keepFocusAfterPeek();
4129
+ }
3981
4130
  this._wasExpanded = expanded;
3982
4131
  this._wasModal = modal;
4132
+ this._wasPeeking = peeking;
3983
4133
  });
4134
+ afterEveryRender(() => this._syncTabStop());
3984
4135
  inject(DestroyRef).onDestroy(() => {
4136
+ this._clearPeekTimers();
3985
4137
  if (this._wasModal)
3986
4138
  this._restoreFocus();
3987
4139
  this._motion?.destroy();
3988
4140
  });
3989
4141
  }
3990
- /** Expand from a menu button. */
4142
+ /** Expand from a menu button. A peeking rail is pinned open. */
3991
4143
  open() {
4144
+ this._endPeek();
3992
4145
  this.expanded.set(true);
3993
4146
  }
3994
4147
  /** Return to the collapsed or hidden presentation. */
3995
4148
  close() {
4149
+ this._endPeek();
3996
4150
  this.expanded.set(false);
3997
4151
  }
3998
4152
  /** Toggle expansion from a menu button. */
3999
4153
  toggle() {
4154
+ this._endPeek();
4000
4155
  this.expanded.update((value) => !value);
4001
4156
  }
4002
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 */
4003
4205
  _dismiss() {
4004
4206
  if (this._modal())
4005
4207
  this.close();
4006
4208
  }
4007
4209
  /** @internal */
4008
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;
4009
4216
  const previous = event.relatedTarget;
4010
4217
  const returningToWindow = previous === null && event.target === this._windowBlurredElement;
4011
4218
  this._windowBlurredElement = null;
4012
4219
  if (previous === null && !returningToWindow)
4013
4220
  this._lastExternalFocus = null;
4014
- else if (previous instanceof HTMLElement && !this._panel().nativeElement.contains(previous)) {
4221
+ else if (previous instanceof HTMLElement && !panel.contains(previous)) {
4015
4222
  this._lastExternalFocus = previous;
4016
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
+ }
4017
4237
  }
4018
4238
  /** @internal */
4019
4239
  _onWindowBlur() {
@@ -4021,19 +4241,78 @@ class MatExpNavigationRail {
4021
4241
  this._windowBlurredElement = this._document.activeElement;
4022
4242
  }
4023
4243
  /** @internal */
4024
- _onFocusOut() {
4244
+ _onFocusOut(event) {
4245
+ this._focusMoved = true;
4025
4246
  // A normal in-page exit invalidates any unconsumed window-return snapshot.
4026
- if (this._document.hasFocus())
4247
+ const documentFocused = this._document.hasFocus();
4248
+ if (documentFocused)
4027
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);
4028
4295
  }
4029
4296
  /** @internal */
4030
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
+ }
4031
4303
  if (event.key === 'Escape' && this._modal() && !event.defaultPrevented) {
4032
4304
  event.preventDefault();
4033
4305
  event.stopPropagation();
4034
4306
  this.close();
4035
4307
  return;
4036
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
+ }
4037
4316
  if (event.key === 'Tab' &&
4038
4317
  this._modal() &&
4039
4318
  !event.defaultPrevented &&
@@ -4056,7 +4335,15 @@ class MatExpNavigationRail {
4056
4335
  }
4057
4336
  return;
4058
4337
  }
4059
- 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)
4060
4347
  return;
4061
4348
  if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key))
4062
4349
  return;
@@ -4072,6 +4359,195 @@ class MatExpNavigationRail {
4072
4359
  : (index + (event.key === 'ArrowDown' ? 1 : -1) + items.length) % items.length;
4073
4360
  items[next].focus();
4074
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
+ }
4075
4551
  _restoreFocus(fallbackToContent = false) {
4076
4552
  const panel = this._panel().nativeElement;
4077
4553
  const candidates = fallbackToContent
@@ -4090,40 +4566,138 @@ class MatExpNavigationRail {
4090
4566
  this._windowBlurredElement = null;
4091
4567
  }
4092
4568
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRail, deps: [], target: i0.ɵɵFactoryTarget.Component });
4093
- 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 });
4094
4570
  }
4095
4571
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRail, decorators: [{
4096
4572
  type: Component,
4097
4573
  args: [{ selector: 'mat-exp-navigation-rail', exportAs: 'matExpNavigationRail', imports: [MatDrawer, MatDrawerContainer, MatDrawerContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
4098
4574
  class: 'mat-exp-navigation-rail',
4099
4575
  '(window:blur)': '_onWindowBlur()',
4100
- '[attr.data-expanded]': 'expanded()',
4576
+ '(document:keydown.escape)': '_onDocumentEscape($event)',
4577
+ '[attr.data-expanded]': 'presentedExpanded()',
4578
+ '[attr.data-peek]': 'peeking() || null',
4101
4579
  '[attr.data-mode]': 'mode()',
4102
4580
  '[attr.data-hide-on-collapse]': 'hideOnCollapse()',
4103
4581
  '[attr.data-hidden]': '!expanded() && hideOnCollapse()',
4104
4582
  '[attr.data-alignment]': 'alignment()',
4105
- }, 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"] }]
4106
- }], 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 }] }] } });
4588
+
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 }] }] } });
4107
4624
 
4108
- /** A native link or button destination. Selection remains owned by the application's route. */
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
+ */
4109
4642
  class MatExpNavigationRailItem {
4110
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 });
4111
4651
  /** @internal */
4112
4652
  _element = inject((ElementRef)).nativeElement;
4113
4653
  /** @internal */
4114
4654
  _isButton = this._element.tagName === 'BUTTON';
4115
4655
  /** Mark the current destination, usually from RouterLinkActive. @default false */
4116
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 });
4117
4665
  /** Skip a temporarily unavailable destination. @default false */
4118
4666
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4119
4667
  /** Reveal a secondary destination only in the expanded rail. @default false */
4120
4668
  expandedOnly = input(false, { ...(ngDevMode ? { debugName: "expandedOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
4121
- /** Badge text; empty string displays a dot, null hides it. Describe its meaning in aria-label. @default null */
4122
- badge = input(null, /* @ts-ignore */
4123
- ...(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 });
4124
4671
  /** @internal */
4125
- _hidden = computed(() => this.expandedOnly() && !this._rail.expanded(), /* @ts-ignore */
4672
+ _hidden = computed(() => this.expandedOnly() && !this._rail.presentedExpanded(), /* @ts-ignore */
4126
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 */ []));
4127
4701
  constructor() {
4128
4702
  // Capture prevents consumer handlers and browser link navigation on both
4129
4703
  // primary and auxiliary clicks (middle-click can open a new tab).
@@ -4146,12 +4720,42 @@ class MatExpNavigationRailItem {
4146
4720
  const stopDragStart = renderer.listen(this._element, 'dragstart', stopDisabledActivation, {
4147
4721
  capture: true,
4148
4722
  });
4723
+ const unregister = this._group?._registerItem(this);
4724
+ const unregisterRow = this._rail._registerRow(this);
4149
4725
  inject(DestroyRef).onDestroy(() => {
4726
+ unregister?.();
4727
+ unregisterRow();
4150
4728
  stopClick();
4151
4729
  stopAuxClick();
4152
4730
  stopContextMenu();
4153
4731
  stopDragStart();
4154
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
+ });
4155
4759
  let initialized = false;
4156
4760
  afterRenderEffect((onCleanup) => {
4157
4761
  const selected = this.selected();
@@ -4166,8 +4770,38 @@ class MatExpNavigationRailItem {
4166
4770
  }
4167
4771
  });
4168
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
+ }
4169
4801
  _indicator = viewChild.required('indicator', /* @ts-ignore */
4170
4802
  ...(ngDevMode ? [{ debugName: "_indicator" }] : /* istanbul ignore next */ []));
4803
+ _container = viewChild.required('container', /* @ts-ignore */
4804
+ ...(ngDevMode ? [{ debugName: "_container" }] : /* istanbul ignore next */ []));
4171
4805
  /** @internal */
4172
4806
  _onClick(event) {
4173
4807
  const mouse = event;
@@ -4188,8 +4822,8 @@ class MatExpNavigationRailItem {
4188
4822
  }
4189
4823
  }
4190
4824
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRailItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
4191
- 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: `
4192
- <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">
4193
4827
  <span
4194
4828
  class="mat-exp-navigation-rail-item-ripple"
4195
4829
  matRipple
@@ -4202,14 +4836,6 @@ class MatExpNavigationRailItem {
4202
4836
  ><ng-content select="[matExpNavigationRailIcon]"
4203
4837
  /></span>
4204
4838
  <span class="mat-exp-navigation-rail-item-label"><ng-content /></span>
4205
- @if (badge() !== null) {
4206
- <span
4207
- class="mat-exp-navigation-rail-item-badge"
4208
- [class.mat-exp-navigation-rail-item-dot]="badge() === ''"
4209
- aria-hidden="true"
4210
- >{{ badge() }}</span
4211
- >
4212
- }
4213
4839
  </span>
4214
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 });
4215
4841
  }
@@ -4222,7 +4848,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
4222
4848
  exportAs: 'matExpNavigationRailItem',
4223
4849
  imports: [MatRipple],
4224
4850
  template: `
4225
- <span class="mat-exp-navigation-rail-item-container">
4851
+ <span #container class="mat-exp-navigation-rail-item-container">
4226
4852
  <span
4227
4853
  class="mat-exp-navigation-rail-item-ripple"
4228
4854
  matRipple
@@ -4235,67 +4861,1052 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
4235
4861
  ><ng-content select="[matExpNavigationRailIcon]"
4236
4862
  /></span>
4237
4863
  <span class="mat-exp-navigation-rail-item-label"><ng-content /></span>
4238
- @if (badge() !== null) {
4239
- <span
4240
- class="mat-exp-navigation-rail-item-badge"
4241
- [class.mat-exp-navigation-rail-item-dot]="badge() === ''"
4242
- aria-hidden="true"
4243
- >{{ badge() }}</span
4244
- >
4245
- }
4246
4864
  </span>
4247
4865
  `,
4248
4866
  changeDetection: ChangeDetectionStrategy.OnPush,
4867
+ hostDirectives: [
4868
+ {
4869
+ directive: MatBadge,
4870
+ inputs: ['matBadge: badge', 'matBadgeSize: badgeSize', 'matBadgeHidden: badgeHidden'],
4871
+ },
4872
+ ],
4249
4873
  host: {
4250
4874
  class: 'mat-exp-navigation-rail-item',
4251
4875
  '[attr.aria-current]': 'selected() ? "page" : null',
4252
4876
  '[attr.aria-disabled]': 'disabled() ? "true" : null',
4253
4877
  '[attr.disabled]': 'disabled() && _isButton ? "" : null',
4254
- '[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',
4255
4882
  '[attr.type]': '_isButton ? "button" : null',
4256
4883
  '[attr.data-selected]': 'selected()',
4884
+ '[attr.data-tall]': 'tall() || null',
4257
4885
  '[hidden]': '_hidden()',
4258
4886
  '(click)': '_onClick($event)',
4259
4887
  '(keydown.space)': '_onSpace($event)',
4260
4888
  },
4261
4889
  }]
4262
- }], 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 }] }] } });
4263
4891
 
4264
- /** A labeled group of secondary destinations, as shown in the Expressive rail specification. */
4265
- 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 {
4266
4902
  _rail = inject(MatExpNavigationRail);
4267
- /** 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. */
4268
4923
  label = input.required(/* @ts-ignore */
4269
4924
  ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
4270
- /** Hide this group in the collapsed rail. @default true */
4271
- 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 */ []));
4272
4928
  /** @internal */
4273
- _hidden = computed(() => this.expandedOnly() && !this._rail.expanded(), /* @ts-ignore */
4274
- ...(ngDevMode ? [{ debugName: "_hidden" }] : /* istanbul ignore next */ []));
4275
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpNavigationRailSection, deps: [], target: i0.ɵɵFactoryTarget.Component });
4276
- 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">
4277
- {{ 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>
4278
5107
  </div>
4279
- <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 });
4280
5114
  }
4281
- 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: [{
4282
5116
  type: Component,
4283
5117
  args: [{
4284
- selector: 'mat-exp-navigation-rail-section',
4285
- exportAs: 'matExpNavigationRailSection',
4286
- changeDetection: ChangeDetectionStrategy.OnPush,
4287
- template: `<div class="mat-exp-navigation-rail-section-label" aria-hidden="true">
4288
- {{ 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>
4289
5160
  </div>
4290
- <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 }],
4291
5169
  host: {
4292
- class: 'mat-exp-navigation-rail-section',
4293
- role: 'group',
4294
- '[attr.aria-label]': 'label()',
4295
- '[hidden]': '_hidden()',
5170
+ class: 'mat-exp-navigation-rail-group',
5171
+ role: 'none',
4296
5172
  },
4297
5173
  }]
4298
- }], 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"] }] } });
5175
+
5176
+ const options$1 = matExpCreateOptions({
5177
+ motion: 'system',
5178
+ closeLabel: 'Close dialog',
5179
+ });
5180
+ const MAT_EXP_DIALOG_OPTIONS = options$1.token;
5181
+ const provideMatExpDialogOptions = options$1.provide;
5182
+ /** @internal */
5183
+ const injectMatExpDialogOptions = options$1.inject;
5184
+ /** @internal Context is supplied at open time, not inferred from consumer DOM. */
5185
+ const MAT_EXP_DIALOG_CONTEXT = new InjectionToken('MatExpDialog context');
5186
+ /**
5187
+ * @internal Content that animates its own size (the stepper) asks the dialog to follow the
5188
+ * content directly instead of running a second, competing resize spring.
5189
+ */
5190
+ const MAT_EXP_DIALOG_SIZING = new InjectionToken('MatExpDialog sizing');
5191
+
5192
+ /**
5193
+ * AndroidX ExpressiveMotionTokens v0_14_0 values. The role assignment is our web
5194
+ * interpretation, not a Material stepper specification: content offset and panel height are
5195
+ * partial-surface spatial changes, the selection indicator is a small component, and opacity is
5196
+ * an effect that must not overshoot. Outgoing content leaves faster than incoming content settles.
5197
+ * @internal
5198
+ */
5199
+ const STEPPER_SPRINGS = {
5200
+ content: DEFAULT_SPATIAL_SPRING,
5201
+ height: DEFAULT_SPATIAL_SPRING,
5202
+ indicator: FAST_SPATIAL_SPRING,
5203
+ enter: DEFAULT_EFFECTS_SPRING,
5204
+ exit: FAST_EFFECTS_SPRING,
5205
+ };
5206
+ /** Shared-axis travel in CSS pixels; Material's shared-axis pattern uses about 30dp. @internal */
5207
+ const STEPPER_SHARED_AXIS_OFFSET = 30;
5208
+ /**
5209
+ * Incoming content starts fading in once outgoing opacity falls below this, as in Material's
5210
+ * shared-axis sequencing: the old step clears before the new one appears. Position moves at once.
5211
+ * @internal
5212
+ */
5213
+ const STEPPER_ENTER_AFTER_OPACITY = 0.03;
5214
+ /**
5215
+ * @internal One analytically sampled spring. Retargeting starts from the current position and
5216
+ * velocity, so interrupted motion never jumps or restarts.
5217
+ */
5218
+ class StepperSpring {
5219
+ _config;
5220
+ _tolerance;
5221
+ _range;
5222
+ value;
5223
+ velocity = 0;
5224
+ active = false;
5225
+ _from;
5226
+ _target;
5227
+ _initialVelocity = 0;
5228
+ _time = 0;
5229
+ constructor(value, _config, _tolerance, _range = [-Infinity, Infinity]) {
5230
+ this._config = _config;
5231
+ this._tolerance = _tolerance;
5232
+ this._range = _range;
5233
+ this.value = this._from = this._target = value;
5234
+ }
5235
+ get target() {
5236
+ return this._target;
5237
+ }
5238
+ /** Spring toward a new target from the current state. */
5239
+ to(target) {
5240
+ this._from = this.value;
5241
+ this._initialVelocity = this.velocity;
5242
+ this._target = target;
5243
+ this._time = 0;
5244
+ this.active = this.value !== target || this.velocity !== 0;
5245
+ }
5246
+ /** Settle immediately at a value. */
5247
+ jump(value) {
5248
+ this.value = this._from = this._target = value;
5249
+ this.velocity = this._initialVelocity = 0;
5250
+ this._time = 0;
5251
+ this.active = false;
5252
+ }
5253
+ /** Advance by seconds of elapsed time. */
5254
+ advance(seconds) {
5255
+ if (!this.active)
5256
+ return;
5257
+ this._time += seconds;
5258
+ const sample = sampleDampedSpring(this._from, this._target, this._initialVelocity, this._time, this._config);
5259
+ const [min, max] = this._range;
5260
+ const value = Math.max(min, Math.min(max, sample.value));
5261
+ this.value = value;
5262
+ // A clamped channel has physically stopped against its bound.
5263
+ this.velocity = value === sample.value ? sample.velocity : 0;
5264
+ if (Math.abs(this.value - this._target) < this._tolerance &&
5265
+ Math.abs(this.velocity) < this._tolerance * 10)
5266
+ this.jump(this._target);
5267
+ }
5268
+ }
5269
+ /**
5270
+ * @internal Browser-only controller for the sidebar stepper. The component owns state and DOM
5271
+ * structure; this owns only inline geometry during motion and restores it on settle or destroy.
5272
+ */
5273
+ function createStepperMotion(options) {
5274
+ const clock = options.clock ?? gsap.ticker;
5275
+ const { viewport, indicator } = options;
5276
+ const height = new StepperSpring(0, STEPPER_SPRINGS.height, 0.5, [0, Infinity]);
5277
+ const box = {
5278
+ x: new StepperSpring(0, STEPPER_SPRINGS.indicator, 0.5),
5279
+ y: new StepperSpring(0, STEPPER_SPRINGS.indicator, 0.5),
5280
+ width: new StepperSpring(0, STEPPER_SPRINGS.indicator, 0.5, [0, Infinity]),
5281
+ height: new StepperSpring(0, STEPPER_SPRINGS.indicator, 0.5, [0, Infinity]),
5282
+ };
5283
+ const panes = new Map();
5284
+ /** Panes hidden with `display: none` until the template hides them. */
5285
+ const parked = new Set();
5286
+ let indicatorPlaced = false;
5287
+ let leaving = null;
5288
+ let incoming = null;
5289
+ let settled;
5290
+ let sizing = false;
5291
+ let running = false;
5292
+ let destroyed = false;
5293
+ const springs = () => [
5294
+ height,
5295
+ ...Object.values(box),
5296
+ ...[...panes.values()].flatMap((pane) => [pane.offset, pane.opacity]),
5297
+ ];
5298
+ const setSizing = (active) => {
5299
+ if (sizing === active)
5300
+ return;
5301
+ sizing = active;
5302
+ options.sizing?.(active);
5303
+ };
5304
+ const PANE_STYLES = ['position', 'top', 'left', 'right', 'transform', 'opacity', 'display'];
5305
+ const resetPane = (pane) => {
5306
+ if (!pane)
5307
+ return;
5308
+ panes.delete(pane);
5309
+ parked.delete(pane);
5310
+ for (const property of PANE_STYLES)
5311
+ pane.style.removeProperty(property);
5312
+ };
5313
+ /**
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.
5317
+ */
5318
+ const parkPane = (pane) => {
5319
+ if (!pane)
5320
+ return;
5321
+ panes.delete(pane);
5322
+ for (const property of PANE_STYLES)
5323
+ pane.style.removeProperty(property);
5324
+ pane.style.display = 'none';
5325
+ parked.add(pane);
5326
+ };
5327
+ const write = () => {
5328
+ if (height.active || panes.size)
5329
+ viewport.style.height = `${height.value}px`;
5330
+ const horizontal = options.axis() === 'x';
5331
+ const sign = horizontal && options.rtl() ? -1 : 1;
5332
+ for (const [pane, motion] of panes) {
5333
+ const offset = motion.offset.value * sign;
5334
+ pane.style.transform = horizontal
5335
+ ? `translate3d(${offset}px, 0, 0)`
5336
+ : `translate3d(0, ${offset}px, 0)`;
5337
+ pane.style.opacity = String(motion.opacity.value);
5338
+ }
5339
+ if (indicatorPlaced) {
5340
+ indicator.style.transform = `translate3d(${box.x.value}px, ${box.y.value}px, 0)`;
5341
+ indicator.style.width = `${box.width.value}px`;
5342
+ indicator.style.height = `${box.height.value}px`;
5343
+ }
5344
+ };
5345
+ const settle = () => {
5346
+ viewport.style.removeProperty('height');
5347
+ viewport.removeAttribute('data-animating');
5348
+ if (leaving !== incoming)
5349
+ parkPane(leaving);
5350
+ resetPane(incoming);
5351
+ leaving = incoming = null;
5352
+ height.jump(viewport.getBoundingClientRect().height);
5353
+ setSizing(false);
5354
+ const done = settled;
5355
+ settled = undefined;
5356
+ done?.();
5357
+ };
5358
+ const tick = (_time, deltaMs) => {
5359
+ if (destroyed)
5360
+ return;
5361
+ // A hidden tab can pause the ticker; analytic springs simply settle on resume.
5362
+ const seconds = Math.min(deltaMs / 1000, 0.1);
5363
+ for (const pane of panes.values())
5364
+ if (pane.after && pane.after.value <= STEPPER_ENTER_AFTER_OPACITY) {
5365
+ pane.after = undefined;
5366
+ pane.opacity.to(1);
5367
+ }
5368
+ for (const spring of springs())
5369
+ spring.advance(seconds);
5370
+ write();
5371
+ const contentActive = height.active ||
5372
+ [...panes.values()].some((pane) => pane.offset.active || pane.opacity.active || pane.after !== undefined);
5373
+ if (!contentActive && (leaving || incoming || sizing))
5374
+ settle();
5375
+ if (!springs().some((spring) => spring.active))
5376
+ stop();
5377
+ };
5378
+ const start = () => {
5379
+ if (running || destroyed)
5380
+ return;
5381
+ running = true;
5382
+ clock.add(tick);
5383
+ };
5384
+ const stop = () => {
5385
+ if (!running)
5386
+ return;
5387
+ running = false;
5388
+ clock.remove(tick);
5389
+ };
5390
+ /** Measure the natural, layout-capped viewport height without painting it. */
5391
+ const naturalHeight = () => {
5392
+ const previous = viewport.style.height;
5393
+ viewport.style.removeProperty('height');
5394
+ const value = viewport.getBoundingClientRect().height;
5395
+ viewport.style.height = previous;
5396
+ return value;
5397
+ };
5398
+ const finishNow = () => {
5399
+ for (const spring of springs())
5400
+ spring.jump(spring.target);
5401
+ write();
5402
+ stop();
5403
+ settle();
5404
+ };
5405
+ return {
5406
+ /** Record rendered geometry before Angular swaps the visible step. */
5407
+ capture() {
5408
+ if (!height.active)
5409
+ height.jump(viewport.getBoundingClientRect().height);
5410
+ },
5411
+ /**
5412
+ * Start a direction-aware transition after the incoming pane is rendered in flow and the
5413
+ * outgoing pane is still rendered (inert). `done` runs once motion settles or is skipped.
5414
+ */
5415
+ transition(outgoing, next, forward, done) {
5416
+ const scroll = viewport.scrollTop;
5417
+ // Rapid navigation: anything other than the two current panes stops immediately.
5418
+ for (const pane of [...panes.keys()])
5419
+ if (pane !== outgoing && pane !== next)
5420
+ parkPane(pane);
5421
+ // A previously parked pane starts clean; an in-flight one keeps its motion state below.
5422
+ if (!panes.has(next))
5423
+ resetPane(next);
5424
+ // The superseded completion is dropped: the component already chose the new leaving pane.
5425
+ leaving = outgoing;
5426
+ incoming = next;
5427
+ settled = done;
5428
+ if (options.disabled()) {
5429
+ parkPane(outgoing);
5430
+ viewport.scrollTop = 0;
5431
+ finishNow();
5432
+ return;
5433
+ }
5434
+ const direction = forward ? 1 : -1;
5435
+ let exiting;
5436
+ if (outgoing) {
5437
+ if (outgoing.style.position !== 'absolute') {
5438
+ Object.assign(outgoing.style, {
5439
+ position: 'absolute',
5440
+ top: `${-scroll}px`,
5441
+ left: '0',
5442
+ right: '0',
5443
+ });
5444
+ }
5445
+ const motion = panes.get(outgoing) ?? {
5446
+ offset: new StepperSpring(0, STEPPER_SPRINGS.content, 0.1),
5447
+ opacity: new StepperSpring(1, STEPPER_SPRINGS.exit, 0.002, [0, 1]),
5448
+ };
5449
+ panes.set(outgoing, motion);
5450
+ motion.offset.to(-direction * STEPPER_SHARED_AXIS_OFFSET);
5451
+ motion.opacity.to(0);
5452
+ motion.after = undefined;
5453
+ exiting = motion.opacity;
5454
+ }
5455
+ // An interrupted outgoing pane returns from its current offset, opacity and velocity.
5456
+ for (const property of ['position', 'top', 'left', 'right'])
5457
+ next.style.removeProperty(property);
5458
+ const motion = panes.get(next) ?? {
5459
+ offset: new StepperSpring(direction * STEPPER_SHARED_AXIS_OFFSET, STEPPER_SPRINGS.content, 0.1),
5460
+ opacity: new StepperSpring(0, STEPPER_SPRINGS.enter, 0.002, [0, 1]),
5461
+ };
5462
+ panes.set(next, motion);
5463
+ motion.offset.to(0);
5464
+ if (exiting && exiting.value > STEPPER_ENTER_AFTER_OPACITY) {
5465
+ // Hold the current opacity (and its momentum toward zero ends) until the old step clears.
5466
+ motion.opacity.to(motion.opacity.value);
5467
+ motion.after = exiting;
5468
+ }
5469
+ else {
5470
+ motion.after = undefined;
5471
+ motion.opacity.to(1);
5472
+ }
5473
+ viewport.scrollTop = 0;
5474
+ viewport.setAttribute('data-animating', '');
5475
+ height.to(naturalHeight());
5476
+ setSizing(true);
5477
+ write();
5478
+ start();
5479
+ },
5480
+ /**
5481
+ * Move the selection indicator to a header. `animate` springs to a new selection; a layout
5482
+ * sync retargets an indicator already in flight and otherwise settles in place.
5483
+ */
5484
+ indicate(header, animate) {
5485
+ if (!header || !header.offsetParent)
5486
+ return;
5487
+ const target = {
5488
+ x: header.offsetLeft,
5489
+ y: header.offsetTop,
5490
+ width: header.offsetWidth,
5491
+ height: header.offsetHeight,
5492
+ };
5493
+ const moving = Object.values(box).some((spring) => spring.active);
5494
+ const instant = !indicatorPlaced || options.disabled() || (!animate && !moving);
5495
+ for (const key of ['x', 'y', 'width', 'height']) {
5496
+ if (instant)
5497
+ box[key].jump(target[key]);
5498
+ else if (box[key].target !== target[key])
5499
+ box[key].to(target[key]);
5500
+ }
5501
+ indicatorPlaced = true;
5502
+ indicator.style.visibility = 'visible';
5503
+ write();
5504
+ if (!instant)
5505
+ start();
5506
+ },
5507
+ /** Active content resized outside a step change (validation, async data, uploads). */
5508
+ contentResized() {
5509
+ if (destroyed)
5510
+ return;
5511
+ const target = naturalHeight();
5512
+ if (leaving || incoming) {
5513
+ if (Math.abs(target - height.target) > 0.5)
5514
+ height.to(target);
5515
+ return;
5516
+ }
5517
+ const current = height.value;
5518
+ if (options.disabled() || !current || Math.abs(target - current) <= 0.5) {
5519
+ height.jump(target);
5520
+ return;
5521
+ }
5522
+ // The observer runs before paint: hold the previous height, then spring to the new one.
5523
+ viewport.setAttribute('data-animating', '');
5524
+ height.to(target);
5525
+ setSizing(true);
5526
+ write();
5527
+ start();
5528
+ },
5529
+ /**
5530
+ * Release parked panes once hidden, and un-park the selected pane when the selection changed
5531
+ * without a transition (CDK reselects silently when the selected step is removed).
5532
+ */
5533
+ sync(selected) {
5534
+ for (const pane of [...parked])
5535
+ if (pane.hidden || (pane === selected && pane !== leaving && !panes.has(pane)))
5536
+ resetPane(pane);
5537
+ },
5538
+ /** Reduced motion was requested mid-flight: settle everything immediately. */
5539
+ finish: finishNow,
5540
+ destroy() {
5541
+ destroyed = true;
5542
+ stop();
5543
+ setSizing(false);
5544
+ for (const pane of [...panes.keys(), ...parked])
5545
+ resetPane(pane);
5546
+ viewport.style.removeProperty('height');
5547
+ viewport.removeAttribute('data-animating');
5548
+ settled = undefined;
5549
+ },
5550
+ };
5551
+ }
5552
+
5553
+ /** @internal */
5554
+ const MAT_EXP_STEPPER_DEFAULT_OPTIONS = {
5555
+ layout: 'auto',
5556
+ motion: 'system',
5557
+ ariaLabel: 'Steps',
5558
+ optionalLabel: 'Optional',
5559
+ completedLabel: 'Completed',
5560
+ errorLabel: 'Has errors',
5561
+ };
5562
+ const options = matExpCreateOptions(MAT_EXP_STEPPER_DEFAULT_OPTIONS);
5563
+ const MAT_EXP_STEPPER_OPTIONS = options.token;
5564
+ const provideMatExpStepperOptions = options.provide;
5565
+ /** @internal */
5566
+ const injectMatExpStepperOptions = options.inject;
5567
+
5568
+ /**
5569
+ * Mirrors CDK gating for reactive and signal-form step controls. CDK marks the current step as
5570
+ * interacted before checking, so `current` counts as interacted here.
5571
+ */
5572
+ function incomplete(step, current) {
5573
+ const interacted = current || step.interacted;
5574
+ const control = step.stepControl;
5575
+ if (!control)
5576
+ return !(step._completedOverride() ?? interacted);
5577
+ const state = control instanceof AbstractControl
5578
+ ? control
5579
+ : control();
5580
+ const invalid = typeof state.invalid === 'function' ? state.invalid() : state.invalid;
5581
+ const pending = typeof state.pending === 'function' ? state.pending() : state.pending;
5582
+ return invalid || pending || !interacted;
5583
+ }
5584
+ /** Width of the stepper itself below which `layout="auto"` uses the horizontal step list. */
5585
+ const SIDEBAR_MIN_WIDTH = 600;
5586
+ /**
5587
+ * One step of a `mat-exp-stepper`. Inherits every `cdk-step` input: `label`, `stepControl`,
5588
+ * `optional`, `editable`, `completed`, `hasError`, `errorMessage` and `aria-label`.
5589
+ */
5590
+ class MatExpStep extends CdkStep {
5591
+ /** Short secondary text under the label, such as the value chosen in this step. @default '' */
5592
+ summary = input('', /* @ts-ignore */
5593
+ ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
5594
+ /** @internal */
5595
+ _controlEvents;
5596
+ /** @internal */
5597
+ _observedControl;
5598
+ /** @internal */
5599
+ ngOnChanges() {
5600
+ super.ngOnChanges();
5601
+ if (this._observedControl === this.stepControl)
5602
+ return;
5603
+ this._observedControl = this.stepControl;
5604
+ this._controlEvents?.unsubscribe();
5605
+ // Reactive form validity is not a signal; refresh header state when it changes.
5606
+ if (this.stepControl instanceof AbstractControl)
5607
+ this._controlEvents = this.stepControl.events.subscribe(() => this._stepper._stateChanged());
5608
+ }
5609
+ /** @internal */
5610
+ ngOnDestroy() {
5611
+ this._controlEvents?.unsubscribe();
5612
+ }
5613
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpStep, deps: null, target: i0.ɵɵFactoryTarget.Component });
5614
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.3", type: MatExpStep, isStandalone: true, selector: "mat-exp-step", inputs: { summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: CdkStep, useExisting: MatExpStep }], exportAs: ["matExpStep"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-template><ng-content /></ng-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5615
+ }
5616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpStep, decorators: [{
5617
+ type: Component,
5618
+ args: [{
5619
+ selector: 'mat-exp-step',
5620
+ exportAs: 'matExpStep',
5621
+ template: '<ng-template><ng-content /></ng-template>',
5622
+ providers: [{ provide: CdkStep, useExisting: MatExpStep }],
5623
+ encapsulation: ViewEncapsulation.None,
5624
+ changeDetection: ChangeDetectionStrategy.OnPush,
5625
+ }]
5626
+ }], propDecorators: { summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }] } });
5627
+ /**
5628
+ * A CDK stepper with a persistent step list beside the active content. Works on its own or
5629
+ * inside a `MatExpDialog`; applications keep owning form state, validation and actions.
5630
+ * A library composition of Material primitives, not an official Material 3 stepper spec.
5631
+ */
5632
+ class MatExpStepper extends CdkStepper {
5633
+ /** @internal */
5634
+ _steps = undefined;
5635
+ /** @internal */
5636
+ _stepHeader = undefined;
5637
+ /** Steps belonging to this stepper, in order. */
5638
+ steps = new QueryList();
5639
+ /** @internal */
5640
+ _options = injectMatExpStepperOptions();
5641
+ /** @internal */
5642
+ _document = inject(DOCUMENT);
5643
+ /** @internal */
5644
+ _injector = inject(Injector);
5645
+ /** @internal */
5646
+ _browser = isPlatformBrowser(inject(PLATFORM_ID));
5647
+ /** @internal */
5648
+ _direction = inject(Directionality, { optional: true });
5649
+ /** @internal */
5650
+ _dialogSizing = inject(MAT_EXP_DIALOG_SIZING, { optional: true });
5651
+ /** @internal */
5652
+ _viewport = viewChild.required('viewport', /* @ts-ignore */
5653
+ ...(ngDevMode ? [{ debugName: "_viewport" }] : /* istanbul ignore next */ []));
5654
+ /** @internal */
5655
+ _indicator = viewChild.required('indicator', /* @ts-ignore */
5656
+ ...(ngDevMode ? [{ debugName: "_indicator" }] : /* istanbul ignore next */ []));
5657
+ /** @internal */
5658
+ _headers = viewChild.required('headers', /* @ts-ignore */
5659
+ ...(ngDevMode ? [{ debugName: "_headers" }] : /* istanbul ignore next */ []));
5660
+ /** @internal Zero-height, full-width probe: width changes only, never content height. */
5661
+ _measure = viewChild.required('measure', /* @ts-ignore */
5662
+ ...(ngDevMode ? [{ debugName: "_measure" }] : /* istanbul ignore next */ []));
5663
+ /** @internal */
5664
+ _motion;
5665
+ /** @internal */
5666
+ _reducedMotion;
5667
+ /** @internal */
5668
+ _observer;
5669
+ /** @internal */
5670
+ _observedPane;
5671
+ /** Visible heading above the step list; also names it. @default '' */
5672
+ heading = input('', /* @ts-ignore */
5673
+ ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
5674
+ /** Accessible step list name when `heading` is empty. @default 'Steps' */
5675
+ ariaLabel = input(this._options.ariaLabel, /* @ts-ignore */
5676
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
5677
+ /** Step list placement. `auto` switches by the stepper's own width. @default 'auto' */
5678
+ layout = input(this._options.layout, /* @ts-ignore */
5679
+ ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
5680
+ /** Motion policy; the OS reduced-motion preference always wins. @default 'system' */
5681
+ motion = input(this._options.motion, /* @ts-ignore */
5682
+ ...(ngDevMode ? [{ debugName: "motion" }] : /* istanbul ignore next */ []));
5683
+ /** @internal */
5684
+ _labels = this._options;
5685
+ /** @internal */
5686
+ _headingId = inject(_IdGenerator).getId('mat-exp-stepper-heading-');
5687
+ /** @internal Index of the step whose content is animating out, or -1. */
5688
+ _leaving = signal(-1, /* @ts-ignore */
5689
+ ...(ngDevMode ? [{ debugName: "_leaving" }] : /* istanbul ignore next */ []));
5690
+ /** @internal */
5691
+ _width = signal(Infinity, /* @ts-ignore */
5692
+ ...(ngDevMode ? [{ debugName: "_width" }] : /* istanbul ignore next */ []));
5693
+ /** @internal */
5694
+ _count = signal(0, /* @ts-ignore */
5695
+ ...(ngDevMode ? [{ debugName: "_count" }] : /* istanbul ignore next */ []));
5696
+ /** @internal */
5697
+ _layout = computed(() => {
5698
+ const layout = this.layout();
5699
+ if (layout !== 'auto')
5700
+ return layout;
5701
+ return this._width() < SIDEBAR_MIN_WIDTH ? 'horizontal' : 'sidebar';
5702
+ }, /* @ts-ignore */
5703
+ ...(ngDevMode ? [{ debugName: "_layout" }] : /* istanbul ignore next */ []));
5704
+ /** Whether the first step is selected. */
5705
+ isFirst = computed(() => this.selectedIndex === 0, /* @ts-ignore */
5706
+ ...(ngDevMode ? [{ debugName: "isFirst" }] : /* istanbul ignore next */ []));
5707
+ /** Whether the last step is selected. */
5708
+ isLast = computed(() => this.selectedIndex === this._count() - 1, /* @ts-ignore */
5709
+ ...(ngDevMode ? [{ debugName: "isLast" }] : /* istanbul ignore next */ []));
5710
+ constructor() {
5711
+ super();
5712
+ effect(() => {
5713
+ this.orientation = this._layout() === 'sidebar' ? 'vertical' : 'horizontal';
5714
+ });
5715
+ const selection = this.selectionChange.subscribe((event) => this._beforeSelection(event));
5716
+ inject(DestroyRef).onDestroy(() => selection.unsubscribe());
5717
+ if (!this._browser)
5718
+ return;
5719
+ afterNextRender(() => this._createMotion());
5720
+ // Selection can change without selectionChange (CDK reselects when the selected step is
5721
+ // removed); never leave a selected or hidden pane with parked motion styles.
5722
+ afterRenderEffect(() => {
5723
+ this._leaving();
5724
+ // The selectedIndex getter reads CDK's internal signal, so this effect tracks it.
5725
+ const selected = this.selectedIndex;
5726
+ this._motion?.sync(this._pane(selected));
5727
+ });
5728
+ }
5729
+ /** @internal */
5730
+ ngAfterContentInit() {
5731
+ super.ngAfterContentInit();
5732
+ this.steps.changes.subscribe(() => this._count.set(this.steps.length));
5733
+ this._count.set(this.steps.length);
5734
+ }
5735
+ /** @internal */
5736
+ ngOnDestroy() {
5737
+ this._observer?.disconnect();
5738
+ this._reducedMotion?.removeEventListener('change', this._onPreference);
5739
+ this._motion?.destroy();
5740
+ super.ngOnDestroy();
5741
+ }
5742
+ /** Move forward; in linear mode an invalid current step reveals its errors instead. */
5743
+ next() {
5744
+ this._select(Math.min(this.selectedIndex + 1, this.steps.length - 1));
5745
+ }
5746
+ /** @internal Header activation, gated exactly like CDK selection. */
5747
+ _select(index) {
5748
+ const before = this.selectedIndex;
5749
+ this.selectedIndex = index;
5750
+ if (this.selectedIndex === before && index > before)
5751
+ this._revealErrors();
5752
+ }
5753
+ /** @internal */
5754
+ _onHeaderKeydown(event) {
5755
+ if ((event.key === 'Enter' || event.key === ' ') && !this._modified(event)) {
5756
+ event.preventDefault();
5757
+ this._select(this._getFocusIndex() ?? this.selectedIndex);
5758
+ return;
5759
+ }
5760
+ this._onKeydown(event);
5761
+ }
5762
+ /** @internal */
5763
+ _state(step, index) {
5764
+ if (index === this.selectedIndex)
5765
+ return 'active';
5766
+ if (step.hasError)
5767
+ return 'error';
5768
+ return step.completed ? 'done' : 'pending';
5769
+ }
5770
+ /** @internal Whether activating this header would be refused by linear/editable gating. */
5771
+ _isBlocked(index) {
5772
+ if (index === this.selectedIndex)
5773
+ return false;
5774
+ const steps = this.steps.toArray();
5775
+ const gated = this.linear &&
5776
+ steps
5777
+ .slice(0, index)
5778
+ .some((step, i) => !step.optional &&
5779
+ !step._completedOverride() &&
5780
+ incomplete(step, i === this.selectedIndex));
5781
+ return gated || (index < this.selectedIndex && !steps[index].editable);
5782
+ }
5783
+ /** @internal */
5784
+ _stepDescription(step, index) {
5785
+ const ids = [];
5786
+ if (step.summary())
5787
+ ids.push(this._getStepLabelId(index) + '-summary');
5788
+ if (step.hasError && step.errorMessage)
5789
+ ids.push(this._getStepLabelId(index) + '-error');
5790
+ return ids.join(' ') || null;
5791
+ }
5792
+ /** @internal */
5793
+ _modified(event) {
5794
+ return event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
5795
+ }
5796
+ /** @internal Mark the blocking step as touched and focus its first invalid control. */
5797
+ _revealErrors() {
5798
+ const step = this.selected;
5799
+ const control = step?.stepControl;
5800
+ if (control instanceof AbstractControl)
5801
+ control.markAllAsTouched();
5802
+ this._stateChanged();
5803
+ if (!this._browser)
5804
+ return;
5805
+ afterNextRender(() => {
5806
+ const pane = this._pane(this.selectedIndex);
5807
+ pane
5808
+ ?.querySelector('input[aria-invalid="true"], textarea[aria-invalid="true"], [aria-invalid="true"][tabindex], .ng-invalid:is(input, textarea, select)')
5809
+ ?.focus();
5810
+ }, { injector: this._injector });
5811
+ }
5812
+ /** @internal */
5813
+ _pane(index) {
5814
+ return index < 0 ? null : this._document.getElementById(this._getStepContentId(index));
5815
+ }
5816
+ /** @internal */
5817
+ _header(index) {
5818
+ return this._document.getElementById(this._getStepLabelId(index));
5819
+ }
5820
+ /** @internal Runs synchronously before CDK updates the selected index. */
5821
+ _beforeSelection(event) {
5822
+ if (!this._motion)
5823
+ return;
5824
+ const from = event.previouslySelectedIndex;
5825
+ const to = event.selectedIndex;
5826
+ const active = this._document.activeElement;
5827
+ const headers = this._headers().nativeElement;
5828
+ const scope = this._elementRef.nativeElement.closest('[role="dialog"], [role="alertdialog"]') ??
5829
+ this._elementRef.nativeElement;
5830
+ // Tabs keep focus on the step list; elsewhere focus follows the new content.
5831
+ const moveFocus = !!active && !headers.contains(active) && scope.contains(active);
5832
+ this._motion.capture();
5833
+ this._leaving.set(from);
5834
+ afterNextRender({
5835
+ write: () => {
5836
+ const next = this._pane(to);
5837
+ if (!next || !this._motion || this.selectedIndex !== to)
5838
+ return;
5839
+ this._motion.transition(this._pane(from), next, to > from, () => this._leaving.set(-1));
5840
+ this._motion.indicate(this._header(to), true);
5841
+ this._observe(next);
5842
+ if (moveFocus)
5843
+ next.focus({ preventScroll: true });
5844
+ },
5845
+ }, { injector: this._injector });
5846
+ }
5847
+ /** @internal */
5848
+ _onPreference = () => {
5849
+ if (this._reducedMotion?.matches)
5850
+ this._motion?.finish();
5851
+ };
5852
+ /** @internal */
5853
+ _createMotion() {
5854
+ const measure = this._measure().nativeElement;
5855
+ // Resolve `auto` before first paint; the observer only reports later changes.
5856
+ this._width.set(measure.getBoundingClientRect().width);
5857
+ const win = this._document.defaultView;
5858
+ this._reducedMotion = win.matchMedia('(prefers-reduced-motion: reduce)');
5859
+ this._reducedMotion.addEventListener('change', this._onPreference);
5860
+ this._motion = createStepperMotion({
5861
+ viewport: this._viewport().nativeElement,
5862
+ indicator: this._indicator().nativeElement,
5863
+ disabled: () => this.motion() === 'none' || !!this._reducedMotion?.matches,
5864
+ axis: () => (this._layout() === 'sidebar' ? 'y' : 'x'),
5865
+ rtl: () => this._direction?.value === 'rtl',
5866
+ sizing: (active) => this._dialogSizing?.follow(active),
5867
+ });
5868
+ this._observer = new ResizeObserver((entries) => {
5869
+ for (const entry of entries) {
5870
+ if (entry.target === measure)
5871
+ this._width.set(entry.contentRect.width);
5872
+ else if (entry.target === this._observedPane)
5873
+ this._motion?.contentResized();
5874
+ }
5875
+ this._motion?.indicate(this._header(this.selectedIndex), false);
5876
+ });
5877
+ // Never observe the host: animated viewport height resizes it inside observer callbacks.
5878
+ this._observer.observe(measure);
5879
+ this._observer.observe(this._headers().nativeElement);
5880
+ const pane = this._pane(this.selectedIndex);
5881
+ if (pane)
5882
+ this._observe(pane);
5883
+ this._motion.indicate(this._header(this.selectedIndex), false);
5884
+ }
5885
+ /** @internal */
5886
+ _observe(pane) {
5887
+ if (this._observedPane === pane)
5888
+ return;
5889
+ if (this._observedPane)
5890
+ this._observer?.unobserve(this._observedPane);
5891
+ this._observedPane = pane;
5892
+ this._observer?.observe(pane);
5893
+ }
5894
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
5895
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: MatExpStepper, isStandalone: true, selector: "mat-exp-stepper", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-layout": "_layout()" }, classAttribute: "mat-exp-stepper" }, providers: [{ provide: CdkStepper, useExisting: MatExpStepper }], queries: [{ propertyName: "_steps", predicate: MatExpStep, descendants: true }], viewQueries: [{ propertyName: "_viewport", first: true, predicate: ["viewport"], descendants: true, isSignal: true }, { propertyName: "_indicator", first: true, predicate: ["indicator"], descendants: true, isSignal: true }, { propertyName: "_headers", first: true, predicate: ["headers"], descendants: true, isSignal: true }, { propertyName: "_measure", first: true, predicate: ["measure"], descendants: true, isSignal: true }, { propertyName: "_stepHeader", predicate: CdkStepHeader, descendants: true }], exportAs: ["matExpStepper"], usesInheritance: true, ngImport: i0, template: "<span #measure class=\"mat-exp-stepper-measure\" aria-hidden=\"true\"></span>\n<div class=\"mat-exp-stepper-sidebar\">\n @if (heading()) {\n <p class=\"mat-exp-stepper-heading\" [id]=\"_headingId\">{{ heading() }}</p>\n }\n <div\n #headers\n class=\"mat-exp-stepper-headers\"\n role=\"tablist\"\n [attr.aria-orientation]=\"_layout() === 'sidebar' ? 'vertical' : 'horizontal'\"\n [attr.aria-label]=\"heading() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"heading() ? _headingId : null\"\n >\n <span #indicator class=\"mat-exp-stepper-selection\" aria-hidden=\"true\"></span>\n @for (step of steps; track step; let i = $index, last = $last) {\n @let state = _state(step, i);\n <button\n type=\"button\"\n cdkStepHeader\n class=\"mat-exp-step-header\"\n [id]=\"_getStepLabelId(i)\"\n [attr.aria-controls]=\"_getStepContentId(i)\"\n [attr.aria-selected]=\"i === selectedIndex\"\n [attr.aria-disabled]=\"_isBlocked(i) || null\"\n [attr.aria-describedby]=\"_stepDescription(step, i)\"\n [attr.aria-label]=\"step.ariaLabel || null\"\n [attr.aria-labelledby]=\"step.ariaLabelledby || null\"\n [attr.tabindex]=\"_getFocusIndex() === i ? 0 : -1\"\n [attr.data-state]=\"state\"\n [attr.data-last]=\"last || null\"\n (click)=\"_select(i)\"\n (keydown)=\"_onHeaderKeydown($event)\"\n >\n <span class=\"mat-exp-step-indicator\" aria-hidden=\"true\">\n @switch (state) {\n @case ('done') {\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n fill=\"currentColor\"\n d=\"M9.55 18 3.85 12.3l1.43-1.42 4.27 4.27 9.17-9.18 1.43 1.43z\"\n />\n </svg>\n }\n @case ('error') {\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path fill=\"currentColor\" d=\"M11 15V5h2v10zm0 4v-2h2v2z\" />\n </svg>\n }\n @default {\n {{ i + 1 }}\n }\n }\n </span>\n <span class=\"mat-exp-step-text\">\n <span class=\"mat-exp-step-label\">\n @if (step.stepLabel) {\n <ng-container [ngTemplateOutlet]=\"step.stepLabel.template\" />\n } @else {\n {{ step.label }}\n }\n @if (step.optional) {\n <span class=\"mat-exp-step-optional\">{{ _labels.optionalLabel }}</span>\n }\n </span>\n @if (step.summary()) {\n <span\n class=\"mat-exp-step-summary\"\n aria-hidden=\"true\"\n [id]=\"_getStepLabelId(i) + '-summary'\"\n >{{ step.summary() }}</span\n >\n }\n @if (step.hasError && step.errorMessage) {\n <span\n class=\"mat-exp-step-error\"\n aria-hidden=\"true\"\n [id]=\"_getStepLabelId(i) + '-error'\"\n >{{ step.errorMessage }}</span\n >\n }\n @if (state === 'done') {\n <span class=\"cdk-visually-hidden\">, {{ _labels.completedLabel }}</span>\n } @else if (state === 'error') {\n <span class=\"cdk-visually-hidden\">, {{ _labels.errorLabel }}</span>\n }\n </span>\n </button>\n }\n </div>\n</div>\n<div class=\"mat-exp-stepper-main\">\n <div #viewport class=\"mat-exp-stepper-viewport\">\n @for (step of steps; track step; let i = $index) {\n <div\n class=\"mat-exp-step-content\"\n role=\"tabpanel\"\n tabindex=\"-1\"\n [id]=\"_getStepContentId(i)\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [hidden]=\"i !== selectedIndex && i !== _leaving()\"\n [attr.inert]=\"i !== selectedIndex ? '' : null\"\n [attr.aria-hidden]=\"i !== selectedIndex ? 'true' : null\"\n >\n <ng-container [ngTemplateOutlet]=\"step.content\" />\n </div>\n }\n </div>\n <ng-content select=\"[matExpStepperActions]\" />\n</div>\n", styles: [".mat-exp-stepper{--_mat-exp-stepper-indicator-size: 2rem;--_mat-exp-stepper-header-padding: .75rem;--_mat-exp-stepper-header-gap: .25rem;--_mat-exp-stepper-divider: var(--mat-exp-stepper-divider-color, var(--mat-sys-outline-variant));position:relative;display:grid;grid-template-columns:var(--mat-exp-stepper-sidebar-width, 17rem) minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0;max-height:100%;box-sizing:border-box;color:var(--mat-sys-on-surface)}.mat-exp-stepper-measure{position:absolute;inset-inline:0;top:0;height:0;visibility:hidden;pointer-events:none}.mat-exp-stepper-sidebar{min-height:0;overflow:auto;padding:1.5rem 1rem;background:var(--mat-exp-stepper-sidebar-color, var(--mat-sys-surface-container));border-inline-end:1px solid var(--_mat-exp-stepper-divider)}.mat-exp-stepper-heading{margin:0 .75rem 1rem;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-title-small)}.mat-exp-stepper-headers{position:relative;display:flex;flex-direction:column;gap:var(--_mat-exp-stepper-header-gap)}.mat-exp-stepper-selection{position:absolute;top:0;left:0;visibility:hidden;pointer-events:none;border-radius:var(--mat-exp-stepper-selection-shape, 1.25rem);background:var(--mat-exp-stepper-selection-color, var(--mat-sys-secondary-container))}.mat-exp-step-header{position:relative;display:grid;grid-template-columns:var(--_mat-exp-stepper-indicator-size) minmax(0,1fr);column-gap:.75rem;align-items:start;width:100%;margin:0;padding:var(--_mat-exp-stepper-header-padding);border:0;border-radius:var(--mat-exp-stepper-selection-shape, 1.25rem);background:transparent;color:var(--mat-sys-on-surface);font:inherit;text-align:start;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}.mat-exp-step-header:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:currentColor;opacity:0;pointer-events:none}.mat-exp-step-header:hover:before{opacity:.08}.mat-exp-step-header:focus-visible{outline:3px solid var(--mat-sys-secondary);outline-offset:2px}.mat-exp-step-header:focus-visible:before{opacity:.1}.mat-exp-step-header[aria-selected=true]{color:var(--mat-sys-on-secondary-container)}.mat-exp-step-header[aria-disabled=true]{cursor:not-allowed}.mat-exp-step-header[aria-disabled=true]:hover:before{opacity:0}.mat-exp-step-header:not([data-last]):after{content:\"\";position:absolute;inset-inline-start:calc(var(--_mat-exp-stepper-header-padding) + var(--_mat-exp-stepper-indicator-size) / 2 - 1px);top:calc(var(--_mat-exp-stepper-header-padding) + var(--_mat-exp-stepper-indicator-size) + .25rem);bottom:calc(-1 * (var(--_mat-exp-stepper-header-gap) + var(--_mat-exp-stepper-header-padding)) + .25rem);width:2px;border-radius:1px;background:var(--mat-exp-stepper-connector-color, var(--mat-sys-outline-variant))}.mat-exp-step-indicator{position:relative;box-sizing:border-box;display:grid;place-items:center;width:var(--_mat-exp-stepper-indicator-size);height:var(--_mat-exp-stepper-indicator-size);border:1px solid var(--mat-sys-outline);border-radius:50%;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-large)}[data-state=done]>.mat-exp-step-indicator{border-color:transparent;background:var(--mat-sys-secondary-container);color:var(--mat-sys-on-secondary-container)}[data-state=active]>.mat-exp-step-indicator{border-color:transparent;border-radius:.625rem;background:var(--mat-sys-primary);color:var(--mat-sys-on-primary)}[data-state=error]>.mat-exp-step-indicator{border-color:transparent;background:var(--mat-sys-error);color:var(--mat-sys-on-error)}.mat-exp-step-text{position:relative;display:flex;flex-direction:column;gap:.125rem;min-width:0;padding-block:.25rem 0}.mat-exp-step-label{font:var(--mat-sys-title-medium);overflow-wrap:anywhere}.mat-exp-step-optional{display:inline-block;margin-inline-start:.375rem;padding:0 .375rem;border:1px solid var(--mat-sys-outline-variant);border-radius:.5rem;font:var(--mat-sys-label-small);vertical-align:middle}.mat-exp-step-summary,.mat-exp-step-error{overflow:hidden;font:var(--mat-sys-body-medium);text-overflow:ellipsis;white-space:nowrap}.mat-exp-step-summary{color:var(--mat-sys-on-surface-variant)}[aria-selected=true] .mat-exp-step-summary{color:inherit}.mat-exp-step-error{color:var(--mat-exp-stepper-error-text-color, var(--mat-sys-on-error-container))}.mat-exp-stepper-main{display:flex;flex-direction:column;min-width:0;min-height:0}.mat-exp-stepper-viewport{position:relative;flex:1 1 auto;box-sizing:border-box;min-height:0;overflow:auto;overscroll-behavior:contain}.mat-exp-stepper-viewport[data-animating]{overflow:hidden}.mat-exp-step-content{box-sizing:border-box;padding:2rem 2.25rem;outline:none}.mat-exp-step-content[hidden]{display:none!important}.mat-exp-step-content:focus-visible{outline:2px solid var(--mat-sys-secondary);outline-offset:-2px}.mat-exp-step-content>:first-child{margin-top:0}.mat-exp-step-content>:last-child{margin-bottom:0}.mat-exp-stepper-main>[matExpStepperActions]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;padding:1rem 1.5rem;border-top:1px solid var(--_mat-exp-stepper-divider)}.mat-exp-stepper[data-layout=horizontal]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.mat-exp-stepper[data-layout=horizontal]>.mat-exp-stepper-sidebar{padding:.5rem .75rem;overflow:auto hidden;border-inline-end:0;border-block-end:1px solid var(--_mat-exp-stepper-divider);scrollbar-width:none}.mat-exp-stepper[data-layout=horizontal] .mat-exp-stepper-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mat-exp-stepper[data-layout=horizontal] .mat-exp-stepper-headers{flex-direction:row;align-items:center;width:max-content}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header{grid-template-columns:var(--_mat-exp-stepper-indicator-size) auto;align-items:center;width:auto;padding:.375rem}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header[aria-selected=true]{padding-inline-end:1rem}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header:after{display:none}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header:not([aria-selected=true]){column-gap:0}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header:not([aria-selected=true]) .mat-exp-step-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-text{padding:0}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-summary,.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-optional{display:none}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-content{padding:1.5rem 1rem}.mat-exp-dialog-panel mat-exp-dialog-layout>.mat-exp-dialog-body:has(>.mat-exp-stepper){display:flex;flex-direction:column;padding:0;overflow:hidden}.mat-exp-dialog-panel mat-exp-dialog-layout>.mat-exp-dialog-body:has(>.mat-exp-stepper)>.mat-exp-stepper{flex:0 1 auto;border-block:1px solid var(--_mat-exp-stepper-divider)}.mat-exp-dialog-panel mat-exp-dialog-layout:has(>.mat-exp-dialog-body>.mat-exp-stepper)>.mat-exp-dialog-actions{padding:1rem 1.5rem}@media(min-width:600px){.mat-exp-dialog-panel.mat-exp-dialog-adaptive:has(mat-exp-stepper){width:min(var(--mat-exp-stepper-dialog-width, 55rem),100% - 32px);max-width:calc(100% - 32px)}}@media(max-width:599px){.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:has(>.mat-exp-dialog-body>.mat-exp-stepper){grid-template:\"close heading\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/auto minmax(0,1fr)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:has(>.mat-exp-dialog-body>.mat-exp-stepper)>.mat-exp-dialog-body>.mat-exp-stepper{flex:1 1 auto;border-block-end:0}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:has(>.mat-exp-dialog-body>.mat-exp-stepper)>.mat-exp-dialog-actions{align-self:stretch;max-width:none;min-height:0;padding:.75rem 1rem max(.75rem,env(safe-area-inset-bottom,0px));border-top:1px solid var(--_mat-exp-stepper-divider, var(--mat-sys-outline-variant))}}@media(forced-colors:active){.mat-exp-stepper-selection{display:none}.mat-exp-step-header[aria-selected=true]{outline:2px solid Highlight;outline-offset:-2px}.mat-exp-step-indicator{border-color:CanvasText}[data-state=active]>.mat-exp-step-indicator{forced-color-adjust:none;background:Highlight;color:HighlightText}[data-state=error]>.mat-exp-step-indicator{border:2px dashed CanvasText}}\n"], dependencies: [{ kind: "directive", type: CdkStepHeader, selector: "[cdkStepHeader]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5896
+ }
5897
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpStepper, decorators: [{
5898
+ type: Component,
5899
+ args: [{ selector: 'mat-exp-stepper', exportAs: 'matExpStepper', imports: [CdkStepHeader, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: CdkStepper, useExisting: MatExpStepper }], host: {
5900
+ class: 'mat-exp-stepper',
5901
+ '[attr.data-layout]': '_layout()',
5902
+ }, template: "<span #measure class=\"mat-exp-stepper-measure\" aria-hidden=\"true\"></span>\n<div class=\"mat-exp-stepper-sidebar\">\n @if (heading()) {\n <p class=\"mat-exp-stepper-heading\" [id]=\"_headingId\">{{ heading() }}</p>\n }\n <div\n #headers\n class=\"mat-exp-stepper-headers\"\n role=\"tablist\"\n [attr.aria-orientation]=\"_layout() === 'sidebar' ? 'vertical' : 'horizontal'\"\n [attr.aria-label]=\"heading() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"heading() ? _headingId : null\"\n >\n <span #indicator class=\"mat-exp-stepper-selection\" aria-hidden=\"true\"></span>\n @for (step of steps; track step; let i = $index, last = $last) {\n @let state = _state(step, i);\n <button\n type=\"button\"\n cdkStepHeader\n class=\"mat-exp-step-header\"\n [id]=\"_getStepLabelId(i)\"\n [attr.aria-controls]=\"_getStepContentId(i)\"\n [attr.aria-selected]=\"i === selectedIndex\"\n [attr.aria-disabled]=\"_isBlocked(i) || null\"\n [attr.aria-describedby]=\"_stepDescription(step, i)\"\n [attr.aria-label]=\"step.ariaLabel || null\"\n [attr.aria-labelledby]=\"step.ariaLabelledby || null\"\n [attr.tabindex]=\"_getFocusIndex() === i ? 0 : -1\"\n [attr.data-state]=\"state\"\n [attr.data-last]=\"last || null\"\n (click)=\"_select(i)\"\n (keydown)=\"_onHeaderKeydown($event)\"\n >\n <span class=\"mat-exp-step-indicator\" aria-hidden=\"true\">\n @switch (state) {\n @case ('done') {\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path\n fill=\"currentColor\"\n d=\"M9.55 18 3.85 12.3l1.43-1.42 4.27 4.27 9.17-9.18 1.43 1.43z\"\n />\n </svg>\n }\n @case ('error') {\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path fill=\"currentColor\" d=\"M11 15V5h2v10zm0 4v-2h2v2z\" />\n </svg>\n }\n @default {\n {{ i + 1 }}\n }\n }\n </span>\n <span class=\"mat-exp-step-text\">\n <span class=\"mat-exp-step-label\">\n @if (step.stepLabel) {\n <ng-container [ngTemplateOutlet]=\"step.stepLabel.template\" />\n } @else {\n {{ step.label }}\n }\n @if (step.optional) {\n <span class=\"mat-exp-step-optional\">{{ _labels.optionalLabel }}</span>\n }\n </span>\n @if (step.summary()) {\n <span\n class=\"mat-exp-step-summary\"\n aria-hidden=\"true\"\n [id]=\"_getStepLabelId(i) + '-summary'\"\n >{{ step.summary() }}</span\n >\n }\n @if (step.hasError && step.errorMessage) {\n <span\n class=\"mat-exp-step-error\"\n aria-hidden=\"true\"\n [id]=\"_getStepLabelId(i) + '-error'\"\n >{{ step.errorMessage }}</span\n >\n }\n @if (state === 'done') {\n <span class=\"cdk-visually-hidden\">, {{ _labels.completedLabel }}</span>\n } @else if (state === 'error') {\n <span class=\"cdk-visually-hidden\">, {{ _labels.errorLabel }}</span>\n }\n </span>\n </button>\n }\n </div>\n</div>\n<div class=\"mat-exp-stepper-main\">\n <div #viewport class=\"mat-exp-stepper-viewport\">\n @for (step of steps; track step; let i = $index) {\n <div\n class=\"mat-exp-step-content\"\n role=\"tabpanel\"\n tabindex=\"-1\"\n [id]=\"_getStepContentId(i)\"\n [attr.aria-labelledby]=\"_getStepLabelId(i)\"\n [hidden]=\"i !== selectedIndex && i !== _leaving()\"\n [attr.inert]=\"i !== selectedIndex ? '' : null\"\n [attr.aria-hidden]=\"i !== selectedIndex ? 'true' : null\"\n >\n <ng-container [ngTemplateOutlet]=\"step.content\" />\n </div>\n }\n </div>\n <ng-content select=\"[matExpStepperActions]\" />\n</div>\n", styles: [".mat-exp-stepper{--_mat-exp-stepper-indicator-size: 2rem;--_mat-exp-stepper-header-padding: .75rem;--_mat-exp-stepper-header-gap: .25rem;--_mat-exp-stepper-divider: var(--mat-exp-stepper-divider-color, var(--mat-sys-outline-variant));position:relative;display:grid;grid-template-columns:var(--mat-exp-stepper-sidebar-width, 17rem) minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0;max-height:100%;box-sizing:border-box;color:var(--mat-sys-on-surface)}.mat-exp-stepper-measure{position:absolute;inset-inline:0;top:0;height:0;visibility:hidden;pointer-events:none}.mat-exp-stepper-sidebar{min-height:0;overflow:auto;padding:1.5rem 1rem;background:var(--mat-exp-stepper-sidebar-color, var(--mat-sys-surface-container));border-inline-end:1px solid var(--_mat-exp-stepper-divider)}.mat-exp-stepper-heading{margin:0 .75rem 1rem;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-title-small)}.mat-exp-stepper-headers{position:relative;display:flex;flex-direction:column;gap:var(--_mat-exp-stepper-header-gap)}.mat-exp-stepper-selection{position:absolute;top:0;left:0;visibility:hidden;pointer-events:none;border-radius:var(--mat-exp-stepper-selection-shape, 1.25rem);background:var(--mat-exp-stepper-selection-color, var(--mat-sys-secondary-container))}.mat-exp-step-header{position:relative;display:grid;grid-template-columns:var(--_mat-exp-stepper-indicator-size) minmax(0,1fr);column-gap:.75rem;align-items:start;width:100%;margin:0;padding:var(--_mat-exp-stepper-header-padding);border:0;border-radius:var(--mat-exp-stepper-selection-shape, 1.25rem);background:transparent;color:var(--mat-sys-on-surface);font:inherit;text-align:start;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent}.mat-exp-step-header:before{content:\"\";position:absolute;inset:0;border-radius:inherit;background:currentColor;opacity:0;pointer-events:none}.mat-exp-step-header:hover:before{opacity:.08}.mat-exp-step-header:focus-visible{outline:3px solid var(--mat-sys-secondary);outline-offset:2px}.mat-exp-step-header:focus-visible:before{opacity:.1}.mat-exp-step-header[aria-selected=true]{color:var(--mat-sys-on-secondary-container)}.mat-exp-step-header[aria-disabled=true]{cursor:not-allowed}.mat-exp-step-header[aria-disabled=true]:hover:before{opacity:0}.mat-exp-step-header:not([data-last]):after{content:\"\";position:absolute;inset-inline-start:calc(var(--_mat-exp-stepper-header-padding) + var(--_mat-exp-stepper-indicator-size) / 2 - 1px);top:calc(var(--_mat-exp-stepper-header-padding) + var(--_mat-exp-stepper-indicator-size) + .25rem);bottom:calc(-1 * (var(--_mat-exp-stepper-header-gap) + var(--_mat-exp-stepper-header-padding)) + .25rem);width:2px;border-radius:1px;background:var(--mat-exp-stepper-connector-color, var(--mat-sys-outline-variant))}.mat-exp-step-indicator{position:relative;box-sizing:border-box;display:grid;place-items:center;width:var(--_mat-exp-stepper-indicator-size);height:var(--_mat-exp-stepper-indicator-size);border:1px solid var(--mat-sys-outline);border-radius:50%;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-large)}[data-state=done]>.mat-exp-step-indicator{border-color:transparent;background:var(--mat-sys-secondary-container);color:var(--mat-sys-on-secondary-container)}[data-state=active]>.mat-exp-step-indicator{border-color:transparent;border-radius:.625rem;background:var(--mat-sys-primary);color:var(--mat-sys-on-primary)}[data-state=error]>.mat-exp-step-indicator{border-color:transparent;background:var(--mat-sys-error);color:var(--mat-sys-on-error)}.mat-exp-step-text{position:relative;display:flex;flex-direction:column;gap:.125rem;min-width:0;padding-block:.25rem 0}.mat-exp-step-label{font:var(--mat-sys-title-medium);overflow-wrap:anywhere}.mat-exp-step-optional{display:inline-block;margin-inline-start:.375rem;padding:0 .375rem;border:1px solid var(--mat-sys-outline-variant);border-radius:.5rem;font:var(--mat-sys-label-small);vertical-align:middle}.mat-exp-step-summary,.mat-exp-step-error{overflow:hidden;font:var(--mat-sys-body-medium);text-overflow:ellipsis;white-space:nowrap}.mat-exp-step-summary{color:var(--mat-sys-on-surface-variant)}[aria-selected=true] .mat-exp-step-summary{color:inherit}.mat-exp-step-error{color:var(--mat-exp-stepper-error-text-color, var(--mat-sys-on-error-container))}.mat-exp-stepper-main{display:flex;flex-direction:column;min-width:0;min-height:0}.mat-exp-stepper-viewport{position:relative;flex:1 1 auto;box-sizing:border-box;min-height:0;overflow:auto;overscroll-behavior:contain}.mat-exp-stepper-viewport[data-animating]{overflow:hidden}.mat-exp-step-content{box-sizing:border-box;padding:2rem 2.25rem;outline:none}.mat-exp-step-content[hidden]{display:none!important}.mat-exp-step-content:focus-visible{outline:2px solid var(--mat-sys-secondary);outline-offset:-2px}.mat-exp-step-content>:first-child{margin-top:0}.mat-exp-step-content>:last-child{margin-bottom:0}.mat-exp-stepper-main>[matExpStepperActions]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;padding:1rem 1.5rem;border-top:1px solid var(--_mat-exp-stepper-divider)}.mat-exp-stepper[data-layout=horizontal]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.mat-exp-stepper[data-layout=horizontal]>.mat-exp-stepper-sidebar{padding:.5rem .75rem;overflow:auto hidden;border-inline-end:0;border-block-end:1px solid var(--_mat-exp-stepper-divider);scrollbar-width:none}.mat-exp-stepper[data-layout=horizontal] .mat-exp-stepper-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mat-exp-stepper[data-layout=horizontal] .mat-exp-stepper-headers{flex-direction:row;align-items:center;width:max-content}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header{grid-template-columns:var(--_mat-exp-stepper-indicator-size) auto;align-items:center;width:auto;padding:.375rem}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header[aria-selected=true]{padding-inline-end:1rem}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header:after{display:none}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header:not([aria-selected=true]){column-gap:0}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-header:not([aria-selected=true]) .mat-exp-step-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-text{padding:0}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-summary,.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-optional{display:none}.mat-exp-stepper[data-layout=horizontal] .mat-exp-step-content{padding:1.5rem 1rem}.mat-exp-dialog-panel mat-exp-dialog-layout>.mat-exp-dialog-body:has(>.mat-exp-stepper){display:flex;flex-direction:column;padding:0;overflow:hidden}.mat-exp-dialog-panel mat-exp-dialog-layout>.mat-exp-dialog-body:has(>.mat-exp-stepper)>.mat-exp-stepper{flex:0 1 auto;border-block:1px solid var(--_mat-exp-stepper-divider)}.mat-exp-dialog-panel mat-exp-dialog-layout:has(>.mat-exp-dialog-body>.mat-exp-stepper)>.mat-exp-dialog-actions{padding:1rem 1.5rem}@media(min-width:600px){.mat-exp-dialog-panel.mat-exp-dialog-adaptive:has(mat-exp-stepper){width:min(var(--mat-exp-stepper-dialog-width, 55rem),100% - 32px);max-width:calc(100% - 32px)}}@media(max-width:599px){.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:has(>.mat-exp-dialog-body>.mat-exp-stepper){grid-template:\"close heading\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/auto minmax(0,1fr)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:has(>.mat-exp-dialog-body>.mat-exp-stepper)>.mat-exp-dialog-body>.mat-exp-stepper{flex:1 1 auto;border-block-end:0}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:has(>.mat-exp-dialog-body>.mat-exp-stepper)>.mat-exp-dialog-actions{align-self:stretch;max-width:none;min-height:0;padding:.75rem 1rem max(.75rem,env(safe-area-inset-bottom,0px));border-top:1px solid var(--_mat-exp-stepper-divider, var(--mat-sys-outline-variant))}}@media(forced-colors:active){.mat-exp-stepper-selection{display:none}.mat-exp-step-header[aria-selected=true]{outline:2px solid Highlight;outline-offset:-2px}.mat-exp-step-indicator{border-color:CanvasText}[data-state=active]>.mat-exp-step-indicator{forced-color-adjust:none;background:Highlight;color:HighlightText}[data-state=error]>.mat-exp-step-indicator{border:2px dashed CanvasText}}\n"] }]
5903
+ }], ctorParameters: () => [], propDecorators: { _steps: [{
5904
+ type: ContentChildren,
5905
+ args: [MatExpStep, { descendants: true }]
5906
+ }], _stepHeader: [{
5907
+ type: ViewChildren,
5908
+ args: [CdkStepHeader]
5909
+ }], _viewport: [{ type: i0.ViewChild, args: ['viewport', { isSignal: true }] }], _indicator: [{ type: i0.ViewChild, args: ['indicator', { isSignal: true }] }], _headers: [{ type: i0.ViewChild, args: ['headers', { isSignal: true }] }], _measure: [{ type: i0.ViewChild, args: ['measure', { isSignal: true }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }] } });
4299
5910
 
4300
5911
  /** A Material-shaped reference whose completion follows the owned spring lifecycle. */
4301
5912
  class MatExpDialogRef {
@@ -4451,17 +6062,6 @@ class MatExpDialogRef {
4451
6062
  }
4452
6063
  }
4453
6064
 
4454
- const options = matExpCreateOptions({
4455
- motion: 'system',
4456
- closeLabel: 'Close dialog',
4457
- });
4458
- const MAT_EXP_DIALOG_OPTIONS = options.token;
4459
- const provideMatExpDialogOptions = options.provide;
4460
- /** @internal */
4461
- const injectMatExpDialogOptions = options.inject;
4462
- /** @internal Context is supplied at open time, not inferred from consumer DOM. */
4463
- const MAT_EXP_DIALOG_CONTEXT = new InjectionToken('MatExpDialog context');
4464
-
4465
6065
  /** @internal Passive visual copy; never join application forms or activate embedded content. */
4466
6066
  function createDialogOriginSnapshot(source) {
4467
6067
  const document = source.ownerDocument;
@@ -4565,10 +6165,14 @@ function createDialogMotion(host, surface, content, backdrop, options, opened, c
4565
6165
  else
4566
6166
  element.setAttribute('style', value);
4567
6167
  };
6168
+ // Once shown, never re-hide the host to measure: a hidden subtree drops keyboard focus.
6169
+ let shown = false;
4568
6170
  const reset = () => {
4569
6171
  restore(host);
4570
6172
  restore(surface);
4571
6173
  restore(content);
6174
+ if (shown)
6175
+ host.style.visibility = 'visible';
4572
6176
  };
4573
6177
  const fullScreen = () => options.mode === 'adaptive' && compact.matches;
4574
6178
  const read = () => {
@@ -4737,6 +6341,7 @@ function createDialogMotion(host, surface, content, backdrop, options, opened, c
4737
6341
  host.style.visibility = 'visible';
4738
6342
  if (backdrop)
4739
6343
  backdrop.style.opacity = '1';
6344
+ shown = true;
4740
6345
  if (wasOpening)
4741
6346
  opened();
4742
6347
  };
@@ -4779,9 +6384,23 @@ function createDialogMotion(host, surface, content, backdrop, options, opened, c
4779
6384
  onComplete: finish,
4780
6385
  });
4781
6386
  };
6387
+ // While content drives its own size, the auto-sized surface already tracks it exactly.
6388
+ let following = false;
6389
+ let releasing = false;
4782
6390
  const retarget = () => {
4783
6391
  if (phase === 'destroyed')
4784
6392
  return;
6393
+ if ((following || releasing) && (phase === 'open' || phase === 'resizing')) {
6394
+ releasing = false;
6395
+ timeline?.kill();
6396
+ timeline = undefined;
6397
+ phase = 'open';
6398
+ if (backdrop)
6399
+ backdrop.style.opacity = '1';
6400
+ anchor = target = current = read();
6401
+ velocity = zeroVelocity();
6402
+ return;
6403
+ }
4785
6404
  const next = read();
4786
6405
  if (phase === 'open' &&
4787
6406
  ['x', 'y', 'width', 'height', 'radius'].every((key) => Math.abs(next[key] - current[key]) < 0.1)) {
@@ -4820,6 +6439,19 @@ function createDialogMotion(host, surface, content, backdrop, options, opened, c
4820
6439
  play();
4821
6440
  },
4822
6441
  retarget: schedule,
6442
+ follow(active) {
6443
+ if (following === active)
6444
+ return;
6445
+ following = active;
6446
+ // The final content frame may still be pending observation; treat it as followed too.
6447
+ releasing = !active;
6448
+ if (releasing)
6449
+ win.requestAnimationFrame(() => win.requestAnimationFrame(() => {
6450
+ releasing = false;
6451
+ }));
6452
+ if (active && phase === 'resizing')
6453
+ retarget();
6454
+ },
4823
6455
  destroy() {
4824
6456
  phase = 'destroyed';
4825
6457
  restoreSource();
@@ -4845,6 +6477,7 @@ class MatExpDialogContainer extends CdkDialogContainer {
4845
6477
  _motion;
4846
6478
  _closing = false;
4847
6479
  _destroyed = false;
6480
+ _following = false;
4848
6481
  _captureInitialFocus() {
4849
6482
  /* Capture after the spring completes. */
4850
6483
  }
@@ -4861,6 +6494,8 @@ class MatExpDialogContainer extends CdkDialogContainer {
4861
6494
  this.opened.complete();
4862
6495
  }
4863
6496
  }), () => this.exited.next());
6497
+ if (this._following)
6498
+ this._motion.follow(true);
4864
6499
  if (!this._closing &&
4865
6500
  this._config.autoFocus !== false &&
4866
6501
  !host.contains(host.ownerDocument.activeElement))
@@ -4882,6 +6517,11 @@ class MatExpDialogContainer extends CdkDialogContainer {
4882
6517
  this.exited.next();
4883
6518
  });
4884
6519
  }
6520
+ /** Follow content that animates its own size, without a competing surface spring. */
6521
+ followContentSize(active) {
6522
+ this._following = active;
6523
+ this._motion?.follow(active);
6524
+ }
4885
6525
  retarget() {
4886
6526
  this._motion?.retarget();
4887
6527
  }
@@ -4974,7 +6614,7 @@ class MatExpDialogLayout {
4974
6614
  <ng-container [ngTemplateOutlet]="actions.template" />
4975
6615
  </div>
4976
6616
  }
4977
- `, 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 });
4978
6618
  }
4979
6619
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogLayout, decorators: [{
4980
6620
  type: Component,
@@ -5020,7 +6660,7 @@ class MatExpDialogConfirmation {
5020
6660
  <button matButton [matExpDialogClose]="true">{{ _data.confirmLabel }}</button>
5021
6661
  </ng-template>
5022
6662
  </mat-exp-dialog-layout>
5023
- `, 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 });
5024
6664
  }
5025
6665
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogConfirmation, decorators: [{
5026
6666
  type: Component,
@@ -5154,6 +6794,12 @@ class MatExpDialog {
5154
6794
  return [
5155
6795
  { provide: MatExpDialogRef, useValue: ref },
5156
6796
  { provide: MAT_DIALOG_DATA, useValue: effective.data },
6797
+ {
6798
+ provide: MAT_EXP_DIALOG_SIZING,
6799
+ useValue: {
6800
+ follow: (active) => container.followContentSize(active),
6801
+ },
6802
+ },
5157
6803
  ];
5158
6804
  },
5159
6805
  });
@@ -5190,5 +6836,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
5190
6836
  * Generated bundle index. Do not edit.
5191
6837
  */
5192
6838
 
5193
- 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_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, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, 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 };
5194
6840
  //# sourceMappingURL=camaradesuk-m3e-angular.mjs.map