@camaradesuk/m3e-angular 0.0.0-stage → 0.1.0-alpha.3
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/LICENSE +21 -0
- package/README.md +45 -2
- package/fesm2022/camaradesuk-m3e-angular.mjs +5194 -0
- package/fesm2022/camaradesuk-m3e-angular.mjs.map +1 -0
- package/package.json +64 -4
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/angular-json.js +78 -0
- package/schematics/ng-add/constants.js +32 -0
- package/schematics/ng-add/index.js +67 -0
- package/schematics/ng-add/prompts.js +39 -0
- package/schematics/ng-add/schema.json +47 -0
- package/schematics/ng-add/stylesheet.js +50 -0
- package/schematics/ng-add/types.js +2 -0
- package/schematics/package.json +3 -0
- package/src/lib/styles/_index.scss +12 -0
- package/src/lib/styles/_mat-exp-styles.scss +18 -0
- package/src/lib/styles/components/all-buttons/_common-selectors.scss +27 -0
- package/src/lib/styles/components/all-buttons/_index.scss +19 -0
- package/src/lib/styles/components/all-buttons/button/_config.scss +13 -0
- package/src/lib/styles/components/all-buttons/button/_index.scss +119 -0
- package/src/lib/styles/components/all-buttons/button/configs/_default.scss +9 -0
- package/src/lib/styles/components/all-buttons/button/configs/_index.scss +6 -0
- package/src/lib/styles/components/all-buttons/button/configs/_l.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/configs/_m.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/configs/_s.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/configs/_xl.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/configs/_xs.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_common.scss +99 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_index.scss +5 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_l.scss +81 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_m.scss +81 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_s.scss +81 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_xl.scss +81 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_xs.scss +81 -0
- package/src/lib/styles/components/all-buttons/button-group/_config.scss +16 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-l-corners.scss +81 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-m-corners.scss +81 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-s-corners.scss +83 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-xl-corners.scss +81 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-xs-corners.scss +82 -0
- package/src/lib/styles/components/all-buttons/button-group/_index.scss +117 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_connected.scss +78 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_default.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_index.scss +7 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_l.scss +9 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_m.scss +9 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_s.scss +19 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_xl.scss +9 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_xs.scss +19 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_common.scss +40 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_connected.scss +23 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_l.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_m.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_s.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_xl.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_xs.scss +12 -0
- package/src/lib/styles/components/all-buttons/fab-menu/_config.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu/_index.scss +92 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_default.scss +9 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_index.scss +4 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_primary.scss +10 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_secondary.scss +10 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_tertiary.scss +10 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_common.scss +12 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_index.scss +4 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_primary.scss +3 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_secondary.scss +3 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_tertiary.scss +3 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/_config.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/_index.scss +67 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_default.scss +6 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_index.scss +4 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_primary.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_secondary.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_tertiary.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_common.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_index.scss +4 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_primary.scss +13 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_secondary.scss +13 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_tertiary.scss +13 -0
- package/src/lib/styles/components/all-buttons/icon-button/_config.scss +13 -0
- package/src/lib/styles/components/all-buttons/icon-button/_index.scss +134 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_default.scss +8 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_index.scss +6 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_l.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_m.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_s.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_xl.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_xs.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_common.scss +28 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_index.scss +5 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_l.scss +135 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_m.scss +133 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_s.scss +98 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_xl.scss +119 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_xs.scss +299 -0
- package/src/lib/styles/components/all-buttons/split-button/_config.scss +13 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-l-corners.scss +59 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-m-corners.scss +59 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-s-corners.scss +60 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-xl-corners.scss +59 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-xs-corners.scss +60 -0
- package/src/lib/styles/components/all-buttons/split-button/_index.scss +114 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_default.scss +8 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_index.scss +6 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_l.scss +56 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_m.scss +56 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_s.scss +74 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_xl.scss +56 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_xs.scss +74 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_common.scss +24 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_l.scss +36 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_m.scss +36 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_s.scss +36 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_xl.scss +36 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_xs.scss +36 -0
- package/src/lib/styles/components/all-buttons/utils/_functions.scss +68 -0
- package/src/lib/styles/components/dialog/_index.scss +56 -0
- package/src/lib/styles/components/lists/_index.scss +278 -0
- package/src/lib/styles/components/toolbars/_index.scss +211 -0
- package/src/lib/styles/prebuilt.scss +5 -0
- package/src/lib/styles/utils/_constants.scss +52 -0
- package/src/lib/styles/utils/_generated-attributes.scss +58 -0
- package/src/lib/styles/utils/functions/_filter-config.scss +64 -0
- package/src/lib/styles/utils/functions/_get-state-pseudo.scss +6 -0
- package/src/lib/styles/utils/functions/_index.scss +4 -0
- package/src/lib/styles/utils/functions/_rem.scss +5 -0
- package/src/lib/styles/utils/functions/_validate-config.scss +179 -0
- package/src/lib/styles/utils/mixins/_apply-tokens-properties.scss +25 -0
- package/src/lib/styles/utils/mixins/_index.scss +2 -0
- package/src/lib/styles/utils/mixins/_keyframes.scss +5 -0
- package/src/styles/styles.css +3796 -0
- package/src/styles/styles.css.map +1 -0
- package/types/camaradesuk-m3e-angular.d.ts +1644 -0
|
@@ -0,0 +1,1644 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ModelSignal, InjectionToken, Provider, Signal, DoCheck, AnimationCallbackEvent, DestroyRef, TemplateRef, ElementRef, ComponentRef, OnDestroy } from '@angular/core';
|
|
3
|
+
import * as _camaradesuk_m3e_angular from '@camaradesuk/m3e-angular';
|
|
4
|
+
import { MatButtonAppearance } from '@angular/material/button';
|
|
5
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { MatMenu } from '@angular/material/menu';
|
|
8
|
+
import { ComponentPortal, ComponentType } from '@angular/cdk/portal';
|
|
9
|
+
import { MatDialogConfig, MatDialogState, DialogPosition } from '@angular/material/dialog';
|
|
10
|
+
import * as rxjs from 'rxjs';
|
|
11
|
+
import { Subject } from 'rxjs';
|
|
12
|
+
import { CdkDialogContainer, DialogRef } from '@angular/cdk/dialog';
|
|
13
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
14
|
+
import { GlobalPositionStrategy } from '@angular/cdk/overlay';
|
|
15
|
+
|
|
16
|
+
type MatExpButtonSizeM = 'm';
|
|
17
|
+
type MatExpButtonSizeS = 's';
|
|
18
|
+
type MatExpButtonSizeL = 'l';
|
|
19
|
+
type MatExpButtonSizeXS = 'xs';
|
|
20
|
+
type MatExpButtonSizeXL = 'xl';
|
|
21
|
+
type MatExpButtonSize = MatExpButtonSizeXS | MatExpButtonSizeS | MatExpButtonSizeM | MatExpButtonSizeL | MatExpButtonSizeXL;
|
|
22
|
+
type MatExpButtonGroupSize = MatExpButtonSize;
|
|
23
|
+
|
|
24
|
+
type MatExpButtonGroupSelectionSingleSelect = 'single-select';
|
|
25
|
+
type MatExpButtonGroupSelectionMultiSelect = 'multi-select';
|
|
26
|
+
type MatExpButtonGroupSelection = MatExpButtonGroupSelectionSingleSelect | MatExpButtonGroupSelectionMultiSelect;
|
|
27
|
+
|
|
28
|
+
type MatExpButtonShapeRound = 'round';
|
|
29
|
+
type MatExpButtonShapeSquare = 'square';
|
|
30
|
+
type MatExpButtonShape = MatExpButtonShapeRound | MatExpButtonShapeSquare;
|
|
31
|
+
type MatExpButtonGroupShape = MatExpButtonShape;
|
|
32
|
+
|
|
33
|
+
type MatExpButtonStatePressed = 'pressed';
|
|
34
|
+
type MatExpButtonStateHovered = 'hovered';
|
|
35
|
+
type MatExpButtonStateFocused = 'focused';
|
|
36
|
+
type MatExpButtonStateActive = 'active';
|
|
37
|
+
type MatExpButtonStateDisabled = 'disabled';
|
|
38
|
+
type MatExpButtonState = MatExpButtonStatePressed | MatExpButtonStateHovered | MatExpButtonStateFocused | MatExpButtonStateActive | MatExpButtonStateDisabled;
|
|
39
|
+
|
|
40
|
+
type MatExpButtonToggleSelected = 'selected';
|
|
41
|
+
type MatExpButtonToggleUnselected = 'unselected';
|
|
42
|
+
type MatExpButtonToggle = MatExpButtonToggleSelected | MatExpButtonToggleUnselected;
|
|
43
|
+
|
|
44
|
+
type MatExpIconButtonWidthDefault = 'default';
|
|
45
|
+
type MatExpIconButtonWidthNarrow = 'narrow';
|
|
46
|
+
type MatExpIconButtonWidthWide = 'wide';
|
|
47
|
+
type MatExpIconButtonWidth = MatExpIconButtonWidthDefault | MatExpIconButtonWidthNarrow | MatExpIconButtonWidthWide;
|
|
48
|
+
|
|
49
|
+
type MatExpIconButtonAppearance = 'text' | 'filled' | 'outlined' | 'tonal';
|
|
50
|
+
type MatExpButtonGroupAppearance = 'filled' | 'outlined' | 'tonal' | 'elevated';
|
|
51
|
+
type MatExpSplitButtonAppearance = 'filled' | 'elevated' | 'outlined' | 'tonal';
|
|
52
|
+
type MatExpFabMenuTriggerColor = 'primary' | 'secondary' | 'tertiary';
|
|
53
|
+
type MatExpFabMenuColor = MatExpFabMenuTriggerColor;
|
|
54
|
+
|
|
55
|
+
type MatExpButtonGroupVariantStandard = 'standard';
|
|
56
|
+
type MatExpButtonGroupVariantConnected = 'connected';
|
|
57
|
+
type MatExpButtonGroupVariant = MatExpButtonGroupVariantStandard | MatExpButtonGroupVariantConnected;
|
|
58
|
+
|
|
59
|
+
type MatExpLoadingIndicatorConfig = 'default' | 'contained';
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Speed preset for the `mat-exp-loading-indicator`'s shape morph and
|
|
63
|
+
* rotation animation. Each preset maps to one of the M3 Expressive spatial
|
|
64
|
+
* spring tokens:
|
|
65
|
+
*
|
|
66
|
+
* - `fast` – Expressive fast spatial – `cubic-bezier(0.42, 1.67, 0.21, 0.90)`, 350ms per morph step.
|
|
67
|
+
* - `default` – Expressive default spatial – `cubic-bezier(0.38, 1.21, 0.22, 1.00)`, 500ms per morph step.
|
|
68
|
+
* - `slow` – Expressive slow spatial – `cubic-bezier(0.39, 1.29, 0.35, 0.98)`, 650ms per morph step.
|
|
69
|
+
*
|
|
70
|
+
* @metaDescription Speed preset for the loading indicator's shape morph and rotation animation.
|
|
71
|
+
*/
|
|
72
|
+
type MatExpLoadingIndicatorSpeed = 'fast' | 'default' | 'slow';
|
|
73
|
+
|
|
74
|
+
/** Logical rich-tooltip placement; start/end follow the trigger's direction. */
|
|
75
|
+
type MatExpRichTooltipPosition = 'below-start' | 'below' | 'below-end' | 'above-start' | 'above' | 'above-end';
|
|
76
|
+
|
|
77
|
+
/** Toolbar configurations from the M3 Expressive web specification. */
|
|
78
|
+
type MatExpToolbarLayout = 'docked' | 'horizontal' | 'vertical';
|
|
79
|
+
/** Standard is low-emphasis; vibrant uses the primary container. */
|
|
80
|
+
type MatExpToolbarAppearance = 'standard' | 'vibrant';
|
|
81
|
+
/** Auto distributes docked controls in compact windows and centers them otherwise. */
|
|
82
|
+
type MatExpToolbarAlignment = 'auto' | 'center' | 'between' | 'even';
|
|
83
|
+
/** Logical edge used by optional controlled visibility motion. */
|
|
84
|
+
type MatExpToolbarExitEdge = 'bottom' | 'top' | 'start' | 'end';
|
|
85
|
+
|
|
86
|
+
/** Expanded search layout. Auto uses full-screen below 600 CSS pixels. */
|
|
87
|
+
type MatExpSearchLayout = 'auto' | 'docked' | 'full-screen';
|
|
88
|
+
/** Contained is the Expressive treatment; divided is the M3 baseline. */
|
|
89
|
+
type MatExpSearchAppearance = 'contained' | 'divided';
|
|
90
|
+
/** Alignment of the collapsed supporting text. Editing is always start-aligned. */
|
|
91
|
+
type MatExpSearchAlignment = 'start' | 'center';
|
|
92
|
+
/** Observable search transition lifecycle. */
|
|
93
|
+
type MatExpSearchState = 'closed' | 'opening' | 'open' | 'closing';
|
|
94
|
+
|
|
95
|
+
/** Geometry of a progress indicator. */
|
|
96
|
+
type MatExpProgressVariant = 'linear' | 'circular';
|
|
97
|
+
/** Whether the amount of completed work is known. */
|
|
98
|
+
type MatExpProgressMode = 'determinate' | 'indeterminate';
|
|
99
|
+
/** Shape of the active track. */
|
|
100
|
+
type MatExpProgressShape = 'standard' | 'wavy';
|
|
101
|
+
|
|
102
|
+
/** Visual containment; does not change interaction or selection behavior. */
|
|
103
|
+
type MatExpListAppearance = 'standard' | 'segmented';
|
|
104
|
+
/** Text overflow policy. Wrap permits rows to grow with content and text scaling. */
|
|
105
|
+
type MatExpListTextWrap = 'wrap' | 'truncate';
|
|
106
|
+
/** Explicit section boundary, or automatic sibling position excluding [hidden] rows. */
|
|
107
|
+
type MatExpListPosition = 'auto' | 'first' | 'middle' | 'last' | 'single';
|
|
108
|
+
/** Leading media crop; use with Material's matListItemAvatar projection slot. */
|
|
109
|
+
type MatExpListMedia = 'avatar' | 'image' | 'video';
|
|
110
|
+
|
|
111
|
+
/** Expanded rail placement. Standard takes layout space; modal overlays content. */
|
|
112
|
+
type MatExpNavigationRailMode = 'standard' | 'modal';
|
|
113
|
+
/** Placement of destinations; the menu and FAB always remain at the top. */
|
|
114
|
+
type MatExpNavigationRailAlignment = 'top' | 'center';
|
|
115
|
+
|
|
116
|
+
/** Compact confirmation or responsive task/form presentation. */
|
|
117
|
+
type MatExpDialogMode = 'alert' | 'adaptive';
|
|
118
|
+
/** Expressive spring motion respecting the OS preference, or no transition. */
|
|
119
|
+
type MatExpDialogMotion = 'system' | 'none';
|
|
120
|
+
/** Native options plus the presentation contract. Native data/results are unchanged. */
|
|
121
|
+
type MatExpDialogConfig<D = unknown> = Omit<MatDialogConfig<D>, 'role' | 'enterAnimationDuration' | 'exitAnimationDuration' | 'delayFocusTrap'> & {
|
|
122
|
+
/** Visible layout heading and fallback accessible name. Required and non-empty. */
|
|
123
|
+
title: string;
|
|
124
|
+
/** Motion policy; reduced motion always wins. @default 'system' */
|
|
125
|
+
motion?: MatExpDialogMotion;
|
|
126
|
+
/** Accessible label for the adaptive close button. @default 'Close dialog' */
|
|
127
|
+
closeLabel?: string;
|
|
128
|
+
} & ({
|
|
129
|
+
mode: 'alert';
|
|
130
|
+
origin?: never;
|
|
131
|
+
/** Explicitly choose urgent alert semantics or an ordinary confirmation. */
|
|
132
|
+
role: 'dialog' | 'alertdialog';
|
|
133
|
+
/** ID of the short confirmation message. Required for alert mode. */
|
|
134
|
+
ariaDescribedBy: string;
|
|
135
|
+
} | {
|
|
136
|
+
mode: 'adaptive';
|
|
137
|
+
/** Optional visible source element for centered or full-screen adaptive transforms. */
|
|
138
|
+
origin?: HTMLElement;
|
|
139
|
+
/** Task/forms are ordinary dialogs, never implicitly urgent. @default 'dialog' */
|
|
140
|
+
role?: 'dialog';
|
|
141
|
+
});
|
|
142
|
+
/** One-call confirmation; use open() for rich content or domain-specific validation. */
|
|
143
|
+
interface MatExpDialogConfirmationConfig extends Omit<MatDialogConfig<never>, 'data' | 'role' | 'ariaDescribedBy' | 'enterAnimationDuration' | 'exitAnimationDuration' | 'delayFocusTrap'> {
|
|
144
|
+
/** Visible heading and fallback accessible name. */
|
|
145
|
+
title: string;
|
|
146
|
+
/** Plain-text confirmation message (never interpreted as HTML). */
|
|
147
|
+
message: string;
|
|
148
|
+
/** Confirm button text. @default 'Confirm' */
|
|
149
|
+
confirmLabel?: string;
|
|
150
|
+
/** Dismiss button text. @default 'Cancel' */
|
|
151
|
+
cancelLabel?: string;
|
|
152
|
+
/** Ordinary confirmation unless explicitly marked urgent. @default 'dialog' */
|
|
153
|
+
role?: 'dialog' | 'alertdialog';
|
|
154
|
+
/** Motion policy; reduced motion always wins. @default 'system' */
|
|
155
|
+
motion?: MatExpDialogMotion;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface MatExpSelectableButton {
|
|
159
|
+
toggle: ModelSignal<MatExpButtonToggle | undefined>;
|
|
160
|
+
value: ModelSignal<unknown>;
|
|
161
|
+
_onButtonClick(): void;
|
|
162
|
+
}
|
|
163
|
+
/** Change event object emitted by button toggle. */
|
|
164
|
+
declare class MatExpSelectableButtonChange {
|
|
165
|
+
/** The button that emits the event. */
|
|
166
|
+
source: MatExpSelectableButton;
|
|
167
|
+
/** The value assigned to the button. */
|
|
168
|
+
value: unknown;
|
|
169
|
+
constructor(
|
|
170
|
+
/** The button that emits the event. */
|
|
171
|
+
source: MatExpSelectableButton,
|
|
172
|
+
/** The value assigned to the button. */
|
|
173
|
+
value: unknown);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Directive to style the Angular Material Button component with latest Material 3 Design System Expressive styles.
|
|
178
|
+
*/
|
|
179
|
+
declare class MatExpButton implements MatExpSelectableButton {
|
|
180
|
+
private readonly _options;
|
|
181
|
+
/**
|
|
182
|
+
* Host element of the button, used by `MatExpButtonGroup` to drive the
|
|
183
|
+
* press-bounce width animation on its projected children.
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
readonly _hostElement: HTMLElement;
|
|
187
|
+
/** @default 's' */
|
|
188
|
+
readonly size: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpButtonSize | undefined>;
|
|
189
|
+
/** @default 'round' */
|
|
190
|
+
readonly shape: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpButtonShape | undefined>;
|
|
191
|
+
/**
|
|
192
|
+
* The toggle state of the button (`'selected' | 'unselected'`).
|
|
193
|
+
*
|
|
194
|
+
* Inside a `MatExpButtonGroup`, the group is the source of truth: it manages this model for
|
|
195
|
+
* every projected button in response to clicks, keeping it in sync with the group's
|
|
196
|
+
* single-/multi-select state.
|
|
197
|
+
*
|
|
198
|
+
* Standalone (outside a group), a click does **not** flip this value automatically — the
|
|
199
|
+
* directive's click handler only delegates to a parent group when one is present. Toggling a
|
|
200
|
+
* standalone button is consumer-driven: two-way bind `toggle` and flip it yourself in your own
|
|
201
|
+
* `(click)` handler, e.g.
|
|
202
|
+
* `[(toggle)]="state" (click)="state.set(state() === 'selected' ? 'unselected' : 'selected')"`.
|
|
203
|
+
* This is an intentional, documented contract (see issue #188) — not a bug.
|
|
204
|
+
*/
|
|
205
|
+
readonly toggle: _angular_core.ModelSignal<MatExpButtonToggle | undefined>;
|
|
206
|
+
readonly value: _angular_core.ModelSignal<unknown>;
|
|
207
|
+
/**
|
|
208
|
+
* `aria-pressed`, derived from `toggle()`. `null` when the button does not
|
|
209
|
+
* participate in toggle behavior, so the attribute is omitted entirely
|
|
210
|
+
* rather than rendered as `aria-pressed="false"` (its mere presence changes
|
|
211
|
+
* how assistive technology announces the control).
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
readonly ariaPressed: _angular_core.Signal<"true" | "false" | null>;
|
|
215
|
+
/**
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
readonly matExpButtonClass = "mat-exp-button";
|
|
219
|
+
/**
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
222
|
+
readonly state: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonState | undefined>;
|
|
223
|
+
get appearance(): MatButtonAppearance | null;
|
|
224
|
+
set appearance(appearance: MatButtonAppearance);
|
|
225
|
+
get disabled(): boolean;
|
|
226
|
+
set disabled(disabled: boolean | undefined);
|
|
227
|
+
private readonly matButton;
|
|
228
|
+
private readonly buttonGroup;
|
|
229
|
+
_onButtonClick(): void;
|
|
230
|
+
private readonly matMenu;
|
|
231
|
+
get isMenuOpen(): boolean;
|
|
232
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpButton, never>;
|
|
233
|
+
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>;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface MatExpButtonOptions {
|
|
237
|
+
/**
|
|
238
|
+
* The size of the button.
|
|
239
|
+
*
|
|
240
|
+
* Default: `s`
|
|
241
|
+
*
|
|
242
|
+
*/
|
|
243
|
+
readonly size?: MatExpButtonSize;
|
|
244
|
+
/**
|
|
245
|
+
* The shape of the button.
|
|
246
|
+
*
|
|
247
|
+
* Default: `round`
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
250
|
+
readonly shape?: MatExpButtonShape;
|
|
251
|
+
/**
|
|
252
|
+
* The toggle state of the button.
|
|
253
|
+
*/
|
|
254
|
+
readonly toggle?: MatExpButtonToggle;
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
readonly state?: MatExpButtonState;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* @internal
|
|
262
|
+
*/
|
|
263
|
+
declare const MAT_EXP_BUTTON_DEFAULT_OPTIONS: MatExpButtonOptions;
|
|
264
|
+
declare const MAT_EXP_BUTTON_OPTIONS: _angular_core.InjectionToken<MatExpButtonOptions>;
|
|
265
|
+
declare const provideMatExpButtonOptions: (options: Partial<MatExpButtonOptions> | (() => Partial<MatExpButtonOptions>)) => _angular_core.FactoryProvider;
|
|
266
|
+
declare const injectMatExpButtonOptions: () => MatExpButtonOptions;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Directive to style the Angular Material Icon Button component with latest Material 3 Design System Expressive styles.
|
|
270
|
+
*/
|
|
271
|
+
declare class MatExpIconButton implements MatExpSelectableButton {
|
|
272
|
+
private readonly _options;
|
|
273
|
+
/**
|
|
274
|
+
* Host element of the button, used by `MatExpButtonGroup` to drive the
|
|
275
|
+
* press-bounce width animation on its projected children.
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
readonly _hostElement: HTMLElement;
|
|
279
|
+
/** @default 's' */
|
|
280
|
+
readonly size: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpButtonSize | undefined>;
|
|
281
|
+
/** @default 'round' */
|
|
282
|
+
readonly shape: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpButtonShape | undefined>;
|
|
283
|
+
readonly width: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpIconButtonWidth | undefined>;
|
|
284
|
+
/**
|
|
285
|
+
* The toggle state of the icon button (`'selected' | 'unselected'`).
|
|
286
|
+
*
|
|
287
|
+
* Inside a `MatExpButtonGroup`, the group is the source of truth: it manages this model for
|
|
288
|
+
* every projected button in response to clicks, keeping it in sync with the group's
|
|
289
|
+
* single-/multi-select state.
|
|
290
|
+
*
|
|
291
|
+
* Standalone (outside a group), a click does **not** flip this value automatically — the
|
|
292
|
+
* directive's click handler only delegates to a parent group when one is present. Toggling a
|
|
293
|
+
* standalone button is consumer-driven: two-way bind `toggle` and flip it yourself in your own
|
|
294
|
+
* `(click)` handler, e.g.
|
|
295
|
+
* `[(toggle)]="state" (click)="state.set(state() === 'selected' ? 'unselected' : 'selected')"`.
|
|
296
|
+
* This is an intentional, documented contract (see issue #188) — not a bug.
|
|
297
|
+
*/
|
|
298
|
+
readonly toggle: _angular_core.ModelSignal<MatExpButtonToggle | undefined>;
|
|
299
|
+
readonly value: _angular_core.ModelSignal<unknown>;
|
|
300
|
+
/**
|
|
301
|
+
* `aria-pressed`, derived from `toggle()`. `null` when the button does not
|
|
302
|
+
* participate in toggle behavior, so the attribute is omitted entirely
|
|
303
|
+
* rather than rendered as `aria-pressed="false"` (its mere presence changes
|
|
304
|
+
* how assistive technology announces the control).
|
|
305
|
+
* @internal
|
|
306
|
+
*/
|
|
307
|
+
readonly ariaPressed: _angular_core.Signal<"true" | "false" | null>;
|
|
308
|
+
private _appearance;
|
|
309
|
+
get appearance(): MatExpIconButtonAppearance | undefined;
|
|
310
|
+
set appearance(appearance: MatExpIconButtonAppearance | undefined);
|
|
311
|
+
/**
|
|
312
|
+
* @internal
|
|
313
|
+
*/
|
|
314
|
+
readonly matExpIconButtonClass = "mat-exp-icon-button";
|
|
315
|
+
/**
|
|
316
|
+
* @internal
|
|
317
|
+
*/
|
|
318
|
+
readonly state: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonState | undefined>;
|
|
319
|
+
get disabled(): boolean;
|
|
320
|
+
set disabled(disabled: boolean | undefined);
|
|
321
|
+
private readonly matIconButton;
|
|
322
|
+
private readonly buttonGroup;
|
|
323
|
+
_onButtonClick(): void;
|
|
324
|
+
private readonly matMenu;
|
|
325
|
+
get isMenuOpen(): boolean;
|
|
326
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpIconButton, never>;
|
|
327
|
+
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>;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
interface MatExpIconButtonOptions {
|
|
331
|
+
/**
|
|
332
|
+
* The appearance of the icon button.
|
|
333
|
+
*
|
|
334
|
+
* Default: `text`
|
|
335
|
+
*
|
|
336
|
+
*/
|
|
337
|
+
readonly appearance?: MatExpIconButtonAppearance;
|
|
338
|
+
/**
|
|
339
|
+
* The size of the icon button.
|
|
340
|
+
*
|
|
341
|
+
* Default: `s`
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
readonly size?: MatExpButtonSize;
|
|
345
|
+
/**
|
|
346
|
+
* The shape of the icon button.
|
|
347
|
+
*
|
|
348
|
+
* Default: `round`
|
|
349
|
+
*
|
|
350
|
+
*/
|
|
351
|
+
readonly shape?: MatExpButtonShape;
|
|
352
|
+
/**
|
|
353
|
+
* The toggle state of the button.
|
|
354
|
+
*/
|
|
355
|
+
readonly toggle?: MatExpButtonToggle;
|
|
356
|
+
/**
|
|
357
|
+
* The width of the icon button.
|
|
358
|
+
*/
|
|
359
|
+
readonly width?: MatExpIconButtonWidth;
|
|
360
|
+
/**
|
|
361
|
+
* @internal
|
|
362
|
+
*/
|
|
363
|
+
readonly state?: MatExpButtonState;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @internal
|
|
367
|
+
*/
|
|
368
|
+
declare const MAT_EXP_ICON_BUTTON_DEFAULT_OPTIONS: MatExpIconButtonOptions;
|
|
369
|
+
declare const MAT_EXP_ICON_BUTTON_OPTIONS: _angular_core.InjectionToken<MatExpIconButtonOptions>;
|
|
370
|
+
declare const provideMatExpIconButtonOptions: (options: Partial<MatExpIconButtonOptions> | (() => Partial<MatExpIconButtonOptions>)) => _angular_core.FactoryProvider;
|
|
371
|
+
declare const injectMatExpIconButtonOptions: () => MatExpIconButtonOptions;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Injection token that can be used to reference instances of `MatExpButtonGroup`.
|
|
375
|
+
* It serves as alternative token to the actual `MatExpButtonGroup` class which
|
|
376
|
+
* could cause unnecessary retention of the class and its component metadata.
|
|
377
|
+
*/
|
|
378
|
+
declare const MAT_EXP_BUTTON_GROUP: InjectionToken<MatExpButtonGroup>;
|
|
379
|
+
/**
|
|
380
|
+
* Provider Expression that allows mat-exp-button-group to register as a ControlValueAccessor.
|
|
381
|
+
* This allows it to support [(ngModel)] and reactive forms.
|
|
382
|
+
* @docs-private
|
|
383
|
+
*/
|
|
384
|
+
declare const MAT_EXP_BUTTON_GROUP_VALUE_ACCESSOR: Provider;
|
|
385
|
+
/**
|
|
386
|
+
* Component that groups buttons and provides single/multi-select behavior
|
|
387
|
+
* compatible with Angular reactive and template-driven forms.
|
|
388
|
+
*/
|
|
389
|
+
declare class MatExpButtonGroup implements ControlValueAccessor {
|
|
390
|
+
private readonly _options;
|
|
391
|
+
/** @default 's' */
|
|
392
|
+
readonly size: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonSize | undefined>;
|
|
393
|
+
/** @default 'round' */
|
|
394
|
+
readonly shape: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonShape | undefined>;
|
|
395
|
+
/** @default 'single-select' */
|
|
396
|
+
readonly selection: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonGroupSelection | undefined>;
|
|
397
|
+
/** @default 'standard' */
|
|
398
|
+
readonly variant: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonGroupVariant | undefined>;
|
|
399
|
+
readonly appearance: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpButtonGroupAppearance | undefined>;
|
|
400
|
+
readonly disabled: _angular_core.ModelSignal<boolean | undefined>;
|
|
401
|
+
/**
|
|
402
|
+
* Disables the M3 Expressive press-bounce animation (see `button-group.animation.ts`).
|
|
403
|
+
* Only has an effect on the `standard` variant, which is the only variant the bounce ever
|
|
404
|
+
* runs on.
|
|
405
|
+
*
|
|
406
|
+
* @default false
|
|
407
|
+
*/
|
|
408
|
+
readonly disableBounce: _angular_core.InputSignal<boolean | undefined>;
|
|
409
|
+
/** Emits when the selected value changes, either via user interaction or programmatic update. */
|
|
410
|
+
readonly selectionChange: _angular_core.OutputEmitterRef<MatExpSelectableButtonChange>;
|
|
411
|
+
private _value;
|
|
412
|
+
/**
|
|
413
|
+
* The currently selected value. For `single-select` this is a single value;
|
|
414
|
+
* for `multi-select` this is an array of values.
|
|
415
|
+
*/
|
|
416
|
+
get value(): unknown;
|
|
417
|
+
set value(newValue: unknown);
|
|
418
|
+
/**
|
|
419
|
+
* @internal
|
|
420
|
+
*/
|
|
421
|
+
readonly matExpButtonGroupClass = "mat-exp-button-group";
|
|
422
|
+
readonly _matExpButtons: _angular_core.Signal<readonly MatExpButton[]>;
|
|
423
|
+
readonly _matExpIconButtons: _angular_core.Signal<readonly MatExpIconButton[]>;
|
|
424
|
+
readonly _allExpressiveButtons: _angular_core.Signal<(MatExpIconButton | MatExpButton)[]>;
|
|
425
|
+
/**
|
|
426
|
+
* `_allExpressiveButtons` adapted to the narrow `ButtonGroupChild` contract, used to
|
|
427
|
+
* broadcast `size`/`shape`/`appearance`/`disabled` without depending on the concrete
|
|
428
|
+
* button directive types.
|
|
429
|
+
* @internal
|
|
430
|
+
*/
|
|
431
|
+
readonly _allButtonGroupChildren: _angular_core.Signal<_camaradesuk_m3e_angular.ButtonGroupChild[]>;
|
|
432
|
+
/** Tracks which buttons are currently selected. */
|
|
433
|
+
_selectionModel: SelectionModel<MatExpSelectableButton>;
|
|
434
|
+
private _onChange;
|
|
435
|
+
private _onTouched;
|
|
436
|
+
private readonly _cdr;
|
|
437
|
+
private readonly _hostElement;
|
|
438
|
+
private readonly _ngZone;
|
|
439
|
+
/**
|
|
440
|
+
* Press-bounce driver for the M3 Expressive "standard button group"
|
|
441
|
+
* interaction (see `button-group.animation.ts`). Created lazily in the
|
|
442
|
+
* browser (`afterNextRender`), stays `null` on the server.
|
|
443
|
+
*/
|
|
444
|
+
private _bounce;
|
|
445
|
+
private readonly _interactionAbort;
|
|
446
|
+
constructor();
|
|
447
|
+
/**
|
|
448
|
+
* Projected button host elements in DOM order. The two `contentChildren`
|
|
449
|
+
* queries are each in DOM order but are concatenated per type, so a mixed
|
|
450
|
+
* group needs an explicit document-position sort.
|
|
451
|
+
*/
|
|
452
|
+
private _childButtonElements;
|
|
453
|
+
/** Whether a press on `button` should run the bounce animation right now. */
|
|
454
|
+
private _canBounceOn;
|
|
455
|
+
/**
|
|
456
|
+
* Mirrors Compose's `EnlargeOnPressNode` interaction handling: pointer and
|
|
457
|
+
* keyboard presses expand the pressed child; the release (or a cancel)
|
|
458
|
+
* lets it spring back. `Enter` activates on keydown, so it is treated as a
|
|
459
|
+
* press with an immediate release — the 0.75 release gate in the animation
|
|
460
|
+
* still plays the full bounce.
|
|
461
|
+
*/
|
|
462
|
+
private _setupBounceInteractions;
|
|
463
|
+
writeValue(value: unknown): void;
|
|
464
|
+
registerOnChange(fn: (value: unknown) => void): void;
|
|
465
|
+
registerOnTouched(fn: () => void): void;
|
|
466
|
+
setDisabledState(isDisabled: boolean): void;
|
|
467
|
+
/**
|
|
468
|
+
* Handles a button click: toggles selection state, updates the value,
|
|
469
|
+
* syncs toggle indicators, and notifies form infrastructure.
|
|
470
|
+
* @internal
|
|
471
|
+
*/
|
|
472
|
+
_onButtonClick(button: MatExpSelectableButton): void;
|
|
473
|
+
private _setValueAndSync;
|
|
474
|
+
/**
|
|
475
|
+
* Reads `_value` and selects the matching button instances in the selection model,
|
|
476
|
+
* then updates visual toggle states.
|
|
477
|
+
*/
|
|
478
|
+
private _syncButtonsWithValue;
|
|
479
|
+
/** Applies `selected`/`unselected` toggle state to every projected button. */
|
|
480
|
+
private _syncButtonToggleStates;
|
|
481
|
+
/** Derives `_value` from the current selection model state. */
|
|
482
|
+
private _updateValueFromModel;
|
|
483
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpButtonGroup, never>;
|
|
484
|
+
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>;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
interface MatExpButtonGroupOptions {
|
|
488
|
+
/**
|
|
489
|
+
* The appearance of the buttons.
|
|
490
|
+
*
|
|
491
|
+
*/
|
|
492
|
+
readonly appearance?: MatExpButtonGroupAppearance;
|
|
493
|
+
/**
|
|
494
|
+
* The size of the button.
|
|
495
|
+
*
|
|
496
|
+
* Default: `s`
|
|
497
|
+
*
|
|
498
|
+
*/
|
|
499
|
+
readonly size?: MatExpButtonGroupSize;
|
|
500
|
+
/**
|
|
501
|
+
* The shape of the buttons.
|
|
502
|
+
*
|
|
503
|
+
* Default: `round`
|
|
504
|
+
*
|
|
505
|
+
*/
|
|
506
|
+
readonly shape?: MatExpButtonGroupShape;
|
|
507
|
+
/**
|
|
508
|
+
* The selection of the button group.
|
|
509
|
+
*/
|
|
510
|
+
readonly selection?: MatExpButtonGroupSelection;
|
|
511
|
+
/**
|
|
512
|
+
* The variant of the button group.
|
|
513
|
+
*
|
|
514
|
+
* Default: `standard`
|
|
515
|
+
*
|
|
516
|
+
*/
|
|
517
|
+
readonly variant?: MatExpButtonGroupVariant;
|
|
518
|
+
/**
|
|
519
|
+
* The disabled state of the button group.
|
|
520
|
+
*
|
|
521
|
+
* Default: `false`
|
|
522
|
+
*
|
|
523
|
+
*/
|
|
524
|
+
readonly disabled?: boolean;
|
|
525
|
+
/**
|
|
526
|
+
* Disables the M3 Expressive press-bounce animation (the interacted child's width springs up
|
|
527
|
+
* while its neighbors compress, then bounces back on release). Only has an effect on the
|
|
528
|
+
* `standard` variant, which is the only variant the bounce ever runs on.
|
|
529
|
+
*
|
|
530
|
+
* Default: `false`
|
|
531
|
+
*
|
|
532
|
+
*/
|
|
533
|
+
readonly disableBounce?: boolean;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @internal
|
|
537
|
+
*/
|
|
538
|
+
declare const MAT_EXP_BUTTON_GROUP_DEFAULT_OPTIONS: MatExpButtonGroupOptions;
|
|
539
|
+
declare const MAT_EXP_BUTTON_GROUP_OPTIONS: _angular_core.InjectionToken<MatExpButtonGroupOptions>;
|
|
540
|
+
declare const provideMatExpButtonGroupOptions: (options: Partial<MatExpButtonGroupOptions> | (() => Partial<MatExpButtonGroupOptions>)) => _angular_core.FactoryProvider;
|
|
541
|
+
declare const injectMatExpButtonGroupOptions: () => MatExpButtonGroupOptions;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Component to style the Angular Material Button component with latest Material 3 Design System Expressive styles.
|
|
545
|
+
*/
|
|
546
|
+
declare class MatExpSplitButton {
|
|
547
|
+
private readonly _options;
|
|
548
|
+
/** @default 's' */
|
|
549
|
+
readonly size: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpButtonSize | undefined>;
|
|
550
|
+
/** @default 'tonal' */
|
|
551
|
+
readonly appearance: _angular_core.ModelSignal<_camaradesuk_m3e_angular.MatExpSplitButtonAppearance | undefined>;
|
|
552
|
+
/**
|
|
553
|
+
* @internal
|
|
554
|
+
*/
|
|
555
|
+
readonly matExpSplitButtonClass = "mat-exp-split-button";
|
|
556
|
+
readonly _matExpButtons: _angular_core.Signal<readonly MatExpButton[]>;
|
|
557
|
+
readonly _matExpIconButtons: _angular_core.Signal<readonly MatExpIconButton[]>;
|
|
558
|
+
readonly _allExpressiveButtons: _angular_core.Signal<(MatExpIconButton | MatExpButton)[]>;
|
|
559
|
+
/**
|
|
560
|
+
* `_allExpressiveButtons` adapted to the narrow `ButtonGroupChild` contract, used to
|
|
561
|
+
* broadcast `size`/`appearance` without depending on the concrete button directive types.
|
|
562
|
+
* @internal
|
|
563
|
+
*/
|
|
564
|
+
readonly _allButtonGroupChildren: _angular_core.Signal<_camaradesuk_m3e_angular.ButtonGroupChild[]>;
|
|
565
|
+
constructor();
|
|
566
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpSplitButton, never>;
|
|
567
|
+
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>;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
interface MatExpSplitButtonOptions {
|
|
571
|
+
/**
|
|
572
|
+
* The size of the button.
|
|
573
|
+
*
|
|
574
|
+
* Default: `s`
|
|
575
|
+
*
|
|
576
|
+
*/
|
|
577
|
+
readonly size?: MatExpButtonSize;
|
|
578
|
+
/**
|
|
579
|
+
* The label of the split button.
|
|
580
|
+
*
|
|
581
|
+
* Default: `tonal`
|
|
582
|
+
*
|
|
583
|
+
*/
|
|
584
|
+
readonly appearance?: MatExpSplitButtonAppearance;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* @internal
|
|
588
|
+
*/
|
|
589
|
+
declare const MAT_EXP_SPLIT_BUTTON_DEFAULT_OPTIONS: MatExpSplitButtonOptions;
|
|
590
|
+
declare const MAT_EXP_SPLIT_BUTTON_OPTIONS: _angular_core.InjectionToken<MatExpSplitButtonOptions>;
|
|
591
|
+
declare const provideMatExpSplitButtonOptions: (options: Partial<MatExpSplitButtonOptions> | (() => Partial<MatExpSplitButtonOptions>)) => _angular_core.FactoryProvider;
|
|
592
|
+
declare const injectMatExpSplitButtonOptions: () => MatExpSplitButtonOptions;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Narrow contract that `MatExpButtonGroup` and `MatExpSplitButton` depend on
|
|
596
|
+
* instead of reaching into the full public surface of `MatExpButton` /
|
|
597
|
+
* `MatExpIconButton`.
|
|
598
|
+
*
|
|
599
|
+
* Keeping this interface narrow means a change to either button directive's public setters
|
|
600
|
+
* no longer ripples silently into both group/split-button implementations - only the adapter
|
|
601
|
+
* for the affected directive needs to change.
|
|
602
|
+
*
|
|
603
|
+
* @metaDescription Narrow contract that MatExpButtonGroup and MatExpSplitButton depend on for their projected children.
|
|
604
|
+
*/
|
|
605
|
+
interface ButtonGroupChild {
|
|
606
|
+
setSize(size: MatExpButtonSize): void;
|
|
607
|
+
setShape(shape: MatExpButtonShape): void;
|
|
608
|
+
setAppearance(appearance: MatButtonAppearance): void;
|
|
609
|
+
setDisabled(disabled: boolean): void;
|
|
610
|
+
}
|
|
611
|
+
/** Adapts a `MatExpButton` directive instance to the `ButtonGroupChild` contract. */
|
|
612
|
+
declare class ButtonAdapter implements ButtonGroupChild {
|
|
613
|
+
private readonly button;
|
|
614
|
+
constructor(button: MatExpButton);
|
|
615
|
+
setSize(size: MatExpButtonSize): void;
|
|
616
|
+
setShape(shape: MatExpButtonShape): void;
|
|
617
|
+
setAppearance(appearance: MatButtonAppearance): void;
|
|
618
|
+
setDisabled(disabled: boolean): void;
|
|
619
|
+
}
|
|
620
|
+
/** Adapts a `MatExpIconButton` directive instance to the `ButtonGroupChild` contract. */
|
|
621
|
+
declare class IconButtonAdapter implements ButtonGroupChild {
|
|
622
|
+
private readonly button;
|
|
623
|
+
constructor(button: MatExpIconButton);
|
|
624
|
+
setSize(size: MatExpButtonSize): void;
|
|
625
|
+
setShape(shape: MatExpButtonShape): void;
|
|
626
|
+
setAppearance(appearance: MatButtonAppearance): void;
|
|
627
|
+
setDisabled(disabled: boolean): void;
|
|
628
|
+
}
|
|
629
|
+
/** Wraps a projected button/icon-button directive instance in its `ButtonGroupChild` adapter. */
|
|
630
|
+
declare function toButtonGroupChild(button: MatExpButton | MatExpIconButton): ButtonGroupChild;
|
|
631
|
+
/** Reactive sources that can drive a broadcast to a set of `ButtonGroupChild` instances. */
|
|
632
|
+
interface ButtonGroupChildBroadcastConfig {
|
|
633
|
+
/** The current set of children to broadcast style/state changes to. */
|
|
634
|
+
children: Signal<readonly ButtonGroupChild[]>;
|
|
635
|
+
size?: Signal<MatExpButtonSize | undefined>;
|
|
636
|
+
shape?: Signal<MatExpButtonShape | undefined>;
|
|
637
|
+
appearance?: Signal<MatButtonAppearance | undefined>;
|
|
638
|
+
disabled?: Signal<boolean | undefined>;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Registers the effects that broadcast `size`/`shape`/`appearance`/`disabled` from a
|
|
642
|
+
* group-like host (`MatExpButtonGroup`, `MatExpSplitButton`) down to its
|
|
643
|
+
* projected `ButtonGroupChild` instances.
|
|
644
|
+
*
|
|
645
|
+
* This is the single implementation of the broadcast-effect logic that was previously
|
|
646
|
+
* duplicated between `button-group.ts` and `split-button.ts`. Must be called from within
|
|
647
|
+
* an injection context (e.g. a component/directive constructor).
|
|
648
|
+
*
|
|
649
|
+
* @metaDescription Registers effects that broadcast size/shape/appearance/disabled from a group-like host to its projected children.
|
|
650
|
+
*/
|
|
651
|
+
declare function bindButtonGroupChildren(config: ButtonGroupChildBroadcastConfig): void;
|
|
652
|
+
|
|
653
|
+
/** Configures the official web adaptation: a FAB opening a native Material menu. */
|
|
654
|
+
declare class MatExpFabMenu {
|
|
655
|
+
private readonly _options;
|
|
656
|
+
/** Color inherited by the paired FAB; the menu retains baseline surface colors. @default 'primary' */
|
|
657
|
+
readonly color: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpFabMenuTriggerColor>;
|
|
658
|
+
/** Enable native menu and Expressive trigger motion. Reduced motion always takes precedence. @default true */
|
|
659
|
+
readonly motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
660
|
+
private readonly _menu;
|
|
661
|
+
private readonly _originalClass;
|
|
662
|
+
constructor();
|
|
663
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpFabMenu, never>;
|
|
664
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpFabMenu, "mat-menu[matExpFabMenu]", ["matExpFabMenu"], { "color": { "alias": "color"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/** Advanced trigger styling; pair with matFab and matMenuTriggerFor. */
|
|
668
|
+
declare class MatExpFabMenuTrigger implements DoCheck {
|
|
669
|
+
/** Override the menu color for this FAB only; omit to inherit. @default undefined */
|
|
670
|
+
readonly color: _angular_core.InputSignal<MatExpFabMenuTriggerColor | undefined>;
|
|
671
|
+
private readonly _trigger;
|
|
672
|
+
private readonly _registry;
|
|
673
|
+
private readonly _options;
|
|
674
|
+
private readonly _element;
|
|
675
|
+
private readonly _menu;
|
|
676
|
+
private readonly _configuration;
|
|
677
|
+
/** @internal */
|
|
678
|
+
readonly _resolvedColor: _angular_core.Signal<MatExpFabMenuTriggerColor>;
|
|
679
|
+
/** Read-only open state, derived from the native trigger. */
|
|
680
|
+
readonly isMenuOpen: _angular_core.Signal<boolean>;
|
|
681
|
+
private readonly _media;
|
|
682
|
+
private readonly _disabledMotion;
|
|
683
|
+
private _motion?;
|
|
684
|
+
constructor();
|
|
685
|
+
/** @internal Native MatMenuTrigger's menu input is not a signal. */
|
|
686
|
+
ngDoCheck(): void;
|
|
687
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpFabMenuTrigger, never>;
|
|
688
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpFabMenuTrigger, "[matExpFabMenuTrigger]", ["matExpFabMenuTrigger"], { "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/** A named FAB with an owned add/close icon transition and native menu behavior.
|
|
692
|
+
* Project a decorative icon to replace the default add glyph. Use the trigger directive
|
|
693
|
+
* directly when the application needs additional native button/trigger options.
|
|
694
|
+
*/
|
|
695
|
+
declare class MatExpFabMenuButton {
|
|
696
|
+
/** Native menu containing the application's projected actions. */
|
|
697
|
+
readonly menu: _angular_core.InputSignal<MatMenu>;
|
|
698
|
+
/** Accessible name describing the menu, for example “Create new”. */
|
|
699
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
700
|
+
/** Disable the native FAB. @default false */
|
|
701
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
702
|
+
/** Optional per-trigger override; normally inherit the menu color. @default undefined */
|
|
703
|
+
readonly color: _angular_core.InputSignal<MatExpFabMenuTriggerColor | undefined>;
|
|
704
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpFabMenuButton, never>;
|
|
705
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpFabMenuButton, "mat-exp-fab-menu-button", never, { "menu": { "alias": "menu"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
/** Default presentation for a FAB and its native web menu. */
|
|
709
|
+
interface MatExpFabMenuOptions {
|
|
710
|
+
/** Color inherited by paired FAB triggers. @default 'primary' */
|
|
711
|
+
readonly color: MatExpFabMenuColor;
|
|
712
|
+
/** Enable motion unless the user requests reduced motion. @default true */
|
|
713
|
+
readonly motion: boolean;
|
|
714
|
+
}
|
|
715
|
+
/** Injector-scoped FAB menu defaults. */
|
|
716
|
+
declare const MAT_EXP_FAB_MENU_OPTIONS: _angular_core.InjectionToken<MatExpFabMenuOptions>;
|
|
717
|
+
/** Override FAB menu defaults without configuring each trigger separately. */
|
|
718
|
+
declare const provideMatExpFabMenuOptions: (options: Partial<MatExpFabMenuOptions> | (() => Partial<MatExpFabMenuOptions>)) => _angular_core.FactoryProvider;
|
|
719
|
+
/** @internal */
|
|
720
|
+
declare const injectMatExpFabMenuOptions: () => MatExpFabMenuOptions;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Material 3 Expressive loading indicator. Renders a continuously morphing and
|
|
724
|
+
* rotating shape that loops through the seven canonical M3 shapes.
|
|
725
|
+
*
|
|
726
|
+
* All animation work is driven by GSAP – there are no CSS keyframes:
|
|
727
|
+
*
|
|
728
|
+
* - **Entry** – Angular's `(animate.enter)` event binding hands control to
|
|
729
|
+
* GSAP, which fades the wrapper from `autoAlpha: 0 / scale: 0.85 → 1` over
|
|
730
|
+
* ~200ms (`power2.out`) and calls `event.animationComplete()` once the
|
|
731
|
+
* tween finishes.
|
|
732
|
+
* - **Exit** – `(animate.leave)` runs the inverse tween over ~150ms
|
|
733
|
+
* (`power2.in`); Angular waits for `animationComplete()` before detaching
|
|
734
|
+
* the element from the DOM.
|
|
735
|
+
* - **Rotation & shape morph** – modelled on the Compose Material3
|
|
736
|
+
* `LoadingIndicator` choreography:
|
|
737
|
+
* - a continuous **linear background rotation** on a wrapper `<g>`
|
|
738
|
+
* (`intervalMs × ~7.178` per full revolution, matching Compose's ratio),
|
|
739
|
+
* - on top of it, a **per-step spring** that morphs the inner `<path>` to
|
|
740
|
+
* the next shape **and** kicks its rotation by 90°, eased through one of
|
|
741
|
+
* the M3 Expressive spatial spring cubic-bezier presets. The spring's
|
|
742
|
+
* overshoot is what produces the visible bounce at each morph boundary.
|
|
743
|
+
*
|
|
744
|
+
* Motion tokens live in `loading-indicator.animation.ts` – the SCSS only
|
|
745
|
+
* ships visual tokens (size, colour, ratio). Override motion globally via
|
|
746
|
+
* `provideMatExpLoadingIndicatorOptions` or per-instance via the
|
|
747
|
+
* `speed` input.
|
|
748
|
+
*
|
|
749
|
+
* `prefers-reduced-motion: reduce` is honoured on every layer: the entry /
|
|
750
|
+
* exit tweens short-circuit to `event.animationComplete()`, and the
|
|
751
|
+
* rotation / morph timelines are skipped via `gsap.matchMedia()`.
|
|
752
|
+
*
|
|
753
|
+
* @metaDescription Material 3 Expressive loading indicator with a GSAP-driven morphing, rotating shape animation.
|
|
754
|
+
*/
|
|
755
|
+
declare class MatExpLoadingIndicator {
|
|
756
|
+
private readonly _options;
|
|
757
|
+
/**
|
|
758
|
+
* Visual configuration of the indicator.
|
|
759
|
+
*
|
|
760
|
+
* - `default` – renders just the morphing shape.
|
|
761
|
+
* - `contained` – renders the morphing shape on top of a tonal background
|
|
762
|
+
* "container" circle.
|
|
763
|
+
*
|
|
764
|
+
* @default 'default'
|
|
765
|
+
*/
|
|
766
|
+
readonly config: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpLoadingIndicatorConfig | undefined>;
|
|
767
|
+
/**
|
|
768
|
+
* Accessible label announced by screen readers while the indicator is shown.
|
|
769
|
+
*
|
|
770
|
+
* @default 'Loading'
|
|
771
|
+
*/
|
|
772
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
773
|
+
/**
|
|
774
|
+
* Speed preset for the shape morph and rotation animation. Each preset maps
|
|
775
|
+
* to one of the M3 Expressive spatial spring tokens (`fast`, `default`,
|
|
776
|
+
* `slow`) – see {@linkcode MatExpLoadingIndicatorSpeed}.
|
|
777
|
+
*
|
|
778
|
+
* Changing this signal at runtime tears down the active GSAP timelines and
|
|
779
|
+
* re-builds them with the new spring, so the indicator stays in sync with
|
|
780
|
+
* the new motion language without recreating the component.
|
|
781
|
+
*
|
|
782
|
+
* @default 'default'
|
|
783
|
+
*/
|
|
784
|
+
readonly speed: _angular_core.InputSignal<MatExpLoadingIndicatorSpeed>;
|
|
785
|
+
/** @internal */
|
|
786
|
+
readonly matExpLoadingIndicatorClass = "mat-exp-loading-indicator";
|
|
787
|
+
/**
|
|
788
|
+
* Ordered list of SVG path `d` strings used by the shape morph loop.
|
|
789
|
+
* @internal
|
|
790
|
+
*/
|
|
791
|
+
readonly shapes: readonly string[];
|
|
792
|
+
/** @internal */
|
|
793
|
+
readonly viewBox: "0 0 380 380";
|
|
794
|
+
private readonly containerRef;
|
|
795
|
+
private readonly rotatorRef;
|
|
796
|
+
private readonly springRotatorRef;
|
|
797
|
+
private readonly pathRef;
|
|
798
|
+
private readonly isBrowser;
|
|
799
|
+
constructor();
|
|
800
|
+
/**
|
|
801
|
+
* @internal
|
|
802
|
+
* Bound via `host` to `(animate.enter)`.
|
|
803
|
+
*/
|
|
804
|
+
onEnter(event: AnimationCallbackEvent): void;
|
|
805
|
+
/**
|
|
806
|
+
* @internal
|
|
807
|
+
* Bound via `host` to `(animate.leave)`.
|
|
808
|
+
*/
|
|
809
|
+
onLeave(event: AnimationCallbackEvent): void;
|
|
810
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpLoadingIndicator, never>;
|
|
811
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpLoadingIndicator, "mat-exp-loading-indicator", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "speed": { "alias": "speed"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
interface MatExpLoadingIndicatorOptions {
|
|
815
|
+
/**
|
|
816
|
+
* The config of the loading indicator.
|
|
817
|
+
*
|
|
818
|
+
* Default: `default`
|
|
819
|
+
*
|
|
820
|
+
*/
|
|
821
|
+
readonly config?: MatExpLoadingIndicatorConfig;
|
|
822
|
+
/**
|
|
823
|
+
* The accessible label announced to assistive technologies when the loading
|
|
824
|
+
* indicator is displayed.
|
|
825
|
+
*
|
|
826
|
+
* Default: `Loading`
|
|
827
|
+
*/
|
|
828
|
+
readonly ariaLabel?: string;
|
|
829
|
+
/**
|
|
830
|
+
* Speed preset for the shape morph and rotation animation. Each preset maps
|
|
831
|
+
* to one of the M3 Expressive spatial spring tokens:
|
|
832
|
+
*
|
|
833
|
+
* - `fast` – Expressive fast spatial – `cubic-bezier(0.42, 1.67, 0.21, 0.90)`, 350ms per morph step.
|
|
834
|
+
* - `default` – Expressive default spatial – `cubic-bezier(0.38, 1.21, 0.22, 1.00)`, 500ms per morph step.
|
|
835
|
+
* - `slow` – Expressive slow spatial – `cubic-bezier(0.39, 1.29, 0.35, 0.98)`, 650ms per morph step.
|
|
836
|
+
*
|
|
837
|
+
* Default: `fast` – matches the original M3 spec for the loading indicator.
|
|
838
|
+
*/
|
|
839
|
+
readonly speed?: MatExpLoadingIndicatorSpeed;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* @internal
|
|
843
|
+
*/
|
|
844
|
+
declare const MAT_EXP_LOADING_INDICATOR_DEFAULT_OPTIONS: MatExpLoadingIndicatorOptions;
|
|
845
|
+
declare const MAT_EXP_LOADING_INDICATOR_OPTIONS: _angular_core.InjectionToken<MatExpLoadingIndicatorOptions>;
|
|
846
|
+
declare const provideMatExpLoadingIndicatorOptions: (options: Partial<MatExpLoadingIndicatorOptions> | (() => Partial<MatExpLoadingIndicatorOptions>)) => _angular_core.FactoryProvider;
|
|
847
|
+
declare const injectMatExpLoadingIndicatorOptions: () => MatExpLoadingIndicatorOptions;
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Ordered set of SVG path `d` strings used by the M3 Expressive loading
|
|
851
|
+
* indicator. Each shape is drawn inside the same `0 0 380 380` viewBox and is
|
|
852
|
+
* roughly centered on (190, 190) so they can be morphed and rotated about
|
|
853
|
+
* their common center.
|
|
854
|
+
*
|
|
855
|
+
* The exact set and order mirrors the SVG assets shipped at
|
|
856
|
+
* `src/assets/shapes` – see `loading-indicator.ts`.
|
|
857
|
+
*
|
|
858
|
+
* @internal
|
|
859
|
+
*/
|
|
860
|
+
declare const MAT_EXP_LOADING_INDICATOR_VIEW_BOX: "0 0 380 380";
|
|
861
|
+
/**
|
|
862
|
+
* @internal
|
|
863
|
+
*/
|
|
864
|
+
declare const MAT_EXP_LOADING_INDICATOR_SHAPES: readonly string[];
|
|
865
|
+
|
|
866
|
+
/** @internal */
|
|
867
|
+
interface ProgressFrame {
|
|
868
|
+
active: string;
|
|
869
|
+
track: string;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/** Material 3 linear and circular progress, with optional expressive waves. */
|
|
873
|
+
declare class MatExpProgressIndicator {
|
|
874
|
+
private readonly _options;
|
|
875
|
+
private readonly _host;
|
|
876
|
+
private readonly _browser;
|
|
877
|
+
private readonly _width;
|
|
878
|
+
private _displayed;
|
|
879
|
+
private _amplitude;
|
|
880
|
+
private _initialized;
|
|
881
|
+
private _clock;
|
|
882
|
+
private _phase;
|
|
883
|
+
private _wavelength;
|
|
884
|
+
private _lastDeterminate;
|
|
885
|
+
private _handoffActive;
|
|
886
|
+
private _ranges;
|
|
887
|
+
/** Geometry. @default 'linear' */
|
|
888
|
+
readonly variant: _angular_core.InputSignal<MatExpProgressVariant>;
|
|
889
|
+
/** Show the inactive track; disable inside buttons. @default true */
|
|
890
|
+
readonly showTrack: _angular_core.InputSignal<boolean>;
|
|
891
|
+
/** Known or unknown progress. @default 'determinate' */
|
|
892
|
+
readonly mode: _angular_core.InputSignal<MatExpProgressMode>;
|
|
893
|
+
/** Active track shape. @default 'standard' */
|
|
894
|
+
readonly shape: _angular_core.InputSignal<MatExpProgressShape>;
|
|
895
|
+
/** Completed work as a percentage, clamped to 0–100; non-finite values become 0. @default 0 */
|
|
896
|
+
readonly value: _angular_core.InputSignal<number>;
|
|
897
|
+
/** Process and content description. @default 'Loading' */
|
|
898
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
899
|
+
/** ID of a visible label, taking precedence over ariaLabel. @default null */
|
|
900
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | null>;
|
|
901
|
+
/** Optional human-readable progress, e.g. "3 of 5 files". @default null */
|
|
902
|
+
readonly valueText: _angular_core.InputSignal<string | null>;
|
|
903
|
+
/** Active stroke width in pixels. @default 4 */
|
|
904
|
+
readonly thickness: _angular_core.InputSignal<number>;
|
|
905
|
+
/** Inactive stroke width in pixels. @default 4 */
|
|
906
|
+
readonly trackThickness: _angular_core.InputSignal<number>;
|
|
907
|
+
/** Visible track separation in pixels. @default 4 */
|
|
908
|
+
readonly gap: _angular_core.InputSignal<number>;
|
|
909
|
+
/** Linear determinate end dot diameter; 0 requires sufficient track contrast. @default 4 */
|
|
910
|
+
readonly stopSize: _angular_core.InputSignal<number>;
|
|
911
|
+
/** Peak wave displacement in pixels; null selects linear 3 or circular 1.6. @default null */
|
|
912
|
+
readonly amplitude: _angular_core.InputSignal<number | null>;
|
|
913
|
+
/** Wave length in pixels; null selects linear 40/20 or circular 15. @default null */
|
|
914
|
+
readonly wavelength: _angular_core.InputSignal<number | null>;
|
|
915
|
+
/** Wave travel in pixels/second; null travels one wavelength/second. Zero stops wave travel. @default null */
|
|
916
|
+
readonly waveSpeed: _angular_core.InputSignal<number | null>;
|
|
917
|
+
/** Circular outer diameter in pixels; null selects standard 40 or wavy 48. @default null */
|
|
918
|
+
readonly diameter: _angular_core.InputSignal<number | null>;
|
|
919
|
+
/** @internal */
|
|
920
|
+
readonly _value: _angular_core.Signal<number>;
|
|
921
|
+
/** @internal */
|
|
922
|
+
readonly _size: _angular_core.Signal<number>;
|
|
923
|
+
/** @internal */
|
|
924
|
+
readonly _geometry: _angular_core.Signal<{
|
|
925
|
+
circular: boolean;
|
|
926
|
+
width: number;
|
|
927
|
+
height: number;
|
|
928
|
+
thickness: number;
|
|
929
|
+
trackThickness: number;
|
|
930
|
+
amplitude: number;
|
|
931
|
+
wavelength: number;
|
|
932
|
+
gap: number;
|
|
933
|
+
}>;
|
|
934
|
+
/** @internal */
|
|
935
|
+
readonly _stop: _angular_core.Signal<number>;
|
|
936
|
+
/** @internal SSR and first-paint geometry; animation writes only path data afterward. */
|
|
937
|
+
readonly _initial: _angular_core.Signal<ProgressFrame>;
|
|
938
|
+
constructor();
|
|
939
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpProgressIndicator, never>;
|
|
940
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpProgressIndicator, "mat-exp-progress-indicator", ["matExpProgressIndicator"], { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showTrack": { "alias": "showTrack"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "trackThickness": { "alias": "trackThickness"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "stopSize": { "alias": "stopSize"; "required": false; "isSignal": true; }; "amplitude": { "alias": "amplitude"; "required": false; "isSignal": true; }; "wavelength": { "alias": "wavelength"; "required": false; "isSignal": true; }; "waveSpeed": { "alias": "waveSpeed"; "required": false; "isSignal": true; }; "diameter": { "alias": "diameter"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/** Application defaults for progress indicators. Geometry inputs are CSS pixels. */
|
|
944
|
+
interface MatExpProgressIndicatorOptions {
|
|
945
|
+
/** @default 'linear' */
|
|
946
|
+
variant: MatExpProgressVariant;
|
|
947
|
+
/** Whether the inactive track is visible. Disable inside buttons. @default true */
|
|
948
|
+
showTrack: boolean;
|
|
949
|
+
/** @default 'determinate' */
|
|
950
|
+
mode: MatExpProgressMode;
|
|
951
|
+
/** @default 'standard' */
|
|
952
|
+
shape: MatExpProgressShape;
|
|
953
|
+
/** Describe the process and affected content. @default 'Loading' */
|
|
954
|
+
ariaLabel: string;
|
|
955
|
+
/** Active stroke width. @default 4 */
|
|
956
|
+
thickness: number;
|
|
957
|
+
/** Inactive stroke width. @default 4 */
|
|
958
|
+
trackThickness: number;
|
|
959
|
+
/** Visible separation between strokes. @default 4 */
|
|
960
|
+
gap: number;
|
|
961
|
+
/** Linear determinate stop diameter. Set to 0 only with sufficient track contrast. @default 4 */
|
|
962
|
+
stopSize: number;
|
|
963
|
+
}
|
|
964
|
+
/** @internal */
|
|
965
|
+
declare const MAT_EXP_PROGRESS_INDICATOR_DEFAULT_OPTIONS: MatExpProgressIndicatorOptions;
|
|
966
|
+
declare const MAT_EXP_PROGRESS_INDICATOR_OPTIONS: _angular_core.InjectionToken<MatExpProgressIndicatorOptions>;
|
|
967
|
+
declare const provideMatExpProgressIndicatorOptions: (options: Partial<MatExpProgressIndicatorOptions> | (() => Partial<MatExpProgressIndicatorOptions>)) => _angular_core.FactoryProvider;
|
|
968
|
+
declare const injectMatExpProgressIndicatorOptions: () => MatExpProgressIndicatorOptions;
|
|
969
|
+
|
|
970
|
+
/** Rich contextual help. Project supporting text and up to two Material text buttons. */
|
|
971
|
+
declare class MatExpRichTooltip {
|
|
972
|
+
/** @internal */
|
|
973
|
+
readonly _destroyRef: DestroyRef;
|
|
974
|
+
/** Optional concise subhead. @default '' */
|
|
975
|
+
readonly heading: _angular_core.InputSignal<string>;
|
|
976
|
+
/** Accessible name when no heading is supplied; localize for your application. @default More information */
|
|
977
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
978
|
+
/** @internal */
|
|
979
|
+
readonly _id: string;
|
|
980
|
+
/** @internal */
|
|
981
|
+
readonly _template: _angular_core.Signal<TemplateRef<any>>;
|
|
982
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpRichTooltip, never>;
|
|
983
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpRichTooltip, "mat-exp-rich-tooltip", ["matExpRichTooltip"], { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[matExpRichTooltipActions]"], true, never>;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/** Connect a focusable native control to rich contextual help. */
|
|
987
|
+
declare class MatExpRichTooltipTrigger {
|
|
988
|
+
private readonly _options;
|
|
989
|
+
private readonly _element;
|
|
990
|
+
private readonly _overlay;
|
|
991
|
+
private readonly _view;
|
|
992
|
+
private readonly _document;
|
|
993
|
+
private readonly _platform;
|
|
994
|
+
private readonly _focusMonitor;
|
|
995
|
+
private readonly _checker;
|
|
996
|
+
private readonly _direction;
|
|
997
|
+
private readonly _coordinator;
|
|
998
|
+
private readonly _destroy;
|
|
999
|
+
/** The associated rich-tooltip content. */
|
|
1000
|
+
readonly matExpRichTooltip: _angular_core.InputSignal<MatExpRichTooltip>;
|
|
1001
|
+
/** Click/tap opening with explicit dismissal. @default false */
|
|
1002
|
+
readonly matExpRichTooltipPersistent: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1003
|
+
/** Preferred logical placement; falls back above/below at viewport edges. @default below-start */
|
|
1004
|
+
readonly matExpRichTooltipPosition: _angular_core.InputSignal<MatExpRichTooltipPosition>;
|
|
1005
|
+
/** Hover delay in milliseconds. @default 500 */
|
|
1006
|
+
readonly matExpRichTooltipShowDelay: _angular_core.InputSignal<number>;
|
|
1007
|
+
/** Transient departure delay in milliseconds. @default 1500 */
|
|
1008
|
+
readonly matExpRichTooltipHideDelay: _angular_core.InputSignal<number>;
|
|
1009
|
+
/** Touch hold duration in milliseconds. @default 500 */
|
|
1010
|
+
readonly matExpRichTooltipTouchLongPressDelay: _angular_core.InputSignal<number>;
|
|
1011
|
+
/** Enable touch hold; scrolling and short taps remain native. @default true */
|
|
1012
|
+
readonly matExpRichTooltipTouchGestures: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1013
|
+
/** Prevent opening and dismiss immediately when changed to true. @default false */
|
|
1014
|
+
readonly matExpRichTooltipDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1015
|
+
/** Emitted once when the overlay opens. */
|
|
1016
|
+
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
1017
|
+
/** Emitted once when the overlay closes. */
|
|
1018
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
1019
|
+
private readonly _open;
|
|
1020
|
+
/** Read-only visible state. */
|
|
1021
|
+
readonly isOpen: _angular_core.Signal<boolean>;
|
|
1022
|
+
private _ref?;
|
|
1023
|
+
private _cleanup;
|
|
1024
|
+
private _showTimer?;
|
|
1025
|
+
private _hideTimer?;
|
|
1026
|
+
private _touchTimer?;
|
|
1027
|
+
private _touch?;
|
|
1028
|
+
private _suppressClickUntil;
|
|
1029
|
+
private _touchOpened;
|
|
1030
|
+
private _hovered;
|
|
1031
|
+
private _panelHovered;
|
|
1032
|
+
private _restoring;
|
|
1033
|
+
private _keyboardFocused;
|
|
1034
|
+
constructor();
|
|
1035
|
+
/** Open immediately, including persistent feature explanations. Does not steal focus. */
|
|
1036
|
+
show(): void;
|
|
1037
|
+
/** Dismiss immediately. Restore the trigger only if focus was inside the tooltip. */
|
|
1038
|
+
hide(): void;
|
|
1039
|
+
private _hide;
|
|
1040
|
+
/** @internal */
|
|
1041
|
+
_pointerEnter(event: PointerEvent): void;
|
|
1042
|
+
/** @internal */
|
|
1043
|
+
_leave(): void;
|
|
1044
|
+
/** @internal */
|
|
1045
|
+
_pointerDown(event: PointerEvent): void;
|
|
1046
|
+
/** @internal */
|
|
1047
|
+
_pointerMove(event: PointerEvent): void;
|
|
1048
|
+
/** @internal */
|
|
1049
|
+
_pointerUp(): void;
|
|
1050
|
+
/** @internal */
|
|
1051
|
+
_cancelTouch(): void;
|
|
1052
|
+
/** @internal */
|
|
1053
|
+
_contextMenu(event: Event): void;
|
|
1054
|
+
/** @internal */
|
|
1055
|
+
_click(): void;
|
|
1056
|
+
/** @internal */
|
|
1057
|
+
_keydown(event: KeyboardEvent): void;
|
|
1058
|
+
private _panelKeydown;
|
|
1059
|
+
private _panelTabStops;
|
|
1060
|
+
private _tabbables;
|
|
1061
|
+
private _focusTrigger;
|
|
1062
|
+
private _contains;
|
|
1063
|
+
private _scheduleHide;
|
|
1064
|
+
private _cancelHide;
|
|
1065
|
+
private _clearTimers;
|
|
1066
|
+
private _getDirection;
|
|
1067
|
+
private _updatePosition;
|
|
1068
|
+
private _positions;
|
|
1069
|
+
private _listen;
|
|
1070
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpRichTooltipTrigger, never>;
|
|
1071
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpRichTooltipTrigger, "[matExpRichTooltip]", ["matExpRichTooltipTrigger"], { "matExpRichTooltip": { "alias": "matExpRichTooltip"; "required": true; "isSignal": true; }; "matExpRichTooltipPersistent": { "alias": "matExpRichTooltipPersistent"; "required": false; "isSignal": true; }; "matExpRichTooltipPosition": { "alias": "matExpRichTooltipPosition"; "required": false; "isSignal": true; }; "matExpRichTooltipShowDelay": { "alias": "matExpRichTooltipShowDelay"; "required": false; "isSignal": true; }; "matExpRichTooltipHideDelay": { "alias": "matExpRichTooltipHideDelay"; "required": false; "isSignal": true; }; "matExpRichTooltipTouchLongPressDelay": { "alias": "matExpRichTooltipTouchLongPressDelay"; "required": false; "isSignal": true; }; "matExpRichTooltipTouchGestures": { "alias": "matExpRichTooltipTouchGestures"; "required": false; "isSignal": true; }; "matExpRichTooltipDisabled": { "alias": "matExpRichTooltipDisabled"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
interface MatExpRichTooltipOptions {
|
|
1075
|
+
/** Placement relative to the trigger. @default below-start */
|
|
1076
|
+
position: MatExpRichTooltipPosition;
|
|
1077
|
+
/** Click/tap instead of hover/focus/long-press; remains until dismissed. @default false */
|
|
1078
|
+
persistent: boolean;
|
|
1079
|
+
/** Hover opening delay in milliseconds. @default 500 */
|
|
1080
|
+
showDelay: number;
|
|
1081
|
+
/** Departure delay in milliseconds. @default 1500 */
|
|
1082
|
+
hideDelay: number;
|
|
1083
|
+
/** Touch hold duration in milliseconds. @default 500 */
|
|
1084
|
+
touchLongPressDelay: number;
|
|
1085
|
+
/** Enable touch hold gestures without preventing scrolling. @default true */
|
|
1086
|
+
touchGestures: boolean;
|
|
1087
|
+
/** Disable opening and close any visible tooltip. @default false */
|
|
1088
|
+
disabled: boolean;
|
|
1089
|
+
}
|
|
1090
|
+
/** @internal */
|
|
1091
|
+
declare const MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS: MatExpRichTooltipOptions;
|
|
1092
|
+
declare const MAT_EXP_RICH_TOOLTIP_OPTIONS: _angular_core.InjectionToken<MatExpRichTooltipOptions>;
|
|
1093
|
+
declare const provideMatExpRichTooltipOptions: (options: Partial<MatExpRichTooltipOptions> | (() => Partial<MatExpRichTooltipOptions>)) => _angular_core.FactoryProvider;
|
|
1094
|
+
/** @internal */
|
|
1095
|
+
declare const injectMatExpRichTooltipOptions: () => MatExpRichTooltipOptions;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* M3 Expressive toolbar layouts and color context on Angular Material's single-row toolbar.
|
|
1099
|
+
* Include `mat-exp-toolbar-styles()` and label the toolbar with aria-label/aria-labelledby.
|
|
1100
|
+
* Native Tab order and all control interactions remain with the projected Material controls.
|
|
1101
|
+
*/
|
|
1102
|
+
declare class MatExpToolbar {
|
|
1103
|
+
private readonly _isBrowser;
|
|
1104
|
+
private readonly _options;
|
|
1105
|
+
private readonly _element;
|
|
1106
|
+
private readonly _destroyRef;
|
|
1107
|
+
private readonly _directionality;
|
|
1108
|
+
private readonly _menus;
|
|
1109
|
+
private readonly _focused;
|
|
1110
|
+
private readonly _menuOpen;
|
|
1111
|
+
private readonly _directionVersion;
|
|
1112
|
+
private _motion?;
|
|
1113
|
+
private _focusObserver?;
|
|
1114
|
+
private readonly _materialToolbar;
|
|
1115
|
+
/** Docked or floating horizontal/vertical layout. @default 'docked' */
|
|
1116
|
+
readonly layout: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpToolbarLayout>;
|
|
1117
|
+
/** Toolbar and supported child-control color treatment. @default 'standard' */
|
|
1118
|
+
readonly appearance: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpToolbarAppearance>;
|
|
1119
|
+
/** Docked control distribution; floating toolbars always hug content. @default 'auto' */
|
|
1120
|
+
readonly alignment: _angular_core.InputSignal<_camaradesuk_m3e_angular.MatExpToolbarAlignment>;
|
|
1121
|
+
/**
|
|
1122
|
+
* Consumer-controlled visibility. No scroll listeners are installed. Focus inside the
|
|
1123
|
+
* toolbar or an open projected MatMenu keeps it visible. Provide an external reveal control.
|
|
1124
|
+
* @default true
|
|
1125
|
+
*/
|
|
1126
|
+
readonly visible: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Exit direction for controlled visibility; default bottom, or end for vertical layout.
|
|
1129
|
+
* Position the toolbar in a clipping parent at the corresponding edge.
|
|
1130
|
+
* @default undefined
|
|
1131
|
+
*/
|
|
1132
|
+
readonly exitEdge: _angular_core.InputSignal<MatExpToolbarExitEdge | undefined>;
|
|
1133
|
+
/** @internal */
|
|
1134
|
+
readonly _effectiveVisible: _angular_core.Signal<boolean>;
|
|
1135
|
+
constructor();
|
|
1136
|
+
private _hasUsableFocus;
|
|
1137
|
+
/** @internal */
|
|
1138
|
+
_onFocusIn(): void;
|
|
1139
|
+
/** @internal */
|
|
1140
|
+
_onFocusOut(event: FocusEvent): void;
|
|
1141
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpToolbar, never>;
|
|
1142
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpToolbar, "mat-toolbar[matExpToolbar]", ["matExpToolbar"], { "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "exitEdge": { "alias": "exitEdge"; "required": false; "isSignal": true; }; }, {}, ["_menus"], never, true, never>;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* A layout slot around a control. Reserves at least 48×48 CSS px (3rem) without
|
|
1146
|
+
* changing the Expressive button's visual geometry. Use a Material control with
|
|
1147
|
+
* its touch target enabled, or give custom controls their own 48×48 hit area.
|
|
1148
|
+
*/
|
|
1149
|
+
declare class MatExpToolbarItem {
|
|
1150
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpToolbarItem, never>;
|
|
1151
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpToolbarItem, "[matExpToolbarItem]", ["matExpToolbarItem"], {}, {}, never, never, true, never>;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
/** Injector-level toolbar defaults. */
|
|
1155
|
+
interface MatExpToolbarOptions {
|
|
1156
|
+
/** @default 'docked' */
|
|
1157
|
+
readonly layout: MatExpToolbarLayout;
|
|
1158
|
+
/** @default 'standard' */
|
|
1159
|
+
readonly appearance: MatExpToolbarAppearance;
|
|
1160
|
+
/** @default 'auto' */
|
|
1161
|
+
readonly alignment: MatExpToolbarAlignment;
|
|
1162
|
+
}
|
|
1163
|
+
/** Defaults for the toolbar directive. Prefer the merging provider function. */
|
|
1164
|
+
declare const MAT_EXP_TOOLBAR_OPTIONS: _angular_core.InjectionToken<MatExpToolbarOptions>;
|
|
1165
|
+
/** Override toolbar defaults at any injector level. */
|
|
1166
|
+
declare const provideMatExpToolbarOptions: (options: Partial<MatExpToolbarOptions> | (() => Partial<MatExpToolbarOptions>)) => _angular_core.FactoryProvider;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Opt-in Expressive presentation. Material owns interaction, focus and forms.
|
|
1170
|
+
* Include mat-exp-list-styles() in global Sass (or the packaged prebuilt CSS).
|
|
1171
|
+
*/
|
|
1172
|
+
declare class MatExpList {
|
|
1173
|
+
private readonly _options;
|
|
1174
|
+
/** Standard or segmented containment. @default segmented */
|
|
1175
|
+
readonly appearance: _angular_core.InputSignal<MatExpListAppearance>;
|
|
1176
|
+
/** Wrap and grow, or truncate to the supplied text lines. @default wrap */
|
|
1177
|
+
readonly textWrap: _angular_core.InputSignal<MatExpListTextWrap>;
|
|
1178
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpList, never>;
|
|
1179
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpList, "mat-list[matExpList], mat-nav-list[matExpList], mat-action-list[matExpList], mat-selection-list[matExpList]", ["matExpList"], { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "textWrap": { "alias": "textWrap"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1180
|
+
}
|
|
1181
|
+
/** Optional explicit section boundaries for complex or virtualized lists. */
|
|
1182
|
+
declare class MatExpListItem {
|
|
1183
|
+
/** Position within a section; auto follows sibling order, excluding [hidden] rows. @default auto */
|
|
1184
|
+
readonly position: _angular_core.InputSignal<MatExpListPosition>;
|
|
1185
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpListItem, never>;
|
|
1186
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpListItem, "mat-list-item[matExpListItem], [mat-list-item][matExpListItem], mat-list-option[matExpListItem]", ["matExpListItem"], { "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1187
|
+
}
|
|
1188
|
+
/** Media crop in Material's existing avatar slot; contains no interaction logic. */
|
|
1189
|
+
declare class MatExpListMediaDirective {
|
|
1190
|
+
/** Avatar, square image or video thumbnail. @default image */
|
|
1191
|
+
readonly matExpListMedia: _angular_core.InputSignal<MatExpListMedia>;
|
|
1192
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpListMediaDirective, never>;
|
|
1193
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpListMediaDirective, "[matListItemAvatar][matExpListMedia]", ["matExpListMedia"], { "matExpListMedia": { "alias": "matExpListMedia"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
/** Defaults for opt-in Expressive list presentation. */
|
|
1197
|
+
interface MatExpListOptions {
|
|
1198
|
+
/** Visual containment. @default segmented */
|
|
1199
|
+
appearance: MatExpListAppearance;
|
|
1200
|
+
/** Overflow policy. @default wrap */
|
|
1201
|
+
textWrap: MatExpListTextWrap;
|
|
1202
|
+
}
|
|
1203
|
+
declare const MAT_EXP_LIST_DEFAULT_OPTIONS: MatExpListOptions;
|
|
1204
|
+
declare const MAT_EXP_LIST_OPTIONS: _angular_core.InjectionToken<MatExpListOptions>;
|
|
1205
|
+
declare const provideMatExpListOptions: (options: Partial<MatExpListOptions> | (() => Partial<MatExpListOptions>)) => _angular_core.FactoryProvider;
|
|
1206
|
+
|
|
1207
|
+
/** Material 3 search bar and its associated expanded search surface. */
|
|
1208
|
+
declare class MatExpSearch implements ControlValueAccessor {
|
|
1209
|
+
private readonly _interactivity;
|
|
1210
|
+
private readonly _options;
|
|
1211
|
+
private readonly _document;
|
|
1212
|
+
private readonly _host;
|
|
1213
|
+
private readonly _browser;
|
|
1214
|
+
private readonly _destroy;
|
|
1215
|
+
/** Query; use this binding or Angular forms, not both. @default '' */
|
|
1216
|
+
readonly value: _angular_core.ModelSignal<string>;
|
|
1217
|
+
/** Expanded state. @default false */
|
|
1218
|
+
readonly expanded: _angular_core.ModelSignal<boolean>;
|
|
1219
|
+
/** Responsive expanded layout. @default 'auto' */
|
|
1220
|
+
readonly layout: _angular_core.InputSignal<MatExpSearchLayout>;
|
|
1221
|
+
/** Expressive contained or baseline divided treatment. @default 'contained' */
|
|
1222
|
+
readonly appearance: _angular_core.InputSignal<MatExpSearchAppearance>;
|
|
1223
|
+
/** Collapsed text alignment. @default 'start' */
|
|
1224
|
+
readonly alignment: _angular_core.InputSignal<MatExpSearchAlignment>;
|
|
1225
|
+
/**
|
|
1226
|
+
* Search hint. Accessible name uses ariaLabel, then this hint, then the provider's
|
|
1227
|
+
* placeholder, then 'Search' when all are empty. @default 'Search'
|
|
1228
|
+
*/
|
|
1229
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
1230
|
+
/** Optional accessible name override. @default '' */
|
|
1231
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
1232
|
+
/** Localized back button label. @default 'Back' */
|
|
1233
|
+
readonly backLabel: _angular_core.InputSignal<string>;
|
|
1234
|
+
/** Localized clear button label. @default 'Clear search' */
|
|
1235
|
+
readonly clearLabel: _angular_core.InputSignal<string>;
|
|
1236
|
+
/** Disable opening and query changes. @default false */
|
|
1237
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1238
|
+
/** Allow opening and reading results, but prevent query edits. @default false */
|
|
1239
|
+
readonly readOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1240
|
+
/** Show the default magnifying glass. Projected leading content is independent. @default true */
|
|
1241
|
+
readonly showSearchIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1242
|
+
/** Apply the lifted surface color (consumer controls scroll detection). @default false */
|
|
1243
|
+
readonly lifted: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1244
|
+
/** Close on pointer activation outside the expanded surface. @default true */
|
|
1245
|
+
readonly closeOnBackdrop: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1246
|
+
/** Announcement describing results/loading/errors; consumer owns search data. @default '' */
|
|
1247
|
+
readonly status: _angular_core.InputSignal<string>;
|
|
1248
|
+
/** Native autocomplete hint. @default 'off' */
|
|
1249
|
+
readonly autocomplete: _angular_core.InputSignal<string>;
|
|
1250
|
+
/** Native input name. @default '' */
|
|
1251
|
+
readonly name: _angular_core.InputSignal<string>;
|
|
1252
|
+
/** Submission does not close automatically; consumers choose when to close. */
|
|
1253
|
+
readonly searchSubmit: _angular_core.OutputEmitterRef<string>;
|
|
1254
|
+
/** Fires once for each lifecycle state change. */
|
|
1255
|
+
readonly stateChange: _angular_core.OutputEmitterRef<MatExpSearchState>;
|
|
1256
|
+
private readonly _state;
|
|
1257
|
+
/** Current animation lifecycle. @default 'closed' */
|
|
1258
|
+
readonly state: _angular_core.Signal<MatExpSearchState>;
|
|
1259
|
+
/** @internal */
|
|
1260
|
+
readonly _id: string;
|
|
1261
|
+
/** @internal */
|
|
1262
|
+
readonly _disabled: _angular_core.Signal<boolean>;
|
|
1263
|
+
/** @internal */
|
|
1264
|
+
readonly _label: _angular_core.Signal<string>;
|
|
1265
|
+
/** @internal */
|
|
1266
|
+
readonly _triggerLabel: _angular_core.Signal<string>;
|
|
1267
|
+
/** @internal */
|
|
1268
|
+
readonly _resolvedLayout: _angular_core.WritableSignal<"docked" | "full-screen">;
|
|
1269
|
+
private readonly _formDisabled;
|
|
1270
|
+
private readonly _dialog;
|
|
1271
|
+
private readonly _bar;
|
|
1272
|
+
private readonly _trigger;
|
|
1273
|
+
private readonly _input;
|
|
1274
|
+
private readonly _results;
|
|
1275
|
+
private _tween?;
|
|
1276
|
+
private _media?;
|
|
1277
|
+
private _contentObserver?;
|
|
1278
|
+
private _returnFocus?;
|
|
1279
|
+
private _composing;
|
|
1280
|
+
private _onChange;
|
|
1281
|
+
private _onTouched;
|
|
1282
|
+
private _pointerOutside;
|
|
1283
|
+
constructor();
|
|
1284
|
+
/** Open search and focus its input; disabled controls do not open. */
|
|
1285
|
+
open(): void;
|
|
1286
|
+
/** Close search, retaining the query and restoring focus. */
|
|
1287
|
+
close(): void;
|
|
1288
|
+
/** Clear the query and retain input focus. Disabled/read-only controls do not clear. */
|
|
1289
|
+
clear(): void;
|
|
1290
|
+
/** @internal Angular forms model-to-view update, without emitting UI changes. */
|
|
1291
|
+
writeValue(value: unknown): void;
|
|
1292
|
+
/** @internal */
|
|
1293
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
1294
|
+
/** @internal */
|
|
1295
|
+
registerOnTouched(fn: () => void): void;
|
|
1296
|
+
/** @internal */
|
|
1297
|
+
setDisabledState(disabled: boolean): void;
|
|
1298
|
+
/** @internal */
|
|
1299
|
+
_inputChanged(event: Event): void;
|
|
1300
|
+
/** @internal */
|
|
1301
|
+
_composition(start: boolean, event: Event): void;
|
|
1302
|
+
/** @internal */
|
|
1303
|
+
_submit(event: Event): void;
|
|
1304
|
+
/** @internal */
|
|
1305
|
+
_cancel(event: Event): void;
|
|
1306
|
+
/** @internal */
|
|
1307
|
+
_nativeClose(): void;
|
|
1308
|
+
/** @internal */
|
|
1309
|
+
_backdrop(event: PointerEvent, down: boolean): void;
|
|
1310
|
+
/** @internal */
|
|
1311
|
+
_focusOut(event: FocusEvent): void;
|
|
1312
|
+
/** @internal */
|
|
1313
|
+
_keydown(event: KeyboardEvent): void;
|
|
1314
|
+
private _update;
|
|
1315
|
+
private _setState;
|
|
1316
|
+
private _setupListeners;
|
|
1317
|
+
private _show;
|
|
1318
|
+
private _collapsedRect;
|
|
1319
|
+
private _expandedRect;
|
|
1320
|
+
private _transition;
|
|
1321
|
+
private _observeContent;
|
|
1322
|
+
private _stopObservingContent;
|
|
1323
|
+
private readonly _reduceMotion;
|
|
1324
|
+
private readonly _resize;
|
|
1325
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpSearch, never>;
|
|
1326
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpSearch, "mat-exp-search", ["matExpSearch"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "backLabel": { "alias": "backLabel"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "showSearchIcon": { "alias": "showSearchIcon"; "required": false; "isSignal": true; }; "lifted": { "alias": "lifted"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "expanded": "expandedChange"; "searchSubmit": "searchSubmit"; "stateChange": "stateChange"; }, ["_results"], ["[matExpSearchLeading]", "[matExpSearchTrailing]", "[matExpSearchViewActions]", "*"], true, never>;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/** Defaults may be overridden at any injector level. */
|
|
1330
|
+
interface MatExpSearchOptions {
|
|
1331
|
+
/** Expanded layout. @default 'auto' */
|
|
1332
|
+
layout: MatExpSearchLayout;
|
|
1333
|
+
/** Visual treatment. @default 'contained' */
|
|
1334
|
+
appearance: MatExpSearchAppearance;
|
|
1335
|
+
/** Collapsed text alignment. @default 'start' */
|
|
1336
|
+
alignment: MatExpSearchAlignment;
|
|
1337
|
+
/** Hint and default accessible label. @default 'Search' */
|
|
1338
|
+
placeholder: string;
|
|
1339
|
+
/** Localized back button label. @default 'Back' */
|
|
1340
|
+
backLabel: string;
|
|
1341
|
+
/** Localized clear button label. @default 'Clear search' */
|
|
1342
|
+
clearLabel: string;
|
|
1343
|
+
/** Whether pointer activation outside the surface closes it. @default true */
|
|
1344
|
+
closeOnBackdrop: boolean;
|
|
1345
|
+
}
|
|
1346
|
+
/** @internal */
|
|
1347
|
+
declare const MAT_EXP_SEARCH_DEFAULT_OPTIONS: MatExpSearchOptions;
|
|
1348
|
+
declare const MAT_EXP_SEARCH_OPTIONS: _angular_core.InjectionToken<MatExpSearchOptions>;
|
|
1349
|
+
declare const provideMatExpSearchOptions: (options: Partial<MatExpSearchOptions> | (() => Partial<MatExpSearchOptions>)) => _angular_core.FactoryProvider;
|
|
1350
|
+
/** @internal */
|
|
1351
|
+
declare const injectMatExpSearchOptions: () => MatExpSearchOptions;
|
|
1352
|
+
|
|
1353
|
+
/** Marks a native result button or link for Arrow/Home/End navigation. Keep its native semantics. */
|
|
1354
|
+
declare class MatExpSearchResult {
|
|
1355
|
+
/** @internal */
|
|
1356
|
+
readonly _element: ElementRef<HTMLButtonElement | HTMLAnchorElement>;
|
|
1357
|
+
/** @internal */
|
|
1358
|
+
_available(): boolean;
|
|
1359
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpSearchResult, never>;
|
|
1360
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpSearchResult, "button[matExpSearchResult], a[matExpSearchResult]", ["matExpSearchResult"], {}, {}, never, never, true, never>;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Expressive navigation layout. Project destinations directly, a menu/FAB in
|
|
1365
|
+
* `[matExpNavigationRailHeader]`, and page content in `[matExpNavigationRailContent]`.
|
|
1366
|
+
*/
|
|
1367
|
+
declare class MatExpNavigationRail {
|
|
1368
|
+
private readonly _options;
|
|
1369
|
+
private readonly _document;
|
|
1370
|
+
private readonly _checker;
|
|
1371
|
+
private readonly _panel;
|
|
1372
|
+
private readonly _drawerElement;
|
|
1373
|
+
private readonly _contentElement;
|
|
1374
|
+
private _motion?;
|
|
1375
|
+
private _previousFocus;
|
|
1376
|
+
private _lastExternalFocus;
|
|
1377
|
+
private _windowBlurredElement;
|
|
1378
|
+
private _wasExpanded;
|
|
1379
|
+
private _wasModal;
|
|
1380
|
+
private _warnedMisprojectedContent;
|
|
1381
|
+
/** Whether the rail is expanded; supports `[(expanded)]`. @default false */
|
|
1382
|
+
readonly expanded: _angular_core.ModelSignal<boolean>;
|
|
1383
|
+
/** How the expanded rail relates to content. @default 'standard' */
|
|
1384
|
+
readonly mode: _angular_core.InputSignal<MatExpNavigationRailMode>;
|
|
1385
|
+
/** Close to a hidden rail instead of the persistent collapsed rail. @default false */
|
|
1386
|
+
readonly hideOnCollapse: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1387
|
+
/** Destination alignment. @default 'top' */
|
|
1388
|
+
readonly alignment: _angular_core.InputSignal<MatExpNavigationRailAlignment>;
|
|
1389
|
+
/** Accessible name of the navigation region and modal. @default 'Primary navigation' */
|
|
1390
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
1391
|
+
/** @internal */
|
|
1392
|
+
readonly _modal: _angular_core.Signal<boolean>;
|
|
1393
|
+
constructor();
|
|
1394
|
+
/** Expand from a menu button. */
|
|
1395
|
+
open(): void;
|
|
1396
|
+
/** Return to the collapsed or hidden presentation. */
|
|
1397
|
+
close(): void;
|
|
1398
|
+
/** Toggle expansion from a menu button. */
|
|
1399
|
+
toggle(): void;
|
|
1400
|
+
/** @internal */
|
|
1401
|
+
_dismiss(): void;
|
|
1402
|
+
/** @internal */
|
|
1403
|
+
_onFocusIn(event: FocusEvent): void;
|
|
1404
|
+
/** @internal */
|
|
1405
|
+
_onWindowBlur(): void;
|
|
1406
|
+
/** @internal */
|
|
1407
|
+
_onFocusOut(): void;
|
|
1408
|
+
/** @internal */
|
|
1409
|
+
_onKeydown(event: KeyboardEvent): void;
|
|
1410
|
+
private _restoreFocus;
|
|
1411
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpNavigationRail, never>;
|
|
1412
|
+
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>;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
/** A native link or button destination. Selection remains owned by the application's route. */
|
|
1416
|
+
declare class MatExpNavigationRailItem {
|
|
1417
|
+
private readonly _rail;
|
|
1418
|
+
/** @internal */
|
|
1419
|
+
readonly _element: any;
|
|
1420
|
+
/** @internal */
|
|
1421
|
+
readonly _isButton: boolean;
|
|
1422
|
+
/** Mark the current destination, usually from RouterLinkActive. @default false */
|
|
1423
|
+
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1424
|
+
/** Skip a temporarily unavailable destination. @default false */
|
|
1425
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1426
|
+
/** Reveal a secondary destination only in the expanded rail. @default false */
|
|
1427
|
+
readonly expandedOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1428
|
+
/** Badge text; empty string displays a dot, null hides it. Describe its meaning in aria-label. @default null */
|
|
1429
|
+
readonly badge: _angular_core.InputSignal<string | null>;
|
|
1430
|
+
/** @internal */
|
|
1431
|
+
readonly _hidden: _angular_core.Signal<boolean>;
|
|
1432
|
+
constructor();
|
|
1433
|
+
private readonly _indicator;
|
|
1434
|
+
/** @internal */
|
|
1435
|
+
_onClick(event: Event): void;
|
|
1436
|
+
/** @internal */
|
|
1437
|
+
_onSpace(event: Event): void;
|
|
1438
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpNavigationRailItem, never>;
|
|
1439
|
+
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; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; }, {}, never, ["[matExpNavigationRailIcon]", "*"], true, never>;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
interface MatExpNavigationRailOptions {
|
|
1443
|
+
/** Expanded presentation. @default 'standard' */
|
|
1444
|
+
readonly mode: MatExpNavigationRailMode;
|
|
1445
|
+
/** Initial expansion state. @default false */
|
|
1446
|
+
readonly expanded: boolean;
|
|
1447
|
+
/** Hide the expanded rail entirely when closed. @default false */
|
|
1448
|
+
readonly hideOnCollapse: boolean;
|
|
1449
|
+
/** Destination alignment. @default 'top' */
|
|
1450
|
+
readonly alignment: MatExpNavigationRailAlignment;
|
|
1451
|
+
/** Accessible navigation label. @default 'Primary navigation' */
|
|
1452
|
+
readonly ariaLabel: string;
|
|
1453
|
+
}
|
|
1454
|
+
declare const MAT_EXP_NAVIGATION_RAIL_OPTIONS: _angular_core.InjectionToken<MatExpNavigationRailOptions>;
|
|
1455
|
+
declare const provideMatExpNavigationRailOptions: (options: Partial<MatExpNavigationRailOptions> | (() => Partial<MatExpNavigationRailOptions>)) => _angular_core.FactoryProvider;
|
|
1456
|
+
|
|
1457
|
+
/** A labeled group of secondary destinations, as shown in the Expressive rail specification. */
|
|
1458
|
+
declare class MatExpNavigationRailSection {
|
|
1459
|
+
private readonly _rail;
|
|
1460
|
+
/** Visible section heading and accessible group name. */
|
|
1461
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
1462
|
+
/** Hide this group in the collapsed rail. @default true */
|
|
1463
|
+
readonly expandedOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1464
|
+
/** @internal */
|
|
1465
|
+
readonly _hidden: _angular_core.Signal<boolean>;
|
|
1466
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpNavigationRailSection, never>;
|
|
1467
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpNavigationRailSection, "mat-exp-navigation-rail-section", ["matExpNavigationRailSection"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "expandedOnly": { "alias": "expandedOnly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
/** @internal Uses CDK's documented custom-container extension points. */
|
|
1471
|
+
declare class MatExpDialogContainer extends CdkDialogContainer {
|
|
1472
|
+
readonly opened: Subject<void>;
|
|
1473
|
+
readonly exited: Subject<void>;
|
|
1474
|
+
private readonly _context;
|
|
1475
|
+
private readonly _cdkRef;
|
|
1476
|
+
private readonly _motionInjector;
|
|
1477
|
+
private _motion?;
|
|
1478
|
+
private _closing;
|
|
1479
|
+
private _destroyed;
|
|
1480
|
+
protected _captureInitialFocus(): void;
|
|
1481
|
+
protected _contentAttached(): void;
|
|
1482
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
1483
|
+
close(): void;
|
|
1484
|
+
retarget(): void;
|
|
1485
|
+
ngOnDestroy(): void;
|
|
1486
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpDialogContainer, never>;
|
|
1487
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpDialogContainer, "mat-exp-dialog-container", never, {}, {}, never, never, true, never>;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
/** A Material-shaped reference whose completion follows the owned spring lifecycle. */
|
|
1491
|
+
declare class MatExpDialogRef<T, R = unknown> {
|
|
1492
|
+
/** @internal */
|
|
1493
|
+
private readonly _cdk;
|
|
1494
|
+
/** @internal */
|
|
1495
|
+
private readonly _config;
|
|
1496
|
+
/** @internal */
|
|
1497
|
+
private readonly _container;
|
|
1498
|
+
/** @internal */
|
|
1499
|
+
private readonly _position;
|
|
1500
|
+
/** Native CDK dialog id. */
|
|
1501
|
+
get id(): string;
|
|
1502
|
+
/** Application content instance. */
|
|
1503
|
+
get componentInstance(): T;
|
|
1504
|
+
/** Application component reference. */
|
|
1505
|
+
get componentRef(): _angular_core.ComponentRef<T> | null;
|
|
1506
|
+
/** Blocks Escape/backdrop closure, not explicit close actions. */
|
|
1507
|
+
disableClose: boolean;
|
|
1508
|
+
/** @internal */
|
|
1509
|
+
private _state;
|
|
1510
|
+
/** @internal */
|
|
1511
|
+
private _result?;
|
|
1512
|
+
/** @internal */
|
|
1513
|
+
private _origin?;
|
|
1514
|
+
/** @internal */
|
|
1515
|
+
private readonly _opened;
|
|
1516
|
+
/** @internal */
|
|
1517
|
+
private readonly _closing;
|
|
1518
|
+
/** @internal */
|
|
1519
|
+
constructor(
|
|
1520
|
+
/** @internal */
|
|
1521
|
+
_cdk: DialogRef<R, T>,
|
|
1522
|
+
/** @internal */
|
|
1523
|
+
_config: MatExpDialogConfig,
|
|
1524
|
+
/** @internal */
|
|
1525
|
+
_container: MatExpDialogContainer,
|
|
1526
|
+
/** @internal */
|
|
1527
|
+
_position: GlobalPositionStrategy);
|
|
1528
|
+
/** Request closure; the result emits only after the spring and native disposal finish. */
|
|
1529
|
+
close(result?: R): void;
|
|
1530
|
+
/** @internal */
|
|
1531
|
+
_close(result?: R, origin?: FocusOrigin): void;
|
|
1532
|
+
/** Actual opening completion; completes without emitting if closing interrupts entry. */
|
|
1533
|
+
afterOpened(): rxjs.Observable<void>;
|
|
1534
|
+
/** Native disposal/focus restoration has completed before this emits. */
|
|
1535
|
+
afterClosed(): rxjs.Observable<R | undefined>;
|
|
1536
|
+
/** Accepted close request, before the exit animation. */
|
|
1537
|
+
beforeClosed(): rxjs.Observable<R | undefined>;
|
|
1538
|
+
/** Native backdrop events. */
|
|
1539
|
+
backdropClick(): rxjs.Observable<MouseEvent>;
|
|
1540
|
+
/** Native overlay keyboard events. */
|
|
1541
|
+
keydownEvents(): rxjs.Observable<KeyboardEvent>;
|
|
1542
|
+
/** Material-compatible lifecycle state. */
|
|
1543
|
+
getState(): MatDialogState;
|
|
1544
|
+
/** Update native overlay sizing and retarget motion. */
|
|
1545
|
+
updateSize(width?: string, height?: string): this;
|
|
1546
|
+
/** Update native overlay position and retarget motion. */
|
|
1547
|
+
updatePosition(position?: DialogPosition): this;
|
|
1548
|
+
/** Add application panel classes. */
|
|
1549
|
+
addPanelClass(classes: string | string[]): this;
|
|
1550
|
+
/** Remove application panel classes. */
|
|
1551
|
+
removePanelClass(classes: string | string[]): this;
|
|
1552
|
+
/** @internal Owner destruction cannot wait for a visible animation. */
|
|
1553
|
+
_dispose(): void;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
/** Opens CDK-backed spring-driven dialogs with a typed alert/adaptive presentation contract. */
|
|
1557
|
+
declare class MatExpDialog implements OnDestroy {
|
|
1558
|
+
/** @internal */
|
|
1559
|
+
private readonly _dialog;
|
|
1560
|
+
/** @internal */
|
|
1561
|
+
private readonly _injector;
|
|
1562
|
+
/** @internal */
|
|
1563
|
+
private readonly _overlay;
|
|
1564
|
+
/** @internal */
|
|
1565
|
+
private readonly _refs;
|
|
1566
|
+
/** @internal */
|
|
1567
|
+
private readonly _options;
|
|
1568
|
+
/** @internal */
|
|
1569
|
+
private readonly _nativeDefaults;
|
|
1570
|
+
/** Dialogs owned by this opener. */
|
|
1571
|
+
get openDialogs(): readonly MatExpDialogRef<unknown, unknown>[];
|
|
1572
|
+
/** Request graceful closure of this opener's dialogs. */
|
|
1573
|
+
closeAll(): void;
|
|
1574
|
+
/** Find an owned dialog by id. */
|
|
1575
|
+
getDialogById(id: string): MatExpDialogRef<unknown, unknown> | undefined;
|
|
1576
|
+
/** @internal */
|
|
1577
|
+
ngOnDestroy(): void;
|
|
1578
|
+
/**
|
|
1579
|
+
* Opens a plain-text confirmation. Confirm returns true, Cancel false, and native
|
|
1580
|
+
* Escape/backdrop dismissal undefined. The default role is dialog, not alertdialog.
|
|
1581
|
+
*/
|
|
1582
|
+
confirm(config: MatExpDialogConfirmationConfig): MatExpDialogRef<unknown, boolean>;
|
|
1583
|
+
/**
|
|
1584
|
+
* Opens a component and returns the spring-aware MatExpDialogRef. MAT_DIALOG_DATA,
|
|
1585
|
+
* closePredicate, focus, results and native lifecycle observables retain their semantics.
|
|
1586
|
+
*/
|
|
1587
|
+
open<T, D = unknown, R = unknown>(component: ComponentType<T>, config: MatExpDialogConfig<D>): MatExpDialogRef<T, R>;
|
|
1588
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpDialog, never>;
|
|
1589
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
/** A single persistent action template, positioned by the dialog layout. */
|
|
1593
|
+
declare class MatExpDialogActions {
|
|
1594
|
+
/** @internal */
|
|
1595
|
+
readonly template: TemplateRef<unknown>;
|
|
1596
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpDialogActions, never>;
|
|
1597
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatExpDialogActions, "ng-template[matExpDialogActions]", ["matExpDialogActions"], {}, {}, never, never, true, never>;
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* Fixed heading/actions and independently scrolling projected content.
|
|
1601
|
+
* Use inside a component opened through MatExpDialog. No consumer CSS classes are needed.
|
|
1602
|
+
*/
|
|
1603
|
+
declare class MatExpDialogLayout {
|
|
1604
|
+
/** @internal */
|
|
1605
|
+
readonly _context: {
|
|
1606
|
+
mode: _camaradesuk_m3e_angular.MatExpDialogMode;
|
|
1607
|
+
title: string;
|
|
1608
|
+
closeLabel: string;
|
|
1609
|
+
motion: "system" | "none";
|
|
1610
|
+
origin?: HTMLElement;
|
|
1611
|
+
};
|
|
1612
|
+
/** @internal */
|
|
1613
|
+
readonly _actions: _angular_core.Signal<MatExpDialogActions | undefined>;
|
|
1614
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpDialogLayout, never>;
|
|
1615
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MatExpDialogLayout, "mat-exp-dialog-layout", ["matExpDialogLayout"], {}, {}, ["_actions"], ["*"], true, never>;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
interface MatExpDialogOptions {
|
|
1619
|
+
/** Motion policy; the OS reduced-motion preference always wins. @default 'system' */
|
|
1620
|
+
readonly motion: MatExpDialogMotion;
|
|
1621
|
+
/** Accessible label for the adaptive close button. @default 'Close dialog' */
|
|
1622
|
+
readonly closeLabel: string;
|
|
1623
|
+
}
|
|
1624
|
+
declare const MAT_EXP_DIALOG_OPTIONS: InjectionToken<MatExpDialogOptions>;
|
|
1625
|
+
declare const provideMatExpDialogOptions: (options: Partial<MatExpDialogOptions> | (() => Partial<MatExpDialogOptions>)) => _angular_core.FactoryProvider;
|
|
1626
|
+
|
|
1627
|
+
/** Explicit close action for content opened by MatExpDialog. */
|
|
1628
|
+
declare class MatExpDialogClose {
|
|
1629
|
+
/** Result passed to the opener. @default undefined */
|
|
1630
|
+
readonly result: _angular_core.InputSignal<unknown>;
|
|
1631
|
+
/** Native button type; defaults to button to avoid accidental form submission. */
|
|
1632
|
+
readonly type: _angular_core.InputSignal<"reset" | "submit" | "button">;
|
|
1633
|
+
/** @internal Distinguish a bare marker from an explicitly bound empty result. */
|
|
1634
|
+
private readonly _bareMarker;
|
|
1635
|
+
/** @internal */
|
|
1636
|
+
private readonly _ref;
|
|
1637
|
+
/** @internal */
|
|
1638
|
+
_close(event: MouseEvent): void;
|
|
1639
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatExpDialogClose, never>;
|
|
1640
|
+
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>;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
export { ButtonAdapter, IconButtonAdapter, MAT_EXP_BUTTON_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP, MAT_EXP_BUTTON_GROUP_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP_OPTIONS, MAT_EXP_BUTTON_GROUP_VALUE_ACCESSOR, MAT_EXP_BUTTON_OPTIONS, MAT_EXP_DIALOG_OPTIONS, MAT_EXP_FAB_MENU_OPTIONS, MAT_EXP_ICON_BUTTON_DEFAULT_OPTIONS, MAT_EXP_ICON_BUTTON_OPTIONS, MAT_EXP_LIST_DEFAULT_OPTIONS, MAT_EXP_LIST_OPTIONS, MAT_EXP_LOADING_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_LOADING_INDICATOR_OPTIONS, MAT_EXP_LOADING_INDICATOR_SHAPES, MAT_EXP_LOADING_INDICATOR_VIEW_BOX, MAT_EXP_NAVIGATION_RAIL_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_OPTIONS, MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS, MAT_EXP_RICH_TOOLTIP_OPTIONS, MAT_EXP_SEARCH_DEFAULT_OPTIONS, MAT_EXP_SEARCH_OPTIONS, MAT_EXP_SPLIT_BUTTON_DEFAULT_OPTIONS, MAT_EXP_SPLIT_BUTTON_OPTIONS, MAT_EXP_TOOLBAR_OPTIONS, MatExpButton, MatExpButtonGroup, MatExpDialog, MatExpDialogActions, MatExpDialogClose, MatExpDialogLayout, MatExpDialogRef, MatExpFabMenu, MatExpFabMenuButton, MatExpFabMenuTrigger, MatExpIconButton, MatExpList, MatExpListItem, MatExpListMediaDirective, MatExpLoadingIndicator, MatExpNavigationRail, MatExpNavigationRailItem, MatExpNavigationRailSection, MatExpProgressIndicator, MatExpRichTooltip, MatExpRichTooltipTrigger, MatExpSearch, MatExpSearchResult, MatExpSelectableButtonChange, MatExpSplitButton, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, provideMatExpToolbarOptions, toButtonGroupChild };
|
|
1644
|
+
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, MatExpToolbarAlignment, MatExpToolbarAppearance, MatExpToolbarExitEdge, MatExpToolbarLayout, MatExpToolbarOptions };
|