@camaradesuk/m3e-angular 0.1.0-alpha.7 → 0.2.0-alpha.10
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.
- package/README.md +6 -4
- package/fesm2022/camaradesuk-m3e-angular.mjs +3656 -214
- package/fesm2022/camaradesuk-m3e-angular.mjs.map +1 -1
- package/package.json +5 -4
- package/src/lib/styles/_index.scss +2 -0
- package/src/lib/styles/_mat-exp-styles.scss +2 -0
- package/src/lib/styles/components/all-buttons/_common-selectors.scss +7 -6
- package/src/lib/styles/components/all-buttons/button/_index.scss +15 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_common.scss +18 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_l.scss +25 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_m.scss +25 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_s.scss +25 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_xl.scss +25 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_xs.scss +30 -5
- package/src/lib/styles/components/all-buttons/button-group/_connected-l-corners.scss +2 -78
- package/src/lib/styles/components/all-buttons/button-group/_connected-m-corners.scss +2 -78
- package/src/lib/styles/components/all-buttons/button-group/_connected-s-corners.scss +2 -80
- package/src/lib/styles/components/all-buttons/button-group/_connected-xl-corners.scss +2 -78
- package/src/lib/styles/components/all-buttons/button-group/_connected-xs-corners.scss +2 -79
- package/src/lib/styles/components/all-buttons/button-group/_index.scss +6 -0
- package/src/lib/styles/components/all-buttons/fab/_index.scss +109 -0
- package/src/lib/styles/components/all-buttons/icon-button/_index.scss +29 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_s.scss +1 -1
- package/src/lib/styles/components/all-buttons/icon-button/configs/_xl.scss +2 -2
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_l.scss +1 -1
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_m.scss +1 -1
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_s.scss +2 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_xl.scss +3 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_xs.scss +1 -1
- package/src/lib/styles/components/all-buttons/split-button/_connected-l-corners.scss +15 -57
- package/src/lib/styles/components/all-buttons/split-button/_connected-m-corners.scss +15 -57
- package/src/lib/styles/components/all-buttons/split-button/_connected-s-corners.scss +15 -58
- package/src/lib/styles/components/all-buttons/split-button/_connected-xl-corners.scss +15 -57
- package/src/lib/styles/components/all-buttons/split-button/_connected-xs-corners.scss +15 -58
- package/src/lib/styles/components/all-buttons/split-button/_index.scss +16 -5
- package/src/lib/styles/components/all-buttons/utils/_connected-corners.scss +146 -0
- package/src/lib/styles/components/all-buttons/utils/_elevated-icon.scss +52 -0
- package/src/lib/styles/components/autocomplete/_index.scss +183 -0
- package/src/lib/styles/components/dialog/_index.scss +6 -1
- package/src/lib/styles/utils/mixins/_button-focus.scss +24 -0
- package/src/lib/styles/utils/mixins/_index.scss +1 -0
- package/src/styles/styles.css +2142 -324
- package/src/styles/styles.css.map +1 -1
- package/types/camaradesuk-m3e-angular.d.ts +935 -20
|
@@ -5,14 +5,17 @@ import { MatButtonAppearance } from '@angular/material/button';
|
|
|
5
5
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
6
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
7
|
import { MatMenu } from '@angular/material/menu';
|
|
8
|
+
import * as i1 from '@angular/material/badge';
|
|
8
9
|
import { CdkStep, CdkStepper, CdkStepHeader } from '@angular/cdk/stepper';
|
|
10
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
11
|
+
import { Menu } from '@angular/aria/menu';
|
|
12
|
+
import * as i1$1 from '@angular/material/core';
|
|
13
|
+
import { ConnectedPosition, GlobalPositionStrategy } from '@angular/cdk/overlay';
|
|
9
14
|
import { ComponentPortal, ComponentType } from '@angular/cdk/portal';
|
|
10
15
|
import { MatDialogConfig, MatDialogState, DialogPosition } from '@angular/material/dialog';
|
|
11
16
|
import * as rxjs from 'rxjs';
|
|
12
17
|
import { Subject } from 'rxjs';
|
|
13
18
|
import { CdkDialogContainer, DialogRef } from '@angular/cdk/dialog';
|
|
14
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
15
|
-
import { GlobalPositionStrategy } from '@angular/cdk/overlay';
|
|
16
19
|
|
|
17
20
|
type MatExpButtonSizeM = 'm';
|
|
18
21
|
type MatExpButtonSizeS = 's';
|
|
@@ -52,6 +55,8 @@ type MatExpButtonGroupAppearance = 'filled' | 'outlined' | 'tonal' | 'elevated';
|
|
|
52
55
|
type MatExpSplitButtonAppearance = 'filled' | 'elevated' | 'outlined' | 'tonal';
|
|
53
56
|
type MatExpFabMenuTriggerColor = 'primary' | 'secondary' | 'tertiary';
|
|
54
57
|
type MatExpFabMenuColor = MatExpFabMenuTriggerColor;
|
|
58
|
+
/** Material color role pairs for Expressive FABs. */
|
|
59
|
+
type MatExpFabColor = 'primary-container' | 'secondary-container' | 'tertiary-container' | 'primary' | 'secondary' | 'tertiary';
|
|
55
60
|
|
|
56
61
|
type MatExpButtonGroupVariantStandard = 'standard';
|
|
57
62
|
type MatExpButtonGroupVariantConnected = 'connected';
|
|
@@ -113,11 +118,17 @@ type MatExpListMedia = 'avatar' | 'image' | 'video';
|
|
|
113
118
|
type MatExpNavigationRailMode = 'standard' | 'modal';
|
|
114
119
|
/** Placement of destinations; the menu and FAB always remain at the top. */
|
|
115
120
|
type MatExpNavigationRailAlignment = 'top' | 'center';
|
|
121
|
+
/** Expanded row density. Compact is an opt-in extension outside the specification (ADR 0013). */
|
|
122
|
+
type MatExpNavigationRailDensity = 'default' | 'compact';
|
|
123
|
+
/** Collapsed presentation. Fixed-axis is an opt-in extension outside the specification (ADR 0013). */
|
|
124
|
+
type MatExpNavigationRailCollapsedLayout = 'stacked' | 'fixed-axis';
|
|
116
125
|
|
|
117
126
|
/** Compact confirmation or responsive task/form presentation. */
|
|
118
127
|
type MatExpDialogMode = 'alert' | 'adaptive';
|
|
119
128
|
/** Expressive spring motion respecting the OS preference, or no transition. */
|
|
120
129
|
type MatExpDialogMotion = 'system' | 'none';
|
|
130
|
+
/** Where an adaptive dialog's actions sit below 600px: the header row or a bottom bar. */
|
|
131
|
+
type MatExpDialogCompactActions = 'header' | 'footer';
|
|
121
132
|
/** Native options plus the presentation contract. Native data/results are unchanged. */
|
|
122
133
|
type MatExpDialogConfig<D = unknown> = Omit<MatDialogConfig<D>, 'role' | 'enterAnimationDuration' | 'exitAnimationDuration' | 'delayFocusTrap'> & {
|
|
123
134
|
/** Visible layout heading and fallback accessible name. Required and non-empty. */
|
|
@@ -129,6 +140,8 @@ type MatExpDialogConfig<D = unknown> = Omit<MatDialogConfig<D>, 'role' | 'enterA
|
|
|
129
140
|
} & ({
|
|
130
141
|
mode: 'alert';
|
|
131
142
|
origin?: never;
|
|
143
|
+
adaptiveWidth?: never;
|
|
144
|
+
compactActions?: never;
|
|
132
145
|
/** Explicitly choose urgent alert semantics or an ordinary confirmation. */
|
|
133
146
|
role: 'dialog' | 'alertdialog';
|
|
134
147
|
/** ID of the short confirmation message. Required for alert mode. */
|
|
@@ -137,6 +150,18 @@ type MatExpDialogConfig<D = unknown> = Omit<MatDialogConfig<D>, 'role' | 'enterA
|
|
|
137
150
|
mode: 'adaptive';
|
|
138
151
|
/** Optional visible source element for centered or full-screen adaptive transforms. */
|
|
139
152
|
origin?: HTMLElement;
|
|
153
|
+
/**
|
|
154
|
+
* Width of the centered dialog at 600px and above, as a CSS length or percentage, for example
|
|
155
|
+
* `'800px'`. It never exceeds the viewport minus 32px, and compact full-screen
|
|
156
|
+
* dialogs are unaffected. Unset, the width is 560px, or the stepper's width for a dialog
|
|
157
|
+
* containing `mat-exp-stepper`. @default undefined
|
|
158
|
+
*/
|
|
159
|
+
adaptiveWidth?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Below 600px, keep the actions in the header row beside the heading, or in a bottom bar.
|
|
162
|
+
* Use `'footer'` for several actions or long labels. @default 'header'
|
|
163
|
+
*/
|
|
164
|
+
compactActions?: MatExpDialogCompactActions;
|
|
140
165
|
/** Task/forms are ordinary dialogs, never implicitly urgent. @default 'dialog' */
|
|
141
166
|
role?: 'dialog';
|
|
142
167
|
});
|
|
@@ -163,6 +188,43 @@ type MatExpStepperMotion = 'system' | 'none';
|
|
|
163
188
|
/** Visual and announced state of a step header. */
|
|
164
189
|
type MatExpStepState = 'pending' | 'active' | 'done' | 'error';
|
|
165
190
|
|
|
191
|
+
/** Surface color mapping. */
|
|
192
|
+
type MatExpMenuColor = 'standard' | 'vibrant';
|
|
193
|
+
/** Explicit web density; zero preserves the default 48px target. */
|
|
194
|
+
type MatExpMenuDensity = 0 | -1 | -2 | -3;
|
|
195
|
+
/** Separation between related groups. */
|
|
196
|
+
type MatExpMenuSeparation = 'divider' | 'gap';
|
|
197
|
+
/** An action or selectable option. IDs must be unique throughout one menu tree. */
|
|
198
|
+
interface MatExpMenuItem {
|
|
199
|
+
readonly id: string;
|
|
200
|
+
readonly label: string;
|
|
201
|
+
readonly type?: 'action' | 'checkbox' | 'radio';
|
|
202
|
+
readonly disabled?: boolean;
|
|
203
|
+
readonly icon?: string;
|
|
204
|
+
readonly trailingIcon?: string;
|
|
205
|
+
readonly supportingText?: string;
|
|
206
|
+
readonly trailingText?: string;
|
|
207
|
+
readonly badge?: string;
|
|
208
|
+
/** Radio items with the same group are mutually exclusive. @default '' */
|
|
209
|
+
readonly radioGroup?: string;
|
|
210
|
+
readonly children?: readonly MatExpMenuEntry[];
|
|
211
|
+
}
|
|
212
|
+
/** A labelled group of related menu items. */
|
|
213
|
+
interface MatExpMenuGroup {
|
|
214
|
+
readonly type: 'group';
|
|
215
|
+
readonly id: string;
|
|
216
|
+
readonly label?: string;
|
|
217
|
+
readonly items: readonly MatExpMenuItem[];
|
|
218
|
+
}
|
|
219
|
+
type MatExpMenuEntry = MatExpMenuItem | MatExpMenuGroup;
|
|
220
|
+
/** Public item-template context. Keep projected content noninteractive. */
|
|
221
|
+
interface MatExpMenuItemContext {
|
|
222
|
+
$implicit: MatExpMenuItem;
|
|
223
|
+
selected: boolean;
|
|
224
|
+
}
|
|
225
|
+
/** How a menu was dismissed. */
|
|
226
|
+
type MatExpMenuCloseReason = 'selection' | 'escape' | 'outside' | 'tab' | 'programmatic';
|
|
227
|
+
|
|
166
228
|
interface MatExpSelectableButton {
|
|
167
229
|
toggle: ModelSignal<MatExpButtonToggle | undefined>;
|
|
168
230
|
value: ModelSignal<unknown>;
|
|
@@ -194,6 +256,8 @@ declare class MatExpButton implements MatExpSelectableButton {
|
|
|
194
256
|
readonly _hostElement: HTMLElement;
|
|
195
257
|
/** @default 's' */
|
|
196
258
|
readonly size: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpButtonSize | undefined>;
|
|
259
|
+
/** FAB color role pair. Applies only on a Material FAB host. */
|
|
260
|
+
readonly fabColor: _angular_core.InputSignal<MatExpFabColor>;
|
|
197
261
|
/** @default 'round' */
|
|
198
262
|
readonly shape: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpButtonShape | undefined>;
|
|
199
263
|
/**
|
|
@@ -223,22 +287,29 @@ declare class MatExpButton implements MatExpSelectableButton {
|
|
|
223
287
|
/**
|
|
224
288
|
* @internal
|
|
225
289
|
*/
|
|
226
|
-
|
|
290
|
+
get matExpButtonClass(): string;
|
|
291
|
+
/** Whether this directive decorates a native Material FAB. */
|
|
292
|
+
readonly isFab: boolean;
|
|
227
293
|
/**
|
|
228
294
|
* @internal
|
|
229
295
|
*/
|
|
230
296
|
readonly state: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonState | undefined>;
|
|
231
|
-
|
|
297
|
+
/** Regular-button appearance. FAB presentation is controlled by fabColor. */
|
|
298
|
+
get appearance(): MatButtonAppearance;
|
|
232
299
|
set appearance(appearance: MatButtonAppearance);
|
|
233
300
|
get disabled(): boolean;
|
|
234
301
|
set disabled(disabled: boolean | undefined);
|
|
235
302
|
private readonly matButton;
|
|
303
|
+
private readonly matFab;
|
|
304
|
+
private readonly materialHost;
|
|
305
|
+
constructor();
|
|
236
306
|
private readonly buttonGroup;
|
|
237
307
|
_onButtonClick(): void;
|
|
238
308
|
private readonly matMenu;
|
|
309
|
+
private readonly expressiveMenu;
|
|
239
310
|
get isMenuOpen(): boolean;
|
|
240
311
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpButton, never>;
|
|
241
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpButton, "[matExpButton]", ["matExpButton"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "toggle": { "alias": "toggle"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "shape": "shapeChange"; "toggle": "toggleChange"; "value": "valueChange"; }, never, never, true, never>;
|
|
312
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpButton, "[matExpButton]", ["matExpButton"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; "fabColor": { "alias": "fabColor"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "toggle": { "alias": "toggle"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "shape": "shapeChange"; "toggle": "toggleChange"; "value": "valueChange"; }, never, never, true, never>;
|
|
242
313
|
}
|
|
243
314
|
|
|
244
315
|
interface MatExpButtonOptions {
|
|
@@ -249,6 +320,8 @@ interface MatExpButtonOptions {
|
|
|
249
320
|
*
|
|
250
321
|
*/
|
|
251
322
|
readonly size?: MatExpButtonSize;
|
|
323
|
+
/** FAB theme role pair. Default: primary-container. */
|
|
324
|
+
readonly fabColor?: MatExpFabColor;
|
|
252
325
|
/**
|
|
253
326
|
* The shape of the button.
|
|
254
327
|
*
|
|
@@ -330,6 +403,8 @@ declare class MatExpIconButton implements MatExpSelectableButton {
|
|
|
330
403
|
private readonly buttonGroup;
|
|
331
404
|
_onButtonClick(): void;
|
|
332
405
|
private readonly matMenu;
|
|
406
|
+
/** @internal Reactive native/Expressive menu state for composed presentation. */
|
|
407
|
+
readonly _isMenuOpen: _angular_core.Signal<boolean>;
|
|
333
408
|
get isMenuOpen(): boolean;
|
|
334
409
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpIconButton, never>;
|
|
335
410
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpIconButton, "[matExpIconButton]", ["matExpIconButton"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "toggle": { "alias": "toggle"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "shape": "shapeChange"; "toggle": "toggleChange"; "value": "valueChange"; }, never, never, true, never>;
|
|
@@ -402,6 +477,8 @@ declare class MatExpButtonGroup implements ControlValueAccessor {
|
|
|
402
477
|
readonly shape: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonShape | undefined>;
|
|
403
478
|
/** @default 'single-select' */
|
|
404
479
|
readonly selection: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonGroupSelection | undefined>;
|
|
480
|
+
/** Prevents user interaction from clearing the last selected button. */
|
|
481
|
+
readonly selectionRequired: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
405
482
|
/** @default 'standard' */
|
|
406
483
|
readonly variant: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonGroupVariant | undefined>;
|
|
407
484
|
readonly appearance: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonGroupAppearance | undefined>;
|
|
@@ -468,6 +545,8 @@ declare class MatExpButtonGroup implements ControlValueAccessor {
|
|
|
468
545
|
* still plays the full bounce.
|
|
469
546
|
*/
|
|
470
547
|
private _setupBounceInteractions;
|
|
548
|
+
/** Arrow navigation preserves native Tab order and uses manual activation. @internal */
|
|
549
|
+
_onGroupKeydown(event: KeyboardEvent): void;
|
|
471
550
|
writeValue(value: unknown): void;
|
|
472
551
|
registerOnChange(fn: (value: unknown) => void): void;
|
|
473
552
|
registerOnTouched(fn: () => void): void;
|
|
@@ -489,7 +568,7 @@ declare class MatExpButtonGroup implements ControlValueAccessor {
|
|
|
489
568
|
/** Derives `_value` from the current selection model state. */
|
|
490
569
|
private _updateValueFromModel;
|
|
491
570
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpButtonGroup, never>;
|
|
492
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpButtonGroup, "mat-exp-button-group", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disableBounce": { "alias": "disableBounce"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "disabled": "disabledChange"; "selectionChange": "selectionChange"; }, ["_matExpButtons", "_matExpIconButtons"], ["*"], true, never>;
|
|
571
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpButtonGroup, "mat-exp-button-group", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "selectionRequired": { "alias": "selectionRequired"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disableBounce": { "alias": "disableBounce"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "disabled": "disabledChange"; "selectionChange": "selectionChange"; }, ["_matExpButtons", "_matExpIconButtons"], ["*"], true, never>;
|
|
493
572
|
}
|
|
494
573
|
|
|
495
574
|
interface MatExpButtonGroupOptions {
|
|
@@ -516,6 +595,8 @@ interface MatExpButtonGroupOptions {
|
|
|
516
595
|
* The selection of the button group.
|
|
517
596
|
*/
|
|
518
597
|
readonly selection?: MatExpButtonGroupSelection;
|
|
598
|
+
/** Prevent users from clearing the last selected item. Default: false. */
|
|
599
|
+
readonly selectionRequired?: boolean;
|
|
519
600
|
/**
|
|
520
601
|
* The variant of the button group.
|
|
521
602
|
*
|
|
@@ -557,6 +638,12 @@ declare class MatExpSplitButton {
|
|
|
557
638
|
readonly size: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpButtonSize | undefined>;
|
|
558
639
|
/** @default 'tonal' */
|
|
559
640
|
readonly appearance: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpSplitButtonAppearance | undefined>;
|
|
641
|
+
/** Rotate the menu chevron inward; opt out when application content owns its rotation. */
|
|
642
|
+
readonly rotateIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
643
|
+
private readonly _media;
|
|
644
|
+
private readonly _disabledMotion;
|
|
645
|
+
private _motion?;
|
|
646
|
+
private _motionElement?;
|
|
560
647
|
/**
|
|
561
648
|
* @internal
|
|
562
649
|
*/
|
|
@@ -572,10 +659,12 @@ declare class MatExpSplitButton {
|
|
|
572
659
|
readonly _allButtonGroupChildren: _angular_core.Signal<_camaradesuk_m3e_angular.ButtonGroupChild[]>;
|
|
573
660
|
constructor();
|
|
574
661
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpSplitButton, never>;
|
|
575
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpSplitButton, "mat-exp-split-button", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "appearance": "appearanceChange"; }, ["_matExpButtons", "_matExpIconButtons"], ["*"], true, never>;
|
|
662
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpSplitButton, "mat-exp-split-button", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "rotateIcon": { "alias": "rotateIcon"; "required": false; "isSignal": true; }; }, { "size": "sizeChange"; "appearance": "appearanceChange"; }, ["_matExpButtons", "_matExpIconButtons"], ["*"], true, never>;
|
|
576
663
|
}
|
|
577
664
|
|
|
578
665
|
interface MatExpSplitButtonOptions {
|
|
666
|
+
/** Rotate the menu chevron inward. Default: true. */
|
|
667
|
+
readonly rotateIcon?: boolean;
|
|
579
668
|
/**
|
|
580
669
|
* The size of the button.
|
|
581
670
|
*
|
|
@@ -1368,17 +1457,71 @@ declare class MatExpSearchResult {
|
|
|
1368
1457
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpSearchResult, "button[matExpSearchResult], a[matExpSearchResult]", ["matExpSearchResult"], {}, {}, never, never, true, never>;
|
|
1369
1458
|
}
|
|
1370
1459
|
|
|
1460
|
+
/**
|
|
1461
|
+
* @internal What a group's child items need from the group. A token, not the class, keeps the
|
|
1462
|
+
* group, item and rail files free of import cycles.
|
|
1463
|
+
*/
|
|
1464
|
+
interface MatExpNavigationRailTreeGroup {
|
|
1465
|
+
/** Register a child item; returns the unregister function. */
|
|
1466
|
+
_registerItem(item: {
|
|
1467
|
+
readonly selected: Signal<boolean>;
|
|
1468
|
+
}): () => void;
|
|
1469
|
+
/** Whether the group currently shows its children. */
|
|
1470
|
+
readonly _expanded: Signal<boolean>;
|
|
1471
|
+
/** Whether the group's row is shown: false inside a closed outer group (unsupported). */
|
|
1472
|
+
readonly _shown: Signal<boolean>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Whether the group sits in the footer. Its children use this: they are not in the document
|
|
1475
|
+
* while the group is closed.
|
|
1476
|
+
*/
|
|
1477
|
+
readonly _inFooter: Signal<boolean>;
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* @internal A tree row (destination or group row), registered with the rail in creation order
|
|
1481
|
+
* (document order for static templates; rows that `@if`/`@for` insert later register last). The
|
|
1482
|
+
* rail computes the pre-rendered Tab stop from these signals, without the DOM, and uses them to
|
|
1483
|
+
* tell when the browser Tab stop needs recomputing.
|
|
1484
|
+
*/
|
|
1485
|
+
interface MatExpNavigationRailTreeRow {
|
|
1486
|
+
/** A tree row (not a footer row) that is shown and enabled: it can be the Tab stop. */
|
|
1487
|
+
readonly _rovingCandidate: Signal<boolean>;
|
|
1488
|
+
/** `'page'` for the selected destination, `'true'` for a closed group holding it. */
|
|
1489
|
+
readonly _currentState: Signal<'page' | 'true' | null>;
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* @internal What the rail's keyboard handling needs from a group. Groups register themselves
|
|
1493
|
+
* with the rail, so the rail never imports the group class.
|
|
1494
|
+
*/
|
|
1495
|
+
interface MatExpNavigationRailTreeNode extends MatExpNavigationRailTreeRow {
|
|
1496
|
+
/** The group's treeitem row. */
|
|
1497
|
+
_rowElement(): HTMLElement;
|
|
1498
|
+
/** The rendered `role="group"` children wrapper, while the group shows its children. */
|
|
1499
|
+
_childrenElement(): HTMLElement | undefined;
|
|
1500
|
+
/** Whether the group currently shows its children. */
|
|
1501
|
+
readonly _expanded: Signal<boolean>;
|
|
1502
|
+
/** Whether the group sits in the footer, where groups are unsupported and stay out of the tree. */
|
|
1503
|
+
readonly _inFooter: Signal<boolean>;
|
|
1504
|
+
/** Keyboard "open": opens the group (and expands a stacked collapsed rail). */
|
|
1505
|
+
_openFromKeyboard(): void;
|
|
1506
|
+
/** Close the group, moving focus to its row first if a child had it. */
|
|
1507
|
+
_close(): void;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1371
1510
|
/**
|
|
1372
1511
|
* Expressive navigation layout. Project destinations directly, a menu/FAB in
|
|
1373
|
-
* `[matExpNavigationRailHeader]`,
|
|
1512
|
+
* `[matExpNavigationRailHeader]`, optional pinned controls in `[matExpNavigationRailFooter]`,
|
|
1513
|
+
* and page content in `[matExpNavigationRailContent]`.
|
|
1374
1514
|
*/
|
|
1375
1515
|
declare class MatExpNavigationRail {
|
|
1376
1516
|
private readonly _options;
|
|
1377
1517
|
private readonly _document;
|
|
1378
1518
|
private readonly _checker;
|
|
1519
|
+
private readonly _modality;
|
|
1379
1520
|
private readonly _panel;
|
|
1380
1521
|
private readonly _drawerElement;
|
|
1381
1522
|
private readonly _contentElement;
|
|
1523
|
+
private readonly _destinations;
|
|
1524
|
+
private readonly _footer;
|
|
1382
1525
|
private _motion?;
|
|
1383
1526
|
private _previousFocus;
|
|
1384
1527
|
private _lastExternalFocus;
|
|
@@ -1386,6 +1529,46 @@ declare class MatExpNavigationRail {
|
|
|
1386
1529
|
private _wasExpanded;
|
|
1387
1530
|
private _wasModal;
|
|
1388
1531
|
private _warnedMisprojectedContent;
|
|
1532
|
+
private _focusOnModalOpen;
|
|
1533
|
+
private _wasPeeking;
|
|
1534
|
+
private _peekOpenTimer;
|
|
1535
|
+
private _peekCloseTimer;
|
|
1536
|
+
/**
|
|
1537
|
+
* Where a mouse or pen pointer entered the drawer, until it first really moves there. Hover
|
|
1538
|
+
* intent starts on that movement, so a rail that scrolls or resizes under a still pointer never
|
|
1539
|
+
* peeks, and each entry opens at most one hover peek (after Escape, a new peek needs a new entry).
|
|
1540
|
+
*/
|
|
1541
|
+
private _hoverEntry;
|
|
1542
|
+
/**
|
|
1543
|
+
* The mouse or pen pointer's position at its current and previous moves anywhere in the
|
|
1544
|
+
* document, recorded in the capture phase so content that stops propagation cannot hide them.
|
|
1545
|
+
* NaN until known.
|
|
1546
|
+
*/
|
|
1547
|
+
private _pointerX;
|
|
1548
|
+
private _pointerY;
|
|
1549
|
+
private _previousPointerX;
|
|
1550
|
+
private _previousPointerY;
|
|
1551
|
+
private readonly _zone;
|
|
1552
|
+
/** The last element focused inside the panel, for a peek that hides it as it ends. */
|
|
1553
|
+
private _peekFocus;
|
|
1554
|
+
private _rescuingPeekFocus;
|
|
1555
|
+
private readonly _groups;
|
|
1556
|
+
/**
|
|
1557
|
+
* Destinations and group rows, in creation order. That matches document order for static
|
|
1558
|
+
* templates, but not for rows `@if` or `@for` insert later, which register last. Only the
|
|
1559
|
+
* Tab stop used before the browser first measures the tree depends on this order.
|
|
1560
|
+
*/
|
|
1561
|
+
private readonly _rows;
|
|
1562
|
+
private _warnedFooterGroup;
|
|
1563
|
+
private _warnedNestedGroup;
|
|
1564
|
+
/** The tab-stop state the browser Tab stop was last computed from. */
|
|
1565
|
+
private _syncedTabStopState;
|
|
1566
|
+
/** Focus moved into, within or out of the panel since the Tab stop was last computed. */
|
|
1567
|
+
private _focusMoved;
|
|
1568
|
+
/** Whether the browser has computed the Tab stop from the DOM at least once. */
|
|
1569
|
+
private readonly _tabStopSynced;
|
|
1570
|
+
private _typeahead;
|
|
1571
|
+
private _typeaheadAt;
|
|
1389
1572
|
/** Whether the rail is expanded; supports `[(expanded)]`. @default false */
|
|
1390
1573
|
readonly expanded: _angular_core.ModelSignal<boolean>;
|
|
1391
1574
|
/** How the expanded rail relates to content. @default 'standard' */
|
|
@@ -1396,55 +1579,274 @@ declare class MatExpNavigationRail {
|
|
|
1396
1579
|
readonly alignment: _angular_core.InputSignal<MatExpNavigationRailAlignment>;
|
|
1397
1580
|
/** Accessible name of the navigation region and modal. @default 'Primary navigation' */
|
|
1398
1581
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
1582
|
+
/** Expanded row density; `'compact'` gives 48px rows and leaves the collapsed rail as is. @default 'default' */
|
|
1583
|
+
readonly density: _angular_core.InputSignal<MatExpNavigationRailDensity>;
|
|
1584
|
+
/**
|
|
1585
|
+
* Collapsed presentation. `'fixed-axis'` keeps the expanded rows in place and clips them to the
|
|
1586
|
+
* collapsed width, with icons on one axis and labels hidden. @default 'stacked'
|
|
1587
|
+
*/
|
|
1588
|
+
readonly collapsedLayout: _angular_core.InputSignal<MatExpNavigationRailCollapsedLayout>;
|
|
1589
|
+
/**
|
|
1590
|
+
* Peek: while collapsed, hovering the rail (a mouse or pen moving over it, then 120ms) or moving
|
|
1591
|
+
* keyboard focus into it shows the expanded rail as a non-modal overlay; leaving it (200ms grace
|
|
1592
|
+
* for the pointer), focus leaving it or Escape ends the peek. `expanded` does not change. Has no
|
|
1593
|
+
* effect with `hideOnCollapse`. @default false
|
|
1594
|
+
*/
|
|
1595
|
+
readonly peek: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1596
|
+
/** Whether peek applies now: enabled, collapsed and not hidden. */
|
|
1597
|
+
private readonly _canPeek;
|
|
1598
|
+
/** A peek request; any change in whether peek applies (pinning, hiding) drops it. */
|
|
1599
|
+
private readonly _peekRequested;
|
|
1600
|
+
/** Whether the collapsed rail is showing its expanded presentation as a peek overlay. */
|
|
1601
|
+
readonly peeking: Signal<boolean>;
|
|
1602
|
+
/**
|
|
1603
|
+
* Whether the rail presents its expanded layout: expanded or peeking. Bind a header FAB's
|
|
1604
|
+
* `extended` to this rather than to `expanded()`.
|
|
1605
|
+
*/
|
|
1606
|
+
readonly presentedExpanded: Signal<boolean>;
|
|
1399
1607
|
/** @internal */
|
|
1400
|
-
readonly _modal:
|
|
1608
|
+
readonly _modal: Signal<boolean>;
|
|
1609
|
+
/**
|
|
1610
|
+
* @internal Any `mat-exp-navigation-rail-group` among the destinations turns them into a tree.
|
|
1611
|
+
* Footer groups are unsupported and never do.
|
|
1612
|
+
*/
|
|
1613
|
+
readonly _tree: Signal<boolean>;
|
|
1614
|
+
/** @internal The tree's single Tab stop (roving tabindex); null in list mode. */
|
|
1615
|
+
readonly _tabStop: _angular_core.WritableSignal<HTMLElement | null>;
|
|
1616
|
+
/**
|
|
1617
|
+
* Everything the Tab stop depends on apart from focus: a new object whenever a row registers
|
|
1618
|
+
* or unregisters, or a row's selection, open, disabled or hidden state, or the expansion,
|
|
1619
|
+
* changes. The browser skips its DOM recomputation while this stays the same object.
|
|
1620
|
+
*/
|
|
1621
|
+
private readonly _tabStopState;
|
|
1622
|
+
/**
|
|
1623
|
+
* The Tab stop before the browser has measured the tree, as in server-rendered HTML: the
|
|
1624
|
+
* selected destination, else the closed group holding it, else the first enabled row. It is
|
|
1625
|
+
* computed from the registered rows, with no DOM queries.
|
|
1626
|
+
*/
|
|
1627
|
+
private readonly _initialTabStop;
|
|
1401
1628
|
constructor();
|
|
1402
|
-
/** Expand from a menu button. */
|
|
1629
|
+
/** Expand from a menu button. A peeking rail is pinned open. */
|
|
1403
1630
|
open(): void;
|
|
1404
1631
|
/** Return to the collapsed or hidden presentation. */
|
|
1405
1632
|
close(): void;
|
|
1406
1633
|
/** Toggle expansion from a menu button. */
|
|
1407
1634
|
toggle(): void;
|
|
1408
1635
|
/** @internal */
|
|
1636
|
+
_registerGroup(group: MatExpNavigationRailTreeNode): () => void;
|
|
1637
|
+
/**
|
|
1638
|
+
* @internal Destinations and group rows register in creation order: document order for static
|
|
1639
|
+
* templates, but rows inserted later (`@if`, `@for`) register last. Only the pre-measurement
|
|
1640
|
+
* Tab stop depends on the order.
|
|
1641
|
+
*/
|
|
1642
|
+
_registerRow(row: MatExpNavigationRailTreeRow): () => void;
|
|
1643
|
+
/**
|
|
1644
|
+
* @internal Whether a tree row is the Tab stop: the browser's DOM-computed stop once it has
|
|
1645
|
+
* one, before that (and on the server) the stop computed from the registered rows.
|
|
1646
|
+
*/
|
|
1647
|
+
_isTabStop(row: MatExpNavigationRailTreeRow, element: HTMLElement | undefined): boolean;
|
|
1648
|
+
/** @internal Dev-mode warning, once per rail, for a group where groups are unsupported. */
|
|
1649
|
+
_warnGroupPlacement(placement: 'footer' | 'nested'): void;
|
|
1650
|
+
/** @internal Expand on behalf of a group row, which keeps focus if the rail turns modal. */
|
|
1651
|
+
_expandFrom(element: HTMLElement): void;
|
|
1652
|
+
/** @internal */
|
|
1409
1653
|
_dismiss(): void;
|
|
1410
1654
|
/** @internal */
|
|
1411
1655
|
_onFocusIn(event: FocusEvent): void;
|
|
1412
1656
|
/** @internal */
|
|
1413
1657
|
_onWindowBlur(): void;
|
|
1414
1658
|
/** @internal */
|
|
1415
|
-
_onFocusOut(): void;
|
|
1659
|
+
_onFocusOut(event: FocusEvent): void;
|
|
1660
|
+
/**
|
|
1661
|
+
* @internal Mouse or pen hover opens a peek after a short intent delay, counted from the
|
|
1662
|
+
* pointer's first movement over the rail. Touch never peeks.
|
|
1663
|
+
*/
|
|
1664
|
+
_onPointerEnter(event: PointerEvent): void;
|
|
1665
|
+
private _onPointerMove;
|
|
1666
|
+
/** @internal */
|
|
1667
|
+
_onPointerLeave(event: PointerEvent): void;
|
|
1416
1668
|
/** @internal */
|
|
1417
1669
|
_onKeydown(event: KeyboardEvent): void;
|
|
1670
|
+
/** Visible, enabled treeitems in document order. */
|
|
1671
|
+
private _treeItems;
|
|
1672
|
+
/**
|
|
1673
|
+
* One Tab stop for the tree: the focused row while focus is inside; otherwise the selected
|
|
1674
|
+
* leaf, else the closed group holding it, else the first enabled row.
|
|
1675
|
+
*/
|
|
1676
|
+
private _syncTabStop;
|
|
1677
|
+
/** APG navigation treeview keys; footer destinations keep their own list among themselves. */
|
|
1678
|
+
private _onTreeKeydown;
|
|
1679
|
+
/** A printable character other than Space, which activates. */
|
|
1680
|
+
private _isTypeaheadKey;
|
|
1681
|
+
/**
|
|
1682
|
+
* Typeahead (APG navigation treeview, optional): focus the next visible enabled row whose label
|
|
1683
|
+
* starts with the typed characters, wrapping. Characters within 500ms build a prefix; repeating
|
|
1684
|
+
* one character cycles through the rows starting with it.
|
|
1685
|
+
*/
|
|
1686
|
+
private _onTypeahead;
|
|
1687
|
+
private _onFooterKeydown;
|
|
1688
|
+
/**
|
|
1689
|
+
* @internal Escape dismisses a peek from anywhere (WCAG 1.4.13, dismissible): a hover peek can
|
|
1690
|
+
* cover page content while focus stays outside the rail. Inside the rail, `_onKeydown` handles
|
|
1691
|
+
* Escape first and stops it.
|
|
1692
|
+
*/
|
|
1693
|
+
_onDocumentEscape(event: Event): void;
|
|
1694
|
+
/**
|
|
1695
|
+
* Whether a mouse or pen pointer is over the drawer now. Read live from `:hover`, which the
|
|
1696
|
+
* browser keeps current when the drawer resizes under a still pointer (a peek ending), where no
|
|
1697
|
+
* `pointerleave` arrives.
|
|
1698
|
+
*/
|
|
1699
|
+
private _pointerOverRail;
|
|
1700
|
+
private _endPeek;
|
|
1701
|
+
private _clearPeekTimers;
|
|
1702
|
+
/**
|
|
1703
|
+
* A peek ending never moves focus, unless it hid the focused destination (an `expandedOnly`
|
|
1704
|
+
* item): keep focus in the rail rather than losing it to the document. Tree groups move focus
|
|
1705
|
+
* from a hidden child to their own row.
|
|
1706
|
+
*/
|
|
1707
|
+
private _keepFocusAfterPeek;
|
|
1418
1708
|
private _restoreFocus;
|
|
1419
1709
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpNavigationRail, never>;
|
|
1420
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRail, "mat-exp-navigation-rail", ["matExpNavigationRail"], { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "hideOnCollapse": { "alias": "hideOnCollapse"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[matExpNavigationRailHeader]", "*", "[matExpNavigationRailContent]"], true, never>;
|
|
1710
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRail, "mat-exp-navigation-rail", ["matExpNavigationRail"], { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "hideOnCollapse": { "alias": "hideOnCollapse"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "collapsedLayout": { "alias": "collapsedLayout"; "required": false; "isSignal": true; }; "peek": { "alias": "peek"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[matExpNavigationRailHeader]", "*", "[matExpNavigationRailFooter]", "[matExpNavigationRailContent]"], true, never>;
|
|
1421
1711
|
}
|
|
1422
1712
|
|
|
1423
|
-
/**
|
|
1424
|
-
|
|
1713
|
+
/**
|
|
1714
|
+
* A native link or button destination. Selection remains owned by the application's route.
|
|
1715
|
+
* Badges are Angular Material's `MatBadge`: `badge` (content; null hides it), `badgeDescription`
|
|
1716
|
+
* (announced as the destination's description), `badgeSize` (`'small'` is the dot) and
|
|
1717
|
+
* `badgeHidden`. The rail places the badge on the pill when collapsed and after the label when
|
|
1718
|
+
* expanded. `badgeDot` is the dot preset.
|
|
1719
|
+
*/
|
|
1720
|
+
declare class MatExpNavigationRailItem implements MatExpNavigationRailTreeRow, DoCheck {
|
|
1425
1721
|
private readonly _rail;
|
|
1722
|
+
private readonly _section;
|
|
1723
|
+
private readonly _badge;
|
|
1724
|
+
/** Consumer-bound `badge`/`badgeSize`, remembered while `badgeDot` overrides them. */
|
|
1725
|
+
private _boundContent;
|
|
1726
|
+
private _boundSize;
|
|
1727
|
+
/** @internal The tree group this item is a child row of, if any. */
|
|
1728
|
+
readonly _group: MatExpNavigationRailTreeGroup | null;
|
|
1426
1729
|
/** @internal */
|
|
1427
1730
|
readonly _element: any;
|
|
1428
1731
|
/** @internal */
|
|
1429
1732
|
readonly _isButton: boolean;
|
|
1430
1733
|
/** Mark the current destination, usually from RouterLinkActive. @default false */
|
|
1431
1734
|
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1735
|
+
/** What the badge means, announced as the destination's description while the badge shows. @default '' */
|
|
1736
|
+
readonly badgeDescription: _angular_core.InputSignal<string>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Show the badge as a dot (Material's small badge) without content. Takes precedence over
|
|
1739
|
+
* `badge` and `badgeSize` while true. @default false
|
|
1740
|
+
*/
|
|
1741
|
+
readonly badgeDot: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1432
1742
|
/** Skip a temporarily unavailable destination. @default false */
|
|
1433
1743
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1434
1744
|
/** Reveal a secondary destination only in the expanded rail. @default false */
|
|
1435
1745
|
readonly expandedOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1436
|
-
/**
|
|
1437
|
-
readonly
|
|
1746
|
+
/** Use the 60px tall row in a compact rail, for two-line labels. No effect at default density. @default false */
|
|
1747
|
+
readonly tall: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1438
1748
|
/** @internal */
|
|
1439
1749
|
readonly _hidden: _angular_core.Signal<boolean>;
|
|
1750
|
+
/**
|
|
1751
|
+
* @internal Footer destinations stay outside the tree. Checked when tree mode applies, during
|
|
1752
|
+
* binding, when items created by `@for`/`@if` are already in the document.
|
|
1753
|
+
*/
|
|
1754
|
+
readonly _treeItem: _angular_core.Signal<boolean>;
|
|
1755
|
+
/** @internal */
|
|
1756
|
+
readonly _rovingCandidate: _angular_core.Signal<boolean>;
|
|
1757
|
+
/** @internal */
|
|
1758
|
+
readonly _currentState: _angular_core.Signal<"page" | null>;
|
|
1759
|
+
/** @internal Tree rows share one roving Tab stop; list items keep native Tab order. */
|
|
1760
|
+
readonly _tabIndex: _angular_core.Signal<0 | -1 | null>;
|
|
1440
1761
|
constructor();
|
|
1762
|
+
/**
|
|
1763
|
+
* `badge`/`badgeSize` are aliased MatBadge inputs that Angular writes straight onto it, so a
|
|
1764
|
+
* signal effect cannot see them. Run after every input update: anything other than our own
|
|
1765
|
+
* override is the consumer's value, which is remembered and restored when the dot turns off.
|
|
1766
|
+
*/
|
|
1767
|
+
ngDoCheck(): void;
|
|
1441
1768
|
private readonly _indicator;
|
|
1769
|
+
private readonly _container;
|
|
1442
1770
|
/** @internal */
|
|
1443
1771
|
_onClick(event: Event): void;
|
|
1444
1772
|
/** @internal */
|
|
1445
1773
|
_onSpace(event: Event): void;
|
|
1446
1774
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpNavigationRailItem, never>;
|
|
1447
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRailItem, "a[matExpNavigationRailItem], button[matExpNavigationRailItem]", ["matExpNavigationRailItem"], { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expandedOnly": { "alias": "expandedOnly"; "required": false; "isSignal": true; }; "
|
|
1775
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRailItem, "a[matExpNavigationRailItem], button[matExpNavigationRailItem]", ["matExpNavigationRailItem"], { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "badgeDescription": { "alias": "badgeDescription"; "required": false; "isSignal": true; }; "badgeDot": { "alias": "badgeDot"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expandedOnly": { "alias": "expandedOnly"; "required": false; "isSignal": true; }; "tall": { "alias": "tall"; "required": false; "isSignal": true; }; }, {}, never, ["[matExpNavigationRailIcon]", "*"], true, [{ directive: typeof i1.MatBadge; inputs: { "matBadge": "badge"; "matBadgeSize": "badgeSize"; "matBadgeHidden": "badgeHidden"; }; outputs: {}; }]>;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* Opt-in tree destinations (ADR 0013): a group row that opens and closes its child
|
|
1780
|
+
* destinations. Any group turns the rail's destinations into a tree with one Tab stop and
|
|
1781
|
+
* arrow-key navigation; a rail without groups keeps its list behaviour. Project an icon with
|
|
1782
|
+
* `matExpNavigationRailIcon` and the children as `matExpNavigationRailItem`s. The group never
|
|
1783
|
+
* navigates; it opens itself when one of its children becomes selected. The tree has two
|
|
1784
|
+
* levels: groups are not supported inside other groups or in `[matExpNavigationRailFooter]`.
|
|
1785
|
+
*/
|
|
1786
|
+
declare class MatExpNavigationRailGroup implements MatExpNavigationRailTreeGroup, MatExpNavigationRailTreeNode {
|
|
1787
|
+
private readonly _rail;
|
|
1788
|
+
private readonly _document;
|
|
1789
|
+
private readonly _host;
|
|
1790
|
+
private readonly _section;
|
|
1791
|
+
/** An outer group: nesting is unsupported (the tree has two levels). */
|
|
1792
|
+
private readonly _parent;
|
|
1793
|
+
/** Bumped after the first render, when a group created by `@if`/`@for` is in the document. */
|
|
1794
|
+
private readonly _placement;
|
|
1795
|
+
private readonly _row;
|
|
1796
|
+
private readonly _indicator;
|
|
1797
|
+
private readonly _children;
|
|
1798
|
+
private readonly _items;
|
|
1799
|
+
/** Visible text and accessible name of the group row. */
|
|
1800
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
1801
|
+
/** Whether the group shows its children; supports `[(open)]`. @default false */
|
|
1802
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
1803
|
+
/** @internal */
|
|
1804
|
+
readonly _childrenId: string;
|
|
1805
|
+
/** @internal A stacked collapsed rail shows groups as single stacked items; a peek does not. */
|
|
1806
|
+
readonly _expanded: Signal<boolean>;
|
|
1807
|
+
/**
|
|
1808
|
+
* @internal Groups are unsupported in the footer: one there stays out of the tree. Read when
|
|
1809
|
+
* bindings run, when groups created by `@if`/`@for` are already in place, and again after the
|
|
1810
|
+
* first render.
|
|
1811
|
+
*/
|
|
1812
|
+
readonly _inFooter: Signal<boolean>;
|
|
1813
|
+
/** @internal Whether the row is a treeitem; a footer group's row is a plain button. */
|
|
1814
|
+
readonly _treeRow: Signal<boolean>;
|
|
1815
|
+
/** @internal */
|
|
1816
|
+
readonly _shown: Signal<boolean>;
|
|
1817
|
+
/** @internal */
|
|
1818
|
+
readonly _rovingCandidate: Signal<boolean>;
|
|
1819
|
+
/** @internal */
|
|
1820
|
+
readonly _holdsSelection: Signal<boolean>;
|
|
1821
|
+
/** @internal The closed ancestor of the current page. */
|
|
1822
|
+
readonly _current: Signal<boolean>;
|
|
1823
|
+
/** @internal */
|
|
1824
|
+
readonly _currentState: Signal<"true" | null>;
|
|
1825
|
+
/** @internal */
|
|
1826
|
+
readonly _tabIndex: Signal<0 | -1>;
|
|
1827
|
+
constructor();
|
|
1828
|
+
/** @internal */
|
|
1829
|
+
_registerItem(item: {
|
|
1830
|
+
readonly selected: Signal<boolean>;
|
|
1831
|
+
}): () => void;
|
|
1832
|
+
/** @internal */
|
|
1833
|
+
_rowElement(): HTMLElement;
|
|
1834
|
+
/** @internal */
|
|
1835
|
+
_childrenElement(): HTMLElement | undefined;
|
|
1836
|
+
/**
|
|
1837
|
+
* @internal Pointer, Enter and Space: toggle, or open and expand a collapsed rail. A peeking
|
|
1838
|
+
* rail is still collapsed, so activation pins it open.
|
|
1839
|
+
*/
|
|
1840
|
+
_activate(): void;
|
|
1841
|
+
/** @internal */
|
|
1842
|
+
_openFromKeyboard(): void;
|
|
1843
|
+
/** @internal */
|
|
1844
|
+
_close(): void;
|
|
1845
|
+
/** @internal */
|
|
1846
|
+
_onActivationKey(event: Event): void;
|
|
1847
|
+
private _rescueFocus;
|
|
1848
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpNavigationRailGroup, never>;
|
|
1849
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRailGroup, "mat-exp-navigation-rail-group", ["matExpNavigationRailGroup"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["[matExpNavigationRailIcon]", "*"], true, never>;
|
|
1448
1850
|
}
|
|
1449
1851
|
|
|
1450
1852
|
interface MatExpNavigationRailOptions {
|
|
@@ -1458,6 +1860,12 @@ interface MatExpNavigationRailOptions {
|
|
|
1458
1860
|
readonly alignment: MatExpNavigationRailAlignment;
|
|
1459
1861
|
/** Accessible navigation label. @default 'Primary navigation' */
|
|
1460
1862
|
readonly ariaLabel: string;
|
|
1863
|
+
/** Expanded row density: `'compact'` gives 48px rows. @default 'default' */
|
|
1864
|
+
readonly density: MatExpNavigationRailDensity;
|
|
1865
|
+
/** Collapsed presentation: `'fixed-axis'` clips the expanded rows to the rail. @default 'stacked' */
|
|
1866
|
+
readonly collapsedLayout: MatExpNavigationRailCollapsedLayout;
|
|
1867
|
+
/** Show the expanded rail as an overlay on hover or keyboard focus while collapsed. @default false */
|
|
1868
|
+
readonly peek: boolean;
|
|
1461
1869
|
}
|
|
1462
1870
|
declare const MAT_EXP_NAVIGATION_RAIL_OPTIONS: _angular_core.InjectionToken<MatExpNavigationRailOptions>;
|
|
1463
1871
|
declare const provideMatExpNavigationRailOptions: (options: Partial<MatExpNavigationRailOptions> | (() => Partial<MatExpNavigationRailOptions>)) => _angular_core.FactoryProvider;
|
|
@@ -1611,6 +2019,489 @@ interface MatExpStepperOptions {
|
|
|
1611
2019
|
declare const MAT_EXP_STEPPER_OPTIONS: _angular_core.InjectionToken<MatExpStepperOptions>;
|
|
1612
2020
|
declare const provideMatExpStepperOptions: (options: Partial<MatExpStepperOptions> | (() => Partial<MatExpStepperOptions>)) => _angular_core.FactoryProvider;
|
|
1613
2021
|
|
|
2022
|
+
/** An authored action on its original native button or link. */
|
|
2023
|
+
declare class MatExpMenuItemDirective {
|
|
2024
|
+
/** Disabled items remain focusable for discovery but cannot activate. */
|
|
2025
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2026
|
+
readonly disableRipple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2027
|
+
/** Choice roles require authored aria-checked/state; checkboxes remain open after activation. */
|
|
2028
|
+
readonly role: _angular_core.InputSignal<"menuitem" | "menuitemradio" | "menuitemcheckbox">;
|
|
2029
|
+
/** @internal */
|
|
2030
|
+
readonly _element: HTMLElement;
|
|
2031
|
+
private readonly _surface;
|
|
2032
|
+
private readonly _focusMonitor;
|
|
2033
|
+
private readonly _ripple;
|
|
2034
|
+
private readonly _captureClick;
|
|
2035
|
+
constructor();
|
|
2036
|
+
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
2037
|
+
getLabel(): string;
|
|
2038
|
+
/** @internal */
|
|
2039
|
+
_focus(): void;
|
|
2040
|
+
/** @internal */
|
|
2041
|
+
_hover(): void;
|
|
2042
|
+
/** @internal */
|
|
2043
|
+
_click(event: Event): void;
|
|
2044
|
+
/** @internal */
|
|
2045
|
+
_keydown(event: Event): void;
|
|
2046
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpMenuItemDirective, never>;
|
|
2047
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpMenuItemDirective, "button[matExpMenuItem], a[matExpMenuItem]", ["matExpMenuItem"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$1.MatRipple; inputs: {}; outputs: {}; }]>;
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
/** Opens an Expressive menu from an existing native button or Material button. */
|
|
2051
|
+
declare class MatExpMenuTrigger {
|
|
2052
|
+
/** Menu definition opened by this button. */
|
|
2053
|
+
readonly matExpMenuTriggerFor: _angular_core.InputSignal<MatExpMenu>;
|
|
2054
|
+
/** Context passed to lazily rendered content for this opening. */
|
|
2055
|
+
readonly menuData: _angular_core.InputSignal<Record<string, unknown>>;
|
|
2056
|
+
/** Restore this trigger's focus on keyboard/command/programmatic dismissal. */
|
|
2057
|
+
readonly restoreFocus: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2058
|
+
/** Emitted only when this trigger opens its associated menu. */
|
|
2059
|
+
readonly menuOpened: _angular_core.OutputEmitterRef<void>;
|
|
2060
|
+
/** Emitted only when this trigger's opening closes or transfers to another trigger. */
|
|
2061
|
+
readonly menuClosed: _angular_core.OutputEmitterRef<void>;
|
|
2062
|
+
private readonly _destroyRef;
|
|
2063
|
+
private readonly _parentSurface;
|
|
2064
|
+
private readonly _focusMonitor;
|
|
2065
|
+
/** Associated Expressive panel. */
|
|
2066
|
+
get menu(): MatExpMenu;
|
|
2067
|
+
/** Whether this trigger owns the currently open panel. */
|
|
2068
|
+
get menuOpen(): boolean;
|
|
2069
|
+
private readonly _element;
|
|
2070
|
+
constructor();
|
|
2071
|
+
/** Open and focus the first item (or filter field in searchable menus). */
|
|
2072
|
+
openMenu(): void;
|
|
2073
|
+
/** @internal */
|
|
2074
|
+
_openFromHover(): void;
|
|
2075
|
+
private _open;
|
|
2076
|
+
/** Existing shorthand retained for compatibility. */
|
|
2077
|
+
open(): void;
|
|
2078
|
+
/** Close this trigger's opening without affecting another trigger's shared menu. */
|
|
2079
|
+
closeMenu(): void;
|
|
2080
|
+
/** Toggle this trigger's opening; take ownership when another trigger opened the panel. */
|
|
2081
|
+
toggleMenu(): void;
|
|
2082
|
+
/** Reposition this trigger's open overlay against the current viewport. */
|
|
2083
|
+
updatePosition(): void;
|
|
2084
|
+
/** Focus the trigger with an optional CDK focus origin. */
|
|
2085
|
+
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
2086
|
+
/** @internal */
|
|
2087
|
+
_click(): void;
|
|
2088
|
+
/** @internal */
|
|
2089
|
+
_keydown(event: KeyboardEvent): void;
|
|
2090
|
+
private _disabled;
|
|
2091
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpMenuTrigger, never>;
|
|
2092
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpMenuTrigger, "button[matExpMenuTriggerFor]", ["matExpMenuTrigger"], { "matExpMenuTriggerFor": { "alias": "matExpMenuTriggerFor"; "required": true; "isSignal": true; }; "menuData": { "alias": "matExpMenuTriggerData"; "required": false; "isSignal": true; }; "restoreFocus": { "alias": "matExpMenuTriggerRestoreFocus"; "required": false; "isSignal": true; }; }, { "menuOpened": "menuOpened"; "menuClosed": "menuClosed"; }, never, never, true, never>;
|
|
2093
|
+
}
|
|
2094
|
+
/** Right-click and keyboard context-menu support for a focusable target. */
|
|
2095
|
+
declare class MatExpMenuContextTrigger {
|
|
2096
|
+
/** Menu definition opened for the target. */
|
|
2097
|
+
readonly matExpMenuContextFor: _angular_core.InputSignal<MatExpMenu>;
|
|
2098
|
+
private readonly _element;
|
|
2099
|
+
/** @internal */
|
|
2100
|
+
_context(event: MouseEvent): void;
|
|
2101
|
+
/** @internal */
|
|
2102
|
+
_keydown(event: KeyboardEvent): void;
|
|
2103
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpMenuContextTrigger, never>;
|
|
2104
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpMenuContextTrigger, "[matExpMenuContextFor]", ["matExpMenuContextTrigger"], { "matExpMenuContextFor": { "alias": "matExpMenuContextFor"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/** @internal Rendering and Aria interaction surface; consumers use MatExpMenu. */
|
|
2108
|
+
declare class MatExpMenuSurface {
|
|
2109
|
+
readonly owner: _angular_core.InputSignal<MatExpMenu>;
|
|
2110
|
+
readonly items: _angular_core.InputSignal<readonly MatExpMenuEntry[]>;
|
|
2111
|
+
readonly root: _angular_core.InputSignal<boolean>;
|
|
2112
|
+
readonly parentOrigin: _angular_core.InputSignal<HTMLElement | undefined>;
|
|
2113
|
+
readonly parentMenu: _angular_core.InputSignal<Menu<string> | undefined>;
|
|
2114
|
+
readonly _menu: _angular_core.Signal<Menu<string> | undefined>;
|
|
2115
|
+
readonly _shown: _angular_core.WritableSignal<boolean>;
|
|
2116
|
+
readonly _scrollable: _angular_core.WritableSignal<boolean>;
|
|
2117
|
+
readonly _focused: _angular_core.WritableSignal<boolean>;
|
|
2118
|
+
readonly _surface: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
2119
|
+
private readonly _list;
|
|
2120
|
+
private readonly _input;
|
|
2121
|
+
private readonly _host;
|
|
2122
|
+
private readonly _overlay;
|
|
2123
|
+
private readonly _direction;
|
|
2124
|
+
private readonly _document;
|
|
2125
|
+
private readonly _id;
|
|
2126
|
+
readonly _menuId: _angular_core.Signal<string>;
|
|
2127
|
+
readonly _groups: _angular_core.Signal<{
|
|
2128
|
+
id: string;
|
|
2129
|
+
label?: string;
|
|
2130
|
+
items: readonly MatExpMenuItem[];
|
|
2131
|
+
}[]>;
|
|
2132
|
+
readonly _count: _angular_core.Signal<number>;
|
|
2133
|
+
readonly _contentInjector: _angular_core.DestroyableInjector;
|
|
2134
|
+
private readonly _authoredItems;
|
|
2135
|
+
private readonly _focusOptions;
|
|
2136
|
+
private readonly _keys;
|
|
2137
|
+
private readonly _focusMonitor;
|
|
2138
|
+
private readonly _inputModality;
|
|
2139
|
+
private readonly _submenus;
|
|
2140
|
+
readonly _contentCount: _angular_core.Signal<number>;
|
|
2141
|
+
private _resetPending;
|
|
2142
|
+
private _motion?;
|
|
2143
|
+
private _overlayRef?;
|
|
2144
|
+
private _observer?;
|
|
2145
|
+
private _before?;
|
|
2146
|
+
private _wasOpen;
|
|
2147
|
+
private _typeaheadDeadline;
|
|
2148
|
+
private _lastFocusedElement?;
|
|
2149
|
+
private _keyboardNavigation;
|
|
2150
|
+
private _keyboardFocusedElement?;
|
|
2151
|
+
private _pointerPosition?;
|
|
2152
|
+
private readonly _keyboardCapture;
|
|
2153
|
+
private readonly _pointerMove;
|
|
2154
|
+
private readonly _hoverCapture;
|
|
2155
|
+
private readonly _pointerDown;
|
|
2156
|
+
private _markKeyboardFocus;
|
|
2157
|
+
constructor();
|
|
2158
|
+
private _syncAuthoredOrder;
|
|
2159
|
+
_registerItem(item: MatExpMenuItemDirective): void;
|
|
2160
|
+
_removeItem(item: MatExpMenuItemDirective): void;
|
|
2161
|
+
_isSubmenuItem(element: HTMLElement): boolean;
|
|
2162
|
+
_registerSubmenu(element: HTMLElement, trigger: MatExpMenuTrigger): void;
|
|
2163
|
+
_removeSubmenu(element: HTMLElement): void;
|
|
2164
|
+
_activateItem(item: MatExpMenuItemDirective): void;
|
|
2165
|
+
_hoverItem(item: MatExpMenuItemDirective): void;
|
|
2166
|
+
_authoredKeydown(item: MatExpMenuItemDirective, event: KeyboardEvent): void;
|
|
2167
|
+
_resetActiveItem(): void;
|
|
2168
|
+
_focusFirst(origin?: FocusOrigin): void;
|
|
2169
|
+
_exit(done: () => void): void;
|
|
2170
|
+
_selected(id: string | undefined): void;
|
|
2171
|
+
_selectionClick(item: MatExpMenuItem, event: MouseEvent): void;
|
|
2172
|
+
_itemKeydown(item: MatExpMenuItem, event: KeyboardEvent): void;
|
|
2173
|
+
_keydown(event: KeyboardEvent): void;
|
|
2174
|
+
_filter(event: Event): void;
|
|
2175
|
+
_filterKeydown(event: KeyboardEvent): void;
|
|
2176
|
+
_focusIn(event: FocusEvent): void;
|
|
2177
|
+
_focusOut(event: FocusEvent): void;
|
|
2178
|
+
_pointerOut(event: MouseEvent): void;
|
|
2179
|
+
_pointer(event: MouseEvent): void;
|
|
2180
|
+
private _enter;
|
|
2181
|
+
private _measure;
|
|
2182
|
+
private _repairRemovedFocus;
|
|
2183
|
+
private _itemElements;
|
|
2184
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpMenuSurface, never>;
|
|
2185
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpMenuSurface, "mat-exp-menu-surface", never, { "owner": { "alias": "owner"; "required": true; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "root": { "alias": "root"; "required": false; "isSignal": true; }; "parentOrigin": { "alias": "parentOrigin"; "required": false; "isSignal": true; }; "parentMenu": { "alias": "parentMenu"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
/** Lazy authored menu content. Named context values come from matExpMenuTriggerData. */
|
|
2189
|
+
declare class MatExpMenuContent {
|
|
2190
|
+
/** @internal */
|
|
2191
|
+
readonly template: TemplateRef<Record<string, unknown>>;
|
|
2192
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpMenuContent, never>;
|
|
2193
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpMenuContent, "ng-template[matExpMenuContent]", never, {}, {}, never, never, true, never>;
|
|
2194
|
+
}
|
|
2195
|
+
/** @internal Context for authored items, supplied by their rendered menu surface. */
|
|
2196
|
+
declare const MAT_EXP_MENU_SURFACE: InjectionToken<MatExpMenuSurface>;
|
|
2197
|
+
|
|
2198
|
+
/** Customize noninteractive item content while retaining the item's single action and semantics. */
|
|
2199
|
+
declare class MatExpMenuItemTemplate {
|
|
2200
|
+
/** @internal */
|
|
2201
|
+
readonly template: TemplateRef<MatExpMenuItemContext>;
|
|
2202
|
+
static ngTemplateContextGuard(_directive: MatExpMenuItemTemplate, _context: unknown): _context is MatExpMenuItemContext;
|
|
2203
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpMenuItemTemplate, never>;
|
|
2204
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpMenuItemTemplate, "ng-template[matExpMenuItemTemplate]", never, {}, {}, never, never, true, never>;
|
|
2205
|
+
}
|
|
2206
|
+
/** Per-opening state supplied by an Expressive trigger. @internal */
|
|
2207
|
+
interface MatExpMenuOpenOptions {
|
|
2208
|
+
trigger?: object;
|
|
2209
|
+
parent?: MatExpMenu;
|
|
2210
|
+
focus?: boolean;
|
|
2211
|
+
data?: Record<string, unknown>;
|
|
2212
|
+
restoreFocus?: boolean;
|
|
2213
|
+
opened?: () => void;
|
|
2214
|
+
closed?: () => void;
|
|
2215
|
+
}
|
|
2216
|
+
/** A reusable Expressive menu definition, opened by a button or context trigger. */
|
|
2217
|
+
declare class MatExpMenu {
|
|
2218
|
+
private readonly _destroyRef;
|
|
2219
|
+
private readonly _options;
|
|
2220
|
+
private readonly _overlay;
|
|
2221
|
+
private readonly _view;
|
|
2222
|
+
private readonly _document;
|
|
2223
|
+
private readonly _direction;
|
|
2224
|
+
private readonly _browser;
|
|
2225
|
+
private readonly _portal;
|
|
2226
|
+
private readonly _surface;
|
|
2227
|
+
private _overlayRef?;
|
|
2228
|
+
private _origin?;
|
|
2229
|
+
private _point?;
|
|
2230
|
+
private _pendingFocus;
|
|
2231
|
+
/** @internal Opening identity guards deferred authored callbacks. */
|
|
2232
|
+
_openingId: number;
|
|
2233
|
+
/** @internal */
|
|
2234
|
+
_parentMenu?: MatExpMenu;
|
|
2235
|
+
private _childMenu?;
|
|
2236
|
+
/** @internal */
|
|
2237
|
+
readonly _content: _angular_core.Signal<MatExpMenuContent | undefined>;
|
|
2238
|
+
private _session?;
|
|
2239
|
+
private readonly _triggerOwner;
|
|
2240
|
+
private readonly _data;
|
|
2241
|
+
/** Context supplied by the trigger that owns the current opening. @internal */
|
|
2242
|
+
readonly _triggerData: _angular_core.Signal<Record<string, unknown>>;
|
|
2243
|
+
/** Entries; each ID must be unique throughout the menu tree. @default [] */
|
|
2244
|
+
readonly items: _angular_core.InputSignal<readonly MatExpMenuEntry[]>;
|
|
2245
|
+
/** Accessible name for the menu or searchable menu dialog. @default 'Actions' */
|
|
2246
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
2247
|
+
/** Optional Material-style accessible name overriding label. */
|
|
2248
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
2249
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | undefined>;
|
|
2250
|
+
readonly ariaDescribedby: _angular_core.InputSignal<string | undefined>;
|
|
2251
|
+
/** Classes placed on the rendered surface. */
|
|
2252
|
+
readonly panelClass: _angular_core.InputSignal<string | string[]>;
|
|
2253
|
+
/** Preferred horizontal alignment; viewport fallbacks remain enabled. */
|
|
2254
|
+
readonly xPosition: _angular_core.InputSignal<"before" | "after">;
|
|
2255
|
+
/** Preferred vertical alignment; viewport fallbacks remain enabled. */
|
|
2256
|
+
readonly yPosition: _angular_core.InputSignal<"below" | "above">;
|
|
2257
|
+
/** Align with the trigger's edge instead of leaving the default 4px gap. */
|
|
2258
|
+
readonly overlapTrigger: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2259
|
+
/** Classes on the CDK overlay pane. */
|
|
2260
|
+
readonly overlayPanelClass: _angular_core.InputSignal<string | string[]>;
|
|
2261
|
+
/** Whether to show a dismissible backdrop. Defaults to outside-pointer dismissal. */
|
|
2262
|
+
readonly hasBackdrop: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2263
|
+
/** Backdrop classes, used only when hasBackdrop is true. */
|
|
2264
|
+
readonly backdropClass: _angular_core.InputSignal<string>;
|
|
2265
|
+
/** Standard surface or vibrant tertiary palette. @default 'standard' */
|
|
2266
|
+
readonly color: _angular_core.InputSignal<MatExpMenuColor>;
|
|
2267
|
+
/** Explicit web density; font sizes remain unchanged. @default 0 */
|
|
2268
|
+
readonly density: _angular_core.InputSignal<MatExpMenuDensity>;
|
|
2269
|
+
/** Separation between groups. Overflowing menus automatically use dividers. @default 'divider' */
|
|
2270
|
+
readonly separation: _angular_core.InputSignal<MatExpMenuSeparation>;
|
|
2271
|
+
/** Enable Expressive motion. Reduced motion always takes precedence. @default true */
|
|
2272
|
+
readonly motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2273
|
+
/** Add a search field outside the menu's command navigation. @default false */
|
|
2274
|
+
readonly filterable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2275
|
+
/** Localized search-field label. @default 'Filter options' */
|
|
2276
|
+
readonly filterLabel: _angular_core.InputSignal<string>;
|
|
2277
|
+
/** Localized empty-results message. @default 'No matching options' */
|
|
2278
|
+
readonly emptyLabel: _angular_core.InputSignal<string>;
|
|
2279
|
+
/** Maximum scroll viewport height in CSS pixels, also constrained by the window. @default 480 */
|
|
2280
|
+
readonly maxHeight: _angular_core.InputSignal<number>;
|
|
2281
|
+
/** Selected checkbox/radio IDs. @default [] */
|
|
2282
|
+
readonly value: _angular_core.ModelSignal<readonly string[]>;
|
|
2283
|
+
/** Filter query, retained when the menu closes. @default '' */
|
|
2284
|
+
readonly query: _angular_core.ModelSignal<string>;
|
|
2285
|
+
/** Emitted for an enabled command or selection. Submenu expansion does not emit. */
|
|
2286
|
+
readonly itemSelected: _angular_core.OutputEmitterRef<MatExpMenuItem>;
|
|
2287
|
+
/** Emitted after opening is requested. */
|
|
2288
|
+
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
2289
|
+
/** Emitted when the menu is dismissed. */
|
|
2290
|
+
readonly closed: _angular_core.OutputEmitterRef<MatExpMenuCloseReason>;
|
|
2291
|
+
private readonly _open;
|
|
2292
|
+
/** Whether the menu accepts interaction, excluding its exit transition. */
|
|
2293
|
+
readonly isOpen: _angular_core.Signal<boolean>;
|
|
2294
|
+
/** @internal */
|
|
2295
|
+
readonly _id: string;
|
|
2296
|
+
/** ID of the rendered root menu or searchable dialog. */
|
|
2297
|
+
get panelId(): string;
|
|
2298
|
+
/** @internal */
|
|
2299
|
+
readonly _itemTemplate: _angular_core.Signal<MatExpMenuItemTemplate | undefined>;
|
|
2300
|
+
constructor();
|
|
2301
|
+
/** Open beside an element, or at viewport coordinates for a context menu. */
|
|
2302
|
+
open(origin: HTMLElement, point?: {
|
|
2303
|
+
x: number;
|
|
2304
|
+
y: number;
|
|
2305
|
+
}, options?: MatExpMenuOpenOptions): void;
|
|
2306
|
+
/** Dismiss the menu; Escape/selection/programmatic dismissal restore trigger focus. */
|
|
2307
|
+
close(reason?: MatExpMenuCloseReason): void;
|
|
2308
|
+
/** Close descendants without stealing focus from a newly active sibling. @internal */
|
|
2309
|
+
_closeChild(exceptOrigin?: HTMLElement): void;
|
|
2310
|
+
/** Close the entire authored menu chain after activation or Tab. @internal */
|
|
2311
|
+
_closeTree(reason: MatExpMenuCloseReason): void;
|
|
2312
|
+
/** Focus the first item, or the filter field in a searchable menu. */
|
|
2313
|
+
focusFirstItem(origin?: FocusOrigin): void;
|
|
2314
|
+
/** Reset keyboard navigation so the next forward step starts at the first item. */
|
|
2315
|
+
resetActiveItem(): void;
|
|
2316
|
+
/** Whether a particular trigger owns this opening. @internal */
|
|
2317
|
+
_isOpenFor(trigger: object): boolean;
|
|
2318
|
+
/** @internal */
|
|
2319
|
+
_updatePosition(): void;
|
|
2320
|
+
/** @internal */
|
|
2321
|
+
_select(item: MatExpMenuItem): void;
|
|
2322
|
+
/** @internal Aria dispatches nested command values through the root menu. */
|
|
2323
|
+
_selectId(id: string | undefined): void;
|
|
2324
|
+
private _allItems;
|
|
2325
|
+
private readonly _back;
|
|
2326
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpMenu, never>;
|
|
2327
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpMenu, "mat-exp-menu", ["matExpMenu"], { "items": { "alias": "items"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "xPosition": { "alias": "xPosition"; "required": false; "isSignal": true; }; "yPosition": { "alias": "yPosition"; "required": false; "isSignal": true; }; "overlapTrigger": { "alias": "overlapTrigger"; "required": false; "isSignal": true; }; "overlayPanelClass": { "alias": "overlayPanelClass"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "separation": { "alias": "separation"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "filterLabel": { "alias": "filterLabel"; "required": false; "isSignal": true; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "query": "queryChange"; "itemSelected": "itemSelected"; "opened": "opened"; "closed": "closed"; }, ["_content", "_itemTemplate"], never, true, never>;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
/** Defaults inherited by menu definitions. */
|
|
2331
|
+
interface MatExpMenuOptions {
|
|
2332
|
+
/** Surface color mapping. @default 'standard' */
|
|
2333
|
+
color: MatExpMenuColor;
|
|
2334
|
+
/** Explicit web density. @default 0 */
|
|
2335
|
+
density: MatExpMenuDensity;
|
|
2336
|
+
/** Group separation; overflowing gap menus automatically use dividers. @default 'divider' */
|
|
2337
|
+
separation: MatExpMenuSeparation;
|
|
2338
|
+
/** Expressive motion; reduced motion takes precedence. @default true */
|
|
2339
|
+
motion: boolean;
|
|
2340
|
+
/** Localized filter input label. @default 'Filter options' */
|
|
2341
|
+
filterLabel: string;
|
|
2342
|
+
/** Localized empty-results message. @default 'No matching options' */
|
|
2343
|
+
emptyLabel: string;
|
|
2344
|
+
}
|
|
2345
|
+
declare const MAT_EXP_MENU_DEFAULT_OPTIONS: MatExpMenuOptions;
|
|
2346
|
+
declare const MAT_EXP_MENU_OPTIONS: _angular_core.InjectionToken<MatExpMenuOptions>;
|
|
2347
|
+
declare const provideMatExpMenuOptions: (options: Partial<MatExpMenuOptions> | (() => Partial<MatExpMenuOptions>)) => _angular_core.FactoryProvider;
|
|
2348
|
+
declare const injectMatExpMenuOptions: () => MatExpMenuOptions;
|
|
2349
|
+
|
|
2350
|
+
/** Filtered-row motion only; popup entry and exit retain their own spring. */
|
|
2351
|
+
type MatExpAutocompleteFilterMotion = 'fast' | 'standard' | 'off';
|
|
2352
|
+
/** Editable single-choice field with independent query and confirmed value. */
|
|
2353
|
+
declare class MatExpAutocomplete {
|
|
2354
|
+
readonly options: _angular_core.InputSignal<readonly string[]>;
|
|
2355
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
2356
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
2357
|
+
readonly emptyLabel: _angular_core.InputSignal<string>;
|
|
2358
|
+
readonly color: _angular_core.InputSignal<MatExpMenuColor>;
|
|
2359
|
+
readonly density: _angular_core.InputSignal<MatExpMenuDensity>;
|
|
2360
|
+
readonly motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2361
|
+
readonly filterMotion: _angular_core.InputSignal<MatExpAutocompleteFilterMotion>;
|
|
2362
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2363
|
+
readonly rtl: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2364
|
+
readonly value: _angular_core.ModelSignal<string | null>;
|
|
2365
|
+
readonly query: _angular_core.ModelSignal<string>;
|
|
2366
|
+
readonly selected: _angular_core.OutputEmitterRef<string>;
|
|
2367
|
+
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
2368
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
2369
|
+
protected readonly _pressed: _angular_core.WritableSignal<string | null>;
|
|
2370
|
+
protected readonly _expanded: _angular_core.WritableSignal<boolean>;
|
|
2371
|
+
protected readonly _present: _angular_core.WritableSignal<boolean>;
|
|
2372
|
+
private readonly _closingMatches;
|
|
2373
|
+
protected readonly _selection: _angular_core.Signal<string[]>;
|
|
2374
|
+
protected readonly _matches: _angular_core.Signal<readonly string[]>;
|
|
2375
|
+
protected readonly _classes: _angular_core.Signal<string>;
|
|
2376
|
+
protected readonly _positions: ConnectedPosition[];
|
|
2377
|
+
private readonly _document;
|
|
2378
|
+
private readonly _host;
|
|
2379
|
+
private readonly _input;
|
|
2380
|
+
private readonly _originElement;
|
|
2381
|
+
protected readonly _popupWidth: _angular_core.Signal<number>;
|
|
2382
|
+
private readonly _panel;
|
|
2383
|
+
private readonly _listbox;
|
|
2384
|
+
private readonly _overlay;
|
|
2385
|
+
private _motion;
|
|
2386
|
+
private _motionPanel;
|
|
2387
|
+
private _above;
|
|
2388
|
+
private _lastOpen;
|
|
2389
|
+
private _lastAnimate;
|
|
2390
|
+
private _lastFilterMotion;
|
|
2391
|
+
private _before;
|
|
2392
|
+
constructor();
|
|
2393
|
+
get isOpen(): boolean;
|
|
2394
|
+
open(): void;
|
|
2395
|
+
close(): void;
|
|
2396
|
+
protected _expand(open: boolean): void;
|
|
2397
|
+
protected _edit(query: string): void;
|
|
2398
|
+
protected _choose(option: string): void;
|
|
2399
|
+
protected _key(event: KeyboardEvent): void;
|
|
2400
|
+
protected _outside(event: PointerEvent): void;
|
|
2401
|
+
protected _origin(above: boolean): void;
|
|
2402
|
+
private _scrollActiveIntoView;
|
|
2403
|
+
private _snapshotRows;
|
|
2404
|
+
private _rows;
|
|
2405
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpAutocomplete, never>;
|
|
2406
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpAutocomplete, "mat-exp-autocomplete", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "filterMotion": { "alias": "filterMotion"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "rtl": { "alias": "rtl"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "query": "queryChange"; "selected": "selected"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
/** Spatial spring used for popup entry, exit and interrupted reopening. */
|
|
2410
|
+
type MatExpSelectPopupMotion = 'fast' | 'standard' | 'off';
|
|
2411
|
+
/** A fixed choice in an Expressive select. Values must be unique under compareWith. */
|
|
2412
|
+
interface MatExpSelectOption<T = string> {
|
|
2413
|
+
value: T;
|
|
2414
|
+
label: string;
|
|
2415
|
+
disabled?: boolean;
|
|
2416
|
+
}
|
|
2417
|
+
/** Fixed single/multiple choice with Angular forms integration and an Expressive popup. */
|
|
2418
|
+
declare class MatExpSelect<T = string> implements ControlValueAccessor {
|
|
2419
|
+
readonly options: _angular_core.InputSignal<readonly MatExpSelectOption<T>[]>;
|
|
2420
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2421
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
2422
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
2423
|
+
readonly emptyLabel: _angular_core.InputSignal<string>;
|
|
2424
|
+
readonly color: _angular_core.InputSignal<MatExpMenuColor>;
|
|
2425
|
+
readonly density: _angular_core.InputSignal<MatExpMenuDensity>;
|
|
2426
|
+
readonly motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2427
|
+
/** Popup spatial spring. Off settles immediately; reduced motion always takes precedence. */
|
|
2428
|
+
readonly popupMotion: _angular_core.InputSignal<MatExpSelectPopupMotion>;
|
|
2429
|
+
readonly rtl: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2430
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2431
|
+
/** Accessible required state. Apply Angular Validators.required for form validation. */
|
|
2432
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
2433
|
+
readonly compareWith: _angular_core.InputSignal<(a: T, b: T) => boolean>;
|
|
2434
|
+
readonly valueChange: _angular_core.OutputEmitterRef<T | readonly T[] | null>;
|
|
2435
|
+
/** Emitted once when a user interaction changes the confirmed selection. */
|
|
2436
|
+
readonly selectionChange: _angular_core.OutputEmitterRef<T | readonly T[] | null>;
|
|
2437
|
+
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
2438
|
+
/** Emitted after the popup's exit completes. */
|
|
2439
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
2440
|
+
private readonly _value;
|
|
2441
|
+
/** Two-way selection. Use a scalar for single mode, an array for multiple mode. */
|
|
2442
|
+
get value(): T | readonly T[] | null;
|
|
2443
|
+
set value(value: T | readonly T[] | null);
|
|
2444
|
+
protected readonly _expanded: _angular_core.WritableSignal<boolean>;
|
|
2445
|
+
protected readonly _present: _angular_core.WritableSignal<boolean>;
|
|
2446
|
+
protected readonly _pressed: _angular_core.WritableSignal<number | null>;
|
|
2447
|
+
private readonly _formDisabled;
|
|
2448
|
+
protected readonly _disabled: _angular_core.Signal<boolean>;
|
|
2449
|
+
private readonly _closingOptions;
|
|
2450
|
+
protected readonly _renderedOptions: _angular_core.Signal<readonly MatExpSelectOption<T>[]>;
|
|
2451
|
+
protected readonly _indices: _angular_core.Signal<number[]>;
|
|
2452
|
+
protected readonly _display: _angular_core.Signal<string>;
|
|
2453
|
+
protected readonly _classes: _angular_core.Signal<string>;
|
|
2454
|
+
protected readonly _positions: ConnectedPosition[];
|
|
2455
|
+
private readonly _document;
|
|
2456
|
+
private readonly _host;
|
|
2457
|
+
private readonly _destroy;
|
|
2458
|
+
private readonly _changeDetector;
|
|
2459
|
+
private readonly _trigger;
|
|
2460
|
+
private readonly _originElement;
|
|
2461
|
+
protected readonly _popupWidth: _angular_core.Signal<number>;
|
|
2462
|
+
private readonly _panel;
|
|
2463
|
+
private readonly _surface;
|
|
2464
|
+
private readonly _listbox;
|
|
2465
|
+
private readonly _overlay;
|
|
2466
|
+
private _motion;
|
|
2467
|
+
private _motionSurface;
|
|
2468
|
+
private _removeListeners;
|
|
2469
|
+
private _lastOpen;
|
|
2470
|
+
private _lastAnimate;
|
|
2471
|
+
private _lastPopupMotion;
|
|
2472
|
+
private _above;
|
|
2473
|
+
private _initial;
|
|
2474
|
+
private _pendingKey;
|
|
2475
|
+
private _typeaheadUntil;
|
|
2476
|
+
private _userEvent;
|
|
2477
|
+
private _pendingValues;
|
|
2478
|
+
private _onChange;
|
|
2479
|
+
private _onTouched;
|
|
2480
|
+
constructor();
|
|
2481
|
+
get isOpen(): boolean;
|
|
2482
|
+
open(): void;
|
|
2483
|
+
close(): void;
|
|
2484
|
+
focus(): void;
|
|
2485
|
+
writeValue(value: T | readonly T[] | null): void;
|
|
2486
|
+
registerOnChange(fn: (value: T | readonly T[] | null) => void): void;
|
|
2487
|
+
registerOnTouched(fn: () => void): void;
|
|
2488
|
+
setDisabledState(disabled: boolean): void;
|
|
2489
|
+
protected _expand(open: boolean): void;
|
|
2490
|
+
protected _key(event: KeyboardEvent): void;
|
|
2491
|
+
protected _blur(): void;
|
|
2492
|
+
protected _outside(event: PointerEvent): void;
|
|
2493
|
+
protected _press(index: number): void;
|
|
2494
|
+
protected _release(): void;
|
|
2495
|
+
protected _listValueChanged(value: number[]): void;
|
|
2496
|
+
protected _origin(above: boolean): void;
|
|
2497
|
+
private _capture;
|
|
2498
|
+
private _finishSelection;
|
|
2499
|
+
private _scrollActiveIntoView;
|
|
2500
|
+
private _commit;
|
|
2501
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpSelect<any>, never>;
|
|
2502
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpSelect<any>, "mat-exp-select", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "emptyLabel": { "alias": "emptyLabel"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "popupMotion": { "alias": "popupMotion"; "required": false; "isSignal": true; }; "rtl": { "alias": "rtl"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "selectionChange": "selectionChange"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
2503
|
+
}
|
|
2504
|
+
|
|
1614
2505
|
/** @internal Uses CDK's documented custom-container extension points. */
|
|
1615
2506
|
declare class MatExpDialogContainer extends CdkDialogContainer {
|
|
1616
2507
|
readonly opened: Subject<void>;
|
|
@@ -1650,7 +2541,10 @@ declare class MatExpDialogRef<T, R = unknown> {
|
|
|
1650
2541
|
get componentInstance(): T;
|
|
1651
2542
|
/** Application component reference. */
|
|
1652
2543
|
get componentRef(): _angular_core.ComponentRef<T> | null;
|
|
1653
|
-
/**
|
|
2544
|
+
/**
|
|
2545
|
+
* Blocks the user's dismissal gestures: Escape, backdrop clicks and the adaptive layout's close
|
|
2546
|
+
* button. Application close actions (`matExpDialogClose`, `close()`) still close.
|
|
2547
|
+
*/
|
|
1654
2548
|
disableClose: boolean;
|
|
1655
2549
|
/** @internal */
|
|
1656
2550
|
private _state;
|
|
@@ -1663,6 +2557,8 @@ declare class MatExpDialogRef<T, R = unknown> {
|
|
|
1663
2557
|
/** @internal */
|
|
1664
2558
|
private readonly _closing;
|
|
1665
2559
|
/** @internal */
|
|
2560
|
+
private readonly _closeButtonClicks;
|
|
2561
|
+
/** @internal */
|
|
1666
2562
|
constructor(
|
|
1667
2563
|
/** @internal */
|
|
1668
2564
|
_cdk: DialogRef<R, T>,
|
|
@@ -1684,6 +2580,13 @@ declare class MatExpDialogRef<T, R = unknown> {
|
|
|
1684
2580
|
beforeClosed(): rxjs.Observable<R | undefined>;
|
|
1685
2581
|
/** Native backdrop events. */
|
|
1686
2582
|
backdropClick(): rxjs.Observable<MouseEvent>;
|
|
2583
|
+
/**
|
|
2584
|
+
* Clicks on the adaptive layout's close button. Like `backdropClick()`, it emits whether or not
|
|
2585
|
+
* `disableClose` blocked the close, so an app can route a blocked click to its own handler.
|
|
2586
|
+
*/
|
|
2587
|
+
closeButtonClick(): rxjs.Observable<MouseEvent>;
|
|
2588
|
+
/** @internal The adaptive close button is a dismissal gesture, like Escape and the backdrop. */
|
|
2589
|
+
_closeButtonClick(event: MouseEvent): void;
|
|
1687
2590
|
/** Native overlay keyboard events. */
|
|
1688
2591
|
keydownEvents(): rxjs.Observable<KeyboardEvent>;
|
|
1689
2592
|
/** Material-compatible lifecycle state. */
|
|
@@ -1754,9 +2657,13 @@ declare class MatExpDialogLayout {
|
|
|
1754
2657
|
title: string;
|
|
1755
2658
|
closeLabel: string;
|
|
1756
2659
|
motion: "system" | "none";
|
|
2660
|
+
adaptiveWidth?: string;
|
|
2661
|
+
compactActions: _camaradesuk_m3e_angular.MatExpDialogCompactActions;
|
|
1757
2662
|
origin?: HTMLElement;
|
|
1758
2663
|
};
|
|
1759
2664
|
/** @internal */
|
|
2665
|
+
readonly _ref: MatExpDialogRef<any, any>;
|
|
2666
|
+
/** @internal */
|
|
1760
2667
|
readonly _actions: _angular_core.Signal<MatExpDialogActions | undefined>;
|
|
1761
2668
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpDialogLayout, never>;
|
|
1762
2669
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpDialogLayout, "mat-exp-dialog-layout", ["matExpDialogLayout"], {}, {}, ["_actions"], ["*"], true, never>;
|
|
@@ -1767,6 +2674,14 @@ interface MatExpDialogOptions {
|
|
|
1767
2674
|
readonly motion: MatExpDialogMotion;
|
|
1768
2675
|
/** Accessible label for the adaptive close button. @default 'Close dialog' */
|
|
1769
2676
|
readonly closeLabel: string;
|
|
2677
|
+
/**
|
|
2678
|
+
* Centered adaptive dialog width at 600px and above, as a CSS length or percentage. Unset,
|
|
2679
|
+
* dialogs are 560px wide and dialogs containing a stepper use the stepper's width.
|
|
2680
|
+
* @default undefined
|
|
2681
|
+
*/
|
|
2682
|
+
readonly adaptiveWidth: string | undefined;
|
|
2683
|
+
/** Adaptive actions below 600px: the header row or a bottom bar. @default 'header' */
|
|
2684
|
+
readonly compactActions: MatExpDialogCompactActions;
|
|
1770
2685
|
}
|
|
1771
2686
|
declare const MAT_EXP_DIALOG_OPTIONS: InjectionToken<MatExpDialogOptions>;
|
|
1772
2687
|
declare const provideMatExpDialogOptions: (options: Partial<MatExpDialogOptions> | (() => Partial<MatExpDialogOptions>)) => _angular_core.FactoryProvider;
|
|
@@ -1787,5 +2702,5 @@ declare class MatExpDialogClose {
|
|
|
1787
2702
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpDialogClose, "[matExpDialogClose]", ["matExpDialogClose"], { "result": { "alias": "matExpDialogClose"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1788
2703
|
}
|
|
1789
2704
|
|
|
1790
|
-
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 };
|
|
1791
|
-
export type { ButtonGroupChild, ButtonGroupChildBroadcastConfig, MatExpButtonGroupAppearance, MatExpButtonGroupOptions, MatExpButtonGroupSelection, MatExpButtonGroupSelectionMultiSelect, MatExpButtonGroupSelectionSingleSelect, MatExpButtonGroupShape, MatExpButtonGroupSize, MatExpButtonGroupVariant, MatExpButtonGroupVariantConnected, MatExpButtonGroupVariantStandard, MatExpButtonOptions, MatExpButtonShape, MatExpButtonShapeRound, MatExpButtonShapeSquare, MatExpButtonSize, MatExpButtonSizeL, MatExpButtonSizeM, MatExpButtonSizeS, MatExpButtonSizeXL, MatExpButtonSizeXS, MatExpButtonState, MatExpButtonStateActive, MatExpButtonStateDisabled, MatExpButtonStateFocused, MatExpButtonStateHovered, MatExpButtonStatePressed, MatExpButtonToggle, MatExpButtonToggleSelected, MatExpButtonToggleUnselected, MatExpDialogConfig, MatExpDialogConfirmationConfig, MatExpDialogMode, MatExpDialogMotion, MatExpDialogOptions, MatExpFabMenuColor, MatExpFabMenuOptions, MatExpFabMenuTriggerColor, MatExpIconButtonAppearance, MatExpIconButtonOptions, MatExpIconButtonWidth, MatExpIconButtonWidthDefault, MatExpIconButtonWidthNarrow, MatExpIconButtonWidthWide, MatExpListAppearance, MatExpListMedia, MatExpListOptions, MatExpListPosition, MatExpListTextWrap, MatExpLoadingIndicatorConfig, MatExpLoadingIndicatorOptions, MatExpLoadingIndicatorSpeed, MatExpNavigationRailAlignment, MatExpNavigationRailMode, MatExpNavigationRailOptions, MatExpProgressIndicatorOptions, MatExpProgressMode, MatExpProgressShape, MatExpProgressVariant, MatExpRichTooltipOptions, MatExpRichTooltipPosition, MatExpSearchAlignment, MatExpSearchAppearance, MatExpSearchLayout, MatExpSearchOptions, MatExpSearchState, MatExpSelectableButton, MatExpSplitButtonAppearance, MatExpSplitButtonOptions, MatExpStepState, MatExpStepperLayout, MatExpStepperMotion, MatExpStepperOptions, MatExpToolbarAlignment, MatExpToolbarAppearance, MatExpToolbarExitEdge, MatExpToolbarLayout, MatExpToolbarOptions };
|
|
2705
|
+
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_MENU_DEFAULT_OPTIONS, MAT_EXP_MENU_OPTIONS, MAT_EXP_MENU_SURFACE, 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, MatExpAutocomplete, MatExpButton, MatExpButtonGroup, MatExpDialog, MatExpDialogActions, MatExpDialogClose, MatExpDialogLayout, MatExpDialogRef, MatExpFabMenu, MatExpFabMenuButton, MatExpFabMenuTrigger, MatExpIconButton, MatExpList, MatExpListItem, MatExpListMediaDirective, MatExpLoadingIndicator, MatExpMenu, MatExpMenuContent, MatExpMenuContextTrigger, MatExpMenuItemDirective, MatExpMenuItemTemplate, MatExpMenuTrigger, MatExpNavigationRail, MatExpNavigationRailGroup, MatExpNavigationRailItem, MatExpNavigationRailSection, MatExpProgressIndicator, MatExpRichTooltip, MatExpRichTooltipTrigger, MatExpSearch, MatExpSearchResult, MatExpSelect, MatExpSelectableButtonChange, MatExpSplitButton, MatExpStep, MatExpStepper, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpMenuOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpMenuOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, provideMatExpStepperOptions, provideMatExpToolbarOptions, toButtonGroupChild };
|
|
2706
|
+
export type { ButtonGroupChild, ButtonGroupChildBroadcastConfig, MatExpAutocompleteFilterMotion, MatExpButtonGroupAppearance, MatExpButtonGroupOptions, MatExpButtonGroupSelection, MatExpButtonGroupSelectionMultiSelect, MatExpButtonGroupSelectionSingleSelect, MatExpButtonGroupShape, MatExpButtonGroupSize, MatExpButtonGroupVariant, MatExpButtonGroupVariantConnected, MatExpButtonGroupVariantStandard, MatExpButtonOptions, MatExpButtonShape, MatExpButtonShapeRound, MatExpButtonShapeSquare, MatExpButtonSize, MatExpButtonSizeL, MatExpButtonSizeM, MatExpButtonSizeS, MatExpButtonSizeXL, MatExpButtonSizeXS, MatExpButtonState, MatExpButtonStateActive, MatExpButtonStateDisabled, MatExpButtonStateFocused, MatExpButtonStateHovered, MatExpButtonStatePressed, MatExpButtonToggle, MatExpButtonToggleSelected, MatExpButtonToggleUnselected, MatExpDialogCompactActions, MatExpDialogConfig, MatExpDialogConfirmationConfig, MatExpDialogMode, MatExpDialogMotion, MatExpDialogOptions, MatExpFabColor, MatExpFabMenuColor, MatExpFabMenuOptions, MatExpFabMenuTriggerColor, MatExpIconButtonAppearance, MatExpIconButtonOptions, MatExpIconButtonWidth, MatExpIconButtonWidthDefault, MatExpIconButtonWidthNarrow, MatExpIconButtonWidthWide, MatExpListAppearance, MatExpListMedia, MatExpListOptions, MatExpListPosition, MatExpListTextWrap, MatExpLoadingIndicatorConfig, MatExpLoadingIndicatorOptions, MatExpLoadingIndicatorSpeed, MatExpMenuCloseReason, MatExpMenuColor, MatExpMenuDensity, MatExpMenuEntry, MatExpMenuGroup, MatExpMenuItem, MatExpMenuItemContext, MatExpMenuOpenOptions, MatExpMenuOptions, MatExpMenuSeparation, MatExpNavigationRailAlignment, MatExpNavigationRailCollapsedLayout, MatExpNavigationRailDensity, MatExpNavigationRailMode, MatExpNavigationRailOptions, MatExpProgressIndicatorOptions, MatExpProgressMode, MatExpProgressShape, MatExpProgressVariant, MatExpRichTooltipOptions, MatExpRichTooltipPosition, MatExpSearchAlignment, MatExpSearchAppearance, MatExpSearchLayout, MatExpSearchOptions, MatExpSearchState, MatExpSelectOption, MatExpSelectPopupMotion, MatExpSelectableButton, MatExpSplitButtonAppearance, MatExpSplitButtonOptions, MatExpStepState, MatExpStepperLayout, MatExpStepperMotion, MatExpStepperOptions, MatExpToolbarAlignment, MatExpToolbarAppearance, MatExpToolbarExitEdge, MatExpToolbarLayout, MatExpToolbarOptions };
|