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