@angular/material 20.0.0-next.0 → 20.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/_autocomplete-theme.scss +4 -4
- package/autocomplete/index.d.ts +96 -126
- package/autocomplete/testing/index.d.ts +6 -11
- package/badge/_badge-theme.scss +5 -5
- package/badge/index.d.ts +8 -112
- package/badge/testing/index.d.ts +7 -8
- package/badge.d-49a8a74b.d.ts +98 -0
- package/bottom-sheet/_bottom-sheet-theme.scss +3 -3
- package/bottom-sheet/index.d.ts +88 -103
- package/bottom-sheet/testing/index.d.ts +4 -6
- package/button/_button-theme.scss +84 -32
- package/button/_fab-theme.scss +13 -13
- package/button/_icon-button-theme.scss +5 -5
- package/button/index.d.ts +10 -245
- package/button/testing/index.d.ts +13 -10
- package/button-toggle/_button-toggle-theme.scss +8 -8
- package/button-toggle/index.d.ts +12 -285
- package/button-toggle/testing/index.d.ts +38 -37
- package/button-toggle.d-edc8acff.d.ts +257 -0
- package/card/_card-theme.scss +12 -12
- package/card/index.d.ts +80 -117
- package/card/testing/index.d.ts +11 -15
- package/checkbox/_checkbox-theme.scss +10 -10
- package/checkbox/index.d.ts +43 -104
- package/checkbox/testing/index.d.ts +6 -10
- package/chips/_chips-theme.scss +14 -14
- package/chips/index.d.ts +599 -693
- package/chips/testing/index.d.ts +78 -93
- package/common-module.d-0e6515ae.d.ts +43 -0
- package/core/_core-theme.scss +2 -2
- package/core/index.d.ts +50 -979
- package/core/option/_optgroup-theme.scss +2 -2
- package/core/option/_option-theme.scss +4 -4
- package/core/ripple/_ripple-theme.scss +3 -3
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +4 -4
- package/core/testing/index.d.ts +3 -65
- package/core/theming/_color-api-backwards-compatibility.scss +19 -8
- package/core/tokens/_density.scss +3 -0
- package/core/tokens/_token-definition.scss +1 -2
- package/core/tokens/_token-utils.scss +20 -5
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m2/mat/_tonal-button.scss +110 -0
- package/core/tokens/m3/_index.scss +2 -0
- package/core/tokens/m3/definitions/_index.scss +1 -1
- package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +3 -1
- package/core/tokens/m3/definitions/_md-sys-color.scss +44 -2
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +20 -1
- package/core/tokens/m3/mat/_tonal-button.scss +101 -0
- package/date-adapter.d-c6835d41.d.ts +267 -0
- package/date-range-input-harness.d-549a9f7e.d.ts +278 -0
- package/datepicker/_datepicker-theme.scss +8 -7
- package/datepicker/index.d.ts +1332 -1482
- package/datepicker/testing/index.d.ts +5 -287
- package/dialog/_dialog-theme.scss +6 -6
- package/dialog/index.d.ts +59 -453
- package/dialog/testing/index.d.ts +22 -26
- package/dialog.d-57867441.d.ts +335 -0
- package/divider/_divider-theme.scss +2 -2
- package/divider/index.d.ts +6 -11
- package/divider/testing/index.d.ts +2 -16
- package/divider-harness.d-d34fede4.d.ts +14 -0
- package/error-options.d-448d9046.d.ts +17 -0
- package/expansion/_expansion-theme.scss +4 -4
- package/expansion/index.d.ts +139 -190
- package/expansion/testing/index.d.ts +25 -31
- package/fesm2022/autocomplete/testing.mjs +2 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +56 -32
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +14 -17
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +13 -15
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs +34 -15
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +22 -15
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +14 -395
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +49 -51
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +32 -73
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +51 -46
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-2d64df09.mjs +42 -0
- package/fesm2022/common-module-2d64df09.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +3 -76
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +38 -1598
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-b618acb8.mjs +190 -0
- package/fesm2022/date-formats-b618acb8.mjs.map +1 -0
- package/fesm2022/date-range-input-harness-de70be6a.mjs +467 -0
- package/fesm2022/date-range-input-harness-de70be6a.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +5 -465
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +162 -131
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +12 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +14 -895
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +2 -17
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider-harness-8099453f.mjs +18 -0
- package/fesm2022/divider-harness-8099453f.mjs.map +1 -0
- package/fesm2022/divider.mjs +10 -12
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-4a00765e.mjs +29 -0
- package/fesm2022/error-options-4a00765e.mjs.map +1 -0
- package/fesm2022/error-state-8f4ce1af.mjs +37 -0
- package/fesm2022/error-state-8f4ce1af.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +30 -32
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs +2 -10
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +7 -6
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field-6d755764.mjs +1076 -0
- package/fesm2022/form-field-6d755764.mjs.map +1 -0
- package/fesm2022/form-field-control-harness-efefd4cf.mjs +11 -0
- package/fesm2022/form-field-control-harness-efefd4cf.mjs.map +1 -0
- package/fesm2022/form-field.mjs +14 -1110
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +30 -173
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +12 -12
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-0850d958.mjs +211 -0
- package/fesm2022/icon-button-0850d958.mjs.map +1 -0
- package/fesm2022/icon-module-3f77a24d.mjs +395 -0
- package/fesm2022/icon-module-3f77a24d.mjs.map +1 -0
- package/fesm2022/icon-registry-13a3b98e.mjs +639 -0
- package/fesm2022/icon-registry-13a3b98e.mjs.map +1 -0
- package/fesm2022/icon.mjs +11 -1016
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-1763d3a6.mjs +22 -0
- package/fesm2022/index-1763d3a6.mjs.map +1 -0
- package/fesm2022/index-4bc1d6d3.mjs +20 -0
- package/fesm2022/index-4bc1d6d3.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +5 -113
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-e68bb132.mjs +115 -0
- package/fesm2022/input-harness-e68bb132.mjs.map +1 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs +12 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs.map +1 -0
- package/fesm2022/input.mjs +21 -23
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-434c4039.mjs +27 -0
- package/fesm2022/internal-form-field-434c4039.mjs.map +1 -0
- package/fesm2022/line-d6afe347.mjs +59 -0
- package/fesm2022/line-d6afe347.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +2 -2
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +59 -56
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +37 -25
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/module-1c16a0a9.mjs +1293 -0
- package/fesm2022/module-1c16a0a9.mjs.map +1 -0
- package/fesm2022/module-47e3be58.mjs +970 -0
- package/fesm2022/module-47e3be58.mjs.map +1 -0
- package/fesm2022/module-a5f9ab72.mjs +875 -0
- package/fesm2022/module-a5f9ab72.mjs.map +1 -0
- package/fesm2022/module-cf951a02.mjs +214 -0
- package/fesm2022/module-cf951a02.mjs.map +1 -0
- package/fesm2022/module-d757bba0.mjs +38 -0
- package/fesm2022/module-d757bba0.mjs.map +1 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs +36 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +1 -0
- package/fesm2022/option-07c3c660.mjs +348 -0
- package/fesm2022/option-07c3c660.mjs.map +1 -0
- package/fesm2022/option-harness-3b7c1106.mjs +46 -0
- package/fesm2022/option-harness-3b7c1106.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +52 -22
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs +0 -4
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +15 -13
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs +0 -4
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +15 -13
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs +52 -0
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs.map +1 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs +20 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs.map +1 -0
- package/fesm2022/public-api-c5ab57f5.mjs +147 -0
- package/fesm2022/public-api-c5ab57f5.mjs.map +1 -0
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +23 -15
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-9939d1f5.mjs +639 -0
- package/fesm2022/ripple-9939d1f5.mjs.map +1 -0
- package/fesm2022/ripple-loader-f2078c66.mjs +165 -0
- package/fesm2022/ripple-loader-f2078c66.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +5 -121
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select-harness-69d47123.mjs +123 -0
- package/fesm2022/select-harness-69d47123.mjs.map +1 -0
- package/fesm2022/select.mjs +30 -1311
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +31 -31
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +27 -75
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +27 -23
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +38 -30
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +26 -20
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +52 -39
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-d5ada3b3.mjs +18 -0
- package/fesm2022/structural-styles-d5ada3b3.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +58 -60
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +54 -58
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +37 -26
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -15
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +15 -960
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +28 -30
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +16 -16
- package/form-field/index.d.ts +16 -508
- package/form-field/testing/control/index.d.ts +2 -10
- package/form-field/testing/index.d.ts +19 -24
- package/form-field-control-harness.d-2d91f25a.d.ts +10 -0
- package/form-field-control.d-eb86711c.d.ts +62 -0
- package/form-field.d-2edbc094.d.ts +367 -0
- package/grid-list/_grid-list-theme.scss +1 -1
- package/grid-list/index.d.ts +128 -152
- package/grid-list/testing/index.d.ts +39 -44
- package/icon/_icon-theme.scss +2 -2
- package/icon/index.d.ts +9 -470
- package/icon/testing/index.d.ts +41 -44
- package/icon-module.d-aa3bbba0.d.ts +167 -0
- package/icon-registry.d-1dffe9de.d.ts +286 -0
- package/index.d-0536b706.d.ts +11 -0
- package/index.d-37e31cd3.d.ts +13 -0
- package/index.d.ts +2 -3
- package/input/index.d.ts +33 -62
- package/input/testing/index.d.ts +13 -71
- package/input-harness.d-4eecd1d3.d.ts +60 -0
- package/line.d-570a2537.d.ts +25 -0
- package/list/_list-theme.scss +15 -15
- package/list/index.d.ts +155 -244
- package/list/testing/index.d.ts +158 -180
- package/list-option-types.d-8739f903.d.ts +15 -0
- package/menu/_menu-theme.scss +3 -3
- package/menu/index.d.ts +183 -231
- package/menu/testing/index.d.ts +17 -23
- package/module.d-74a721b9.d.ts +326 -0
- package/module.d-792a497c.d.ts +213 -0
- package/module.d-ba05faa6.d.ts +448 -0
- package/module.d-c17c834e.d.ts +18 -0
- package/optgroup-harness.d-7f741f69.d.ts +31 -0
- package/option-harness.d-3d33fc9a.d.ts +34 -0
- package/option-parent.d-559ad5c5.d.ts +19 -0
- package/option.d-6f493d78.d.ts +146 -0
- package/package.json +2 -2
- package/paginator/_paginator-theme.scss +3 -3
- package/paginator/index.d.ts +31 -216
- package/paginator/testing/index.d.ts +14 -15
- package/paginator.d-40b1766e.d.ts +199 -0
- package/palette.d-ec4a617c.d.ts +4 -0
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +2 -2
- package/progress-bar/index.d.ts +40 -59
- package/progress-bar/testing/index.d.ts +7 -10
- package/progress-spinner/_progress-spinner-theme.scss +4 -4
- package/progress-spinner/index.d.ts +8 -110
- package/progress-spinner/testing/index.d.ts +10 -11
- package/progress-spinner.d-1fc040c5.d.ts +96 -0
- package/pseudo-checkbox-module.d-3abc0461.d.ts +44 -0
- package/radio/_radio-theme.scss +12 -12
- package/radio/index.d.ts +151 -170
- package/radio/testing/index.d.ts +61 -67
- package/ripple-loader.d-8aac2988.d.ts +48 -0
- package/ripple.d-2fb57d04.d.ts +255 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
- package/schematics/ng-generate/theme-color/schema.json +10 -0
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-update/index_bundled.js +31 -31
- package/select/_select-theme.scss +6 -6
- package/select/index.d.ts +25 -505
- package/select/testing/index.d.ts +5 -67
- package/select-harness.d-7441a7ac.d.ts +63 -0
- package/sidenav/_sidenav-theme.scss +2 -2
- package/sidenav/index.d.ts +49 -92
- package/sidenav/testing/index.d.ts +58 -63
- package/slide-toggle/_slide-toggle-theme.scss +10 -10
- package/slide-toggle/index.d.ts +39 -110
- package/slide-toggle/testing/index.d.ts +17 -21
- package/slider/_slider-theme.scss +10 -10
- package/slider/index.d.ts +281 -328
- package/slider/testing/index.d.ts +42 -47
- package/snack-bar/_snack-bar-theme.scss +4 -4
- package/snack-bar/index.d.ts +152 -185
- package/snack-bar/testing/index.d.ts +7 -9
- package/sort/_sort-theme.scss +3 -3
- package/sort/index.d.ts +61 -169
- package/sort/testing/index.d.ts +22 -25
- package/sort-direction.d-f4ce4649.d.ts +3 -0
- package/sort.d-c2b79a45.d.ts +87 -0
- package/stepper/_stepper-theme.scss +5 -5
- package/stepper/index.d.ts +115 -167
- package/stepper/testing/index.d.ts +43 -52
- package/table/_table-theme.scss +4 -4
- package/table/index.d.ts +97 -156
- package/table/testing/index.d.ts +64 -78
- package/tabs/_tabs-theme.scss +16 -16
- package/tabs/index.d.ts +309 -383
- package/tabs/testing/index.d.ts +67 -76
- package/timepicker/_timepicker-theme.scss +4 -4
- package/timepicker/index.d.ts +127 -160
- package/timepicker/testing/index.d.ts +20 -26
- package/toolbar/_toolbar-theme.scss +4 -4
- package/toolbar/index.d.ts +15 -26
- package/toolbar/testing/index.d.ts +13 -16
- package/tooltip/_tooltip-theme.scss +4 -4
- package/tooltip/index.d.ts +11 -355
- package/tooltip/testing/index.d.ts +7 -10
- package/tree/_tree-theme.scss +3 -3
- package/tree/index.d.ts +117 -163
- package/tree/testing/index.d.ts +52 -58
- /package/core/tokens/m3/definitions/{unused/_md-comp-filled-tonal-button.scss → _md-comp-filled-tonal-button.scss} +0 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
13
13
|
} @else {
|
|
14
14
|
@include sass-utils.current-selector-or-root() {
|
|
15
|
-
@include token-utils.create-token-values(
|
|
15
|
+
@include token-utils.create-token-values-mixed(
|
|
16
16
|
tokens-mat-autocomplete.$prefix,
|
|
17
17
|
tokens-mat-autocomplete.get-unthemable-tokens()
|
|
18
18
|
);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
26
26
|
} @else {
|
|
27
27
|
@include sass-utils.current-selector-or-root() {
|
|
28
|
-
@include token-utils.create-token-values(
|
|
28
|
+
@include token-utils.create-token-values-mixed(
|
|
29
29
|
tokens-mat-autocomplete.$prefix,
|
|
30
30
|
tokens-mat-autocomplete.get-color-tokens($theme)
|
|
31
31
|
);
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
39
39
|
} @else {
|
|
40
40
|
@include sass-utils.current-selector-or-root() {
|
|
41
|
-
@include token-utils.create-token-values(
|
|
41
|
+
@include token-utils.create-token-values-mixed(
|
|
42
42
|
tokens-mat-autocomplete.$prefix,
|
|
43
43
|
tokens-mat-autocomplete.get-typography-tokens($theme)
|
|
44
44
|
);
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
52
52
|
} @else {
|
|
53
53
|
@include sass-utils.current-selector-or-root() {
|
|
54
|
-
@include token-utils.create-token-values(
|
|
54
|
+
@include token-utils.create-token-values-mixed(
|
|
55
55
|
tokens-mat-autocomplete.$prefix,
|
|
56
56
|
tokens-mat-autocomplete.get-density-tokens($theme)
|
|
57
57
|
);
|
package/autocomplete/index.d.ts
CHANGED
|
@@ -1,88 +1,71 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, AfterContentInit, OnDestroy, TemplateRef, ElementRef, QueryList, EventEmitter, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/cdk/overlay';
|
|
4
|
+
import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
|
5
|
+
import { M as MatOptionModule } from '../index.d-37e31cd3.js';
|
|
6
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
7
|
+
import { T as ThemePalette } from '../palette.d-ec4a617c.js';
|
|
8
|
+
import { M as MatOption, a as MatOptgroup, b as MatOptionSelectionChange } from '../option.d-6f493d78.js';
|
|
9
|
+
export { a as MatOptgroup, M as MatOption } from '../option.d-6f493d78.js';
|
|
1
10
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
|
-
import { AfterContentInit } from '@angular/core';
|
|
3
|
-
import { AfterViewInit } from '@angular/core';
|
|
4
11
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
|
-
import * as i0 from '@angular/core';
|
|
8
|
-
import * as i1 from '@angular/cdk/overlay';
|
|
9
|
-
import * as i2 from '@angular/material/core';
|
|
10
|
-
import * as i6 from '@angular/cdk/scrolling';
|
|
11
|
-
import { InjectionToken } from '@angular/core';
|
|
12
|
-
import { MatOptgroup } from '@angular/material/core';
|
|
13
|
-
import { MatOption } from '@angular/material/core';
|
|
14
|
-
import { MatOptionSelectionChange } from '@angular/material/core';
|
|
15
12
|
import { Observable } from 'rxjs';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { TemplateRef } from '@angular/core';
|
|
23
|
-
import { ThemePalette } from '@angular/material/core';
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Creates an error to be thrown when attempting to use an autocomplete trigger without a panel.
|
|
27
|
-
* @docs-private
|
|
28
|
-
*/
|
|
29
|
-
export declare function getMatAutocompleteMissingPanelError(): Error;
|
|
13
|
+
import * as i5 from '@angular/cdk/scrolling';
|
|
14
|
+
import '../index.d-0536b706.js';
|
|
15
|
+
import '../ripple.d-2fb57d04.js';
|
|
16
|
+
import '@angular/cdk/platform';
|
|
17
|
+
import '../pseudo-checkbox-module.d-3abc0461.js';
|
|
18
|
+
import '@angular/cdk/bidi';
|
|
30
19
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
20
|
+
/** Event object that is emitted when an autocomplete option is selected. */
|
|
21
|
+
declare class MatAutocompleteSelectedEvent {
|
|
22
|
+
/** Reference to the autocomplete panel that emitted the event. */
|
|
23
|
+
source: MatAutocomplete;
|
|
24
|
+
/** Option that was selected. */
|
|
25
|
+
option: MatOption;
|
|
26
|
+
constructor(
|
|
27
|
+
/** Reference to the autocomplete panel that emitted the event. */
|
|
28
|
+
source: MatAutocomplete,
|
|
29
|
+
/** Option that was selected. */
|
|
30
|
+
option: MatOption);
|
|
40
31
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
MAT_AUTOCOMPLETE_SCROLL_STRATEGY,
|
|
48
|
-
MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER,
|
|
49
|
-
MatAutocompleteTrigger
|
|
50
|
-
}
|
|
32
|
+
/** Event object that is emitted when an autocomplete option is activated. */
|
|
33
|
+
interface MatAutocompleteActivatedEvent {
|
|
34
|
+
/** Reference to the autocomplete panel that emitted the event. */
|
|
35
|
+
source: MatAutocomplete;
|
|
36
|
+
/** Option that was selected. */
|
|
37
|
+
option: MatOption | null;
|
|
51
38
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
39
|
+
/** Default `mat-autocomplete` options that can be overridden. */
|
|
40
|
+
interface MatAutocompleteDefaultOptions {
|
|
41
|
+
/** Whether the first option should be highlighted when an autocomplete panel is opened. */
|
|
42
|
+
autoActiveFirstOption?: boolean;
|
|
43
|
+
/** Whether the active option should be selected as the user is navigating. */
|
|
44
|
+
autoSelectActiveOption?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the user is required to make a selection when
|
|
47
|
+
* they're interacting with the autocomplete.
|
|
48
|
+
*/
|
|
49
|
+
requireSelection?: boolean;
|
|
50
|
+
/** Class to be applied to the autocomplete's backdrop. */
|
|
51
|
+
backdropClass?: string;
|
|
52
|
+
/** Whether the autocomplete has a backdrop. */
|
|
53
|
+
hasBackdrop?: boolean;
|
|
54
|
+
/** Class or list of classes to be applied to the autocomplete's overlay panel. */
|
|
55
|
+
overlayPanelClass?: string | string[];
|
|
56
|
+
/** Whether icon indicators should be hidden for single-selection. */
|
|
57
|
+
hideSingleSelectionIndicator?: boolean;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
59
|
/** Injection token to be used to override the default options for `mat-autocomplete`. */
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/** @docs-private */
|
|
63
|
-
export declare function MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY(): MatAutocompleteDefaultOptions;
|
|
64
|
-
|
|
65
|
-
/** Injection token that determines the scroll handling while the autocomplete panel is open. */
|
|
66
|
-
export declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
67
|
-
|
|
68
|
-
/** @docs-private */
|
|
69
|
-
export declare function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
70
|
-
|
|
71
|
-
/** @docs-private */
|
|
72
|
-
export declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
73
|
-
provide: InjectionToken<() => ScrollStrategy>;
|
|
74
|
-
deps: (typeof Overlay)[];
|
|
75
|
-
useFactory: typeof MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY;
|
|
76
|
-
};
|
|
77
|
-
|
|
60
|
+
declare const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS: InjectionToken<MatAutocompleteDefaultOptions>;
|
|
78
61
|
/**
|
|
79
|
-
* Provider that allows the autocomplete to register as a ControlValueAccessor.
|
|
80
62
|
* @docs-private
|
|
63
|
+
* @deprecated No longer used, will be removed.
|
|
64
|
+
* @breaking-change 21.0.0
|
|
81
65
|
*/
|
|
82
|
-
|
|
83
|
-
|
|
66
|
+
declare function MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY(): MatAutocompleteDefaultOptions;
|
|
84
67
|
/** Autocomplete component. */
|
|
85
|
-
|
|
68
|
+
declare class MatAutocomplete implements AfterContentInit, OnDestroy {
|
|
86
69
|
private _changeDetectorRef;
|
|
87
70
|
private _elementRef;
|
|
88
71
|
protected _defaults: MatAutocompleteDefaultOptions;
|
|
@@ -189,63 +172,47 @@ export declare class MatAutocomplete implements AfterContentInit, OnDestroy {
|
|
|
189
172
|
static ngAcceptInputType_hideSingleSelectionIndicator: unknown;
|
|
190
173
|
}
|
|
191
174
|
|
|
192
|
-
/** Event object that is emitted when an autocomplete option is activated. */
|
|
193
|
-
export declare interface MatAutocompleteActivatedEvent {
|
|
194
|
-
/** Reference to the autocomplete panel that emitted the event. */
|
|
195
|
-
source: MatAutocomplete;
|
|
196
|
-
/** Option that was selected. */
|
|
197
|
-
option: MatOption | null;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/** Default `mat-autocomplete` options that can be overridden. */
|
|
201
|
-
export declare interface MatAutocompleteDefaultOptions {
|
|
202
|
-
/** Whether the first option should be highlighted when an autocomplete panel is opened. */
|
|
203
|
-
autoActiveFirstOption?: boolean;
|
|
204
|
-
/** Whether the active option should be selected as the user is navigating. */
|
|
205
|
-
autoSelectActiveOption?: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Whether the user is required to make a selection when
|
|
208
|
-
* they're interacting with the autocomplete.
|
|
209
|
-
*/
|
|
210
|
-
requireSelection?: boolean;
|
|
211
|
-
/** Class or list of classes to be applied to the autocomplete's overlay panel. */
|
|
212
|
-
overlayPanelClass?: string | string[];
|
|
213
|
-
/** Whether icon indicators should be hidden for single-selection. */
|
|
214
|
-
hideSingleSelectionIndicator?: boolean;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export declare class MatAutocompleteModule {
|
|
218
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteModule, never>;
|
|
219
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatAutocompleteModule, never, [typeof i1.OverlayModule, typeof i2.MatOptionModule, typeof i2.MatCommonModule, typeof i3.MatAutocomplete, typeof i4.MatAutocompleteTrigger, typeof i5.MatAutocompleteOrigin], [typeof i6.CdkScrollableModule, typeof i3.MatAutocomplete, typeof i2.MatOptionModule, typeof i2.MatCommonModule, typeof i4.MatAutocompleteTrigger, typeof i5.MatAutocompleteOrigin]>;
|
|
220
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatAutocompleteModule>;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
175
|
/**
|
|
224
176
|
* Directive applied to an element to make it usable
|
|
225
177
|
* as a connection point for an autocomplete panel.
|
|
226
178
|
*/
|
|
227
|
-
|
|
179
|
+
declare class MatAutocompleteOrigin {
|
|
228
180
|
elementRef: ElementRef<HTMLElement>;
|
|
229
181
|
constructor(...args: unknown[]);
|
|
230
182
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteOrigin, never>;
|
|
231
183
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteOrigin, "[matAutocompleteOrigin]", ["matAutocompleteOrigin"], {}, {}, never, never, true, never>;
|
|
232
184
|
}
|
|
233
185
|
|
|
234
|
-
/**
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
186
|
+
/**
|
|
187
|
+
* Provider that allows the autocomplete to register as a ControlValueAccessor.
|
|
188
|
+
* @docs-private
|
|
189
|
+
*/
|
|
190
|
+
declare const MAT_AUTOCOMPLETE_VALUE_ACCESSOR: any;
|
|
191
|
+
/**
|
|
192
|
+
* Creates an error to be thrown when attempting to use an autocomplete trigger without a panel.
|
|
193
|
+
* @docs-private
|
|
194
|
+
*/
|
|
195
|
+
declare function getMatAutocompleteMissingPanelError(): Error;
|
|
196
|
+
/** Injection token that determines the scroll handling while the autocomplete panel is open. */
|
|
197
|
+
declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
198
|
+
/**
|
|
199
|
+
* @docs-private
|
|
200
|
+
* @deprecated No longer used, will be removed.
|
|
201
|
+
* @breaking-change 21.0.0
|
|
202
|
+
*/
|
|
203
|
+
declare function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
204
|
+
/**
|
|
205
|
+
* @docs-private
|
|
206
|
+
* @deprecated No longer used, will be removed.
|
|
207
|
+
* @breaking-change 21.0.0
|
|
208
|
+
*/
|
|
209
|
+
declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
210
|
+
provide: InjectionToken<() => ScrollStrategy>;
|
|
211
|
+
deps: (typeof Overlay)[];
|
|
212
|
+
useFactory: typeof MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY;
|
|
213
|
+
};
|
|
247
214
|
/** Base class with all of the `MatAutocompleteTrigger` functionality. */
|
|
248
|
-
|
|
215
|
+
declare class MatAutocompleteTrigger implements ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy {
|
|
249
216
|
private _environmentInjector;
|
|
250
217
|
private _element;
|
|
251
218
|
private _overlay;
|
|
@@ -254,7 +221,6 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
|
|
|
254
221
|
private _changeDetectorRef;
|
|
255
222
|
private _dir;
|
|
256
223
|
private _formField;
|
|
257
|
-
private _document;
|
|
258
224
|
private _viewportRuler;
|
|
259
225
|
private _scrollStrategy;
|
|
260
226
|
private _renderer;
|
|
@@ -365,10 +331,12 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
|
|
|
365
331
|
registerOnChange(fn: (value: any) => {}): void;
|
|
366
332
|
registerOnTouched(fn: () => {}): void;
|
|
367
333
|
setDisabledState(isDisabled: boolean): void;
|
|
368
|
-
_handleKeydown(
|
|
369
|
-
_handleInput(event:
|
|
334
|
+
_handleKeydown(e: Event): void;
|
|
335
|
+
_handleInput(event: Event): void;
|
|
370
336
|
_handleFocus(): void;
|
|
371
337
|
_handleClick(): void;
|
|
338
|
+
/** Whether the input currently has focus. */
|
|
339
|
+
private _hasFocus;
|
|
372
340
|
/**
|
|
373
341
|
* In "auto" mode, the label will animate down as soon as focus is lost.
|
|
374
342
|
* This causes the value to jump when selecting an option with the mouse.
|
|
@@ -463,8 +431,10 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
|
|
|
463
431
|
static ngAcceptInputType_autocompleteDisabled: unknown;
|
|
464
432
|
}
|
|
465
433
|
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
434
|
+
declare class MatAutocompleteModule {
|
|
435
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteModule, never>;
|
|
436
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatAutocompleteModule, never, [typeof i2.OverlayModule, typeof MatOptionModule, typeof MatCommonModule, typeof MatAutocomplete, typeof MatAutocompleteTrigger, typeof MatAutocompleteOrigin], [typeof i5.CdkScrollableModule, typeof MatAutocomplete, typeof MatOptionModule, typeof MatCommonModule, typeof MatAutocompleteTrigger, typeof MatAutocompleteOrigin]>;
|
|
437
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatAutocompleteModule>;
|
|
438
|
+
}
|
|
469
439
|
|
|
470
|
-
export { }
|
|
440
|
+
export { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY, MAT_AUTOCOMPLETE_SCROLL_STRATEGY, MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY, MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_AUTOCOMPLETE_VALUE_ACCESSOR, MatAutocomplete, type MatAutocompleteActivatedEvent, type MatAutocompleteDefaultOptions, MatAutocompleteModule, MatAutocompleteOrigin, MatAutocompleteSelectedEvent, MatAutocompleteTrigger, getMatAutocompleteMissingPanelError };
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
5
|
-
import { MatOptgroupHarness } from '@angular/material/core/testing';
|
|
6
|
-
import { MatOptionHarness } from '@angular/material/core/testing';
|
|
7
|
-
import { OptgroupHarnessFilters } from '@angular/material/core/testing';
|
|
8
|
-
import { OptionHarnessFilters } from '@angular/material/core/testing';
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { O as OptionHarnessFilters, M as MatOptionHarness } from '../../option-harness.d-3d33fc9a.js';
|
|
3
|
+
import { O as OptgroupHarnessFilters, M as MatOptgroupHarness } from '../../optgroup-harness.d-7f741f69.js';
|
|
9
4
|
|
|
10
5
|
/** A set of criteria that can be used to filter a list of `MatAutocompleteHarness` instances. */
|
|
11
|
-
|
|
6
|
+
interface AutocompleteHarnessFilters extends BaseHarnessFilters {
|
|
12
7
|
/** Only find instances whose associated input element matches the given value. */
|
|
13
8
|
value?: string | RegExp;
|
|
14
9
|
/** Only find instances which match the given disabled state. */
|
|
15
10
|
disabled?: boolean;
|
|
16
11
|
}
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
declare class MatAutocompleteHarness extends ComponentHarness {
|
|
19
14
|
private _documentRootLocator;
|
|
20
15
|
/** The selector for the host element of a `MatAutocomplete` instance. */
|
|
21
16
|
static hostSelector: string;
|
|
@@ -54,4 +49,4 @@ export declare class MatAutocompleteHarness extends ComponentHarness {
|
|
|
54
49
|
protected _getPanelSelector(): Promise<string>;
|
|
55
50
|
}
|
|
56
51
|
|
|
57
|
-
export { }
|
|
52
|
+
export { type AutocompleteHarnessFilters, MatAutocompleteHarness };
|
package/badge/_badge-theme.scss
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
16
16
|
} @else {
|
|
17
17
|
@include sass-utils.current-selector-or-root() {
|
|
18
|
-
@include token-utils.create-token-values(
|
|
18
|
+
@include token-utils.create-token-values-mixed(
|
|
19
19
|
tokens-mat-badge.$prefix,
|
|
20
20
|
tokens-mat-badge.get-unthemable-tokens()
|
|
21
21
|
);
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
|
|
34
34
|
} @else {
|
|
35
35
|
@include sass-utils.current-selector-or-root() {
|
|
36
|
-
@include token-utils.create-token-values(
|
|
36
|
+
@include token-utils.create-token-values-mixed(
|
|
37
37
|
tokens-mat-badge.$prefix,
|
|
38
38
|
tokens-mat-badge.get-color-tokens($theme)
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.mat-badge-accent {
|
|
43
|
-
@include token-utils.create-token-values(
|
|
43
|
+
@include token-utils.create-token-values-mixed(
|
|
44
44
|
tokens-mat-badge.$prefix,
|
|
45
45
|
tokens-mat-badge.private-get-color-palette-color-tokens($theme, accent)
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.mat-badge-warn {
|
|
50
|
-
@include token-utils.create-token-values(
|
|
50
|
+
@include token-utils.create-token-values-mixed(
|
|
51
51
|
tokens-mat-badge.$prefix,
|
|
52
52
|
tokens-mat-badge.private-get-color-palette-color-tokens($theme, warn)
|
|
53
53
|
);
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
63
63
|
} @else {
|
|
64
64
|
@include sass-utils.current-selector-or-root() {
|
|
65
|
-
@include token-utils.create-token-values(
|
|
65
|
+
@include token-utils.create-token-values-mixed(
|
|
66
66
|
tokens-mat-badge.$prefix,
|
|
67
67
|
tokens-mat-badge.get-typography-tokens($theme)
|
|
68
68
|
);
|
package/badge/index.d.ts
CHANGED
|
@@ -1,119 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1 from '@angular/cdk/a11y';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import
|
|
3
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
4
|
+
import { M as MatBadge, _ as _MatBadgeStyleLoader } from '../badge.d-49a8a74b.js';
|
|
5
|
+
export { M as MatBadge, a as MatBadgePosition, b as MatBadgeSize } from '../badge.d-49a8a74b.js';
|
|
6
|
+
import '@angular/cdk/bidi';
|
|
7
|
+
import '../palette.d-ec4a617c.js';
|
|
7
8
|
|
|
8
|
-
declare
|
|
9
|
-
export {
|
|
10
|
-
MatBadgePosition,
|
|
11
|
-
MatBadgeSize,
|
|
12
|
-
_MatBadgeStyleLoader,
|
|
13
|
-
MatBadge
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/** Directive to display a text badge. */
|
|
18
|
-
export declare class MatBadge implements OnInit, OnDestroy {
|
|
19
|
-
private _ngZone;
|
|
20
|
-
private _elementRef;
|
|
21
|
-
private _ariaDescriber;
|
|
22
|
-
private _renderer;
|
|
23
|
-
private _animationMode;
|
|
24
|
-
private _idGenerator;
|
|
25
|
-
/**
|
|
26
|
-
* Theme color of the badge. This API is supported in M2 themes only, it
|
|
27
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/badge/styling.
|
|
28
|
-
*
|
|
29
|
-
* For information on applying color variants in M3, see
|
|
30
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
31
|
-
*/
|
|
32
|
-
get color(): ThemePalette;
|
|
33
|
-
set color(value: ThemePalette);
|
|
34
|
-
private _color;
|
|
35
|
-
/** Whether the badge should overlap its contents or not */
|
|
36
|
-
overlap: boolean;
|
|
37
|
-
/** Whether the badge is disabled. */
|
|
38
|
-
disabled: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Position the badge should reside.
|
|
41
|
-
* Accepts any combination of 'above'|'below' and 'before'|'after'
|
|
42
|
-
*/
|
|
43
|
-
position: MatBadgePosition;
|
|
44
|
-
/** The content for the badge */
|
|
45
|
-
get content(): string | number | undefined | null;
|
|
46
|
-
set content(newContent: string | number | undefined | null);
|
|
47
|
-
private _content;
|
|
48
|
-
/** Message used to describe the decorated element via aria-describedby */
|
|
49
|
-
get description(): string;
|
|
50
|
-
set description(newDescription: string);
|
|
51
|
-
private _description;
|
|
52
|
-
/** Size of the badge. Can be 'small', 'medium', or 'large'. */
|
|
53
|
-
size: MatBadgeSize;
|
|
54
|
-
/** Whether the badge is hidden. */
|
|
55
|
-
hidden: boolean;
|
|
56
|
-
/** Visible badge element. */
|
|
57
|
-
private _badgeElement;
|
|
58
|
-
/** Inline badge description. Used when the badge is applied to non-interactive host elements. */
|
|
59
|
-
private _inlineBadgeDescription;
|
|
60
|
-
/** Whether the OnInit lifecycle hook has run yet */
|
|
61
|
-
private _isInitialized;
|
|
62
|
-
/** InteractivityChecker to determine if the badge host is focusable. */
|
|
63
|
-
private _interactivityChecker;
|
|
64
|
-
private _document;
|
|
65
|
-
constructor(...args: unknown[]);
|
|
66
|
-
/** Whether the badge is above the host or not */
|
|
67
|
-
isAbove(): boolean;
|
|
68
|
-
/** Whether the badge is after the host or not */
|
|
69
|
-
isAfter(): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Gets the element into which the badge's content is being rendered. Undefined if the element
|
|
72
|
-
* hasn't been created (e.g. if the badge doesn't have content).
|
|
73
|
-
*/
|
|
74
|
-
getBadgeElement(): HTMLElement | undefined;
|
|
75
|
-
ngOnInit(): void;
|
|
76
|
-
ngOnDestroy(): void;
|
|
77
|
-
/** Gets whether the badge's host element is interactive. */
|
|
78
|
-
private _isHostInteractive;
|
|
79
|
-
/** Creates the badge element */
|
|
80
|
-
private _createBadgeElement;
|
|
81
|
-
/** Update the text content of the badge element in the DOM, creating the element if necessary. */
|
|
82
|
-
private _updateRenderedContent;
|
|
83
|
-
/** Updates the host element's aria description via AriaDescriber. */
|
|
84
|
-
private _updateDescription;
|
|
85
|
-
private _updateInlineDescription;
|
|
86
|
-
private _removeInlineDescription;
|
|
87
|
-
/** Adds css theme class given the color to the component host */
|
|
88
|
-
private _setColor;
|
|
89
|
-
/** Clears any existing badges that might be left over from server-side rendering. */
|
|
90
|
-
private _clearExistingBadges;
|
|
91
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadge, never>;
|
|
92
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatBadge, "[matBadge]", never, { "color": { "alias": "matBadgeColor"; "required": false; }; "overlap": { "alias": "matBadgeOverlap"; "required": false; }; "disabled": { "alias": "matBadgeDisabled"; "required": false; }; "position": { "alias": "matBadgePosition"; "required": false; }; "content": { "alias": "matBadge"; "required": false; }; "description": { "alias": "matBadgeDescription"; "required": false; }; "size": { "alias": "matBadgeSize"; "required": false; }; "hidden": { "alias": "matBadgeHidden"; "required": false; }; }, {}, never, never, true, never>;
|
|
93
|
-
static ngAcceptInputType_overlap: unknown;
|
|
94
|
-
static ngAcceptInputType_disabled: unknown;
|
|
95
|
-
static ngAcceptInputType_hidden: unknown;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export declare class MatBadgeModule {
|
|
9
|
+
declare class MatBadgeModule {
|
|
99
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadgeModule, never>;
|
|
100
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatBadgeModule, never, [typeof i1.A11yModule, typeof
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatBadgeModule, never, [typeof i1.A11yModule, typeof MatCommonModule, typeof MatBadge, typeof _MatBadgeStyleLoader], [typeof MatBadge, typeof MatCommonModule]>;
|
|
101
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatBadgeModule>;
|
|
102
13
|
}
|
|
103
14
|
|
|
104
|
-
|
|
105
|
-
export declare type MatBadgePosition = 'above after' | 'above before' | 'below before' | 'below after' | 'before' | 'after' | 'above' | 'below';
|
|
106
|
-
|
|
107
|
-
/** Allowed size options for matBadgeSize */
|
|
108
|
-
export declare type MatBadgeSize = 'small' | 'medium' | 'large';
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Component used to load the structural styles of the badge.
|
|
112
|
-
* @docs-private
|
|
113
|
-
*/
|
|
114
|
-
declare class _MatBadgeStyleLoader {
|
|
115
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<_MatBadgeStyleLoader, never>;
|
|
116
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<_MatBadgeStyleLoader, "ng-component", never, {}, {}, never, never, true, never>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export { }
|
|
15
|
+
export { MatBadgeModule };
|
package/badge/testing/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { MatBadgeSize } from '@angular/material/badge';
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { a as MatBadgePosition, b as MatBadgeSize } from '../../badge.d-49a8a74b.js';
|
|
3
|
+
import '@angular/core';
|
|
4
|
+
import '../../palette.d-ec4a617c.js';
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
interface BadgeHarnessFilters extends BaseHarnessFilters {
|
|
8
7
|
text?: string | RegExp;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
/** Harness for interacting with a standard Material badge in tests. */
|
|
12
|
-
|
|
11
|
+
declare class MatBadgeHarness extends ComponentHarness {
|
|
13
12
|
static hostSelector: string;
|
|
14
13
|
/**
|
|
15
14
|
* Gets a `HarnessPredicate` that can be used to search for a badge with specific attributes.
|
|
@@ -33,4 +32,4 @@ export declare class MatBadgeHarness extends ComponentHarness {
|
|
|
33
32
|
isDisabled(): Promise<boolean>;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
export { }
|
|
35
|
+
export { type BadgeHarnessFilters, MatBadgeHarness };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { T as ThemePalette } from './palette.d-ec4a617c.js';
|
|
4
|
+
|
|
5
|
+
/** Allowed position options for matBadgePosition */
|
|
6
|
+
type MatBadgePosition = 'above after' | 'above before' | 'below before' | 'below after' | 'before' | 'after' | 'above' | 'below';
|
|
7
|
+
/** Allowed size options for matBadgeSize */
|
|
8
|
+
type MatBadgeSize = 'small' | 'medium' | 'large';
|
|
9
|
+
/**
|
|
10
|
+
* Component used to load the structural styles of the badge.
|
|
11
|
+
* @docs-private
|
|
12
|
+
*/
|
|
13
|
+
declare class _MatBadgeStyleLoader {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_MatBadgeStyleLoader, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<_MatBadgeStyleLoader, "ng-component", never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
/** Directive to display a text badge. */
|
|
18
|
+
declare class MatBadge implements OnInit, OnDestroy {
|
|
19
|
+
private _ngZone;
|
|
20
|
+
private _elementRef;
|
|
21
|
+
private _ariaDescriber;
|
|
22
|
+
private _renderer;
|
|
23
|
+
private _animationMode;
|
|
24
|
+
private _idGenerator;
|
|
25
|
+
/**
|
|
26
|
+
* Theme color of the badge. This API is supported in M2 themes only, it
|
|
27
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/badge/styling.
|
|
28
|
+
*
|
|
29
|
+
* For information on applying color variants in M3, see
|
|
30
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
31
|
+
*/
|
|
32
|
+
get color(): ThemePalette;
|
|
33
|
+
set color(value: ThemePalette);
|
|
34
|
+
private _color;
|
|
35
|
+
/** Whether the badge should overlap its contents or not */
|
|
36
|
+
overlap: boolean;
|
|
37
|
+
/** Whether the badge is disabled. */
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Position the badge should reside.
|
|
41
|
+
* Accepts any combination of 'above'|'below' and 'before'|'after'
|
|
42
|
+
*/
|
|
43
|
+
position: MatBadgePosition;
|
|
44
|
+
/** The content for the badge */
|
|
45
|
+
get content(): string | number | undefined | null;
|
|
46
|
+
set content(newContent: string | number | undefined | null);
|
|
47
|
+
private _content;
|
|
48
|
+
/** Message used to describe the decorated element via aria-describedby */
|
|
49
|
+
get description(): string;
|
|
50
|
+
set description(newDescription: string);
|
|
51
|
+
private _description;
|
|
52
|
+
/** Size of the badge. Can be 'small', 'medium', or 'large'. */
|
|
53
|
+
size: MatBadgeSize;
|
|
54
|
+
/** Whether the badge is hidden. */
|
|
55
|
+
hidden: boolean;
|
|
56
|
+
/** Visible badge element. */
|
|
57
|
+
private _badgeElement;
|
|
58
|
+
/** Inline badge description. Used when the badge is applied to non-interactive host elements. */
|
|
59
|
+
private _inlineBadgeDescription;
|
|
60
|
+
/** Whether the OnInit lifecycle hook has run yet */
|
|
61
|
+
private _isInitialized;
|
|
62
|
+
/** InteractivityChecker to determine if the badge host is focusable. */
|
|
63
|
+
private _interactivityChecker;
|
|
64
|
+
private _document;
|
|
65
|
+
constructor(...args: unknown[]);
|
|
66
|
+
/** Whether the badge is above the host or not */
|
|
67
|
+
isAbove(): boolean;
|
|
68
|
+
/** Whether the badge is after the host or not */
|
|
69
|
+
isAfter(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Gets the element into which the badge's content is being rendered. Undefined if the element
|
|
72
|
+
* hasn't been created (e.g. if the badge doesn't have content).
|
|
73
|
+
*/
|
|
74
|
+
getBadgeElement(): HTMLElement | undefined;
|
|
75
|
+
ngOnInit(): void;
|
|
76
|
+
ngOnDestroy(): void;
|
|
77
|
+
/** Gets whether the badge's host element is interactive. */
|
|
78
|
+
private _isHostInteractive;
|
|
79
|
+
/** Creates the badge element */
|
|
80
|
+
private _createBadgeElement;
|
|
81
|
+
/** Update the text content of the badge element in the DOM, creating the element if necessary. */
|
|
82
|
+
private _updateRenderedContent;
|
|
83
|
+
/** Updates the host element's aria description via AriaDescriber. */
|
|
84
|
+
private _updateDescription;
|
|
85
|
+
private _updateInlineDescription;
|
|
86
|
+
private _removeInlineDescription;
|
|
87
|
+
/** Adds css theme class given the color to the component host */
|
|
88
|
+
private _setColor;
|
|
89
|
+
/** Clears any existing badges that might be left over from server-side rendering. */
|
|
90
|
+
private _clearExistingBadges;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadge, never>;
|
|
92
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatBadge, "[matBadge]", never, { "color": { "alias": "matBadgeColor"; "required": false; }; "overlap": { "alias": "matBadgeOverlap"; "required": false; }; "disabled": { "alias": "matBadgeDisabled"; "required": false; }; "position": { "alias": "matBadgePosition"; "required": false; }; "content": { "alias": "matBadge"; "required": false; }; "description": { "alias": "matBadgeDescription"; "required": false; }; "size": { "alias": "matBadgeSize"; "required": false; }; "hidden": { "alias": "matBadgeHidden"; "required": false; }; }, {}, never, never, true, never>;
|
|
93
|
+
static ngAcceptInputType_overlap: unknown;
|
|
94
|
+
static ngAcceptInputType_disabled: unknown;
|
|
95
|
+
static ngAcceptInputType_hidden: unknown;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export { MatBadge as M, _MatBadgeStyleLoader as _, type MatBadgePosition as a, type MatBadgeSize as b };
|