@angular/material 20.0.0-next.8 → 20.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/index.d.ts +14 -12
- package/autocomplete/testing/index.d.ts +1 -1
- package/badge/index.d.ts +4 -4
- package/badge/testing/index.d.ts +2 -2
- package/{badge.d-BUeRGv1E.d.ts → badge.d-Cn81aRz4.d.ts} +5 -5
- package/bottom-sheet/index.d.ts +3 -3
- package/button/index.d.ts +9 -9
- package/button-toggle/index.d.ts +5 -5
- package/button-toggle/testing/index.d.ts +1 -1
- package/{button-toggle.d-cP94fe1M.d.ts → button-toggle.d-B_G01PhW.d.ts} +3 -3
- package/card/_m2-card.scss +3 -0
- package/card/_m3-card.scss +3 -0
- package/card/index.d.ts +2 -2
- package/checkbox/index.d.ts +6 -6
- package/checkbox/testing/index.d.ts +1 -1
- package/chips/index.d.ts +7 -7
- package/chips/testing/index.d.ts +1 -1
- package/{common-module.d-CUT8AqiB.d.ts → common-module.d-C8xzHJDr.d.ts} +2 -2
- package/core/index.d.ts +14 -14
- package/core/m2/_typography.scss +1 -1
- package/core/testing/index.d.ts +1 -1
- package/core/theming/_theming.scss +2 -2
- package/{date-adapter.d-DzP3EMeE.d.ts → date-adapter.d-CtKXIxk0.d.ts} +1 -1
- package/{date-range-input-harness.d-CJDdddpn.d.ts → date-range-input-harness.d-CaEyN8dT.d.ts} +2 -2
- package/datepicker/index.d.ts +18 -19
- package/datepicker/testing/index.d.ts +2 -2
- package/dialog/index.d.ts +4 -4
- package/dialog/testing/index.d.ts +5 -5
- package/{dialog.d-DSidcNPx.d.ts → dialog.d-hlN3f-Hk.d.ts} +9 -6
- package/divider/index.d.ts +1 -1
- package/{error-options.d-C1yXmo10.d.ts → error-options.d-CGdTZUYk.d.ts} +1 -1
- package/expansion/index.d.ts +1 -1
- package/fesm2022/{animation-DYWs964N.mjs → animation-DfMFjxHu.mjs} +2 -2
- package/fesm2022/animation-DfMFjxHu.mjs.map +1 -0
- package/fesm2022/autocomplete/testing.mjs +1 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +28 -27
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +6 -6
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +9 -7
- 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 +7 -7
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +9 -9
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +6 -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 +18 -18
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/{common-module-BTLyTce6.mjs → common-module-DZl8g1kc.mjs} +2 -2
- package/fesm2022/common-module-DZl8g1kc.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +1 -1
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +17 -17
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{date-formats-BQbO9F6H.mjs → date-formats-K6TQue-Y.mjs} +2 -2
- package/fesm2022/date-formats-K6TQue-Y.mjs.map +1 -0
- package/fesm2022/{date-range-input-harness-qhTX-DXo.mjs → date-range-input-harness-Bp1T4oUe.mjs} +2 -2
- package/fesm2022/date-range-input-harness-Bp1T4oUe.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +2 -2
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +34 -34
- 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.map +1 -1
- package/fesm2022/divider.mjs +2 -2
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/{error-options-f2L_D2TV.mjs → error-options-BWOa3B4G.mjs} +2 -2
- package/fesm2022/error-options-BWOa3B4G.mjs.map +1 -0
- package/fesm2022/{error-state-DAicm3pw.mjs → error-state-Dtb1IHM-.mjs} +2 -2
- package/fesm2022/error-state-Dtb1IHM-.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +4 -4
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +3 -3
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/{form-field-DXXhIBX2.mjs → form-field-B3aq6ikj.mjs} +21 -16
- package/fesm2022/form-field-B3aq6ikj.mjs.map +1 -0
- package/fesm2022/form-field.mjs +4 -4
- 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 +5 -5
- 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-DFWSaIX4.mjs → icon-button-DH8TBWWr.mjs} +8 -8
- package/fesm2022/icon-button-DH8TBWWr.mjs.map +1 -0
- package/fesm2022/{icon-registry-Fxi0B_pI.mjs → icon-registry-Bk5cM8Z5.mjs} +3 -3
- package/fesm2022/icon-registry-Bk5cM8Z5.mjs.map +1 -0
- package/fesm2022/icon.mjs +6 -6
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/{index-CYUgEsfZ.mjs → index-BHJ4tVIe.mjs} +6 -6
- package/fesm2022/index-BHJ4tVIe.mjs.map +1 -0
- package/fesm2022/{index-D7tf-UtR.mjs → index-D2rZ0V78.mjs} +4 -4
- package/fesm2022/index-D2rZ0V78.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +1 -1
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/{input-harness-CxVp_q3n.mjs → input-harness-oQzj5EsQ.mjs} +2 -2
- package/fesm2022/input-harness-oQzj5EsQ.mjs.map +1 -0
- package/fesm2022/{input-value-accessor-cp3A3zMa.mjs → input-value-accessor-D1GvPuqO.mjs} +2 -2
- package/fesm2022/input-value-accessor-D1GvPuqO.mjs.map +1 -0
- package/fesm2022/input.mjs +9 -9
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/{internal-form-field-Bq9jLDgy.mjs → internal-form-field-DVvKYBKJ.mjs} +3 -3
- package/fesm2022/internal-form-field-DVvKYBKJ.mjs.map +1 -0
- package/fesm2022/{line-DI2_SkWl.mjs → line-Dwrcg_t9.mjs} +3 -3
- package/fesm2022/line-Dwrcg_t9.mjs.map +1 -0
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +13 -13
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +17 -20
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-Bj-soMIE.mjs → module-B-ci3hbc.mjs} +25 -13
- package/fesm2022/module-B-ci3hbc.mjs.map +1 -0
- package/fesm2022/{module-D--0F7TW.mjs → module-D9IKGg_w.mjs} +20 -19
- package/fesm2022/module-D9IKGg_w.mjs.map +1 -0
- package/fesm2022/{module-erPKIVPj.mjs → module-X29xYsIk.mjs} +21 -21
- package/fesm2022/module-X29xYsIk.mjs.map +1 -0
- package/fesm2022/{module-BIHXUA0w.mjs → module-hX_hFZhs.mjs} +4 -4
- package/fesm2022/module-hX_hFZhs.mjs.map +1 -0
- package/fesm2022/{option-Ce_vIVuD.mjs → option-MOeehkAg.mjs} +6 -6
- package/fesm2022/option-MOeehkAg.mjs.map +1 -0
- package/fesm2022/{option-harness-D_dpAU04.mjs → option-harness-BFcc-M_4.mjs} +2 -2
- package/fesm2022/option-harness-BFcc-M_4.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +1 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +21 -21
- 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-rb5Qj2XH.mjs → pseudo-checkbox-BFGIaGxz.mjs} +4 -4
- package/fesm2022/pseudo-checkbox-BFGIaGxz.mjs.map +1 -0
- package/fesm2022/{pseudo-checkbox-module-B1fNUV1l.mjs → pseudo-checkbox-module-Dxth-mPi.mjs} +4 -4
- package/fesm2022/pseudo-checkbox-module-Dxth-mPi.mjs.map +1 -0
- package/fesm2022/{public-api-B95TI2uI.mjs → public-api-BoO5eSq-.mjs} +2 -2
- package/fesm2022/public-api-BoO5eSq-.mjs.map +1 -0
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +11 -11
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/{ripple-t-kasrhF.mjs → ripple-CuyVtN3V.mjs} +4 -4
- package/fesm2022/ripple-CuyVtN3V.mjs.map +1 -0
- package/fesm2022/{ripple-loader-Fl6wuH86.mjs → ripple-loader-pOctSZby.mjs} +4 -4
- package/fesm2022/ripple-loader-pOctSZby.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +1 -1
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +14 -14
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +3 -3
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +10 -10
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +9 -9
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +11 -12
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +4 -4
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +16 -16
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/{structural-styles-BcST1BXh.mjs → structural-styles-CasigI3l.mjs} +3 -3
- package/fesm2022/structural-styles-CasigI3l.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +6 -8
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +21 -16
- 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 +18 -21
- 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/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +2 -2
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +5 -5
- package/form-field/testing/index.d.ts +3 -3
- package/{form-field-control.d-39fAGkWp.d.ts → form-field-control.d-DvB4ZVlf.d.ts} +1 -1
- package/{form-field.d-DeaA8Upo.d.ts → form-field.d-CIxjiZIX.d.ts} +10 -10
- package/grid-list/index.d.ts +2 -2
- package/icon/index.d.ts +4 -4
- package/icon/testing/index.d.ts +1 -1
- package/{icon-module.d-BeibE7j0.d.ts → icon-module.d-COXCrhrh.d.ts} +9 -9
- package/{icon-registry.d-DyR40vgq.d.ts → icon-registry.d-BVwP8t9_.d.ts} +2 -2
- package/{index.d-_XdEyDn3.d.ts → index.d-C5neTPvr.d.ts} +3 -3
- package/{index.d-osnm7rw7.d.ts → index.d-CikM2bbf.d.ts} +5 -5
- package/input/index.d.ts +9 -9
- package/input/testing/index.d.ts +1 -1
- package/{input-harness.d-C1zsmszC.d.ts → input-harness.d-8fkAAbu2.d.ts} +2 -2
- package/{line.d-OCn_JHOE.d.ts → line.d-C-QdueRc.d.ts} +2 -2
- package/list/index.d.ts +10 -10
- package/list/testing/index.d.ts +1 -1
- package/{list-option-types.d-BcmY3SsC.d.ts → list-option-types.d-77dQtwu8.d.ts} +1 -1
- package/menu/index.d.ts +8 -8
- package/{module.d-_FxAFBZR.d.ts → module.d-CDrqNC7Q.d.ts} +3 -3
- package/{module.d-D0Yb5xFi.d.ts → module.d-DZ8DPHcV.d.ts} +13 -13
- package/{module.d-Cym1ScGE.d.ts → module.d-m-qXd3m8.d.ts} +8 -7
- package/{option-harness.d-BpYClwei.d.ts → option-harness.d-IqsW95GR.d.ts} +2 -2
- package/{option-parent.d-CvnRKBST.d.ts → option-parent.d-CnYuuMkO.d.ts} +2 -2
- package/{option.d-ef4idHSb.d.ts → option.d-BVGX3edu.d.ts} +1 -1
- package/package.json +2 -2
- package/paginator/index.d.ts +16 -16
- package/paginator/testing/index.d.ts +3 -3
- package/{paginator.d-Ctdtnt7L.d.ts → paginator.d-Ci_wE-RV.d.ts} +7 -7
- package/{palette.d-fF1us9u8.d.ts → palette.d-BSSFKjO6.d.ts} +1 -1
- 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/index.d.ts +6 -6
- package/progress-spinner/index.d.ts +4 -4
- package/progress-spinner/testing/index.d.ts +2 -2
- package/{progress-spinner.d-DRWEU4qb.d.ts → progress-spinner.d-Lfz4Wh5x.d.ts} +7 -7
- package/{pseudo-checkbox-module.d-czRCRd5m.d.ts → pseudo-checkbox-module.d-BHmTZ10P.d.ts} +3 -3
- package/radio/index.d.ts +11 -11
- package/radio/testing/index.d.ts +2 -2
- package/{ripple-loader.d-DL-hT7NH.d.ts → ripple-loader.d-9me-KFSi.d.ts} +1 -1
- package/{ripple.d-DBFnJ3Aa.d.ts → ripple.d-BT30YVLB.d.ts} +3 -3
- package/schematics/ng-add/fonts/material-fonts.js +2 -2
- package/schematics/ng-add/fonts/material-fonts.js.map +1 -1
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/schema.json +4 -4
- package/schematics/ng-add/setup-project.js +4 -4
- package/schematics/ng-add/setup-project.js.map +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js +1 -1
- package/schematics/ng-add/theming/theming.js +5 -7
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +7 -0
- package/schematics/ng-generate/theme-color/index_bundled.js.map +1 -1
- package/select/index.d.ts +12 -12
- package/select/testing/index.d.ts +1 -1
- package/sidenav/index.d.ts +2 -2
- package/sidenav/testing/index.d.ts +1 -1
- package/slide-toggle/index.d.ts +6 -6
- package/slide-toggle/testing/index.d.ts +1 -1
- package/slider/index.d.ts +8 -8
- package/snack-bar/index.d.ts +7 -8
- package/sort/index.d.ts +4 -4
- package/sort/testing/index.d.ts +1 -1
- package/{sort-direction.d-Dlz8961P.d.ts → sort-direction.d-CF7VUsH-.d.ts} +1 -1
- package/{sort.d-CHu7FXsP.d.ts → sort.d-i-bF_IaU.d.ts} +4 -4
- package/stepper/_m3-stepper.scss +10 -0
- package/stepper/index.d.ts +12 -12
- package/table/index.d.ts +8 -8
- package/table/testing/index.d.ts +1 -1
- package/tabs/index.d.ts +14 -13
- package/timepicker/index.d.ts +2 -3
- package/timepicker/testing/index.d.ts +1 -1
- package/toolbar/index.d.ts +3 -3
- package/tooltip/index.d.ts +2 -2
- package/tree/index.d.ts +1 -1
- package/tree/testing/index.d.ts +1 -1
- package/fesm2022/animation-DYWs964N.mjs.map +0 -1
- package/fesm2022/common-module-BTLyTce6.mjs.map +0 -1
- package/fesm2022/date-formats-BQbO9F6H.mjs.map +0 -1
- package/fesm2022/date-range-input-harness-qhTX-DXo.mjs.map +0 -1
- package/fesm2022/error-options-f2L_D2TV.mjs.map +0 -1
- package/fesm2022/error-state-DAicm3pw.mjs.map +0 -1
- package/fesm2022/form-field-DXXhIBX2.mjs.map +0 -1
- package/fesm2022/icon-button-DFWSaIX4.mjs.map +0 -1
- package/fesm2022/icon-registry-Fxi0B_pI.mjs.map +0 -1
- package/fesm2022/index-CYUgEsfZ.mjs.map +0 -1
- package/fesm2022/index-D7tf-UtR.mjs.map +0 -1
- package/fesm2022/input-harness-CxVp_q3n.mjs.map +0 -1
- package/fesm2022/input-value-accessor-cp3A3zMa.mjs.map +0 -1
- package/fesm2022/internal-form-field-Bq9jLDgy.mjs.map +0 -1
- package/fesm2022/line-DI2_SkWl.mjs.map +0 -1
- package/fesm2022/module-BIHXUA0w.mjs.map +0 -1
- package/fesm2022/module-Bj-soMIE.mjs.map +0 -1
- package/fesm2022/module-D--0F7TW.mjs.map +0 -1
- package/fesm2022/module-erPKIVPj.mjs.map +0 -1
- package/fesm2022/option-Ce_vIVuD.mjs.map +0 -1
- package/fesm2022/option-harness-D_dpAU04.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-module-B1fNUV1l.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-rb5Qj2XH.mjs.map +0 -1
- package/fesm2022/public-api-B95TI2uI.mjs.map +0 -1
- package/fesm2022/ripple-loader-Fl6wuH86.mjs.map +0 -1
- package/fesm2022/ripple-t-kasrhF.mjs.map +0 -1
- package/fesm2022/structural-styles-BcST1BXh.mjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
2
|
import { BaseHarnessFilters, ContentContainerComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
-
import { DialogRole, MatDialog, MatDialogConfig, MatDialogRef } from '../../dialog.d-
|
|
3
|
+
import { D as DialogRole, e as MatDialog, g as MatDialogConfig, M as MatDialogRef } from '../../dialog.d-hlN3f-Hk.js';
|
|
4
4
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
5
5
|
import { OnDestroy } from '@angular/core';
|
|
6
6
|
import '@angular/cdk/bidi';
|
|
7
|
+
import '@angular/cdk/dialog';
|
|
7
8
|
import '@angular/cdk/a11y';
|
|
8
9
|
import 'rxjs';
|
|
9
|
-
import '@angular/cdk/dialog';
|
|
10
10
|
import '@angular/cdk/portal';
|
|
11
11
|
|
|
12
12
|
/** A set of criteria that can be used to filter a list of `MatDialogHarness` instances. */
|
|
@@ -29,9 +29,9 @@ declare class MatDialogHarness extends ContentContainerComponentHarness<MatDialo
|
|
|
29
29
|
* @return a `HarnessPredicate` configured with the given options.
|
|
30
30
|
*/
|
|
31
31
|
static with<T extends MatDialogHarness>(this: ComponentHarnessConstructor<T>, options?: DialogHarnessFilters): HarnessPredicate<T>;
|
|
32
|
-
protected _title:
|
|
33
|
-
protected _content:
|
|
34
|
-
protected _actions:
|
|
32
|
+
protected _title: () => Promise<_angular_cdk_testing.TestElement | null>;
|
|
33
|
+
protected _content: () => Promise<_angular_cdk_testing.TestElement | null>;
|
|
34
|
+
protected _actions: () => Promise<_angular_cdk_testing.TestElement | null>;
|
|
35
35
|
/** Gets the id of the dialog. */
|
|
36
36
|
getId(): Promise<string | null>;
|
|
37
37
|
/** Gets the role of the dialog. */
|
|
@@ -2,9 +2,9 @@ import { ScrollStrategy, ComponentType } from '@angular/cdk/overlay';
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { ViewContainerRef, Injector, OnDestroy, EventEmitter, ComponentRef, InjectionToken, TemplateRef } from '@angular/core';
|
|
4
4
|
import { Direction } from '@angular/cdk/bidi';
|
|
5
|
+
import { DialogConfig, CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
|
|
5
6
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
6
7
|
import { Observable, Subject } from 'rxjs';
|
|
7
|
-
import { CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
|
|
8
8
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
9
9
|
|
|
10
10
|
/** Options for where to set focus to automatically on dialog open */
|
|
@@ -50,6 +50,8 @@ declare class MatDialogConfig<D = any> {
|
|
|
50
50
|
backdropClass?: string | string[];
|
|
51
51
|
/** Whether the user can use escape or clicking on the backdrop to close the modal. */
|
|
52
52
|
disableClose?: boolean;
|
|
53
|
+
/** Function used to determine whether the dialog is allowed to close. */
|
|
54
|
+
closePredicate?: <Result = unknown, Component = unknown, Config extends DialogConfig = MatDialogConfig>(result: Result | undefined, config: Config, componentInstance: Component | null) => boolean;
|
|
53
55
|
/** Width of the dialog. */
|
|
54
56
|
width?: string;
|
|
55
57
|
/** Height of the dialog. */
|
|
@@ -58,7 +60,7 @@ declare class MatDialogConfig<D = any> {
|
|
|
58
60
|
minWidth?: number | string;
|
|
59
61
|
/** Min-height of the dialog. If a number is provided, assumes pixel units. */
|
|
60
62
|
minHeight?: number | string;
|
|
61
|
-
/** Max-width of the dialog. If a number is provided, assumes pixel units.
|
|
63
|
+
/** Max-width of the dialog. If a number is provided, assumes pixel units. */
|
|
62
64
|
maxWidth?: number | string;
|
|
63
65
|
/** Max-height of the dialog. If a number is provided, assumes pixel units. */
|
|
64
66
|
maxHeight?: number | string;
|
|
@@ -187,6 +189,7 @@ declare enum MatDialogState {
|
|
|
187
189
|
*/
|
|
188
190
|
declare class MatDialogRef<T, R = any> {
|
|
189
191
|
private _ref;
|
|
192
|
+
private _config;
|
|
190
193
|
_containerInstance: MatDialogContainer;
|
|
191
194
|
/** The instance of component opened into the dialog. */
|
|
192
195
|
componentInstance: T;
|
|
@@ -211,7 +214,7 @@ declare class MatDialogRef<T, R = any> {
|
|
|
211
214
|
private _state;
|
|
212
215
|
/** Interaction that caused the dialog to close. */
|
|
213
216
|
private _closeInteractionType;
|
|
214
|
-
constructor(_ref: DialogRef<R, T>,
|
|
217
|
+
constructor(_ref: DialogRef<R, T>, _config: MatDialogConfig, _containerInstance: MatDialogContainer);
|
|
215
218
|
/**
|
|
216
219
|
* Close the dialog.
|
|
217
220
|
* @param dialogResult Optional result to return to the dialog opener.
|
|
@@ -277,11 +280,11 @@ declare const MAT_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
|
277
280
|
* Service to open Material Design modal dialogs.
|
|
278
281
|
*/
|
|
279
282
|
declare class MatDialog implements OnDestroy {
|
|
280
|
-
private _overlay;
|
|
281
283
|
private _defaultOptions;
|
|
282
284
|
private _scrollStrategy;
|
|
283
285
|
private _parentDialog;
|
|
284
286
|
private _idGenerator;
|
|
287
|
+
private _injector;
|
|
285
288
|
protected _dialog: Dialog;
|
|
286
289
|
private _animationsDisabled;
|
|
287
290
|
private readonly _openDialogsAtThisLevel;
|
|
@@ -332,5 +335,5 @@ declare class MatDialog implements OnDestroy {
|
|
|
332
335
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatDialog>;
|
|
333
336
|
}
|
|
334
337
|
|
|
335
|
-
export { MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS, MAT_DIALOG_SCROLL_STRATEGY, MatDialog, MatDialogConfig
|
|
336
|
-
export type { AutoFocusTarget
|
|
338
|
+
export { MatDialogRef as M, _closeDialogVia as _, MatDialogContainer as a, MAT_DIALOG_DATA as b, MAT_DIALOG_DEFAULT_OPTIONS as c, MAT_DIALOG_SCROLL_STRATEGY as d, MatDialog as e, MatDialogConfig as g, MatDialogState as h };
|
|
339
|
+
export type { AutoFocusTarget as A, DialogRole as D, DialogPosition as f };
|
package/divider/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { MatCommonModule } from '../common-module.d-
|
|
3
|
+
import { M as MatCommonModule } from '../common-module.d-C8xzHJDr.js';
|
|
4
4
|
import '@angular/cdk/bidi';
|
|
5
5
|
|
|
6
6
|
declare class MatDivider {
|
package/expansion/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, TemplateRef, AfterContentInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, ElementRef, AfterViewInit, QueryList } from '@angular/core';
|
|
3
|
-
import { MatCommonModule } from '../common-module.d-
|
|
3
|
+
import { M as MatCommonModule } from '../common-module.d-C8xzHJDr.js';
|
|
4
4
|
import * as i2 from '@angular/cdk/accordion';
|
|
5
5
|
import { CdkAccordion, CdkAccordionItem } from '@angular/cdk/accordion';
|
|
6
6
|
import * as i3 from '@angular/cdk/portal';
|
|
@@ -37,5 +37,5 @@ function _animationsDisabled() {
|
|
|
37
37
|
return mediaMatcher.matchMedia('(prefers-reduced-motion)').matches;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export { AnimationCurves
|
|
41
|
-
//# sourceMappingURL=animation-
|
|
40
|
+
export { AnimationCurves as A, MATERIAL_ANIMATIONS as M, _animationsDisabled as _, AnimationDurations as a };
|
|
41
|
+
//# sourceMappingURL=animation-DfMFjxHu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation-DfMFjxHu.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/core/animation/animation.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 {MediaMatcher} from '@angular/cdk/layout';\nimport {ANIMATION_MODULE_TYPE, inject, InjectionToken} from '@angular/core';\n\n/** Object used to configure the animation in Angular Material. */\nexport interface AnimationsConfig {\n /** Whether all animations should be disabled. */\n animationsDisabled?: boolean;\n}\n\n/** Injection token used to configure the animations in Angular Material. */\nexport const MATERIAL_ANIMATIONS = new InjectionToken<AnimationsConfig>('MATERIAL_ANIMATIONS');\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationCurves {\n static STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';\n static DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';\n static ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';\n static SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';\n}\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationDurations {\n static COMPLEX = '375ms';\n static ENTERING = '225ms';\n static EXITING = '195ms';\n}\n\n/**\n * Returns whether animations have been disabled by DI. Must be called in a DI context.\n * @docs-private\n */\nexport function _animationsDisabled(): boolean {\n if (\n inject(MATERIAL_ANIMATIONS, {optional: true})?.animationsDisabled ||\n inject(ANIMATION_MODULE_TYPE, {optional: true}) === 'NoopAnimations'\n ) {\n return true;\n }\n\n const mediaMatcher = inject(MediaMatcher);\n return mediaMatcher.matchMedia('(prefers-reduced-motion)').matches;\n}\n"],"names":[],"mappings":";;;AAiBA;MACa,mBAAmB,GAAG,IAAI,cAAc,CAAmB,qBAAqB;AAE7F;;;;AAIG;MACU,eAAe,CAAA;AAC1B,IAAA,OAAO,cAAc,GAAG,6BAA6B;AACrD,IAAA,OAAO,kBAAkB,GAAG,6BAA6B;AACzD,IAAA,OAAO,kBAAkB,GAAG,2BAA2B;AACvD,IAAA,OAAO,WAAW,GAAG,6BAA6B;;AAGpD;;;;AAIG;MACU,kBAAkB,CAAA;AAC7B,IAAA,OAAO,OAAO,GAAG,OAAO;AACxB,IAAA,OAAO,QAAQ,GAAG,OAAO;AACzB,IAAA,OAAO,OAAO,GAAG,OAAO;;AAG1B;;;AAGG;SACa,mBAAmB,GAAA;IACjC,IACE,MAAM,CAAC,mBAAmB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,kBAAkB;AACjE,QAAA,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,KAAK,gBAAgB,EACpE;AACA,QAAA,OAAO,IAAI;;AAGb,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IACzC,OAAO,YAAY,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,OAAO;AACpE;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
2
2
|
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
-
import { MatOptionHarness } from '../option-harness-
|
|
3
|
+
import { M as MatOptionHarness } from '../option-harness-BFcc-M_4.mjs';
|
|
4
4
|
import { MatOptgroupHarness } from '../core/testing.mjs';
|
|
5
5
|
|
|
6
6
|
class MatAutocompleteHarness extends ComponentHarness {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.mjs","sources":["../../../../../../
|
|
1
|
+
{"version":3,"file":"testing.mjs","sources":["../../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/autocomplete/testing/autocomplete-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 {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n TestElement,\n} from '@angular/cdk/testing';\nimport {\n MatOptgroupHarness,\n MatOptionHarness,\n OptgroupHarnessFilters,\n OptionHarnessFilters,\n} from '../../core/testing';\nimport {AutocompleteHarnessFilters} from './autocomplete-harness-filters';\n\nexport class MatAutocompleteHarness extends ComponentHarness {\n private _documentRootLocator = this.documentRootLocatorFactory();\n\n /** The selector for the host element of a `MatAutocomplete` instance. */\n static hostSelector = '.mat-mdc-autocomplete-trigger';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for an autocomplete with specific\n * attributes.\n * @param options Options for filtering which autocomplete instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatAutocompleteHarness>(\n this: ComponentHarnessConstructor<T>,\n options: AutocompleteHarnessFilters = {},\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, options)\n .addOption('value', options.value, (harness, value) =>\n HarnessPredicate.stringMatches(harness.getValue(), value),\n )\n .addOption('disabled', options.disabled, async (harness, disabled) => {\n return (await harness.isDisabled()) === disabled;\n });\n }\n\n /** Gets the value of the autocomplete input. */\n async getValue(): Promise<string> {\n return (await this.host()).getProperty<string>('value');\n }\n\n /** Whether the autocomplete input is disabled. */\n async isDisabled(): Promise<boolean> {\n const disabled = (await this.host()).getAttribute('disabled');\n return coerceBooleanProperty(await disabled);\n }\n\n /** Focuses the autocomplete input. */\n async focus(): Promise<void> {\n return (await this.host()).focus();\n }\n\n /** Blurs the autocomplete input. */\n async blur(): Promise<void> {\n return (await this.host()).blur();\n }\n\n /** Whether the autocomplete input is focused. */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n\n /** Enters text into the autocomplete. */\n async enterText(value: string): Promise<void> {\n return (await this.host()).sendKeys(value);\n }\n\n /** Clears the input value. */\n async clear(): Promise<void> {\n return (await this.host()).clear();\n }\n\n /** Gets the options inside the autocomplete panel. */\n async getOptions(filters?: Omit<OptionHarnessFilters, 'ancestor'>): Promise<MatOptionHarness[]> {\n if (!(await this.isOpen())) {\n throw new Error('Unable to retrieve options for autocomplete. Autocomplete panel is closed.');\n }\n\n return this._documentRootLocator.locatorForAll(\n MatOptionHarness.with({\n ...(filters || {}),\n ancestor: await this._getPanelSelector(),\n } as OptionHarnessFilters),\n )();\n }\n\n /** Gets the option groups inside the autocomplete panel. */\n async getOptionGroups(\n filters?: Omit<OptgroupHarnessFilters, 'ancestor'>,\n ): Promise<MatOptgroupHarness[]> {\n if (!(await this.isOpen())) {\n throw new Error(\n 'Unable to retrieve option groups for autocomplete. Autocomplete panel is closed.',\n );\n }\n\n return this._documentRootLocator.locatorForAll(\n MatOptgroupHarness.with({\n ...(filters || {}),\n ancestor: await this._getPanelSelector(),\n } as OptgroupHarnessFilters),\n )();\n }\n\n /** Selects the first option matching the given filters. */\n async selectOption(filters: OptionHarnessFilters): Promise<void> {\n await this.focus(); // Focus the input to make sure the autocomplete panel is shown.\n const options = await this.getOptions(filters);\n if (!options.length) {\n throw Error(`Could not find a mat-option matching ${JSON.stringify(filters)}`);\n }\n await options[0].click();\n }\n\n /** Whether the autocomplete is open. */\n async isOpen(): Promise<boolean> {\n const panel = await this._getPanel();\n return !!panel && (await panel.hasClass(`mat-mdc-autocomplete-visible`));\n }\n\n /** Gets the panel associated with this autocomplete trigger. */\n private async _getPanel(): Promise<TestElement | null> {\n // Technically this is static, but it needs to be in a\n // function, because the autocomplete's panel ID can changed.\n return this._documentRootLocator.locatorForOptional(await this._getPanelSelector())();\n }\n\n /** Gets the selector that can be used to find the autocomplete trigger's panel. */\n protected async _getPanelSelector(): Promise<string> {\n return `#${await (await this.host()).getAttribute('aria-controls')}`;\n }\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { MatOption, MAT_OPTGROUP,
|
|
2
|
-
export { MatOptgroup } from './option-
|
|
1
|
+
import { c as MAT_OPTION_PARENT_COMPONENT, M as MatOption, d as MAT_OPTGROUP, e as MatOptionSelectionChange, _ as _countGroupLabelsBeforeOption, b as _getOptionScrollPosition } from './option-MOeehkAg.mjs';
|
|
2
|
+
export { a as MatOptgroup } from './option-MOeehkAg.mjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject, ChangeDetectorRef, ElementRef, EventEmitter,
|
|
4
|
+
import { InjectionToken, inject, ChangeDetectorRef, ElementRef, EventEmitter, booleanAttribute, TemplateRef, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, ContentChildren, Input, Output, Directive, forwardRef, Injector, EnvironmentInjector, ViewContainerRef, NgZone, Renderer2, afterNextRender, NgModule } from '@angular/core';
|
|
5
5
|
import { ViewportRuler, CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
6
|
-
import {
|
|
6
|
+
import { createRepositionScrollStrategy, createOverlayRef, OverlayConfig, createFlexibleConnectedPositionStrategy, OverlayModule } from '@angular/cdk/overlay';
|
|
7
7
|
import { _IdGenerator, ActiveDescendantKeyManager, removeAriaReferencedId, addAriaReferencedId } from '@angular/cdk/a11y';
|
|
8
8
|
import { Platform, _getFocusedElementPierceShadowDom, _getEventTarget } from '@angular/cdk/platform';
|
|
9
9
|
import { Subscription, Subject, merge, of, defer, Observable } from 'rxjs';
|
|
10
|
-
import { _animationsDisabled } from './animation-
|
|
10
|
+
import { _ as _animationsDisabled } from './animation-DfMFjxHu.mjs';
|
|
11
11
|
import { Directionality } from '@angular/cdk/bidi';
|
|
12
12
|
import { hasModifierKey, ESCAPE, ENTER, TAB, UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes';
|
|
13
13
|
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
14
14
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
15
|
+
import { coerceArray } from '@angular/cdk/coercion';
|
|
15
16
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
16
17
|
import { filter, map, startWith, switchMap, tap, delay, take } from 'rxjs/operators';
|
|
17
|
-
import { MAT_FORM_FIELD } from './form-field-
|
|
18
|
-
import { MatOptionModule } from './index-
|
|
19
|
-
import { MatCommonModule } from './common-module-
|
|
20
|
-
import './ripple-
|
|
21
|
-
import '@angular/cdk/coercion';
|
|
18
|
+
import { h as MAT_FORM_FIELD } from './form-field-B3aq6ikj.mjs';
|
|
19
|
+
import { M as MatOptionModule } from './index-BHJ4tVIe.mjs';
|
|
20
|
+
import { M as MatCommonModule } from './common-module-DZl8g1kc.mjs';
|
|
21
|
+
import './ripple-CuyVtN3V.mjs';
|
|
22
22
|
import '@angular/cdk/private';
|
|
23
|
-
import './pseudo-checkbox-
|
|
24
|
-
import './structural-styles-
|
|
23
|
+
import './pseudo-checkbox-BFGIaGxz.mjs';
|
|
24
|
+
import './structural-styles-CasigI3l.mjs';
|
|
25
25
|
import '@angular/common';
|
|
26
26
|
import '@angular/cdk/observers/private';
|
|
27
|
-
import './index-
|
|
28
|
-
import './pseudo-checkbox-module-
|
|
27
|
+
import './index-D2rZ0V78.mjs';
|
|
28
|
+
import './pseudo-checkbox-module-Dxth-mPi.mjs';
|
|
29
29
|
|
|
30
30
|
/** Event object that is emitted when an autocomplete option is selected. */
|
|
31
31
|
class MatAutocompleteSelectedEvent {
|
|
@@ -240,13 +240,13 @@ class MatAutocomplete {
|
|
|
240
240
|
return false;
|
|
241
241
|
}
|
|
242
242
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatAutocomplete, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
243
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.0.0-next.5", type: MatAutocomplete, isStandalone: true, selector: "mat-autocomplete", inputs: { ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], displayWith: "displayWith", autoActiveFirstOption: ["autoActiveFirstOption", "autoActiveFirstOption", booleanAttribute], autoSelectActiveOption: ["autoSelectActiveOption", "autoSelectActiveOption", booleanAttribute], requireSelection: ["requireSelection", "requireSelection", booleanAttribute], panelWidth: "panelWidth", disableRipple: ["disableRipple", "disableRipple", booleanAttribute], classList: ["class", "classList"], hideSingleSelectionIndicator: ["hideSingleSelectionIndicator", "hideSingleSelectionIndicator", booleanAttribute] }, outputs: { optionSelected: "optionSelected", opened: "opened", closed: "closed", optionActivated: "optionActivated" }, host: { classAttribute: "mat-mdc-autocomplete" }, providers: [{ provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatAutocomplete }], queries: [{ propertyName: "options", predicate: MatOption, descendants: true }, { propertyName: "optionGroups", predicate: MAT_OPTGROUP, descendants: true }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true }], exportAs: ["matAutocomplete"], ngImport: i0, template: "<ng-template let-formFieldId=\"id\">\n <div\n class=\"mat-mdc-autocomplete-panel mdc-menu-surface mdc-menu-surface--open\"\n role=\"listbox\"\n [id]=\"id\"\n [class]=\"_classList\"\n [class.mat-mdc-autocomplete-visible]=\"showPanel\"\n [class.mat-mdc-autocomplete-hidden]=\"!showPanel\"\n [class.mat-autocomplete-panel-animations-enabled]=\"!_animationsDisabled\"\n [class.mat-primary]=\"_color === 'primary'\"\n [class.mat-accent]=\"_color === 'accent'\"\n [class.mat-warn]=\"_color === 'warn'\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"_getPanelAriaLabelledby(formFieldId)\"\n #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: ["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:
|
|
243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.0.0-next.5", type: MatAutocomplete, isStandalone: true, selector: "mat-autocomplete", inputs: { ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], displayWith: "displayWith", autoActiveFirstOption: ["autoActiveFirstOption", "autoActiveFirstOption", booleanAttribute], autoSelectActiveOption: ["autoSelectActiveOption", "autoSelectActiveOption", booleanAttribute], requireSelection: ["requireSelection", "requireSelection", booleanAttribute], panelWidth: "panelWidth", disableRipple: ["disableRipple", "disableRipple", booleanAttribute], classList: ["class", "classList"], hideSingleSelectionIndicator: ["hideSingleSelectionIndicator", "hideSingleSelectionIndicator", booleanAttribute] }, outputs: { optionSelected: "optionSelected", opened: "opened", closed: "closed", optionActivated: "optionActivated" }, host: { classAttribute: "mat-mdc-autocomplete" }, providers: [{ provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatAutocomplete }], queries: [{ propertyName: "options", predicate: MatOption, descendants: true }, { propertyName: "optionGroups", predicate: MAT_OPTGROUP, descendants: true }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true }], exportAs: ["matAutocomplete"], ngImport: i0, template: "<ng-template let-formFieldId=\"id\">\n <div\n class=\"mat-mdc-autocomplete-panel mdc-menu-surface mdc-menu-surface--open\"\n role=\"listbox\"\n [id]=\"id\"\n [class]=\"_classList\"\n [class.mat-mdc-autocomplete-visible]=\"showPanel\"\n [class.mat-mdc-autocomplete-hidden]=\"!showPanel\"\n [class.mat-autocomplete-panel-animations-enabled]=\"!_animationsDisabled\"\n [class.mat-primary]=\"_color === 'primary'\"\n [class.mat-accent]=\"_color === 'accent'\"\n [class.mat-warn]=\"_color === 'warn'\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"_getPanelAriaLabelledby(formFieldId)\"\n #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: ["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
244
244
|
}
|
|
245
245
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatAutocomplete, decorators: [{
|
|
246
246
|
type: Component,
|
|
247
247
|
args: [{ selector: 'mat-autocomplete', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'matAutocomplete', host: {
|
|
248
248
|
'class': 'mat-mdc-autocomplete',
|
|
249
|
-
}, providers: [{ provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatAutocomplete }], template: "<ng-template let-formFieldId=\"id\">\n <div\n class=\"mat-mdc-autocomplete-panel mdc-menu-surface mdc-menu-surface--open\"\n role=\"listbox\"\n [id]=\"id\"\n [class]=\"_classList\"\n [class.mat-mdc-autocomplete-visible]=\"showPanel\"\n [class.mat-mdc-autocomplete-hidden]=\"!showPanel\"\n [class.mat-autocomplete-panel-animations-enabled]=\"!_animationsDisabled\"\n [class.mat-primary]=\"_color === 'primary'\"\n [class.mat-accent]=\"_color === 'accent'\"\n [class.mat-warn]=\"_color === 'warn'\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"_getPanelAriaLabelledby(formFieldId)\"\n #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: ["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:
|
|
249
|
+
}, providers: [{ provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatAutocomplete }], template: "<ng-template let-formFieldId=\"id\">\n <div\n class=\"mat-mdc-autocomplete-panel mdc-menu-surface mdc-menu-surface--open\"\n role=\"listbox\"\n [id]=\"id\"\n [class]=\"_classList\"\n [class.mat-mdc-autocomplete-visible]=\"showPanel\"\n [class.mat-mdc-autocomplete-hidden]=\"!showPanel\"\n [class.mat-autocomplete-panel-animations-enabled]=\"!_animationsDisabled\"\n [class.mat-primary]=\"_color === 'primary'\"\n [class.mat-accent]=\"_color === 'accent'\"\n [class.mat-warn]=\"_color === 'warn'\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"_getPanelAriaLabelledby(formFieldId)\"\n #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: ["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"] }]
|
|
250
250
|
}], ctorParameters: () => [], propDecorators: { template: [{
|
|
251
251
|
type: ViewChild,
|
|
252
252
|
args: [TemplateRef, { static: true }]
|
|
@@ -337,8 +337,8 @@ function getMatAutocompleteMissingPanelError() {
|
|
|
337
337
|
const MAT_AUTOCOMPLETE_SCROLL_STRATEGY = new InjectionToken('mat-autocomplete-scroll-strategy', {
|
|
338
338
|
providedIn: 'root',
|
|
339
339
|
factory: () => {
|
|
340
|
-
const
|
|
341
|
-
return () =>
|
|
340
|
+
const injector = inject(Injector);
|
|
341
|
+
return () => createRepositionScrollStrategy(injector);
|
|
342
342
|
},
|
|
343
343
|
});
|
|
344
344
|
/**
|
|
@@ -346,8 +346,9 @@ const MAT_AUTOCOMPLETE_SCROLL_STRATEGY = new InjectionToken('mat-autocomplete-sc
|
|
|
346
346
|
* @deprecated No longer used, will be removed.
|
|
347
347
|
* @breaking-change 21.0.0
|
|
348
348
|
*/
|
|
349
|
-
function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(
|
|
350
|
-
|
|
349
|
+
function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(_overlay) {
|
|
350
|
+
const injector = inject(Injector);
|
|
351
|
+
return () => createRepositionScrollStrategy(injector);
|
|
351
352
|
}
|
|
352
353
|
/**
|
|
353
354
|
* @docs-private
|
|
@@ -356,14 +357,14 @@ function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
|
356
357
|
*/
|
|
357
358
|
const MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
358
359
|
provide: MAT_AUTOCOMPLETE_SCROLL_STRATEGY,
|
|
359
|
-
deps: [
|
|
360
|
+
deps: [],
|
|
360
361
|
useFactory: MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY,
|
|
361
362
|
};
|
|
362
363
|
/** Base class with all of the `MatAutocompleteTrigger` functionality. */
|
|
363
364
|
class MatAutocompleteTrigger {
|
|
364
365
|
_environmentInjector = inject(EnvironmentInjector);
|
|
365
366
|
_element = inject(ElementRef);
|
|
366
|
-
|
|
367
|
+
_injector = inject(Injector);
|
|
367
368
|
_viewContainerRef = inject(ViewContainerRef);
|
|
368
369
|
_zone = inject(NgZone);
|
|
369
370
|
_changeDetectorRef = inject(ChangeDetectorRef);
|
|
@@ -413,6 +414,8 @@ class MatAutocompleteTrigger {
|
|
|
413
414
|
_pendingAutoselectedOption;
|
|
414
415
|
/** Stream of keyboard events that can close the panel. */
|
|
415
416
|
_closeKeyEventStream = new Subject();
|
|
417
|
+
/** Classes to apply to the panel. Exposed as a public property for internal usage. */
|
|
418
|
+
_overlayPanelClass = coerceArray(this._defaults?.overlayPanelClass || []);
|
|
416
419
|
/**
|
|
417
420
|
* Event handler for when the window is blurred. Needs to be an
|
|
418
421
|
* arrow function in order to preserve the context.
|
|
@@ -894,7 +897,7 @@ class MatAutocompleteTrigger {
|
|
|
894
897
|
this._portal = new TemplatePortal(this.autocomplete.template, this._viewContainerRef, {
|
|
895
898
|
id: this._formField?.getLabelId(),
|
|
896
899
|
});
|
|
897
|
-
overlayRef = this.
|
|
900
|
+
overlayRef = createOverlayRef(this._injector, this._getOverlayConfig());
|
|
898
901
|
this._overlayRef = overlayRef;
|
|
899
902
|
this._viewportSubscription = this._viewportRuler.change().subscribe(() => {
|
|
900
903
|
if (this.panelOpen && overlayRef) {
|
|
@@ -1000,15 +1003,13 @@ class MatAutocompleteTrigger {
|
|
|
1000
1003
|
direction: this._dir ?? undefined,
|
|
1001
1004
|
hasBackdrop: this._defaults?.hasBackdrop,
|
|
1002
1005
|
backdropClass: this._defaults?.backdropClass,
|
|
1003
|
-
panelClass: this.
|
|
1006
|
+
panelClass: this._overlayPanelClass,
|
|
1004
1007
|
disableAnimations: this._animationsDisabled,
|
|
1005
1008
|
});
|
|
1006
1009
|
}
|
|
1007
1010
|
_getOverlayPosition() {
|
|
1008
1011
|
// Set default Overlay Position
|
|
1009
|
-
const strategy = this.
|
|
1010
|
-
.position()
|
|
1011
|
-
.flexibleConnectedTo(this._getConnectedElement())
|
|
1012
|
+
const strategy = createFlexibleConnectedPositionStrategy(this._injector, this._getConnectedElement())
|
|
1012
1013
|
.withFlexibleDimensions(false)
|
|
1013
1014
|
.withPush(false);
|
|
1014
1015
|
this._setStrategyPositions(strategy);
|