@angular/material 20.0.0-next.0 → 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 +100 -127
- package/autocomplete/testing/index.d.ts +7 -11
- 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 +8 -112
- package/badge/testing/index.d.ts +8 -8
- package/badge.d-D0iThVg0.d.ts +99 -0
- 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 +91 -103
- package/bottom-sheet/testing/index.d.ts +5 -6
- 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 +107 -135
- package/button/testing/index.d.ts +14 -10
- 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 +12 -285
- package/button-toggle/testing/index.d.ts +39 -37
- package/button-toggle.d-B_G01PhW.d.ts +258 -0
- 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 +81 -117
- package/card/testing/index.d.ts +12 -15
- 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 +45 -105
- package/checkbox/testing/index.d.ts +7 -10
- 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 +624 -694
- package/chips/testing/index.d.ts +79 -93
- package/common-module.d-C8xzHJDr.d.ts +44 -0
- 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 +60 -976
- 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 +9 -42
- 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-adapter.d-CtKXIxk0.d.ts +267 -0
- package/date-range-input-harness.d-CaEyN8dT.d.ts +279 -0
- 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 +1336 -1481
- package/datepicker/testing/index.d.ts +5 -287
- 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 +59 -453
- package/dialog/testing/index.d.ts +23 -26
- package/dialog.d-DsYAn2Gk.d.ts +339 -0
- 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 +6 -11
- package/divider/testing/index.d.ts +5 -6
- package/error-options.d-CGdTZUYk.d.ts +17 -0
- 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 +140 -190
- package/expansion/testing/index.d.ts +26 -31
- package/fesm2022/animation-DfMFjxHu.mjs +41 -0
- package/fesm2022/animation-DfMFjxHu.mjs.map +1 -0
- package/fesm2022/autocomplete/testing.mjs +2 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +79 -51
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +22 -23
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +33 -22
- 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 +28 -19
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +114 -285
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +52 -52
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +39 -78
- 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 +104 -66
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-DZl8g1kc.mjs +42 -0
- package/fesm2022/common-module-DZl8g1kc.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +2 -43
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +39 -1620
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-K6TQue-Y.mjs +190 -0
- package/fesm2022/date-formats-K6TQue-Y.mjs.map +1 -0
- package/fesm2022/date-range-input-harness-Bp1T4oUe.mjs +467 -0
- package/fesm2022/date-range-input-harness-Bp1T4oUe.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +5 -465
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +198 -156
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +14 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +16 -895
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +11 -13
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-BWOa3B4G.mjs +29 -0
- package/fesm2022/error-options-BWOa3B4G.mjs.map +1 -0
- package/fesm2022/error-state-Dtb1IHM-.mjs +37 -0
- package/fesm2022/error-state-Dtb1IHM-.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +36 -37
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +7 -6
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field-BZd6Vhww.mjs +1101 -0
- package/fesm2022/form-field-BZd6Vhww.mjs.map +1 -0
- package/fesm2022/form-field.mjs +16 -1110
- 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 +32 -176
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +11 -12
- 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-Bk5cM8Z5.mjs +638 -0
- package/fesm2022/icon-registry-Bk5cM8Z5.mjs.map +1 -0
- package/fesm2022/icon.mjs +24 -642
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-BHJ4tVIe.mjs +22 -0
- package/fesm2022/index-BHJ4tVIe.mjs.map +1 -0
- package/fesm2022/index-D2rZ0V78.mjs +20 -0
- package/fesm2022/index-D2rZ0V78.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +5 -113
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-oQzj5EsQ.mjs +115 -0
- package/fesm2022/input-harness-oQzj5EsQ.mjs.map +1 -0
- package/fesm2022/input-value-accessor-D1GvPuqO.mjs +12 -0
- package/fesm2022/input-value-accessor-D1GvPuqO.mjs.map +1 -0
- package/fesm2022/input.mjs +32 -40
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-DVvKYBKJ.mjs +27 -0
- package/fesm2022/internal-form-field-DVvKYBKJ.mjs.map +1 -0
- package/fesm2022/line-Dwrcg_t9.mjs +59 -0
- package/fesm2022/line-Dwrcg_t9.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +2 -2
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +71 -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 +57 -46
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/module-CTd5xD2i.mjs +39 -0
- package/fesm2022/module-CTd5xD2i.mjs.map +1 -0
- package/fesm2022/module-D-cNfopD.mjs +891 -0
- package/fesm2022/module-D-cNfopD.mjs.map +1 -0
- package/fesm2022/module-X29xYsIk.mjs +970 -0
- package/fesm2022/module-X29xYsIk.mjs.map +1 -0
- package/fesm2022/module-qRXgbi2L.mjs +1312 -0
- package/fesm2022/module-qRXgbi2L.mjs.map +1 -0
- package/fesm2022/option-MOeehkAg.mjs +348 -0
- package/fesm2022/option-MOeehkAg.mjs.map +1 -0
- package/fesm2022/option-harness-BFcc-M_4.mjs +46 -0
- package/fesm2022/option-harness-BFcc-M_4.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +54 -22
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs +0 -4
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +20 -19
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs +0 -4
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +22 -20
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-BFGIaGxz.mjs +53 -0
- package/fesm2022/pseudo-checkbox-BFGIaGxz.mjs.map +1 -0
- package/fesm2022/pseudo-checkbox-module-Dxth-mPi.mjs +20 -0
- package/fesm2022/pseudo-checkbox-module-Dxth-mPi.mjs.map +1 -0
- package/fesm2022/public-api-BoO5eSq-.mjs +147 -0
- package/fesm2022/public-api-BoO5eSq-.mjs.map +1 -0
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +28 -20
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-CuyVtN3V.mjs +640 -0
- package/fesm2022/ripple-CuyVtN3V.mjs.map +1 -0
- package/fesm2022/ripple-loader-pOctSZby.mjs +162 -0
- package/fesm2022/ripple-loader-pOctSZby.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +3 -2
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +32 -1311
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +39 -38
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +32 -80
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +33 -29
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +55 -53
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +31 -23
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +60 -45
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-CasigI3l.mjs +18 -0
- package/fesm2022/structural-styles-CasigI3l.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +61 -65
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +89 -85
- 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 +51 -41
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +15 -18
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +17 -960
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +29 -31
- 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 +16 -508
- package/form-field/testing/control/index.d.ts +2 -2
- package/form-field/testing/index.d.ts +19 -24
- package/form-field-control.d-DvB4ZVlf.d.ts +64 -0
- package/form-field.d-b9aHrR4I.d.ts +373 -0
- 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 +127 -152
- package/grid-list/testing/index.d.ts +40 -44
- 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 +9 -470
- package/icon/testing/index.d.ts +42 -44
- package/icon-module.d-sA1hmRKS.d.ts +168 -0
- package/icon-registry.d-BVwP8t9_.d.ts +287 -0
- package/index.d-C5neTPvr.d.ts +11 -0
- package/index.d-CikM2bbf.d.ts +13 -0
- package/index.d.ts +2 -3
- package/input/_input-theme.scss +1 -1
- package/input/index.d.ts +39 -64
- package/input/testing/index.d.ts +14 -71
- package/input-harness.d-8fkAAbu2.d.ts +61 -0
- package/line.d-C-QdueRc.d.ts +25 -0
- 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 +155 -244
- package/list/testing/index.d.ts +159 -180
- package/list-option-types.d-77dQtwu8.d.ts +15 -0
- 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 +185 -231
- package/menu/testing/index.d.ts +18 -23
- package/module.d-BGzxQfCs.d.ts +18 -0
- package/module.d-CH_8jCsD.d.ts +454 -0
- package/module.d-m-qXd3m8.d.ts +329 -0
- package/option-harness.d-IqsW95GR.d.ts +35 -0
- package/option-parent.d-CnYuuMkO.d.ts +20 -0
- package/option.d-BVGX3edu.d.ts +146 -0
- 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 +31 -216
- package/paginator/testing/index.d.ts +15 -15
- package/paginator.d-3kymf0wo.d.ts +200 -0
- package/palette.d-BSSFKjO6.d.ts +4 -0
- 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 +41 -60
- package/progress-bar/testing/index.d.ts +8 -10
- 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 +8 -110
- package/progress-spinner/testing/index.d.ts +11 -11
- package/progress-spinner.d-DtYCWeYd.d.ts +97 -0
- package/pseudo-checkbox-module.d-BHmTZ10P.d.ts +45 -0
- 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 +152 -170
- package/radio/testing/index.d.ts +62 -67
- package/ripple-loader.d-9me-KFSi.d.ts +48 -0
- package/ripple.d-BT30YVLB.d.ts +256 -0
- 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/theme-color/schema.json +10 -0
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-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 +25 -505
- package/select/testing/index.d.ts +13 -16
- 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 +51 -93
- package/sidenav/testing/index.d.ts +59 -63
- 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 +40 -110
- package/slide-toggle/testing/index.d.ts +18 -21
- 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 +282 -328
- package/slider/testing/index.d.ts +43 -47
- 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 +155 -188
- package/snack-bar/testing/index.d.ts +8 -9
- 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 +62 -170
- package/sort/testing/index.d.ts +23 -25
- package/sort-direction.d-CF7VUsH-.d.ts +3 -0
- package/sort.d-i-bF_IaU.d.ts +88 -0
- 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 +117 -168
- package/stepper/testing/index.d.ts +44 -52
- 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 +97 -156
- package/table/testing/index.d.ts +65 -78
- 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 +321 -388
- package/tabs/testing/index.d.ts +68 -76
- 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 +127 -161
- package/timepicker/testing/index.d.ts +21 -26
- 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 +15 -26
- package/toolbar/testing/index.d.ts +14 -16
- 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 +11 -355
- package/tooltip/testing/index.d.ts +8 -10
- 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 +117 -163
- package/tree/testing/index.d.ts +53 -58
- 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/expansion/_expansion-variables.scss +0 -30
- 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/list/_list-inherited-structure.scss +0 -504
- package/list/_list-item-hcm-indicator.scss +0 -29
- 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/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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-harness-oQzj5EsQ.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/input/testing/input-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 {HarnessPredicate, parallel} from '@angular/cdk/testing';\nimport {MatFormFieldControlHarness} from '../../form-field/testing/control';\nimport {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {InputHarnessFilters} from './input-harness-filters';\n\n/** Harness for interacting with a standard Material inputs in tests. */\nexport class MatInputHarness extends MatFormFieldControlHarness {\n // TODO: We do not want to handle `select` elements with `matNativeControl` because\n // not all methods of this harness work reasonably for native select elements.\n // For more details. See: https://github.com/angular/components/pull/18221.\n static hostSelector = '[matInput], input[matNativeControl], textarea[matNativeControl]';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatInputHarness` that meets\n * certain criteria.\n * @param options Options for filtering which input instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: InputHarnessFilters = {}): HarnessPredicate<MatInputHarness> {\n return new HarnessPredicate(MatInputHarness, options)\n .addOption('value', options.value, (harness, value) => {\n return HarnessPredicate.stringMatches(harness.getValue(), value);\n })\n .addOption('placeholder', options.placeholder, (harness, placeholder) => {\n return HarnessPredicate.stringMatches(harness.getPlaceholder(), placeholder);\n });\n }\n\n /** Whether the input is disabled. */\n async isDisabled(): Promise<boolean> {\n const host = await this.host();\n const disabled = await host.getAttribute('disabled');\n\n if (disabled !== null) {\n return coerceBooleanProperty(disabled);\n }\n\n return (await host.getAttribute('aria-disabled')) === 'true';\n }\n\n /** Whether the input is required. */\n async isRequired(): Promise<boolean> {\n return (await this.host()).getProperty<boolean>('required');\n }\n\n /** Whether the input is readonly. */\n async isReadonly(): Promise<boolean> {\n return (await this.host()).getProperty<boolean>('readOnly');\n }\n\n /** Gets the value of the input. */\n async getValue(): Promise<string> {\n // The \"value\" property of the native input is never undefined.\n return await (await this.host()).getProperty<string>('value');\n }\n\n /** Gets the name of the input. */\n async getName(): Promise<string> {\n // The \"name\" property of the native input is never undefined.\n return await (await this.host()).getProperty<string>('name');\n }\n\n /**\n * Gets the type of the input. Returns \"textarea\" if the input is\n * a textarea.\n */\n async getType(): Promise<string> {\n // The \"type\" property of the native input is never undefined.\n return await (await this.host()).getProperty<string>('type');\n }\n\n /** Gets the placeholder of the input. */\n async getPlaceholder(): Promise<string> {\n const host = await this.host();\n const [nativePlaceholder, fallback] = await parallel(() => [\n host.getProperty('placeholder'),\n host.getAttribute('data-placeholder'),\n ]);\n return nativePlaceholder || fallback || '';\n }\n\n /** Gets the id of the input. */\n async getId(): Promise<string> {\n // The input directive always assigns a unique id to the input in\n // case no id has been explicitly specified.\n return await (await this.host()).getProperty<string>('id');\n }\n\n /**\n * Focuses the input and returns a promise that indicates when the\n * action is complete.\n */\n async focus(): Promise<void> {\n return (await this.host()).focus();\n }\n\n /**\n * Blurs the input and returns a promise that indicates when the\n * action is complete.\n */\n async blur(): Promise<void> {\n return (await this.host()).blur();\n }\n\n /** Whether the input is focused. */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n\n /**\n * Sets the value of the input. The value will be set by simulating\n * keypresses that correspond to the given value.\n */\n async setValue(newValue: string): Promise<void> {\n const inputEl = await this.host();\n await inputEl.clear();\n // We don't want to send keys for the value if the value is an empty\n // string in order to clear the value. Sending keys with an empty string\n // still results in unnecessary focus events.\n if (newValue) {\n await inputEl.sendKeys(newValue);\n }\n\n // Some input types won't respond to key presses (e.g. `color`) so to be sure that the\n // value is set, we also set the property after the keyboard sequence. Note that we don't\n // want to do it before, because it can cause the value to be entered twice.\n await inputEl.setInputValue(newValue);\n }\n}\n"],"names":[],"mappings":";;;;AAaA;AACM,MAAO,eAAgB,SAAQ,0BAA0B,CAAA;;;;AAI7D,IAAA,OAAO,YAAY,GAAG,iEAAiE;AAEvF;;;;;AAKG;AACH,IAAA,OAAO,IAAI,CAAC,OAAA,GAA+B,EAAE,EAAA;AAC3C,QAAA,OAAO,IAAI,gBAAgB,CAAC,eAAe,EAAE,OAAO;AACjD,aAAA,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,KAAI;YACpD,OAAO,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC;AAClE,SAAC;AACA,aAAA,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,KAAI;YACtE,OAAO,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,WAAW,CAAC;AAC9E,SAAC,CAAC;;;AAIN,IAAA,MAAM,UAAU,GAAA;AACd,QAAA,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE;QAC9B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC;AAEpD,QAAA,IAAI,QAAQ,KAAK,IAAI,EAAE;AACrB,YAAA,OAAO,qBAAqB,CAAC,QAAQ,CAAC;;QAGxC,OAAO,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,MAAM,MAAM;;;AAI9D,IAAA,MAAM,UAAU,GAAA;AACd,QAAA,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAU,UAAU,CAAC;;;AAI7D,I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,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE;;AAGxC;;;AAGG;IACH,MAAM,QAAQ,CAAC,QAAgB,EAAA;AAC7B,QAAA,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE;AACjC,QAAA,MAAM,OAAO,CAAC,KAAK,EAAE;;;;QAIrB,IAAI,QAAQ,EAAE;AACZ,YAAA,MAAM,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;;;;;AAMlC,QAAA,MAAM,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC;;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This token is used to inject the object whose value should be set into `MatInput`. If none is
|
|
5
|
+
* provided, the native `HTMLInputElement` is used. Directives like `MatDatepickerInput` can provide
|
|
6
|
+
* themselves for this token, in order to make `MatInput` delegate the getting and setting of the
|
|
7
|
+
* value to them.
|
|
8
|
+
*/
|
|
9
|
+
const MAT_INPUT_VALUE_ACCESSOR = new InjectionToken('MAT_INPUT_VALUE_ACCESSOR');
|
|
10
|
+
|
|
11
|
+
export { MAT_INPUT_VALUE_ACCESSOR as M };
|
|
12
|
+
//# sourceMappingURL=input-value-accessor-D1GvPuqO.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-value-accessor-D1GvPuqO.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/input/input-value-accessor.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 {InjectionToken, WritableSignal} from '@angular/core';\n\n/**\n * This token is used to inject the object whose value should be set into `MatInput`. If none is\n * provided, the native `HTMLInputElement` is used. Directives like `MatDatepickerInput` can provide\n * themselves for this token, in order to make `MatInput` delegate the getting and setting of the\n * value to them.\n */\nexport const MAT_INPUT_VALUE_ACCESSOR = new InjectionToken<{value: any | WritableSignal<any>}>(\n 'MAT_INPUT_VALUE_ACCESSOR',\n);\n"],"names":[],"mappings":";;AAUA;;;;;AAKG;MACU,wBAAwB,GAAG,IAAI,cAAc,CACxD,0BAA0B;;;;"}
|
package/fesm2022/input.mjs
CHANGED
|
@@ -5,24 +5,27 @@ import * as i0 from '@angular/core';
|
|
|
5
5
|
import { InjectionToken, inject, ElementRef, NgZone, Renderer2, isSignal, effect, booleanAttribute, Directive, Input, NgModule } from '@angular/core';
|
|
6
6
|
import { _IdGenerator } from '@angular/cdk/a11y';
|
|
7
7
|
import { NgControl, Validators, NgForm, FormGroupDirective } from '@angular/forms';
|
|
8
|
-
import { ErrorStateMatcher, _ErrorStateTracker, MatCommonModule } from '@angular/material/core';
|
|
9
|
-
import { MAT_FORM_FIELD, MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
|
|
10
|
-
export { MatError, MatFormField, MatHint, MatLabel, MatPrefix, MatSuffix } from '@angular/material/form-field';
|
|
11
8
|
import { Subject } from 'rxjs';
|
|
9
|
+
import { M as MAT_INPUT_VALUE_ACCESSOR } from './input-value-accessor-D1GvPuqO.mjs';
|
|
10
|
+
import { h as MAT_FORM_FIELD, k as MatFormFieldControl } from './form-field-BZd6Vhww.mjs';
|
|
11
|
+
export { b as MatError, j as MatFormField, c as MatHint, M as MatLabel, e as MatPrefix, g as MatSuffix } from './form-field-BZd6Vhww.mjs';
|
|
12
|
+
import { E as ErrorStateMatcher } from './error-options-BWOa3B4G.mjs';
|
|
13
|
+
import { _ as _ErrorStateTracker } from './error-state-Dtb1IHM-.mjs';
|
|
14
|
+
import { M as MatFormFieldModule } from './module-CTd5xD2i.mjs';
|
|
15
|
+
import { M as MatCommonModule } from './common-module-DZl8g1kc.mjs';
|
|
16
|
+
import '@angular/cdk/bidi';
|
|
17
|
+
import '@angular/common';
|
|
18
|
+
import 'rxjs/operators';
|
|
19
|
+
import '@angular/cdk/observers/private';
|
|
20
|
+
import './animation-DfMFjxHu.mjs';
|
|
21
|
+
import '@angular/cdk/layout';
|
|
22
|
+
import '@angular/cdk/observers';
|
|
12
23
|
|
|
13
24
|
/** @docs-private */
|
|
14
25
|
function getMatInputUnsupportedTypeError(type) {
|
|
15
26
|
return Error(`Input type "${type}" isn't supported by matInput.`);
|
|
16
27
|
}
|
|
17
28
|
|
|
18
|
-
/**
|
|
19
|
-
* This token is used to inject the object whose value should be set into `MatInput`. If none is
|
|
20
|
-
* provided, the native `HTMLInputElement` is used. Directives like `MatDatepickerInput` can provide
|
|
21
|
-
* themselves for this token, in order to make `MatInput` delegate the getting and setting of the
|
|
22
|
-
* value to them.
|
|
23
|
-
*/
|
|
24
|
-
const MAT_INPUT_VALUE_ACCESSOR = new InjectionToken('MAT_INPUT_VALUE_ACCESSOR');
|
|
25
|
-
|
|
26
29
|
// Invalid input type. Using one of these will throw an MatInputUnsupportedTypeError.
|
|
27
30
|
const MAT_INPUT_INVALID_TYPES = [
|
|
28
31
|
'button',
|
|
@@ -54,8 +57,6 @@ class MatInput {
|
|
|
54
57
|
_config = inject(MAT_INPUT_CONFIG, { optional: true });
|
|
55
58
|
_cleanupIosKeyup;
|
|
56
59
|
_cleanupWebkitWheel;
|
|
57
|
-
/** `aria-describedby` IDs assigned by the form field. */
|
|
58
|
-
_formFieldDescribedBy;
|
|
59
60
|
/** Whether the component is being rendered on the server. */
|
|
60
61
|
_isServer;
|
|
61
62
|
/** Whether the component is a native html select. */
|
|
@@ -416,24 +417,19 @@ class MatInput {
|
|
|
416
417
|
* Implemented as part of MatFormFieldControl.
|
|
417
418
|
* @docs-private
|
|
418
419
|
*/
|
|
419
|
-
|
|
420
|
+
get describedByIds() {
|
|
420
421
|
const element = this._elementRef.nativeElement;
|
|
421
422
|
const existingDescribedBy = element.getAttribute('aria-describedby');
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
toAssign = ids;
|
|
433
|
-
}
|
|
434
|
-
this._formFieldDescribedBy = ids;
|
|
435
|
-
if (toAssign.length) {
|
|
436
|
-
element.setAttribute('aria-describedby', toAssign.join(' '));
|
|
423
|
+
return existingDescribedBy?.split(' ') || [];
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Implemented as part of MatFormFieldControl.
|
|
427
|
+
* @docs-private
|
|
428
|
+
*/
|
|
429
|
+
setDescribedByIds(ids) {
|
|
430
|
+
const element = this._elementRef.nativeElement;
|
|
431
|
+
if (ids.length) {
|
|
432
|
+
element.setAttribute('aria-describedby', ids.join(' '));
|
|
437
433
|
}
|
|
438
434
|
else {
|
|
439
435
|
element.removeAttribute('aria-describedby');
|
|
@@ -503,10 +499,10 @@ class MatInput {
|
|
|
503
499
|
}
|
|
504
500
|
return null;
|
|
505
501
|
}
|
|
506
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
507
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
502
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
503
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", type: MatInput, isStandalone: true, selector: "input[matInput], textarea[matInput], select[matNativeControl],\n input[matNativeControl], textarea[matNativeControl]", inputs: { disabled: "disabled", id: "id", placeholder: "placeholder", name: "name", required: "required", type: "type", errorStateMatcher: "errorStateMatcher", userAriaDescribedBy: ["aria-describedby", "userAriaDescribedBy"], value: "value", readonly: "readonly", disabledInteractive: ["disabledInteractive", "disabledInteractive", booleanAttribute] }, host: { listeners: { "focus": "_focusChanged(true)", "blur": "_focusChanged(false)", "input": "_onInput()" }, properties: { "class.mat-input-server": "_isServer", "class.mat-mdc-form-field-textarea-control": "_isInFormField && _isTextarea", "class.mat-mdc-form-field-input-control": "_isInFormField", "class.mat-mdc-input-disabled-interactive": "disabledInteractive", "class.mdc-text-field__input": "_isInFormField", "class.mat-mdc-native-select-inline": "_isInlineSelect()", "id": "id", "disabled": "disabled && !disabledInteractive", "required": "required", "attr.name": "name || null", "attr.readonly": "_getReadonlyAttribute()", "attr.aria-disabled": "disabled && disabledInteractive ? \"true\" : null", "attr.aria-invalid": "(empty && required) ? null : errorState", "attr.aria-required": "required", "attr.id": "id" }, classAttribute: "mat-mdc-input-element" }, providers: [{ provide: MatFormFieldControl, useExisting: MatInput }], exportAs: ["matInput"], usesOnChanges: true, ngImport: i0 });
|
|
508
504
|
}
|
|
509
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatInput, decorators: [{
|
|
510
506
|
type: Directive,
|
|
511
507
|
args: [{
|
|
512
508
|
selector: `input[matInput], textarea[matInput], select[matNativeControl],
|
|
@@ -571,11 +567,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
571
567
|
}] } });
|
|
572
568
|
|
|
573
569
|
class MatInputModule {
|
|
574
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
575
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
576
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
570
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
571
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatInputModule, imports: [MatCommonModule, MatFormFieldModule, MatInput], exports: [MatInput, MatFormFieldModule, TextFieldModule, MatCommonModule] });
|
|
572
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatInputModule, imports: [MatCommonModule, MatFormFieldModule, MatFormFieldModule, TextFieldModule, MatCommonModule] });
|
|
577
573
|
}
|
|
578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatInputModule, decorators: [{
|
|
579
575
|
type: NgModule,
|
|
580
576
|
args: [{
|
|
581
577
|
imports: [MatCommonModule, MatFormFieldModule, MatInput],
|
|
@@ -583,9 +579,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
583
579
|
}]
|
|
584
580
|
}] });
|
|
585
581
|
|
|
586
|
-
/**
|
|
587
|
-
* Generated bundle index. Do not edit.
|
|
588
|
-
*/
|
|
589
|
-
|
|
590
582
|
export { MAT_INPUT_CONFIG, MAT_INPUT_VALUE_ACCESSOR, MatInput, MatInputModule, getMatInputUnsupportedTypeError };
|
|
591
583
|
//# sourceMappingURL=input.mjs.map
|
package/fesm2022/input.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.mjs","sources":["../../../../../../src/material/input/input-errors.ts","../../../../../../src/material/input/input-value-accessor.ts","../../../../../../src/material/input/input.ts","../../../../../../src/material/input/module.ts","../../../../../../src/material/input/input_public_index.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\n/** @docs-private */\nexport function getMatInputUnsupportedTypeError(type: string): Error {\n return Error(`Input type \"${type}\" isn't supported by matInput.`);\n}\n","/**\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 {InjectionToken, WritableSignal} from '@angular/core';\n\n/**\n * This token is used to inject the object whose value should be set into `MatInput`. If none is\n * provided, the native `HTMLInputElement` is used. Directives like `MatDatepickerInput` can provide\n * themselves for this token, in order to make `MatInput` delegate the getting and setting of the\n * value to them.\n */\nexport const MAT_INPUT_VALUE_ACCESSOR = new InjectionToken<{value: any | WritableSignal<any>}>(\n 'MAT_INPUT_VALUE_ACCESSOR',\n);\n","/**\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 {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {getSupportedInputTypes, Platform} from '@angular/cdk/platform';\nimport {AutofillMonitor} from '@angular/cdk/text-field';\nimport {\n AfterViewInit,\n booleanAttribute,\n Directive,\n DoCheck,\n effect,\n ElementRef,\n inject,\n InjectionToken,\n Input,\n isSignal,\n NgZone,\n OnChanges,\n OnDestroy,\n Renderer2,\n WritableSignal,\n} from '@angular/core';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {FormGroupDirective, NgControl, NgForm, Validators} from '@angular/forms';\nimport {ErrorStateMatcher, _ErrorStateTracker} from '@angular/material/core';\nimport {MatFormFieldControl, MatFormField, MAT_FORM_FIELD} from '@angular/material/form-field';\nimport {Subject} from 'rxjs';\nimport {getMatInputUnsupportedTypeError} from './input-errors';\nimport {MAT_INPUT_VALUE_ACCESSOR} from './input-value-accessor';\n\n// Invalid input type. Using one of these will throw an MatInputUnsupportedTypeError.\nconst MAT_INPUT_INVALID_TYPES = [\n 'button',\n 'checkbox',\n 'file',\n 'hidden',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n];\n\n/** Object that can be used to configure the default options for the input. */\nexport interface MatInputConfig {\n /** Whether disabled inputs should be interactive. */\n disabledInteractive?: boolean;\n}\n\n/** Injection token that can be used to provide the default options for the input. */\nexport const MAT_INPUT_CONFIG = new InjectionToken<MatInputConfig>('MAT_INPUT_CONFIG');\n\n@Directive({\n selector: `input[matInput], textarea[matInput], select[matNativeControl],\n input[matNativeControl], textarea[matNativeControl]`,\n exportAs: 'matInput',\n host: {\n 'class': 'mat-mdc-input-element',\n // The BaseMatInput parent class adds `mat-input-element`, `mat-form-field-control` and\n // `mat-form-field-autofill-control` to the CSS class list, but this should not be added for\n // this MDC equivalent input.\n '[class.mat-input-server]': '_isServer',\n '[class.mat-mdc-form-field-textarea-control]': '_isInFormField && _isTextarea',\n '[class.mat-mdc-form-field-input-control]': '_isInFormField',\n '[class.mat-mdc-input-disabled-interactive]': 'disabledInteractive',\n '[class.mdc-text-field__input]': '_isInFormField',\n '[class.mat-mdc-native-select-inline]': '_isInlineSelect()',\n // Native input properties that are overwritten by Angular inputs need to be synced with\n // the native input element. Otherwise property bindings for those don't work.\n '[id]': 'id',\n '[disabled]': 'disabled && !disabledInteractive',\n '[required]': 'required',\n '[attr.name]': 'name || null',\n '[attr.readonly]': '_getReadonlyAttribute()',\n '[attr.aria-disabled]': 'disabled && disabledInteractive ? \"true\" : null',\n // Only mark the input as invalid for assistive technology if it has a value since the\n // state usually overlaps with `aria-required` when the input is empty and can be redundant.\n '[attr.aria-invalid]': '(empty && required) ? null : errorState',\n '[attr.aria-required]': 'required',\n // Native input properties that are overwritten by Angular inputs need to be synced with\n // the native input element. Otherwise property bindings for those don't work.\n '[attr.id]': 'id',\n '(focus)': '_focusChanged(true)',\n '(blur)': '_focusChanged(false)',\n '(input)': '_onInput()',\n },\n providers: [{provide: MatFormFieldControl, useExisting: MatInput}],\n})\nexport class MatInput\n implements MatFormFieldControl<any>, OnChanges, OnDestroy, AfterViewInit, DoCheck\n{\n protected _elementRef =\n inject<ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>>(ElementRef);\n protected _platform = inject(Platform);\n ngControl = inject(NgControl, {optional: true, self: true})!;\n private _autofillMonitor = inject(AutofillMonitor);\n private _ngZone = inject(NgZone);\n protected _formField? = inject<MatFormField>(MAT_FORM_FIELD, {optional: true});\n private _renderer = inject(Renderer2);\n\n protected _uid = inject(_IdGenerator).getId('mat-input-');\n protected _previousNativeValue: any;\n private _inputValueAccessor: {value: any};\n private _signalBasedValueAccessor?: {value: WritableSignal<any>};\n private _previousPlaceholder: string | null;\n private _errorStateTracker: _ErrorStateTracker;\n private _config = inject(MAT_INPUT_CONFIG, {optional: true});\n private _cleanupIosKeyup: (() => void) | undefined;\n private _cleanupWebkitWheel: (() => void) | undefined;\n\n /** `aria-describedby` IDs assigned by the form field. */\n private _formFieldDescribedBy: string[] | undefined;\n\n /** Whether the component is being rendered on the server. */\n readonly _isServer: boolean;\n\n /** Whether the component is a native html select. */\n readonly _isNativeSelect: boolean;\n\n /** Whether the component is a textarea. */\n readonly _isTextarea: boolean;\n\n /** Whether the input is inside of a form field. */\n readonly _isInFormField: boolean;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n focused: boolean = false;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n readonly stateChanges: Subject<void> = new Subject<void>();\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n controlType: string = 'mat-input';\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n autofilled = false;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input()\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: BooleanInput) {\n this._disabled = coerceBooleanProperty(value);\n\n // Browsers may not fire the blur event if the input is disabled too quickly.\n // Reset from here to ensure that the element doesn't become stuck.\n if (this.focused) {\n this.focused = false;\n this.stateChanges.next();\n }\n }\n protected _disabled = false;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input()\n get id(): string {\n return this._id;\n }\n set id(value: string) {\n this._id = value || this._uid;\n }\n protected _id: string;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input() placeholder: string;\n\n /**\n * Name of the input.\n * @docs-private\n */\n @Input() name: string;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input()\n get required(): boolean {\n return this._required ?? this.ngControl?.control?.hasValidator(Validators.required) ?? false;\n }\n set required(value: BooleanInput) {\n this._required = coerceBooleanProperty(value);\n }\n protected _required: boolean | undefined;\n\n /** Input type of the element. */\n @Input()\n get type(): string {\n return this._type;\n }\n set type(value: string) {\n const prevType = this._type;\n this._type = value || 'text';\n this._validateType();\n\n // When using Angular inputs, developers are no longer able to set the properties on the native\n // input element. To ensure that bindings for `type` work, we need to sync the setter\n // with the native property. Textarea elements don't support the type property or attribute.\n if (!this._isTextarea && getSupportedInputTypes().has(this._type)) {\n (this._elementRef.nativeElement as HTMLInputElement).type = this._type;\n }\n\n if (this._type !== prevType) {\n this._ensureWheelDefaultBehavior();\n }\n }\n protected _type = 'text';\n\n /** An object used to control when error messages are shown. */\n @Input()\n get errorStateMatcher() {\n return this._errorStateTracker.matcher;\n }\n set errorStateMatcher(value: ErrorStateMatcher) {\n this._errorStateTracker.matcher = value;\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input('aria-describedby') userAriaDescribedBy: string;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input()\n get value(): string {\n return this._signalBasedValueAccessor\n ? this._signalBasedValueAccessor.value()\n : this._inputValueAccessor.value;\n }\n set value(value: any) {\n if (value !== this.value) {\n if (this._signalBasedValueAccessor) {\n this._signalBasedValueAccessor.value.set(value);\n } else {\n this._inputValueAccessor.value = value;\n }\n\n this.stateChanges.next();\n }\n }\n\n /** Whether the element is readonly. */\n @Input()\n get readonly(): boolean {\n return this._readonly;\n }\n set readonly(value: BooleanInput) {\n this._readonly = coerceBooleanProperty(value);\n }\n private _readonly = false;\n\n /** Whether the input should remain interactive when it is disabled. */\n @Input({transform: booleanAttribute})\n disabledInteractive: boolean;\n\n /** Whether the input is in an error state. */\n get errorState() {\n return this._errorStateTracker.errorState;\n }\n set errorState(value: boolean) {\n this._errorStateTracker.errorState = value;\n }\n\n protected _neverEmptyInputTypes = [\n 'date',\n 'datetime',\n 'datetime-local',\n 'month',\n 'time',\n 'week',\n ].filter(t => getSupportedInputTypes().has(t));\n\n constructor(...args: unknown[]);\n\n constructor() {\n const parentForm = inject(NgForm, {optional: true});\n const parentFormGroup = inject(FormGroupDirective, {optional: true});\n const defaultErrorStateMatcher = inject(ErrorStateMatcher);\n const accessor = inject(MAT_INPUT_VALUE_ACCESSOR, {optional: true, self: true});\n\n const element = this._elementRef.nativeElement;\n const nodeName = element.nodeName.toLowerCase();\n\n if (accessor) {\n if (isSignal(accessor.value)) {\n this._signalBasedValueAccessor = accessor;\n } else {\n this._inputValueAccessor = accessor;\n }\n } else {\n // If no input value accessor was explicitly specified, use the element as the input value\n // accessor.\n this._inputValueAccessor = element;\n }\n\n this._previousNativeValue = this.value;\n\n // Force setter to be called in case id was not specified.\n this.id = this.id;\n\n // On some versions of iOS the caret gets stuck in the wrong place when holding down the delete\n // key. In order to get around this we need to \"jiggle\" the caret loose. Since this bug only\n // exists on iOS, we only bother to install the listener on iOS.\n if (this._platform.IOS) {\n this._ngZone.runOutsideAngular(() => {\n this._cleanupIosKeyup = this._renderer.listen(element, 'keyup', this._iOSKeyupListener);\n });\n }\n\n this._errorStateTracker = new _ErrorStateTracker(\n defaultErrorStateMatcher,\n this.ngControl,\n parentFormGroup,\n parentForm,\n this.stateChanges,\n );\n this._isServer = !this._platform.isBrowser;\n this._isNativeSelect = nodeName === 'select';\n this._isTextarea = nodeName === 'textarea';\n this._isInFormField = !!this._formField;\n this.disabledInteractive = this._config?.disabledInteractive || false;\n\n if (this._isNativeSelect) {\n this.controlType = (element as HTMLSelectElement).multiple\n ? 'mat-native-select-multiple'\n : 'mat-native-select';\n }\n\n if (this._signalBasedValueAccessor) {\n effect(() => {\n // Read the value so the effect can register the dependency.\n this._signalBasedValueAccessor!.value();\n this.stateChanges.next();\n });\n }\n }\n\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(event => {\n this.autofilled = event.isAutofilled;\n this.stateChanges.next();\n });\n }\n }\n\n ngOnChanges() {\n this.stateChanges.next();\n }\n\n ngOnDestroy() {\n this.stateChanges.complete();\n\n if (this._platform.isBrowser) {\n this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);\n }\n\n this._cleanupIosKeyup?.();\n this._cleanupWebkitWheel?.();\n }\n\n ngDoCheck() {\n if (this.ngControl) {\n // We need to re-evaluate this on every change detection cycle, because there are some\n // error triggers that we can't subscribe to (e.g. parent form submissions). This means\n // that whatever logic is in here has to be super lean or we risk destroying the performance.\n this.updateErrorState();\n\n // Since the input isn't a `ControlValueAccessor`, we don't have a good way of knowing when\n // the disabled state has changed. We can't use the `ngControl.statusChanges`, because it\n // won't fire if the input is disabled with `emitEvents = false`, despite the input becoming\n // disabled.\n if (this.ngControl.disabled !== null && this.ngControl.disabled !== this.disabled) {\n this.disabled = this.ngControl.disabled;\n this.stateChanges.next();\n }\n }\n\n // We need to dirty-check the native element's value, because there are some cases where\n // we won't be notified when it changes (e.g. the consumer isn't using forms or they're\n // updating the value using `emitEvent: false`).\n this._dirtyCheckNativeValue();\n\n // We need to dirty-check and set the placeholder attribute ourselves, because whether it's\n // present or not depends on a query which is prone to \"changed after checked\" errors.\n this._dirtyCheckPlaceholder();\n }\n\n /** Focuses the input. */\n focus(options?: FocusOptions): void {\n this._elementRef.nativeElement.focus(options);\n }\n\n /** Refreshes the error state of the input. */\n updateErrorState() {\n this._errorStateTracker.updateErrorState();\n }\n\n /** Callback for the cases where the focused state of the input changes. */\n _focusChanged(isFocused: boolean) {\n if (isFocused === this.focused) {\n return;\n }\n\n if (!this._isNativeSelect && isFocused && this.disabled && this.disabledInteractive) {\n const element = this._elementRef.nativeElement as HTMLInputElement;\n\n // Focusing an input that has text will cause all the text to be selected. Clear it since\n // the user won't be able to change it. This is based on the internal implementation.\n if (element.type === 'number') {\n // setSelectionRange doesn't work on number inputs so it needs to be set briefly to text.\n element.type = 'text';\n element.setSelectionRange(0, 0);\n element.type = 'number';\n } else {\n element.setSelectionRange(0, 0);\n }\n }\n\n this.focused = isFocused;\n this.stateChanges.next();\n }\n\n _onInput() {\n // This is a noop function and is used to let Angular know whenever the value changes.\n // Angular will run a new change detection each time the `input` event has been dispatched.\n // It's necessary that Angular recognizes the value change, because when floatingLabel\n // is set to false and Angular forms aren't used, the placeholder won't recognize the\n // value changes and will not disappear.\n // Listening to the input event wouldn't be necessary when the input is using the\n // FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.\n }\n\n /** Does some manual dirty checking on the native input `value` property. */\n protected _dirtyCheckNativeValue() {\n const newValue = this._elementRef.nativeElement.value;\n\n if (this._previousNativeValue !== newValue) {\n this._previousNativeValue = newValue;\n this.stateChanges.next();\n }\n }\n\n /** Does some manual dirty checking on the native input `placeholder` attribute. */\n private _dirtyCheckPlaceholder() {\n const placeholder = this._getPlaceholder();\n if (placeholder !== this._previousPlaceholder) {\n const element = this._elementRef.nativeElement;\n this._previousPlaceholder = placeholder;\n placeholder\n ? element.setAttribute('placeholder', placeholder)\n : element.removeAttribute('placeholder');\n }\n }\n\n /** Gets the current placeholder of the form field. */\n protected _getPlaceholder(): string | null {\n return this.placeholder || null;\n }\n\n /** Make sure the input is a supported type. */\n protected _validateType() {\n if (\n MAT_INPUT_INVALID_TYPES.indexOf(this._type) > -1 &&\n (typeof ngDevMode === 'undefined' || ngDevMode)\n ) {\n throw getMatInputUnsupportedTypeError(this._type);\n }\n }\n\n /** Checks whether the input type is one of the types that are never empty. */\n protected _isNeverEmpty() {\n return this._neverEmptyInputTypes.indexOf(this._type) > -1;\n }\n\n /** Checks whether the input is invalid based on the native validation. */\n protected _isBadInput() {\n // The `validity` property won't be present on platform-server.\n let validity = (this._elementRef.nativeElement as HTMLInputElement).validity;\n return validity && validity.badInput;\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get empty(): boolean {\n return (\n !this._isNeverEmpty() &&\n !this._elementRef.nativeElement.value &&\n !this._isBadInput() &&\n !this.autofilled\n );\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get shouldLabelFloat(): boolean {\n if (this._isNativeSelect) {\n // For a single-selection `<select>`, the label should float when the selected option has\n // a non-empty display value. For a `<select multiple>`, the label *always* floats to avoid\n // overlapping the label with the options.\n const selectElement = this._elementRef.nativeElement as HTMLSelectElement;\n const firstOption: HTMLOptionElement | undefined = selectElement.options[0];\n\n // On most browsers the `selectedIndex` will always be 0, however on IE and Edge it'll be\n // -1 if the `value` is set to something, that isn't in the list of options, at a later point.\n return (\n this.focused ||\n selectElement.multiple ||\n !this.empty ||\n !!(selectElement.selectedIndex > -1 && firstOption && firstOption.label)\n );\n } else {\n return (this.focused && !this.disabled) || !this.empty;\n }\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n setDescribedByIds(ids: string[]) {\n const element = this._elementRef.nativeElement;\n const existingDescribedBy = element.getAttribute('aria-describedby');\n let toAssign: string[];\n\n // In some cases there might be some `aria-describedby` IDs that were assigned directly,\n // like by the `AriaDescriber` (see #30011). Attempt to preserve them by taking the previous\n // attribute value and filtering out the IDs that came from the previous `setDescribedByIds`\n // call. Note the `|| ids` here allows us to avoid duplicating IDs on the first render.\n if (existingDescribedBy) {\n const exclude = this._formFieldDescribedBy || ids;\n toAssign = ids.concat(\n existingDescribedBy.split(' ').filter(id => id && !exclude.includes(id)),\n );\n } else {\n toAssign = ids;\n }\n\n this._formFieldDescribedBy = ids;\n\n if (toAssign.length) {\n element.setAttribute('aria-describedby', toAssign.join(' '));\n } else {\n element.removeAttribute('aria-describedby');\n }\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n onContainerClick() {\n // Do not re-focus the input element if the element is already focused. Otherwise it can happen\n // that someone clicks on a time input and the cursor resets to the \"hours\" field while the\n // \"minutes\" field was actually clicked. See: https://github.com/angular/components/issues/12849\n if (!this.focused) {\n this.focus();\n }\n }\n\n /** Whether the form control is a native select that is displayed inline. */\n _isInlineSelect(): boolean {\n const element = this._elementRef.nativeElement as HTMLSelectElement;\n return this._isNativeSelect && (element.multiple || element.size > 1);\n }\n\n private _iOSKeyupListener = (event: Event): void => {\n const el = event.target as HTMLInputElement;\n\n // Note: We specifically check for 0, rather than `!el.selectionStart`, because the two\n // indicate different things. If the value is 0, it means that the caret is at the start\n // of the input, whereas a value of `null` means that the input doesn't support\n // manipulating the selection range. Inputs that don't support setting the selection range\n // will throw an error so we want to avoid calling `setSelectionRange` on them. See:\n // https://html.spec.whatwg.org/multipage/input.html#do-not-apply\n if (!el.value && el.selectionStart === 0 && el.selectionEnd === 0) {\n // Note: Just setting `0, 0` doesn't fix the issue. Setting\n // `1, 1` fixes it for the first time that you type text and\n // then hold delete. Toggling to `1, 1` and then back to\n // `0, 0` seems to completely fix it.\n el.setSelectionRange(1, 1);\n el.setSelectionRange(0, 0);\n }\n };\n\n private _webkitBlinkWheelListener = (): void => {\n // This is a noop function and is used to enable mouse wheel input\n // on number inputs\n // on blink and webkit browsers.\n };\n\n /**\n * In blink and webkit browsers a focused number input does not increment or decrement its value\n * on mouse wheel interaction unless a wheel event listener is attached to it or one of its\n * ancestors or a passive wheel listener is attached somewhere in the DOM. For example: Hitting\n * a tooltip once enables the mouse wheel input for all number inputs as long as it exists. In\n * order to get reliable and intuitive behavior we apply a wheel event on our own thus making\n * sure increment and decrement by mouse wheel works every time.\n * @docs-private\n */\n private _ensureWheelDefaultBehavior(): void {\n this._cleanupWebkitWheel?.();\n\n if (this._type === 'number' && (this._platform.BLINK || this._platform.WEBKIT)) {\n this._cleanupWebkitWheel = this._renderer.listen(\n this._elementRef.nativeElement,\n 'wheel',\n this._webkitBlinkWheelListener,\n );\n }\n }\n\n /** Gets the value to set on the `readonly` attribute. */\n protected _getReadonlyAttribute(): string | null {\n if (this._isNativeSelect) {\n return null;\n }\n\n if (this.readonly || (this.disabled && this.disabledInteractive)) {\n return 'true';\n }\n\n return null;\n }\n}\n","/**\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 {TextFieldModule} from '@angular/cdk/text-field';\nimport {NgModule} from '@angular/core';\nimport {MatCommonModule} from '@angular/material/core';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {MatInput} from './input';\n\n@NgModule({\n imports: [MatCommonModule, MatFormFieldModule, MatInput],\n exports: [MatInput, MatFormFieldModule, TextFieldModule, MatCommonModule],\n})\nexport class MatInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAQA;AACM,SAAU,+BAA+B,CAAC,IAAY,EAAA;AAC1D,IAAA,OAAO,KAAK,CAAC,CAAA,YAAA,EAAe,IAAI,CAAA,8BAAA,CAAgC,CAAC,CAAC;AACpE;;ACDA;;;;;AAKG;MACU,wBAAwB,GAAG,IAAI,cAAc,CACxD,0BAA0B;;ACmB5B;AACA,MAAM,uBAAuB,GAAG;IAC9B,QAAQ;IACR,UAAU;IACV,MAAM;IACN,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;CACT,CAAC;AAQF;MACa,gBAAgB,GAAG,IAAI,cAAc,CAAiB,kBAAkB,EAAE;MAsC1E,QAAQ,CAAA;AAGT,IAAA,WAAW,GACnB,MAAM,CAAyE,UAAU,CAAC,CAAC;AACnF,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AACvC,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,CAAE,CAAC;AACrD,IAAA,gBAAg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YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,kBAAkB,EAAE,QAAQ,CAAC;oBACxD,OAAO,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,CAAC;AAC1E,iBAAA,CAAA;;;ACjBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"input.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/input/input-errors.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/input/input.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/input/module.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\n/** @docs-private */\nexport function getMatInputUnsupportedTypeError(type: string): Error {\n return Error(`Input type \"${type}\" isn't supported by matInput.`);\n}\n","/**\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 {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {getSupportedInputTypes, Platform} from '@angular/cdk/platform';\nimport {AutofillMonitor} from '@angular/cdk/text-field';\nimport {\n AfterViewInit,\n booleanAttribute,\n Directive,\n DoCheck,\n effect,\n ElementRef,\n inject,\n InjectionToken,\n Input,\n isSignal,\n NgZone,\n OnChanges,\n OnDestroy,\n Renderer2,\n WritableSignal,\n} from '@angular/core';\nimport {_IdGenerator} from '@angular/cdk/a11y';\nimport {FormGroupDirective, NgControl, NgForm, Validators} from '@angular/forms';\nimport {ErrorStateMatcher, _ErrorStateTracker} from '../core';\nimport {MatFormFieldControl, MatFormField, MAT_FORM_FIELD} from '../form-field';\nimport {Subject} from 'rxjs';\nimport {getMatInputUnsupportedTypeError} from './input-errors';\nimport {MAT_INPUT_VALUE_ACCESSOR} from './input-value-accessor';\n\n// Invalid input type. Using one of these will throw an MatInputUnsupportedTypeError.\nconst MAT_INPUT_INVALID_TYPES = [\n 'button',\n 'checkbox',\n 'file',\n 'hidden',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n];\n\n/** Object that can be used to configure the default options for the input. */\nexport interface MatInputConfig {\n /** Whether disabled inputs should be interactive. */\n disabledInteractive?: boolean;\n}\n\n/** Injection token that can be used to provide the default options for the input. */\nexport const MAT_INPUT_CONFIG = new InjectionToken<MatInputConfig>('MAT_INPUT_CONFIG');\n\n@Directive({\n selector: `input[matInput], textarea[matInput], select[matNativeControl],\n input[matNativeControl], textarea[matNativeControl]`,\n exportAs: 'matInput',\n host: {\n 'class': 'mat-mdc-input-element',\n // The BaseMatInput parent class adds `mat-input-element`, `mat-form-field-control` and\n // `mat-form-field-autofill-control` to the CSS class list, but this should not be added for\n // this MDC equivalent input.\n '[class.mat-input-server]': '_isServer',\n '[class.mat-mdc-form-field-textarea-control]': '_isInFormField && _isTextarea',\n '[class.mat-mdc-form-field-input-control]': '_isInFormField',\n '[class.mat-mdc-input-disabled-interactive]': 'disabledInteractive',\n '[class.mdc-text-field__input]': '_isInFormField',\n '[class.mat-mdc-native-select-inline]': '_isInlineSelect()',\n // Native input properties that are overwritten by Angular inputs need to be synced with\n // the native input element. Otherwise property bindings for those don't work.\n '[id]': 'id',\n '[disabled]': 'disabled && !disabledInteractive',\n '[required]': 'required',\n '[attr.name]': 'name || null',\n '[attr.readonly]': '_getReadonlyAttribute()',\n '[attr.aria-disabled]': 'disabled && disabledInteractive ? \"true\" : null',\n // Only mark the input as invalid for assistive technology if it has a value since the\n // state usually overlaps with `aria-required` when the input is empty and can be redundant.\n '[attr.aria-invalid]': '(empty && required) ? null : errorState',\n '[attr.aria-required]': 'required',\n // Native input properties that are overwritten by Angular inputs need to be synced with\n // the native input element. Otherwise property bindings for those don't work.\n '[attr.id]': 'id',\n '(focus)': '_focusChanged(true)',\n '(blur)': '_focusChanged(false)',\n '(input)': '_onInput()',\n },\n providers: [{provide: MatFormFieldControl, useExisting: MatInput}],\n})\nexport class MatInput\n implements MatFormFieldControl<any>, OnChanges, OnDestroy, AfterViewInit, DoCheck\n{\n protected _elementRef =\n inject<ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>>(ElementRef);\n protected _platform = inject(Platform);\n ngControl = inject(NgControl, {optional: true, self: true})!;\n private _autofillMonitor = inject(AutofillMonitor);\n private _ngZone = inject(NgZone);\n protected _formField? = inject<MatFormField>(MAT_FORM_FIELD, {optional: true});\n private _renderer = inject(Renderer2);\n\n protected _uid = inject(_IdGenerator).getId('mat-input-');\n protected _previousNativeValue: any;\n private _inputValueAccessor: {value: any};\n private _signalBasedValueAccessor?: {value: WritableSignal<any>};\n private _previousPlaceholder: string | null;\n private _errorStateTracker: _ErrorStateTracker;\n private _config = inject(MAT_INPUT_CONFIG, {optional: true});\n private _cleanupIosKeyup: (() => void) | undefined;\n private _cleanupWebkitWheel: (() => void) | undefined;\n\n /** Whether the component is being rendered on the server. */\n readonly _isServer: boolean;\n\n /** Whether the component is a native html select. */\n readonly _isNativeSelect: boolean;\n\n /** Whether the component is a textarea. */\n readonly _isTextarea: boolean;\n\n /** Whether the input is inside of a form field. */\n readonly _isInFormField: boolean;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n focused: boolean = false;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n readonly stateChanges: Subject<void> = new Subject<void>();\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n controlType: string = 'mat-input';\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n autofilled = false;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input()\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: BooleanInput) {\n this._disabled = coerceBooleanProperty(value);\n\n // Browsers may not fire the blur event if the input is disabled too quickly.\n // Reset from here to ensure that the element doesn't become stuck.\n if (this.focused) {\n this.focused = false;\n this.stateChanges.next();\n }\n }\n protected _disabled = false;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input()\n get id(): string {\n return this._id;\n }\n set id(value: string) {\n this._id = value || this._uid;\n }\n protected _id: string;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input() placeholder: string;\n\n /**\n * Name of the input.\n * @docs-private\n */\n @Input() name: string;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input()\n get required(): boolean {\n return this._required ?? this.ngControl?.control?.hasValidator(Validators.required) ?? false;\n }\n set required(value: BooleanInput) {\n this._required = coerceBooleanProperty(value);\n }\n protected _required: boolean | undefined;\n\n /** Input type of the element. */\n @Input()\n get type(): string {\n return this._type;\n }\n set type(value: string) {\n const prevType = this._type;\n this._type = value || 'text';\n this._validateType();\n\n // When using Angular inputs, developers are no longer able to set the properties on the native\n // input element. To ensure that bindings for `type` work, we need to sync the setter\n // with the native property. Textarea elements don't support the type property or attribute.\n if (!this._isTextarea && getSupportedInputTypes().has(this._type)) {\n (this._elementRef.nativeElement as HTMLInputElement).type = this._type;\n }\n\n if (this._type !== prevType) {\n this._ensureWheelDefaultBehavior();\n }\n }\n protected _type = 'text';\n\n /** An object used to control when error messages are shown. */\n @Input()\n get errorStateMatcher() {\n return this._errorStateTracker.matcher;\n }\n set errorStateMatcher(value: ErrorStateMatcher) {\n this._errorStateTracker.matcher = value;\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input('aria-describedby') userAriaDescribedBy: string;\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n @Input()\n get value(): string {\n return this._signalBasedValueAccessor\n ? this._signalBasedValueAccessor.value()\n : this._inputValueAccessor.value;\n }\n set value(value: any) {\n if (value !== this.value) {\n if (this._signalBasedValueAccessor) {\n this._signalBasedValueAccessor.value.set(value);\n } else {\n this._inputValueAccessor.value = value;\n }\n\n this.stateChanges.next();\n }\n }\n\n /** Whether the element is readonly. */\n @Input()\n get readonly(): boolean {\n return this._readonly;\n }\n set readonly(value: BooleanInput) {\n this._readonly = coerceBooleanProperty(value);\n }\n private _readonly = false;\n\n /** Whether the input should remain interactive when it is disabled. */\n @Input({transform: booleanAttribute})\n disabledInteractive: boolean;\n\n /** Whether the input is in an error state. */\n get errorState() {\n return this._errorStateTracker.errorState;\n }\n set errorState(value: boolean) {\n this._errorStateTracker.errorState = value;\n }\n\n protected _neverEmptyInputTypes = [\n 'date',\n 'datetime',\n 'datetime-local',\n 'month',\n 'time',\n 'week',\n ].filter(t => getSupportedInputTypes().has(t));\n\n constructor(...args: unknown[]);\n\n constructor() {\n const parentForm = inject(NgForm, {optional: true});\n const parentFormGroup = inject(FormGroupDirective, {optional: true});\n const defaultErrorStateMatcher = inject(ErrorStateMatcher);\n const accessor = inject(MAT_INPUT_VALUE_ACCESSOR, {optional: true, self: true});\n\n const element = this._elementRef.nativeElement;\n const nodeName = element.nodeName.toLowerCase();\n\n if (accessor) {\n if (isSignal(accessor.value)) {\n this._signalBasedValueAccessor = accessor;\n } else {\n this._inputValueAccessor = accessor;\n }\n } else {\n // If no input value accessor was explicitly specified, use the element as the input value\n // accessor.\n this._inputValueAccessor = element;\n }\n\n this._previousNativeValue = this.value;\n\n // Force setter to be called in case id was not specified.\n this.id = this.id;\n\n // On some versions of iOS the caret gets stuck in the wrong place when holding down the delete\n // key. In order to get around this we need to \"jiggle\" the caret loose. Since this bug only\n // exists on iOS, we only bother to install the listener on iOS.\n if (this._platform.IOS) {\n this._ngZone.runOutsideAngular(() => {\n this._cleanupIosKeyup = this._renderer.listen(element, 'keyup', this._iOSKeyupListener);\n });\n }\n\n this._errorStateTracker = new _ErrorStateTracker(\n defaultErrorStateMatcher,\n this.ngControl,\n parentFormGroup,\n parentForm,\n this.stateChanges,\n );\n this._isServer = !this._platform.isBrowser;\n this._isNativeSelect = nodeName === 'select';\n this._isTextarea = nodeName === 'textarea';\n this._isInFormField = !!this._formField;\n this.disabledInteractive = this._config?.disabledInteractive || false;\n\n if (this._isNativeSelect) {\n this.controlType = (element as HTMLSelectElement).multiple\n ? 'mat-native-select-multiple'\n : 'mat-native-select';\n }\n\n if (this._signalBasedValueAccessor) {\n effect(() => {\n // Read the value so the effect can register the dependency.\n this._signalBasedValueAccessor!.value();\n this.stateChanges.next();\n });\n }\n }\n\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(event => {\n this.autofilled = event.isAutofilled;\n this.stateChanges.next();\n });\n }\n }\n\n ngOnChanges() {\n this.stateChanges.next();\n }\n\n ngOnDestroy() {\n this.stateChanges.complete();\n\n if (this._platform.isBrowser) {\n this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);\n }\n\n this._cleanupIosKeyup?.();\n this._cleanupWebkitWheel?.();\n }\n\n ngDoCheck() {\n if (this.ngControl) {\n // We need to re-evaluate this on every change detection cycle, because there are some\n // error triggers that we can't subscribe to (e.g. parent form submissions). This means\n // that whatever logic is in here has to be super lean or we risk destroying the performance.\n this.updateErrorState();\n\n // Since the input isn't a `ControlValueAccessor`, we don't have a good way of knowing when\n // the disabled state has changed. We can't use the `ngControl.statusChanges`, because it\n // won't fire if the input is disabled with `emitEvents = false`, despite the input becoming\n // disabled.\n if (this.ngControl.disabled !== null && this.ngControl.disabled !== this.disabled) {\n this.disabled = this.ngControl.disabled;\n this.stateChanges.next();\n }\n }\n\n // We need to dirty-check the native element's value, because there are some cases where\n // we won't be notified when it changes (e.g. the consumer isn't using forms or they're\n // updating the value using `emitEvent: false`).\n this._dirtyCheckNativeValue();\n\n // We need to dirty-check and set the placeholder attribute ourselves, because whether it's\n // present or not depends on a query which is prone to \"changed after checked\" errors.\n this._dirtyCheckPlaceholder();\n }\n\n /** Focuses the input. */\n focus(options?: FocusOptions): void {\n this._elementRef.nativeElement.focus(options);\n }\n\n /** Refreshes the error state of the input. */\n updateErrorState() {\n this._errorStateTracker.updateErrorState();\n }\n\n /** Callback for the cases where the focused state of the input changes. */\n _focusChanged(isFocused: boolean) {\n if (isFocused === this.focused) {\n return;\n }\n\n if (!this._isNativeSelect && isFocused && this.disabled && this.disabledInteractive) {\n const element = this._elementRef.nativeElement as HTMLInputElement;\n\n // Focusing an input that has text will cause all the text to be selected. Clear it since\n // the user won't be able to change it. This is based on the internal implementation.\n if (element.type === 'number') {\n // setSelectionRange doesn't work on number inputs so it needs to be set briefly to text.\n element.type = 'text';\n element.setSelectionRange(0, 0);\n element.type = 'number';\n } else {\n element.setSelectionRange(0, 0);\n }\n }\n\n this.focused = isFocused;\n this.stateChanges.next();\n }\n\n _onInput() {\n // This is a noop function and is used to let Angular know whenever the value changes.\n // Angular will run a new change detection each time the `input` event has been dispatched.\n // It's necessary that Angular recognizes the value change, because when floatingLabel\n // is set to false and Angular forms aren't used, the placeholder won't recognize the\n // value changes and will not disappear.\n // Listening to the input event wouldn't be necessary when the input is using the\n // FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.\n }\n\n /** Does some manual dirty checking on the native input `value` property. */\n protected _dirtyCheckNativeValue() {\n const newValue = this._elementRef.nativeElement.value;\n\n if (this._previousNativeValue !== newValue) {\n this._previousNativeValue = newValue;\n this.stateChanges.next();\n }\n }\n\n /** Does some manual dirty checking on the native input `placeholder` attribute. */\n private _dirtyCheckPlaceholder() {\n const placeholder = this._getPlaceholder();\n if (placeholder !== this._previousPlaceholder) {\n const element = this._elementRef.nativeElement;\n this._previousPlaceholder = placeholder;\n placeholder\n ? element.setAttribute('placeholder', placeholder)\n : element.removeAttribute('placeholder');\n }\n }\n\n /** Gets the current placeholder of the form field. */\n protected _getPlaceholder(): string | null {\n return this.placeholder || null;\n }\n\n /** Make sure the input is a supported type. */\n protected _validateType() {\n if (\n MAT_INPUT_INVALID_TYPES.indexOf(this._type) > -1 &&\n (typeof ngDevMode === 'undefined' || ngDevMode)\n ) {\n throw getMatInputUnsupportedTypeError(this._type);\n }\n }\n\n /** Checks whether the input type is one of the types that are never empty. */\n protected _isNeverEmpty() {\n return this._neverEmptyInputTypes.indexOf(this._type) > -1;\n }\n\n /** Checks whether the input is invalid based on the native validation. */\n protected _isBadInput() {\n // The `validity` property won't be present on platform-server.\n let validity = (this._elementRef.nativeElement as HTMLInputElement).validity;\n return validity && validity.badInput;\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get empty(): boolean {\n return (\n !this._isNeverEmpty() &&\n !this._elementRef.nativeElement.value &&\n !this._isBadInput() &&\n !this.autofilled\n );\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get shouldLabelFloat(): boolean {\n if (this._isNativeSelect) {\n // For a single-selection `<select>`, the label should float when the selected option has\n // a non-empty display value. For a `<select multiple>`, the label *always* floats to avoid\n // overlapping the label with the options.\n const selectElement = this._elementRef.nativeElement as HTMLSelectElement;\n const firstOption: HTMLOptionElement | undefined = selectElement.options[0];\n\n // On most browsers the `selectedIndex` will always be 0, however on IE and Edge it'll be\n // -1 if the `value` is set to something, that isn't in the list of options, at a later point.\n return (\n this.focused ||\n selectElement.multiple ||\n !this.empty ||\n !!(selectElement.selectedIndex > -1 && firstOption && firstOption.label)\n );\n } else {\n return (this.focused && !this.disabled) || !this.empty;\n }\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get describedByIds(): string[] {\n const element = this._elementRef.nativeElement;\n const existingDescribedBy = element.getAttribute('aria-describedby');\n\n return existingDescribedBy?.split(' ') || [];\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n setDescribedByIds(ids: string[]) {\n const element = this._elementRef.nativeElement;\n\n if (ids.length) {\n element.setAttribute('aria-describedby', ids.join(' '));\n } else {\n element.removeAttribute('aria-describedby');\n }\n }\n\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n onContainerClick() {\n // Do not re-focus the input element if the element is already focused. Otherwise it can happen\n // that someone clicks on a time input and the cursor resets to the \"hours\" field while the\n // \"minutes\" field was actually clicked. See: https://github.com/angular/components/issues/12849\n if (!this.focused) {\n this.focus();\n }\n }\n\n /** Whether the form control is a native select that is displayed inline. */\n _isInlineSelect(): boolean {\n const element = this._elementRef.nativeElement as HTMLSelectElement;\n return this._isNativeSelect && (element.multiple || element.size > 1);\n }\n\n private _iOSKeyupListener = (event: Event): void => {\n const el = event.target as HTMLInputElement;\n\n // Note: We specifically check for 0, rather than `!el.selectionStart`, because the two\n // indicate different things. If the value is 0, it means that the caret is at the start\n // of the input, whereas a value of `null` means that the input doesn't support\n // manipulating the selection range. Inputs that don't support setting the selection range\n // will throw an error so we want to avoid calling `setSelectionRange` on them. See:\n // https://html.spec.whatwg.org/multipage/input.html#do-not-apply\n if (!el.value && el.selectionStart === 0 && el.selectionEnd === 0) {\n // Note: Just setting `0, 0` doesn't fix the issue. Setting\n // `1, 1` fixes it for the first time that you type text and\n // then hold delete. Toggling to `1, 1` and then back to\n // `0, 0` seems to completely fix it.\n el.setSelectionRange(1, 1);\n el.setSelectionRange(0, 0);\n }\n };\n\n private _webkitBlinkWheelListener = (): void => {\n // This is a noop function and is used to enable mouse wheel input\n // on number inputs\n // on blink and webkit browsers.\n };\n\n /**\n * In blink and webkit browsers a focused number input does not increment or decrement its value\n * on mouse wheel interaction unless a wheel event listener is attached to it or one of its\n * ancestors or a passive wheel listener is attached somewhere in the DOM. For example: Hitting\n * a tooltip once enables the mouse wheel input for all number inputs as long as it exists. In\n * order to get reliable and intuitive behavior we apply a wheel event on our own thus making\n * sure increment and decrement by mouse wheel works every time.\n * @docs-private\n */\n private _ensureWheelDefaultBehavior(): void {\n this._cleanupWebkitWheel?.();\n\n if (this._type === 'number' && (this._platform.BLINK || this._platform.WEBKIT)) {\n this._cleanupWebkitWheel = this._renderer.listen(\n this._elementRef.nativeElement,\n 'wheel',\n this._webkitBlinkWheelListener,\n );\n }\n }\n\n /** Gets the value to set on the `readonly` attribute. */\n protected _getReadonlyAttribute(): string | null {\n if (this._isNativeSelect) {\n return null;\n }\n\n if (this.readonly || (this.disabled && this.disabledInteractive)) {\n return 'true';\n }\n\n return null;\n }\n}\n","/**\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 {TextFieldModule} from '@angular/cdk/text-field';\nimport {NgModule} from '@angular/core';\nimport {MatCommonModule} from '../core';\nimport {MatFormFieldModule} from '../form-field';\nimport {MatInput} from './input';\n\n@NgModule({\n imports: [MatCommonModule, MatFormFieldModule, MatInput],\n exports: [MatInput, MatFormFieldModule, TextFieldModule, MatCommonModule],\n})\nexport class MatInputModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA;AACM,SAAU,+BAA+B,CAAC,IAAY,EAAA;AAC1D,IAAA,OAAO,KAAK,CAAC,CAAA,YAAA,EAAe,IAAI,CAAA,8BAAA,CAAgC,CAAC;AACnE;;ACyBA;AACA,MAAM,uBAAuB,GAAG;IAC9B,QAAQ;IACR,UAAU;IACV,MAAM;IACN,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;CACT;AAQD;MACa,gBAAgB,GAAG,IAAI,cAAc,CAAiB,kBAAkB;MAsCxE,QAAQ,CAAA;AAGT,IAAA,WAAW,GACnB,MAAM,CAAyE,UAAU,CAAC;AAClF,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;AACtC,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,CAAE;AACpD,IAAA,gBAAgB,GAAG,MAAM,CAAC,eAAe,CAAC;AAC1C,IAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;IACtB,UAAU,GAAI,MAAM,CAAe,cAAc,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AACtE,IAAA,SAAS,GAAG,MAAM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AAC,kBAAkB;gBAOrB,KAAK,EAAA,CAAA;sBADR;gBAoBG,QAAQ,EAAA,CAAA;sBADX;gBAWD,mBAAmB,EAAA,CAAA;sBADlB,KAAK;uBAAC,EAAC,SAAS,EAAE,gBAAgB,EAAC;;;MCvQzB,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,EAHf,OAAA,EAAA,CAAA,eAAe,EAAE,kBAAkB,EAAE,QAAQ,CAC7C,EAAA,OAAA,EAAA,CAAA,QAAQ,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,CAAA,EAAA,CAAA;+GAE7D,cAAc,EAAA,OAAA,EAAA,CAHf,eAAe,EAAE,kBAAkB,EACzB,kBAAkB,EAAE,eAAe,EAAE,eAAe,CAAA,EAAA,CAAA;;kGAE7D,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,kBAAkB,EAAE,QAAQ,CAAC;oBACxD,OAAO,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,CAAC;AAC1E,iBAAA;;;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Internal shared component used as a container in form field controls.
|
|
6
|
+
* Not to be confused with `mat-form-field` which MDC calls a "text field".
|
|
7
|
+
* @docs-private
|
|
8
|
+
*/
|
|
9
|
+
class _MatInternalFormField {
|
|
10
|
+
/** Position of the label relative to the content. */
|
|
11
|
+
labelPosition;
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: _MatInternalFormField, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.5", type: _MatInternalFormField, isStandalone: true, selector: "div[mat-internal-form-field]", inputs: { labelPosition: "labelPosition" }, host: { properties: { "class.mdc-form-field--align-end": "labelPosition === \"before\"" }, classAttribute: "mdc-form-field mat-internal-form-field" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: _MatInternalFormField, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: 'div[mat-internal-form-field]', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
18
|
+
'class': 'mdc-form-field mat-internal-form-field',
|
|
19
|
+
'[class.mdc-form-field--align-end]': 'labelPosition === "before"',
|
|
20
|
+
}, styles: [".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}\n"] }]
|
|
21
|
+
}], propDecorators: { labelPosition: [{
|
|
22
|
+
type: Input,
|
|
23
|
+
args: [{ required: true }]
|
|
24
|
+
}] } });
|
|
25
|
+
|
|
26
|
+
export { _MatInternalFormField as _ };
|
|
27
|
+
//# sourceMappingURL=internal-form-field-DVvKYBKJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-form-field-DVvKYBKJ.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/core/internal-form-field/internal-form-field.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 {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';\n\n/**\n * Internal shared component used as a container in form field controls.\n * Not to be confused with `mat-form-field` which MDC calls a \"text field\".\n * @docs-private\n */\n@Component({\n // Use a `div` selector to match the old markup closer.\n selector: 'div[mat-internal-form-field]',\n template: '<ng-content></ng-content>',\n styleUrl: 'internal-form-field.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'mdc-form-field mat-internal-form-field',\n '[class.mdc-form-field--align-end]': 'labelPosition === \"before\"',\n },\n})\nexport class _MatInternalFormField {\n /** Position of the label relative to the content. */\n @Input({required: true}) labelPosition: 'before' | 'after';\n}\n"],"names":[],"mappings":";;;AAUA;;;;AAIG;MAaU,qBAAqB,CAAA;;AAEP,IAAA,aAAa;8GAF3B,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,IAAA,EAAA,qBAAqB,2RATtB,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,mmBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;kGAS1B,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAZjC,SAAS;+BAEE,8BAA8B,EAAA,QAAA,EAC9B,2BAA2B,EAAA,aAAA,EAEtB,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACJ,wBAAA,OAAO,EAAE,wCAAwC;AACjD,wBAAA,mCAAmC,EAAE,4BAA4B;AAClE,qBAAA,EAAA,MAAA,EAAA,CAAA,mmBAAA,CAAA,EAAA;8BAIwB,aAAa,EAAA,CAAA;sBAArC,KAAK;uBAAC,EAAC,QAAQ,EAAE,IAAI,EAAC;;;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, NgModule } from '@angular/core';
|
|
3
|
+
import { startWith } from 'rxjs/operators';
|
|
4
|
+
import { M as MatCommonModule } from './common-module-DZl8g1kc.mjs';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared directive to count lines inside a text area, such as a list item.
|
|
8
|
+
* Line elements can be extracted with a @ContentChildren(MatLine) query, then
|
|
9
|
+
* counted by checking the query list's length.
|
|
10
|
+
*/
|
|
11
|
+
class MatLine {
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatLine, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatLine, isStandalone: true, selector: "[mat-line], [matLine]", host: { classAttribute: "mat-line" }, ngImport: i0 });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatLine, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: '[mat-line], [matLine]',
|
|
19
|
+
host: { 'class': 'mat-line' },
|
|
20
|
+
}]
|
|
21
|
+
}] });
|
|
22
|
+
/**
|
|
23
|
+
* Helper that takes a query list of lines and sets the correct class on the host.
|
|
24
|
+
* @docs-private
|
|
25
|
+
*/
|
|
26
|
+
function setLines(lines, element, prefix = 'mat') {
|
|
27
|
+
// Note: doesn't need to unsubscribe, because `changes`
|
|
28
|
+
// gets completed by Angular when the view is destroyed.
|
|
29
|
+
lines.changes.pipe(startWith(lines)).subscribe(({ length }) => {
|
|
30
|
+
setClass(element, `${prefix}-2-line`, false);
|
|
31
|
+
setClass(element, `${prefix}-3-line`, false);
|
|
32
|
+
setClass(element, `${prefix}-multi-line`, false);
|
|
33
|
+
if (length === 2 || length === 3) {
|
|
34
|
+
setClass(element, `${prefix}-${length}-line`, true);
|
|
35
|
+
}
|
|
36
|
+
else if (length > 3) {
|
|
37
|
+
setClass(element, `${prefix}-multi-line`, true);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/** Adds or removes a class from an element. */
|
|
42
|
+
function setClass(element, className, isAdd) {
|
|
43
|
+
element.nativeElement.classList.toggle(className, isAdd);
|
|
44
|
+
}
|
|
45
|
+
class MatLineModule {
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
47
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatLineModule, imports: [MatCommonModule, MatLine], exports: [MatLine, MatCommonModule] });
|
|
48
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatLineModule, imports: [MatCommonModule, MatCommonModule] });
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatLineModule, decorators: [{
|
|
51
|
+
type: NgModule,
|
|
52
|
+
args: [{
|
|
53
|
+
imports: [MatCommonModule, MatLine],
|
|
54
|
+
exports: [MatLine, MatCommonModule],
|
|
55
|
+
}]
|
|
56
|
+
}] });
|
|
57
|
+
|
|
58
|
+
export { MatLine as M, MatLineModule as a, setLines as s };
|
|
59
|
+
//# sourceMappingURL=line-Dwrcg_t9.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-Dwrcg_t9.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/src/material/core/line/line.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 {NgModule, Directive, ElementRef, QueryList} from '@angular/core';\nimport {startWith} from 'rxjs/operators';\nimport {MatCommonModule} from '../common-behaviors/common-module';\n\n/**\n * Shared directive to count lines inside a text area, such as a list item.\n * Line elements can be extracted with a @ContentChildren(MatLine) query, then\n * counted by checking the query list's length.\n */\n@Directive({\n selector: '[mat-line], [matLine]',\n host: {'class': 'mat-line'},\n})\nexport class MatLine {}\n\n/**\n * Helper that takes a query list of lines and sets the correct class on the host.\n * @docs-private\n */\nexport function setLines(\n lines: QueryList<unknown>,\n element: ElementRef<HTMLElement>,\n prefix = 'mat',\n) {\n // Note: doesn't need to unsubscribe, because `changes`\n // gets completed by Angular when the view is destroyed.\n lines.changes.pipe(startWith(lines)).subscribe(({length}) => {\n setClass(element, `${prefix}-2-line`, false);\n setClass(element, `${prefix}-3-line`, false);\n setClass(element, `${prefix}-multi-line`, false);\n\n if (length === 2 || length === 3) {\n setClass(element, `${prefix}-${length}-line`, true);\n } else if (length > 3) {\n setClass(element, `${prefix}-multi-line`, true);\n }\n });\n}\n\n/** Adds or removes a class from an element. */\nfunction setClass(element: ElementRef<HTMLElement>, className: string, isAdd: boolean): void {\n element.nativeElement.classList.toggle(className, isAdd);\n}\n\n@NgModule({\n imports: [MatCommonModule, MatLine],\n exports: [MatLine, MatCommonModule],\n})\nexport class MatLineModule {}\n"],"names":[],"mappings":";;;;;AAYA;;;;AAIG;MAKU,OAAO,CAAA;8GAAP,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;kGAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;kGAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBAJnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,IAAI,EAAE,EAAC,OAAO,EAAE,UAAU,EAAC;AAC5B,iBAAA;;AAGD;;;AAGG;AACG,SAAU,QAAQ,CACtB,KAAyB,EACzB,OAAgC,EAChC,MAAM,GAAG,KAAK,EAAA;;;AAId,IAAA,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAA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A;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,eAAe,CAAC;AACpC,iBAAA;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MatDividerHarness } from '
|
|
1
|
+
import { ComponentHarness, HarnessPredicate, ContentContainerComponentHarness, parallel } from '@angular/cdk/testing';
|
|
2
|
+
import { MatDividerHarness } from '../divider/testing.mjs';
|
|
3
3
|
|
|
4
4
|
const iconSelector = '.mat-mdc-list-item-icon';
|
|
5
5
|
const avatarSelector = '.mat-mdc-list-item-avatar';
|