@angular/material 20.0.0-next.1 → 20.0.0-next.10
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/_index.scss +1 -1
- package/autocomplete/_autocomplete-theme.scss +18 -18
- package/{core/tokens/m2/mat/_autocomplete.scss → autocomplete/_m2-autocomplete.scss} +7 -7
- package/{core/tokens/m3/mat/_autocomplete.scss → autocomplete/_m3-autocomplete.scss} +4 -4
- package/autocomplete/index.d.ts +20 -13
- package/autocomplete/testing/index.d.ts +4 -3
- package/badge/_badge-theme.scss +21 -21
- package/{core/tokens/m2/mat/_badge.scss → badge/_m2-badge.scss} +6 -6
- package/{core/tokens/m3/mat/_badge.scss → badge/_m3-badge.scss} +28 -27
- package/badge/index.d.ts +5 -5
- package/badge/testing/index.d.ts +4 -3
- package/{badge.d-49a8a74b.d.ts → badge.d-D0iThVg0.d.ts} +4 -3
- package/bottom-sheet/_bottom-sheet-theme.scss +15 -15
- package/{core/tokens/m2/mat/_bottom-sheet.scss → bottom-sheet/_m2-bottom-sheet.scss} +6 -6
- package/{core/tokens/m3/mat/_bottom-sheet.scss → bottom-sheet/_m3-bottom-sheet.scss} +5 -5
- package/bottom-sheet/index.d.ts +6 -3
- package/bottom-sheet/testing/index.d.ts +2 -1
- package/button/_button-theme.scss +34 -333
- package/button/_fab-theme.scss +23 -128
- package/button/_icon-button-theme.scss +29 -36
- package/button/_m2-button.scss +249 -0
- package/button/_m2-fab.scss +132 -0
- package/{core/tokens/m2/mat/_icon-button.scss → button/_m2-icon-button.scss} +35 -26
- package/button/_m3-button.scss +260 -0
- package/button/_m3-fab.scss +187 -0
- package/{core/tokens/m3/mat/_icon-button.scss → button/_m3-icon-button.scss} +32 -7
- package/button/index.d.ts +215 -8
- package/button/testing/index.d.ts +10 -2
- package/button-toggle/_button-toggle-theme.scss +26 -44
- package/{core/tokens/m2/mat/_standard-button-toggle.scss → button-toggle/_m2-button-toggle.scss} +40 -20
- package/{core/tokens/m3/mat/_standard-button-toggle.scss → button-toggle/_m3-button-toggle.scss} +24 -9
- package/button-toggle/index.d.ts +6 -6
- package/button-toggle/testing/index.d.ts +3 -2
- package/{button-toggle.d-edc8acff.d.ts → button-toggle.d-B_G01PhW.d.ts} +3 -2
- package/card/_card-theme.scss +18 -70
- package/{core/tokens/m2/mat/_card.scss → card/_m2-card.scss} +20 -18
- package/card/_m3-card.scss +48 -0
- package/card/index.d.ts +4 -3
- package/card/testing/index.d.ts +2 -1
- package/checkbox/_checkbox-theme.scss +30 -52
- package/{core/tokens/m2/mdc/_checkbox.scss → checkbox/_m2-checkbox.scss} +31 -53
- package/checkbox/_m3-checkbox.scss +103 -0
- package/checkbox/index.d.ts +5 -4
- package/checkbox/testing/index.d.ts +2 -1
- package/chips/_chips-theme.scss +24 -67
- package/chips/_m2-chip.scss +127 -0
- package/chips/_m3-chip.scss +129 -0
- package/chips/index.d.ts +31 -7
- package/chips/testing/index.d.ts +2 -1
- package/{common-module.d-0e6515ae.d.ts → common-module.d-C8xzHJDr.d.ts} +2 -1
- package/core/_core-theme.scss +34 -54
- package/core/_core.scss +6 -6
- package/core/{tokens/m2/mat/_app.scss → _m2-app.scss} +8 -7
- package/core/{tokens/m3/mat/_app.scss → _m3-app.scss} +4 -4
- package/core/density/private/_all-density.scss +38 -38
- package/core/index.d.ts +28 -15
- package/core/m2/_theming.scss +68 -44
- package/core/{tokens/m2/mat/_optgroup.scss → option/_m2-optgroup.scss} +6 -6
- package/core/{tokens/m2/mat/_option.scss → option/_m2-option.scss} +6 -6
- package/core/{tokens/m3/mat/_optgroup.scss → option/_m3-optgroup.scss} +4 -4
- package/core/option/_m3-option.scss +57 -0
- package/core/option/_optgroup-theme.scss +10 -14
- package/core/option/_option-theme.scss +14 -22
- package/core/{tokens/m2/mat/_ripple.scss → ripple/_m2-ripple.scss} +6 -6
- package/core/{tokens/m3/mat/_ripple.scss → ripple/_m3-ripple.scss} +3 -3
- package/core/ripple/_ripple-theme.scss +15 -15
- package/core/ripple/_ripple.scss +3 -4
- package/core/{tokens/m2/mat/_full-pseudo-checkbox.scss → selection/pseudo-checkbox/_m2-pseudo-checkbox.scss} +15 -13
- package/core/selection/pseudo-checkbox/_m3-pseudo-checkbox.scss +49 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +10 -38
- package/core/testing/index.d.ts +32 -3
- package/core/theming/_color-api-backwards-compatibility.scss +19 -8
- package/core/theming/_definition.scss +2 -3
- package/core/theming/_inspection.scss +3 -2
- package/core/tokens/_m2-tokens.scss +131 -0
- package/core/tokens/_m2-utils.scss +109 -0
- package/core/tokens/_m3-system.scss +67 -27
- package/core/tokens/_m3-tokens.scss +113 -33
- package/core/tokens/_m3-utils.scss +85 -0
- package/core/tokens/_token-utils.scss +69 -67
- package/core/tokens/m3/_index.scss +8 -163
- package/core/tokens/m3/{definitions/_md-sys-color.scss → _md-sys-color.scss} +44 -2
- package/core/tokens/m3/{definitions/_md-sys-typescale.scss → _md-sys-typescale.scss} +20 -1
- package/{date-range-input-harness.d-549a9f7e.d.ts → date-range-input-harness.d-CaEyN8dT.d.ts} +3 -2
- package/datepicker/_datepicker-theme.scss +27 -42
- package/{core/tokens/m2/mat/_datepicker.scss → datepicker/_m2-datepicker.scss} +7 -7
- package/{core/tokens/m3/mat/_datepicker.scss → datepicker/_m3-datepicker.scss} +13 -11
- package/datepicker/index.d.ts +25 -20
- package/datepicker/testing/index.d.ts +4 -4
- package/dialog/_dialog-theme.scss +12 -39
- package/{core/tokens/m2/mdc/_dialog.scss → dialog/_m2-dialog.scss} +21 -50
- package/dialog/_m3-dialog.scss +47 -0
- package/dialog/index.d.ts +4 -4
- package/dialog/testing/index.d.ts +4 -3
- package/{dialog.d-57867441.d.ts → dialog.d-DsYAn2Gk.d.ts} +9 -5
- package/divider/_divider-theme.scss +10 -14
- package/{core/tokens/m2/mat/_divider.scss → divider/_m2-divider.scss} +6 -6
- package/{core/tokens/m3/mat/_divider.scss → divider/_m3-divider.scss} +3 -3
- package/divider/index.d.ts +1 -1
- package/divider/testing/index.d.ts +15 -2
- package/expansion/_expansion-theme.scss +19 -22
- package/{core/tokens/m2/mat/_expansion.scss → expansion/_m2-expansion.scss} +7 -7
- package/{core/tokens/m3/mat/_expansion.scss → expansion/_m3-expansion.scss} +22 -8
- package/expansion/index.d.ts +3 -2
- package/expansion/testing/index.d.ts +2 -1
- package/fesm2022/animation-DfMFjxHu.mjs +41 -0
- package/fesm2022/animation-DfMFjxHu.mjs.map +1 -0
- package/fesm2022/autocomplete/testing.mjs +2 -2
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +50 -43
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +20 -18
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +31 -18
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs +34 -15
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +21 -19
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +219 -9
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +50 -48
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +19 -17
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs +7 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +101 -68
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/{common-module-2d64df09.mjs → common-module-DZl8g1kc.mjs} +5 -5
- package/fesm2022/common-module-DZl8g1kc.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +35 -3
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +30 -51
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{date-formats-b618acb8.mjs → date-formats-K6TQue-Y.mjs} +1 -1
- package/fesm2022/date-formats-K6TQue-Y.mjs.map +1 -0
- package/fesm2022/{date-range-input-harness-ee47cdb0.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 +3 -3
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +153 -142
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +4 -2
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +4 -2
- 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 +9 -9
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/{error-options-4a00765e.mjs → error-options-BWOa3B4G.mjs} +7 -7
- package/fesm2022/error-options-BWOa3B4G.mjs.map +1 -0
- package/fesm2022/{error-state-8f4ce1af.mjs → error-state-Dtb1IHM-.mjs} +1 -1
- package/fesm2022/error-state-Dtb1IHM-.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +34 -33
- 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-BZd6Vhww.mjs +1101 -0
- package/fesm2022/form-field-BZd6Vhww.mjs.map +1 -0
- package/fesm2022/form-field.mjs +6 -4
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +2 -2
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +30 -31
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +8 -9
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-4VvBKIK4.mjs +212 -0
- package/fesm2022/icon-button-4VvBKIK4.mjs.map +1 -0
- package/fesm2022/{icon-registry-13a3b98e.mjs → icon-registry-Bk5cM8Z5.mjs} +5 -6
- package/fesm2022/icon-registry-Bk5cM8Z5.mjs.map +1 -0
- package/fesm2022/icon.mjs +396 -9
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/{index-1763d3a6.mjs → index-BHJ4tVIe.mjs} +9 -9
- package/fesm2022/index-BHJ4tVIe.mjs.map +1 -0
- package/fesm2022/{index-4bc1d6d3.mjs → index-D2rZ0V78.mjs} +7 -7
- package/fesm2022/index-D2rZ0V78.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +2 -2
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/{input-harness-ed59decc.mjs → input-harness-oQzj5EsQ.mjs} +2 -2
- package/fesm2022/input-harness-oQzj5EsQ.mjs.map +1 -0
- package/fesm2022/{input-value-accessor-8a79a24e.mjs → input-value-accessor-D1GvPuqO.mjs} +1 -1
- package/fesm2022/input-value-accessor-D1GvPuqO.mjs.map +1 -0
- package/fesm2022/input.mjs +28 -34
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/{internal-form-field-434c4039.mjs → internal-form-field-DVvKYBKJ.mjs} +5 -5
- package/fesm2022/internal-form-field-DVvKYBKJ.mjs.map +1 -0
- package/fesm2022/{line-d6afe347.mjs → line-Dwrcg_t9.mjs} +9 -9
- package/fesm2022/line-Dwrcg_t9.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +68 -68
- 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 +40 -41
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-d757bba0.mjs → module-CTd5xD2i.mjs} +9 -8
- package/fesm2022/module-CTd5xD2i.mjs.map +1 -0
- package/fesm2022/{module-a5f9ab72.mjs → module-D-cNfopD.mjs} +56 -40
- package/fesm2022/module-D-cNfopD.mjs.map +1 -0
- package/fesm2022/{module-47e3be58.mjs → module-X29xYsIk.mjs} +33 -33
- package/fesm2022/module-X29xYsIk.mjs.map +1 -0
- package/fesm2022/{module-3bf2775f.mjs → module-qRXgbi2L.mjs} +50 -31
- package/fesm2022/module-qRXgbi2L.mjs.map +1 -0
- package/fesm2022/{option-07c3c660.mjs → option-MOeehkAg.mjs} +13 -13
- package/fesm2022/option-MOeehkAg.mjs.map +1 -0
- package/fesm2022/{option-harness-3b7c1106.mjs → option-harness-BFcc-M_4.mjs} +1 -1
- package/fesm2022/option-harness-BFcc-M_4.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -4
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +30 -28
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +13 -14
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +15 -15
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/{pseudo-checkbox-af5a4ea4.mjs → pseudo-checkbox-BFGIaGxz.mjs} +9 -8
- package/fesm2022/pseudo-checkbox-BFGIaGxz.mjs.map +1 -0
- package/fesm2022/{pseudo-checkbox-module-216fae38.mjs → pseudo-checkbox-module-Dxth-mPi.mjs} +7 -7
- package/fesm2022/pseudo-checkbox-module-Dxth-mPi.mjs.map +1 -0
- package/fesm2022/{public-api-c5ab57f5.mjs → public-api-BoO5eSq-.mjs} +1 -1
- package/fesm2022/public-api-BoO5eSq-.mjs.map +1 -0
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +20 -20
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/{ripple-9939d1f5.mjs → ripple-CuyVtN3V.mjs} +12 -11
- package/fesm2022/ripple-CuyVtN3V.mjs.map +1 -0
- package/fesm2022/{ripple-loader-f2078c66.mjs → ripple-loader-pOctSZby.mjs} +15 -18
- package/fesm2022/ripple-loader-pOctSZby.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +122 -5
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +15 -13
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +32 -31
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +17 -17
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +31 -28
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +47 -53
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +20 -18
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +46 -44
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/{structural-styles-d5ada3b3.mjs → structural-styles-CasigI3l.mjs} +5 -5
- package/fesm2022/structural-styles-CasigI3l.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +59 -61
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +82 -74
- 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 +43 -40
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -14
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +4 -2
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +27 -27
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +30 -97
- package/{core/tokens/m2/mat/_form-field.scss → form-field/_m2-form-field.scss} +94 -13
- package/form-field/_m3-form-field.scss +153 -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 +8 -8
- package/{form-field-control.d-eb86711c.d.ts → form-field-control.d-DvB4ZVlf.d.ts} +2 -0
- package/{form-field.d-2edbc094.d.ts → form-field.d-b9aHrR4I.d.ts} +17 -11
- package/grid-list/_grid-list-theme.scss +8 -10
- package/{core/tokens/m2/mat/_grid-list.scss → grid-list/_m2-grid-list.scss} +6 -6
- package/{core/tokens/m3/mat/_grid-list.scss → grid-list/_m3-grid-list.scss} +2 -2
- package/grid-list/index.d.ts +3 -4
- package/grid-list/testing/index.d.ts +2 -1
- package/icon/_icon-theme.scss +13 -13
- package/{core/tokens/m2/mat/_icon.scss → icon/_m2-icon.scss} +5 -5
- package/{core/tokens/m3/mat/_icon.scss → icon/_m3-icon.scss} +8 -6
- package/icon/index.d.ts +4 -4
- package/icon/testing/index.d.ts +3 -2
- package/{icon-module.d-aa3bbba0.d.ts → icon-module.d-sA1hmRKS.d.ts} +4 -3
- package/{icon-registry.d-1dffe9de.d.ts → icon-registry.d-BVwP8t9_.d.ts} +2 -1
- package/{index.d-0536b706.d.ts → index.d-C5neTPvr.d.ts} +2 -2
- package/{index.d-37e31cd3.d.ts → index.d-CikM2bbf.d.ts} +4 -4
- package/input/_input-theme.scss +1 -1
- package/input/index.d.ts +15 -11
- package/input/testing/index.d.ts +4 -3
- package/{input-harness.d-4eecd1d3.d.ts → input-harness.d-8fkAAbu2.d.ts} +3 -2
- package/{line.d-570a2537.d.ts → line.d-C-QdueRc.d.ts} +1 -1
- package/list/_list-theme.scss +41 -71
- package/list/_m2-list.scss +133 -0
- package/list/_m3-list.scss +92 -0
- package/list/index.d.ts +11 -11
- package/list/testing/index.d.ts +4 -3
- package/{core/tokens/m2/mat/_menu.scss → menu/_m2-menu.scss} +7 -7
- package/{core/tokens/m3/mat/_menu.scss → menu/_m3-menu.scss} +14 -17
- package/menu/_menu-theme.scss +12 -18
- package/menu/index.d.ts +10 -8
- package/menu/testing/index.d.ts +2 -1
- package/{module.d-c17c834e.d.ts → module.d-BGzxQfCs.d.ts} +2 -2
- package/{module.d-ba05faa6.d.ts → module.d-CH_8jCsD.d.ts} +17 -11
- package/{module.d-74a721b9.d.ts → module.d-m-qXd3m8.d.ts} +8 -5
- package/{option-harness.d-3d33fc9a.d.ts → option-harness.d-IqsW95GR.d.ts} +2 -1
- package/{option-parent.d-559ad5c5.d.ts → option-parent.d-CnYuuMkO.d.ts} +2 -1
- package/package.json +5 -2
- package/{core/tokens/m2/mat/_paginator.scss → paginator/_m2-paginator.scss} +7 -7
- package/{core/tokens/m3/mat/_paginator.scss → paginator/_m3-paginator.scss} +20 -4
- package/paginator/_paginator-theme.scss +17 -18
- package/paginator/index.d.ts +19 -19
- package/paginator/testing/index.d.ts +6 -5
- package/{paginator.d-40b1766e.d.ts → paginator.d-3kymf0wo.d.ts} +4 -3
- 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/{core/tokens/m2/mdc/_linear-progress.scss → progress-bar/_m2-progress-bar.scss} +7 -8
- package/{core/tokens/m3/mdc/_linear-progress.scss → progress-bar/_m3-progress-bar.scss} +11 -6
- package/progress-bar/_progress-bar-theme.scss +11 -11
- package/progress-bar/index.d.ts +4 -4
- package/progress-bar/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mdc/_tab-indicator.scss → progress-spinner/_m2-progress-spinner.scss} +10 -11
- package/{core/tokens/m3/mdc/_circular-progress.scss → progress-spinner/_m3-progress-spinner.scss} +10 -6
- package/progress-spinner/_progress-spinner-theme.scss +17 -17
- package/progress-spinner/index.d.ts +5 -5
- package/progress-spinner/testing/index.d.ts +4 -3
- package/{progress-spinner.d-1fc040c5.d.ts → progress-spinner.d-DtYCWeYd.d.ts} +3 -2
- package/{pseudo-checkbox-module.d-3abc0461.d.ts → pseudo-checkbox-module.d-BHmTZ10P.d.ts} +4 -3
- package/{core/tokens/m2/mdc/_radio.scss → radio/_m2-radio.scss} +28 -36
- package/radio/_m3-radio.scss +79 -0
- package/radio/_radio-theme.scss +27 -56
- package/radio/index.d.ts +6 -5
- package/radio/testing/index.d.ts +2 -1
- package/{ripple-loader.d-8aac2988.d.ts → ripple-loader.d-9me-KFSi.d.ts} +1 -1
- package/{ripple.d-2fb57d04.d.ts → ripple.d-BT30YVLB.d.ts} +3 -2
- package/schematics/ng-add/fonts/material-fonts.js +3 -3
- package/schematics/ng-add/fonts/material-fonts.js.map +1 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/package-config.js +1 -1
- package/schematics/ng-add/package-config.js.map +1 -0
- package/schematics/ng-add/schema.js +1 -1
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/setup-project.js +5 -5
- package/schematics/ng-add/setup-project.js.map +1 -0
- package/schematics/ng-add/theming/create-custom-theme.js +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +6 -8
- package/schematics/ng-add/theming/theming.js.map +1 -0
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-generate/address-form/index.js +1 -1
- package/schematics/ng-generate/address-form/index.js.map +1 -0
- package/schematics/ng-generate/address-form/schema.js +1 -1
- package/schematics/ng-generate/address-form/schema.js.map +1 -0
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/dashboard/index.js +1 -1
- package/schematics/ng-generate/dashboard/index.js.map +1 -0
- package/schematics/ng-generate/dashboard/schema.js +1 -1
- package/schematics/ng-generate/dashboard/schema.js.map +1 -0
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/navigation/index.js +1 -1
- package/schematics/ng-generate/navigation/index.js.map +1 -0
- package/schematics/ng-generate/navigation/schema.js +1 -1
- package/schematics/ng-generate/navigation/schema.js.map +1 -0
- package/schematics/ng-generate/table/index.js +1 -1
- package/schematics/ng-generate/table/index.js.map +1 -0
- package/schematics/ng-generate/table/schema.js +1 -1
- package/schematics/ng-generate/table/schema.js.map +1 -0
- package/schematics/ng-generate/theme-color/index_bundled.js +1711 -225
- package/schematics/ng-generate/theme-color/index_bundled.js.map +2 -3
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-generate/tree/index.js +1 -1
- package/schematics/ng-generate/tree/index.js.map +1 -0
- package/schematics/ng-generate/tree/schema.js +1 -1
- package/schematics/ng-generate/tree/schema.js.map +1 -0
- package/schematics/ng-update/index_bundled.js +3465 -4099
- package/schematics/ng-update/index_bundled.js.map +3 -4
- package/schematics/tsconfig.json +26 -0
- package/{core/tokens/m2/mat/_select.scss → select/_m2-select.scss} +11 -11
- package/{core/tokens/m3/mat/_select.scss → select/_m3-select.scss} +22 -7
- package/select/_select-theme.scss +30 -26
- package/select/index.d.ts +12 -12
- package/select/testing/index.d.ts +64 -5
- package/{core/tokens/m2/mat/_sidenav.scss → sidenav/_m2-sidenav.scss} +7 -7
- package/{core/tokens/m3/mat/_sidenav.scss → sidenav/_m3-sidenav.scss} +6 -6
- package/sidenav/_sidenav-theme.scss +12 -16
- package/sidenav/index.d.ts +4 -3
- package/sidenav/testing/index.d.ts +2 -1
- package/slide-toggle/_m2-slide-toggle.scss +167 -0
- package/slide-toggle/_m3-slide-toggle.scss +160 -0
- package/slide-toggle/_slide-toggle-theme.scss +55 -48
- package/slide-toggle/index.d.ts +4 -3
- package/slide-toggle/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mdc/_slider.scss → slider/_m2-slider.scss} +29 -68
- package/slider/_m3-slider.scss +121 -0
- package/slider/_slider-theme.scss +18 -53
- package/slider/index.d.ts +6 -5
- package/slider/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_snack-bar.scss → snack-bar/_m2-snack-bar.scss} +23 -8
- package/snack-bar/_m3-snack-bar.scss +25 -0
- package/snack-bar/_snack-bar-theme.scss +11 -30
- package/snack-bar/index.d.ts +14 -14
- package/snack-bar/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_sort.scss → sort/_m2-sort.scss} +6 -6
- package/{core/tokens/m3/mat/_sort.scss → sort/_m3-sort.scss} +2 -2
- package/sort/_sort-theme.scss +12 -18
- package/sort/index.d.ts +7 -7
- package/sort/testing/index.d.ts +3 -2
- package/{sort.d-c2b79a45.d.ts → sort.d-i-bF_IaU.d.ts} +3 -2
- package/{core/tokens/m2/mat/_stepper.scss → stepper/_m2-stepper.scss} +7 -34
- package/stepper/_m3-stepper.scss +102 -0
- package/stepper/_stepper-theme.scss +26 -21
- package/stepper/index.d.ts +9 -8
- package/stepper/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_table.scss → table/_m2-table.scss} +7 -7
- package/table/_m3-table.scss +44 -0
- package/table/_table-theme.scss +18 -22
- package/table/index.d.ts +7 -7
- package/table/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_tab-header.scss → tabs/_m2-tabs.scss} +42 -11
- package/tabs/_m3-tabs.scss +70 -0
- package/tabs/_tabs-theme.scss +47 -125
- package/tabs/index.d.ts +17 -10
- package/tabs/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_timepicker.scss → timepicker/_m2-timepicker.scss} +7 -7
- package/{core/tokens/m3/mat/_timepicker.scss → timepicker/_m3-timepicker.scss} +4 -4
- package/timepicker/_timepicker-theme.scss +18 -18
- package/timepicker/index.d.ts +4 -5
- package/timepicker/testing/index.d.ts +3 -2
- package/{core/tokens/m2/mat/_toolbar.scss → toolbar/_m2-toolbar.scss} +7 -7
- package/{core/tokens/m3/mat/_toolbar.scss → toolbar/_m3-toolbar.scss} +18 -4
- package/toolbar/_toolbar-theme.scss +26 -21
- package/toolbar/index.d.ts +1 -1
- package/toolbar/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mdc/_plain-tooltip.scss → tooltip/_m2-tooltip.scss} +7 -17
- package/tooltip/_m3-tooltip.scss +25 -0
- package/tooltip/_tooltip-theme.scss +18 -18
- package/tooltip/index.d.ts +2 -2
- package/tooltip/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_tree.scss → tree/_m2-tree.scss} +7 -7
- package/{core/tokens/m3/mat/_tree.scss → tree/_m3-tree.scss} +15 -2
- package/tree/_tree-theme.scss +19 -15
- package/tree/index.d.ts +1 -1
- package/tree/testing/index.d.ts +2 -1
- package/button/_button-base.scss +0 -181
- package/checkbox/_checkbox-common.scss +0 -585
- package/core/style/_button-common.scss +0 -17
- package/core/style/_form-common.scss +0 -21
- package/core/style/_list-common.scss +0 -49
- package/core/style/_menu-common.scss +0 -94
- package/core/theming/_palette-deprecated.scss +0 -76
- package/core/theming/_theming-deprecated.scss +0 -27
- package/core/tokens/_density.scss +0 -193
- package/core/tokens/_token-definition.scss +0 -273
- package/core/tokens/m2/_index.scss +0 -187
- package/core/tokens/m2/mat/_checkbox.scss +0 -50
- package/core/tokens/m2/mat/_chip.scss +0 -63
- package/core/tokens/m2/mat/_dialog.scss +0 -51
- package/core/tokens/m2/mat/_fab-small.scss +0 -108
- package/core/tokens/m2/mat/_fab.scss +0 -108
- package/core/tokens/m2/mat/_filled-button.scss +0 -102
- package/core/tokens/m2/mat/_legacy-button-toggle.scss +0 -59
- package/core/tokens/m2/mat/_list.scss +0 -44
- package/core/tokens/m2/mat/_minimal-pseudo-checkbox.scss +0 -43
- package/core/tokens/m2/mat/_outlined-button.scss +0 -88
- package/core/tokens/m2/mat/_protected-button.scss +0 -102
- package/core/tokens/m2/mat/_radio.scss +0 -52
- package/core/tokens/m2/mat/_slider.scss +0 -69
- package/core/tokens/m2/mat/_switch.scss +0 -76
- package/core/tokens/m2/mat/_tab-header-with-background.scss +0 -42
- package/core/tokens/m2/mat/_text-button.scss +0 -91
- package/core/tokens/m2/mdc/_chip.scss +0 -313
- package/core/tokens/m2/mdc/_circular-progress.scss +0 -61
- package/core/tokens/m2/mdc/_elevated-card.scss +0 -77
- package/core/tokens/m2/mdc/_extended-fab.scss +0 -87
- package/core/tokens/m2/mdc/_fab-small.scss +0 -92
- package/core/tokens/m2/mdc/_fab.scss +0 -93
- package/core/tokens/m2/mdc/_filled-button.scss +0 -124
- package/core/tokens/m2/mdc/_filled-text-field.scss +0 -181
- package/core/tokens/m2/mdc/_icon-button.scss +0 -91
- package/core/tokens/m2/mdc/_list.scss +0 -219
- package/core/tokens/m2/mdc/_outlined-button.scss +0 -124
- package/core/tokens/m2/mdc/_outlined-card.scss +0 -85
- package/core/tokens/m2/mdc/_outlined-text-field.scss +0 -163
- package/core/tokens/m2/mdc/_protected-button.scss +0 -129
- package/core/tokens/m2/mdc/_secondary-navigation-tab.scss +0 -87
- package/core/tokens/m2/mdc/_snack-bar.scss +0 -93
- package/core/tokens/m2/mdc/_switch.scss +0 -192
- package/core/tokens/m2/mdc/_text-button.scss +0 -98
- package/core/tokens/m3/definitions/_index.scss +0 -94
- package/core/tokens/m3/definitions/_md-comp-checkbox.scss +0 -120
- package/core/tokens/m3/definitions/_md-comp-circular-progress-indicator.scss +0 -27
- package/core/tokens/m3/definitions/_md-comp-data-table.scss +0 -90
- package/core/tokens/m3/definitions/_md-comp-dialog.scss +0 -123
- package/core/tokens/m3/definitions/_md-comp-elevated-button.scss +0 -87
- package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +0 -53
- package/core/tokens/m3/definitions/_md-comp-extended-fab-primary.scss +0 -90
- package/core/tokens/m3/definitions/_md-comp-extended-fab-secondary.scss +0 -91
- package/core/tokens/m3/definitions/_md-comp-extended-fab-tertiary.scss +0 -91
- package/core/tokens/m3/definitions/_md-comp-fab-primary-small.scss +0 -59
- package/core/tokens/m3/definitions/_md-comp-fab-primary.scss +0 -59
- package/core/tokens/m3/definitions/_md-comp-fab-secondary-small.scss +0 -60
- package/core/tokens/m3/definitions/_md-comp-fab-secondary.scss +0 -60
- package/core/tokens/m3/definitions/_md-comp-fab-tertiary-small.scss +0 -60
- package/core/tokens/m3/definitions/_md-comp-fab-tertiary.scss +0 -60
- package/core/tokens/m3/definitions/_md-comp-filled-button.scss +0 -85
- package/core/tokens/m3/definitions/_md-comp-filled-card.scss +0 -52
- package/core/tokens/m3/definitions/_md-comp-filled-icon-button.scss +0 -73
- package/core/tokens/m3/definitions/_md-comp-filled-text-field.scss +0 -189
- package/core/tokens/m3/definitions/_md-comp-icon-button.scss +0 -64
- package/core/tokens/m3/definitions/_md-comp-linear-progress-indicator.scss +0 -29
- package/core/tokens/m3/definitions/_md-comp-list.scss +0 -252
- package/core/tokens/m3/definitions/_md-comp-outlined-button.scss +0 -80
- package/core/tokens/m3/definitions/_md-comp-outlined-card.scss +0 -59
- package/core/tokens/m3/definitions/_md-comp-outlined-icon-button.scss +0 -73
- package/core/tokens/m3/definitions/_md-comp-outlined-text-field.scss +0 -171
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +0 -51
- package/core/tokens/m3/definitions/_md-comp-radio-button.scss +0 -62
- package/core/tokens/m3/definitions/_md-comp-secondary-navigation-tab.scss +0 -80
- package/core/tokens/m3/definitions/_md-comp-slider.scss +0 -110
- package/core/tokens/m3/definitions/_md-comp-snackbar.scss +0 -125
- package/core/tokens/m3/definitions/_md-comp-switch.scss +0 -130
- package/core/tokens/m3/definitions/_md-comp-text-button.scss +0 -73
- package/core/tokens/m3/definitions/unused/_md-comp-assist-chip.scss +0 -105
- package/core/tokens/m3/definitions/unused/_md-comp-badge.scss +0 -54
- package/core/tokens/m3/definitions/unused/_md-comp-banner.scss +0 -71
- package/core/tokens/m3/definitions/unused/_md-comp-bottom-app-bar.scss +0 -29
- package/core/tokens/m3/definitions/unused/_md-comp-carousel-item.scss +0 -59
- package/core/tokens/m3/definitions/unused/_md-comp-date-input-modal.scss +0 -87
- package/core/tokens/m3/definitions/unused/_md-comp-date-picker-docked.scss +0 -248
- package/core/tokens/m3/definitions/unused/_md-comp-date-picker-modal.scss +0 -313
- package/core/tokens/m3/definitions/unused/_md-comp-divider.scss +0 -19
- package/core/tokens/m3/definitions/unused/_md-comp-extended-fab-branded.scss +0 -82
- package/core/tokens/m3/definitions/unused/_md-comp-extended-fab-surface.scss +0 -86
- package/core/tokens/m3/definitions/unused/_md-comp-fab-branded-large.scss +0 -54
- package/core/tokens/m3/definitions/unused/_md-comp-fab-branded.scss +0 -54
- package/core/tokens/m3/definitions/unused/_md-comp-fab-primary-large.scss +0 -59
- package/core/tokens/m3/definitions/unused/_md-comp-fab-secondary-large.scss +0 -60
- package/core/tokens/m3/definitions/unused/_md-comp-fab-surface-large.scss +0 -58
- package/core/tokens/m3/definitions/unused/_md-comp-fab-surface-small.scss +0 -58
- package/core/tokens/m3/definitions/unused/_md-comp-fab-surface.scss +0 -58
- package/core/tokens/m3/definitions/unused/_md-comp-fab-tertiary-large.scss +0 -60
- package/core/tokens/m3/definitions/unused/_md-comp-filled-autocomplete.scss +0 -269
- package/core/tokens/m3/definitions/unused/_md-comp-filled-menu-button.scss +0 -94
- package/core/tokens/m3/definitions/unused/_md-comp-filled-select.scss +0 -274
- package/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-button.scss +0 -95
- package/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-icon-button.scss +0 -80
- package/core/tokens/m3/definitions/unused/_md-comp-filter-chip.scss +0 -205
- package/core/tokens/m3/definitions/unused/_md-comp-full-screen-dialog.scss +0 -109
- package/core/tokens/m3/definitions/unused/_md-comp-input-chip.scss +0 -180
- package/core/tokens/m3/definitions/unused/_md-comp-menu.scss +0 -31
- package/core/tokens/m3/definitions/unused/_md-comp-navigation-bar.scss +0 -110
- package/core/tokens/m3/definitions/unused/_md-comp-navigation-drawer.scss +0 -162
- package/core/tokens/m3/definitions/unused/_md-comp-navigation-rail.scss +0 -127
- package/core/tokens/m3/definitions/unused/_md-comp-outlined-autocomplete.scss +0 -259
- package/core/tokens/m3/definitions/unused/_md-comp-outlined-menu-button.scss +0 -90
- package/core/tokens/m3/definitions/unused/_md-comp-outlined-segmented-button.scss +0 -108
- package/core/tokens/m3/definitions/unused/_md-comp-outlined-select.scss +0 -264
- package/core/tokens/m3/definitions/unused/_md-comp-primary-navigation-tab.scss +0 -117
- package/core/tokens/m3/definitions/unused/_md-comp-rich-tooltip.scss +0 -121
- package/core/tokens/m3/definitions/unused/_md-comp-scrim.scss +0 -19
- package/core/tokens/m3/definitions/unused/_md-comp-search-bar.scss +0 -97
- package/core/tokens/m3/definitions/unused/_md-comp-search-view.scss +0 -91
- package/core/tokens/m3/definitions/unused/_md-comp-sheet-bottom.scss +0 -39
- package/core/tokens/m3/definitions/unused/_md-comp-sheet-floating.scss +0 -28
- package/core/tokens/m3/definitions/unused/_md-comp-sheet-side.scss +0 -87
- package/core/tokens/m3/definitions/unused/_md-comp-standard-menu-button.scss +0 -94
- package/core/tokens/m3/definitions/unused/_md-comp-suggestion-chip.scss +0 -121
- package/core/tokens/m3/definitions/unused/_md-comp-time-input.scss +0 -222
- package/core/tokens/m3/definitions/unused/_md-comp-time-picker.scss +0 -268
- package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-large.scss +0 -59
- package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-medium.scss +0 -59
- package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small-centered.scss +0 -62
- package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small.scss +0 -60
- package/core/tokens/m3/mat/_card.scss +0 -24
- package/core/tokens/m3/mat/_checkbox.scss +0 -26
- package/core/tokens/m3/mat/_chip.scss +0 -46
- package/core/tokens/m3/mat/_dialog.scss +0 -32
- package/core/tokens/m3/mat/_fab-small.scss +0 -50
- package/core/tokens/m3/mat/_fab.scss +0 -50
- package/core/tokens/m3/mat/_filled-button.scss +0 -54
- package/core/tokens/m3/mat/_form-field.scss +0 -59
- package/core/tokens/m3/mat/_full-pseudo-checkbox.scss +0 -42
- package/core/tokens/m3/mat/_list.scss +0 -19
- package/core/tokens/m3/mat/_minimal-pseudo-checkbox.scss +0 -33
- package/core/tokens/m3/mat/_option.scss +0 -55
- package/core/tokens/m3/mat/_outlined-button.scss +0 -54
- package/core/tokens/m3/mat/_protected-button.scss +0 -55
- package/core/tokens/m3/mat/_radio.scss +0 -45
- package/core/tokens/m3/mat/_slider.scss +0 -58
- package/core/tokens/m3/mat/_snack-bar.scss +0 -18
- package/core/tokens/m3/mat/_stepper.scss +0 -79
- package/core/tokens/m3/mat/_switch.scss +0 -56
- package/core/tokens/m3/mat/_tab-header.scss +0 -51
- package/core/tokens/m3/mat/_table.scss +0 -29
- package/core/tokens/m3/mat/_text-button.scss +0 -55
- package/core/tokens/m3/mdc/_checkbox.scss +0 -112
- package/core/tokens/m3/mdc/_chip.scss +0 -93
- package/core/tokens/m3/mdc/_dialog.scss +0 -23
- package/core/tokens/m3/mdc/_elevated-card.scss +0 -22
- package/core/tokens/m3/mdc/_extended-fab.scss +0 -42
- package/core/tokens/m3/mdc/_fab-small.scss +0 -41
- package/core/tokens/m3/mdc/_fab.scss +0 -39
- package/core/tokens/m3/mdc/_filled-button.scss +0 -86
- package/core/tokens/m3/mdc/_filled-text-field.scss +0 -91
- package/core/tokens/m3/mdc/_icon-button.scss +0 -60
- package/core/tokens/m3/mdc/_list.scss +0 -37
- package/core/tokens/m3/mdc/_outlined-button.scss +0 -84
- package/core/tokens/m3/mdc/_outlined-card.scss +0 -22
- package/core/tokens/m3/mdc/_outlined-text-field.scss +0 -86
- package/core/tokens/m3/mdc/_plain-tooltip.scss +0 -15
- package/core/tokens/m3/mdc/_protected-button.scss +0 -101
- package/core/tokens/m3/mdc/_radio.scss +0 -47
- package/core/tokens/m3/mdc/_secondary-navigation-tab.scss +0 -16
- package/core/tokens/m3/mdc/_slider.scss +0 -69
- package/core/tokens/m3/mdc/_snack-bar.scss +0 -15
- package/core/tokens/m3/mdc/_switch.scss +0 -82
- package/core/tokens/m3/mdc/_tab-indicator.scss +0 -34
- package/core/tokens/m3/mdc/_text-button.scss +0 -79
- package/core/typography/_typography-utils-deprecated.scss +0 -6
- package/datepicker/_datepicker-legacy-compat.scss +0 -85
- package/divider/_divider-offset.scss +0 -12
- package/divider-harness.d-d34fede4.d.ts +0 -14
- package/expansion/_expansion-variables.scss +0 -30
- package/fesm2022/common-module-2d64df09.mjs.map +0 -1
- package/fesm2022/date-formats-b618acb8.mjs.map +0 -1
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs.map +0 -1
- package/fesm2022/divider-harness-3394f29a.mjs +0 -18
- package/fesm2022/divider-harness-3394f29a.mjs.map +0 -1
- package/fesm2022/error-options-4a00765e.mjs.map +0 -1
- package/fesm2022/error-state-8f4ce1af.mjs.map +0 -1
- package/fesm2022/form-field-6d755764.mjs +0 -1076
- package/fesm2022/form-field-6d755764.mjs.map +0 -1
- package/fesm2022/form-field-control-harness-af6fd278.mjs +0 -11
- package/fesm2022/form-field-control-harness-af6fd278.mjs.map +0 -1
- package/fesm2022/icon-button-47f1b5d9.mjs +0 -248
- package/fesm2022/icon-button-47f1b5d9.mjs.map +0 -1
- package/fesm2022/icon-module-3f77a24d.mjs +0 -395
- package/fesm2022/icon-module-3f77a24d.mjs.map +0 -1
- package/fesm2022/icon-registry-13a3b98e.mjs.map +0 -1
- package/fesm2022/index-1763d3a6.mjs.map +0 -1
- package/fesm2022/index-4bc1d6d3.mjs.map +0 -1
- package/fesm2022/input-harness-ed59decc.mjs.map +0 -1
- package/fesm2022/input-value-accessor-8a79a24e.mjs.map +0 -1
- package/fesm2022/internal-form-field-434c4039.mjs.map +0 -1
- package/fesm2022/line-d6afe347.mjs.map +0 -1
- package/fesm2022/module-3bf2775f.mjs.map +0 -1
- package/fesm2022/module-47e3be58.mjs.map +0 -1
- package/fesm2022/module-a5f9ab72.mjs.map +0 -1
- package/fesm2022/module-d757bba0.mjs.map +0 -1
- package/fesm2022/module-df9f7af3.mjs +0 -152
- package/fesm2022/module-df9f7af3.mjs.map +0 -1
- package/fesm2022/optgroup-harness-5e66b138.mjs +0 -36
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +0 -1
- package/fesm2022/option-07c3c660.mjs.map +0 -1
- package/fesm2022/option-harness-3b7c1106.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs.map +0 -1
- package/fesm2022/public-api-c5ab57f5.mjs.map +0 -1
- package/fesm2022/ripple-9939d1f5.mjs.map +0 -1
- package/fesm2022/ripple-loader-f2078c66.mjs.map +0 -1
- package/fesm2022/select-harness-8c55824d.mjs +0 -123
- package/fesm2022/select-harness-8c55824d.mjs.map +0 -1
- package/fesm2022/structural-styles-d5ada3b3.mjs.map +0 -1
- package/form-field/_form-field-focus-overlay.scss +0 -31
- package/form-field/_form-field-high-contrast.scss +0 -39
- package/form-field/_form-field-native-select.scss +0 -97
- package/form-field/_form-field-subscript.scss +0 -95
- package/form-field/_mdc-text-field-density-overrides.scss +0 -60
- package/form-field/_mdc-text-field-structure-overrides.scss +0 -186
- package/form-field/_mdc-text-field-structure.scss +0 -621
- package/form-field/_mdc-text-field-textarea-overrides.scss +0 -36
- package/form-field/_user-agent-overrides.scss +0 -24
- package/form-field-control-harness.d-2d91f25a.d.ts +0 -10
- package/list/_list-inherited-structure.scss +0 -504
- package/list/_list-item-hcm-indicator.scss +0 -29
- package/module.d-18a67f56.d.ts +0 -206
- package/optgroup-harness.d-7f741f69.d.ts +0 -31
- package/radio/_radio-common.scss +0 -259
- package/schematics/ng-add/fonts/material-fonts.mjs +0 -34
- package/schematics/ng-add/index.mjs +0 -54
- package/schematics/ng-add/package-config.mjs +0 -51
- package/schematics/ng-add/schema.mjs +0 -10
- package/schematics/ng-add/setup-project.mjs +0 -75
- package/schematics/ng-add/theming/create-custom-theme.mjs +0 -30
- package/schematics/ng-add/theming/theming.mjs +0 -151
- package/schematics/ng-generate/address-form/index.mjs +0 -43
- package/schematics/ng-generate/address-form/schema.mjs +0 -10
- package/schematics/ng-generate/dashboard/index.mjs +0 -42
- package/schematics/ng-generate/dashboard/schema.mjs +0 -10
- package/schematics/ng-generate/navigation/index.mjs +0 -42
- package/schematics/ng-generate/navigation/schema.mjs +0 -10
- package/schematics/ng-generate/table/index.mjs +0 -40
- package/schematics/ng-generate/table/schema.mjs +0 -10
- package/schematics/ng-generate/tree/index.mjs +0 -40
- package/schematics/ng-generate/tree/schema.mjs +0 -10
- package/schematics/schematics.externs.js +0 -0
- package/select-harness.d-7441a7ac.d.ts +0 -63
- package/stepper/_stepper-variables.scss +0 -29
- package/table/_table-flex-styles.scss +0 -61
- package/tabs/_tabs-common.scss +0 -497
- package/toolbar/_toolbar-variables.scss +0 -28
- /package/core/tokens/m3/{definitions/_md-ref-palette.scss → _md-ref-palette.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-ref-typeface.scss → _md-ref-typeface.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-sys-elevation.scss → _md-sys-elevation.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-sys-motion.scss → _md-sys-motion.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-sys-shape.scss → _md-sys-shape.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-sys-state.scss → _md-sys-state.scss} +0 -0
- /package/{date-adapter.d-c6835d41.d.ts → date-adapter.d-CtKXIxk0.d.ts} +0 -0
- /package/{error-options.d-448d9046.d.ts → error-options.d-CGdTZUYk.d.ts} +0 -0
- /package/{list-option-types.d-8739f903.d.ts → list-option-types.d-77dQtwu8.d.ts} +0 -0
- /package/{option.d-6f493d78.d.ts → option.d-BVGX3edu.d.ts} +0 -0
- /package/{palette.d-ec4a617c.d.ts → palette.d-BSSFKjO6.d.ts} +0 -0
- /package/{sort-direction.d-f4ce4649.d.ts → sort-direction.d-CF7VUsH-.d.ts} +0 -0
package/module.d-18a67f56.d.ts
DELETED
|
@@ -1,206 +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-0e6515ae.js';
|
|
4
|
-
import { M as MatRippleModule } from './index.d-0536b706.js';
|
|
5
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
6
|
-
import { T as ThemePalette } from './palette.d-ec4a617c.js';
|
|
7
|
-
import { M as MatRippleLoader } from './ripple-loader.d-8aac2988.js';
|
|
8
|
-
|
|
9
|
-
/** Object that can be used to configure the default options for the button component. */
|
|
10
|
-
interface MatButtonConfig {
|
|
11
|
-
/** Whether disabled buttons should be interactive. */
|
|
12
|
-
disabledInteractive?: boolean;
|
|
13
|
-
/** Default palette color to apply to buttons. */
|
|
14
|
-
color?: ThemePalette;
|
|
15
|
-
}
|
|
16
|
-
/** Injection token that can be used to provide the default options the button component. */
|
|
17
|
-
declare const MAT_BUTTON_CONFIG: InjectionToken<MatButtonConfig>;
|
|
18
|
-
/** Base class for all buttons. */
|
|
19
|
-
declare class MatButtonBase implements AfterViewInit, OnDestroy {
|
|
20
|
-
_elementRef: ElementRef<any>;
|
|
21
|
-
_ngZone: NgZone;
|
|
22
|
-
_animationMode: "NoopAnimations" | "BrowserAnimations" | null;
|
|
23
|
-
private readonly _focusMonitor;
|
|
24
|
-
private _cleanupClick;
|
|
25
|
-
private _renderer;
|
|
26
|
-
/**
|
|
27
|
-
* Handles the lazy creation of the MatButton ripple.
|
|
28
|
-
* Used to improve initial load time of large applications.
|
|
29
|
-
*/
|
|
30
|
-
protected _rippleLoader: MatRippleLoader;
|
|
31
|
-
/** Whether the button is set on an anchor node. */
|
|
32
|
-
protected _isAnchor: boolean;
|
|
33
|
-
/** Whether this button is a FAB. Used to apply the correct class on the ripple. */
|
|
34
|
-
protected _isFab: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Theme color of the button. This API is supported in M2 themes only, it has
|
|
37
|
-
* no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/button/styling.
|
|
38
|
-
*
|
|
39
|
-
* For information on applying color variants in M3, see
|
|
40
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
41
|
-
*/
|
|
42
|
-
color?: string | null;
|
|
43
|
-
/** Whether the ripple effect is disabled or not. */
|
|
44
|
-
get disableRipple(): boolean;
|
|
45
|
-
set disableRipple(value: any);
|
|
46
|
-
private _disableRipple;
|
|
47
|
-
/** Whether the button is disabled. */
|
|
48
|
-
get disabled(): boolean;
|
|
49
|
-
set disabled(value: any);
|
|
50
|
-
private _disabled;
|
|
51
|
-
/** `aria-disabled` value of the button. */
|
|
52
|
-
ariaDisabled: boolean | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Natively disabled buttons prevent focus and any pointer events from reaching the button.
|
|
55
|
-
* In some scenarios this might not be desirable, because it can prevent users from finding out
|
|
56
|
-
* why the button is disabled (e.g. via tooltip).
|
|
57
|
-
*
|
|
58
|
-
* Enabling this input will change the button so that it is styled to be disabled and will be
|
|
59
|
-
* marked as `aria-disabled`, but it will allow the button to receive events and focus.
|
|
60
|
-
*
|
|
61
|
-
* Note that by enabling this, you need to set the `tabindex` yourself if the button isn't
|
|
62
|
-
* meant to be tabbable and you have to prevent the button action (e.g. form submissions).
|
|
63
|
-
*/
|
|
64
|
-
disabledInteractive: boolean;
|
|
65
|
-
/** Tab index for the button. */
|
|
66
|
-
tabIndex: number;
|
|
67
|
-
/**
|
|
68
|
-
* Backwards-compatibility input that handles pre-existing `[tabindex]` bindings.
|
|
69
|
-
* @docs-private
|
|
70
|
-
*/
|
|
71
|
-
set _tabindex(value: number);
|
|
72
|
-
constructor(...args: unknown[]);
|
|
73
|
-
ngAfterViewInit(): void;
|
|
74
|
-
ngOnDestroy(): void;
|
|
75
|
-
/** Focuses the button. */
|
|
76
|
-
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
77
|
-
protected _getAriaDisabled(): boolean | null;
|
|
78
|
-
protected _getDisabledAttribute(): true | null;
|
|
79
|
-
private _updateRippleDisabled;
|
|
80
|
-
protected _getTabIndex(): number;
|
|
81
|
-
private _setupAsAnchor;
|
|
82
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonBase, never>;
|
|
83
|
-
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>;
|
|
84
|
-
static ngAcceptInputType_disableRipple: unknown;
|
|
85
|
-
static ngAcceptInputType_disabled: unknown;
|
|
86
|
-
static ngAcceptInputType_ariaDisabled: unknown;
|
|
87
|
-
static ngAcceptInputType_disabledInteractive: unknown;
|
|
88
|
-
static ngAcceptInputType_tabIndex: unknown;
|
|
89
|
-
static ngAcceptInputType__tabindex: unknown;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Material Design button component. Users interact with a button to perform an action.
|
|
94
|
-
* See https://material.io/components/buttons
|
|
95
|
-
*
|
|
96
|
-
* The `MatButton` class applies to native button elements and captures the appearances for
|
|
97
|
-
* "text button", "outlined button", and "contained button" per the Material Design
|
|
98
|
-
* specification. `MatButton` additionally captures an additional "flat" appearance, which matches
|
|
99
|
-
* "contained" but without elevation.
|
|
100
|
-
*/
|
|
101
|
-
declare class MatButton extends MatButtonBase {
|
|
102
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, never>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<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"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Material Design button component for anchor elements. Anchor elements are used to provide
|
|
107
|
-
* links for the user to navigate across different routes or pages.
|
|
108
|
-
* See https://material.io/components/buttons
|
|
109
|
-
*
|
|
110
|
-
* The `MatAnchor` class applies to native anchor elements and captures the appearances for
|
|
111
|
-
* "text button", "outlined button", and "contained button" per the Material Design
|
|
112
|
-
* specification. `MatAnchor` additionally captures an additional "flat" appearance, which matches
|
|
113
|
-
* "contained" but without elevation.
|
|
114
|
-
*/
|
|
115
|
-
declare const MatAnchor: typeof MatButton;
|
|
116
|
-
type MatAnchor = MatButton;
|
|
117
|
-
|
|
118
|
-
/** Default FAB options that can be overridden. */
|
|
119
|
-
interface MatFabDefaultOptions {
|
|
120
|
-
/**
|
|
121
|
-
* Default theme color of the button. This API is supported in M2 themes
|
|
122
|
-
* only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/button/styling.
|
|
123
|
-
*
|
|
124
|
-
* For information on applying color variants in M3, see
|
|
125
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants.
|
|
126
|
-
*/
|
|
127
|
-
color?: ThemePalette;
|
|
128
|
-
}
|
|
129
|
-
/** Injection token to be used to override the default options for FAB. */
|
|
130
|
-
declare const MAT_FAB_DEFAULT_OPTIONS: InjectionToken<MatFabDefaultOptions>;
|
|
131
|
-
/**
|
|
132
|
-
* @docs-private
|
|
133
|
-
* @deprecated No longer used, will be removed.
|
|
134
|
-
* @breaking-change 21.0.0
|
|
135
|
-
*/
|
|
136
|
-
declare function MAT_FAB_DEFAULT_OPTIONS_FACTORY(): MatFabDefaultOptions;
|
|
137
|
-
/**
|
|
138
|
-
* Material Design floating action button (FAB) component. These buttons represent the primary
|
|
139
|
-
* or most common action for users to interact with.
|
|
140
|
-
* See https://material.io/components/buttons-floating-action-button/
|
|
141
|
-
*
|
|
142
|
-
* The `MatFabButton` class has two appearances: normal and extended.
|
|
143
|
-
*/
|
|
144
|
-
declare class MatFabButton extends MatButtonBase {
|
|
145
|
-
private _options;
|
|
146
|
-
_isFab: boolean;
|
|
147
|
-
extended: boolean;
|
|
148
|
-
constructor(...args: unknown[]);
|
|
149
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatFabButton, never>;
|
|
150
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab], a[mat-fab]", ["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>;
|
|
151
|
-
static ngAcceptInputType_extended: unknown;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Material Design mini floating action button (FAB) component. These buttons represent the primary
|
|
155
|
-
* or most common action for users to interact with.
|
|
156
|
-
* See https://material.io/components/buttons-floating-action-button/
|
|
157
|
-
*/
|
|
158
|
-
declare class MatMiniFabButton extends MatButtonBase {
|
|
159
|
-
private _options;
|
|
160
|
-
_isFab: boolean;
|
|
161
|
-
constructor(...args: unknown[]);
|
|
162
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabButton, never>;
|
|
163
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab], a[mat-mini-fab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Material Design floating action button (FAB) component for anchor elements. Anchor elements
|
|
167
|
-
* are used to provide links for the user to navigate across different routes or pages.
|
|
168
|
-
* See https://material.io/components/buttons-floating-action-button/
|
|
169
|
-
*
|
|
170
|
-
* The `MatFabAnchor` class has two appearances: normal and extended.
|
|
171
|
-
*/
|
|
172
|
-
declare const MatFabAnchor: typeof MatFabButton;
|
|
173
|
-
type MatFabAnchor = MatFabButton;
|
|
174
|
-
/**
|
|
175
|
-
* Material Design mini floating action button (FAB) component for anchor elements. Anchor elements
|
|
176
|
-
* are used to provide links for the user to navigate across different routes or pages.
|
|
177
|
-
* See https://material.io/components/buttons-floating-action-button/
|
|
178
|
-
*/
|
|
179
|
-
declare const MatMiniFabAnchor: typeof MatMiniFabButton;
|
|
180
|
-
type MatMiniFabAnchor = MatMiniFabButton;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Material Design icon button component. This type of button displays a single interactive icon for
|
|
184
|
-
* users to perform an action.
|
|
185
|
-
* See https://material.io/develop/web/components/buttons/icon-buttons/
|
|
186
|
-
*/
|
|
187
|
-
declare class MatIconButton extends MatButtonBase {
|
|
188
|
-
constructor(...args: unknown[]);
|
|
189
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, never>;
|
|
190
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button], a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, ["*"], true, never>;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Material Design icon button component for anchor elements. This button displays a single
|
|
194
|
-
* interaction icon that allows users to navigate across different routes or pages.
|
|
195
|
-
* See https://material.io/develop/web/components/buttons/icon-buttons/
|
|
196
|
-
*/
|
|
197
|
-
declare const MatIconAnchor: typeof MatIconButton;
|
|
198
|
-
type MatIconAnchor = MatIconButton;
|
|
199
|
-
|
|
200
|
-
declare class MatButtonModule {
|
|
201
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonModule, never>;
|
|
202
|
-
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]>;
|
|
203
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatButtonModule>;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export { MAT_BUTTON_CONFIG as M, type MatButtonConfig as a, MatButton as b, MatAnchor as c, type MatFabDefaultOptions as d, MAT_FAB_DEFAULT_OPTIONS as e, MAT_FAB_DEFAULT_OPTIONS_FACTORY as f, MatFabButton as g, MatMiniFabButton as h, MatFabAnchor as i, MatMiniFabAnchor as j, MatIconButton as k, MatIconAnchor as l, MatButtonModule as m };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { O as OptionHarnessFilters, M as MatOptionHarness } from './option-harness.d-3d33fc9a.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, type OptgroupHarnessFilters as O };
|
package/radio/_radio-common.scss
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
@use '../core/tokens/m2/mdc/radio' as tokens-mdc-radio;
|
|
2
|
-
@use '../core/tokens/token-utils';
|
|
3
|
-
|
|
4
|
-
$_icon-size: 20px;
|
|
5
|
-
|
|
6
|
-
@function _enter-transition($name) {
|
|
7
|
-
@return $name 90ms cubic-bezier(0, 0, 0.2, 1);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@function _exit-transition($name) {
|
|
11
|
-
@return $name 90ms cubic-bezier(0.4, 0, 0.6, 1);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Structural styles for a radio button. Shared with the selection list.
|
|
15
|
-
@mixin radio-structure($is-interactive) {
|
|
16
|
-
$tokens: tokens-mdc-radio.$prefix, tokens-mdc-radio.get-token-slots();
|
|
17
|
-
|
|
18
|
-
.mdc-radio {
|
|
19
|
-
display: inline-block;
|
|
20
|
-
position: relative;
|
|
21
|
-
flex: 0 0 auto;
|
|
22
|
-
box-sizing: content-box;
|
|
23
|
-
width: $_icon-size;
|
|
24
|
-
height: $_icon-size;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
|
|
27
|
-
// This is something we inherited from MDC, but it shouldn't be necessary.
|
|
28
|
-
// Removing it will likely lead to screenshot diffs.
|
|
29
|
-
will-change: opacity, transform, border-color, color;
|
|
30
|
-
|
|
31
|
-
@include token-utils.use-tokens($tokens...) {
|
|
32
|
-
$size-token: token-utils.get-token-variable(state-layer-size);
|
|
33
|
-
padding: calc((#{$size-token} - #{$_icon-size}) / 2);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@if ($is-interactive) {
|
|
37
|
-
// MDC's hover indication comes from their ripple which we don't use.
|
|
38
|
-
&:hover > .mdc-radio__native-control:not([disabled]):not(:focus) {
|
|
39
|
-
& ~ .mdc-radio__background::before {
|
|
40
|
-
opacity: 0.04;
|
|
41
|
-
transform: scale(1);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:hover > .mdc-radio__native-control:not([disabled]) ~ .mdc-radio__background {
|
|
46
|
-
> .mdc-radio__outer-circle {
|
|
47
|
-
@include token-utils.use-tokens($tokens...) {
|
|
48
|
-
@include token-utils.create-token-slot(border-color, unselected-hover-icon-color);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:hover > .mdc-radio__native-control:enabled:checked + .mdc-radio__background {
|
|
54
|
-
> .mdc-radio__outer-circle,
|
|
55
|
-
> .mdc-radio__inner-circle {
|
|
56
|
-
@include token-utils.use-tokens($tokens...) {
|
|
57
|
-
@include token-utils.create-token-slot(border-color, selected-hover-icon-color);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:active > .mdc-radio__native-control:enabled:not(:checked) + .mdc-radio__background {
|
|
63
|
-
> .mdc-radio__outer-circle {
|
|
64
|
-
@include token-utils.use-tokens($tokens...) {
|
|
65
|
-
@include token-utils.create-token-slot(border-color, unselected-pressed-icon-color);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:active > .mdc-radio__native-control:enabled:checked + .mdc-radio__background {
|
|
71
|
-
> .mdc-radio__outer-circle,
|
|
72
|
-
> .mdc-radio__inner-circle {
|
|
73
|
-
@include token-utils.use-tokens($tokens...) {
|
|
74
|
-
@include token-utils.create-token-slot(border-color, selected-pressed-icon-color);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.mdc-radio__background {
|
|
82
|
-
display: inline-block;
|
|
83
|
-
position: relative;
|
|
84
|
-
box-sizing: border-box;
|
|
85
|
-
width: $_icon-size;
|
|
86
|
-
height: $_icon-size;
|
|
87
|
-
|
|
88
|
-
&::before {
|
|
89
|
-
position: absolute;
|
|
90
|
-
transform: scale(0, 0);
|
|
91
|
-
border-radius: 50%;
|
|
92
|
-
opacity: 0;
|
|
93
|
-
pointer-events: none;
|
|
94
|
-
content: '';
|
|
95
|
-
transition: _exit-transition(opacity), _exit-transition(transform);
|
|
96
|
-
|
|
97
|
-
@include token-utils.use-tokens($tokens...) {
|
|
98
|
-
$size: token-utils.get-token-variable(state-layer-size);
|
|
99
|
-
$offset: calc(-1 * (#{$size} - #{$_icon-size}) / 2);
|
|
100
|
-
width: $size;
|
|
101
|
-
height: $size;
|
|
102
|
-
top: $offset;
|
|
103
|
-
left: $offset;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.mdc-radio__outer-circle {
|
|
109
|
-
position: absolute;
|
|
110
|
-
top: 0;
|
|
111
|
-
left: 0;
|
|
112
|
-
box-sizing: border-box;
|
|
113
|
-
width: 100%;
|
|
114
|
-
height: 100%;
|
|
115
|
-
border-width: 2px;
|
|
116
|
-
border-style: solid;
|
|
117
|
-
border-radius: 50%;
|
|
118
|
-
transition: _exit-transition(border-color);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.mdc-radio__inner-circle {
|
|
122
|
-
position: absolute;
|
|
123
|
-
top: 0;
|
|
124
|
-
left: 0;
|
|
125
|
-
box-sizing: border-box;
|
|
126
|
-
width: 100%;
|
|
127
|
-
height: 100%;
|
|
128
|
-
transform: scale(0, 0);
|
|
129
|
-
border-width: 10px;
|
|
130
|
-
border-style: solid;
|
|
131
|
-
border-radius: 50%;
|
|
132
|
-
transition: _exit-transition(transform), _exit-transition(border-color);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.mdc-radio__native-control {
|
|
136
|
-
position: absolute;
|
|
137
|
-
margin: 0;
|
|
138
|
-
padding: 0;
|
|
139
|
-
opacity: 0;
|
|
140
|
-
top: 0;
|
|
141
|
-
right: 0;
|
|
142
|
-
left: 0;
|
|
143
|
-
cursor: inherit;
|
|
144
|
-
z-index: 1;
|
|
145
|
-
|
|
146
|
-
@include token-utils.use-tokens($tokens...) {
|
|
147
|
-
@include token-utils.create-token-slot(width, state-layer-size);
|
|
148
|
-
@include token-utils.create-token-slot(height, state-layer-size);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&:checked, &:disabled {
|
|
152
|
-
+ .mdc-radio__background {
|
|
153
|
-
transition: _enter-transition(opacity), _enter-transition(transform);
|
|
154
|
-
|
|
155
|
-
> .mdc-radio__outer-circle {
|
|
156
|
-
transition: _enter-transition(border-color);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
> .mdc-radio__inner-circle {
|
|
160
|
-
transition: _enter-transition(transform), _enter-transition(border-color);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@if ($is-interactive) {
|
|
166
|
-
&:focus + .mdc-radio__background::before {
|
|
167
|
-
transform: scale(1);
|
|
168
|
-
opacity: 0.12;
|
|
169
|
-
transition: _enter-transition(opacity), _enter-transition(transform);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&:disabled {
|
|
174
|
-
@include token-utils.use-tokens($tokens...) {
|
|
175
|
-
&:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle {
|
|
176
|
-
@include token-utils.create-token-slot(border-color, disabled-unselected-icon-color);
|
|
177
|
-
@include token-utils.create-token-slot(opacity, disabled-unselected-icon-opacity);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
+ .mdc-radio__background {
|
|
181
|
-
cursor: default;
|
|
182
|
-
|
|
183
|
-
> .mdc-radio__inner-circle,
|
|
184
|
-
> .mdc-radio__outer-circle {
|
|
185
|
-
@include token-utils.create-token-slot(border-color, disabled-selected-icon-color);
|
|
186
|
-
@include token-utils.create-token-slot(opacity, disabled-selected-icon-opacity);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&:enabled {
|
|
193
|
-
@include token-utils.use-tokens($tokens...) {
|
|
194
|
-
&:not(:checked) + .mdc-radio__background > .mdc-radio__outer-circle {
|
|
195
|
-
@include token-utils.create-token-slot(border-color, unselected-icon-color);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&:checked + .mdc-radio__background {
|
|
199
|
-
> .mdc-radio__outer-circle,
|
|
200
|
-
> .mdc-radio__inner-circle {
|
|
201
|
-
@include token-utils.create-token-slot(border-color, selected-icon-color);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
@if ($is-interactive) {
|
|
206
|
-
&:focus:checked + .mdc-radio__background {
|
|
207
|
-
> .mdc-radio__inner-circle,
|
|
208
|
-
> .mdc-radio__outer-circle {
|
|
209
|
-
@include token-utils.create-token-slot(border-color, selected-focus-icon-color);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&:checked + .mdc-radio__background > .mdc-radio__inner-circle {
|
|
217
|
-
transform: scale(0.5);
|
|
218
|
-
transition: _enter-transition(transform), _enter-transition(border-color);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
@if ($is-interactive) {
|
|
223
|
-
&.mat-mdc-radio-disabled-interactive .mdc-radio--disabled {
|
|
224
|
-
pointer-events: auto;
|
|
225
|
-
|
|
226
|
-
@include token-utils.use-tokens($tokens...) {
|
|
227
|
-
// stylelint-disable selector-combinator-space-before
|
|
228
|
-
.mdc-radio__native-control:not(:checked) + .mdc-radio__background
|
|
229
|
-
> .mdc-radio__outer-circle {
|
|
230
|
-
@include token-utils.create-token-slot(border-color, disabled-unselected-icon-color);
|
|
231
|
-
@include token-utils.create-token-slot(opacity, disabled-unselected-icon-opacity);
|
|
232
|
-
}
|
|
233
|
-
// stylelint-enable selector-combinator-space-before
|
|
234
|
-
|
|
235
|
-
&:hover .mdc-radio__native-control:checked + .mdc-radio__background,
|
|
236
|
-
.mdc-radio__native-control:checked:focus + .mdc-radio__background,
|
|
237
|
-
.mdc-radio__native-control + .mdc-radio__background {
|
|
238
|
-
> .mdc-radio__inner-circle,
|
|
239
|
-
> .mdc-radio__outer-circle {
|
|
240
|
-
@include token-utils.create-token-slot(border-color, disabled-selected-icon-color);
|
|
241
|
-
@include token-utils.create-token-slot(opacity, disabled-selected-icon-opacity);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// Conditionally disables the animations of the radio button.
|
|
250
|
-
@mixin radio-noop-animations() {
|
|
251
|
-
&._mat-animation-noopable {
|
|
252
|
-
.mdc-radio__background::before,
|
|
253
|
-
.mdc-radio__outer-circle,
|
|
254
|
-
.mdc-radio__inner-circle {
|
|
255
|
-
// Needs to be `!important`, because MDC's selectors are really specific.
|
|
256
|
-
transition: none !important;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.addFontsToIndex = addFontsToIndex;
|
|
11
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
12
|
-
const schematics_2 = require("@angular/cdk/schematics");
|
|
13
|
-
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
14
|
-
/** Adds the Material Design fonts to the index HTML file. */
|
|
15
|
-
function addFontsToIndex(options) {
|
|
16
|
-
return async (host) => {
|
|
17
|
-
const workspace = await (0, workspace_1.getWorkspace)(host);
|
|
18
|
-
const project = (0, schematics_2.getProjectFromWorkspace)(workspace, options.project);
|
|
19
|
-
const projectIndexFiles = (0, schematics_2.getProjectIndexFiles)(project);
|
|
20
|
-
if (!projectIndexFiles.length) {
|
|
21
|
-
throw new schematics_1.SchematicsException('No project index HTML file could be found.');
|
|
22
|
-
}
|
|
23
|
-
const fonts = [
|
|
24
|
-
'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap',
|
|
25
|
-
'https://fonts.googleapis.com/icon?family=Material+Icons',
|
|
26
|
-
];
|
|
27
|
-
projectIndexFiles.forEach(indexFilePath => {
|
|
28
|
-
fonts.forEach(font => {
|
|
29
|
-
(0, schematics_2.appendHtmlElementToHead)(host, indexFilePath, `<link href="${font}" rel="stylesheet">`);
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtZm9udHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvc2NoZW1hdGljcy9uZy1hZGQvZm9udHMvbWF0ZXJpYWwtZm9udHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7QUFZSCwwQ0FxQkM7QUEvQkQsMkRBQTJFO0FBQzNFLHdEQUlpQztBQUNqQyxxRUFBbUU7QUFHbkUsNkRBQTZEO0FBQzdELFNBQWdCLGVBQWUsQ0FBQyxPQUFlO0lBQzdDLE9BQU8sS0FBSyxFQUFFLElBQVUsRUFBRSxFQUFFO1FBQzFCLE1BQU0sU0FBUyxHQUFHLE1BQU0sSUFBQSx3QkFBWSxFQUFDLElBQUksQ0FBQyxDQUFDO1FBQzNDLE1BQU0sT0FBTyxHQUFHLElBQUEsb0NBQXVCLEVBQUMsU0FBUyxFQUFFLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNwRSxNQUFNLGlCQUFpQixHQUFHLElBQUEsaUNBQW9CLEVBQUMsT0FBTyxDQUFDLENBQUM7UUFFeEQsSUFBSSxDQUFDLGlCQUFpQixDQUFDLE1BQU0sRUFBRSxDQUFDO1lBQzlCLE1BQU0sSUFBSSxnQ0FBbUIsQ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tZW50VG9IZWFkKGhvc3QsIGluZGV4RmlsZVBhdGgsIGA8bGluayBocmVmPVwiJHtmb250fVwiIHJlbD1cInN0eWxlc2hlZXRcIj5gKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9O1xufVxuIl19
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.default = default_1;
|
|
11
|
-
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
12
|
-
const package_config_1 = require("./package-config");
|
|
13
|
-
/**
|
|
14
|
-
* Version range that will be used for the Angular CDK and Angular Material if this
|
|
15
|
-
* schematic has been run outside of the CLI `ng add` command. In those cases, there
|
|
16
|
-
* can be no dependency on `@angular/material` in the `package.json` file, and we need
|
|
17
|
-
* to manually insert the dependency based on the build version placeholder.
|
|
18
|
-
*
|
|
19
|
-
* Note that the fallback version range does not use caret, but tilde because that is
|
|
20
|
-
* the default for Angular framework dependencies in CLI projects.
|
|
21
|
-
*/
|
|
22
|
-
const fallbackMaterialVersionRange = `~20.0.0-next.1`;
|
|
23
|
-
/**
|
|
24
|
-
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
25
|
-
* automatically executed if developers run `ng add @angular/material`.
|
|
26
|
-
*
|
|
27
|
-
* Since the Angular Material schematics depend on the schematic utility functions from the CDK,
|
|
28
|
-
* we need to install the CDK before loading the schematic files that import from the CDK.
|
|
29
|
-
*/
|
|
30
|
-
function default_1(options) {
|
|
31
|
-
return (host, context) => {
|
|
32
|
-
// Version tag of the `@angular/core` dependency that has been loaded from the `package.json`
|
|
33
|
-
// of the CLI project. This tag should be preferred because all Angular dependencies should
|
|
34
|
-
// have the same version tag if possible.
|
|
35
|
-
const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/core');
|
|
36
|
-
const materialVersionRange = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/material');
|
|
37
|
-
const angularDependencyVersion = ngCoreVersionTag || `^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0`;
|
|
38
|
-
// The CLI inserts `@angular/material` into the `package.json` before this schematic runs.
|
|
39
|
-
// This means that we do not need to insert Angular Material into `package.json` files again.
|
|
40
|
-
// In some cases though, it could happen that this schematic runs outside of the CLI `ng add`
|
|
41
|
-
// command, or Material is only listed a dev dependency. If that is the case, we insert a
|
|
42
|
-
// version based on the current build version (substituted version placeholder).
|
|
43
|
-
if (materialVersionRange === null) {
|
|
44
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/material', fallbackMaterialVersionRange);
|
|
45
|
-
}
|
|
46
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', materialVersionRange || fallbackMaterialVersionRange);
|
|
47
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/forms', angularDependencyVersion);
|
|
48
|
-
// Since the Angular Material schematics depend on the schematic utility functions from the
|
|
49
|
-
// CDK, we need to install the CDK before loading the schematic files that import from the CDK.
|
|
50
|
-
const installTaskId = context.addTask(new tasks_1.NodePackageInstallTask());
|
|
51
|
-
context.addTask(new tasks_1.RunSchematicTask('ng-add-setup-project', options), [installTaskId]);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvc2NoZW1hdGljcy9uZy1hZGQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI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wgdGhlIENESyBiZWZvcmUgbG9hZGluZyB0aGUgc2NoZW1hdGljIGZpbGVzIHRoYXQgaW1wb3J0IGZyb20gdGhlIENESy5cbiAgICBjb25zdCBpbnN0YWxsVGFza0lkID0gY29udGV4dC5hZGRUYXNrKG5ldyBOb2RlUGFja2FnZUluc3RhbGxUYXNrKCkpO1xuXG4gICAgY29udGV4dC5hZGRUYXNrKG5ldyBSdW5TY2hlbWF0aWNUYXNrKCduZy1hZGQtc2V0dXAtcHJvamVjdCcsIG9wdGlvbnMpLCBbaW5zdGFsbFRhc2tJZF0pO1xuICB9O1xufVxuIl19
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.addPackageToPackageJson = addPackageToPackageJson;
|
|
11
|
-
exports.getPackageVersionFromPackageJson = getPackageVersionFromPackageJson;
|
|
12
|
-
/**
|
|
13
|
-
* Sorts the keys of the given object.
|
|
14
|
-
* @returns A new object instance with sorted keys
|
|
15
|
-
*/
|
|
16
|
-
function sortObjectByKeys(obj) {
|
|
17
|
-
return Object.keys(obj)
|
|
18
|
-
.sort()
|
|
19
|
-
.reduce((result, key) => {
|
|
20
|
-
result[key] = obj[key];
|
|
21
|
-
return result;
|
|
22
|
-
}, {});
|
|
23
|
-
}
|
|
24
|
-
/** Adds a package to the package.json in the given host tree. */
|
|
25
|
-
function addPackageToPackageJson(host, pkg, version) {
|
|
26
|
-
if (host.exists('package.json')) {
|
|
27
|
-
const sourceText = host.read('package.json').toString('utf-8');
|
|
28
|
-
const json = JSON.parse(sourceText);
|
|
29
|
-
if (!json.dependencies) {
|
|
30
|
-
json.dependencies = {};
|
|
31
|
-
}
|
|
32
|
-
if (!json.dependencies[pkg]) {
|
|
33
|
-
json.dependencies[pkg] = version;
|
|
34
|
-
json.dependencies = sortObjectByKeys(json.dependencies);
|
|
35
|
-
}
|
|
36
|
-
host.overwrite('package.json', JSON.stringify(json, null, 2));
|
|
37
|
-
}
|
|
38
|
-
return host;
|
|
39
|
-
}
|
|
40
|
-
/** Gets the version of the specified package by looking at the package.json in the given tree. */
|
|
41
|
-
function getPackageVersionFromPackageJson(tree, name) {
|
|
42
|
-
if (!tree.exists('package.json')) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
const packageJson = JSON.parse(tree.read('package.json').toString('utf8'));
|
|
46
|
-
if (packageJson.dependencies && packageJson.dependencies[name]) {
|
|
47
|
-
return packageJson.dependencies[name];
|
|
48
|
-
}
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFja2FnZS1jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvc2NoZW1hdGljcy9uZy1hZGQvcGFja2FnZS1jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7QUF5QkgsMERBa0JDO0FBR0QsNEVBWUM7QUFsREQ7OztHQUdHO0FBQ0gsU0FBUyxnQkFBZ0IsQ0FBQyxHQUEyQjtJQUNuRCxPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDO1NBQ3BCLElBQUksRUFBRTtTQUNOLE1BQU0sQ0FDTCxDQUFDLE1BQU0sRUFBRSxHQUFHLEVBQUUsRUFBRTtRQUNkLE1BQU0sQ0FBQyxHQUFHLENBQUMsR0FBRyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDdkIsT0FBTyxNQUFNLENBQU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