@andersbakken/fisk-scheduler-ui 0.0.57 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/ui/browser/favicon.png +0 -0
- package/dist/ui/browser/htaccess +7 -0
- package/dist/ui/browser/index.html +1 -1
- package/dist/ui/browser/main-2ZT7BNYA.js +17 -0
- package/dist/ui/browser/package.json +50 -0
- package/dist/ui/package.json +50 -0
- package/package.json +1 -1
- package/scripts/mklinks.sh +18 -9
- package/scripts/rmlinks.sh +12 -7
- package/.angular/cache/18.2.21/ui/.tsbuildinfo +0 -1
- package/.angular/cache/18.2.21/ui/angular-compiler.db +0 -0
- package/.angular/cache/18.2.21/ui/angular-compiler.db-lock +0 -0
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_common.js +0 -201
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_common.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_common_http.js +0 -85
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_common_http.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_core.js +0 -932
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_core.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_forms.js +0 -134
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_forms.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_button.js +0 -33
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_button.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_card.js +0 -567
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_card.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_checkbox.js +0 -782
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_checkbox.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_core.js +0 -98
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_core.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_dialog.js +0 -1829
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_dialog.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_form-field.js +0 -45
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_form-field.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_input.js +0 -1014
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_input.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_list.js +0 -2169
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_list.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_select.js +0 -1529
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_select.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_snack-bar.js +0 -940
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_snack-bar.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_tabs.js +0 -2962
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_material_tabs.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser.js +0 -84
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser_animations.js +0 -4136
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_platform-browser_animations.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_router.js +0 -5700
- package/.angular/cache/18.2.21/ui/vite/deps/@angular_router.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/_metadata.json +0 -172
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-2ZKE2YDD.js +0 -1222
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-2ZKE2YDD.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-3OV72XIM.js +0 -64
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-3OV72XIM.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-57TVY4HY.js +0 -2218
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-57TVY4HY.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-A5IWFVHJ.js +0 -2374
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-A5IWFVHJ.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-DJ6HHZ3S.js +0 -1940
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-DJ6HHZ3S.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-FE6XYTIJ.js +0 -126
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-FE6XYTIJ.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-ITHJLHIY.js +0 -5795
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-ITHJLHIY.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-MFI342ZJ.js +0 -512
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-MFI342ZJ.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-NPVZU53R.js +0 -6511
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-NPVZU53R.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-NSRJEU3V.js +0 -27918
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-NSRJEU3V.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-R2N6IWJV.js +0 -5116
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-R2N6IWJV.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-TO3SXVFJ.js +0 -2840
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-TO3SXVFJ.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-WFLMTRZP.js +0 -379
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-WFLMTRZP.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-WQ5YUVUS.js +0 -1534
- package/.angular/cache/18.2.21/ui/vite/deps/chunk-WQ5YUVUS.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/ngx-color-picker.js +0 -2925
- package/.angular/cache/18.2.21/ui/vite/deps/ngx-color-picker.js.map +0 -7
- package/.angular/cache/18.2.21/ui/vite/deps/seedrandom.js +0 -703
- package/.angular/cache/18.2.21/ui/vite/deps/seedrandom.js.map +0 -7
- package/dist/ui/browser/main-6SIZHY3G.js +0 -17
- package/scripts/mock-scheduler.js +0 -350
- package/scripts/test-live-model.js +0 -286
|
@@ -1,1829 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Overlay,
|
|
3
|
-
OverlayConfig,
|
|
4
|
-
OverlayContainer,
|
|
5
|
-
OverlayModule,
|
|
6
|
-
OverlayRef
|
|
7
|
-
} from "./chunk-TO3SXVFJ.js";
|
|
8
|
-
import {
|
|
9
|
-
BasePortalOutlet,
|
|
10
|
-
CdkPortalOutlet,
|
|
11
|
-
CdkScrollable,
|
|
12
|
-
ComponentPortal,
|
|
13
|
-
PortalModule,
|
|
14
|
-
TemplatePortal
|
|
15
|
-
} from "./chunk-57TVY4HY.js";
|
|
16
|
-
import {
|
|
17
|
-
animate,
|
|
18
|
-
animateChild,
|
|
19
|
-
group,
|
|
20
|
-
query,
|
|
21
|
-
state,
|
|
22
|
-
style,
|
|
23
|
-
transition,
|
|
24
|
-
trigger
|
|
25
|
-
} from "./chunk-MFI342ZJ.js";
|
|
26
|
-
import "./chunk-WFLMTRZP.js";
|
|
27
|
-
import {
|
|
28
|
-
A11yModule,
|
|
29
|
-
Directionality,
|
|
30
|
-
ESCAPE,
|
|
31
|
-
FocusMonitor,
|
|
32
|
-
FocusTrapFactory,
|
|
33
|
-
InteractivityChecker,
|
|
34
|
-
MatCommonModule,
|
|
35
|
-
Platform,
|
|
36
|
-
_getFocusedElementPierceShadowDom,
|
|
37
|
-
coerceNumberProperty,
|
|
38
|
-
hasModifierKey
|
|
39
|
-
} from "./chunk-ITHJLHIY.js";
|
|
40
|
-
import {
|
|
41
|
-
DOCUMENT,
|
|
42
|
-
Location
|
|
43
|
-
} from "./chunk-R2N6IWJV.js";
|
|
44
|
-
import {
|
|
45
|
-
ANIMATION_MODULE_TYPE,
|
|
46
|
-
ChangeDetectionStrategy,
|
|
47
|
-
ChangeDetectorRef,
|
|
48
|
-
Component,
|
|
49
|
-
Directive,
|
|
50
|
-
ElementRef,
|
|
51
|
-
EventEmitter,
|
|
52
|
-
Inject,
|
|
53
|
-
Injectable,
|
|
54
|
-
InjectionToken,
|
|
55
|
-
Injector,
|
|
56
|
-
Input,
|
|
57
|
-
NgModule,
|
|
58
|
-
NgZone,
|
|
59
|
-
Optional,
|
|
60
|
-
SkipSelf,
|
|
61
|
-
Subject,
|
|
62
|
-
TemplateRef,
|
|
63
|
-
ViewChild,
|
|
64
|
-
ViewEncapsulation$1,
|
|
65
|
-
afterNextRender,
|
|
66
|
-
defer,
|
|
67
|
-
filter,
|
|
68
|
-
inject,
|
|
69
|
-
merge,
|
|
70
|
-
of,
|
|
71
|
-
setClassMetadata,
|
|
72
|
-
startWith,
|
|
73
|
-
take,
|
|
74
|
-
ɵɵHostDirectivesFeature,
|
|
75
|
-
ɵɵInheritDefinitionFeature,
|
|
76
|
-
ɵɵNgOnChangesFeature,
|
|
77
|
-
ɵɵStandaloneFeature,
|
|
78
|
-
ɵɵattribute,
|
|
79
|
-
ɵɵclassProp,
|
|
80
|
-
ɵɵdefineComponent,
|
|
81
|
-
ɵɵdefineDirective,
|
|
82
|
-
ɵɵdefineInjectable,
|
|
83
|
-
ɵɵdefineInjector,
|
|
84
|
-
ɵɵdefineNgModule,
|
|
85
|
-
ɵɵdirectiveInject,
|
|
86
|
-
ɵɵelementEnd,
|
|
87
|
-
ɵɵelementStart,
|
|
88
|
-
ɵɵgetInheritedFactory,
|
|
89
|
-
ɵɵhostProperty,
|
|
90
|
-
ɵɵinject,
|
|
91
|
-
ɵɵlistener,
|
|
92
|
-
ɵɵloadQuery,
|
|
93
|
-
ɵɵqueryRefresh,
|
|
94
|
-
ɵɵtemplate,
|
|
95
|
-
ɵɵviewQuery
|
|
96
|
-
} from "./chunk-NSRJEU3V.js";
|
|
97
|
-
import {
|
|
98
|
-
__spreadProps,
|
|
99
|
-
__spreadValues
|
|
100
|
-
} from "./chunk-3OV72XIM.js";
|
|
101
|
-
|
|
102
|
-
// node_modules/@angular/cdk/fesm2022/dialog.mjs
|
|
103
|
-
function CdkDialogContainer_ng_template_0_Template(rf, ctx) {
|
|
104
|
-
}
|
|
105
|
-
var DialogConfig = class {
|
|
106
|
-
constructor() {
|
|
107
|
-
this.role = "dialog";
|
|
108
|
-
this.panelClass = "";
|
|
109
|
-
this.hasBackdrop = true;
|
|
110
|
-
this.backdropClass = "";
|
|
111
|
-
this.disableClose = false;
|
|
112
|
-
this.width = "";
|
|
113
|
-
this.height = "";
|
|
114
|
-
this.data = null;
|
|
115
|
-
this.ariaDescribedBy = null;
|
|
116
|
-
this.ariaLabelledBy = null;
|
|
117
|
-
this.ariaLabel = null;
|
|
118
|
-
this.ariaModal = true;
|
|
119
|
-
this.autoFocus = "first-tabbable";
|
|
120
|
-
this.restoreFocus = true;
|
|
121
|
-
this.closeOnNavigation = true;
|
|
122
|
-
this.closeOnDestroy = true;
|
|
123
|
-
this.closeOnOverlayDetachments = true;
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
function throwDialogContentAlreadyAttachedError() {
|
|
127
|
-
throw Error("Attempting to attach dialog content after content is already attached");
|
|
128
|
-
}
|
|
129
|
-
var CdkDialogContainer = class _CdkDialogContainer extends BasePortalOutlet {
|
|
130
|
-
constructor(_elementRef, _focusTrapFactory, _document, _config, _interactivityChecker, _ngZone, _overlayRef, _focusMonitor) {
|
|
131
|
-
super();
|
|
132
|
-
this._elementRef = _elementRef;
|
|
133
|
-
this._focusTrapFactory = _focusTrapFactory;
|
|
134
|
-
this._config = _config;
|
|
135
|
-
this._interactivityChecker = _interactivityChecker;
|
|
136
|
-
this._ngZone = _ngZone;
|
|
137
|
-
this._overlayRef = _overlayRef;
|
|
138
|
-
this._focusMonitor = _focusMonitor;
|
|
139
|
-
this._platform = inject(Platform);
|
|
140
|
-
this._focusTrap = null;
|
|
141
|
-
this._elementFocusedBeforeDialogWasOpened = null;
|
|
142
|
-
this._closeInteractionType = null;
|
|
143
|
-
this._ariaLabelledByQueue = [];
|
|
144
|
-
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
145
|
-
this._injector = inject(Injector);
|
|
146
|
-
this._isDestroyed = false;
|
|
147
|
-
this.attachDomPortal = (portal) => {
|
|
148
|
-
if (this._portalOutlet.hasAttached() && (typeof ngDevMode === "undefined" || ngDevMode)) {
|
|
149
|
-
throwDialogContentAlreadyAttachedError();
|
|
150
|
-
}
|
|
151
|
-
const result = this._portalOutlet.attachDomPortal(portal);
|
|
152
|
-
this._contentAttached();
|
|
153
|
-
return result;
|
|
154
|
-
};
|
|
155
|
-
this._document = _document;
|
|
156
|
-
if (this._config.ariaLabelledBy) {
|
|
157
|
-
this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
_addAriaLabelledBy(id) {
|
|
161
|
-
this._ariaLabelledByQueue.push(id);
|
|
162
|
-
this._changeDetectorRef.markForCheck();
|
|
163
|
-
}
|
|
164
|
-
_removeAriaLabelledBy(id) {
|
|
165
|
-
const index = this._ariaLabelledByQueue.indexOf(id);
|
|
166
|
-
if (index > -1) {
|
|
167
|
-
this._ariaLabelledByQueue.splice(index, 1);
|
|
168
|
-
this._changeDetectorRef.markForCheck();
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
_contentAttached() {
|
|
172
|
-
this._initializeFocusTrap();
|
|
173
|
-
this._handleBackdropClicks();
|
|
174
|
-
this._captureInitialFocus();
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Can be used by child classes to customize the initial focus
|
|
178
|
-
* capturing behavior (e.g. if it's tied to an animation).
|
|
179
|
-
*/
|
|
180
|
-
_captureInitialFocus() {
|
|
181
|
-
this._trapFocus();
|
|
182
|
-
}
|
|
183
|
-
ngOnDestroy() {
|
|
184
|
-
this._isDestroyed = true;
|
|
185
|
-
this._restoreFocus();
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Attach a ComponentPortal as content to this dialog container.
|
|
189
|
-
* @param portal Portal to be attached as the dialog content.
|
|
190
|
-
*/
|
|
191
|
-
attachComponentPortal(portal) {
|
|
192
|
-
if (this._portalOutlet.hasAttached() && (typeof ngDevMode === "undefined" || ngDevMode)) {
|
|
193
|
-
throwDialogContentAlreadyAttachedError();
|
|
194
|
-
}
|
|
195
|
-
const result = this._portalOutlet.attachComponentPortal(portal);
|
|
196
|
-
this._contentAttached();
|
|
197
|
-
return result;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Attach a TemplatePortal as content to this dialog container.
|
|
201
|
-
* @param portal Portal to be attached as the dialog content.
|
|
202
|
-
*/
|
|
203
|
-
attachTemplatePortal(portal) {
|
|
204
|
-
if (this._portalOutlet.hasAttached() && (typeof ngDevMode === "undefined" || ngDevMode)) {
|
|
205
|
-
throwDialogContentAlreadyAttachedError();
|
|
206
|
-
}
|
|
207
|
-
const result = this._portalOutlet.attachTemplatePortal(portal);
|
|
208
|
-
this._contentAttached();
|
|
209
|
-
return result;
|
|
210
|
-
}
|
|
211
|
-
// TODO(crisbeto): this shouldn't be exposed, but there are internal references to it.
|
|
212
|
-
/** Captures focus if it isn't already inside the dialog. */
|
|
213
|
-
_recaptureFocus() {
|
|
214
|
-
if (!this._containsFocus()) {
|
|
215
|
-
this._trapFocus();
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Focuses the provided element. If the element is not focusable, it will add a tabIndex
|
|
220
|
-
* attribute to forcefully focus it. The attribute is removed after focus is moved.
|
|
221
|
-
* @param element The element to focus.
|
|
222
|
-
*/
|
|
223
|
-
_forceFocus(element, options) {
|
|
224
|
-
if (!this._interactivityChecker.isFocusable(element)) {
|
|
225
|
-
element.tabIndex = -1;
|
|
226
|
-
this._ngZone.runOutsideAngular(() => {
|
|
227
|
-
const callback = () => {
|
|
228
|
-
element.removeEventListener("blur", callback);
|
|
229
|
-
element.removeEventListener("mousedown", callback);
|
|
230
|
-
element.removeAttribute("tabindex");
|
|
231
|
-
};
|
|
232
|
-
element.addEventListener("blur", callback);
|
|
233
|
-
element.addEventListener("mousedown", callback);
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
element.focus(options);
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Focuses the first element that matches the given selector within the focus trap.
|
|
240
|
-
* @param selector The CSS selector for the element to set focus to.
|
|
241
|
-
*/
|
|
242
|
-
_focusByCssSelector(selector, options) {
|
|
243
|
-
let elementToFocus = this._elementRef.nativeElement.querySelector(selector);
|
|
244
|
-
if (elementToFocus) {
|
|
245
|
-
this._forceFocus(elementToFocus, options);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus
|
|
250
|
-
* cannot be moved then focus will go to the dialog container.
|
|
251
|
-
*/
|
|
252
|
-
_trapFocus() {
|
|
253
|
-
if (this._isDestroyed) {
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
afterNextRender(() => {
|
|
257
|
-
const element = this._elementRef.nativeElement;
|
|
258
|
-
switch (this._config.autoFocus) {
|
|
259
|
-
case false:
|
|
260
|
-
case "dialog":
|
|
261
|
-
if (!this._containsFocus()) {
|
|
262
|
-
element.focus();
|
|
263
|
-
}
|
|
264
|
-
break;
|
|
265
|
-
case true:
|
|
266
|
-
case "first-tabbable":
|
|
267
|
-
const focusedSuccessfully = this._focusTrap?.focusInitialElement();
|
|
268
|
-
if (!focusedSuccessfully) {
|
|
269
|
-
this._focusDialogContainer();
|
|
270
|
-
}
|
|
271
|
-
break;
|
|
272
|
-
case "first-heading":
|
|
273
|
-
this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');
|
|
274
|
-
break;
|
|
275
|
-
default:
|
|
276
|
-
this._focusByCssSelector(this._config.autoFocus);
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
}, {
|
|
280
|
-
injector: this._injector
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
/** Restores focus to the element that was focused before the dialog opened. */
|
|
284
|
-
_restoreFocus() {
|
|
285
|
-
const focusConfig = this._config.restoreFocus;
|
|
286
|
-
let focusTargetElement = null;
|
|
287
|
-
if (typeof focusConfig === "string") {
|
|
288
|
-
focusTargetElement = this._document.querySelector(focusConfig);
|
|
289
|
-
} else if (typeof focusConfig === "boolean") {
|
|
290
|
-
focusTargetElement = focusConfig ? this._elementFocusedBeforeDialogWasOpened : null;
|
|
291
|
-
} else if (focusConfig) {
|
|
292
|
-
focusTargetElement = focusConfig;
|
|
293
|
-
}
|
|
294
|
-
if (this._config.restoreFocus && focusTargetElement && typeof focusTargetElement.focus === "function") {
|
|
295
|
-
const activeElement = _getFocusedElementPierceShadowDom();
|
|
296
|
-
const element = this._elementRef.nativeElement;
|
|
297
|
-
if (!activeElement || activeElement === this._document.body || activeElement === element || element.contains(activeElement)) {
|
|
298
|
-
if (this._focusMonitor) {
|
|
299
|
-
this._focusMonitor.focusVia(focusTargetElement, this._closeInteractionType);
|
|
300
|
-
this._closeInteractionType = null;
|
|
301
|
-
} else {
|
|
302
|
-
focusTargetElement.focus();
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
if (this._focusTrap) {
|
|
307
|
-
this._focusTrap.destroy();
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
/** Focuses the dialog container. */
|
|
311
|
-
_focusDialogContainer() {
|
|
312
|
-
if (this._elementRef.nativeElement.focus) {
|
|
313
|
-
this._elementRef.nativeElement.focus();
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
/** Returns whether focus is inside the dialog. */
|
|
317
|
-
_containsFocus() {
|
|
318
|
-
const element = this._elementRef.nativeElement;
|
|
319
|
-
const activeElement = _getFocusedElementPierceShadowDom();
|
|
320
|
-
return element === activeElement || element.contains(activeElement);
|
|
321
|
-
}
|
|
322
|
-
/** Sets up the focus trap. */
|
|
323
|
-
_initializeFocusTrap() {
|
|
324
|
-
if (this._platform.isBrowser) {
|
|
325
|
-
this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);
|
|
326
|
-
if (this._document) {
|
|
327
|
-
this._elementFocusedBeforeDialogWasOpened = _getFocusedElementPierceShadowDom();
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
/** Sets up the listener that handles clicks on the dialog backdrop. */
|
|
332
|
-
_handleBackdropClicks() {
|
|
333
|
-
this._overlayRef.backdropClick().subscribe(() => {
|
|
334
|
-
if (this._config.disableClose) {
|
|
335
|
-
this._recaptureFocus();
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
static {
|
|
340
|
-
this.ɵfac = function CdkDialogContainer_Factory(__ngFactoryType__) {
|
|
341
|
-
return new (__ngFactoryType__ || _CdkDialogContainer)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(FocusTrapFactory), ɵɵdirectiveInject(DOCUMENT, 8), ɵɵdirectiveInject(DialogConfig), ɵɵdirectiveInject(InteractivityChecker), ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(OverlayRef), ɵɵdirectiveInject(FocusMonitor));
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
static {
|
|
345
|
-
this.ɵcmp = ɵɵdefineComponent({
|
|
346
|
-
type: _CdkDialogContainer,
|
|
347
|
-
selectors: [["cdk-dialog-container"]],
|
|
348
|
-
viewQuery: function CdkDialogContainer_Query(rf, ctx) {
|
|
349
|
-
if (rf & 1) {
|
|
350
|
-
ɵɵviewQuery(CdkPortalOutlet, 7);
|
|
351
|
-
}
|
|
352
|
-
if (rf & 2) {
|
|
353
|
-
let _t;
|
|
354
|
-
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx._portalOutlet = _t.first);
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
hostAttrs: ["tabindex", "-1", 1, "cdk-dialog-container"],
|
|
358
|
-
hostVars: 6,
|
|
359
|
-
hostBindings: function CdkDialogContainer_HostBindings(rf, ctx) {
|
|
360
|
-
if (rf & 2) {
|
|
361
|
-
ɵɵattribute("id", ctx._config.id || null)("role", ctx._config.role)("aria-modal", ctx._config.ariaModal)("aria-labelledby", ctx._config.ariaLabel ? null : ctx._ariaLabelledByQueue[0])("aria-label", ctx._config.ariaLabel)("aria-describedby", ctx._config.ariaDescribedBy || null);
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
standalone: true,
|
|
365
|
-
features: [ɵɵInheritDefinitionFeature, ɵɵStandaloneFeature],
|
|
366
|
-
decls: 1,
|
|
367
|
-
vars: 0,
|
|
368
|
-
consts: [["cdkPortalOutlet", ""]],
|
|
369
|
-
template: function CdkDialogContainer_Template(rf, ctx) {
|
|
370
|
-
if (rf & 1) {
|
|
371
|
-
ɵɵtemplate(0, CdkDialogContainer_ng_template_0_Template, 0, 0, "ng-template", 0);
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
dependencies: [CdkPortalOutlet],
|
|
375
|
-
styles: [".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],
|
|
376
|
-
encapsulation: 2
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
|
-
(() => {
|
|
381
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CdkDialogContainer, [{
|
|
382
|
-
type: Component,
|
|
383
|
-
args: [{
|
|
384
|
-
selector: "cdk-dialog-container",
|
|
385
|
-
encapsulation: ViewEncapsulation$1.None,
|
|
386
|
-
changeDetection: ChangeDetectionStrategy.Default,
|
|
387
|
-
standalone: true,
|
|
388
|
-
imports: [CdkPortalOutlet],
|
|
389
|
-
host: {
|
|
390
|
-
"class": "cdk-dialog-container",
|
|
391
|
-
"tabindex": "-1",
|
|
392
|
-
"[attr.id]": "_config.id || null",
|
|
393
|
-
"[attr.role]": "_config.role",
|
|
394
|
-
"[attr.aria-modal]": "_config.ariaModal",
|
|
395
|
-
"[attr.aria-labelledby]": "_config.ariaLabel ? null : _ariaLabelledByQueue[0]",
|
|
396
|
-
"[attr.aria-label]": "_config.ariaLabel",
|
|
397
|
-
"[attr.aria-describedby]": "_config.ariaDescribedBy || null"
|
|
398
|
-
},
|
|
399
|
-
template: "<ng-template cdkPortalOutlet />\n",
|
|
400
|
-
styles: [".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"]
|
|
401
|
-
}]
|
|
402
|
-
}], () => [{
|
|
403
|
-
type: ElementRef
|
|
404
|
-
}, {
|
|
405
|
-
type: FocusTrapFactory
|
|
406
|
-
}, {
|
|
407
|
-
type: void 0,
|
|
408
|
-
decorators: [{
|
|
409
|
-
type: Optional
|
|
410
|
-
}, {
|
|
411
|
-
type: Inject,
|
|
412
|
-
args: [DOCUMENT]
|
|
413
|
-
}]
|
|
414
|
-
}, {
|
|
415
|
-
type: void 0,
|
|
416
|
-
decorators: [{
|
|
417
|
-
type: Inject,
|
|
418
|
-
args: [DialogConfig]
|
|
419
|
-
}]
|
|
420
|
-
}, {
|
|
421
|
-
type: InteractivityChecker
|
|
422
|
-
}, {
|
|
423
|
-
type: NgZone
|
|
424
|
-
}, {
|
|
425
|
-
type: OverlayRef
|
|
426
|
-
}, {
|
|
427
|
-
type: FocusMonitor
|
|
428
|
-
}], {
|
|
429
|
-
_portalOutlet: [{
|
|
430
|
-
type: ViewChild,
|
|
431
|
-
args: [CdkPortalOutlet, {
|
|
432
|
-
static: true
|
|
433
|
-
}]
|
|
434
|
-
}]
|
|
435
|
-
});
|
|
436
|
-
})();
|
|
437
|
-
var DialogRef = class {
|
|
438
|
-
constructor(overlayRef, config) {
|
|
439
|
-
this.overlayRef = overlayRef;
|
|
440
|
-
this.config = config;
|
|
441
|
-
this.closed = new Subject();
|
|
442
|
-
this.disableClose = config.disableClose;
|
|
443
|
-
this.backdropClick = overlayRef.backdropClick();
|
|
444
|
-
this.keydownEvents = overlayRef.keydownEvents();
|
|
445
|
-
this.outsidePointerEvents = overlayRef.outsidePointerEvents();
|
|
446
|
-
this.id = config.id;
|
|
447
|
-
this.keydownEvents.subscribe((event) => {
|
|
448
|
-
if (event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)) {
|
|
449
|
-
event.preventDefault();
|
|
450
|
-
this.close(void 0, {
|
|
451
|
-
focusOrigin: "keyboard"
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
});
|
|
455
|
-
this.backdropClick.subscribe(() => {
|
|
456
|
-
if (!this.disableClose) {
|
|
457
|
-
this.close(void 0, {
|
|
458
|
-
focusOrigin: "mouse"
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
});
|
|
462
|
-
this._detachSubscription = overlayRef.detachments().subscribe(() => {
|
|
463
|
-
if (config.closeOnOverlayDetachments !== false) {
|
|
464
|
-
this.close();
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
* Close the dialog.
|
|
470
|
-
* @param result Optional result to return to the dialog opener.
|
|
471
|
-
* @param options Additional options to customize the closing behavior.
|
|
472
|
-
*/
|
|
473
|
-
close(result, options) {
|
|
474
|
-
if (this.containerInstance) {
|
|
475
|
-
const closedSubject = this.closed;
|
|
476
|
-
this.containerInstance._closeInteractionType = options?.focusOrigin || "program";
|
|
477
|
-
this._detachSubscription.unsubscribe();
|
|
478
|
-
this.overlayRef.dispose();
|
|
479
|
-
closedSubject.next(result);
|
|
480
|
-
closedSubject.complete();
|
|
481
|
-
this.componentInstance = this.containerInstance = null;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
/** Updates the position of the dialog based on the current position strategy. */
|
|
485
|
-
updatePosition() {
|
|
486
|
-
this.overlayRef.updatePosition();
|
|
487
|
-
return this;
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Updates the dialog's width and height.
|
|
491
|
-
* @param width New width of the dialog.
|
|
492
|
-
* @param height New height of the dialog.
|
|
493
|
-
*/
|
|
494
|
-
updateSize(width = "", height = "") {
|
|
495
|
-
this.overlayRef.updateSize({
|
|
496
|
-
width,
|
|
497
|
-
height
|
|
498
|
-
});
|
|
499
|
-
return this;
|
|
500
|
-
}
|
|
501
|
-
/** Add a CSS class or an array of classes to the overlay pane. */
|
|
502
|
-
addPanelClass(classes) {
|
|
503
|
-
this.overlayRef.addPanelClass(classes);
|
|
504
|
-
return this;
|
|
505
|
-
}
|
|
506
|
-
/** Remove a CSS class or an array of classes from the overlay pane. */
|
|
507
|
-
removePanelClass(classes) {
|
|
508
|
-
this.overlayRef.removePanelClass(classes);
|
|
509
|
-
return this;
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
var DIALOG_SCROLL_STRATEGY = new InjectionToken("DialogScrollStrategy", {
|
|
513
|
-
providedIn: "root",
|
|
514
|
-
factory: () => {
|
|
515
|
-
const overlay = inject(Overlay);
|
|
516
|
-
return () => overlay.scrollStrategies.block();
|
|
517
|
-
}
|
|
518
|
-
});
|
|
519
|
-
var DIALOG_DATA = new InjectionToken("DialogData");
|
|
520
|
-
var DEFAULT_DIALOG_CONFIG = new InjectionToken("DefaultDialogConfig");
|
|
521
|
-
var uniqueId = 0;
|
|
522
|
-
var Dialog = class _Dialog {
|
|
523
|
-
/** Keeps track of the currently-open dialogs. */
|
|
524
|
-
get openDialogs() {
|
|
525
|
-
return this._parentDialog ? this._parentDialog.openDialogs : this._openDialogsAtThisLevel;
|
|
526
|
-
}
|
|
527
|
-
/** Stream that emits when a dialog has been opened. */
|
|
528
|
-
get afterOpened() {
|
|
529
|
-
return this._parentDialog ? this._parentDialog.afterOpened : this._afterOpenedAtThisLevel;
|
|
530
|
-
}
|
|
531
|
-
constructor(_overlay, _injector, _defaultOptions, _parentDialog, _overlayContainer, scrollStrategy) {
|
|
532
|
-
this._overlay = _overlay;
|
|
533
|
-
this._injector = _injector;
|
|
534
|
-
this._defaultOptions = _defaultOptions;
|
|
535
|
-
this._parentDialog = _parentDialog;
|
|
536
|
-
this._overlayContainer = _overlayContainer;
|
|
537
|
-
this._openDialogsAtThisLevel = [];
|
|
538
|
-
this._afterAllClosedAtThisLevel = new Subject();
|
|
539
|
-
this._afterOpenedAtThisLevel = new Subject();
|
|
540
|
-
this._ariaHiddenElements = /* @__PURE__ */ new Map();
|
|
541
|
-
this.afterAllClosed = defer(() => this.openDialogs.length ? this._getAfterAllClosed() : this._getAfterAllClosed().pipe(startWith(void 0)));
|
|
542
|
-
this._scrollStrategy = scrollStrategy;
|
|
543
|
-
}
|
|
544
|
-
open(componentOrTemplateRef, config) {
|
|
545
|
-
const defaults = this._defaultOptions || new DialogConfig();
|
|
546
|
-
config = __spreadValues(__spreadValues({}, defaults), config);
|
|
547
|
-
config.id = config.id || `cdk-dialog-${uniqueId++}`;
|
|
548
|
-
if (config.id && this.getDialogById(config.id) && (typeof ngDevMode === "undefined" || ngDevMode)) {
|
|
549
|
-
throw Error(`Dialog with id "${config.id}" exists already. The dialog id must be unique.`);
|
|
550
|
-
}
|
|
551
|
-
const overlayConfig = this._getOverlayConfig(config);
|
|
552
|
-
const overlayRef = this._overlay.create(overlayConfig);
|
|
553
|
-
const dialogRef = new DialogRef(overlayRef, config);
|
|
554
|
-
const dialogContainer = this._attachContainer(overlayRef, dialogRef, config);
|
|
555
|
-
dialogRef.containerInstance = dialogContainer;
|
|
556
|
-
this._attachDialogContent(componentOrTemplateRef, dialogRef, dialogContainer, config);
|
|
557
|
-
if (!this.openDialogs.length) {
|
|
558
|
-
this._hideNonDialogContentFromAssistiveTechnology();
|
|
559
|
-
}
|
|
560
|
-
this.openDialogs.push(dialogRef);
|
|
561
|
-
dialogRef.closed.subscribe(() => this._removeOpenDialog(dialogRef, true));
|
|
562
|
-
this.afterOpened.next(dialogRef);
|
|
563
|
-
return dialogRef;
|
|
564
|
-
}
|
|
565
|
-
/**
|
|
566
|
-
* Closes all of the currently-open dialogs.
|
|
567
|
-
*/
|
|
568
|
-
closeAll() {
|
|
569
|
-
reverseForEach(this.openDialogs, (dialog) => dialog.close());
|
|
570
|
-
}
|
|
571
|
-
/**
|
|
572
|
-
* Finds an open dialog by its id.
|
|
573
|
-
* @param id ID to use when looking up the dialog.
|
|
574
|
-
*/
|
|
575
|
-
getDialogById(id) {
|
|
576
|
-
return this.openDialogs.find((dialog) => dialog.id === id);
|
|
577
|
-
}
|
|
578
|
-
ngOnDestroy() {
|
|
579
|
-
reverseForEach(this._openDialogsAtThisLevel, (dialog) => {
|
|
580
|
-
if (dialog.config.closeOnDestroy === false) {
|
|
581
|
-
this._removeOpenDialog(dialog, false);
|
|
582
|
-
}
|
|
583
|
-
});
|
|
584
|
-
reverseForEach(this._openDialogsAtThisLevel, (dialog) => dialog.close());
|
|
585
|
-
this._afterAllClosedAtThisLevel.complete();
|
|
586
|
-
this._afterOpenedAtThisLevel.complete();
|
|
587
|
-
this._openDialogsAtThisLevel = [];
|
|
588
|
-
}
|
|
589
|
-
/**
|
|
590
|
-
* Creates an overlay config from a dialog config.
|
|
591
|
-
* @param config The dialog configuration.
|
|
592
|
-
* @returns The overlay configuration.
|
|
593
|
-
*/
|
|
594
|
-
_getOverlayConfig(config) {
|
|
595
|
-
const state2 = new OverlayConfig({
|
|
596
|
-
positionStrategy: config.positionStrategy || this._overlay.position().global().centerHorizontally().centerVertically(),
|
|
597
|
-
scrollStrategy: config.scrollStrategy || this._scrollStrategy(),
|
|
598
|
-
panelClass: config.panelClass,
|
|
599
|
-
hasBackdrop: config.hasBackdrop,
|
|
600
|
-
direction: config.direction,
|
|
601
|
-
minWidth: config.minWidth,
|
|
602
|
-
minHeight: config.minHeight,
|
|
603
|
-
maxWidth: config.maxWidth,
|
|
604
|
-
maxHeight: config.maxHeight,
|
|
605
|
-
width: config.width,
|
|
606
|
-
height: config.height,
|
|
607
|
-
disposeOnNavigation: config.closeOnNavigation
|
|
608
|
-
});
|
|
609
|
-
if (config.backdropClass) {
|
|
610
|
-
state2.backdropClass = config.backdropClass;
|
|
611
|
-
}
|
|
612
|
-
return state2;
|
|
613
|
-
}
|
|
614
|
-
/**
|
|
615
|
-
* Attaches a dialog container to a dialog's already-created overlay.
|
|
616
|
-
* @param overlay Reference to the dialog's underlying overlay.
|
|
617
|
-
* @param config The dialog configuration.
|
|
618
|
-
* @returns A promise resolving to a ComponentRef for the attached container.
|
|
619
|
-
*/
|
|
620
|
-
_attachContainer(overlay, dialogRef, config) {
|
|
621
|
-
const userInjector = config.injector || config.viewContainerRef?.injector;
|
|
622
|
-
const providers = [{
|
|
623
|
-
provide: DialogConfig,
|
|
624
|
-
useValue: config
|
|
625
|
-
}, {
|
|
626
|
-
provide: DialogRef,
|
|
627
|
-
useValue: dialogRef
|
|
628
|
-
}, {
|
|
629
|
-
provide: OverlayRef,
|
|
630
|
-
useValue: overlay
|
|
631
|
-
}];
|
|
632
|
-
let containerType;
|
|
633
|
-
if (config.container) {
|
|
634
|
-
if (typeof config.container === "function") {
|
|
635
|
-
containerType = config.container;
|
|
636
|
-
} else {
|
|
637
|
-
containerType = config.container.type;
|
|
638
|
-
providers.push(...config.container.providers(config));
|
|
639
|
-
}
|
|
640
|
-
} else {
|
|
641
|
-
containerType = CdkDialogContainer;
|
|
642
|
-
}
|
|
643
|
-
const containerPortal = new ComponentPortal(containerType, config.viewContainerRef, Injector.create({
|
|
644
|
-
parent: userInjector || this._injector,
|
|
645
|
-
providers
|
|
646
|
-
}), config.componentFactoryResolver);
|
|
647
|
-
const containerRef = overlay.attach(containerPortal);
|
|
648
|
-
return containerRef.instance;
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* Attaches the user-provided component to the already-created dialog container.
|
|
652
|
-
* @param componentOrTemplateRef The type of component being loaded into the dialog,
|
|
653
|
-
* or a TemplateRef to instantiate as the content.
|
|
654
|
-
* @param dialogRef Reference to the dialog being opened.
|
|
655
|
-
* @param dialogContainer Component that is going to wrap the dialog content.
|
|
656
|
-
* @param config Configuration used to open the dialog.
|
|
657
|
-
*/
|
|
658
|
-
_attachDialogContent(componentOrTemplateRef, dialogRef, dialogContainer, config) {
|
|
659
|
-
if (componentOrTemplateRef instanceof TemplateRef) {
|
|
660
|
-
const injector = this._createInjector(config, dialogRef, dialogContainer, void 0);
|
|
661
|
-
let context = {
|
|
662
|
-
$implicit: config.data,
|
|
663
|
-
dialogRef
|
|
664
|
-
};
|
|
665
|
-
if (config.templateContext) {
|
|
666
|
-
context = __spreadValues(__spreadValues({}, context), typeof config.templateContext === "function" ? config.templateContext() : config.templateContext);
|
|
667
|
-
}
|
|
668
|
-
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, context, injector));
|
|
669
|
-
} else {
|
|
670
|
-
const injector = this._createInjector(config, dialogRef, dialogContainer, this._injector);
|
|
671
|
-
const contentRef = dialogContainer.attachComponentPortal(new ComponentPortal(componentOrTemplateRef, config.viewContainerRef, injector, config.componentFactoryResolver));
|
|
672
|
-
dialogRef.componentRef = contentRef;
|
|
673
|
-
dialogRef.componentInstance = contentRef.instance;
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
/**
|
|
677
|
-
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
678
|
-
* of a dialog to close itself and, optionally, to return a value.
|
|
679
|
-
* @param config Config object that is used to construct the dialog.
|
|
680
|
-
* @param dialogRef Reference to the dialog being opened.
|
|
681
|
-
* @param dialogContainer Component that is going to wrap the dialog content.
|
|
682
|
-
* @param fallbackInjector Injector to use as a fallback when a lookup fails in the custom
|
|
683
|
-
* dialog injector, if the user didn't provide a custom one.
|
|
684
|
-
* @returns The custom injector that can be used inside the dialog.
|
|
685
|
-
*/
|
|
686
|
-
_createInjector(config, dialogRef, dialogContainer, fallbackInjector) {
|
|
687
|
-
const userInjector = config.injector || config.viewContainerRef?.injector;
|
|
688
|
-
const providers = [{
|
|
689
|
-
provide: DIALOG_DATA,
|
|
690
|
-
useValue: config.data
|
|
691
|
-
}, {
|
|
692
|
-
provide: DialogRef,
|
|
693
|
-
useValue: dialogRef
|
|
694
|
-
}];
|
|
695
|
-
if (config.providers) {
|
|
696
|
-
if (typeof config.providers === "function") {
|
|
697
|
-
providers.push(...config.providers(dialogRef, config, dialogContainer));
|
|
698
|
-
} else {
|
|
699
|
-
providers.push(...config.providers);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
if (config.direction && (!userInjector || !userInjector.get(Directionality, null, {
|
|
703
|
-
optional: true
|
|
704
|
-
}))) {
|
|
705
|
-
providers.push({
|
|
706
|
-
provide: Directionality,
|
|
707
|
-
useValue: {
|
|
708
|
-
value: config.direction,
|
|
709
|
-
change: of()
|
|
710
|
-
}
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
return Injector.create({
|
|
714
|
-
parent: userInjector || fallbackInjector,
|
|
715
|
-
providers
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
/**
|
|
719
|
-
* Removes a dialog from the array of open dialogs.
|
|
720
|
-
* @param dialogRef Dialog to be removed.
|
|
721
|
-
* @param emitEvent Whether to emit an event if this is the last dialog.
|
|
722
|
-
*/
|
|
723
|
-
_removeOpenDialog(dialogRef, emitEvent) {
|
|
724
|
-
const index = this.openDialogs.indexOf(dialogRef);
|
|
725
|
-
if (index > -1) {
|
|
726
|
-
this.openDialogs.splice(index, 1);
|
|
727
|
-
if (!this.openDialogs.length) {
|
|
728
|
-
this._ariaHiddenElements.forEach((previousValue, element) => {
|
|
729
|
-
if (previousValue) {
|
|
730
|
-
element.setAttribute("aria-hidden", previousValue);
|
|
731
|
-
} else {
|
|
732
|
-
element.removeAttribute("aria-hidden");
|
|
733
|
-
}
|
|
734
|
-
});
|
|
735
|
-
this._ariaHiddenElements.clear();
|
|
736
|
-
if (emitEvent) {
|
|
737
|
-
this._getAfterAllClosed().next();
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
/** Hides all of the content that isn't an overlay from assistive technology. */
|
|
743
|
-
_hideNonDialogContentFromAssistiveTechnology() {
|
|
744
|
-
const overlayContainer = this._overlayContainer.getContainerElement();
|
|
745
|
-
if (overlayContainer.parentElement) {
|
|
746
|
-
const siblings = overlayContainer.parentElement.children;
|
|
747
|
-
for (let i = siblings.length - 1; i > -1; i--) {
|
|
748
|
-
const sibling = siblings[i];
|
|
749
|
-
if (sibling !== overlayContainer && sibling.nodeName !== "SCRIPT" && sibling.nodeName !== "STYLE" && !sibling.hasAttribute("aria-live")) {
|
|
750
|
-
this._ariaHiddenElements.set(sibling, sibling.getAttribute("aria-hidden"));
|
|
751
|
-
sibling.setAttribute("aria-hidden", "true");
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
_getAfterAllClosed() {
|
|
757
|
-
const parent = this._parentDialog;
|
|
758
|
-
return parent ? parent._getAfterAllClosed() : this._afterAllClosedAtThisLevel;
|
|
759
|
-
}
|
|
760
|
-
static {
|
|
761
|
-
this.ɵfac = function Dialog_Factory(__ngFactoryType__) {
|
|
762
|
-
return new (__ngFactoryType__ || _Dialog)(ɵɵinject(Overlay), ɵɵinject(Injector), ɵɵinject(DEFAULT_DIALOG_CONFIG, 8), ɵɵinject(_Dialog, 12), ɵɵinject(OverlayContainer), ɵɵinject(DIALOG_SCROLL_STRATEGY));
|
|
763
|
-
};
|
|
764
|
-
}
|
|
765
|
-
static {
|
|
766
|
-
this.ɵprov = ɵɵdefineInjectable({
|
|
767
|
-
token: _Dialog,
|
|
768
|
-
factory: _Dialog.ɵfac,
|
|
769
|
-
providedIn: "root"
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
|
-
(() => {
|
|
774
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Dialog, [{
|
|
775
|
-
type: Injectable,
|
|
776
|
-
args: [{
|
|
777
|
-
providedIn: "root"
|
|
778
|
-
}]
|
|
779
|
-
}], () => [{
|
|
780
|
-
type: Overlay
|
|
781
|
-
}, {
|
|
782
|
-
type: Injector
|
|
783
|
-
}, {
|
|
784
|
-
type: DialogConfig,
|
|
785
|
-
decorators: [{
|
|
786
|
-
type: Optional
|
|
787
|
-
}, {
|
|
788
|
-
type: Inject,
|
|
789
|
-
args: [DEFAULT_DIALOG_CONFIG]
|
|
790
|
-
}]
|
|
791
|
-
}, {
|
|
792
|
-
type: Dialog,
|
|
793
|
-
decorators: [{
|
|
794
|
-
type: Optional
|
|
795
|
-
}, {
|
|
796
|
-
type: SkipSelf
|
|
797
|
-
}]
|
|
798
|
-
}, {
|
|
799
|
-
type: OverlayContainer
|
|
800
|
-
}, {
|
|
801
|
-
type: void 0,
|
|
802
|
-
decorators: [{
|
|
803
|
-
type: Inject,
|
|
804
|
-
args: [DIALOG_SCROLL_STRATEGY]
|
|
805
|
-
}]
|
|
806
|
-
}], null);
|
|
807
|
-
})();
|
|
808
|
-
function reverseForEach(items, callback) {
|
|
809
|
-
let i = items.length;
|
|
810
|
-
while (i--) {
|
|
811
|
-
callback(items[i]);
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
var DialogModule = class _DialogModule {
|
|
815
|
-
static {
|
|
816
|
-
this.ɵfac = function DialogModule_Factory(__ngFactoryType__) {
|
|
817
|
-
return new (__ngFactoryType__ || _DialogModule)();
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
static {
|
|
821
|
-
this.ɵmod = ɵɵdefineNgModule({
|
|
822
|
-
type: _DialogModule,
|
|
823
|
-
imports: [OverlayModule, PortalModule, A11yModule, CdkDialogContainer],
|
|
824
|
-
exports: [
|
|
825
|
-
// Re-export the PortalModule so that people extending the `CdkDialogContainer`
|
|
826
|
-
// don't have to remember to import it or be faced with an unhelpful error.
|
|
827
|
-
PortalModule,
|
|
828
|
-
CdkDialogContainer
|
|
829
|
-
]
|
|
830
|
-
});
|
|
831
|
-
}
|
|
832
|
-
static {
|
|
833
|
-
this.ɵinj = ɵɵdefineInjector({
|
|
834
|
-
providers: [Dialog],
|
|
835
|
-
imports: [
|
|
836
|
-
OverlayModule,
|
|
837
|
-
PortalModule,
|
|
838
|
-
A11yModule,
|
|
839
|
-
// Re-export the PortalModule so that people extending the `CdkDialogContainer`
|
|
840
|
-
// don't have to remember to import it or be faced with an unhelpful error.
|
|
841
|
-
PortalModule
|
|
842
|
-
]
|
|
843
|
-
});
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
(() => {
|
|
847
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(DialogModule, [{
|
|
848
|
-
type: NgModule,
|
|
849
|
-
args: [{
|
|
850
|
-
imports: [OverlayModule, PortalModule, A11yModule, CdkDialogContainer],
|
|
851
|
-
exports: [
|
|
852
|
-
// Re-export the PortalModule so that people extending the `CdkDialogContainer`
|
|
853
|
-
// don't have to remember to import it or be faced with an unhelpful error.
|
|
854
|
-
PortalModule,
|
|
855
|
-
CdkDialogContainer
|
|
856
|
-
],
|
|
857
|
-
providers: [Dialog]
|
|
858
|
-
}]
|
|
859
|
-
}], null, null);
|
|
860
|
-
})();
|
|
861
|
-
|
|
862
|
-
// node_modules/@angular/material/fesm2022/dialog.mjs
|
|
863
|
-
function MatDialogContainer_ng_template_2_Template(rf, ctx) {
|
|
864
|
-
}
|
|
865
|
-
var MatDialogConfig = class {
|
|
866
|
-
constructor() {
|
|
867
|
-
this.role = "dialog";
|
|
868
|
-
this.panelClass = "";
|
|
869
|
-
this.hasBackdrop = true;
|
|
870
|
-
this.backdropClass = "";
|
|
871
|
-
this.disableClose = false;
|
|
872
|
-
this.width = "";
|
|
873
|
-
this.height = "";
|
|
874
|
-
this.data = null;
|
|
875
|
-
this.ariaDescribedBy = null;
|
|
876
|
-
this.ariaLabelledBy = null;
|
|
877
|
-
this.ariaLabel = null;
|
|
878
|
-
this.ariaModal = true;
|
|
879
|
-
this.autoFocus = "first-tabbable";
|
|
880
|
-
this.restoreFocus = true;
|
|
881
|
-
this.delayFocusTrap = true;
|
|
882
|
-
this.closeOnNavigation = true;
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
|
-
var OPEN_CLASS = "mdc-dialog--open";
|
|
886
|
-
var OPENING_CLASS = "mdc-dialog--opening";
|
|
887
|
-
var CLOSING_CLASS = "mdc-dialog--closing";
|
|
888
|
-
var OPEN_ANIMATION_DURATION = 150;
|
|
889
|
-
var CLOSE_ANIMATION_DURATION = 75;
|
|
890
|
-
var MatDialogContainer = class _MatDialogContainer extends CdkDialogContainer {
|
|
891
|
-
constructor(elementRef, focusTrapFactory, _document, dialogConfig, interactivityChecker, ngZone, overlayRef, _animationMode, focusMonitor) {
|
|
892
|
-
super(elementRef, focusTrapFactory, _document, dialogConfig, interactivityChecker, ngZone, overlayRef, focusMonitor);
|
|
893
|
-
this._animationMode = _animationMode;
|
|
894
|
-
this._animationStateChanged = new EventEmitter();
|
|
895
|
-
this._animationsEnabled = this._animationMode !== "NoopAnimations";
|
|
896
|
-
this._actionSectionCount = 0;
|
|
897
|
-
this._hostElement = this._elementRef.nativeElement;
|
|
898
|
-
this._enterAnimationDuration = this._animationsEnabled ? parseCssTime(this._config.enterAnimationDuration) ?? OPEN_ANIMATION_DURATION : 0;
|
|
899
|
-
this._exitAnimationDuration = this._animationsEnabled ? parseCssTime(this._config.exitAnimationDuration) ?? CLOSE_ANIMATION_DURATION : 0;
|
|
900
|
-
this._animationTimer = null;
|
|
901
|
-
this._finishDialogOpen = () => {
|
|
902
|
-
this._clearAnimationClasses();
|
|
903
|
-
this._openAnimationDone(this._enterAnimationDuration);
|
|
904
|
-
};
|
|
905
|
-
this._finishDialogClose = () => {
|
|
906
|
-
this._clearAnimationClasses();
|
|
907
|
-
this._animationStateChanged.emit({
|
|
908
|
-
state: "closed",
|
|
909
|
-
totalTime: this._exitAnimationDuration
|
|
910
|
-
});
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
_contentAttached() {
|
|
914
|
-
super._contentAttached();
|
|
915
|
-
this._startOpenAnimation();
|
|
916
|
-
}
|
|
917
|
-
/** Starts the dialog open animation if enabled. */
|
|
918
|
-
_startOpenAnimation() {
|
|
919
|
-
this._animationStateChanged.emit({
|
|
920
|
-
state: "opening",
|
|
921
|
-
totalTime: this._enterAnimationDuration
|
|
922
|
-
});
|
|
923
|
-
if (this._animationsEnabled) {
|
|
924
|
-
this._hostElement.style.setProperty(TRANSITION_DURATION_PROPERTY, `${this._enterAnimationDuration}ms`);
|
|
925
|
-
this._requestAnimationFrame(() => this._hostElement.classList.add(OPENING_CLASS, OPEN_CLASS));
|
|
926
|
-
this._waitForAnimationToComplete(this._enterAnimationDuration, this._finishDialogOpen);
|
|
927
|
-
} else {
|
|
928
|
-
this._hostElement.classList.add(OPEN_CLASS);
|
|
929
|
-
Promise.resolve().then(() => this._finishDialogOpen());
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
/**
|
|
933
|
-
* Starts the exit animation of the dialog if enabled. This method is
|
|
934
|
-
* called by the dialog ref.
|
|
935
|
-
*/
|
|
936
|
-
_startExitAnimation() {
|
|
937
|
-
this._animationStateChanged.emit({
|
|
938
|
-
state: "closing",
|
|
939
|
-
totalTime: this._exitAnimationDuration
|
|
940
|
-
});
|
|
941
|
-
this._hostElement.classList.remove(OPEN_CLASS);
|
|
942
|
-
if (this._animationsEnabled) {
|
|
943
|
-
this._hostElement.style.setProperty(TRANSITION_DURATION_PROPERTY, `${this._exitAnimationDuration}ms`);
|
|
944
|
-
this._requestAnimationFrame(() => this._hostElement.classList.add(CLOSING_CLASS));
|
|
945
|
-
this._waitForAnimationToComplete(this._exitAnimationDuration, this._finishDialogClose);
|
|
946
|
-
} else {
|
|
947
|
-
Promise.resolve().then(() => this._finishDialogClose());
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
/**
|
|
951
|
-
* Updates the number action sections.
|
|
952
|
-
* @param delta Increase/decrease in the number of sections.
|
|
953
|
-
*/
|
|
954
|
-
_updateActionSectionCount(delta) {
|
|
955
|
-
this._actionSectionCount += delta;
|
|
956
|
-
this._changeDetectorRef.markForCheck();
|
|
957
|
-
}
|
|
958
|
-
/** Clears all dialog animation classes. */
|
|
959
|
-
_clearAnimationClasses() {
|
|
960
|
-
this._hostElement.classList.remove(OPENING_CLASS, CLOSING_CLASS);
|
|
961
|
-
}
|
|
962
|
-
_waitForAnimationToComplete(duration, callback) {
|
|
963
|
-
if (this._animationTimer !== null) {
|
|
964
|
-
clearTimeout(this._animationTimer);
|
|
965
|
-
}
|
|
966
|
-
this._animationTimer = setTimeout(callback, duration);
|
|
967
|
-
}
|
|
968
|
-
/** Runs a callback in `requestAnimationFrame`, if available. */
|
|
969
|
-
_requestAnimationFrame(callback) {
|
|
970
|
-
this._ngZone.runOutsideAngular(() => {
|
|
971
|
-
if (typeof requestAnimationFrame === "function") {
|
|
972
|
-
requestAnimationFrame(callback);
|
|
973
|
-
} else {
|
|
974
|
-
callback();
|
|
975
|
-
}
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
_captureInitialFocus() {
|
|
979
|
-
if (!this._config.delayFocusTrap) {
|
|
980
|
-
this._trapFocus();
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
/**
|
|
984
|
-
* Callback for when the open dialog animation has finished. Intended to
|
|
985
|
-
* be called by sub-classes that use different animation implementations.
|
|
986
|
-
*/
|
|
987
|
-
_openAnimationDone(totalTime) {
|
|
988
|
-
if (this._config.delayFocusTrap) {
|
|
989
|
-
this._trapFocus();
|
|
990
|
-
}
|
|
991
|
-
this._animationStateChanged.next({
|
|
992
|
-
state: "opened",
|
|
993
|
-
totalTime
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
ngOnDestroy() {
|
|
997
|
-
super.ngOnDestroy();
|
|
998
|
-
if (this._animationTimer !== null) {
|
|
999
|
-
clearTimeout(this._animationTimer);
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
attachComponentPortal(portal) {
|
|
1003
|
-
const ref = super.attachComponentPortal(portal);
|
|
1004
|
-
ref.location.nativeElement.classList.add("mat-mdc-dialog-component-host");
|
|
1005
|
-
return ref;
|
|
1006
|
-
}
|
|
1007
|
-
static {
|
|
1008
|
-
this.ɵfac = function MatDialogContainer_Factory(__ngFactoryType__) {
|
|
1009
|
-
return new (__ngFactoryType__ || _MatDialogContainer)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(FocusTrapFactory), ɵɵdirectiveInject(DOCUMENT, 8), ɵɵdirectiveInject(MatDialogConfig), ɵɵdirectiveInject(InteractivityChecker), ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(OverlayRef), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8), ɵɵdirectiveInject(FocusMonitor));
|
|
1010
|
-
};
|
|
1011
|
-
}
|
|
1012
|
-
static {
|
|
1013
|
-
this.ɵcmp = ɵɵdefineComponent({
|
|
1014
|
-
type: _MatDialogContainer,
|
|
1015
|
-
selectors: [["mat-dialog-container"]],
|
|
1016
|
-
hostAttrs: ["tabindex", "-1", 1, "mat-mdc-dialog-container", "mdc-dialog"],
|
|
1017
|
-
hostVars: 10,
|
|
1018
|
-
hostBindings: function MatDialogContainer_HostBindings(rf, ctx) {
|
|
1019
|
-
if (rf & 2) {
|
|
1020
|
-
ɵɵhostProperty("id", ctx._config.id);
|
|
1021
|
-
ɵɵattribute("aria-modal", ctx._config.ariaModal)("role", ctx._config.role)("aria-labelledby", ctx._config.ariaLabel ? null : ctx._ariaLabelledByQueue[0])("aria-label", ctx._config.ariaLabel)("aria-describedby", ctx._config.ariaDescribedBy || null);
|
|
1022
|
-
ɵɵclassProp("_mat-animation-noopable", !ctx._animationsEnabled)("mat-mdc-dialog-container-with-actions", ctx._actionSectionCount > 0);
|
|
1023
|
-
}
|
|
1024
|
-
},
|
|
1025
|
-
standalone: true,
|
|
1026
|
-
features: [ɵɵInheritDefinitionFeature, ɵɵStandaloneFeature],
|
|
1027
|
-
decls: 3,
|
|
1028
|
-
vars: 0,
|
|
1029
|
-
consts: [[1, "mat-mdc-dialog-inner-container", "mdc-dialog__container"], [1, "mat-mdc-dialog-surface", "mdc-dialog__surface"], ["cdkPortalOutlet", ""]],
|
|
1030
|
-
template: function MatDialogContainer_Template(rf, ctx) {
|
|
1031
|
-
if (rf & 1) {
|
|
1032
|
-
ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
1033
|
-
ɵɵtemplate(2, MatDialogContainer_ng_template_2_Template, 0, 0, "ng-template", 2);
|
|
1034
|
-
ɵɵelementEnd()();
|
|
1035
|
-
}
|
|
1036
|
-
},
|
|
1037
|
-
dependencies: [CdkPortalOutlet],
|
|
1038
|
-
styles: ['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],
|
|
1039
|
-
encapsulation: 2
|
|
1040
|
-
});
|
|
1041
|
-
}
|
|
1042
|
-
};
|
|
1043
|
-
(() => {
|
|
1044
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatDialogContainer, [{
|
|
1045
|
-
type: Component,
|
|
1046
|
-
args: [{
|
|
1047
|
-
selector: "mat-dialog-container",
|
|
1048
|
-
encapsulation: ViewEncapsulation$1.None,
|
|
1049
|
-
changeDetection: ChangeDetectionStrategy.Default,
|
|
1050
|
-
standalone: true,
|
|
1051
|
-
imports: [CdkPortalOutlet],
|
|
1052
|
-
host: {
|
|
1053
|
-
"class": "mat-mdc-dialog-container mdc-dialog",
|
|
1054
|
-
"tabindex": "-1",
|
|
1055
|
-
"[attr.aria-modal]": "_config.ariaModal",
|
|
1056
|
-
"[id]": "_config.id",
|
|
1057
|
-
"[attr.role]": "_config.role",
|
|
1058
|
-
"[attr.aria-labelledby]": "_config.ariaLabel ? null : _ariaLabelledByQueue[0]",
|
|
1059
|
-
"[attr.aria-label]": "_config.ariaLabel",
|
|
1060
|
-
"[attr.aria-describedby]": "_config.ariaDescribedBy || null",
|
|
1061
|
-
"[class._mat-animation-noopable]": "!_animationsEnabled",
|
|
1062
|
-
"[class.mat-mdc-dialog-container-with-actions]": "_actionSectionCount > 0"
|
|
1063
|
-
},
|
|
1064
|
-
template: '<div class="mat-mdc-dialog-inner-container mdc-dialog__container">\n <div class="mat-mdc-dialog-surface mdc-dialog__surface">\n <ng-template cdkPortalOutlet />\n </div>\n</div>\n',
|
|
1065
|
-
styles: ['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}']
|
|
1066
|
-
}]
|
|
1067
|
-
}], () => [{
|
|
1068
|
-
type: ElementRef
|
|
1069
|
-
}, {
|
|
1070
|
-
type: FocusTrapFactory
|
|
1071
|
-
}, {
|
|
1072
|
-
type: void 0,
|
|
1073
|
-
decorators: [{
|
|
1074
|
-
type: Optional
|
|
1075
|
-
}, {
|
|
1076
|
-
type: Inject,
|
|
1077
|
-
args: [DOCUMENT]
|
|
1078
|
-
}]
|
|
1079
|
-
}, {
|
|
1080
|
-
type: MatDialogConfig
|
|
1081
|
-
}, {
|
|
1082
|
-
type: InteractivityChecker
|
|
1083
|
-
}, {
|
|
1084
|
-
type: NgZone
|
|
1085
|
-
}, {
|
|
1086
|
-
type: OverlayRef
|
|
1087
|
-
}, {
|
|
1088
|
-
type: void 0,
|
|
1089
|
-
decorators: [{
|
|
1090
|
-
type: Optional
|
|
1091
|
-
}, {
|
|
1092
|
-
type: Inject,
|
|
1093
|
-
args: [ANIMATION_MODULE_TYPE]
|
|
1094
|
-
}]
|
|
1095
|
-
}, {
|
|
1096
|
-
type: FocusMonitor
|
|
1097
|
-
}], null);
|
|
1098
|
-
})();
|
|
1099
|
-
var TRANSITION_DURATION_PROPERTY = "--mat-dialog-transition-duration";
|
|
1100
|
-
function parseCssTime(time) {
|
|
1101
|
-
if (time == null) {
|
|
1102
|
-
return null;
|
|
1103
|
-
}
|
|
1104
|
-
if (typeof time === "number") {
|
|
1105
|
-
return time;
|
|
1106
|
-
}
|
|
1107
|
-
if (time.endsWith("ms")) {
|
|
1108
|
-
return coerceNumberProperty(time.substring(0, time.length - 2));
|
|
1109
|
-
}
|
|
1110
|
-
if (time.endsWith("s")) {
|
|
1111
|
-
return coerceNumberProperty(time.substring(0, time.length - 1)) * 1e3;
|
|
1112
|
-
}
|
|
1113
|
-
if (time === "0") {
|
|
1114
|
-
return 0;
|
|
1115
|
-
}
|
|
1116
|
-
return null;
|
|
1117
|
-
}
|
|
1118
|
-
var MatDialogState;
|
|
1119
|
-
(function(MatDialogState2) {
|
|
1120
|
-
MatDialogState2[MatDialogState2["OPEN"] = 0] = "OPEN";
|
|
1121
|
-
MatDialogState2[MatDialogState2["CLOSING"] = 1] = "CLOSING";
|
|
1122
|
-
MatDialogState2[MatDialogState2["CLOSED"] = 2] = "CLOSED";
|
|
1123
|
-
})(MatDialogState || (MatDialogState = {}));
|
|
1124
|
-
var MatDialogRef = class {
|
|
1125
|
-
constructor(_ref, config, _containerInstance) {
|
|
1126
|
-
this._ref = _ref;
|
|
1127
|
-
this._containerInstance = _containerInstance;
|
|
1128
|
-
this._afterOpened = new Subject();
|
|
1129
|
-
this._beforeClosed = new Subject();
|
|
1130
|
-
this._state = MatDialogState.OPEN;
|
|
1131
|
-
this.disableClose = config.disableClose;
|
|
1132
|
-
this.id = _ref.id;
|
|
1133
|
-
_ref.addPanelClass("mat-mdc-dialog-panel");
|
|
1134
|
-
_containerInstance._animationStateChanged.pipe(filter((event) => event.state === "opened"), take(1)).subscribe(() => {
|
|
1135
|
-
this._afterOpened.next();
|
|
1136
|
-
this._afterOpened.complete();
|
|
1137
|
-
});
|
|
1138
|
-
_containerInstance._animationStateChanged.pipe(filter((event) => event.state === "closed"), take(1)).subscribe(() => {
|
|
1139
|
-
clearTimeout(this._closeFallbackTimeout);
|
|
1140
|
-
this._finishDialogClose();
|
|
1141
|
-
});
|
|
1142
|
-
_ref.overlayRef.detachments().subscribe(() => {
|
|
1143
|
-
this._beforeClosed.next(this._result);
|
|
1144
|
-
this._beforeClosed.complete();
|
|
1145
|
-
this._finishDialogClose();
|
|
1146
|
-
});
|
|
1147
|
-
merge(this.backdropClick(), this.keydownEvents().pipe(filter((event) => event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)))).subscribe((event) => {
|
|
1148
|
-
if (!this.disableClose) {
|
|
1149
|
-
event.preventDefault();
|
|
1150
|
-
_closeDialogVia(this, event.type === "keydown" ? "keyboard" : "mouse");
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* Close the dialog.
|
|
1156
|
-
* @param dialogResult Optional result to return to the dialog opener.
|
|
1157
|
-
*/
|
|
1158
|
-
close(dialogResult) {
|
|
1159
|
-
this._result = dialogResult;
|
|
1160
|
-
this._containerInstance._animationStateChanged.pipe(filter((event) => event.state === "closing"), take(1)).subscribe((event) => {
|
|
1161
|
-
this._beforeClosed.next(dialogResult);
|
|
1162
|
-
this._beforeClosed.complete();
|
|
1163
|
-
this._ref.overlayRef.detachBackdrop();
|
|
1164
|
-
this._closeFallbackTimeout = setTimeout(() => this._finishDialogClose(), event.totalTime + 100);
|
|
1165
|
-
});
|
|
1166
|
-
this._state = MatDialogState.CLOSING;
|
|
1167
|
-
this._containerInstance._startExitAnimation();
|
|
1168
|
-
}
|
|
1169
|
-
/**
|
|
1170
|
-
* Gets an observable that is notified when the dialog is finished opening.
|
|
1171
|
-
*/
|
|
1172
|
-
afterOpened() {
|
|
1173
|
-
return this._afterOpened;
|
|
1174
|
-
}
|
|
1175
|
-
/**
|
|
1176
|
-
* Gets an observable that is notified when the dialog is finished closing.
|
|
1177
|
-
*/
|
|
1178
|
-
afterClosed() {
|
|
1179
|
-
return this._ref.closed;
|
|
1180
|
-
}
|
|
1181
|
-
/**
|
|
1182
|
-
* Gets an observable that is notified when the dialog has started closing.
|
|
1183
|
-
*/
|
|
1184
|
-
beforeClosed() {
|
|
1185
|
-
return this._beforeClosed;
|
|
1186
|
-
}
|
|
1187
|
-
/**
|
|
1188
|
-
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
1189
|
-
*/
|
|
1190
|
-
backdropClick() {
|
|
1191
|
-
return this._ref.backdropClick;
|
|
1192
|
-
}
|
|
1193
|
-
/**
|
|
1194
|
-
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
1195
|
-
*/
|
|
1196
|
-
keydownEvents() {
|
|
1197
|
-
return this._ref.keydownEvents;
|
|
1198
|
-
}
|
|
1199
|
-
/**
|
|
1200
|
-
* Updates the dialog's position.
|
|
1201
|
-
* @param position New dialog position.
|
|
1202
|
-
*/
|
|
1203
|
-
updatePosition(position) {
|
|
1204
|
-
let strategy = this._ref.config.positionStrategy;
|
|
1205
|
-
if (position && (position.left || position.right)) {
|
|
1206
|
-
position.left ? strategy.left(position.left) : strategy.right(position.right);
|
|
1207
|
-
} else {
|
|
1208
|
-
strategy.centerHorizontally();
|
|
1209
|
-
}
|
|
1210
|
-
if (position && (position.top || position.bottom)) {
|
|
1211
|
-
position.top ? strategy.top(position.top) : strategy.bottom(position.bottom);
|
|
1212
|
-
} else {
|
|
1213
|
-
strategy.centerVertically();
|
|
1214
|
-
}
|
|
1215
|
-
this._ref.updatePosition();
|
|
1216
|
-
return this;
|
|
1217
|
-
}
|
|
1218
|
-
/**
|
|
1219
|
-
* Updates the dialog's width and height.
|
|
1220
|
-
* @param width New width of the dialog.
|
|
1221
|
-
* @param height New height of the dialog.
|
|
1222
|
-
*/
|
|
1223
|
-
updateSize(width = "", height = "") {
|
|
1224
|
-
this._ref.updateSize(width, height);
|
|
1225
|
-
return this;
|
|
1226
|
-
}
|
|
1227
|
-
/** Add a CSS class or an array of classes to the overlay pane. */
|
|
1228
|
-
addPanelClass(classes) {
|
|
1229
|
-
this._ref.addPanelClass(classes);
|
|
1230
|
-
return this;
|
|
1231
|
-
}
|
|
1232
|
-
/** Remove a CSS class or an array of classes from the overlay pane. */
|
|
1233
|
-
removePanelClass(classes) {
|
|
1234
|
-
this._ref.removePanelClass(classes);
|
|
1235
|
-
return this;
|
|
1236
|
-
}
|
|
1237
|
-
/** Gets the current state of the dialog's lifecycle. */
|
|
1238
|
-
getState() {
|
|
1239
|
-
return this._state;
|
|
1240
|
-
}
|
|
1241
|
-
/**
|
|
1242
|
-
* Finishes the dialog close by updating the state of the dialog
|
|
1243
|
-
* and disposing the overlay.
|
|
1244
|
-
*/
|
|
1245
|
-
_finishDialogClose() {
|
|
1246
|
-
this._state = MatDialogState.CLOSED;
|
|
1247
|
-
this._ref.close(this._result, {
|
|
1248
|
-
focusOrigin: this._closeInteractionType
|
|
1249
|
-
});
|
|
1250
|
-
this.componentInstance = null;
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
|
-
function _closeDialogVia(ref, interactionType, result) {
|
|
1254
|
-
ref._closeInteractionType = interactionType;
|
|
1255
|
-
return ref.close(result);
|
|
1256
|
-
}
|
|
1257
|
-
var MAT_DIALOG_DATA = new InjectionToken("MatMdcDialogData");
|
|
1258
|
-
var MAT_DIALOG_DEFAULT_OPTIONS = new InjectionToken("mat-mdc-dialog-default-options");
|
|
1259
|
-
var MAT_DIALOG_SCROLL_STRATEGY = new InjectionToken("mat-mdc-dialog-scroll-strategy", {
|
|
1260
|
-
providedIn: "root",
|
|
1261
|
-
factory: () => {
|
|
1262
|
-
const overlay = inject(Overlay);
|
|
1263
|
-
return () => overlay.scrollStrategies.block();
|
|
1264
|
-
}
|
|
1265
|
-
});
|
|
1266
|
-
function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
|
|
1267
|
-
return () => overlay.scrollStrategies.block();
|
|
1268
|
-
}
|
|
1269
|
-
var MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {
|
|
1270
|
-
provide: MAT_DIALOG_SCROLL_STRATEGY,
|
|
1271
|
-
deps: [Overlay],
|
|
1272
|
-
useFactory: MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY
|
|
1273
|
-
};
|
|
1274
|
-
var uniqueId2 = 0;
|
|
1275
|
-
var MatDialog = class _MatDialog {
|
|
1276
|
-
/** Keeps track of the currently-open dialogs. */
|
|
1277
|
-
get openDialogs() {
|
|
1278
|
-
return this._parentDialog ? this._parentDialog.openDialogs : this._openDialogsAtThisLevel;
|
|
1279
|
-
}
|
|
1280
|
-
/** Stream that emits when a dialog has been opened. */
|
|
1281
|
-
get afterOpened() {
|
|
1282
|
-
return this._parentDialog ? this._parentDialog.afterOpened : this._afterOpenedAtThisLevel;
|
|
1283
|
-
}
|
|
1284
|
-
_getAfterAllClosed() {
|
|
1285
|
-
const parent = this._parentDialog;
|
|
1286
|
-
return parent ? parent._getAfterAllClosed() : this._afterAllClosedAtThisLevel;
|
|
1287
|
-
}
|
|
1288
|
-
constructor(_overlay, injector, location, _defaultOptions, _scrollStrategy, _parentDialog, _overlayContainer, _animationMode) {
|
|
1289
|
-
this._overlay = _overlay;
|
|
1290
|
-
this._defaultOptions = _defaultOptions;
|
|
1291
|
-
this._scrollStrategy = _scrollStrategy;
|
|
1292
|
-
this._parentDialog = _parentDialog;
|
|
1293
|
-
this._openDialogsAtThisLevel = [];
|
|
1294
|
-
this._afterAllClosedAtThisLevel = new Subject();
|
|
1295
|
-
this._afterOpenedAtThisLevel = new Subject();
|
|
1296
|
-
this.dialogConfigClass = MatDialogConfig;
|
|
1297
|
-
this.afterAllClosed = defer(() => this.openDialogs.length ? this._getAfterAllClosed() : this._getAfterAllClosed().pipe(startWith(void 0)));
|
|
1298
|
-
this._dialog = injector.get(Dialog);
|
|
1299
|
-
this._dialogRefConstructor = MatDialogRef;
|
|
1300
|
-
this._dialogContainerType = MatDialogContainer;
|
|
1301
|
-
this._dialogDataToken = MAT_DIALOG_DATA;
|
|
1302
|
-
}
|
|
1303
|
-
open(componentOrTemplateRef, config) {
|
|
1304
|
-
let dialogRef;
|
|
1305
|
-
config = __spreadValues(__spreadValues({}, this._defaultOptions || new MatDialogConfig()), config);
|
|
1306
|
-
config.id = config.id || `mat-mdc-dialog-${uniqueId2++}`;
|
|
1307
|
-
config.scrollStrategy = config.scrollStrategy || this._scrollStrategy();
|
|
1308
|
-
const cdkRef = this._dialog.open(componentOrTemplateRef, __spreadProps(__spreadValues({}, config), {
|
|
1309
|
-
positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
|
|
1310
|
-
// Disable closing since we need to sync it up to the animation ourselves.
|
|
1311
|
-
disableClose: true,
|
|
1312
|
-
// Disable closing on destroy, because this service cleans up its open dialogs as well.
|
|
1313
|
-
// We want to do the cleanup here, rather than the CDK service, because the CDK destroys
|
|
1314
|
-
// the dialogs immediately whereas we want it to wait for the animations to finish.
|
|
1315
|
-
closeOnDestroy: false,
|
|
1316
|
-
// Disable closing on detachments so that we can sync up the animation.
|
|
1317
|
-
// The Material dialog ref handles this manually.
|
|
1318
|
-
closeOnOverlayDetachments: false,
|
|
1319
|
-
container: {
|
|
1320
|
-
type: this._dialogContainerType,
|
|
1321
|
-
providers: () => [
|
|
1322
|
-
// Provide our config as the CDK config as well since it has the same interface as the
|
|
1323
|
-
// CDK one, but it contains the actual values passed in by the user for things like
|
|
1324
|
-
// `disableClose` which we disable for the CDK dialog since we handle it ourselves.
|
|
1325
|
-
{
|
|
1326
|
-
provide: this.dialogConfigClass,
|
|
1327
|
-
useValue: config
|
|
1328
|
-
},
|
|
1329
|
-
{
|
|
1330
|
-
provide: DialogConfig,
|
|
1331
|
-
useValue: config
|
|
1332
|
-
}
|
|
1333
|
-
]
|
|
1334
|
-
},
|
|
1335
|
-
templateContext: () => ({
|
|
1336
|
-
dialogRef
|
|
1337
|
-
}),
|
|
1338
|
-
providers: (ref, cdkConfig, dialogContainer) => {
|
|
1339
|
-
dialogRef = new this._dialogRefConstructor(ref, config, dialogContainer);
|
|
1340
|
-
dialogRef.updatePosition(config?.position);
|
|
1341
|
-
return [{
|
|
1342
|
-
provide: this._dialogContainerType,
|
|
1343
|
-
useValue: dialogContainer
|
|
1344
|
-
}, {
|
|
1345
|
-
provide: this._dialogDataToken,
|
|
1346
|
-
useValue: cdkConfig.data
|
|
1347
|
-
}, {
|
|
1348
|
-
provide: this._dialogRefConstructor,
|
|
1349
|
-
useValue: dialogRef
|
|
1350
|
-
}];
|
|
1351
|
-
}
|
|
1352
|
-
}));
|
|
1353
|
-
dialogRef.componentRef = cdkRef.componentRef;
|
|
1354
|
-
dialogRef.componentInstance = cdkRef.componentInstance;
|
|
1355
|
-
this.openDialogs.push(dialogRef);
|
|
1356
|
-
this.afterOpened.next(dialogRef);
|
|
1357
|
-
dialogRef.afterClosed().subscribe(() => {
|
|
1358
|
-
const index = this.openDialogs.indexOf(dialogRef);
|
|
1359
|
-
if (index > -1) {
|
|
1360
|
-
this.openDialogs.splice(index, 1);
|
|
1361
|
-
if (!this.openDialogs.length) {
|
|
1362
|
-
this._getAfterAllClosed().next();
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
});
|
|
1366
|
-
return dialogRef;
|
|
1367
|
-
}
|
|
1368
|
-
/**
|
|
1369
|
-
* Closes all of the currently-open dialogs.
|
|
1370
|
-
*/
|
|
1371
|
-
closeAll() {
|
|
1372
|
-
this._closeDialogs(this.openDialogs);
|
|
1373
|
-
}
|
|
1374
|
-
/**
|
|
1375
|
-
* Finds an open dialog by its id.
|
|
1376
|
-
* @param id ID to use when looking up the dialog.
|
|
1377
|
-
*/
|
|
1378
|
-
getDialogById(id) {
|
|
1379
|
-
return this.openDialogs.find((dialog) => dialog.id === id);
|
|
1380
|
-
}
|
|
1381
|
-
ngOnDestroy() {
|
|
1382
|
-
this._closeDialogs(this._openDialogsAtThisLevel);
|
|
1383
|
-
this._afterAllClosedAtThisLevel.complete();
|
|
1384
|
-
this._afterOpenedAtThisLevel.complete();
|
|
1385
|
-
}
|
|
1386
|
-
_closeDialogs(dialogs) {
|
|
1387
|
-
let i = dialogs.length;
|
|
1388
|
-
while (i--) {
|
|
1389
|
-
dialogs[i].close();
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
static {
|
|
1393
|
-
this.ɵfac = function MatDialog_Factory(__ngFactoryType__) {
|
|
1394
|
-
return new (__ngFactoryType__ || _MatDialog)(ɵɵinject(Overlay), ɵɵinject(Injector), ɵɵinject(Location, 8), ɵɵinject(MAT_DIALOG_DEFAULT_OPTIONS, 8), ɵɵinject(MAT_DIALOG_SCROLL_STRATEGY), ɵɵinject(_MatDialog, 12), ɵɵinject(OverlayContainer), ɵɵinject(ANIMATION_MODULE_TYPE, 8));
|
|
1395
|
-
};
|
|
1396
|
-
}
|
|
1397
|
-
static {
|
|
1398
|
-
this.ɵprov = ɵɵdefineInjectable({
|
|
1399
|
-
token: _MatDialog,
|
|
1400
|
-
factory: _MatDialog.ɵfac,
|
|
1401
|
-
providedIn: "root"
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
};
|
|
1405
|
-
(() => {
|
|
1406
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatDialog, [{
|
|
1407
|
-
type: Injectable,
|
|
1408
|
-
args: [{
|
|
1409
|
-
providedIn: "root"
|
|
1410
|
-
}]
|
|
1411
|
-
}], () => [{
|
|
1412
|
-
type: Overlay
|
|
1413
|
-
}, {
|
|
1414
|
-
type: Injector
|
|
1415
|
-
}, {
|
|
1416
|
-
type: Location,
|
|
1417
|
-
decorators: [{
|
|
1418
|
-
type: Optional
|
|
1419
|
-
}]
|
|
1420
|
-
}, {
|
|
1421
|
-
type: MatDialogConfig,
|
|
1422
|
-
decorators: [{
|
|
1423
|
-
type: Optional
|
|
1424
|
-
}, {
|
|
1425
|
-
type: Inject,
|
|
1426
|
-
args: [MAT_DIALOG_DEFAULT_OPTIONS]
|
|
1427
|
-
}]
|
|
1428
|
-
}, {
|
|
1429
|
-
type: void 0,
|
|
1430
|
-
decorators: [{
|
|
1431
|
-
type: Inject,
|
|
1432
|
-
args: [MAT_DIALOG_SCROLL_STRATEGY]
|
|
1433
|
-
}]
|
|
1434
|
-
}, {
|
|
1435
|
-
type: MatDialog,
|
|
1436
|
-
decorators: [{
|
|
1437
|
-
type: Optional
|
|
1438
|
-
}, {
|
|
1439
|
-
type: SkipSelf
|
|
1440
|
-
}]
|
|
1441
|
-
}, {
|
|
1442
|
-
type: OverlayContainer
|
|
1443
|
-
}, {
|
|
1444
|
-
type: void 0,
|
|
1445
|
-
decorators: [{
|
|
1446
|
-
type: Optional
|
|
1447
|
-
}, {
|
|
1448
|
-
type: Inject,
|
|
1449
|
-
args: [ANIMATION_MODULE_TYPE]
|
|
1450
|
-
}]
|
|
1451
|
-
}], null);
|
|
1452
|
-
})();
|
|
1453
|
-
var dialogElementUid = 0;
|
|
1454
|
-
var MatDialogClose = class _MatDialogClose {
|
|
1455
|
-
constructor(dialogRef, _elementRef, _dialog) {
|
|
1456
|
-
this.dialogRef = dialogRef;
|
|
1457
|
-
this._elementRef = _elementRef;
|
|
1458
|
-
this._dialog = _dialog;
|
|
1459
|
-
this.type = "button";
|
|
1460
|
-
}
|
|
1461
|
-
ngOnInit() {
|
|
1462
|
-
if (!this.dialogRef) {
|
|
1463
|
-
this.dialogRef = getClosestDialog(this._elementRef, this._dialog.openDialogs);
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
ngOnChanges(changes) {
|
|
1467
|
-
const proxiedChange = changes["_matDialogClose"] || changes["_matDialogCloseResult"];
|
|
1468
|
-
if (proxiedChange) {
|
|
1469
|
-
this.dialogResult = proxiedChange.currentValue;
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
_onButtonClick(event) {
|
|
1473
|
-
_closeDialogVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? "keyboard" : "mouse", this.dialogResult);
|
|
1474
|
-
}
|
|
1475
|
-
static {
|
|
1476
|
-
this.ɵfac = function MatDialogClose_Factory(__ngFactoryType__) {
|
|
1477
|
-
return new (__ngFactoryType__ || _MatDialogClose)(ɵɵdirectiveInject(MatDialogRef, 8), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(MatDialog));
|
|
1478
|
-
};
|
|
1479
|
-
}
|
|
1480
|
-
static {
|
|
1481
|
-
this.ɵdir = ɵɵdefineDirective({
|
|
1482
|
-
type: _MatDialogClose,
|
|
1483
|
-
selectors: [["", "mat-dialog-close", ""], ["", "matDialogClose", ""]],
|
|
1484
|
-
hostVars: 2,
|
|
1485
|
-
hostBindings: function MatDialogClose_HostBindings(rf, ctx) {
|
|
1486
|
-
if (rf & 1) {
|
|
1487
|
-
ɵɵlistener("click", function MatDialogClose_click_HostBindingHandler($event) {
|
|
1488
|
-
return ctx._onButtonClick($event);
|
|
1489
|
-
});
|
|
1490
|
-
}
|
|
1491
|
-
if (rf & 2) {
|
|
1492
|
-
ɵɵattribute("aria-label", ctx.ariaLabel || null)("type", ctx.type);
|
|
1493
|
-
}
|
|
1494
|
-
},
|
|
1495
|
-
inputs: {
|
|
1496
|
-
ariaLabel: [0, "aria-label", "ariaLabel"],
|
|
1497
|
-
type: "type",
|
|
1498
|
-
dialogResult: [0, "mat-dialog-close", "dialogResult"],
|
|
1499
|
-
_matDialogClose: [0, "matDialogClose", "_matDialogClose"]
|
|
1500
|
-
},
|
|
1501
|
-
exportAs: ["matDialogClose"],
|
|
1502
|
-
standalone: true,
|
|
1503
|
-
features: [ɵɵNgOnChangesFeature]
|
|
1504
|
-
});
|
|
1505
|
-
}
|
|
1506
|
-
};
|
|
1507
|
-
(() => {
|
|
1508
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatDialogClose, [{
|
|
1509
|
-
type: Directive,
|
|
1510
|
-
args: [{
|
|
1511
|
-
selector: "[mat-dialog-close], [matDialogClose]",
|
|
1512
|
-
exportAs: "matDialogClose",
|
|
1513
|
-
standalone: true,
|
|
1514
|
-
host: {
|
|
1515
|
-
"(click)": "_onButtonClick($event)",
|
|
1516
|
-
"[attr.aria-label]": "ariaLabel || null",
|
|
1517
|
-
"[attr.type]": "type"
|
|
1518
|
-
}
|
|
1519
|
-
}]
|
|
1520
|
-
}], () => [{
|
|
1521
|
-
type: MatDialogRef,
|
|
1522
|
-
decorators: [{
|
|
1523
|
-
type: Optional
|
|
1524
|
-
}]
|
|
1525
|
-
}, {
|
|
1526
|
-
type: ElementRef
|
|
1527
|
-
}, {
|
|
1528
|
-
type: MatDialog
|
|
1529
|
-
}], {
|
|
1530
|
-
ariaLabel: [{
|
|
1531
|
-
type: Input,
|
|
1532
|
-
args: ["aria-label"]
|
|
1533
|
-
}],
|
|
1534
|
-
type: [{
|
|
1535
|
-
type: Input
|
|
1536
|
-
}],
|
|
1537
|
-
dialogResult: [{
|
|
1538
|
-
type: Input,
|
|
1539
|
-
args: ["mat-dialog-close"]
|
|
1540
|
-
}],
|
|
1541
|
-
_matDialogClose: [{
|
|
1542
|
-
type: Input,
|
|
1543
|
-
args: ["matDialogClose"]
|
|
1544
|
-
}]
|
|
1545
|
-
});
|
|
1546
|
-
})();
|
|
1547
|
-
var MatDialogLayoutSection = class _MatDialogLayoutSection {
|
|
1548
|
-
constructor(_dialogRef, _elementRef, _dialog) {
|
|
1549
|
-
this._dialogRef = _dialogRef;
|
|
1550
|
-
this._elementRef = _elementRef;
|
|
1551
|
-
this._dialog = _dialog;
|
|
1552
|
-
}
|
|
1553
|
-
ngOnInit() {
|
|
1554
|
-
if (!this._dialogRef) {
|
|
1555
|
-
this._dialogRef = getClosestDialog(this._elementRef, this._dialog.openDialogs);
|
|
1556
|
-
}
|
|
1557
|
-
if (this._dialogRef) {
|
|
1558
|
-
Promise.resolve().then(() => {
|
|
1559
|
-
this._onAdd();
|
|
1560
|
-
});
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
ngOnDestroy() {
|
|
1564
|
-
const instance = this._dialogRef?._containerInstance;
|
|
1565
|
-
if (instance) {
|
|
1566
|
-
Promise.resolve().then(() => {
|
|
1567
|
-
this._onRemove();
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
static {
|
|
1572
|
-
this.ɵfac = function MatDialogLayoutSection_Factory(__ngFactoryType__) {
|
|
1573
|
-
return new (__ngFactoryType__ || _MatDialogLayoutSection)(ɵɵdirectiveInject(MatDialogRef, 8), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(MatDialog));
|
|
1574
|
-
};
|
|
1575
|
-
}
|
|
1576
|
-
static {
|
|
1577
|
-
this.ɵdir = ɵɵdefineDirective({
|
|
1578
|
-
type: _MatDialogLayoutSection,
|
|
1579
|
-
standalone: true
|
|
1580
|
-
});
|
|
1581
|
-
}
|
|
1582
|
-
};
|
|
1583
|
-
(() => {
|
|
1584
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatDialogLayoutSection, [{
|
|
1585
|
-
type: Directive,
|
|
1586
|
-
args: [{
|
|
1587
|
-
standalone: true
|
|
1588
|
-
}]
|
|
1589
|
-
}], () => [{
|
|
1590
|
-
type: MatDialogRef,
|
|
1591
|
-
decorators: [{
|
|
1592
|
-
type: Optional
|
|
1593
|
-
}]
|
|
1594
|
-
}, {
|
|
1595
|
-
type: ElementRef
|
|
1596
|
-
}, {
|
|
1597
|
-
type: MatDialog
|
|
1598
|
-
}], null);
|
|
1599
|
-
})();
|
|
1600
|
-
var MatDialogTitle = class _MatDialogTitle extends MatDialogLayoutSection {
|
|
1601
|
-
constructor() {
|
|
1602
|
-
super(...arguments);
|
|
1603
|
-
this.id = `mat-mdc-dialog-title-${dialogElementUid++}`;
|
|
1604
|
-
}
|
|
1605
|
-
_onAdd() {
|
|
1606
|
-
this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);
|
|
1607
|
-
}
|
|
1608
|
-
_onRemove() {
|
|
1609
|
-
this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);
|
|
1610
|
-
}
|
|
1611
|
-
static {
|
|
1612
|
-
this.ɵfac = /* @__PURE__ */ (() => {
|
|
1613
|
-
let ɵMatDialogTitle_BaseFactory;
|
|
1614
|
-
return function MatDialogTitle_Factory(__ngFactoryType__) {
|
|
1615
|
-
return (ɵMatDialogTitle_BaseFactory || (ɵMatDialogTitle_BaseFactory = ɵɵgetInheritedFactory(_MatDialogTitle)))(__ngFactoryType__ || _MatDialogTitle);
|
|
1616
|
-
};
|
|
1617
|
-
})();
|
|
1618
|
-
}
|
|
1619
|
-
static {
|
|
1620
|
-
this.ɵdir = ɵɵdefineDirective({
|
|
1621
|
-
type: _MatDialogTitle,
|
|
1622
|
-
selectors: [["", "mat-dialog-title", ""], ["", "matDialogTitle", ""]],
|
|
1623
|
-
hostAttrs: [1, "mat-mdc-dialog-title", "mdc-dialog__title"],
|
|
1624
|
-
hostVars: 1,
|
|
1625
|
-
hostBindings: function MatDialogTitle_HostBindings(rf, ctx) {
|
|
1626
|
-
if (rf & 2) {
|
|
1627
|
-
ɵɵhostProperty("id", ctx.id);
|
|
1628
|
-
}
|
|
1629
|
-
},
|
|
1630
|
-
inputs: {
|
|
1631
|
-
id: "id"
|
|
1632
|
-
},
|
|
1633
|
-
exportAs: ["matDialogTitle"],
|
|
1634
|
-
standalone: true,
|
|
1635
|
-
features: [ɵɵInheritDefinitionFeature]
|
|
1636
|
-
});
|
|
1637
|
-
}
|
|
1638
|
-
};
|
|
1639
|
-
(() => {
|
|
1640
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatDialogTitle, [{
|
|
1641
|
-
type: Directive,
|
|
1642
|
-
args: [{
|
|
1643
|
-
selector: "[mat-dialog-title], [matDialogTitle]",
|
|
1644
|
-
exportAs: "matDialogTitle",
|
|
1645
|
-
standalone: true,
|
|
1646
|
-
host: {
|
|
1647
|
-
"class": "mat-mdc-dialog-title mdc-dialog__title",
|
|
1648
|
-
"[id]": "id"
|
|
1649
|
-
}
|
|
1650
|
-
}]
|
|
1651
|
-
}], null, {
|
|
1652
|
-
id: [{
|
|
1653
|
-
type: Input
|
|
1654
|
-
}]
|
|
1655
|
-
});
|
|
1656
|
-
})();
|
|
1657
|
-
var MatDialogContent = class _MatDialogContent {
|
|
1658
|
-
static {
|
|
1659
|
-
this.ɵfac = function MatDialogContent_Factory(__ngFactoryType__) {
|
|
1660
|
-
return new (__ngFactoryType__ || _MatDialogContent)();
|
|
1661
|
-
};
|
|
1662
|
-
}
|
|
1663
|
-
static {
|
|
1664
|
-
this.ɵdir = ɵɵdefineDirective({
|
|
1665
|
-
type: _MatDialogContent,
|
|
1666
|
-
selectors: [["", "mat-dialog-content", ""], ["mat-dialog-content"], ["", "matDialogContent", ""]],
|
|
1667
|
-
hostAttrs: [1, "mat-mdc-dialog-content", "mdc-dialog__content"],
|
|
1668
|
-
standalone: true,
|
|
1669
|
-
features: [ɵɵHostDirectivesFeature([CdkScrollable])]
|
|
1670
|
-
});
|
|
1671
|
-
}
|
|
1672
|
-
};
|
|
1673
|
-
(() => {
|
|
1674
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatDialogContent, [{
|
|
1675
|
-
type: Directive,
|
|
1676
|
-
args: [{
|
|
1677
|
-
selector: `[mat-dialog-content], mat-dialog-content, [matDialogContent]`,
|
|
1678
|
-
host: {
|
|
1679
|
-
"class": "mat-mdc-dialog-content mdc-dialog__content"
|
|
1680
|
-
},
|
|
1681
|
-
standalone: true,
|
|
1682
|
-
hostDirectives: [CdkScrollable]
|
|
1683
|
-
}]
|
|
1684
|
-
}], null, null);
|
|
1685
|
-
})();
|
|
1686
|
-
var MatDialogActions = class _MatDialogActions extends MatDialogLayoutSection {
|
|
1687
|
-
_onAdd() {
|
|
1688
|
-
this._dialogRef._containerInstance?._updateActionSectionCount?.(1);
|
|
1689
|
-
}
|
|
1690
|
-
_onRemove() {
|
|
1691
|
-
this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);
|
|
1692
|
-
}
|
|
1693
|
-
static {
|
|
1694
|
-
this.ɵfac = /* @__PURE__ */ (() => {
|
|
1695
|
-
let ɵMatDialogActions_BaseFactory;
|
|
1696
|
-
return function MatDialogActions_Factory(__ngFactoryType__) {
|
|
1697
|
-
return (ɵMatDialogActions_BaseFactory || (ɵMatDialogActions_BaseFactory = ɵɵgetInheritedFactory(_MatDialogActions)))(__ngFactoryType__ || _MatDialogActions);
|
|
1698
|
-
};
|
|
1699
|
-
})();
|
|
1700
|
-
}
|
|
1701
|
-
static {
|
|
1702
|
-
this.ɵdir = ɵɵdefineDirective({
|
|
1703
|
-
type: _MatDialogActions,
|
|
1704
|
-
selectors: [["", "mat-dialog-actions", ""], ["mat-dialog-actions"], ["", "matDialogActions", ""]],
|
|
1705
|
-
hostAttrs: [1, "mat-mdc-dialog-actions", "mdc-dialog__actions"],
|
|
1706
|
-
hostVars: 6,
|
|
1707
|
-
hostBindings: function MatDialogActions_HostBindings(rf, ctx) {
|
|
1708
|
-
if (rf & 2) {
|
|
1709
|
-
ɵɵclassProp("mat-mdc-dialog-actions-align-start", ctx.align === "start")("mat-mdc-dialog-actions-align-center", ctx.align === "center")("mat-mdc-dialog-actions-align-end", ctx.align === "end");
|
|
1710
|
-
}
|
|
1711
|
-
},
|
|
1712
|
-
inputs: {
|
|
1713
|
-
align: "align"
|
|
1714
|
-
},
|
|
1715
|
-
standalone: true,
|
|
1716
|
-
features: [ɵɵInheritDefinitionFeature]
|
|
1717
|
-
});
|
|
1718
|
-
}
|
|
1719
|
-
};
|
|
1720
|
-
(() => {
|
|
1721
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatDialogActions, [{
|
|
1722
|
-
type: Directive,
|
|
1723
|
-
args: [{
|
|
1724
|
-
selector: `[mat-dialog-actions], mat-dialog-actions, [matDialogActions]`,
|
|
1725
|
-
standalone: true,
|
|
1726
|
-
host: {
|
|
1727
|
-
"class": "mat-mdc-dialog-actions mdc-dialog__actions",
|
|
1728
|
-
"[class.mat-mdc-dialog-actions-align-start]": 'align === "start"',
|
|
1729
|
-
"[class.mat-mdc-dialog-actions-align-center]": 'align === "center"',
|
|
1730
|
-
"[class.mat-mdc-dialog-actions-align-end]": 'align === "end"'
|
|
1731
|
-
}
|
|
1732
|
-
}]
|
|
1733
|
-
}], null, {
|
|
1734
|
-
align: [{
|
|
1735
|
-
type: Input
|
|
1736
|
-
}]
|
|
1737
|
-
});
|
|
1738
|
-
})();
|
|
1739
|
-
function getClosestDialog(element, openDialogs) {
|
|
1740
|
-
let parent = element.nativeElement.parentElement;
|
|
1741
|
-
while (parent && !parent.classList.contains("mat-mdc-dialog-container")) {
|
|
1742
|
-
parent = parent.parentElement;
|
|
1743
|
-
}
|
|
1744
|
-
return parent ? openDialogs.find((dialog) => dialog.id === parent.id) : null;
|
|
1745
|
-
}
|
|
1746
|
-
var DIRECTIVES = [MatDialogContainer, MatDialogClose, MatDialogTitle, MatDialogActions, MatDialogContent];
|
|
1747
|
-
var MatDialogModule = class _MatDialogModule {
|
|
1748
|
-
static {
|
|
1749
|
-
this.ɵfac = function MatDialogModule_Factory(__ngFactoryType__) {
|
|
1750
|
-
return new (__ngFactoryType__ || _MatDialogModule)();
|
|
1751
|
-
};
|
|
1752
|
-
}
|
|
1753
|
-
static {
|
|
1754
|
-
this.ɵmod = ɵɵdefineNgModule({
|
|
1755
|
-
type: _MatDialogModule,
|
|
1756
|
-
imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule, MatDialogContainer, MatDialogClose, MatDialogTitle, MatDialogActions, MatDialogContent],
|
|
1757
|
-
exports: [MatCommonModule, MatDialogContainer, MatDialogClose, MatDialogTitle, MatDialogActions, MatDialogContent]
|
|
1758
|
-
});
|
|
1759
|
-
}
|
|
1760
|
-
static {
|
|
1761
|
-
this.ɵinj = ɵɵdefineInjector({
|
|
1762
|
-
providers: [MatDialog],
|
|
1763
|
-
imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule, MatCommonModule]
|
|
1764
|
-
});
|
|
1765
|
-
}
|
|
1766
|
-
};
|
|
1767
|
-
(() => {
|
|
1768
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(MatDialogModule, [{
|
|
1769
|
-
type: NgModule,
|
|
1770
|
-
args: [{
|
|
1771
|
-
imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule, ...DIRECTIVES],
|
|
1772
|
-
exports: [MatCommonModule, ...DIRECTIVES],
|
|
1773
|
-
providers: [MatDialog]
|
|
1774
|
-
}]
|
|
1775
|
-
}], null, null);
|
|
1776
|
-
})();
|
|
1777
|
-
var _defaultParams = {
|
|
1778
|
-
params: {
|
|
1779
|
-
enterAnimationDuration: "150ms",
|
|
1780
|
-
exitAnimationDuration: "75ms"
|
|
1781
|
-
}
|
|
1782
|
-
};
|
|
1783
|
-
var matDialogAnimations = {
|
|
1784
|
-
/** Animation that is applied on the dialog container by default. */
|
|
1785
|
-
dialogContainer: trigger("dialogContainer", [
|
|
1786
|
-
// Note: The `enter` animation transitions to `transform: none`, because for some reason
|
|
1787
|
-
// specifying the transform explicitly, causes IE both to blur the dialog content and
|
|
1788
|
-
// decimate the animation performance. Leaving it as `none` solves both issues.
|
|
1789
|
-
state("void, exit", style({
|
|
1790
|
-
opacity: 0,
|
|
1791
|
-
transform: "scale(0.7)"
|
|
1792
|
-
})),
|
|
1793
|
-
state("enter", style({
|
|
1794
|
-
transform: "none"
|
|
1795
|
-
})),
|
|
1796
|
-
transition("* => enter", group([animate("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)", style({
|
|
1797
|
-
transform: "none",
|
|
1798
|
-
opacity: 1
|
|
1799
|
-
})), query("@*", animateChild(), {
|
|
1800
|
-
optional: true
|
|
1801
|
-
})]), _defaultParams),
|
|
1802
|
-
transition("* => void, * => exit", group([animate("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)", style({
|
|
1803
|
-
opacity: 0
|
|
1804
|
-
})), query("@*", animateChild(), {
|
|
1805
|
-
optional: true
|
|
1806
|
-
})]), _defaultParams)
|
|
1807
|
-
])
|
|
1808
|
-
};
|
|
1809
|
-
export {
|
|
1810
|
-
MAT_DIALOG_DATA,
|
|
1811
|
-
MAT_DIALOG_DEFAULT_OPTIONS,
|
|
1812
|
-
MAT_DIALOG_SCROLL_STRATEGY,
|
|
1813
|
-
MAT_DIALOG_SCROLL_STRATEGY_PROVIDER,
|
|
1814
|
-
MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,
|
|
1815
|
-
MatDialog,
|
|
1816
|
-
MatDialogActions,
|
|
1817
|
-
MatDialogClose,
|
|
1818
|
-
MatDialogConfig,
|
|
1819
|
-
MatDialogContainer,
|
|
1820
|
-
MatDialogContent,
|
|
1821
|
-
MatDialogModule,
|
|
1822
|
-
MatDialogRef,
|
|
1823
|
-
MatDialogState,
|
|
1824
|
-
MatDialogTitle,
|
|
1825
|
-
_closeDialogVia,
|
|
1826
|
-
_defaultParams,
|
|
1827
|
-
matDialogAnimations
|
|
1828
|
-
};
|
|
1829
|
-
//# sourceMappingURL=@angular_material_dialog.js.map
|