@angular/material 20.0.0-next.6 → 20.0.0-next.7
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 +1 -1
- package/autocomplete/index.d.ts +9 -10
- package/autocomplete/testing/index.d.ts +2 -2
- package/badge/_badge-theme.scss +1 -1
- package/badge/index.d.ts +5 -5
- package/badge/testing/index.d.ts +2 -2
- package/{badge.d-619691fb.d.ts → badge.d-BUeRGv1E.d.ts} +3 -3
- package/bottom-sheet/_bottom-sheet-theme.scss +1 -1
- package/bottom-sheet/index.d.ts +3 -2
- package/button/_button-theme.scss +6 -1
- package/button/_fab-theme.scss +5 -1
- package/button/_icon-button-theme.scss +6 -1
- package/button/_m3-button.scss +22 -5
- package/button/_m3-fab.scss +13 -0
- package/button/_m3-icon-button.scss +15 -1
- package/button/index.d.ts +215 -8
- package/button-toggle/_button-toggle-theme.scss +6 -1
- package/button-toggle/_m3-button-toggle.scss +13 -0
- package/button-toggle/index.d.ts +6 -6
- package/button-toggle/testing/index.d.ts +1 -1
- package/{button-toggle.d-620c8912.d.ts → button-toggle.d-cP94fe1M.d.ts} +3 -3
- package/card/_card-theme.scss +1 -1
- package/card/index.d.ts +1 -1
- package/checkbox/_checkbox-theme.scss +6 -1
- package/checkbox/_m3-checkbox.scss +14 -1
- package/checkbox/index.d.ts +2 -2
- package/chips/_chips-theme.scss +5 -1
- package/chips/_m3-chip.scss +13 -0
- package/chips/index.d.ts +17 -5
- package/{common-module.d-421e3498.d.ts → common-module.d-CUT8AqiB.d.ts} +2 -2
- package/core/_core-theme.scss +1 -1
- package/core/density/private/_all-density.scss +38 -38
- package/core/index.d.ts +15 -15
- package/core/option/_optgroup-theme.scss +1 -1
- package/core/option/_option-theme.scss +1 -1
- package/core/ripple/_ripple-theme.scss +1 -1
- package/core/testing/index.d.ts +32 -3
- package/core/theming/_definition.scss +0 -1
- package/core/theming/_inspection.scss +1 -0
- package/core/tokens/_m3-system.scss +49 -9
- package/core/tokens/_m3-tokens.scss +0 -18
- package/core/tokens/_token-utils.scss +5 -0
- package/{date-adapter.d-e8299690.d.ts → date-adapter.d-DzP3EMeE.d.ts} +1 -1
- package/{date-range-input-harness.d-440b288d.d.ts → date-range-input-harness.d-CJDdddpn.d.ts} +3 -3
- package/datepicker/_datepicker-theme.scss +1 -1
- package/datepicker/index.d.ts +14 -9
- package/datepicker/testing/index.d.ts +4 -4
- package/dialog/_dialog-theme.scss +1 -1
- package/dialog/index.d.ts +5 -5
- package/dialog/testing/index.d.ts +1 -1
- package/{dialog.d-2ea3eab1.d.ts → dialog.d-DSidcNPx.d.ts} +2 -2
- package/divider/_divider-theme.scss +1 -1
- package/divider/index.d.ts +24 -4
- package/divider/testing/index.d.ts +15 -2
- package/{error-options.d-059d9639.d.ts → error-options.d-C1yXmo10.d.ts} +1 -1
- package/expansion/_expansion-theme.scss +6 -1
- package/expansion/_m3-expansion.scss +14 -0
- package/expansion/index.d.ts +1 -1
- package/fesm2022/{animation-e58fc357.mjs → animation-DYWs964N.mjs} +2 -2
- package/fesm2022/{animation-e58fc357.mjs.map → animation-DYWs964N.mjs.map} +1 -1
- package/fesm2022/autocomplete/testing.mjs +2 -2
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +15 -15
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +5 -5
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +13 -5
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +9 -9
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +218 -9
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +4 -4
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +8 -8
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +38 -22
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/{common-module-6bff0328.mjs → common-module-BTLyTce6.mjs} +2 -2
- package/fesm2022/{common-module-6bff0328.mjs.map → common-module-BTLyTce6.mjs.map} +1 -1
- package/fesm2022/core/testing.mjs +35 -3
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +18 -18
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{date-formats-9cbc3057.mjs → date-formats-BQbO9F6H.mjs} +2 -2
- package/fesm2022/{date-formats-9cbc3057.mjs.map → date-formats-BQbO9F6H.mjs.map} +1 -1
- package/fesm2022/{date-range-input-harness-3d3cf01a.mjs → date-range-input-harness-qhTX-DXo.mjs} +3 -3
- package/fesm2022/{date-range-input-harness-3d3cf01a.mjs.map → date-range-input-harness-qhTX-DXo.mjs.map} +1 -1
- package/fesm2022/datepicker/testing.mjs +3 -3
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +38 -29
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +4 -4
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +3 -3
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +17 -2
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +55 -4
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/{error-options-e22abc6f.mjs → error-options-f2L_D2TV.mjs} +2 -2
- package/fesm2022/{error-options-e22abc6f.mjs.map → error-options-f2L_D2TV.mjs.map} +1 -1
- package/fesm2022/{error-state-5fa5df66.mjs → error-state-DAicm3pw.mjs} +2 -2
- package/fesm2022/{error-state-5fa5df66.mjs.map → error-state-DAicm3pw.mjs.map} +1 -1
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +8 -8
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs +10 -2
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +6 -6
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/{form-field-ba7d9525.mjs → form-field-DXXhIBX2.mjs} +25 -7
- package/fesm2022/form-field-DXXhIBX2.mjs.map +1 -0
- package/fesm2022/form-field.mjs +4 -4
- package/fesm2022/grid-list/testing.mjs +2 -2
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +10 -11
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +1 -1
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/{icon-button-c94ccf8a.mjs → icon-button-SnLX2J-J.mjs} +8 -8
- package/fesm2022/{icon-button-c94ccf8a.mjs.map → icon-button-SnLX2J-J.mjs.map} +1 -1
- package/fesm2022/{icon-registry-4f5f0eba.mjs → icon-registry-C2Nxi8Mq.mjs} +3 -3
- package/fesm2022/{icon-registry-4f5f0eba.mjs.map → icon-registry-C2Nxi8Mq.mjs.map} +1 -1
- package/fesm2022/icon.mjs +397 -9
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/{index-33bb4181.mjs → index-CYUgEsfZ.mjs} +6 -6
- package/fesm2022/{index-33bb4181.mjs.map → index-CYUgEsfZ.mjs.map} +1 -1
- package/fesm2022/{index-975cf4ab.mjs → index-D7tf-UtR.mjs} +4 -4
- package/fesm2022/{index-975cf4ab.mjs.map → index-D7tf-UtR.mjs.map} +1 -1
- package/fesm2022/input/testing.mjs +2 -2
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/{input-harness-6ca0e4e7.mjs → input-harness-CxVp_q3n.mjs} +3 -3
- package/fesm2022/{input-harness-6ca0e4e7.mjs.map → input-harness-CxVp_q3n.mjs.map} +1 -1
- package/fesm2022/{input-value-accessor-16c2d528.mjs → input-value-accessor-cp3A3zMa.mjs} +2 -2
- package/fesm2022/{input-value-accessor-16c2d528.mjs.map → input-value-accessor-cp3A3zMa.mjs.map} +1 -1
- package/fesm2022/input.mjs +21 -29
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/{internal-form-field-a658b1d3.mjs → internal-form-field-Bq9jLDgy.mjs} +5 -5
- package/fesm2022/{internal-form-field-a658b1d3.mjs.map → internal-form-field-Bq9jLDgy.mjs.map} +1 -1
- package/fesm2022/{line-fa9011f8.mjs → line-DI2_SkWl.mjs} +3 -3
- package/fesm2022/{line-fa9011f8.mjs.map → line-DI2_SkWl.mjs.map} +1 -1
- package/fesm2022/list/testing.mjs +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +21 -21
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +8 -8
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-f0bd6006.mjs → module-BIHXUA0w.mjs} +4 -4
- package/fesm2022/{module-f0bd6006.mjs.map → module-BIHXUA0w.mjs.map} +1 -1
- package/fesm2022/{module-7aee2437.mjs → module-Bj-soMIE.mjs} +7 -7
- package/fesm2022/{module-7aee2437.mjs.map → module-Bj-soMIE.mjs.map} +1 -1
- package/fesm2022/{module-9e568fe9.mjs → module-Bj_BSG1B.mjs} +23 -14
- package/fesm2022/{module-9e568fe9.mjs.map → module-Bj_BSG1B.mjs.map} +1 -1
- package/fesm2022/{module-f09a8c90.mjs → module-nTxiyWBy.mjs} +11 -11
- package/fesm2022/{module-f09a8c90.mjs.map → module-nTxiyWBy.mjs.map} +1 -1
- package/fesm2022/{option-2e7efc25.mjs → option-Ce_vIVuD.mjs} +10 -10
- package/fesm2022/{option-2e7efc25.mjs.map → option-Ce_vIVuD.mjs.map} +1 -1
- package/fesm2022/{option-harness-4cd4ee4e.mjs → option-harness-D_dpAU04.mjs} +2 -2
- package/fesm2022/{option-harness-4cd4ee4e.mjs.map → option-harness-D_dpAU04.mjs.map} +1 -1
- package/fesm2022/paginator/testing.mjs +4 -4
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +22 -22
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +5 -5
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +5 -5
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/{pseudo-checkbox-module-22aca2eb.mjs → pseudo-checkbox-module-B1fNUV1l.mjs} +4 -4
- package/fesm2022/{pseudo-checkbox-module-22aca2eb.mjs.map → pseudo-checkbox-module-B1fNUV1l.mjs.map} +1 -1
- package/fesm2022/{pseudo-checkbox-7c1050cc.mjs → pseudo-checkbox-rb5Qj2XH.mjs} +6 -6
- package/fesm2022/{pseudo-checkbox-7c1050cc.mjs.map → pseudo-checkbox-rb5Qj2XH.mjs.map} +1 -1
- package/fesm2022/{public-api-af61bf48.mjs → public-api-B95TI2uI.mjs} +2 -2
- package/fesm2022/{public-api-af61bf48.mjs.map → public-api-B95TI2uI.mjs.map} +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +9 -9
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/{ripple-loader-9a207cda.mjs → ripple-loader-R9v4tIlx.mjs} +4 -4
- package/fesm2022/{ripple-loader-9a207cda.mjs.map → ripple-loader-R9v4tIlx.mjs.map} +1 -1
- package/fesm2022/{ripple-ca34ab3c.mjs → ripple-t-kasrhF.mjs} +6 -6
- package/fesm2022/{ripple-ca34ab3c.mjs.map → ripple-t-kasrhF.mjs.map} +1 -1
- package/fesm2022/select/testing.mjs +122 -5
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +14 -14
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +7 -7
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +8 -8
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +10 -10
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +14 -14
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +6 -6
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +13 -13
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/{structural-styles-fe60c44d.mjs → structural-styles-BcST1BXh.mjs} +5 -5
- package/fesm2022/{structural-styles-fe60c44d.mjs.map → structural-styles-BcST1BXh.mjs.map} +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +6 -6
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +15 -15
- 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 +13 -13
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +4 -4
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +3 -3
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +4 -4
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +6 -1
- package/form-field/_m3-form-field.scss +17 -0
- package/form-field/index.d.ts +5 -5
- package/form-field/testing/control/index.d.ts +10 -2
- package/form-field/testing/index.d.ts +7 -8
- package/{form-field-control.d-9ed49092.d.ts → form-field-control.d-39fAGkWp.d.ts} +3 -1
- package/{form-field.d-486f4e86.d.ts → form-field.d-DeaA8Upo.d.ts} +5 -4
- package/grid-list/_grid-list-theme.scss +1 -1
- package/grid-list/index.d.ts +3 -4
- package/icon/_icon-theme.scss +1 -1
- package/icon/index.d.ts +4 -4
- package/icon/testing/index.d.ts +1 -1
- package/{icon-module.d-a4b3b1e1.d.ts → icon-module.d-BeibE7j0.d.ts} +5 -5
- package/{icon-registry.d-6dd1799a.d.ts → icon-registry.d-DyR40vgq.d.ts} +2 -2
- package/{index.d-511f9e6c.d.ts → index.d-_XdEyDn3.d.ts} +3 -3
- package/{index.d-73f24bb1.d.ts → index.d-osnm7rw7.d.ts} +5 -5
- package/input/_input-theme.scss +1 -1
- package/input/index.d.ts +15 -12
- package/input/testing/index.d.ts +2 -2
- package/{input-harness.d-be80831e.d.ts → input-harness.d-C1zsmszC.d.ts} +3 -3
- package/{line.d-712398cb.d.ts → line.d-OCn_JHOE.d.ts} +2 -2
- package/list/_list-theme.scss +5 -1
- package/list/_m3-list.scss +17 -3
- package/list/index.d.ts +9 -10
- package/list/testing/index.d.ts +2 -2
- package/{list-option-types.d-076a5300.d.ts → list-option-types.d-BcmY3SsC.d.ts} +1 -1
- package/menu/_menu-theme.scss +1 -1
- package/menu/index.d.ts +4 -4
- package/{module.d-f55544a0.d.ts → module.d-Cym1ScGE.d.ts} +5 -5
- package/{module.d-8839a0c2.d.ts → module.d-D0Yb5xFi.d.ts} +16 -11
- package/{module.d-683b2a19.d.ts → module.d-_FxAFBZR.d.ts} +3 -3
- package/{option-harness.d-4f143bc0.d.ts → option-harness.d-BpYClwei.d.ts} +2 -2
- package/{option-parent.d-d4243d2f.d.ts → option-parent.d-CvnRKBST.d.ts} +2 -2
- package/{option.d-4fb11594.d.ts → option.d-ef4idHSb.d.ts} +1 -1
- package/package.json +2 -2
- package/paginator/_m3-paginator.scss +16 -0
- package/paginator/_paginator-theme.scss +6 -1
- package/paginator/index.d.ts +19 -19
- package/paginator/testing/index.d.ts +4 -4
- package/{paginator.d-181ff014.d.ts → paginator.d-Ctdtnt7L.d.ts} +5 -5
- package/{palette.d-1d8ebc0d.d.ts → palette.d-fF1us9u8.d.ts} +1 -1
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress-bar/index.d.ts +2 -2
- package/progress-spinner/index.d.ts +5 -5
- package/progress-spinner/testing/index.d.ts +2 -2
- package/{progress-spinner.d-c723a559.d.ts → progress-spinner.d-DRWEU4qb.d.ts} +3 -3
- package/{pseudo-checkbox-module.d-42351ab6.d.ts → pseudo-checkbox-module.d-czRCRd5m.d.ts} +3 -3
- package/radio/_m3-radio.scss +14 -1
- package/radio/_radio-theme.scss +5 -1
- package/radio/index.d.ts +5 -5
- package/{ripple-loader.d-f51e5eb6.d.ts → ripple-loader.d-DL-hT7NH.d.ts} +1 -1
- package/{ripple.d-305c30f3.d.ts → ripple.d-DBFnJ3Aa.d.ts} +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +3829 -3941
- package/schematics/ng-generate/theme-color/index_bundled.js.map +3 -4
- package/select/_m3-select.scss +13 -0
- package/select/_select-theme.scss +6 -1
- package/select/index.d.ts +12 -12
- package/select/testing/index.d.ts +64 -5
- package/sidenav/_sidenav-theme.scss +1 -1
- package/sidenav/index.d.ts +2 -2
- package/sidenav/testing/index.d.ts +1 -1
- package/slide-toggle/_slide-toggle-theme.scss +1 -1
- package/slide-toggle/index.d.ts +2 -2
- package/slider/_slider-theme.scss +1 -1
- package/slider/index.d.ts +5 -5
- package/snack-bar/index.d.ts +7 -7
- package/sort/_sort-theme.scss +1 -1
- package/sort/index.d.ts +5 -6
- package/sort/testing/index.d.ts +1 -1
- package/{sort-direction.d-52bce05e.d.ts → sort-direction.d-Dlz8961P.d.ts} +1 -1
- package/{sort.d-7718b3de.d.ts → sort.d-CHu7FXsP.d.ts} +4 -4
- package/stepper/_m3-stepper.scss +13 -0
- package/stepper/_stepper-theme.scss +6 -1
- package/stepper/index.d.ts +6 -6
- package/table/_m3-table.scss +15 -0
- package/table/_table-theme.scss +5 -1
- package/table/index.d.ts +8 -8
- package/table/testing/index.d.ts +1 -1
- package/tabs/_m3-tabs.scss +13 -1
- package/tabs/_tabs-theme.scss +5 -1
- package/tabs/index.d.ts +4 -4
- package/timepicker/_timepicker-theme.scss +1 -1
- package/timepicker/index.d.ts +2 -2
- package/timepicker/testing/index.d.ts +1 -1
- package/toolbar/_m3-toolbar.scss +14 -0
- package/toolbar/_toolbar-theme.scss +6 -1
- package/toolbar/index.d.ts +1 -1
- package/tooltip/_tooltip-theme.scss +1 -1
- package/tooltip/index.d.ts +2 -2
- package/tree/_m3-tree.scss +13 -0
- package/tree/_tree-theme.scss +5 -1
- package/tree/index.d.ts +1 -1
- package/core/tokens/_density.scss +0 -151
- package/divider-harness.d-ee96b7aa.d.ts +0 -15
- package/divider-module.d-4305a1f1.d.ts +0 -24
- package/fesm2022/divider-harness-bea2a71d.mjs +0 -18
- package/fesm2022/divider-harness-bea2a71d.mjs.map +0 -1
- package/fesm2022/divider-module-15f4b7a3.mjs +0 -56
- package/fesm2022/divider-module-15f4b7a3.mjs.map +0 -1
- package/fesm2022/form-field-ba7d9525.mjs.map +0 -1
- package/fesm2022/form-field-control-harness-adcc773d.mjs +0 -11
- package/fesm2022/form-field-control-harness-adcc773d.mjs.map +0 -1
- package/fesm2022/icon-module-165b91b7.mjs +0 -395
- package/fesm2022/icon-module-165b91b7.mjs.map +0 -1
- package/fesm2022/module-f44de9b3.mjs +0 -214
- package/fesm2022/module-f44de9b3.mjs.map +0 -1
- package/fesm2022/optgroup-harness-d961ca3f.mjs +0 -36
- package/fesm2022/optgroup-harness-d961ca3f.mjs.map +0 -1
- package/fesm2022/select-harness-9656d727.mjs +0 -123
- package/fesm2022/select-harness-9656d727.mjs.map +0 -1
- package/form-field-control-harness.d-e3cf007b.d.ts +0 -10
- package/module.d-9a1d1c76.d.ts +0 -214
- package/optgroup-harness.d-c52f5a8b.d.ts +0 -32
- package/select-harness.d-485a3cf8.d.ts +0 -64
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate, parallel } from '@angular/cdk/testing';
|
|
2
|
-
import { M as MatFormFieldControlHarness } from './form-field-control-harness-adcc773d.mjs';
|
|
3
|
-
import { M as MatOptionHarness } from './option-harness-4cd4ee4e.mjs';
|
|
4
|
-
import { M as MatOptgroupHarness } from './optgroup-harness-d961ca3f.mjs';
|
|
5
|
-
|
|
6
|
-
/** Harness for interacting with a mat-select in tests. */
|
|
7
|
-
class MatSelectHarness extends MatFormFieldControlHarness {
|
|
8
|
-
static hostSelector = '.mat-mdc-select';
|
|
9
|
-
_prefix = 'mat-mdc';
|
|
10
|
-
_optionClass = MatOptionHarness;
|
|
11
|
-
_optionGroupClass = MatOptgroupHarness;
|
|
12
|
-
_documentRootLocator = this.documentRootLocatorFactory();
|
|
13
|
-
_backdrop = this._documentRootLocator.locatorFor('.cdk-overlay-backdrop');
|
|
14
|
-
/**
|
|
15
|
-
* Gets a `HarnessPredicate` that can be used to search for a select with specific attributes.
|
|
16
|
-
* @param options Options for filtering which select instances are considered a match.
|
|
17
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
18
|
-
*/
|
|
19
|
-
static with(options = {}) {
|
|
20
|
-
return new HarnessPredicate(this, options).addOption('disabled', options.disabled, async (harness, disabled) => {
|
|
21
|
-
return (await harness.isDisabled()) === disabled;
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
/** Gets a boolean promise indicating if the select is disabled. */
|
|
25
|
-
async isDisabled() {
|
|
26
|
-
return (await this.host()).hasClass(`${this._prefix}-select-disabled`);
|
|
27
|
-
}
|
|
28
|
-
/** Gets a boolean promise indicating if the select is valid. */
|
|
29
|
-
async isValid() {
|
|
30
|
-
return !(await (await this.host()).hasClass('ng-invalid'));
|
|
31
|
-
}
|
|
32
|
-
/** Gets a boolean promise indicating if the select is required. */
|
|
33
|
-
async isRequired() {
|
|
34
|
-
return (await this.host()).hasClass(`${this._prefix}-select-required`);
|
|
35
|
-
}
|
|
36
|
-
/** Gets a boolean promise indicating if the select is empty (no value is selected). */
|
|
37
|
-
async isEmpty() {
|
|
38
|
-
return (await this.host()).hasClass(`${this._prefix}-select-empty`);
|
|
39
|
-
}
|
|
40
|
-
/** Gets a boolean promise indicating if the select is in multi-selection mode. */
|
|
41
|
-
async isMultiple() {
|
|
42
|
-
return (await this.host()).hasClass(`${this._prefix}-select-multiple`);
|
|
43
|
-
}
|
|
44
|
-
/** Gets a promise for the select's value text. */
|
|
45
|
-
async getValueText() {
|
|
46
|
-
const value = await this.locatorFor(`.${this._prefix}-select-value`)();
|
|
47
|
-
return value.text();
|
|
48
|
-
}
|
|
49
|
-
/** Focuses the select and returns a void promise that indicates when the action is complete. */
|
|
50
|
-
async focus() {
|
|
51
|
-
return (await this.host()).focus();
|
|
52
|
-
}
|
|
53
|
-
/** Blurs the select and returns a void promise that indicates when the action is complete. */
|
|
54
|
-
async blur() {
|
|
55
|
-
return (await this.host()).blur();
|
|
56
|
-
}
|
|
57
|
-
/** Whether the select is focused. */
|
|
58
|
-
async isFocused() {
|
|
59
|
-
return (await this.host()).isFocused();
|
|
60
|
-
}
|
|
61
|
-
/** Gets the options inside the select panel. */
|
|
62
|
-
async getOptions(filter) {
|
|
63
|
-
return this._documentRootLocator.locatorForAll(this._optionClass.with({
|
|
64
|
-
...(filter || {}),
|
|
65
|
-
ancestor: await this._getPanelSelector(),
|
|
66
|
-
}))();
|
|
67
|
-
}
|
|
68
|
-
/** Gets the groups of options inside the panel. */
|
|
69
|
-
async getOptionGroups(filter) {
|
|
70
|
-
return this._documentRootLocator.locatorForAll(this._optionGroupClass.with({
|
|
71
|
-
...(filter || {}),
|
|
72
|
-
ancestor: await this._getPanelSelector(),
|
|
73
|
-
}))();
|
|
74
|
-
}
|
|
75
|
-
/** Gets whether the select is open. */
|
|
76
|
-
async isOpen() {
|
|
77
|
-
return !!(await this._documentRootLocator.locatorForOptional(await this._getPanelSelector())());
|
|
78
|
-
}
|
|
79
|
-
/** Opens the select's panel. */
|
|
80
|
-
async open() {
|
|
81
|
-
if (!(await this.isOpen())) {
|
|
82
|
-
const trigger = await this.locatorFor(`.${this._prefix}-select-trigger`)();
|
|
83
|
-
return trigger.click();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Clicks the options that match the passed-in filter. If the select is in multi-selection
|
|
88
|
-
* mode all options will be clicked, otherwise the harness will pick the first matching option.
|
|
89
|
-
*/
|
|
90
|
-
async clickOptions(filter) {
|
|
91
|
-
await this.open();
|
|
92
|
-
const [isMultiple, options] = await parallel(() => [
|
|
93
|
-
this.isMultiple(),
|
|
94
|
-
this.getOptions(filter),
|
|
95
|
-
]);
|
|
96
|
-
if (options.length === 0) {
|
|
97
|
-
throw Error('Select does not have options matching the specified filter');
|
|
98
|
-
}
|
|
99
|
-
if (isMultiple) {
|
|
100
|
-
await parallel(() => options.map(option => option.click()));
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
await options[0].click();
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
/** Closes the select's panel. */
|
|
107
|
-
async close() {
|
|
108
|
-
if (await this.isOpen()) {
|
|
109
|
-
// This is the most consistent way that works both in both single and multi-select modes,
|
|
110
|
-
// but it assumes that only one overlay is open at a time. We should be able to make it
|
|
111
|
-
// a bit more precise after #16645 where we can dispatch an ESCAPE press to the host instead.
|
|
112
|
-
return (await this._backdrop()).click();
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
/** Gets the selector that should be used to find this select's panel. */
|
|
116
|
-
async _getPanelSelector() {
|
|
117
|
-
const id = await (await this.host()).getAttribute('id');
|
|
118
|
-
return `#${id}-panel`;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export { MatSelectHarness as M };
|
|
123
|
-
//# sourceMappingURL=select-harness-9656d727.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-harness-9656d727.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/select/testing/select-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ComponentHarnessConstructor, HarnessPredicate, parallel} from '@angular/cdk/testing';\nimport {\n MatOptionHarness,\n MatOptgroupHarness,\n OptionHarnessFilters,\n OptgroupHarnessFilters,\n} from '../../core/testing';\nimport {MatFormFieldControlHarness} from '../../form-field/testing/control';\nimport {SelectHarnessFilters} from './select-harness-filters';\n\n/** Harness for interacting with a mat-select in tests. */\nexport class MatSelectHarness extends MatFormFieldControlHarness {\n static hostSelector = '.mat-mdc-select';\n private _prefix = 'mat-mdc';\n private _optionClass = MatOptionHarness;\n private _optionGroupClass = MatOptgroupHarness;\n private _documentRootLocator = this.documentRootLocatorFactory();\n private _backdrop = this._documentRootLocator.locatorFor('.cdk-overlay-backdrop');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a select with specific attributes.\n * @param options Options for filtering which select instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatSelectHarness>(\n this: ComponentHarnessConstructor<T>,\n options: SelectHarnessFilters = {},\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, options).addOption(\n 'disabled',\n options.disabled,\n async (harness, disabled) => {\n return (await harness.isDisabled()) === disabled;\n },\n );\n }\n\n /** Gets a boolean promise indicating if the select is disabled. */\n async isDisabled(): Promise<boolean> {\n return (await this.host()).hasClass(`${this._prefix}-select-disabled`);\n }\n\n /** Gets a boolean promise indicating if the select is valid. */\n async isValid(): Promise<boolean> {\n return !(await (await this.host()).hasClass('ng-invalid'));\n }\n\n /** Gets a boolean promise indicating if the select is required. */\n async isRequired(): Promise<boolean> {\n return (await this.host()).hasClass(`${this._prefix}-select-required`);\n }\n\n /** Gets a boolean promise indicating if the select is empty (no value is selected). */\n async isEmpty(): Promise<boolean> {\n return (await this.host()).hasClass(`${this._prefix}-select-empty`);\n }\n\n /** Gets a boolean promise indicating if the select is in multi-selection mode. */\n async isMultiple(): Promise<boolean> {\n return (await this.host()).hasClass(`${this._prefix}-select-multiple`);\n }\n\n /** Gets a promise for the select's value text. */\n async getValueText(): Promise<string> {\n const value = await this.locatorFor(`.${this._prefix}-select-value`)();\n return value.text();\n }\n\n /** Focuses the select and returns a void promise that indicates when the action is complete. */\n async focus(): Promise<void> {\n return (await this.host()).focus();\n }\n\n /** Blurs the select and returns a void promise that indicates when the action is complete. */\n async blur(): Promise<void> {\n return (await this.host()).blur();\n }\n\n /** Whether the select is focused. */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n\n /** Gets the options inside the select panel. */\n async getOptions(filter?: Omit<OptionHarnessFilters, 'ancestor'>): Promise<MatOptionHarness[]> {\n return this._documentRootLocator.locatorForAll(\n this._optionClass.with({\n ...(filter || {}),\n ancestor: await this._getPanelSelector(),\n } as OptionHarnessFilters),\n )();\n }\n\n /** Gets the groups of options inside the panel. */\n async getOptionGroups(\n filter?: Omit<OptgroupHarnessFilters, 'ancestor'>,\n ): Promise<MatOptgroupHarness[]> {\n return this._documentRootLocator.locatorForAll(\n this._optionGroupClass.with({\n ...(filter || {}),\n ancestor: await this._getPanelSelector(),\n } as OptgroupHarnessFilters),\n )() as Promise<MatOptgroupHarness[]>;\n }\n\n /** Gets whether the select is open. */\n async isOpen(): Promise<boolean> {\n return !!(await this._documentRootLocator.locatorForOptional(await this._getPanelSelector())());\n }\n\n /** Opens the select's panel. */\n async open(): Promise<void> {\n if (!(await this.isOpen())) {\n const trigger = await this.locatorFor(`.${this._prefix}-select-trigger`)();\n return trigger.click();\n }\n }\n\n /**\n * Clicks the options that match the passed-in filter. If the select is in multi-selection\n * mode all options will be clicked, otherwise the harness will pick the first matching option.\n */\n async clickOptions(filter?: OptionHarnessFilters): Promise<void> {\n await this.open();\n\n const [isMultiple, options] = await parallel(() => [\n this.isMultiple(),\n this.getOptions(filter),\n ]);\n\n if (options.length === 0) {\n throw Error('Select does not have options matching the specified filter');\n }\n\n if (isMultiple) {\n await parallel(() => options.map(option => option.click()));\n } else {\n await options[0].click();\n }\n }\n\n /** Closes the select's panel. */\n async close(): Promise<void> {\n if (await this.isOpen()) {\n // This is the most consistent way that works both in both single and multi-select modes,\n // but it assumes that only one overlay is open at a time. We should be able to make it\n // a bit more precise after #16645 where we can dispatch an ESCAPE press to the host instead.\n return (await this._backdrop()).click();\n }\n }\n\n /** Gets the selector that should be used to find this select's panel. */\n private async _getPanelSelector(): Promise<string> {\n const id = await (await this.host()).getAttribute('id');\n return `#${id}-panel`;\n }\n}\n"],"names":[],"mappings":";;;;;AAkBA;AACM,MAAO,gBAAiB,SAAQ,0BAA0B,CAAA;AAC9D,IAAA,OAAO,YAAY,GAAG,iBAAiB,CAAA;IAC/B,OAAO,GAAG,SAAS,CAAA;IACnB,YAAY,GAAG,gBAAgB,CAAA;IAC/B,iBAAiB,GAAG,kBAAkB,CAAA;AACtC,IAAA,oBAAoB,GAAG,IAAI,CAAC,0BAA0B,EAAE,CAAA;IACxD,SAAS,GAAG,IAAI,CAAC,oBAAoB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
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Base class for custom form-field control harnesses. Harnesses for
|
|
5
|
-
* custom controls with form-fields need to implement this interface.
|
|
6
|
-
*/
|
|
7
|
-
declare abstract class MatFormFieldControlHarness extends ComponentHarness {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { MatFormFieldControlHarness as M };
|
package/module.d-9a1d1c76.d.ts
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, AfterViewInit, OnDestroy, ElementRef, NgZone } from '@angular/core';
|
|
3
|
-
import { M as MatCommonModule } from './common-module.d-421e3498.js';
|
|
4
|
-
import { M as MatRippleModule } from './index.d-511f9e6c.js';
|
|
5
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
6
|
-
import { T as ThemePalette } from './palette.d-1d8ebc0d.js';
|
|
7
|
-
import { M as MatRippleLoader } from './ripple-loader.d-f51e5eb6.js';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Possible appearances for a `MatButton`.
|
|
11
|
-
* See https://m3.material.io/components/buttons/overview
|
|
12
|
-
*/
|
|
13
|
-
type MatButtonAppearance = 'text' | 'filled' | 'elevated' | 'outlined' | 'tonal';
|
|
14
|
-
/** Object that can be used to configure the default options for the button component. */
|
|
15
|
-
interface MatButtonConfig {
|
|
16
|
-
/** Whether disabled buttons should be interactive. */
|
|
17
|
-
disabledInteractive?: boolean;
|
|
18
|
-
/** Default palette color to apply to buttons. */
|
|
19
|
-
color?: ThemePalette;
|
|
20
|
-
/** Default appearance for plain buttons (not icon buttons or FABs). */
|
|
21
|
-
defaultAppearance?: MatButtonAppearance;
|
|
22
|
-
}
|
|
23
|
-
/** Injection token that can be used to provide the default options the button component. */
|
|
24
|
-
declare const MAT_BUTTON_CONFIG: InjectionToken<MatButtonConfig>;
|
|
25
|
-
/** Base class for all buttons. */
|
|
26
|
-
declare class MatButtonBase implements AfterViewInit, OnDestroy {
|
|
27
|
-
_elementRef: ElementRef<HTMLElement>;
|
|
28
|
-
protected _ngZone: NgZone;
|
|
29
|
-
protected _animationsDisabled: boolean;
|
|
30
|
-
protected readonly _config: MatButtonConfig | null;
|
|
31
|
-
private readonly _focusMonitor;
|
|
32
|
-
private _cleanupClick;
|
|
33
|
-
private _renderer;
|
|
34
|
-
/**
|
|
35
|
-
* Handles the lazy creation of the MatButton ripple.
|
|
36
|
-
* Used to improve initial load time of large applications.
|
|
37
|
-
*/
|
|
38
|
-
protected _rippleLoader: MatRippleLoader;
|
|
39
|
-
/** Whether the button is set on an anchor node. */
|
|
40
|
-
protected _isAnchor: boolean;
|
|
41
|
-
/** Whether this button is a FAB. Used to apply the correct class on the ripple. */
|
|
42
|
-
protected _isFab: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Theme color of the button. This API is supported in M2 themes only, it has
|
|
45
|
-
* no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/button/styling.
|
|
46
|
-
*
|
|
47
|
-
* For information on applying color variants in M3, see
|
|
48
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
49
|
-
*/
|
|
50
|
-
color?: string | null;
|
|
51
|
-
/** Whether the ripple effect is disabled or not. */
|
|
52
|
-
get disableRipple(): boolean;
|
|
53
|
-
set disableRipple(value: any);
|
|
54
|
-
private _disableRipple;
|
|
55
|
-
/** Whether the button is disabled. */
|
|
56
|
-
get disabled(): boolean;
|
|
57
|
-
set disabled(value: any);
|
|
58
|
-
private _disabled;
|
|
59
|
-
/** `aria-disabled` value of the button. */
|
|
60
|
-
ariaDisabled: boolean | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Natively disabled buttons prevent focus and any pointer events from reaching the button.
|
|
63
|
-
* In some scenarios this might not be desirable, because it can prevent users from finding out
|
|
64
|
-
* why the button is disabled (e.g. via tooltip). This is also useful for buttons that may
|
|
65
|
-
* become disabled when activated, which would cause focus to be transferred to the document
|
|
66
|
-
* body instead of remaining on the button.
|
|
67
|
-
*
|
|
68
|
-
* Enabling this input will change the button so that it is styled to be disabled and will be
|
|
69
|
-
* marked as `aria-disabled`, but it will allow the button to receive events and focus.
|
|
70
|
-
*
|
|
71
|
-
* Note that by enabling this, you need to set the `tabindex` yourself if the button isn't
|
|
72
|
-
* meant to be tabbable and you have to prevent the button action (e.g. form submissions).
|
|
73
|
-
*/
|
|
74
|
-
disabledInteractive: boolean;
|
|
75
|
-
/** Tab index for the button. */
|
|
76
|
-
tabIndex: number;
|
|
77
|
-
/**
|
|
78
|
-
* Backwards-compatibility input that handles pre-existing `[tabindex]` bindings.
|
|
79
|
-
* @docs-private
|
|
80
|
-
*/
|
|
81
|
-
set _tabindex(value: number);
|
|
82
|
-
constructor(...args: unknown[]);
|
|
83
|
-
ngAfterViewInit(): void;
|
|
84
|
-
ngOnDestroy(): void;
|
|
85
|
-
/** Focuses the button. */
|
|
86
|
-
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
87
|
-
protected _getAriaDisabled(): boolean | null;
|
|
88
|
-
protected _getDisabledAttribute(): true | null;
|
|
89
|
-
private _updateRippleDisabled;
|
|
90
|
-
protected _getTabIndex(): number;
|
|
91
|
-
private _setupAsAnchor;
|
|
92
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonBase, never>;
|
|
93
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "_tabindex": { "alias": "tabindex"; "required": false; }; }, {}, never, never, true, never>;
|
|
94
|
-
static ngAcceptInputType_disableRipple: unknown;
|
|
95
|
-
static ngAcceptInputType_disabled: unknown;
|
|
96
|
-
static ngAcceptInputType_ariaDisabled: unknown;
|
|
97
|
-
static ngAcceptInputType_disabledInteractive: unknown;
|
|
98
|
-
static ngAcceptInputType_tabIndex: unknown;
|
|
99
|
-
static ngAcceptInputType__tabindex: unknown;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Material Design button component. Users interact with a button to perform an action.
|
|
104
|
-
* See https://m3.material.io/components/buttons/overview
|
|
105
|
-
*/
|
|
106
|
-
declare class MatButton extends MatButtonBase {
|
|
107
|
-
/** Appearance of the button. */
|
|
108
|
-
get appearance(): MatButtonAppearance | null;
|
|
109
|
-
set appearance(value: MatButtonAppearance | '');
|
|
110
|
-
private _appearance;
|
|
111
|
-
constructor(...args: unknown[]);
|
|
112
|
-
/** Programmatically sets the appearance of the button. */
|
|
113
|
-
setAppearance(appearance: MatButtonAppearance): void;
|
|
114
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, never>;
|
|
115
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", ["matButton", "matAnchor"], { "appearance": { "alias": "matButton"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Material Design button component for anchor elements. Anchor elements are used to provide
|
|
119
|
-
* links for the user to navigate across different routes or pages.
|
|
120
|
-
* See https://m3.material.io/components/buttons/overview
|
|
121
|
-
*/
|
|
122
|
-
declare const MatAnchor: typeof MatButton;
|
|
123
|
-
type MatAnchor = MatButton;
|
|
124
|
-
|
|
125
|
-
/** Default FAB options that can be overridden. */
|
|
126
|
-
interface MatFabDefaultOptions {
|
|
127
|
-
/**
|
|
128
|
-
* Default theme color of the button. This API is supported in M2 themes
|
|
129
|
-
* only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/button/styling.
|
|
130
|
-
*
|
|
131
|
-
* For information on applying color variants in M3, see
|
|
132
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants.
|
|
133
|
-
*/
|
|
134
|
-
color?: ThemePalette;
|
|
135
|
-
}
|
|
136
|
-
/** Injection token to be used to override the default options for FAB. */
|
|
137
|
-
declare const MAT_FAB_DEFAULT_OPTIONS: InjectionToken<MatFabDefaultOptions>;
|
|
138
|
-
/**
|
|
139
|
-
* @docs-private
|
|
140
|
-
* @deprecated No longer used, will be removed.
|
|
141
|
-
* @breaking-change 21.0.0
|
|
142
|
-
*/
|
|
143
|
-
declare function MAT_FAB_DEFAULT_OPTIONS_FACTORY(): MatFabDefaultOptions;
|
|
144
|
-
/**
|
|
145
|
-
* Material Design floating action button (FAB) component. These buttons represent the primary
|
|
146
|
-
* or most common action for users to interact with.
|
|
147
|
-
* See https://m3.material.io/components/floating-action-button/overview
|
|
148
|
-
*
|
|
149
|
-
* The `MatFabButton` class has two appearances: normal and extended.
|
|
150
|
-
*/
|
|
151
|
-
declare class MatFabButton extends MatButtonBase {
|
|
152
|
-
private _options;
|
|
153
|
-
_isFab: boolean;
|
|
154
|
-
extended: boolean;
|
|
155
|
-
constructor(...args: unknown[]);
|
|
156
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatFabButton, never>;
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", ["matButton", "matAnchor"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
158
|
-
static ngAcceptInputType_extended: unknown;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Material Design mini floating action button (FAB) component. These buttons represent the primary
|
|
162
|
-
* or most common action for users to interact with.
|
|
163
|
-
* See https://m3.material.io/components/floating-action-button/overview
|
|
164
|
-
*/
|
|
165
|
-
declare class MatMiniFabButton extends MatButtonBase {
|
|
166
|
-
private _options;
|
|
167
|
-
_isFab: boolean;
|
|
168
|
-
constructor(...args: unknown[]);
|
|
169
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabButton, never>;
|
|
170
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Material Design floating action button (FAB) component for anchor elements. Anchor elements
|
|
174
|
-
* are used to provide links for the user to navigate across different routes or pages.
|
|
175
|
-
* See https://m3.material.io/components/floating-action-button/overview
|
|
176
|
-
*
|
|
177
|
-
* The `MatFabAnchor` class has two appearances: normal and extended.
|
|
178
|
-
*/
|
|
179
|
-
declare const MatFabAnchor: typeof MatFabButton;
|
|
180
|
-
type MatFabAnchor = MatFabButton;
|
|
181
|
-
/**
|
|
182
|
-
* Material Design mini floating action button (FAB) component for anchor elements. Anchor elements
|
|
183
|
-
* are used to provide links for the user to navigate across different routes or pages.
|
|
184
|
-
* See https://m3.material.io/components/floating-action-button/overview
|
|
185
|
-
*/
|
|
186
|
-
declare const MatMiniFabAnchor: typeof MatMiniFabButton;
|
|
187
|
-
type MatMiniFabAnchor = MatMiniFabButton;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Material Design icon button component. This type of button displays a single interactive icon for
|
|
191
|
-
* users to perform an action.
|
|
192
|
-
* See https://material.io/develop/web/components/buttons/icon-buttons/
|
|
193
|
-
*/
|
|
194
|
-
declare class MatIconButton extends MatButtonBase {
|
|
195
|
-
constructor(...args: unknown[]);
|
|
196
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, never>;
|
|
197
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", ["matButton", "matAnchor"], {}, {}, never, ["*"], true, never>;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Material Design icon button component for anchor elements. This button displays a single
|
|
201
|
-
* interaction icon that allows users to navigate across different routes or pages.
|
|
202
|
-
* See https://material.io/develop/web/components/buttons/icon-buttons/
|
|
203
|
-
*/
|
|
204
|
-
declare const MatIconAnchor: typeof MatIconButton;
|
|
205
|
-
type MatIconAnchor = MatIconButton;
|
|
206
|
-
|
|
207
|
-
declare class MatButtonModule {
|
|
208
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonModule, never>;
|
|
209
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonModule, never, [typeof MatCommonModule, typeof MatRippleModule, typeof MatButton, typeof MatMiniFabButton, typeof MatIconButton, typeof MatFabButton], [typeof MatCommonModule, typeof MatButton, typeof MatMiniFabButton, typeof MatIconButton, typeof MatFabButton]>;
|
|
210
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatButtonModule>;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export { MAT_BUTTON_CONFIG as M, MatButton as c, MatAnchor as d, MAT_FAB_DEFAULT_OPTIONS as f, MAT_FAB_DEFAULT_OPTIONS_FACTORY as g, MatFabButton as h, MatMiniFabButton as i, MatFabAnchor as j, MatMiniFabAnchor as k, MatIconButton as l, MatIconAnchor as m, MatButtonModule as n };
|
|
214
|
-
export type { MatButtonAppearance as a, MatButtonConfig as b, MatFabDefaultOptions as e };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { O as OptionHarnessFilters, M as MatOptionHarness } from './option-harness.d-4f143bc0.js';
|
|
3
|
-
|
|
4
|
-
interface OptgroupHarnessFilters extends BaseHarnessFilters {
|
|
5
|
-
labelText?: string | RegExp;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/** Harness for interacting with a `mat-optgroup` in tests. */
|
|
9
|
-
declare class MatOptgroupHarness extends ComponentHarness {
|
|
10
|
-
/** Selector used to locate option group instances. */
|
|
11
|
-
static hostSelector: string;
|
|
12
|
-
private _label;
|
|
13
|
-
/**
|
|
14
|
-
* Gets a `HarnessPredicate` that can be used to search for a option group with specific
|
|
15
|
-
* attributes.
|
|
16
|
-
* @param options Options for filtering which option instances are considered a match.
|
|
17
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
18
|
-
*/
|
|
19
|
-
static with<T extends MatOptgroupHarness>(this: ComponentHarnessConstructor<T>, options?: OptgroupHarnessFilters): HarnessPredicate<T>;
|
|
20
|
-
/** Gets the option group's label text. */
|
|
21
|
-
getLabelText(): Promise<string>;
|
|
22
|
-
/** Gets whether the option group is disabled. */
|
|
23
|
-
isDisabled(): Promise<boolean>;
|
|
24
|
-
/**
|
|
25
|
-
* Gets the options that are inside the group.
|
|
26
|
-
* @param filter Optionally filters which options are included.
|
|
27
|
-
*/
|
|
28
|
-
getOptions(filter?: OptionHarnessFilters): Promise<MatOptionHarness[]>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { MatOptgroupHarness as M };
|
|
32
|
-
export type { OptgroupHarnessFilters as O };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { BaseHarnessFilters, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { O as OptionHarnessFilters, M as MatOptionHarness } from './option-harness.d-4f143bc0.js';
|
|
3
|
-
import { O as OptgroupHarnessFilters, M as MatOptgroupHarness } from './optgroup-harness.d-c52f5a8b.js';
|
|
4
|
-
import { M as MatFormFieldControlHarness } from './form-field-control-harness.d-e3cf007b.js';
|
|
5
|
-
|
|
6
|
-
/** A set of criteria that can be used to filter a list of `MatSelectHarness` instances. */
|
|
7
|
-
interface SelectHarnessFilters extends BaseHarnessFilters {
|
|
8
|
-
/** Only find instances which match the given disabled state. */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/** Harness for interacting with a mat-select in tests. */
|
|
13
|
-
declare class MatSelectHarness extends MatFormFieldControlHarness {
|
|
14
|
-
static hostSelector: string;
|
|
15
|
-
private _prefix;
|
|
16
|
-
private _optionClass;
|
|
17
|
-
private _optionGroupClass;
|
|
18
|
-
private _documentRootLocator;
|
|
19
|
-
private _backdrop;
|
|
20
|
-
/**
|
|
21
|
-
* Gets a `HarnessPredicate` that can be used to search for a select with specific attributes.
|
|
22
|
-
* @param options Options for filtering which select instances are considered a match.
|
|
23
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
24
|
-
*/
|
|
25
|
-
static with<T extends MatSelectHarness>(this: ComponentHarnessConstructor<T>, options?: SelectHarnessFilters): HarnessPredicate<T>;
|
|
26
|
-
/** Gets a boolean promise indicating if the select is disabled. */
|
|
27
|
-
isDisabled(): Promise<boolean>;
|
|
28
|
-
/** Gets a boolean promise indicating if the select is valid. */
|
|
29
|
-
isValid(): Promise<boolean>;
|
|
30
|
-
/** Gets a boolean promise indicating if the select is required. */
|
|
31
|
-
isRequired(): Promise<boolean>;
|
|
32
|
-
/** Gets a boolean promise indicating if the select is empty (no value is selected). */
|
|
33
|
-
isEmpty(): Promise<boolean>;
|
|
34
|
-
/** Gets a boolean promise indicating if the select is in multi-selection mode. */
|
|
35
|
-
isMultiple(): Promise<boolean>;
|
|
36
|
-
/** Gets a promise for the select's value text. */
|
|
37
|
-
getValueText(): Promise<string>;
|
|
38
|
-
/** Focuses the select and returns a void promise that indicates when the action is complete. */
|
|
39
|
-
focus(): Promise<void>;
|
|
40
|
-
/** Blurs the select and returns a void promise that indicates when the action is complete. */
|
|
41
|
-
blur(): Promise<void>;
|
|
42
|
-
/** Whether the select is focused. */
|
|
43
|
-
isFocused(): Promise<boolean>;
|
|
44
|
-
/** Gets the options inside the select panel. */
|
|
45
|
-
getOptions(filter?: Omit<OptionHarnessFilters, 'ancestor'>): Promise<MatOptionHarness[]>;
|
|
46
|
-
/** Gets the groups of options inside the panel. */
|
|
47
|
-
getOptionGroups(filter?: Omit<OptgroupHarnessFilters, 'ancestor'>): Promise<MatOptgroupHarness[]>;
|
|
48
|
-
/** Gets whether the select is open. */
|
|
49
|
-
isOpen(): Promise<boolean>;
|
|
50
|
-
/** Opens the select's panel. */
|
|
51
|
-
open(): Promise<void>;
|
|
52
|
-
/**
|
|
53
|
-
* Clicks the options that match the passed-in filter. If the select is in multi-selection
|
|
54
|
-
* mode all options will be clicked, otherwise the harness will pick the first matching option.
|
|
55
|
-
*/
|
|
56
|
-
clickOptions(filter?: OptionHarnessFilters): Promise<void>;
|
|
57
|
-
/** Closes the select's panel. */
|
|
58
|
-
close(): Promise<void>;
|
|
59
|
-
/** Gets the selector that should be used to find this select's panel. */
|
|
60
|
-
private _getPanelSelector;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export { MatSelectHarness as M };
|
|
64
|
-
export type { SelectHarnessFilters as S };
|