@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
|
@@ -1,35 +1,25 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
3
|
-
import { ComponentHarnessConstructor } from '@angular/cdk/testing';
|
|
4
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
5
2
|
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
isDisabled(): Promise<boolean>;
|
|
23
|
-
/** Gets the value step increments of the slider. */
|
|
24
|
-
getStep(): Promise<number>;
|
|
25
|
-
/** Gets the maximum value of the slider. */
|
|
26
|
-
getMaxValue(): Promise<number>;
|
|
27
|
-
/** Gets the minimum value of the slider. */
|
|
28
|
-
getMinValue(): Promise<number>;
|
|
3
|
+
/** Possible positions of a slider thumb. */
|
|
4
|
+
declare enum ThumbPosition {
|
|
5
|
+
START = 0,
|
|
6
|
+
END = 1
|
|
7
|
+
}
|
|
8
|
+
/** A set of criteria that can be used to filter a list of `MatSliderHarness` instances. */
|
|
9
|
+
interface SliderHarnessFilters extends BaseHarnessFilters {
|
|
10
|
+
/** Filters out only range/non-range sliders. */
|
|
11
|
+
isRange?: boolean;
|
|
12
|
+
/** Only find instances which match the given disabled state. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** A set of criteria that can be used to filter a list of `MatSliderThumbHarness` instances. */
|
|
16
|
+
interface SliderThumbHarnessFilters extends BaseHarnessFilters {
|
|
17
|
+
/** Filters out slider thumbs with a particular position. */
|
|
18
|
+
position?: ThumbPosition;
|
|
29
19
|
}
|
|
30
20
|
|
|
31
21
|
/** Harness for interacting with a thumb inside of a Material slider in tests. */
|
|
32
|
-
|
|
22
|
+
declare class MatSliderThumbHarness extends ComponentHarness {
|
|
33
23
|
static hostSelector: string;
|
|
34
24
|
/**
|
|
35
25
|
* Gets a `HarnessPredicate` that can be used to search for a slider thumb with specific attributes.
|
|
@@ -71,24 +61,29 @@ export declare class MatSliderThumbHarness extends ComponentHarness {
|
|
|
71
61
|
isFocused(): Promise<boolean>;
|
|
72
62
|
}
|
|
73
63
|
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
64
|
+
/** Harness for interacting with a MDC mat-slider in tests. */
|
|
65
|
+
declare class MatSliderHarness extends ComponentHarness {
|
|
66
|
+
static hostSelector: string;
|
|
67
|
+
/**
|
|
68
|
+
* Gets a `HarnessPredicate` that can be used to search for a slider with specific attributes.
|
|
69
|
+
* @param options Options for filtering which input instances are considered a match.
|
|
70
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
71
|
+
*/
|
|
72
|
+
static with<T extends MatSliderHarness>(this: ComponentHarnessConstructor<T>, options?: SliderHarnessFilters): HarnessPredicate<T>;
|
|
73
|
+
/** Gets the start thumb of the slider (only applicable for range sliders). */
|
|
74
|
+
getStartThumb(): Promise<MatSliderThumbHarness>;
|
|
75
|
+
/** Gets the thumb (for single point sliders), or the end thumb (for range sliders). */
|
|
76
|
+
getEndThumb(): Promise<MatSliderThumbHarness>;
|
|
77
|
+
/** Gets whether the slider is a range slider. */
|
|
78
|
+
isRange(): Promise<boolean>;
|
|
79
|
+
/** Gets whether the slider is disabled. */
|
|
80
|
+
isDisabled(): Promise<boolean>;
|
|
81
|
+
/** Gets the value step increments of the slider. */
|
|
82
|
+
getStep(): Promise<number>;
|
|
83
|
+
/** Gets the maximum value of the slider. */
|
|
84
|
+
getMaxValue(): Promise<number>;
|
|
85
|
+
/** Gets the minimum value of the slider. */
|
|
86
|
+
getMinValue(): Promise<number>;
|
|
92
87
|
}
|
|
93
88
|
|
|
94
|
-
export { }
|
|
89
|
+
export { MatSliderHarness, MatSliderThumbHarness, type SliderHarnessFilters, type SliderThumbHarnessFilters, ThumbPosition };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
} @else {
|
|
15
15
|
// Add default values for tokens not related to color, typography, or density.
|
|
16
16
|
@include sass-utils.current-selector-or-root() {
|
|
17
|
-
@include token-utils.create-token-values(
|
|
17
|
+
@include token-utils.create-token-values-mixed(
|
|
18
18
|
tokens-mdc-snack-bar.$prefix,
|
|
19
19
|
tokens-mdc-snack-bar.get-unthemable-tokens()
|
|
20
20
|
);
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
28
28
|
} @else {
|
|
29
29
|
@include sass-utils.current-selector-or-root() {
|
|
30
|
-
@include token-utils.create-token-values(
|
|
30
|
+
@include token-utils.create-token-values-mixed(
|
|
31
31
|
tokens-mdc-snack-bar.$prefix,
|
|
32
32
|
tokens-mdc-snack-bar.get-color-tokens($theme)
|
|
33
33
|
);
|
|
34
|
-
@include token-utils.create-token-values(
|
|
34
|
+
@include token-utils.create-token-values-mixed(
|
|
35
35
|
tokens-mat-snack-bar.$prefix,
|
|
36
36
|
tokens-mat-snack-bar.get-color-tokens($theme)
|
|
37
37
|
);
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
45
45
|
} @else {
|
|
46
46
|
@include sass-utils.current-selector-or-root() {
|
|
47
|
-
@include token-utils.create-token-values(
|
|
47
|
+
@include token-utils.create-token-values-mixed(
|
|
48
48
|
tokens-mdc-snack-bar.$prefix,
|
|
49
49
|
tokens-mdc-snack-bar.get-typography-tokens($theme)
|
|
50
50
|
);
|
package/snack-bar/index.d.ts
CHANGED
|
@@ -1,162 +1,30 @@
|
|
|
1
|
+
import * as i2 from '@angular/cdk/overlay';
|
|
2
|
+
import { OverlayRef, ComponentType } from '@angular/cdk/overlay';
|
|
3
|
+
import { Subject, Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { InjectionToken, ViewContainerRef, OnDestroy, ElementRef, ComponentRef, EmbeddedViewRef, TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i3 from '@angular/cdk/portal';
|
|
7
|
+
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, DomPortal } from '@angular/cdk/portal';
|
|
1
8
|
import { AriaLivePoliteness } from '@angular/cdk/a11y';
|
|
2
|
-
import { BasePortalOutlet } from '@angular/cdk/portal';
|
|
3
|
-
import { CdkPortalOutlet } from '@angular/cdk/portal';
|
|
4
|
-
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
|
-
import { ComponentRef } from '@angular/core';
|
|
6
|
-
import { ComponentType } from '@angular/cdk/overlay';
|
|
7
9
|
import { Direction } from '@angular/cdk/bidi';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import * as i4 from '@angular/material/core';
|
|
16
|
-
import { InjectionToken } from '@angular/core';
|
|
17
|
-
import { Observable } from 'rxjs';
|
|
18
|
-
import { OnDestroy } from '@angular/core';
|
|
19
|
-
import { OverlayRef } from '@angular/cdk/overlay';
|
|
20
|
-
import { Subject } from 'rxjs';
|
|
21
|
-
import { TemplatePortal } from '@angular/cdk/portal';
|
|
22
|
-
import { TemplateRef } from '@angular/core';
|
|
23
|
-
import { ViewContainerRef } from '@angular/core';
|
|
24
|
-
|
|
25
|
-
declare namespace i5 {
|
|
26
|
-
export {
|
|
27
|
-
TextOnlySnackBar,
|
|
28
|
-
SimpleSnackBar
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare namespace i6 {
|
|
33
|
-
export {
|
|
34
|
-
MatSnackBarContainer
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare namespace i7 {
|
|
39
|
-
export {
|
|
40
|
-
MatSnackBarLabel,
|
|
41
|
-
MatSnackBarActions,
|
|
42
|
-
MatSnackBarAction
|
|
43
|
-
}
|
|
44
|
-
}
|
|
10
|
+
import { n as MatButtonModule } from '../module.d-792a497c.js';
|
|
11
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
12
|
+
import '../index.d-0536b706.js';
|
|
13
|
+
import '../ripple.d-2fb57d04.js';
|
|
14
|
+
import '@angular/cdk/platform';
|
|
15
|
+
import '../palette.d-ec4a617c.js';
|
|
16
|
+
import '../ripple-loader.d-8aac2988.js';
|
|
45
17
|
|
|
46
18
|
/** Injection token that can be used to access the data that was passed in to a snack bar. */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/** @docs-private */
|
|
53
|
-
export declare function MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY(): MatSnackBarConfig;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Service to dispatch Material Design snack bar messages.
|
|
57
|
-
*/
|
|
58
|
-
export declare class MatSnackBar implements OnDestroy {
|
|
59
|
-
private _overlay;
|
|
60
|
-
private _live;
|
|
61
|
-
private _injector;
|
|
62
|
-
private _breakpointObserver;
|
|
63
|
-
private _parentSnackBar;
|
|
64
|
-
private _defaultConfig;
|
|
65
|
-
/**
|
|
66
|
-
* Reference to the current snack bar in the view *at this level* (in the Angular injector tree).
|
|
67
|
-
* If there is a parent snack-bar service, all operations should delegate to that parent
|
|
68
|
-
* via `_openedSnackBarRef`.
|
|
69
|
-
*/
|
|
70
|
-
private _snackBarRefAtThisLevel;
|
|
71
|
-
/** The component that should be rendered as the snack bar's simple component. */
|
|
72
|
-
simpleSnackBarComponent: typeof SimpleSnackBar;
|
|
73
|
-
/** The container component that attaches the provided template or component. */
|
|
74
|
-
snackBarContainerComponent: typeof MatSnackBarContainer;
|
|
75
|
-
/** The CSS class to apply for handset mode. */
|
|
76
|
-
handsetCssClass: string;
|
|
77
|
-
/** Reference to the currently opened snackbar at *any* level. */
|
|
78
|
-
get _openedSnackBarRef(): MatSnackBarRef<any> | null;
|
|
79
|
-
set _openedSnackBarRef(value: MatSnackBarRef<any> | null);
|
|
80
|
-
constructor(...args: unknown[]);
|
|
81
|
-
/**
|
|
82
|
-
* Creates and dispatches a snack bar with a custom component for the content, removing any
|
|
83
|
-
* currently opened snack bars.
|
|
84
|
-
*
|
|
85
|
-
* @param component Component to be instantiated.
|
|
86
|
-
* @param config Extra configuration for the snack bar.
|
|
87
|
-
*/
|
|
88
|
-
openFromComponent<T, D = any>(component: ComponentType<T>, config?: MatSnackBarConfig<D>): MatSnackBarRef<T>;
|
|
89
|
-
/**
|
|
90
|
-
* Creates and dispatches a snack bar with a custom template for the content, removing any
|
|
91
|
-
* currently opened snack bars.
|
|
92
|
-
*
|
|
93
|
-
* @param template Template to be instantiated.
|
|
94
|
-
* @param config Extra configuration for the snack bar.
|
|
95
|
-
*/
|
|
96
|
-
openFromTemplate(template: TemplateRef<any>, config?: MatSnackBarConfig): MatSnackBarRef<EmbeddedViewRef<any>>;
|
|
97
|
-
/**
|
|
98
|
-
* Opens a snackbar with a message and an optional action.
|
|
99
|
-
* @param message The message to show in the snackbar.
|
|
100
|
-
* @param action The label for the snackbar action.
|
|
101
|
-
* @param config Additional configuration options for the snackbar.
|
|
102
|
-
*/
|
|
103
|
-
open(message: string, action?: string, config?: MatSnackBarConfig): MatSnackBarRef<TextOnlySnackBar>;
|
|
104
|
-
/**
|
|
105
|
-
* Dismisses the currently-visible snack bar.
|
|
106
|
-
*/
|
|
107
|
-
dismiss(): void;
|
|
108
|
-
ngOnDestroy(): void;
|
|
109
|
-
/**
|
|
110
|
-
* Attaches the snack bar container component to the overlay.
|
|
111
|
-
*/
|
|
112
|
-
private _attachSnackBarContainer;
|
|
113
|
-
/**
|
|
114
|
-
* Places a new component or a template as the content of the snack bar container.
|
|
115
|
-
*/
|
|
116
|
-
private _attach;
|
|
117
|
-
/** Animates the old snack bar out and the new one in. */
|
|
118
|
-
private _animateSnackBar;
|
|
119
|
-
/**
|
|
120
|
-
* Creates a new overlay and places it in the correct location.
|
|
121
|
-
* @param config The user-specified snack bar config.
|
|
122
|
-
*/
|
|
123
|
-
private _createOverlay;
|
|
124
|
-
/**
|
|
125
|
-
* Creates an injector to be used inside of a snack bar component.
|
|
126
|
-
* @param config Config that was used to create the snack bar.
|
|
127
|
-
* @param snackBarRef Reference to the snack bar.
|
|
128
|
-
*/
|
|
129
|
-
private _createInjector;
|
|
130
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBar, never>;
|
|
131
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MatSnackBar>;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/** Directive that should be applied to each of the snack bar's action buttons. */
|
|
135
|
-
export declare class MatSnackBarAction {
|
|
136
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarAction, never>;
|
|
137
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarAction, "[matSnackBarAction]", never, {}, {}, never, never, true, never>;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/** Directive that should be applied to the element containing the snack bar's action buttons. */
|
|
141
|
-
export declare class MatSnackBarActions {
|
|
142
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarActions, never>;
|
|
143
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarActions, "[matSnackBarActions]", never, {}, {}, never, never, true, never>;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Animations used by the Material snack bar.
|
|
148
|
-
* @docs-private
|
|
149
|
-
* @deprecated No longer used, will be removed.
|
|
150
|
-
* @breaking-change 21.0.0
|
|
151
|
-
*/
|
|
152
|
-
export declare const matSnackBarAnimations: {
|
|
153
|
-
readonly snackBarState: any;
|
|
154
|
-
};
|
|
155
|
-
|
|
19
|
+
declare const MAT_SNACK_BAR_DATA: InjectionToken<any>;
|
|
20
|
+
/** Possible values for horizontalPosition on MatSnackBarConfig. */
|
|
21
|
+
type MatSnackBarHorizontalPosition = 'start' | 'center' | 'end' | 'left' | 'right';
|
|
22
|
+
/** Possible values for verticalPosition on MatSnackBarConfig. */
|
|
23
|
+
type MatSnackBarVerticalPosition = 'top' | 'bottom';
|
|
156
24
|
/**
|
|
157
25
|
* Configuration used when opening a snack-bar.
|
|
158
26
|
*/
|
|
159
|
-
|
|
27
|
+
declare class MatSnackBarConfig<D = any> {
|
|
160
28
|
/** The politeness level for the MatAriaLiveAnnouncer announcement. */
|
|
161
29
|
politeness?: AriaLivePoliteness;
|
|
162
30
|
/**
|
|
@@ -187,7 +55,7 @@ export declare class MatSnackBarConfig<D = any> {
|
|
|
187
55
|
* Internal component that wraps user-provided snack bar content.
|
|
188
56
|
* @docs-private
|
|
189
57
|
*/
|
|
190
|
-
|
|
58
|
+
declare class MatSnackBarContainer extends BasePortalOutlet implements OnDestroy {
|
|
191
59
|
private _ngZone;
|
|
192
60
|
private _elementRef;
|
|
193
61
|
private _changeDetectorRef;
|
|
@@ -276,30 +144,14 @@ export declare class MatSnackBarContainer extends BasePortalOutlet implements On
|
|
|
276
144
|
}
|
|
277
145
|
|
|
278
146
|
/** Event that is emitted when a snack bar is dismissed. */
|
|
279
|
-
|
|
147
|
+
interface MatSnackBarDismiss {
|
|
280
148
|
/** Whether the snack bar was dismissed using the action button. */
|
|
281
149
|
dismissedByAction: boolean;
|
|
282
150
|
}
|
|
283
|
-
|
|
284
|
-
/** Possible values for horizontalPosition on MatSnackBarConfig. */
|
|
285
|
-
export declare type MatSnackBarHorizontalPosition = 'start' | 'center' | 'end' | 'left' | 'right';
|
|
286
|
-
|
|
287
|
-
/** Directive that should be applied to the text element to be rendered in the snack bar. */
|
|
288
|
-
export declare class MatSnackBarLabel {
|
|
289
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarLabel, never>;
|
|
290
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarLabel, "[matSnackBarLabel]", never, {}, {}, never, never, true, never>;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export declare class MatSnackBarModule {
|
|
294
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarModule, never>;
|
|
295
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, never, [typeof i1.OverlayModule, typeof i2.PortalModule, typeof i3.MatButtonModule, typeof i4.MatCommonModule, typeof i5.SimpleSnackBar, typeof i6.MatSnackBarContainer, typeof i7.MatSnackBarLabel, typeof i7.MatSnackBarActions, typeof i7.MatSnackBarAction], [typeof i4.MatCommonModule, typeof i6.MatSnackBarContainer, typeof i7.MatSnackBarLabel, typeof i7.MatSnackBarActions, typeof i7.MatSnackBarAction]>;
|
|
296
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatSnackBarModule>;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
151
|
/**
|
|
300
152
|
* Reference to a snack bar dispatched from the snack bar service.
|
|
301
153
|
*/
|
|
302
|
-
|
|
154
|
+
declare class MatSnackBarRef<T> {
|
|
303
155
|
private _overlayRef;
|
|
304
156
|
/** The instance of the component making up the content of the snack bar. */
|
|
305
157
|
instance: T;
|
|
@@ -346,10 +198,19 @@ export declare class MatSnackBarRef<T> {
|
|
|
346
198
|
onAction(): Observable<void>;
|
|
347
199
|
}
|
|
348
200
|
|
|
349
|
-
/**
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
201
|
+
/**
|
|
202
|
+
* Interface for a simple snack bar component that has a message and a single action.
|
|
203
|
+
*/
|
|
204
|
+
interface TextOnlySnackBar {
|
|
205
|
+
data: {
|
|
206
|
+
message: string;
|
|
207
|
+
action: string;
|
|
208
|
+
};
|
|
209
|
+
snackBarRef: MatSnackBarRef<TextOnlySnackBar>;
|
|
210
|
+
action: () => void;
|
|
211
|
+
hasAction: boolean;
|
|
212
|
+
}
|
|
213
|
+
declare class SimpleSnackBar implements TextOnlySnackBar {
|
|
353
214
|
snackBarRef: MatSnackBarRef<SimpleSnackBar>;
|
|
354
215
|
data: any;
|
|
355
216
|
constructor(...args: unknown[]);
|
|
@@ -361,17 +222,123 @@ export declare class SimpleSnackBar implements TextOnlySnackBar {
|
|
|
361
222
|
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSnackBar, "simple-snack-bar", ["matSnackBar"], {}, {}, never, never, true, never>;
|
|
362
223
|
}
|
|
363
224
|
|
|
225
|
+
/** Directive that should be applied to the text element to be rendered in the snack bar. */
|
|
226
|
+
declare class MatSnackBarLabel {
|
|
227
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarLabel, never>;
|
|
228
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarLabel, "[matSnackBarLabel]", never, {}, {}, never, never, true, never>;
|
|
229
|
+
}
|
|
230
|
+
/** Directive that should be applied to the element containing the snack bar's action buttons. */
|
|
231
|
+
declare class MatSnackBarActions {
|
|
232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarActions, never>;
|
|
233
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarActions, "[matSnackBarActions]", never, {}, {}, never, never, true, never>;
|
|
234
|
+
}
|
|
235
|
+
/** Directive that should be applied to each of the snack bar's action buttons. */
|
|
236
|
+
declare class MatSnackBarAction {
|
|
237
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarAction, never>;
|
|
238
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarAction, "[matSnackBarAction]", never, {}, {}, never, never, true, never>;
|
|
239
|
+
}
|
|
240
|
+
|
|
364
241
|
/**
|
|
365
|
-
*
|
|
242
|
+
* @docs-private
|
|
243
|
+
* @deprecated No longer used, will be removed.
|
|
244
|
+
* @breaking-change 21.0.0
|
|
366
245
|
*/
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
246
|
+
declare function MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY(): MatSnackBarConfig;
|
|
247
|
+
/** Injection token that can be used to specify default snack bar. */
|
|
248
|
+
declare const MAT_SNACK_BAR_DEFAULT_OPTIONS: InjectionToken<MatSnackBarConfig<any>>;
|
|
249
|
+
/**
|
|
250
|
+
* Service to dispatch Material Design snack bar messages.
|
|
251
|
+
*/
|
|
252
|
+
declare class MatSnackBar implements OnDestroy {
|
|
253
|
+
private _overlay;
|
|
254
|
+
private _live;
|
|
255
|
+
private _injector;
|
|
256
|
+
private _breakpointObserver;
|
|
257
|
+
private _parentSnackBar;
|
|
258
|
+
private _defaultConfig;
|
|
259
|
+
/**
|
|
260
|
+
* Reference to the current snack bar in the view *at this level* (in the Angular injector tree).
|
|
261
|
+
* If there is a parent snack-bar service, all operations should delegate to that parent
|
|
262
|
+
* via `_openedSnackBarRef`.
|
|
263
|
+
*/
|
|
264
|
+
private _snackBarRefAtThisLevel;
|
|
265
|
+
/** The component that should be rendered as the snack bar's simple component. */
|
|
266
|
+
simpleSnackBarComponent: typeof SimpleSnackBar;
|
|
267
|
+
/** The container component that attaches the provided template or component. */
|
|
268
|
+
snackBarContainerComponent: typeof MatSnackBarContainer;
|
|
269
|
+
/** The CSS class to apply for handset mode. */
|
|
270
|
+
handsetCssClass: string;
|
|
271
|
+
/** Reference to the currently opened snackbar at *any* level. */
|
|
272
|
+
get _openedSnackBarRef(): MatSnackBarRef<any> | null;
|
|
273
|
+
set _openedSnackBarRef(value: MatSnackBarRef<any> | null);
|
|
274
|
+
constructor(...args: unknown[]);
|
|
275
|
+
/**
|
|
276
|
+
* Creates and dispatches a snack bar with a custom component for the content, removing any
|
|
277
|
+
* currently opened snack bars.
|
|
278
|
+
*
|
|
279
|
+
* @param component Component to be instantiated.
|
|
280
|
+
* @param config Extra configuration for the snack bar.
|
|
281
|
+
*/
|
|
282
|
+
openFromComponent<T, D = any>(component: ComponentType<T>, config?: MatSnackBarConfig<D>): MatSnackBarRef<T>;
|
|
283
|
+
/**
|
|
284
|
+
* Creates and dispatches a snack bar with a custom template for the content, removing any
|
|
285
|
+
* currently opened snack bars.
|
|
286
|
+
*
|
|
287
|
+
* @param template Template to be instantiated.
|
|
288
|
+
* @param config Extra configuration for the snack bar.
|
|
289
|
+
*/
|
|
290
|
+
openFromTemplate(template: TemplateRef<any>, config?: MatSnackBarConfig): MatSnackBarRef<EmbeddedViewRef<any>>;
|
|
291
|
+
/**
|
|
292
|
+
* Opens a snackbar with a message and an optional action.
|
|
293
|
+
* @param message The message to show in the snackbar.
|
|
294
|
+
* @param action The label for the snackbar action.
|
|
295
|
+
* @param config Additional configuration options for the snackbar.
|
|
296
|
+
*/
|
|
297
|
+
open(message: string, action?: string, config?: MatSnackBarConfig): MatSnackBarRef<TextOnlySnackBar>;
|
|
298
|
+
/**
|
|
299
|
+
* Dismisses the currently-visible snack bar.
|
|
300
|
+
*/
|
|
301
|
+
dismiss(): void;
|
|
302
|
+
ngOnDestroy(): void;
|
|
303
|
+
/**
|
|
304
|
+
* Attaches the snack bar container component to the overlay.
|
|
305
|
+
*/
|
|
306
|
+
private _attachSnackBarContainer;
|
|
307
|
+
/**
|
|
308
|
+
* Places a new component or a template as the content of the snack bar container.
|
|
309
|
+
*/
|
|
310
|
+
private _attach;
|
|
311
|
+
/** Animates the old snack bar out and the new one in. */
|
|
312
|
+
private _animateSnackBar;
|
|
313
|
+
/**
|
|
314
|
+
* Creates a new overlay and places it in the correct location.
|
|
315
|
+
* @param config The user-specified snack bar config.
|
|
316
|
+
*/
|
|
317
|
+
private _createOverlay;
|
|
318
|
+
/**
|
|
319
|
+
* Creates an injector to be used inside of a snack bar component.
|
|
320
|
+
* @param config Config that was used to create the snack bar.
|
|
321
|
+
* @param snackBarRef Reference to the snack bar.
|
|
322
|
+
*/
|
|
323
|
+
private _createInjector;
|
|
324
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBar, never>;
|
|
325
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatSnackBar>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare class MatSnackBarModule {
|
|
329
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarModule, never>;
|
|
330
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, never, [typeof i2.OverlayModule, typeof i3.PortalModule, typeof MatButtonModule, typeof MatCommonModule, typeof SimpleSnackBar, typeof MatSnackBarContainer, typeof MatSnackBarLabel, typeof MatSnackBarActions, typeof MatSnackBarAction], [typeof MatCommonModule, typeof MatSnackBarContainer, typeof MatSnackBarLabel, typeof MatSnackBarActions, typeof MatSnackBarAction]>;
|
|
331
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatSnackBarModule>;
|
|
375
332
|
}
|
|
376
333
|
|
|
377
|
-
|
|
334
|
+
/**
|
|
335
|
+
* Animations used by the Material snack bar.
|
|
336
|
+
* @docs-private
|
|
337
|
+
* @deprecated No longer used, will be removed.
|
|
338
|
+
* @breaking-change 21.0.0
|
|
339
|
+
*/
|
|
340
|
+
declare const matSnackBarAnimations: {
|
|
341
|
+
readonly snackBarState: any;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
export { MAT_SNACK_BAR_DATA, MAT_SNACK_BAR_DEFAULT_OPTIONS, MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY, MatSnackBar, MatSnackBarAction, MatSnackBarActions, MatSnackBarConfig, MatSnackBarContainer, type MatSnackBarDismiss, type MatSnackBarHorizontalPosition, MatSnackBarLabel, MatSnackBarModule, MatSnackBarRef, type MatSnackBarVerticalPosition, SimpleSnackBar, type TextOnlySnackBar, matSnackBarAnimations };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
1
2
|
import { AriaLivePoliteness } from '@angular/cdk/a11y';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
|
|
4
|
+
/** A set of criteria that can be used to filter a list of `MatSnackBarHarness` instances. */
|
|
5
|
+
interface SnackBarHarnessFilters extends BaseHarnessFilters {
|
|
6
|
+
}
|
|
5
7
|
|
|
6
8
|
/** Harness for interacting with a mat-snack-bar in tests. */
|
|
7
|
-
|
|
9
|
+
declare class MatSnackBarHarness extends ContentContainerComponentHarness<string> {
|
|
8
10
|
/** The selector for the host element of a `MatSnackBar` instance. */
|
|
9
11
|
static hostSelector: string;
|
|
10
12
|
private _messageSelector;
|
|
@@ -58,8 +60,4 @@ export declare class MatSnackBarHarness extends ContentContainerComponentHarness
|
|
|
58
60
|
private _getActionButton;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
|
|
62
|
-
export declare interface SnackBarHarnessFilters extends BaseHarnessFilters {
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export { }
|
|
63
|
+
export { MatSnackBarHarness, type SnackBarHarnessFilters };
|
package/sort/_sort-theme.scss
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
20
20
|
} @else {
|
|
21
21
|
@include sass-utils.current-selector-or-root() {
|
|
22
|
-
@include token-utils.create-token-values(
|
|
22
|
+
@include token-utils.create-token-values-mixed(
|
|
23
23
|
tokens-mat-sort.$prefix,
|
|
24
24
|
tokens-mat-sort.get-color-tokens($theme)
|
|
25
25
|
);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
33
33
|
} @else {
|
|
34
34
|
@include sass-utils.current-selector-or-root() {
|
|
35
|
-
@include token-utils.create-token-values(
|
|
35
|
+
@include token-utils.create-token-values-mixed(
|
|
36
36
|
tokens-mat-sort.$prefix,
|
|
37
37
|
tokens-mat-sort.get-typography-tokens($theme)
|
|
38
38
|
);
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
46
46
|
} @else {
|
|
47
47
|
@include sass-utils.current-selector-or-root() {
|
|
48
|
-
@include token-utils.create-token-values(
|
|
48
|
+
@include token-utils.create-token-values-mixed(
|
|
49
49
|
tokens-mat-sort.$prefix,
|
|
50
50
|
tokens-mat-sort.get-density-tokens($theme)
|
|
51
51
|
);
|