@angular/material 20.0.0-next.0 → 20.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/index.d.ts +92 -126
- package/autocomplete/testing/index.d.ts +6 -11
- package/badge/index.d.ts +8 -112
- package/badge/testing/index.d.ts +7 -8
- package/badge.d-49a8a74b.d.ts +98 -0
- package/bottom-sheet/index.d.ts +88 -103
- package/bottom-sheet/testing/index.d.ts +4 -6
- package/button/index.d.ts +10 -245
- package/button/testing/index.d.ts +6 -10
- package/button-toggle/index.d.ts +12 -285
- package/button-toggle/testing/index.d.ts +38 -37
- package/button-toggle.d-edc8acff.d.ts +257 -0
- package/card/index.d.ts +80 -117
- package/card/testing/index.d.ts +11 -15
- package/checkbox/index.d.ts +43 -104
- package/checkbox/testing/index.d.ts +6 -10
- package/chips/index.d.ts +599 -693
- package/chips/testing/index.d.ts +78 -93
- package/common-module.d-0e6515ae.d.ts +43 -0
- package/core/index.d.ts +50 -979
- package/core/testing/index.d.ts +3 -65
- package/date-adapter.d-c6835d41.d.ts +267 -0
- package/date-range-input-harness.d-549a9f7e.d.ts +278 -0
- package/datepicker/index.d.ts +1332 -1482
- package/datepicker/testing/index.d.ts +5 -287
- package/dialog/index.d.ts +59 -453
- package/dialog/testing/index.d.ts +22 -26
- package/dialog.d-57867441.d.ts +335 -0
- package/divider/index.d.ts +6 -11
- package/divider/testing/index.d.ts +2 -16
- package/divider-harness.d-d34fede4.d.ts +14 -0
- package/error-options.d-448d9046.d.ts +17 -0
- package/expansion/index.d.ts +139 -190
- package/expansion/testing/index.d.ts +25 -31
- package/fesm2022/autocomplete/testing.mjs +2 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +53 -32
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +14 -17
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +13 -15
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +22 -15
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +14 -395
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +49 -51
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +32 -73
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +51 -46
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-2d64df09.mjs +42 -0
- package/fesm2022/common-module-2d64df09.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +3 -76
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +38 -1598
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-b618acb8.mjs +190 -0
- package/fesm2022/date-formats-b618acb8.mjs.map +1 -0
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs +467 -0
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +5 -465
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +159 -128
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +12 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +14 -895
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +2 -17
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider-harness-3394f29a.mjs +18 -0
- package/fesm2022/divider-harness-3394f29a.mjs.map +1 -0
- package/fesm2022/divider.mjs +10 -12
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-4a00765e.mjs +29 -0
- package/fesm2022/error-options-4a00765e.mjs.map +1 -0
- package/fesm2022/error-state-8f4ce1af.mjs +37 -0
- package/fesm2022/error-state-8f4ce1af.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +30 -32
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs +2 -10
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +7 -6
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field-6d755764.mjs +1076 -0
- package/fesm2022/form-field-6d755764.mjs.map +1 -0
- package/fesm2022/form-field-control-harness-af6fd278.mjs +11 -0
- package/fesm2022/form-field-control-harness-af6fd278.mjs.map +1 -0
- package/fesm2022/form-field.mjs +14 -1110
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +30 -173
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +12 -12
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-47f1b5d9.mjs +248 -0
- package/fesm2022/icon-button-47f1b5d9.mjs.map +1 -0
- package/fesm2022/icon-module-3f77a24d.mjs +395 -0
- package/fesm2022/icon-module-3f77a24d.mjs.map +1 -0
- package/fesm2022/icon-registry-13a3b98e.mjs +639 -0
- package/fesm2022/icon-registry-13a3b98e.mjs.map +1 -0
- package/fesm2022/icon.mjs +11 -1016
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-1763d3a6.mjs +22 -0
- package/fesm2022/index-1763d3a6.mjs.map +1 -0
- package/fesm2022/index-4bc1d6d3.mjs +20 -0
- package/fesm2022/index-4bc1d6d3.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +5 -113
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-ed59decc.mjs +115 -0
- package/fesm2022/input-harness-ed59decc.mjs.map +1 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs +12 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs.map +1 -0
- package/fesm2022/input.mjs +21 -23
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-434c4039.mjs +27 -0
- package/fesm2022/internal-form-field-434c4039.mjs.map +1 -0
- package/fesm2022/line-d6afe347.mjs +59 -0
- package/fesm2022/line-d6afe347.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +2 -2
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +59 -56
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +37 -25
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/module-3bf2775f.mjs +1293 -0
- package/fesm2022/module-3bf2775f.mjs.map +1 -0
- package/fesm2022/module-47e3be58.mjs +970 -0
- package/fesm2022/module-47e3be58.mjs.map +1 -0
- package/fesm2022/module-a5f9ab72.mjs +875 -0
- package/fesm2022/module-a5f9ab72.mjs.map +1 -0
- package/fesm2022/module-d757bba0.mjs +38 -0
- package/fesm2022/module-d757bba0.mjs.map +1 -0
- package/fesm2022/module-df9f7af3.mjs +152 -0
- package/fesm2022/module-df9f7af3.mjs.map +1 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs +36 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +1 -0
- package/fesm2022/option-07c3c660.mjs +348 -0
- package/fesm2022/option-07c3c660.mjs.map +1 -0
- package/fesm2022/option-harness-3b7c1106.mjs +46 -0
- package/fesm2022/option-harness-3b7c1106.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +51 -21
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs +0 -4
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +15 -13
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs +0 -4
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +15 -13
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs +52 -0
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs.map +1 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs +20 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs.map +1 -0
- package/fesm2022/public-api-c5ab57f5.mjs +147 -0
- package/fesm2022/public-api-c5ab57f5.mjs.map +1 -0
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +23 -15
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-9939d1f5.mjs +639 -0
- package/fesm2022/ripple-9939d1f5.mjs.map +1 -0
- package/fesm2022/ripple-loader-f2078c66.mjs +165 -0
- package/fesm2022/ripple-loader-f2078c66.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +5 -121
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select-harness-8c55824d.mjs +123 -0
- package/fesm2022/select-harness-8c55824d.mjs.map +1 -0
- package/fesm2022/select.mjs +30 -1311
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +31 -31
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +27 -75
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +22 -21
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +37 -29
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +26 -20
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +52 -39
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-d5ada3b3.mjs +18 -0
- package/fesm2022/structural-styles-d5ada3b3.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +58 -60
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +54 -58
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +31 -24
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -15
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +15 -960
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +28 -30
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +16 -508
- package/form-field/testing/control/index.d.ts +2 -10
- package/form-field/testing/index.d.ts +19 -24
- package/form-field-control-harness.d-2d91f25a.d.ts +10 -0
- package/form-field-control.d-eb86711c.d.ts +62 -0
- package/form-field.d-2edbc094.d.ts +367 -0
- package/grid-list/index.d.ts +128 -152
- package/grid-list/testing/index.d.ts +39 -44
- package/icon/index.d.ts +9 -470
- package/icon/testing/index.d.ts +41 -44
- package/icon-module.d-aa3bbba0.d.ts +167 -0
- package/icon-registry.d-1dffe9de.d.ts +286 -0
- package/index.d-0536b706.d.ts +11 -0
- package/index.d-37e31cd3.d.ts +13 -0
- package/index.d.ts +2 -3
- package/input/index.d.ts +33 -62
- package/input/testing/index.d.ts +13 -71
- package/input-harness.d-4eecd1d3.d.ts +60 -0
- package/line.d-570a2537.d.ts +25 -0
- package/list/index.d.ts +155 -244
- package/list/testing/index.d.ts +158 -180
- package/list-option-types.d-8739f903.d.ts +15 -0
- package/menu/index.d.ts +183 -231
- package/menu/testing/index.d.ts +17 -23
- package/module.d-18a67f56.d.ts +206 -0
- package/module.d-74a721b9.d.ts +326 -0
- package/module.d-ba05faa6.d.ts +448 -0
- package/module.d-c17c834e.d.ts +18 -0
- package/optgroup-harness.d-7f741f69.d.ts +31 -0
- package/option-harness.d-3d33fc9a.d.ts +34 -0
- package/option-parent.d-559ad5c5.d.ts +19 -0
- package/option.d-6f493d78.d.ts +146 -0
- package/package.json +2 -2
- package/paginator/index.d.ts +31 -216
- package/paginator/testing/index.d.ts +14 -15
- package/paginator.d-40b1766e.d.ts +199 -0
- package/palette.d-ec4a617c.d.ts +4 -0
- package/progress-bar/index.d.ts +40 -59
- package/progress-bar/testing/index.d.ts +7 -10
- package/progress-spinner/index.d.ts +8 -110
- package/progress-spinner/testing/index.d.ts +10 -11
- package/progress-spinner.d-1fc040c5.d.ts +96 -0
- package/pseudo-checkbox-module.d-3abc0461.d.ts +44 -0
- package/radio/index.d.ts +151 -170
- package/radio/testing/index.d.ts +61 -67
- package/ripple-loader.d-8aac2988.d.ts +48 -0
- package/ripple.d-2fb57d04.d.ts +255 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
- package/schematics/ng-generate/theme-color/schema.json +10 -0
- package/schematics/ng-update/index_bundled.js +31 -31
- package/select/index.d.ts +25 -505
- package/select/testing/index.d.ts +5 -67
- package/select-harness.d-7441a7ac.d.ts +63 -0
- package/sidenav/index.d.ts +49 -92
- package/sidenav/testing/index.d.ts +58 -63
- package/slide-toggle/index.d.ts +39 -110
- package/slide-toggle/testing/index.d.ts +17 -21
- package/slider/index.d.ts +281 -328
- package/slider/testing/index.d.ts +42 -47
- package/snack-bar/index.d.ts +152 -185
- package/snack-bar/testing/index.d.ts +7 -9
- package/sort/index.d.ts +61 -169
- package/sort/testing/index.d.ts +22 -25
- package/sort-direction.d-f4ce4649.d.ts +3 -0
- package/sort.d-c2b79a45.d.ts +87 -0
- package/stepper/index.d.ts +115 -167
- package/stepper/testing/index.d.ts +43 -52
- package/table/index.d.ts +97 -156
- package/table/testing/index.d.ts +64 -78
- package/tabs/index.d.ts +309 -383
- package/tabs/testing/index.d.ts +67 -76
- package/timepicker/index.d.ts +127 -160
- package/timepicker/testing/index.d.ts +20 -26
- package/toolbar/index.d.ts +15 -26
- package/toolbar/testing/index.d.ts +13 -16
- package/tooltip/index.d.ts +11 -355
- package/tooltip/testing/index.d.ts +7 -10
- package/tree/index.d.ts +117 -163
- package/tree/testing/index.d.ts +52 -58
package/dialog/index.d.ts
CHANGED
|
@@ -1,210 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ComponentRef } from '@angular/core';
|
|
4
|
-
import { ComponentType } from '@angular/cdk/overlay';
|
|
5
|
-
import { Dialog } from '@angular/cdk/dialog';
|
|
6
|
-
import { DialogRef } from '@angular/cdk/dialog';
|
|
7
|
-
import { Direction } from '@angular/cdk/bidi';
|
|
8
|
-
import { EventEmitter } from '@angular/core';
|
|
9
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
1
|
+
import { M as MatDialogRef, a as MatDialogContainer } from '../dialog.d-57867441.js';
|
|
2
|
+
export { A as AutoFocusTarget, f as DialogPosition, D as DialogRole, b as MAT_DIALOG_DATA, c as MAT_DIALOG_DEFAULT_OPTIONS, d as MAT_DIALOG_SCROLL_STRATEGY, e as MatDialog, g as MatDialogConfig, a as MatDialogContainer, M as MatDialogRef, h as MatDialogState, _ as _closeDialogVia } from '../dialog.d-57867441.js';
|
|
10
3
|
import * as i0 from '@angular/core';
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
4
|
+
import { OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
|
|
5
|
+
import * as i5 from '@angular/cdk/scrolling';
|
|
6
|
+
import * as i1 from '@angular/cdk/dialog';
|
|
13
7
|
import * as i2 from '@angular/cdk/overlay';
|
|
14
8
|
import * as i3 from '@angular/cdk/portal';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { OnChanges } from '@angular/core';
|
|
20
|
-
import { OnDestroy } from '@angular/core';
|
|
21
|
-
import { OnInit } from '@angular/core';
|
|
22
|
-
import { Overlay } from '@angular/cdk/overlay';
|
|
23
|
-
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
24
|
-
import { SimpleChanges } from '@angular/core';
|
|
25
|
-
import { Subject } from 'rxjs';
|
|
26
|
-
import { TemplateRef } from '@angular/core';
|
|
27
|
-
import { ViewContainerRef } from '@angular/core';
|
|
28
|
-
|
|
29
|
-
/** Options for where to set focus to automatically on dialog open */
|
|
30
|
-
export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
31
|
-
|
|
32
|
-
/** Duration of the closing animation in milliseconds. */
|
|
33
|
-
declare const CLOSE_ANIMATION_DURATION = 75;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Closes the dialog with the specified interaction type. This is currently not part of
|
|
37
|
-
* `MatDialogRef` as that would conflict with custom dialog ref mocks provided in tests.
|
|
38
|
-
* More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.
|
|
39
|
-
*/
|
|
40
|
-
export declare function _closeDialogVia<R>(ref: MatDialogRef<R>, interactionType: FocusOrigin, result?: R): void;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Default parameters for the animation for backwards compatibility.
|
|
44
|
-
* @docs-private
|
|
45
|
-
* @deprecated Will stop being exported.
|
|
46
|
-
* @breaking-change 21.0.0
|
|
47
|
-
*/
|
|
48
|
-
export declare const _defaultParams: {
|
|
49
|
-
params: {
|
|
50
|
-
enterAnimationDuration: string;
|
|
51
|
-
exitAnimationDuration: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/** Possible overrides for a dialog's position. */
|
|
56
|
-
export declare interface DialogPosition {
|
|
57
|
-
/** Override for the dialog's top position. */
|
|
58
|
-
top?: string;
|
|
59
|
-
/** Override for the dialog's bottom position. */
|
|
60
|
-
bottom?: string;
|
|
61
|
-
/** Override for the dialog's left position. */
|
|
62
|
-
left?: string;
|
|
63
|
-
/** Override for the dialog's right position. */
|
|
64
|
-
right?: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/** Valid ARIA roles for a dialog element. */
|
|
68
|
-
export declare type DialogRole = 'dialog' | 'alertdialog';
|
|
69
|
-
|
|
70
|
-
declare namespace i5 {
|
|
71
|
-
export {
|
|
72
|
-
OPEN_ANIMATION_DURATION,
|
|
73
|
-
CLOSE_ANIMATION_DURATION,
|
|
74
|
-
MatDialogContainer
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare namespace i6 {
|
|
79
|
-
export {
|
|
80
|
-
MatDialogClose,
|
|
81
|
-
MatDialogLayoutSection,
|
|
82
|
-
MatDialogTitle,
|
|
83
|
-
MatDialogContent,
|
|
84
|
-
MatDialogActions
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** Event that captures the state of dialog container animations. */
|
|
89
|
-
declare interface LegacyDialogAnimationEvent {
|
|
90
|
-
state: 'opened' | 'opening' | 'closing' | 'closed';
|
|
91
|
-
totalTime: number;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/** Injection token that can be used to access the data that was passed in to a dialog. */
|
|
95
|
-
export declare const MAT_DIALOG_DATA: InjectionToken<any>;
|
|
96
|
-
|
|
97
|
-
/** Injection token that can be used to specify default dialog options. */
|
|
98
|
-
export declare const MAT_DIALOG_DEFAULT_OPTIONS: InjectionToken<MatDialogConfig<any>>;
|
|
99
|
-
|
|
100
|
-
/** Injection token that determines the scroll handling while the dialog is open. */
|
|
101
|
-
export declare const MAT_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @docs-private
|
|
105
|
-
* @deprecated No longer used. To be removed.
|
|
106
|
-
* @breaking-change 19.0.0
|
|
107
|
-
*/
|
|
108
|
-
export declare const MAT_DIALOG_SCROLL_STRATEGY_PROVIDER: {
|
|
109
|
-
provide: InjectionToken<() => ScrollStrategy>;
|
|
110
|
-
deps: (typeof Overlay)[];
|
|
111
|
-
useFactory: typeof MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @docs-private
|
|
116
|
-
* @deprecated No longer used. To be removed.
|
|
117
|
-
* @breaking-change 19.0.0
|
|
118
|
-
*/
|
|
119
|
-
export declare function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Service to open Material Design modal dialogs.
|
|
123
|
-
*/
|
|
124
|
-
export declare class MatDialog implements OnDestroy {
|
|
125
|
-
private _overlay;
|
|
126
|
-
private _defaultOptions;
|
|
127
|
-
private _scrollStrategy;
|
|
128
|
-
private _parentDialog;
|
|
129
|
-
private _idGenerator;
|
|
130
|
-
protected _dialog: Dialog;
|
|
131
|
-
private readonly _openDialogsAtThisLevel;
|
|
132
|
-
private readonly _afterAllClosedAtThisLevel;
|
|
133
|
-
private readonly _afterOpenedAtThisLevel;
|
|
134
|
-
protected dialogConfigClass: typeof MatDialogConfig;
|
|
135
|
-
private readonly _dialogRefConstructor;
|
|
136
|
-
private readonly _dialogContainerType;
|
|
137
|
-
private readonly _dialogDataToken;
|
|
138
|
-
/** Keeps track of the currently-open dialogs. */
|
|
139
|
-
get openDialogs(): MatDialogRef<any>[];
|
|
140
|
-
/** Stream that emits when a dialog has been opened. */
|
|
141
|
-
get afterOpened(): Subject<MatDialogRef<any>>;
|
|
142
|
-
private _getAfterAllClosed;
|
|
143
|
-
/**
|
|
144
|
-
* Stream that emits when all open dialog have finished closing.
|
|
145
|
-
* Will emit on subscribe if there are no open dialogs to begin with.
|
|
146
|
-
*/
|
|
147
|
-
readonly afterAllClosed: Observable<void>;
|
|
148
|
-
constructor(...args: unknown[]);
|
|
149
|
-
/**
|
|
150
|
-
* Opens a modal dialog containing the given component.
|
|
151
|
-
* @param component Type of the component to load into the dialog.
|
|
152
|
-
* @param config Extra configuration options.
|
|
153
|
-
* @returns Reference to the newly-opened dialog.
|
|
154
|
-
*/
|
|
155
|
-
open<T, D = any, R = any>(component: ComponentType<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>;
|
|
156
|
-
/**
|
|
157
|
-
* Opens a modal dialog containing the given template.
|
|
158
|
-
* @param template TemplateRef to instantiate as the dialog content.
|
|
159
|
-
* @param config Extra configuration options.
|
|
160
|
-
* @returns Reference to the newly-opened dialog.
|
|
161
|
-
*/
|
|
162
|
-
open<T, D = any, R = any>(template: TemplateRef<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>;
|
|
163
|
-
open<T, D = any, R = any>(template: ComponentType<T> | TemplateRef<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>;
|
|
164
|
-
/**
|
|
165
|
-
* Closes all of the currently-open dialogs.
|
|
166
|
-
*/
|
|
167
|
-
closeAll(): void;
|
|
168
|
-
/**
|
|
169
|
-
* Finds an open dialog by its id.
|
|
170
|
-
* @param id ID to use when looking up the dialog.
|
|
171
|
-
*/
|
|
172
|
-
getDialogById(id: string): MatDialogRef<any> | undefined;
|
|
173
|
-
ngOnDestroy(): void;
|
|
174
|
-
private _closeDialogs;
|
|
175
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialog, never>;
|
|
176
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MatDialog>;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Container for the bottom action buttons in a dialog.
|
|
181
|
-
* Stays fixed to the bottom when scrolling.
|
|
182
|
-
*/
|
|
183
|
-
export declare class MatDialogActions extends MatDialogLayoutSection {
|
|
184
|
-
/**
|
|
185
|
-
* Horizontal alignment of action buttons.
|
|
186
|
-
*/
|
|
187
|
-
align?: 'start' | 'center' | 'end';
|
|
188
|
-
protected _onAdd(): void;
|
|
189
|
-
protected _onRemove(): void;
|
|
190
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogActions, never>;
|
|
191
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogActions, "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", never, { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Animations used by MatDialog.
|
|
196
|
-
* @docs-private
|
|
197
|
-
* @deprecated No longer used, will be removed.
|
|
198
|
-
* @breaking-change 21.0.0
|
|
199
|
-
*/
|
|
200
|
-
export declare const matDialogAnimations: {
|
|
201
|
-
readonly dialogContainer: any;
|
|
202
|
-
};
|
|
9
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
10
|
+
import '@angular/cdk/bidi';
|
|
11
|
+
import '@angular/cdk/a11y';
|
|
12
|
+
import 'rxjs';
|
|
203
13
|
|
|
204
14
|
/**
|
|
205
15
|
* Button that will close the current dialog.
|
|
206
16
|
*/
|
|
207
|
-
|
|
17
|
+
declare class MatDialogClose implements OnInit, OnChanges {
|
|
208
18
|
dialogRef: MatDialogRef<any, any>;
|
|
209
19
|
private _elementRef;
|
|
210
20
|
private _dialog;
|
|
@@ -222,164 +32,6 @@ export declare class MatDialogClose implements OnInit, OnChanges {
|
|
|
222
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogClose, never>;
|
|
223
33
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogClose, "[mat-dialog-close], [matDialogClose]", ["matDialogClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "mat-dialog-close"; "required": false; }; "_matDialogClose": { "alias": "matDialogClose"; "required": false; }; }, {}, never, never, true, never>;
|
|
224
34
|
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Configuration for opening a modal dialog with the MatDialog service.
|
|
228
|
-
*/
|
|
229
|
-
export declare class MatDialogConfig<D = any> {
|
|
230
|
-
/**
|
|
231
|
-
* Where the attached component should live in Angular's *logical* component tree.
|
|
232
|
-
* This affects what is available for injection and the change detection order for the
|
|
233
|
-
* component instantiated inside of the dialog. This does not affect where the dialog
|
|
234
|
-
* content will be rendered.
|
|
235
|
-
*/
|
|
236
|
-
viewContainerRef?: ViewContainerRef;
|
|
237
|
-
/**
|
|
238
|
-
* Injector used for the instantiation of the component to be attached. If provided,
|
|
239
|
-
* takes precedence over the injector indirectly provided by `ViewContainerRef`.
|
|
240
|
-
*/
|
|
241
|
-
injector?: Injector;
|
|
242
|
-
/** ID for the dialog. If omitted, a unique one will be generated. */
|
|
243
|
-
id?: string;
|
|
244
|
-
/** The ARIA role of the dialog element. */
|
|
245
|
-
role?: DialogRole;
|
|
246
|
-
/** Custom class for the overlay pane. */
|
|
247
|
-
panelClass?: string | string[];
|
|
248
|
-
/** Whether the dialog has a backdrop. */
|
|
249
|
-
hasBackdrop?: boolean;
|
|
250
|
-
/** Custom class for the backdrop. */
|
|
251
|
-
backdropClass?: string | string[];
|
|
252
|
-
/** Whether the user can use escape or clicking on the backdrop to close the modal. */
|
|
253
|
-
disableClose?: boolean;
|
|
254
|
-
/** Width of the dialog. */
|
|
255
|
-
width?: string;
|
|
256
|
-
/** Height of the dialog. */
|
|
257
|
-
height?: string;
|
|
258
|
-
/** Min-width of the dialog. If a number is provided, assumes pixel units. */
|
|
259
|
-
minWidth?: number | string;
|
|
260
|
-
/** Min-height of the dialog. If a number is provided, assumes pixel units. */
|
|
261
|
-
minHeight?: number | string;
|
|
262
|
-
/** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
|
|
263
|
-
maxWidth?: number | string;
|
|
264
|
-
/** Max-height of the dialog. If a number is provided, assumes pixel units. */
|
|
265
|
-
maxHeight?: number | string;
|
|
266
|
-
/** Position overrides. */
|
|
267
|
-
position?: DialogPosition;
|
|
268
|
-
/** Data being injected into the child component. */
|
|
269
|
-
data?: D | null;
|
|
270
|
-
/** Layout direction for the dialog's content. */
|
|
271
|
-
direction?: Direction;
|
|
272
|
-
/** ID of the element that describes the dialog. */
|
|
273
|
-
ariaDescribedBy?: string | null;
|
|
274
|
-
/** ID of the element that labels the dialog. */
|
|
275
|
-
ariaLabelledBy?: string | null;
|
|
276
|
-
/** Aria label to assign to the dialog element. */
|
|
277
|
-
ariaLabel?: string | null;
|
|
278
|
-
/**
|
|
279
|
-
* Whether this is a modal dialog. Used to set the `aria-modal` attribute. Off by default,
|
|
280
|
-
* because it can interfere with other overlay-based components (e.g. `mat-select`) and because
|
|
281
|
-
* it is redundant since the dialog marks all outside content as `aria-hidden` anyway.
|
|
282
|
-
*/
|
|
283
|
-
ariaModal?: boolean;
|
|
284
|
-
/**
|
|
285
|
-
* Where the dialog should focus on open.
|
|
286
|
-
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
287
|
-
* AutoFocusTarget instead.
|
|
288
|
-
*/
|
|
289
|
-
autoFocus?: AutoFocusTarget | string | boolean;
|
|
290
|
-
/**
|
|
291
|
-
* Whether the dialog should restore focus to the
|
|
292
|
-
* previously-focused element, after it's closed.
|
|
293
|
-
*/
|
|
294
|
-
restoreFocus?: boolean;
|
|
295
|
-
/** Whether to wait for the opening animation to finish before trapping focus. */
|
|
296
|
-
delayFocusTrap?: boolean;
|
|
297
|
-
/** Scroll strategy to be used for the dialog. */
|
|
298
|
-
scrollStrategy?: ScrollStrategy;
|
|
299
|
-
/**
|
|
300
|
-
* Whether the dialog should close when the user goes backwards/forwards in history.
|
|
301
|
-
* Note that this usually doesn't include clicking on links (unless the user is using
|
|
302
|
-
* the `HashLocationStrategy`).
|
|
303
|
-
*/
|
|
304
|
-
closeOnNavigation?: boolean;
|
|
305
|
-
/**
|
|
306
|
-
* Duration of the enter animation in ms.
|
|
307
|
-
* Should be a number, string type is deprecated.
|
|
308
|
-
* @breaking-change 17.0.0 Remove string signature.
|
|
309
|
-
*/
|
|
310
|
-
enterAnimationDuration?: string | number;
|
|
311
|
-
/**
|
|
312
|
-
* Duration of the exit animation in ms.
|
|
313
|
-
* Should be a number, string type is deprecated.
|
|
314
|
-
* @breaking-change 17.0.0 Remove string signature.
|
|
315
|
-
*/
|
|
316
|
-
exitAnimationDuration?: string | number;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export declare class MatDialogContainer extends CdkDialogContainer<MatDialogConfig> implements OnDestroy {
|
|
320
|
-
private _animationMode;
|
|
321
|
-
/** Emits when an animation state changes. */
|
|
322
|
-
_animationStateChanged: EventEmitter<LegacyDialogAnimationEvent>;
|
|
323
|
-
/** Whether animations are enabled. */
|
|
324
|
-
_animationsEnabled: boolean;
|
|
325
|
-
/** Number of actions projected in the dialog. */
|
|
326
|
-
protected _actionSectionCount: number;
|
|
327
|
-
/** Host element of the dialog container component. */
|
|
328
|
-
private _hostElement;
|
|
329
|
-
/** Duration of the dialog open animation. */
|
|
330
|
-
private _enterAnimationDuration;
|
|
331
|
-
/** Duration of the dialog close animation. */
|
|
332
|
-
private _exitAnimationDuration;
|
|
333
|
-
/** Current timer for dialog animations. */
|
|
334
|
-
private _animationTimer;
|
|
335
|
-
protected _contentAttached(): void;
|
|
336
|
-
/** Starts the dialog open animation if enabled. */
|
|
337
|
-
private _startOpenAnimation;
|
|
338
|
-
/**
|
|
339
|
-
* Starts the exit animation of the dialog if enabled. This method is
|
|
340
|
-
* called by the dialog ref.
|
|
341
|
-
*/
|
|
342
|
-
_startExitAnimation(): void;
|
|
343
|
-
/**
|
|
344
|
-
* Updates the number action sections.
|
|
345
|
-
* @param delta Increase/decrease in the number of sections.
|
|
346
|
-
*/
|
|
347
|
-
_updateActionSectionCount(delta: number): void;
|
|
348
|
-
/**
|
|
349
|
-
* Completes the dialog open by clearing potential animation classes, trapping
|
|
350
|
-
* focus and emitting an opened event.
|
|
351
|
-
*/
|
|
352
|
-
private _finishDialogOpen;
|
|
353
|
-
/**
|
|
354
|
-
* Completes the dialog close by clearing potential animation classes, restoring
|
|
355
|
-
* focus and emitting a closed event.
|
|
356
|
-
*/
|
|
357
|
-
private _finishDialogClose;
|
|
358
|
-
/** Clears all dialog animation classes. */
|
|
359
|
-
private _clearAnimationClasses;
|
|
360
|
-
private _waitForAnimationToComplete;
|
|
361
|
-
/** Runs a callback in `requestAnimationFrame`, if available. */
|
|
362
|
-
private _requestAnimationFrame;
|
|
363
|
-
protected _captureInitialFocus(): void;
|
|
364
|
-
/**
|
|
365
|
-
* Callback for when the open dialog animation has finished. Intended to
|
|
366
|
-
* be called by sub-classes that use different animation implementations.
|
|
367
|
-
*/
|
|
368
|
-
protected _openAnimationDone(totalTime: number): void;
|
|
369
|
-
ngOnDestroy(): void;
|
|
370
|
-
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
371
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogContainer, never>;
|
|
372
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatDialogContainer, "mat-dialog-container", never, {}, {}, never, never, true, never>;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Scrollable content container of a dialog.
|
|
377
|
-
*/
|
|
378
|
-
export declare class MatDialogContent {
|
|
379
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogContent, never>;
|
|
380
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogContent, "[mat-dialog-content], mat-dialog-content, [matDialogContent]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkScrollable; inputs: {}; outputs: {}; }]>;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
35
|
declare abstract class MatDialogLayoutSection implements OnInit, OnDestroy {
|
|
384
36
|
protected _dialogRef: MatDialogRef<any, any>;
|
|
385
37
|
private _elementRef;
|
|
@@ -392,110 +44,64 @@ declare abstract class MatDialogLayoutSection implements OnInit, OnDestroy {
|
|
|
392
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogLayoutSection, never>;
|
|
393
45
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogLayoutSection, never, never, {}, {}, never, never, true, never>;
|
|
394
46
|
}
|
|
395
|
-
|
|
396
|
-
export declare class MatDialogModule {
|
|
397
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogModule, never>;
|
|
398
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDialogModule, never, [typeof i1_2.DialogModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.MatCommonModule, typeof i5.MatDialogContainer, typeof i6.MatDialogClose, typeof i6.MatDialogTitle, typeof i6.MatDialogActions, typeof i6.MatDialogContent], [typeof i4.MatCommonModule, typeof i5.MatDialogContainer, typeof i6.MatDialogClose, typeof i6.MatDialogTitle, typeof i6.MatDialogActions, typeof i6.MatDialogContent]>;
|
|
399
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatDialogModule>;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
47
|
/**
|
|
403
|
-
*
|
|
48
|
+
* Title of a dialog element. Stays fixed to the top of the dialog when scrolling.
|
|
404
49
|
*/
|
|
405
|
-
|
|
406
|
-
private _ref;
|
|
407
|
-
_containerInstance: MatDialogContainer;
|
|
408
|
-
/** The instance of component opened into the dialog. */
|
|
409
|
-
componentInstance: T;
|
|
410
|
-
/**
|
|
411
|
-
* `ComponentRef` of the component opened into the dialog. Will be
|
|
412
|
-
* null when the dialog is opened using a `TemplateRef`.
|
|
413
|
-
*/
|
|
414
|
-
readonly componentRef: ComponentRef<T> | null;
|
|
415
|
-
/** Whether the user is allowed to close the dialog. */
|
|
416
|
-
disableClose: boolean | undefined;
|
|
417
|
-
/** Unique ID for the dialog. */
|
|
50
|
+
declare class MatDialogTitle extends MatDialogLayoutSection {
|
|
418
51
|
id: string;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
/** Result to be passed to afterClosed. */
|
|
424
|
-
private _result;
|
|
425
|
-
/** Handle to the timeout that's running as a fallback in case the exit animation doesn't fire. */
|
|
426
|
-
private _closeFallbackTimeout;
|
|
427
|
-
/** Current state of the dialog. */
|
|
428
|
-
private _state;
|
|
429
|
-
/** Interaction that caused the dialog to close. */
|
|
430
|
-
private _closeInteractionType;
|
|
431
|
-
constructor(_ref: DialogRef<R, T>, config: MatDialogConfig, _containerInstance: MatDialogContainer);
|
|
432
|
-
/**
|
|
433
|
-
* Close the dialog.
|
|
434
|
-
* @param dialogResult Optional result to return to the dialog opener.
|
|
435
|
-
*/
|
|
436
|
-
close(dialogResult?: R): void;
|
|
437
|
-
/**
|
|
438
|
-
* Gets an observable that is notified when the dialog is finished opening.
|
|
439
|
-
*/
|
|
440
|
-
afterOpened(): Observable<void>;
|
|
441
|
-
/**
|
|
442
|
-
* Gets an observable that is notified when the dialog is finished closing.
|
|
443
|
-
*/
|
|
444
|
-
afterClosed(): Observable<R | undefined>;
|
|
445
|
-
/**
|
|
446
|
-
* Gets an observable that is notified when the dialog has started closing.
|
|
447
|
-
*/
|
|
448
|
-
beforeClosed(): Observable<R | undefined>;
|
|
449
|
-
/**
|
|
450
|
-
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
451
|
-
*/
|
|
452
|
-
backdropClick(): Observable<MouseEvent>;
|
|
453
|
-
/**
|
|
454
|
-
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
455
|
-
*/
|
|
456
|
-
keydownEvents(): Observable<KeyboardEvent>;
|
|
457
|
-
/**
|
|
458
|
-
* Updates the dialog's position.
|
|
459
|
-
* @param position New dialog position.
|
|
460
|
-
*/
|
|
461
|
-
updatePosition(position?: DialogPosition): this;
|
|
462
|
-
/**
|
|
463
|
-
* Updates the dialog's width and height.
|
|
464
|
-
* @param width New width of the dialog.
|
|
465
|
-
* @param height New height of the dialog.
|
|
466
|
-
*/
|
|
467
|
-
updateSize(width?: string, height?: string): this;
|
|
468
|
-
/** Add a CSS class or an array of classes to the overlay pane. */
|
|
469
|
-
addPanelClass(classes: string | string[]): this;
|
|
470
|
-
/** Remove a CSS class or an array of classes from the overlay pane. */
|
|
471
|
-
removePanelClass(classes: string | string[]): this;
|
|
472
|
-
/** Gets the current state of the dialog's lifecycle. */
|
|
473
|
-
getState(): MatDialogState;
|
|
474
|
-
/**
|
|
475
|
-
* Finishes the dialog close by updating the state of the dialog
|
|
476
|
-
* and disposing the overlay.
|
|
477
|
-
*/
|
|
478
|
-
private _finishDialogClose;
|
|
52
|
+
protected _onAdd(): void;
|
|
53
|
+
protected _onRemove(): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogTitle, never>;
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogTitle, "[mat-dialog-title], [matDialogTitle]", ["matDialogTitle"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
479
56
|
}
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
57
|
+
/**
|
|
58
|
+
* Scrollable content container of a dialog.
|
|
59
|
+
*/
|
|
60
|
+
declare class MatDialogContent {
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogContent, never>;
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogContent, "[mat-dialog-content], mat-dialog-content, [matDialogContent]", never, {}, {}, never, never, true, [{ directive: typeof i5.CdkScrollable; inputs: {}; outputs: {}; }]>;
|
|
485
63
|
}
|
|
486
|
-
|
|
487
64
|
/**
|
|
488
|
-
*
|
|
65
|
+
* Container for the bottom action buttons in a dialog.
|
|
66
|
+
* Stays fixed to the bottom when scrolling.
|
|
489
67
|
*/
|
|
490
|
-
|
|
491
|
-
|
|
68
|
+
declare class MatDialogActions extends MatDialogLayoutSection {
|
|
69
|
+
/**
|
|
70
|
+
* Horizontal alignment of action buttons.
|
|
71
|
+
*/
|
|
72
|
+
align?: 'start' | 'center' | 'end';
|
|
492
73
|
protected _onAdd(): void;
|
|
493
74
|
protected _onRemove(): void;
|
|
494
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
495
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogActions, never>;
|
|
76
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogActions, "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", never, { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
|
|
496
77
|
}
|
|
497
78
|
|
|
498
|
-
|
|
499
|
-
|
|
79
|
+
declare class MatDialogModule {
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogModule, never>;
|
|
81
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDialogModule, never, [typeof i1.DialogModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof MatCommonModule, typeof MatDialogContainer, typeof MatDialogClose, typeof MatDialogTitle, typeof MatDialogActions, typeof MatDialogContent], [typeof MatCommonModule, typeof MatDialogContainer, typeof MatDialogClose, typeof MatDialogTitle, typeof MatDialogActions, typeof MatDialogContent]>;
|
|
82
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatDialogModule>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Default parameters for the animation for backwards compatibility.
|
|
87
|
+
* @docs-private
|
|
88
|
+
* @deprecated Will stop being exported.
|
|
89
|
+
* @breaking-change 21.0.0
|
|
90
|
+
*/
|
|
91
|
+
declare const _defaultParams: {
|
|
92
|
+
params: {
|
|
93
|
+
enterAnimationDuration: string;
|
|
94
|
+
exitAnimationDuration: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Animations used by MatDialog.
|
|
99
|
+
* @docs-private
|
|
100
|
+
* @deprecated No longer used, will be removed.
|
|
101
|
+
* @breaking-change 21.0.0
|
|
102
|
+
*/
|
|
103
|
+
declare const matDialogAnimations: {
|
|
104
|
+
readonly dialogContainer: any;
|
|
105
|
+
};
|
|
500
106
|
|
|
501
|
-
export { }
|
|
107
|
+
export { MatDialogActions, MatDialogClose, MatDialogContent, MatDialogModule, MatDialogTitle, _defaultParams, matDialogAnimations };
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
3
|
-
import {
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
|
+
import { BaseHarnessFilters, ContentContainerComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
+
import { D as DialogRole, e as MatDialog, g as MatDialogConfig, M as MatDialogRef } from '../../dialog.d-57867441.js';
|
|
4
4
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
5
|
-
import { ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
6
|
-
import { DialogRole } from '@angular/material/dialog';
|
|
7
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
8
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
9
|
-
import { MatDialogConfig } from '@angular/material/dialog';
|
|
10
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
11
5
|
import { OnDestroy } from '@angular/core';
|
|
12
|
-
import
|
|
6
|
+
import '@angular/cdk/bidi';
|
|
7
|
+
import '@angular/cdk/a11y';
|
|
8
|
+
import 'rxjs';
|
|
9
|
+
import '@angular/cdk/dialog';
|
|
10
|
+
import '@angular/cdk/portal';
|
|
13
11
|
|
|
14
12
|
/** A set of criteria that can be used to filter a list of `MatDialogHarness` instances. */
|
|
15
|
-
|
|
13
|
+
interface DialogHarnessFilters extends BaseHarnessFilters {
|
|
16
14
|
}
|
|
17
15
|
|
|
16
|
+
/** Selectors for different sections of the mat-dialog that can contain user content. */
|
|
17
|
+
declare enum MatDialogSection {
|
|
18
|
+
TITLE = ".mat-mdc-dialog-title",
|
|
19
|
+
CONTENT = ".mat-mdc-dialog-content",
|
|
20
|
+
ACTIONS = ".mat-mdc-dialog-actions"
|
|
21
|
+
}
|
|
18
22
|
/** Harness for interacting with a standard `MatDialog` in tests. */
|
|
19
|
-
|
|
23
|
+
declare class MatDialogHarness extends ContentContainerComponentHarness<MatDialogSection | string> {
|
|
20
24
|
/** The selector for the host element of a `MatDialog` instance. */
|
|
21
25
|
static hostSelector: string;
|
|
22
26
|
/**
|
|
@@ -25,9 +29,9 @@ export declare class MatDialogHarness extends ContentContainerComponentHarness<M
|
|
|
25
29
|
* @return a `HarnessPredicate` configured with the given options.
|
|
26
30
|
*/
|
|
27
31
|
static with<T extends MatDialogHarness>(this: ComponentHarnessConstructor<T>, options?: DialogHarnessFilters): HarnessPredicate<T>;
|
|
28
|
-
protected _title: AsyncFactoryFn<TestElement | null>;
|
|
29
|
-
protected _content: AsyncFactoryFn<TestElement | null>;
|
|
30
|
-
protected _actions: AsyncFactoryFn<TestElement | null>;
|
|
32
|
+
protected _title: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement | null>;
|
|
33
|
+
protected _content: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement | null>;
|
|
34
|
+
protected _actions: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement | null>;
|
|
31
35
|
/** Gets the id of the dialog. */
|
|
32
36
|
getId(): Promise<string | null>;
|
|
33
37
|
/** Gets the role of the dialog. */
|
|
@@ -54,15 +58,8 @@ export declare class MatDialogHarness extends ContentContainerComponentHarness<M
|
|
|
54
58
|
getActionsText(): Promise<string>;
|
|
55
59
|
}
|
|
56
60
|
|
|
57
|
-
/** Selectors for different sections of the mat-dialog that can contain user content. */
|
|
58
|
-
export declare enum MatDialogSection {
|
|
59
|
-
TITLE = ".mat-mdc-dialog-title",
|
|
60
|
-
CONTENT = ".mat-mdc-dialog-content",
|
|
61
|
-
ACTIONS = ".mat-mdc-dialog-actions"
|
|
62
|
-
}
|
|
63
|
-
|
|
64
61
|
/** Test component that immediately opens a dialog when bootstrapped. */
|
|
65
|
-
|
|
62
|
+
declare class MatTestDialogOpener<T = unknown, R = unknown> implements OnDestroy {
|
|
66
63
|
dialog: MatDialog;
|
|
67
64
|
/** Component that should be opened with the MatDialog `open` method. */
|
|
68
65
|
protected static component: ComponentType<unknown> | undefined;
|
|
@@ -79,8 +76,7 @@ export declare class MatTestDialogOpener<T = unknown, R = unknown> implements On
|
|
|
79
76
|
constructor(...args: unknown[]);
|
|
80
77
|
ngOnDestroy(): void;
|
|
81
78
|
}
|
|
82
|
-
|
|
83
|
-
export declare class MatTestDialogOpenerModule {
|
|
79
|
+
declare class MatTestDialogOpenerModule {
|
|
84
80
|
}
|
|
85
81
|
|
|
86
|
-
export { }
|
|
82
|
+
export { type DialogHarnessFilters, MatDialogHarness, MatDialogSection, MatTestDialogOpener, MatTestDialogOpenerModule };
|