@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
package/radio/index.d.ts
CHANGED
|
@@ -1,170 +1,16 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { AfterViewInit } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import { DoCheck } from '@angular/core';
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
1
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
8
2
|
import * as i0 from '@angular/core';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
MAT_RADIO_DEFAULT_OPTIONS_FACTORY,
|
|
19
|
-
MatRadioChange,
|
|
20
|
-
MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,
|
|
21
|
-
MAT_RADIO_GROUP,
|
|
22
|
-
MatRadioDefaultOptions,
|
|
23
|
-
MAT_RADIO_DEFAULT_OPTIONS,
|
|
24
|
-
MatRadioGroup,
|
|
25
|
-
MatRadioButton
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export declare const MAT_RADIO_DEFAULT_OPTIONS: InjectionToken<MatRadioDefaultOptions>;
|
|
30
|
-
|
|
31
|
-
export declare function MAT_RADIO_DEFAULT_OPTIONS_FACTORY(): MatRadioDefaultOptions;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Injection token that can be used to inject instances of `MatRadioGroup`. It serves as
|
|
35
|
-
* alternative token to the actual `MatRadioGroup` class which could cause unnecessary
|
|
36
|
-
* retention of the class and its component metadata.
|
|
37
|
-
*/
|
|
38
|
-
export declare const MAT_RADIO_GROUP: InjectionToken<MatRadioGroup>;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This
|
|
42
|
-
* allows it to support [(ngModel)] and ngControl.
|
|
43
|
-
* @docs-private
|
|
44
|
-
*/
|
|
45
|
-
export declare const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any;
|
|
46
|
-
|
|
47
|
-
export declare class MatRadioButton implements OnInit, AfterViewInit, DoCheck, OnDestroy {
|
|
48
|
-
protected _elementRef: ElementRef<any>;
|
|
49
|
-
private _changeDetector;
|
|
50
|
-
private _focusMonitor;
|
|
51
|
-
private _radioDispatcher;
|
|
52
|
-
private _defaultOptions;
|
|
53
|
-
private _ngZone;
|
|
54
|
-
private _renderer;
|
|
55
|
-
private _uniqueId;
|
|
56
|
-
private _cleanupClick;
|
|
57
|
-
/** The unique ID for the radio button. */
|
|
58
|
-
id: string;
|
|
59
|
-
/** Analog to HTML 'name' attribute used to group radios for unique selection. */
|
|
60
|
-
name: string;
|
|
61
|
-
/** Used to set the 'aria-label' attribute on the underlying input element. */
|
|
62
|
-
ariaLabel: string;
|
|
63
|
-
/** The 'aria-labelledby' attribute takes precedence as the element's text alternative. */
|
|
64
|
-
ariaLabelledby: string;
|
|
65
|
-
/** The 'aria-describedby' attribute is read after the element's label and field type. */
|
|
66
|
-
ariaDescribedby: string;
|
|
67
|
-
/** Whether ripples are disabled inside the radio button */
|
|
68
|
-
disableRipple: boolean;
|
|
69
|
-
/** Tabindex of the radio button. */
|
|
70
|
-
tabIndex: number;
|
|
71
|
-
/** Whether this radio button is checked. */
|
|
72
|
-
get checked(): boolean;
|
|
73
|
-
set checked(value: boolean);
|
|
74
|
-
/** The value of this radio button. */
|
|
75
|
-
get value(): any;
|
|
76
|
-
set value(value: any);
|
|
77
|
-
/** Whether the label should appear after or before the radio button. Defaults to 'after' */
|
|
78
|
-
get labelPosition(): 'before' | 'after';
|
|
79
|
-
set labelPosition(value: "before" | "after");
|
|
80
|
-
private _labelPosition;
|
|
81
|
-
/** Whether the radio button is disabled. */
|
|
82
|
-
get disabled(): boolean;
|
|
83
|
-
set disabled(value: boolean);
|
|
84
|
-
/** Whether the radio button is required. */
|
|
85
|
-
get required(): boolean;
|
|
86
|
-
set required(value: boolean);
|
|
87
|
-
/**
|
|
88
|
-
* Theme color of the radio button. This API is supported in M2 themes only, it
|
|
89
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/radio/styling.
|
|
90
|
-
*
|
|
91
|
-
* For information on applying color variants in M3, see
|
|
92
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
93
|
-
*/
|
|
94
|
-
get color(): ThemePalette;
|
|
95
|
-
set color(newValue: ThemePalette);
|
|
96
|
-
private _color;
|
|
97
|
-
/** Whether the radio button should remain interactive when it is disabled. */
|
|
98
|
-
get disabledInteractive(): boolean;
|
|
99
|
-
set disabledInteractive(value: boolean);
|
|
100
|
-
private _disabledInteractive;
|
|
101
|
-
/**
|
|
102
|
-
* Event emitted when the checked state of this radio button changes.
|
|
103
|
-
* Change events are only emitted when the value changes due to user interaction with
|
|
104
|
-
* the radio button (the same behavior as `<input type-"radio">`).
|
|
105
|
-
*/
|
|
106
|
-
readonly change: EventEmitter<MatRadioChange>;
|
|
107
|
-
/** The parent radio group. May or may not be present. */
|
|
108
|
-
radioGroup: MatRadioGroup;
|
|
109
|
-
/** ID of the native input element inside `<mat-radio-button>` */
|
|
110
|
-
get inputId(): string;
|
|
111
|
-
/** Whether this radio is checked. */
|
|
112
|
-
private _checked;
|
|
113
|
-
/** Whether this radio is disabled. */
|
|
114
|
-
private _disabled;
|
|
115
|
-
/** Whether this radio is required. */
|
|
116
|
-
private _required;
|
|
117
|
-
/** Value assigned to this radio. */
|
|
118
|
-
private _value;
|
|
119
|
-
/** Unregister function for _radioDispatcher */
|
|
120
|
-
private _removeUniqueSelectionListener;
|
|
121
|
-
/** Previous value of the input's tabindex. */
|
|
122
|
-
private _previousTabIndex;
|
|
123
|
-
/** The native `<input type=radio>` element */
|
|
124
|
-
_inputElement: ElementRef<HTMLInputElement>;
|
|
125
|
-
/** Trigger elements for the ripple events. */
|
|
126
|
-
_rippleTrigger: ElementRef<HTMLElement>;
|
|
127
|
-
/** Whether animations are disabled. */
|
|
128
|
-
_noopAnimations: boolean;
|
|
129
|
-
private _injector;
|
|
130
|
-
constructor(...args: unknown[]);
|
|
131
|
-
/** Focuses the radio button. */
|
|
132
|
-
focus(options?: FocusOptions, origin?: FocusOrigin): void;
|
|
133
|
-
/**
|
|
134
|
-
* Marks the radio button as needing checking for change detection.
|
|
135
|
-
* This method is exposed because the parent radio group will directly
|
|
136
|
-
* update bound properties of the radio button.
|
|
137
|
-
*/
|
|
138
|
-
_markForCheck(): void;
|
|
139
|
-
ngOnInit(): void;
|
|
140
|
-
ngDoCheck(): void;
|
|
141
|
-
ngAfterViewInit(): void;
|
|
142
|
-
ngOnDestroy(): void;
|
|
143
|
-
/** Dispatch change event with current value. */
|
|
144
|
-
private _emitChangeEvent;
|
|
145
|
-
_isRippleDisabled(): boolean;
|
|
146
|
-
/** Triggered when the radio button receives an interaction from the user. */
|
|
147
|
-
_onInputInteraction(event: Event): void;
|
|
148
|
-
/** Triggered when the user clicks on the touch target. */
|
|
149
|
-
_onTouchTargetClick(event: Event): void;
|
|
150
|
-
/** Sets the disabled state and marks for check if a change occurred. */
|
|
151
|
-
protected _setDisabled(value: boolean): void;
|
|
152
|
-
/** Called when the input is clicked. */
|
|
153
|
-
private _onInputClick;
|
|
154
|
-
/** Gets the tabindex for the underlying input element. */
|
|
155
|
-
private _updateTabIndex;
|
|
156
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioButton, never>;
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatRadioButton, "mat-radio-button", ["matRadioButton"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; }, { "change": "change"; }, never, ["*"], true, never>;
|
|
158
|
-
static ngAcceptInputType_disableRipple: unknown;
|
|
159
|
-
static ngAcceptInputType_tabIndex: unknown;
|
|
160
|
-
static ngAcceptInputType_checked: unknown;
|
|
161
|
-
static ngAcceptInputType_disabled: unknown;
|
|
162
|
-
static ngAcceptInputType_required: unknown;
|
|
163
|
-
static ngAcceptInputType_disabledInteractive: unknown;
|
|
164
|
-
}
|
|
3
|
+
import { InjectionToken, AfterContentInit, OnDestroy, EventEmitter, QueryList, OnInit, AfterViewInit, DoCheck, ElementRef } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { T as ThemePalette } from '../palette.d-ec4a617c.js';
|
|
6
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
7
|
+
import { M as MatRippleModule } from '../index.d-0536b706.js';
|
|
8
|
+
import '@angular/cdk/bidi';
|
|
9
|
+
import '../ripple.d-2fb57d04.js';
|
|
10
|
+
import '@angular/cdk/platform';
|
|
165
11
|
|
|
166
12
|
/** Change event object emitted by radio button and radio group. */
|
|
167
|
-
|
|
13
|
+
declare class MatRadioChange<T = any> {
|
|
168
14
|
/** The radio button that emits the change event. */
|
|
169
15
|
source: MatRadioButton;
|
|
170
16
|
/** The value of the radio button. */
|
|
@@ -175,8 +21,19 @@ export declare class MatRadioChange<T = any> {
|
|
|
175
21
|
/** The value of the radio button. */
|
|
176
22
|
value: T);
|
|
177
23
|
}
|
|
178
|
-
|
|
179
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This
|
|
26
|
+
* allows it to support [(ngModel)] and ngControl.
|
|
27
|
+
* @docs-private
|
|
28
|
+
*/
|
|
29
|
+
declare const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any;
|
|
30
|
+
/**
|
|
31
|
+
* Injection token that can be used to inject instances of `MatRadioGroup`. It serves as
|
|
32
|
+
* alternative token to the actual `MatRadioGroup` class which could cause unnecessary
|
|
33
|
+
* retention of the class and its component metadata.
|
|
34
|
+
*/
|
|
35
|
+
declare const MAT_RADIO_GROUP: InjectionToken<MatRadioGroup>;
|
|
36
|
+
interface MatRadioDefaultOptions {
|
|
180
37
|
/**
|
|
181
38
|
* Theme color of the radio button. This API is supported in M2 themes only, it
|
|
182
39
|
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/radio/styling.
|
|
@@ -188,11 +45,17 @@ export declare interface MatRadioDefaultOptions {
|
|
|
188
45
|
/** Whether disabled radio buttons should be interactive. */
|
|
189
46
|
disabledInteractive?: boolean;
|
|
190
47
|
}
|
|
191
|
-
|
|
48
|
+
declare const MAT_RADIO_DEFAULT_OPTIONS: InjectionToken<MatRadioDefaultOptions>;
|
|
49
|
+
/**
|
|
50
|
+
* @docs-private
|
|
51
|
+
* @deprecated No longer used, will be removed.
|
|
52
|
+
* @breaking-change 21.0.0
|
|
53
|
+
*/
|
|
54
|
+
declare function MAT_RADIO_DEFAULT_OPTIONS_FACTORY(): MatRadioDefaultOptions;
|
|
192
55
|
/**
|
|
193
56
|
* A group of radio buttons. May contain one or more `<mat-radio-button>` elements.
|
|
194
57
|
*/
|
|
195
|
-
|
|
58
|
+
declare class MatRadioGroup implements AfterContentInit, OnDestroy, ControlValueAccessor {
|
|
196
59
|
private _changeDetector;
|
|
197
60
|
/** Selected value for the radio group. */
|
|
198
61
|
private _value;
|
|
@@ -310,11 +173,129 @@ export declare class MatRadioGroup implements AfterContentInit, OnDestroy, Contr
|
|
|
310
173
|
static ngAcceptInputType_required: unknown;
|
|
311
174
|
static ngAcceptInputType_disabledInteractive: unknown;
|
|
312
175
|
}
|
|
176
|
+
declare class MatRadioButton implements OnInit, AfterViewInit, DoCheck, OnDestroy {
|
|
177
|
+
protected _elementRef: ElementRef<any>;
|
|
178
|
+
private _changeDetector;
|
|
179
|
+
private _focusMonitor;
|
|
180
|
+
private _radioDispatcher;
|
|
181
|
+
private _defaultOptions;
|
|
182
|
+
private _ngZone;
|
|
183
|
+
private _renderer;
|
|
184
|
+
private _uniqueId;
|
|
185
|
+
private _cleanupClick;
|
|
186
|
+
/** The unique ID for the radio button. */
|
|
187
|
+
id: string;
|
|
188
|
+
/** Analog to HTML 'name' attribute used to group radios for unique selection. */
|
|
189
|
+
name: string;
|
|
190
|
+
/** Used to set the 'aria-label' attribute on the underlying input element. */
|
|
191
|
+
ariaLabel: string;
|
|
192
|
+
/** The 'aria-labelledby' attribute takes precedence as the element's text alternative. */
|
|
193
|
+
ariaLabelledby: string;
|
|
194
|
+
/** The 'aria-describedby' attribute is read after the element's label and field type. */
|
|
195
|
+
ariaDescribedby: string;
|
|
196
|
+
/** Whether ripples are disabled inside the radio button */
|
|
197
|
+
disableRipple: boolean;
|
|
198
|
+
/** Tabindex of the radio button. */
|
|
199
|
+
tabIndex: number;
|
|
200
|
+
/** Whether this radio button is checked. */
|
|
201
|
+
get checked(): boolean;
|
|
202
|
+
set checked(value: boolean);
|
|
203
|
+
/** The value of this radio button. */
|
|
204
|
+
get value(): any;
|
|
205
|
+
set value(value: any);
|
|
206
|
+
/** Whether the label should appear after or before the radio button. Defaults to 'after' */
|
|
207
|
+
get labelPosition(): 'before' | 'after';
|
|
208
|
+
set labelPosition(value: "before" | "after");
|
|
209
|
+
private _labelPosition;
|
|
210
|
+
/** Whether the radio button is disabled. */
|
|
211
|
+
get disabled(): boolean;
|
|
212
|
+
set disabled(value: boolean);
|
|
213
|
+
/** Whether the radio button is required. */
|
|
214
|
+
get required(): boolean;
|
|
215
|
+
set required(value: boolean);
|
|
216
|
+
/**
|
|
217
|
+
* Theme color of the radio button. This API is supported in M2 themes only, it
|
|
218
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/radio/styling.
|
|
219
|
+
*
|
|
220
|
+
* For information on applying color variants in M3, see
|
|
221
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
222
|
+
*/
|
|
223
|
+
get color(): ThemePalette;
|
|
224
|
+
set color(newValue: ThemePalette);
|
|
225
|
+
private _color;
|
|
226
|
+
/** Whether the radio button should remain interactive when it is disabled. */
|
|
227
|
+
get disabledInteractive(): boolean;
|
|
228
|
+
set disabledInteractive(value: boolean);
|
|
229
|
+
private _disabledInteractive;
|
|
230
|
+
/**
|
|
231
|
+
* Event emitted when the checked state of this radio button changes.
|
|
232
|
+
* Change events are only emitted when the value changes due to user interaction with
|
|
233
|
+
* the radio button (the same behavior as `<input type-"radio">`).
|
|
234
|
+
*/
|
|
235
|
+
readonly change: EventEmitter<MatRadioChange>;
|
|
236
|
+
/** The parent radio group. May or may not be present. */
|
|
237
|
+
radioGroup: MatRadioGroup;
|
|
238
|
+
/** ID of the native input element inside `<mat-radio-button>` */
|
|
239
|
+
get inputId(): string;
|
|
240
|
+
/** Whether this radio is checked. */
|
|
241
|
+
private _checked;
|
|
242
|
+
/** Whether this radio is disabled. */
|
|
243
|
+
private _disabled;
|
|
244
|
+
/** Whether this radio is required. */
|
|
245
|
+
private _required;
|
|
246
|
+
/** Value assigned to this radio. */
|
|
247
|
+
private _value;
|
|
248
|
+
/** Unregister function for _radioDispatcher */
|
|
249
|
+
private _removeUniqueSelectionListener;
|
|
250
|
+
/** Previous value of the input's tabindex. */
|
|
251
|
+
private _previousTabIndex;
|
|
252
|
+
/** The native `<input type=radio>` element */
|
|
253
|
+
_inputElement: ElementRef<HTMLInputElement>;
|
|
254
|
+
/** Trigger elements for the ripple events. */
|
|
255
|
+
_rippleTrigger: ElementRef<HTMLElement>;
|
|
256
|
+
/** Whether animations are disabled. */
|
|
257
|
+
_noopAnimations: boolean;
|
|
258
|
+
private _injector;
|
|
259
|
+
constructor(...args: unknown[]);
|
|
260
|
+
/** Focuses the radio button. */
|
|
261
|
+
focus(options?: FocusOptions, origin?: FocusOrigin): void;
|
|
262
|
+
/**
|
|
263
|
+
* Marks the radio button as needing checking for change detection.
|
|
264
|
+
* This method is exposed because the parent radio group will directly
|
|
265
|
+
* update bound properties of the radio button.
|
|
266
|
+
*/
|
|
267
|
+
_markForCheck(): void;
|
|
268
|
+
ngOnInit(): void;
|
|
269
|
+
ngDoCheck(): void;
|
|
270
|
+
ngAfterViewInit(): void;
|
|
271
|
+
ngOnDestroy(): void;
|
|
272
|
+
/** Dispatch change event with current value. */
|
|
273
|
+
private _emitChangeEvent;
|
|
274
|
+
_isRippleDisabled(): boolean;
|
|
275
|
+
/** Triggered when the radio button receives an interaction from the user. */
|
|
276
|
+
_onInputInteraction(event: Event): void;
|
|
277
|
+
/** Triggered when the user clicks on the touch target. */
|
|
278
|
+
_onTouchTargetClick(event: Event): void;
|
|
279
|
+
/** Sets the disabled state and marks for check if a change occurred. */
|
|
280
|
+
protected _setDisabled(value: boolean): void;
|
|
281
|
+
/** Called when the input is clicked. */
|
|
282
|
+
private _onInputClick;
|
|
283
|
+
/** Gets the tabindex for the underlying input element. */
|
|
284
|
+
private _updateTabIndex;
|
|
285
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioButton, never>;
|
|
286
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatRadioButton, "mat-radio-button", ["matRadioButton"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; }, { "change": "change"; }, never, ["*"], true, never>;
|
|
287
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
288
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
289
|
+
static ngAcceptInputType_checked: unknown;
|
|
290
|
+
static ngAcceptInputType_disabled: unknown;
|
|
291
|
+
static ngAcceptInputType_required: unknown;
|
|
292
|
+
static ngAcceptInputType_disabledInteractive: unknown;
|
|
293
|
+
}
|
|
313
294
|
|
|
314
|
-
|
|
295
|
+
declare class MatRadioModule {
|
|
315
296
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioModule, never>;
|
|
316
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatRadioModule, never, [typeof
|
|
297
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatRadioModule, never, [typeof MatCommonModule, typeof MatRippleModule, typeof MatRadioGroup, typeof MatRadioButton], [typeof MatCommonModule, typeof MatRadioGroup, typeof MatRadioButton]>;
|
|
317
298
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatRadioModule>;
|
|
318
299
|
}
|
|
319
300
|
|
|
320
|
-
export { }
|
|
301
|
+
export { MAT_RADIO_DEFAULT_OPTIONS, MAT_RADIO_DEFAULT_OPTIONS_FACTORY, MAT_RADIO_GROUP, MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR, MatRadioButton, MatRadioChange, type MatRadioDefaultOptions, MatRadioGroup, MatRadioModule };
|
package/radio/testing/index.d.ts
CHANGED
|
@@ -1,58 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
3
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
4
|
-
import { ComponentHarnessConstructor } from '@angular/cdk/testing';
|
|
5
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
6
|
-
import { TestElement } from '@angular/cdk/testing';
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
7
3
|
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
private _input;
|
|
22
|
-
/** Whether the radio-button is checked. */
|
|
23
|
-
isChecked(): Promise<boolean>;
|
|
24
|
-
/** Whether the radio-button is disabled. */
|
|
25
|
-
isDisabled(): Promise<boolean>;
|
|
26
|
-
/** Whether the radio-button is required. */
|
|
27
|
-
isRequired(): Promise<boolean>;
|
|
28
|
-
/** Gets the radio-button's name. */
|
|
29
|
-
getName(): Promise<string | null>;
|
|
30
|
-
/** Gets the radio-button's id. */
|
|
31
|
-
getId(): Promise<string | null>;
|
|
32
|
-
/**
|
|
33
|
-
* Gets the value of the radio-button. The radio-button value will be converted to a string.
|
|
34
|
-
*
|
|
35
|
-
* Note: This means that for radio-button's with an object as a value `[object Object]` is
|
|
36
|
-
* intentionally returned.
|
|
37
|
-
*/
|
|
38
|
-
getValue(): Promise<string | null>;
|
|
39
|
-
/** Gets the radio-button's label text. */
|
|
40
|
-
getLabelText(): Promise<string>;
|
|
41
|
-
/** Focuses the radio-button. */
|
|
42
|
-
focus(): Promise<void>;
|
|
43
|
-
/** Blurs the radio-button. */
|
|
44
|
-
blur(): Promise<void>;
|
|
45
|
-
/** Whether the radio-button is focused. */
|
|
46
|
-
isFocused(): Promise<boolean>;
|
|
47
|
-
/**
|
|
48
|
-
* Puts the radio-button in a checked state by clicking it if it is currently unchecked,
|
|
49
|
-
* or doing nothing if it is already checked.
|
|
50
|
-
*/
|
|
51
|
-
check(): Promise<void>;
|
|
4
|
+
/** A set of criteria that can be used to filter a list of `MatRadioGroupHarness` instances. */
|
|
5
|
+
interface RadioGroupHarnessFilters extends BaseHarnessFilters {
|
|
6
|
+
/** Only find instances whose name attribute is the given value. */
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
/** A set of criteria that can be used to filter a list of `MatRadioButtonHarness` instances. */
|
|
10
|
+
interface RadioButtonHarnessFilters extends BaseHarnessFilters {
|
|
11
|
+
/** Only find instances whose label matches the given value. */
|
|
12
|
+
label?: string | RegExp;
|
|
13
|
+
/** Only find instances whose name attribute is the given value. */
|
|
14
|
+
name?: string;
|
|
15
|
+
/** Only find instances with the given checked value. */
|
|
16
|
+
checked?: boolean;
|
|
52
17
|
}
|
|
53
18
|
|
|
54
19
|
/** Harness for interacting with a mat-radio-group in tests. */
|
|
55
|
-
|
|
20
|
+
declare class MatRadioGroupHarness extends ComponentHarness {
|
|
56
21
|
/** The selector for the host element of a `MatRadioGroup` instance. */
|
|
57
22
|
static hostSelector: string;
|
|
58
23
|
private _buttonClass;
|
|
@@ -94,21 +59,50 @@ export declare class MatRadioGroupHarness extends ComponentHarness {
|
|
|
94
59
|
*/
|
|
95
60
|
protected static _checkRadioGroupName(harness: MatRadioGroupHarness, name: string): Promise<boolean>;
|
|
96
61
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
62
|
+
/** Harness for interacting with a mat-radio-button in tests. */
|
|
63
|
+
declare class MatRadioButtonHarness extends ComponentHarness {
|
|
64
|
+
/** The selector for the host element of a `MatRadioButton` instance. */
|
|
65
|
+
static hostSelector: string;
|
|
66
|
+
/**
|
|
67
|
+
* Gets a `HarnessPredicate` that can be used to search for a radio button with specific
|
|
68
|
+
* attributes.
|
|
69
|
+
* @param options Options for filtering which radio button instances are considered a match.
|
|
70
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
71
|
+
*/
|
|
72
|
+
static with<T extends MatRadioButtonHarness>(this: ComponentHarnessConstructor<T>, options?: RadioButtonHarnessFilters): HarnessPredicate<T>;
|
|
73
|
+
protected _textLabel: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
|
|
74
|
+
protected _clickLabel: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
|
|
75
|
+
private _input;
|
|
76
|
+
/** Whether the radio-button is checked. */
|
|
77
|
+
isChecked(): Promise<boolean>;
|
|
78
|
+
/** Whether the radio-button is disabled. */
|
|
79
|
+
isDisabled(): Promise<boolean>;
|
|
80
|
+
/** Whether the radio-button is required. */
|
|
81
|
+
isRequired(): Promise<boolean>;
|
|
82
|
+
/** Gets the radio-button's name. */
|
|
83
|
+
getName(): Promise<string | null>;
|
|
84
|
+
/** Gets the radio-button's id. */
|
|
85
|
+
getId(): Promise<string | null>;
|
|
86
|
+
/**
|
|
87
|
+
* Gets the value of the radio-button. The radio-button value will be converted to a string.
|
|
88
|
+
*
|
|
89
|
+
* Note: This means that for radio-button's with an object as a value `[object Object]` is
|
|
90
|
+
* intentionally returned.
|
|
91
|
+
*/
|
|
92
|
+
getValue(): Promise<string | null>;
|
|
93
|
+
/** Gets the radio-button's label text. */
|
|
94
|
+
getLabelText(): Promise<string>;
|
|
95
|
+
/** Focuses the radio-button. */
|
|
96
|
+
focus(): Promise<void>;
|
|
97
|
+
/** Blurs the radio-button. */
|
|
98
|
+
blur(): Promise<void>;
|
|
99
|
+
/** Whether the radio-button is focused. */
|
|
100
|
+
isFocused(): Promise<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* Puts the radio-button in a checked state by clicking it if it is currently unchecked,
|
|
103
|
+
* or doing nothing if it is already checked.
|
|
104
|
+
*/
|
|
105
|
+
check(): Promise<void>;
|
|
112
106
|
}
|
|
113
107
|
|
|
114
|
-
export { }
|
|
108
|
+
export { MatRadioButtonHarness, MatRadioGroupHarness, type RadioButtonHarnessFilters, type RadioGroupHarnessFilters };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Handles attaching ripples on demand.
|
|
6
|
+
*
|
|
7
|
+
* This service allows us to avoid eagerly creating & attaching MatRipples.
|
|
8
|
+
* It works by creating & attaching a ripple only when a component is first interacted with.
|
|
9
|
+
*
|
|
10
|
+
* @docs-private
|
|
11
|
+
*/
|
|
12
|
+
declare class MatRippleLoader implements OnDestroy {
|
|
13
|
+
private _document;
|
|
14
|
+
private _animationMode;
|
|
15
|
+
private _globalRippleOptions;
|
|
16
|
+
private _platform;
|
|
17
|
+
private _ngZone;
|
|
18
|
+
private _injector;
|
|
19
|
+
private _eventCleanups;
|
|
20
|
+
private _hosts;
|
|
21
|
+
constructor();
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Configures the ripple that will be rendered by the ripple loader.
|
|
25
|
+
*
|
|
26
|
+
* Stores the given information about how the ripple should be configured on the host
|
|
27
|
+
* element so that it can later be retrived & used when the ripple is actually created.
|
|
28
|
+
*/
|
|
29
|
+
configureRipple(host: HTMLElement, config: {
|
|
30
|
+
className?: string;
|
|
31
|
+
centered?: boolean;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}): void;
|
|
34
|
+
/** Sets the disabled state on the ripple instance corresponding to the given host element. */
|
|
35
|
+
setDisabled(host: HTMLElement, disabled: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* Handles creating and attaching component internals
|
|
38
|
+
* when a component is initially interacted with.
|
|
39
|
+
*/
|
|
40
|
+
private _onInteraction;
|
|
41
|
+
/** Creates a MatRipple and appends it to the given element. */
|
|
42
|
+
private _createRipple;
|
|
43
|
+
destroyRipple(host: HTMLElement): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRippleLoader, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatRippleLoader>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { MatRippleLoader as M };
|