@angular/material 20.0.0-next.0 → 20.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/_autocomplete-theme.scss +4 -4
- package/autocomplete/index.d.ts +96 -126
- package/autocomplete/testing/index.d.ts +6 -11
- package/badge/_badge-theme.scss +5 -5
- 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/_bottom-sheet-theme.scss +3 -3
- package/bottom-sheet/index.d.ts +88 -103
- package/bottom-sheet/testing/index.d.ts +4 -6
- package/button/_button-theme.scss +84 -32
- package/button/_fab-theme.scss +13 -13
- package/button/_icon-button-theme.scss +5 -5
- package/button/index.d.ts +10 -245
- package/button/testing/index.d.ts +13 -10
- package/button-toggle/_button-toggle-theme.scss +8 -8
- 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/_card-theme.scss +12 -12
- package/card/index.d.ts +80 -117
- package/card/testing/index.d.ts +11 -15
- package/checkbox/_checkbox-theme.scss +10 -10
- package/checkbox/index.d.ts +43 -104
- package/checkbox/testing/index.d.ts +6 -10
- package/chips/_chips-theme.scss +14 -14
- 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/_core-theme.scss +2 -2
- package/core/index.d.ts +50 -979
- package/core/option/_optgroup-theme.scss +2 -2
- package/core/option/_option-theme.scss +4 -4
- package/core/ripple/_ripple-theme.scss +3 -3
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +4 -4
- package/core/testing/index.d.ts +3 -65
- package/core/theming/_color-api-backwards-compatibility.scss +19 -8
- package/core/tokens/_density.scss +3 -0
- package/core/tokens/_token-definition.scss +1 -2
- package/core/tokens/_token-utils.scss +20 -5
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m2/mat/_tonal-button.scss +110 -0
- package/core/tokens/m3/_index.scss +2 -0
- package/core/tokens/m3/definitions/_index.scss +1 -1
- package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +3 -1
- package/core/tokens/m3/definitions/_md-sys-color.scss +44 -2
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +20 -1
- package/core/tokens/m3/mat/_tonal-button.scss +101 -0
- package/date-adapter.d-c6835d41.d.ts +267 -0
- package/date-range-input-harness.d-549a9f7e.d.ts +278 -0
- package/datepicker/_datepicker-theme.scss +8 -7
- package/datepicker/index.d.ts +1332 -1482
- package/datepicker/testing/index.d.ts +5 -287
- package/dialog/_dialog-theme.scss +6 -6
- 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/_divider-theme.scss +2 -2
- 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/_expansion-theme.scss +4 -4
- 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 +56 -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 +34 -15
- 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-de70be6a.mjs +467 -0
- package/fesm2022/date-range-input-harness-de70be6a.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +5 -465
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +162 -131
- 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-8099453f.mjs +18 -0
- package/fesm2022/divider-harness-8099453f.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-efefd4cf.mjs +11 -0
- package/fesm2022/form-field-control-harness-efefd4cf.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-0850d958.mjs +211 -0
- package/fesm2022/icon-button-0850d958.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-e68bb132.mjs +115 -0
- package/fesm2022/input-harness-e68bb132.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-1c16a0a9.mjs +1293 -0
- package/fesm2022/module-1c16a0a9.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-cf951a02.mjs +214 -0
- package/fesm2022/module-cf951a02.mjs.map +1 -0
- package/fesm2022/module-d757bba0.mjs +38 -0
- package/fesm2022/module-d757bba0.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 +52 -22
- 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-69d47123.mjs +123 -0
- package/fesm2022/select-harness-69d47123.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 +27 -23
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +38 -30
- 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 +37 -26
- 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/_form-field-theme.scss +16 -16
- 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/_grid-list-theme.scss +1 -1
- package/grid-list/index.d.ts +128 -152
- package/grid-list/testing/index.d.ts +39 -44
- package/icon/_icon-theme.scss +2 -2
- 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/_list-theme.scss +15 -15
- 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/_menu-theme.scss +3 -3
- package/menu/index.d.ts +183 -231
- package/menu/testing/index.d.ts +17 -23
- package/module.d-74a721b9.d.ts +326 -0
- package/module.d-792a497c.d.ts +213 -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/_paginator-theme.scss +3 -3
- 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/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +2 -2
- package/progress-bar/index.d.ts +40 -59
- package/progress-bar/testing/index.d.ts +7 -10
- package/progress-spinner/_progress-spinner-theme.scss +4 -4
- 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/_radio-theme.scss +12 -12
- 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/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +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-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-update/index_bundled.js +31 -31
- package/select/_select-theme.scss +6 -6
- 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/_sidenav-theme.scss +2 -2
- package/sidenav/index.d.ts +49 -92
- package/sidenav/testing/index.d.ts +58 -63
- package/slide-toggle/_slide-toggle-theme.scss +10 -10
- package/slide-toggle/index.d.ts +39 -110
- package/slide-toggle/testing/index.d.ts +17 -21
- package/slider/_slider-theme.scss +10 -10
- package/slider/index.d.ts +281 -328
- package/slider/testing/index.d.ts +42 -47
- package/snack-bar/_snack-bar-theme.scss +4 -4
- package/snack-bar/index.d.ts +152 -185
- package/snack-bar/testing/index.d.ts +7 -9
- package/sort/_sort-theme.scss +3 -3
- 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/_stepper-theme.scss +5 -5
- package/stepper/index.d.ts +115 -167
- package/stepper/testing/index.d.ts +43 -52
- package/table/_table-theme.scss +4 -4
- package/table/index.d.ts +97 -156
- package/table/testing/index.d.ts +64 -78
- package/tabs/_tabs-theme.scss +16 -16
- package/tabs/index.d.ts +309 -383
- package/tabs/testing/index.d.ts +67 -76
- package/timepicker/_timepicker-theme.scss +4 -4
- package/timepicker/index.d.ts +127 -160
- package/timepicker/testing/index.d.ts +20 -26
- package/toolbar/_toolbar-theme.scss +4 -4
- package/toolbar/index.d.ts +15 -26
- package/toolbar/testing/index.d.ts +13 -16
- package/tooltip/_tooltip-theme.scss +4 -4
- package/tooltip/index.d.ts +11 -355
- package/tooltip/testing/index.d.ts +7 -10
- package/tree/_tree-theme.scss +3 -3
- package/tree/index.d.ts +117 -163
- package/tree/testing/index.d.ts +52 -58
- /package/core/tokens/m3/definitions/{unused/_md-comp-filled-tonal-button.scss → _md-comp-filled-tonal-button.scss} +0 -0
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { ScrollStrategy, ComponentType } from '@angular/cdk/overlay';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ViewContainerRef, Injector, OnDestroy, EventEmitter, ComponentRef, InjectionToken, TemplateRef } from '@angular/core';
|
|
4
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
5
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
6
|
+
import { Observable, Subject } from 'rxjs';
|
|
7
|
+
import { CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
|
|
8
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
9
|
+
|
|
10
|
+
/** Options for where to set focus to automatically on dialog open */
|
|
11
|
+
type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
12
|
+
/** Valid ARIA roles for a dialog element. */
|
|
13
|
+
type DialogRole = 'dialog' | 'alertdialog';
|
|
14
|
+
/** Possible overrides for a dialog's position. */
|
|
15
|
+
interface DialogPosition {
|
|
16
|
+
/** Override for the dialog's top position. */
|
|
17
|
+
top?: string;
|
|
18
|
+
/** Override for the dialog's bottom position. */
|
|
19
|
+
bottom?: string;
|
|
20
|
+
/** Override for the dialog's left position. */
|
|
21
|
+
left?: string;
|
|
22
|
+
/** Override for the dialog's right position. */
|
|
23
|
+
right?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Configuration for opening a modal dialog with the MatDialog service.
|
|
27
|
+
*/
|
|
28
|
+
declare class MatDialogConfig<D = any> {
|
|
29
|
+
/**
|
|
30
|
+
* Where the attached component should live in Angular's *logical* component tree.
|
|
31
|
+
* This affects what is available for injection and the change detection order for the
|
|
32
|
+
* component instantiated inside of the dialog. This does not affect where the dialog
|
|
33
|
+
* content will be rendered.
|
|
34
|
+
*/
|
|
35
|
+
viewContainerRef?: ViewContainerRef;
|
|
36
|
+
/**
|
|
37
|
+
* Injector used for the instantiation of the component to be attached. If provided,
|
|
38
|
+
* takes precedence over the injector indirectly provided by `ViewContainerRef`.
|
|
39
|
+
*/
|
|
40
|
+
injector?: Injector;
|
|
41
|
+
/** ID for the dialog. If omitted, a unique one will be generated. */
|
|
42
|
+
id?: string;
|
|
43
|
+
/** The ARIA role of the dialog element. */
|
|
44
|
+
role?: DialogRole;
|
|
45
|
+
/** Custom class for the overlay pane. */
|
|
46
|
+
panelClass?: string | string[];
|
|
47
|
+
/** Whether the dialog has a backdrop. */
|
|
48
|
+
hasBackdrop?: boolean;
|
|
49
|
+
/** Custom class for the backdrop. */
|
|
50
|
+
backdropClass?: string | string[];
|
|
51
|
+
/** Whether the user can use escape or clicking on the backdrop to close the modal. */
|
|
52
|
+
disableClose?: boolean;
|
|
53
|
+
/** Width of the dialog. */
|
|
54
|
+
width?: string;
|
|
55
|
+
/** Height of the dialog. */
|
|
56
|
+
height?: string;
|
|
57
|
+
/** Min-width of the dialog. If a number is provided, assumes pixel units. */
|
|
58
|
+
minWidth?: number | string;
|
|
59
|
+
/** Min-height of the dialog. If a number is provided, assumes pixel units. */
|
|
60
|
+
minHeight?: number | string;
|
|
61
|
+
/** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
|
|
62
|
+
maxWidth?: number | string;
|
|
63
|
+
/** Max-height of the dialog. If a number is provided, assumes pixel units. */
|
|
64
|
+
maxHeight?: number | string;
|
|
65
|
+
/** Position overrides. */
|
|
66
|
+
position?: DialogPosition;
|
|
67
|
+
/** Data being injected into the child component. */
|
|
68
|
+
data?: D | null;
|
|
69
|
+
/** Layout direction for the dialog's content. */
|
|
70
|
+
direction?: Direction;
|
|
71
|
+
/** ID of the element that describes the dialog. */
|
|
72
|
+
ariaDescribedBy?: string | null;
|
|
73
|
+
/** ID of the element that labels the dialog. */
|
|
74
|
+
ariaLabelledBy?: string | null;
|
|
75
|
+
/** Aria label to assign to the dialog element. */
|
|
76
|
+
ariaLabel?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Whether this is a modal dialog. Used to set the `aria-modal` attribute. Off by default,
|
|
79
|
+
* because it can interfere with other overlay-based components (e.g. `mat-select`) and because
|
|
80
|
+
* it is redundant since the dialog marks all outside content as `aria-hidden` anyway.
|
|
81
|
+
*/
|
|
82
|
+
ariaModal?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Where the dialog should focus on open.
|
|
85
|
+
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
86
|
+
* AutoFocusTarget instead.
|
|
87
|
+
*/
|
|
88
|
+
autoFocus?: AutoFocusTarget | string | boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the dialog should restore focus to the
|
|
91
|
+
* previously-focused element, after it's closed.
|
|
92
|
+
*/
|
|
93
|
+
restoreFocus?: boolean;
|
|
94
|
+
/** Whether to wait for the opening animation to finish before trapping focus. */
|
|
95
|
+
delayFocusTrap?: boolean;
|
|
96
|
+
/** Scroll strategy to be used for the dialog. */
|
|
97
|
+
scrollStrategy?: ScrollStrategy;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the dialog should close when the user goes backwards/forwards in history.
|
|
100
|
+
* Note that this usually doesn't include clicking on links (unless the user is using
|
|
101
|
+
* the `HashLocationStrategy`).
|
|
102
|
+
*/
|
|
103
|
+
closeOnNavigation?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Duration of the enter animation in ms.
|
|
106
|
+
* Should be a number, string type is deprecated.
|
|
107
|
+
* @breaking-change 17.0.0 Remove string signature.
|
|
108
|
+
*/
|
|
109
|
+
enterAnimationDuration?: string | number;
|
|
110
|
+
/**
|
|
111
|
+
* Duration of the exit animation in ms.
|
|
112
|
+
* Should be a number, string type is deprecated.
|
|
113
|
+
* @breaking-change 17.0.0 Remove string signature.
|
|
114
|
+
*/
|
|
115
|
+
exitAnimationDuration?: string | number;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** Event that captures the state of dialog container animations. */
|
|
119
|
+
interface LegacyDialogAnimationEvent {
|
|
120
|
+
state: 'opened' | 'opening' | 'closing' | 'closed';
|
|
121
|
+
totalTime: number;
|
|
122
|
+
}
|
|
123
|
+
declare class MatDialogContainer extends CdkDialogContainer<MatDialogConfig> implements OnDestroy {
|
|
124
|
+
private _animationMode;
|
|
125
|
+
/** Emits when an animation state changes. */
|
|
126
|
+
_animationStateChanged: EventEmitter<LegacyDialogAnimationEvent>;
|
|
127
|
+
/** Whether animations are enabled. */
|
|
128
|
+
_animationsEnabled: boolean;
|
|
129
|
+
/** Number of actions projected in the dialog. */
|
|
130
|
+
protected _actionSectionCount: number;
|
|
131
|
+
/** Host element of the dialog container component. */
|
|
132
|
+
private _hostElement;
|
|
133
|
+
/** Duration of the dialog open animation. */
|
|
134
|
+
private _enterAnimationDuration;
|
|
135
|
+
/** Duration of the dialog close animation. */
|
|
136
|
+
private _exitAnimationDuration;
|
|
137
|
+
/** Current timer for dialog animations. */
|
|
138
|
+
private _animationTimer;
|
|
139
|
+
protected _contentAttached(): void;
|
|
140
|
+
/** Starts the dialog open animation if enabled. */
|
|
141
|
+
private _startOpenAnimation;
|
|
142
|
+
/**
|
|
143
|
+
* Starts the exit animation of the dialog if enabled. This method is
|
|
144
|
+
* called by the dialog ref.
|
|
145
|
+
*/
|
|
146
|
+
_startExitAnimation(): void;
|
|
147
|
+
/**
|
|
148
|
+
* Updates the number action sections.
|
|
149
|
+
* @param delta Increase/decrease in the number of sections.
|
|
150
|
+
*/
|
|
151
|
+
_updateActionSectionCount(delta: number): void;
|
|
152
|
+
/**
|
|
153
|
+
* Completes the dialog open by clearing potential animation classes, trapping
|
|
154
|
+
* focus and emitting an opened event.
|
|
155
|
+
*/
|
|
156
|
+
private _finishDialogOpen;
|
|
157
|
+
/**
|
|
158
|
+
* Completes the dialog close by clearing potential animation classes, restoring
|
|
159
|
+
* focus and emitting a closed event.
|
|
160
|
+
*/
|
|
161
|
+
private _finishDialogClose;
|
|
162
|
+
/** Clears all dialog animation classes. */
|
|
163
|
+
private _clearAnimationClasses;
|
|
164
|
+
private _waitForAnimationToComplete;
|
|
165
|
+
/** Runs a callback in `requestAnimationFrame`, if available. */
|
|
166
|
+
private _requestAnimationFrame;
|
|
167
|
+
protected _captureInitialFocus(): void;
|
|
168
|
+
/**
|
|
169
|
+
* Callback for when the open dialog animation has finished. Intended to
|
|
170
|
+
* be called by sub-classes that use different animation implementations.
|
|
171
|
+
*/
|
|
172
|
+
protected _openAnimationDone(totalTime: number): void;
|
|
173
|
+
ngOnDestroy(): void;
|
|
174
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
175
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogContainer, never>;
|
|
176
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatDialogContainer, "mat-dialog-container", never, {}, {}, never, never, true, never>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** Possible states of the lifecycle of a dialog. */
|
|
180
|
+
|
|
181
|
+
declare enum MatDialogState {
|
|
182
|
+
OPEN = 0,
|
|
183
|
+
CLOSING = 1,
|
|
184
|
+
CLOSED = 2
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Reference to a dialog opened via the MatDialog service.
|
|
188
|
+
*/
|
|
189
|
+
declare class MatDialogRef<T, R = any> {
|
|
190
|
+
private _ref;
|
|
191
|
+
_containerInstance: MatDialogContainer;
|
|
192
|
+
/** The instance of component opened into the dialog. */
|
|
193
|
+
componentInstance: T;
|
|
194
|
+
/**
|
|
195
|
+
* `ComponentRef` of the component opened into the dialog. Will be
|
|
196
|
+
* null when the dialog is opened using a `TemplateRef`.
|
|
197
|
+
*/
|
|
198
|
+
readonly componentRef: ComponentRef<T> | null;
|
|
199
|
+
/** Whether the user is allowed to close the dialog. */
|
|
200
|
+
disableClose: boolean | undefined;
|
|
201
|
+
/** Unique ID for the dialog. */
|
|
202
|
+
id: string;
|
|
203
|
+
/** Subject for notifying the user that the dialog has finished opening. */
|
|
204
|
+
private readonly _afterOpened;
|
|
205
|
+
/** Subject for notifying the user that the dialog has started closing. */
|
|
206
|
+
private readonly _beforeClosed;
|
|
207
|
+
/** Result to be passed to afterClosed. */
|
|
208
|
+
private _result;
|
|
209
|
+
/** Handle to the timeout that's running as a fallback in case the exit animation doesn't fire. */
|
|
210
|
+
private _closeFallbackTimeout;
|
|
211
|
+
/** Current state of the dialog. */
|
|
212
|
+
private _state;
|
|
213
|
+
/** Interaction that caused the dialog to close. */
|
|
214
|
+
private _closeInteractionType;
|
|
215
|
+
constructor(_ref: DialogRef<R, T>, config: MatDialogConfig, _containerInstance: MatDialogContainer);
|
|
216
|
+
/**
|
|
217
|
+
* Close the dialog.
|
|
218
|
+
* @param dialogResult Optional result to return to the dialog opener.
|
|
219
|
+
*/
|
|
220
|
+
close(dialogResult?: R): void;
|
|
221
|
+
/**
|
|
222
|
+
* Gets an observable that is notified when the dialog is finished opening.
|
|
223
|
+
*/
|
|
224
|
+
afterOpened(): Observable<void>;
|
|
225
|
+
/**
|
|
226
|
+
* Gets an observable that is notified when the dialog is finished closing.
|
|
227
|
+
*/
|
|
228
|
+
afterClosed(): Observable<R | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* Gets an observable that is notified when the dialog has started closing.
|
|
231
|
+
*/
|
|
232
|
+
beforeClosed(): Observable<R | undefined>;
|
|
233
|
+
/**
|
|
234
|
+
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
235
|
+
*/
|
|
236
|
+
backdropClick(): Observable<MouseEvent>;
|
|
237
|
+
/**
|
|
238
|
+
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
239
|
+
*/
|
|
240
|
+
keydownEvents(): Observable<KeyboardEvent>;
|
|
241
|
+
/**
|
|
242
|
+
* Updates the dialog's position.
|
|
243
|
+
* @param position New dialog position.
|
|
244
|
+
*/
|
|
245
|
+
updatePosition(position?: DialogPosition): this;
|
|
246
|
+
/**
|
|
247
|
+
* Updates the dialog's width and height.
|
|
248
|
+
* @param width New width of the dialog.
|
|
249
|
+
* @param height New height of the dialog.
|
|
250
|
+
*/
|
|
251
|
+
updateSize(width?: string, height?: string): this;
|
|
252
|
+
/** Add a CSS class or an array of classes to the overlay pane. */
|
|
253
|
+
addPanelClass(classes: string | string[]): this;
|
|
254
|
+
/** Remove a CSS class or an array of classes from the overlay pane. */
|
|
255
|
+
removePanelClass(classes: string | string[]): this;
|
|
256
|
+
/** Gets the current state of the dialog's lifecycle. */
|
|
257
|
+
getState(): MatDialogState;
|
|
258
|
+
/**
|
|
259
|
+
* Finishes the dialog close by updating the state of the dialog
|
|
260
|
+
* and disposing the overlay.
|
|
261
|
+
*/
|
|
262
|
+
private _finishDialogClose;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Closes the dialog with the specified interaction type. This is currently not part of
|
|
266
|
+
* `MatDialogRef` as that would conflict with custom dialog ref mocks provided in tests.
|
|
267
|
+
* More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.
|
|
268
|
+
*/
|
|
269
|
+
declare function _closeDialogVia<R>(ref: MatDialogRef<R>, interactionType: FocusOrigin, result?: R): void;
|
|
270
|
+
|
|
271
|
+
/** Injection token that can be used to access the data that was passed in to a dialog. */
|
|
272
|
+
declare const MAT_DIALOG_DATA: InjectionToken<any>;
|
|
273
|
+
/** Injection token that can be used to specify default dialog options. */
|
|
274
|
+
declare const MAT_DIALOG_DEFAULT_OPTIONS: InjectionToken<MatDialogConfig<any>>;
|
|
275
|
+
/** Injection token that determines the scroll handling while the dialog is open. */
|
|
276
|
+
declare const MAT_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
277
|
+
/**
|
|
278
|
+
* Service to open Material Design modal dialogs.
|
|
279
|
+
*/
|
|
280
|
+
declare class MatDialog implements OnDestroy {
|
|
281
|
+
private _overlay;
|
|
282
|
+
private _defaultOptions;
|
|
283
|
+
private _scrollStrategy;
|
|
284
|
+
private _parentDialog;
|
|
285
|
+
private _idGenerator;
|
|
286
|
+
protected _dialog: Dialog;
|
|
287
|
+
private readonly _openDialogsAtThisLevel;
|
|
288
|
+
private readonly _afterAllClosedAtThisLevel;
|
|
289
|
+
private readonly _afterOpenedAtThisLevel;
|
|
290
|
+
protected dialogConfigClass: typeof MatDialogConfig;
|
|
291
|
+
private readonly _dialogRefConstructor;
|
|
292
|
+
private readonly _dialogContainerType;
|
|
293
|
+
private readonly _dialogDataToken;
|
|
294
|
+
/** Keeps track of the currently-open dialogs. */
|
|
295
|
+
get openDialogs(): MatDialogRef<any>[];
|
|
296
|
+
/** Stream that emits when a dialog has been opened. */
|
|
297
|
+
get afterOpened(): Subject<MatDialogRef<any>>;
|
|
298
|
+
private _getAfterAllClosed;
|
|
299
|
+
/**
|
|
300
|
+
* Stream that emits when all open dialog have finished closing.
|
|
301
|
+
* Will emit on subscribe if there are no open dialogs to begin with.
|
|
302
|
+
*/
|
|
303
|
+
readonly afterAllClosed: Observable<void>;
|
|
304
|
+
constructor(...args: unknown[]);
|
|
305
|
+
/**
|
|
306
|
+
* Opens a modal dialog containing the given component.
|
|
307
|
+
* @param component Type of the component to load into the dialog.
|
|
308
|
+
* @param config Extra configuration options.
|
|
309
|
+
* @returns Reference to the newly-opened dialog.
|
|
310
|
+
*/
|
|
311
|
+
open<T, D = any, R = any>(component: ComponentType<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>;
|
|
312
|
+
/**
|
|
313
|
+
* Opens a modal dialog containing the given template.
|
|
314
|
+
* @param template TemplateRef to instantiate as the dialog content.
|
|
315
|
+
* @param config Extra configuration options.
|
|
316
|
+
* @returns Reference to the newly-opened dialog.
|
|
317
|
+
*/
|
|
318
|
+
open<T, D = any, R = any>(template: TemplateRef<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>;
|
|
319
|
+
open<T, D = any, R = any>(template: ComponentType<T> | TemplateRef<T>, config?: MatDialogConfig<D>): MatDialogRef<T, R>;
|
|
320
|
+
/**
|
|
321
|
+
* Closes all of the currently-open dialogs.
|
|
322
|
+
*/
|
|
323
|
+
closeAll(): void;
|
|
324
|
+
/**
|
|
325
|
+
* Finds an open dialog by its id.
|
|
326
|
+
* @param id ID to use when looking up the dialog.
|
|
327
|
+
*/
|
|
328
|
+
getDialogById(id: string): MatDialogRef<any> | undefined;
|
|
329
|
+
ngOnDestroy(): void;
|
|
330
|
+
private _closeDialogs;
|
|
331
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialog, never>;
|
|
332
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatDialog>;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export { type AutoFocusTarget as A, type DialogRole as D, MatDialogRef as M, _closeDialogVia as _, MatDialogContainer as a, MAT_DIALOG_DATA as b, MAT_DIALOG_DEFAULT_OPTIONS as c, MAT_DIALOG_SCROLL_STRATEGY as d, MatDialog as e, type DialogPosition as f, MatDialogConfig as g, MatDialogState as h };
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
12
12
|
} @else {
|
|
13
13
|
@include sass-utils.current-selector-or-root() {
|
|
14
|
-
@include token-utils.create-token-values(
|
|
14
|
+
@include token-utils.create-token-values-mixed(
|
|
15
15
|
tokens-mat-divider.$prefix,
|
|
16
16
|
tokens-mat-divider.get-unthemable-tokens()
|
|
17
17
|
);
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
25
25
|
} @else {
|
|
26
26
|
@include sass-utils.current-selector-or-root() {
|
|
27
|
-
@include token-utils.create-token-values(
|
|
27
|
+
@include token-utils.create-token-values-mixed(
|
|
28
28
|
tokens-mat-divider.$prefix,
|
|
29
29
|
tokens-mat-divider.get-color-tokens($theme)
|
|
30
30
|
);
|
package/divider/index.d.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import
|
|
3
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
4
|
+
import '@angular/cdk/bidi';
|
|
4
5
|
|
|
5
|
-
declare
|
|
6
|
-
export {
|
|
7
|
-
MatDivider
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export declare class MatDivider {
|
|
6
|
+
declare class MatDivider {
|
|
12
7
|
/** Whether the divider is vertically aligned. */
|
|
13
8
|
get vertical(): boolean;
|
|
14
9
|
set vertical(value: BooleanInput);
|
|
@@ -21,10 +16,10 @@ export declare class MatDivider {
|
|
|
21
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatDivider, "mat-divider", never, { "vertical": { "alias": "vertical"; "required": false; }; "inset": { "alias": "inset"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
17
|
}
|
|
23
18
|
|
|
24
|
-
|
|
19
|
+
declare class MatDividerModule {
|
|
25
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDividerModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDividerModule, never, [typeof
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDividerModule, never, [typeof MatCommonModule, typeof MatDivider], [typeof MatDivider, typeof MatCommonModule]>;
|
|
27
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatDividerModule>;
|
|
28
23
|
}
|
|
29
24
|
|
|
30
|
-
export { }
|
|
25
|
+
export { MatDivider, MatDividerModule };
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
4
|
-
|
|
5
|
-
export declare interface DividerHarnessFilters extends BaseHarnessFilters {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/** Harness for interacting with a `mat-divider`. */
|
|
9
|
-
export declare class MatDividerHarness extends ComponentHarness {
|
|
10
|
-
static hostSelector: string;
|
|
11
|
-
static with(options?: DividerHarnessFilters): HarnessPredicate<MatDividerHarness>;
|
|
12
|
-
getOrientation(): Promise<'horizontal' | 'vertical'>;
|
|
13
|
-
isInset(): Promise<boolean>;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { }
|
|
1
|
+
export { D as DividerHarnessFilters, M as MatDividerHarness } from '../../divider-harness.d-d34fede4.js';
|
|
2
|
+
import '@angular/cdk/testing';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
|
|
3
|
+
interface DividerHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/** Harness for interacting with a `mat-divider`. */
|
|
7
|
+
declare class MatDividerHarness extends ComponentHarness {
|
|
8
|
+
static hostSelector: string;
|
|
9
|
+
static with(options?: DividerHarnessFilters): HarnessPredicate<MatDividerHarness>;
|
|
10
|
+
getOrientation(): Promise<'horizontal' | 'vertical'>;
|
|
11
|
+
isInset(): Promise<boolean>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { type DividerHarnessFilters as D, MatDividerHarness as M };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/** Error state matcher that matches when a control is invalid and dirty. */
|
|
5
|
+
declare class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
|
|
6
|
+
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowOnDirtyErrorStateMatcher, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShowOnDirtyErrorStateMatcher>;
|
|
9
|
+
}
|
|
10
|
+
/** Provider that defines how form controls behave with regards to displaying error messages. */
|
|
11
|
+
declare class ErrorStateMatcher {
|
|
12
|
+
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorStateMatcher, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorStateMatcher>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { ErrorStateMatcher as E, ShowOnDirtyErrorStateMatcher as S };
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
13
13
|
} @else {
|
|
14
14
|
@include sass-utils.current-selector-or-root() {
|
|
15
|
-
@include token-utils.create-token-values(
|
|
15
|
+
@include token-utils.create-token-values-mixed(
|
|
16
16
|
tokens-mat-expansion.$prefix,
|
|
17
17
|
tokens-mat-expansion.get-unthemable-tokens()
|
|
18
18
|
);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
26
26
|
} @else {
|
|
27
27
|
@include sass-utils.current-selector-or-root() {
|
|
28
|
-
@include token-utils.create-token-values(
|
|
28
|
+
@include token-utils.create-token-values-mixed(
|
|
29
29
|
tokens-mat-expansion.$prefix,
|
|
30
30
|
tokens-mat-expansion.get-color-tokens($theme)
|
|
31
31
|
);
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
$theme: inspection.private-get-typography-back-compat-theme($theme);
|
|
42
42
|
|
|
43
43
|
@include sass-utils.current-selector-or-root() {
|
|
44
|
-
@include token-utils.create-token-values(
|
|
44
|
+
@include token-utils.create-token-values-mixed(
|
|
45
45
|
tokens-mat-expansion.$prefix,
|
|
46
46
|
tokens-mat-expansion.get-typography-tokens($theme)
|
|
47
47
|
);
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
55
55
|
} @else {
|
|
56
56
|
@include sass-utils.current-selector-or-root() {
|
|
57
|
-
@include token-utils.create-token-values(
|
|
57
|
+
@include token-utils.create-token-values-mixed(
|
|
58
58
|
tokens-mat-expansion.$prefix,
|
|
59
59
|
tokens-mat-expansion.get-density-tokens($theme)
|
|
60
60
|
);
|