@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-bottom-sheet.$prefix,
|
|
17
17
|
tokens-mat-bottom-sheet.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-bottom-sheet.$prefix,
|
|
30
30
|
tokens-mat-bottom-sheet.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-bottom-sheet.$prefix,
|
|
43
43
|
tokens-mat-bottom-sheet.get-typography-tokens($theme)
|
|
44
44
|
);
|
package/bottom-sheet/index.d.ts
CHANGED
|
@@ -1,85 +1,56 @@
|
|
|
1
|
-
import { CdkDialogContainer } from '@angular/cdk/dialog';
|
|
2
|
-
import { ComponentRef } from '@angular/core';
|
|
3
|
-
import { ComponentType } from '@angular/cdk/portal';
|
|
4
|
-
import { DialogRef } from '@angular/cdk/dialog';
|
|
5
|
-
import { Direction } from '@angular/cdk/bidi';
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, EventEmitter, InjectionToken, ViewContainerRef, ComponentRef, TemplateRef } from '@angular/core';
|
|
8
3
|
import * as i1 from '@angular/cdk/dialog';
|
|
9
|
-
import
|
|
4
|
+
import { CdkDialogContainer, DialogRef } from '@angular/cdk/dialog';
|
|
5
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
10
6
|
import * as i3 from '@angular/cdk/portal';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { OnDestroy } from '@angular/core';
|
|
7
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
8
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
14
9
|
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
15
|
-
import {
|
|
16
|
-
import { ViewContainerRef } from '@angular/core';
|
|
17
|
-
|
|
18
|
-
/** Options for where to set focus to automatically on dialog open */
|
|
19
|
-
export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
20
|
-
|
|
21
|
-
declare namespace i4 {
|
|
22
|
-
export {
|
|
23
|
-
MatBottomSheetContainer
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** Injection token that can be used to access the data that was passed in to a bottom sheet. */
|
|
28
|
-
export declare const MAT_BOTTOM_SHEET_DATA: InjectionToken<any>;
|
|
29
|
-
|
|
30
|
-
/** Injection token that can be used to specify default bottom sheet options. */
|
|
31
|
-
export declare const MAT_BOTTOM_SHEET_DEFAULT_OPTIONS: InjectionToken<MatBottomSheetConfig<any>>;
|
|
10
|
+
import { Observable } from 'rxjs';
|
|
32
11
|
|
|
33
12
|
/**
|
|
34
|
-
*
|
|
13
|
+
* Internal component that wraps user-provided bottom sheet content.
|
|
14
|
+
* @docs-private
|
|
35
15
|
*/
|
|
36
|
-
|
|
37
|
-
private
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
declare class MatBottomSheetContainer extends CdkDialogContainer implements OnDestroy {
|
|
17
|
+
private _breakpointSubscription;
|
|
18
|
+
protected _animationsDisabled: boolean;
|
|
19
|
+
/** The state of the bottom sheet animations. */
|
|
20
|
+
_animationState: 'void' | 'visible' | 'hidden';
|
|
21
|
+
/** Emits whenever the state of the animation changes. */
|
|
22
|
+
_animationStateChanged: EventEmitter<{
|
|
23
|
+
toState: "visible" | "hidden";
|
|
24
|
+
phase: "start" | "done";
|
|
25
|
+
}>;
|
|
26
|
+
/** Whether the component has been destroyed. */
|
|
27
|
+
private _destroyed;
|
|
45
28
|
constructor(...args: unknown[]);
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
* @returns Reference to the newly-opened bottom sheet.
|
|
51
|
-
*/
|
|
52
|
-
open<T, D = any, R = any>(component: ComponentType<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;
|
|
53
|
-
/**
|
|
54
|
-
* Opens a bottom sheet containing the given template.
|
|
55
|
-
* @param template TemplateRef to instantiate as the bottom sheet content.
|
|
56
|
-
* @param config Extra configuration options.
|
|
57
|
-
* @returns Reference to the newly-opened bottom sheet.
|
|
58
|
-
*/
|
|
59
|
-
open<T, D = any, R = any>(template: TemplateRef<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;
|
|
60
|
-
/**
|
|
61
|
-
* Dismisses the currently-visible bottom sheet.
|
|
62
|
-
* @param result Data to pass to the bottom sheet instance.
|
|
63
|
-
*/
|
|
64
|
-
dismiss<R = any>(result?: R): void;
|
|
29
|
+
/** Begin animation of bottom sheet entrance into view. */
|
|
30
|
+
enter(): void;
|
|
31
|
+
/** Begin animation of the bottom sheet exiting from view. */
|
|
32
|
+
exit(): void;
|
|
65
33
|
ngOnDestroy(): void;
|
|
66
|
-
|
|
67
|
-
|
|
34
|
+
private _simulateAnimation;
|
|
35
|
+
protected _handleAnimationEvent(isStart: boolean, animationName: string): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetContainer, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never, true, never>;
|
|
68
38
|
}
|
|
69
39
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export declare const matBottomSheetAnimations: {
|
|
76
|
-
readonly bottomSheetState: any;
|
|
77
|
-
};
|
|
40
|
+
declare class MatBottomSheetModule {
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetModule, never>;
|
|
42
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatBottomSheetModule, never, [typeof i1.DialogModule, typeof MatCommonModule, typeof i3.PortalModule, typeof MatBottomSheetContainer], [typeof MatBottomSheetContainer, typeof MatCommonModule]>;
|
|
43
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatBottomSheetModule>;
|
|
44
|
+
}
|
|
78
45
|
|
|
46
|
+
/** Options for where to set focus to automatically on dialog open */
|
|
47
|
+
type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
48
|
+
/** Injection token that can be used to access the data that was passed in to a bottom sheet. */
|
|
49
|
+
declare const MAT_BOTTOM_SHEET_DATA: InjectionToken<any>;
|
|
79
50
|
/**
|
|
80
51
|
* Configuration used when opening a bottom sheet.
|
|
81
52
|
*/
|
|
82
|
-
|
|
53
|
+
declare class MatBottomSheetConfig<D = any> {
|
|
83
54
|
/** The view container to place the overlay for the bottom sheet into. */
|
|
84
55
|
viewContainerRef?: ViewContainerRef;
|
|
85
56
|
/** Extra CSS classes to be added to the bottom sheet container. */
|
|
@@ -129,44 +100,10 @@ export declare class MatBottomSheetConfig<D = any> {
|
|
|
129
100
|
maxHeight?: number | string;
|
|
130
101
|
}
|
|
131
102
|
|
|
132
|
-
/**
|
|
133
|
-
* Internal component that wraps user-provided bottom sheet content.
|
|
134
|
-
* @docs-private
|
|
135
|
-
*/
|
|
136
|
-
export declare class MatBottomSheetContainer extends CdkDialogContainer implements OnDestroy {
|
|
137
|
-
private _breakpointSubscription;
|
|
138
|
-
protected _animationsDisabled: boolean;
|
|
139
|
-
/** The state of the bottom sheet animations. */
|
|
140
|
-
_animationState: 'void' | 'visible' | 'hidden';
|
|
141
|
-
/** Emits whenever the state of the animation changes. */
|
|
142
|
-
_animationStateChanged: EventEmitter<{
|
|
143
|
-
toState: "visible" | "hidden";
|
|
144
|
-
phase: "start" | "done";
|
|
145
|
-
}>;
|
|
146
|
-
/** Whether the component has been destroyed. */
|
|
147
|
-
private _destroyed;
|
|
148
|
-
constructor(...args: unknown[]);
|
|
149
|
-
/** Begin animation of bottom sheet entrance into view. */
|
|
150
|
-
enter(): void;
|
|
151
|
-
/** Begin animation of the bottom sheet exiting from view. */
|
|
152
|
-
exit(): void;
|
|
153
|
-
ngOnDestroy(): void;
|
|
154
|
-
private _simulateAnimation;
|
|
155
|
-
protected _handleAnimationEvent(isStart: boolean, animationName: string): void;
|
|
156
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetContainer, never>;
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never, true, never>;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export declare class MatBottomSheetModule {
|
|
161
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetModule, never>;
|
|
162
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatBottomSheetModule, never, [typeof i1.DialogModule, typeof i2.MatCommonModule, typeof i3.PortalModule, typeof i4.MatBottomSheetContainer], [typeof i4.MatBottomSheetContainer, typeof i2.MatCommonModule]>;
|
|
163
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatBottomSheetModule>;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
103
|
/**
|
|
167
104
|
* Reference to a bottom sheet dispatched from the bottom sheet service.
|
|
168
105
|
*/
|
|
169
|
-
|
|
106
|
+
declare class MatBottomSheetRef<T = any, R = any> {
|
|
170
107
|
private _ref;
|
|
171
108
|
/** Instance of the component making up the content of the bottom sheet. */
|
|
172
109
|
get instance(): T;
|
|
@@ -208,4 +145,52 @@ export declare class MatBottomSheetRef<T = any, R = any> {
|
|
|
208
145
|
keydownEvents(): Observable<KeyboardEvent>;
|
|
209
146
|
}
|
|
210
147
|
|
|
211
|
-
|
|
148
|
+
/** Injection token that can be used to specify default bottom sheet options. */
|
|
149
|
+
declare const MAT_BOTTOM_SHEET_DEFAULT_OPTIONS: InjectionToken<MatBottomSheetConfig<any>>;
|
|
150
|
+
/**
|
|
151
|
+
* Service to trigger Material Design bottom sheets.
|
|
152
|
+
*/
|
|
153
|
+
declare class MatBottomSheet implements OnDestroy {
|
|
154
|
+
private _overlay;
|
|
155
|
+
private _parentBottomSheet;
|
|
156
|
+
private _defaultOptions;
|
|
157
|
+
private _bottomSheetRefAtThisLevel;
|
|
158
|
+
private _dialog;
|
|
159
|
+
/** Reference to the currently opened bottom sheet. */
|
|
160
|
+
get _openedBottomSheetRef(): MatBottomSheetRef<any> | null;
|
|
161
|
+
set _openedBottomSheetRef(value: MatBottomSheetRef<any> | null);
|
|
162
|
+
constructor(...args: unknown[]);
|
|
163
|
+
/**
|
|
164
|
+
* Opens a bottom sheet containing the given component.
|
|
165
|
+
* @param component Type of the component to load into the bottom sheet.
|
|
166
|
+
* @param config Extra configuration options.
|
|
167
|
+
* @returns Reference to the newly-opened bottom sheet.
|
|
168
|
+
*/
|
|
169
|
+
open<T, D = any, R = any>(component: ComponentType<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;
|
|
170
|
+
/**
|
|
171
|
+
* Opens a bottom sheet containing the given template.
|
|
172
|
+
* @param template TemplateRef to instantiate as the bottom sheet content.
|
|
173
|
+
* @param config Extra configuration options.
|
|
174
|
+
* @returns Reference to the newly-opened bottom sheet.
|
|
175
|
+
*/
|
|
176
|
+
open<T, D = any, R = any>(template: TemplateRef<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;
|
|
177
|
+
/**
|
|
178
|
+
* Dismisses the currently-visible bottom sheet.
|
|
179
|
+
* @param result Data to pass to the bottom sheet instance.
|
|
180
|
+
*/
|
|
181
|
+
dismiss<R = any>(result?: R): void;
|
|
182
|
+
ngOnDestroy(): void;
|
|
183
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheet, never>;
|
|
184
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatBottomSheet>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Animations used by the Material bottom sheet.
|
|
189
|
+
* @deprecated No longer used. Will be removed.
|
|
190
|
+
* @breaking-change 21.0.0
|
|
191
|
+
*/
|
|
192
|
+
declare const matBottomSheetAnimations: {
|
|
193
|
+
readonly bottomSheetState: any;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export { type AutoFocusTarget, MAT_BOTTOM_SHEET_DATA, MAT_BOTTOM_SHEET_DEFAULT_OPTIONS, MatBottomSheet, MatBottomSheetConfig, MatBottomSheetContainer, MatBottomSheetModule, MatBottomSheetRef, matBottomSheetAnimations };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
3
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
interface BottomSheetHarnessFilters extends BaseHarnessFilters {
|
|
6
4
|
}
|
|
7
5
|
|
|
8
6
|
/** Harness for interacting with a standard MatBottomSheet in tests. */
|
|
9
|
-
|
|
7
|
+
declare class MatBottomSheetHarness extends ContentContainerComponentHarness<string> {
|
|
10
8
|
static hostSelector: string;
|
|
11
9
|
/**
|
|
12
10
|
* Gets a `HarnessPredicate` that can be used to search for a bottom sheet with
|
|
@@ -24,4 +22,4 @@ export declare class MatBottomSheetHarness extends ContentContainerComponentHarn
|
|
|
24
22
|
dismiss(): Promise<void>;
|
|
25
23
|
}
|
|
26
24
|
|
|
27
|
-
export { }
|
|
25
|
+
export { type BottomSheetHarnessFilters, MatBottomSheetHarness };
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@use '../core/tokens/m2/mat/protected-button' as tokens-mat-protected-button;
|
|
12
12
|
@use '../core/tokens/m2/mdc/text-button' as tokens-mdc-text-button;
|
|
13
13
|
@use '../core/tokens/m2/mat/text-button' as tokens-mat-text-button;
|
|
14
|
+
@use '../core/tokens/m2/mat/tonal-button' as tokens-mat-tonal-button;
|
|
14
15
|
@use '../core/style/sass-utils';
|
|
15
16
|
|
|
16
17
|
@mixin _text-button-variant($theme, $palette) {
|
|
@@ -26,8 +27,8 @@
|
|
|
26
27
|
tokens-mat-text-button.get-color-tokens($theme)
|
|
27
28
|
);
|
|
28
29
|
|
|
29
|
-
@include token-utils.create-token-values(tokens-mdc-text-button.$prefix, $mdc-tokens);
|
|
30
|
-
@include token-utils.create-token-values(tokens-mat-text-button.$prefix, $mat-tokens);
|
|
30
|
+
@include token-utils.create-token-values-mixed(tokens-mdc-text-button.$prefix, $mdc-tokens);
|
|
31
|
+
@include token-utils.create-token-values-mixed(tokens-mat-text-button.$prefix, $mat-tokens);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
@mixin _filled-button-variant($theme, $palette) {
|
|
@@ -43,8 +44,8 @@
|
|
|
43
44
|
tokens-mat-filled-button.get-color-tokens($theme)
|
|
44
45
|
);
|
|
45
46
|
|
|
46
|
-
@include token-utils.create-token-values(tokens-mdc-filled-button.$prefix, $mdc-tokens);
|
|
47
|
-
@include token-utils.create-token-values(tokens-mat-filled-button.$prefix, $mat-tokens);
|
|
47
|
+
@include token-utils.create-token-values-mixed(tokens-mdc-filled-button.$prefix, $mdc-tokens);
|
|
48
|
+
@include token-utils.create-token-values-mixed(tokens-mat-filled-button.$prefix, $mat-tokens);
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
@mixin _protected-button-variant($theme, $palette) {
|
|
@@ -60,8 +61,8 @@
|
|
|
60
61
|
tokens-mat-protected-button.get-color-tokens($theme)
|
|
61
62
|
);
|
|
62
63
|
|
|
63
|
-
@include token-utils.create-token-values(tokens-mdc-protected-button.$prefix, $mdc-tokens);
|
|
64
|
-
@include token-utils.create-token-values(tokens-mat-protected-button.$prefix, $mat-tokens);
|
|
64
|
+
@include token-utils.create-token-values-mixed(tokens-mdc-protected-button.$prefix, $mdc-tokens);
|
|
65
|
+
@include token-utils.create-token-values-mixed(tokens-mat-protected-button.$prefix, $mat-tokens);
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
@mixin _outlined-button-variant($theme, $palette) {
|
|
@@ -77,10 +78,19 @@
|
|
|
77
78
|
tokens-mat-outlined-button.get-color-tokens($theme)
|
|
78
79
|
);
|
|
79
80
|
|
|
80
|
-
@include token-utils.create-token-values(tokens-mdc-outlined-button.$prefix, $mdc-tokens);
|
|
81
|
-
@include token-utils.create-token-values(tokens-mat-outlined-button.$prefix, $mat-tokens);
|
|
81
|
+
@include token-utils.create-token-values-mixed(tokens-mdc-outlined-button.$prefix, $mdc-tokens);
|
|
82
|
+
@include token-utils.create-token-values-mixed(tokens-mat-outlined-button.$prefix, $mat-tokens);
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
@mixin _tonal-button-variant($theme, $palette) {
|
|
86
|
+
@include token-utils.create-token-values-mixed(tokens-mat-tonal-button.$prefix, if(
|
|
87
|
+
$palette,
|
|
88
|
+
tokens-mat-tonal-button.private-get-color-palette-color-tokens($theme, $palette),
|
|
89
|
+
tokens-mat-tonal-button.get-color-tokens($theme)
|
|
90
|
+
));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
84
94
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
85
95
|
@include validation.selector-defined(
|
|
86
96
|
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
@@ -125,6 +135,11 @@
|
|
|
125
135
|
tokens-mat-outlined-button.$prefix,
|
|
126
136
|
$options...
|
|
127
137
|
);
|
|
138
|
+
$mat-tonal-button-tokens: token-utils.get-tokens-for(
|
|
139
|
+
$tokens,
|
|
140
|
+
tokens-mat-tonal-button.$prefix,
|
|
141
|
+
$options...
|
|
142
|
+
);
|
|
128
143
|
|
|
129
144
|
@include token-utils.create-token-values(tokens-mdc-text-button.$prefix, $mdc-text-button-tokens);
|
|
130
145
|
@include token-utils.create-token-values(
|
|
@@ -152,6 +167,10 @@
|
|
|
152
167
|
tokens-mat-outlined-button.$prefix,
|
|
153
168
|
$mat-outlined-button-tokens
|
|
154
169
|
);
|
|
170
|
+
@include token-utils.create-token-values(
|
|
171
|
+
tokens-mat-tonal-button.$prefix,
|
|
172
|
+
$mat-tonal-button-tokens
|
|
173
|
+
);
|
|
155
174
|
}
|
|
156
175
|
|
|
157
176
|
/// Outputs base theme styles (styles not dependent on the color, typography, or density settings)
|
|
@@ -162,39 +181,43 @@
|
|
|
162
181
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
163
182
|
} @else {
|
|
164
183
|
@include sass-utils.current-selector-or-root() {
|
|
165
|
-
@include token-utils.create-token-values(
|
|
184
|
+
@include token-utils.create-token-values-mixed(
|
|
166
185
|
tokens-mdc-text-button.$prefix,
|
|
167
186
|
tokens-mdc-text-button.get-unthemable-tokens()
|
|
168
187
|
);
|
|
169
|
-
@include token-utils.create-token-values(
|
|
188
|
+
@include token-utils.create-token-values-mixed(
|
|
170
189
|
tokens-mdc-filled-button.$prefix,
|
|
171
190
|
tokens-mdc-filled-button.get-unthemable-tokens()
|
|
172
191
|
);
|
|
173
|
-
@include token-utils.create-token-values(
|
|
192
|
+
@include token-utils.create-token-values-mixed(
|
|
174
193
|
tokens-mdc-protected-button.$prefix,
|
|
175
194
|
tokens-mdc-protected-button.get-unthemable-tokens()
|
|
176
195
|
);
|
|
177
|
-
@include token-utils.create-token-values(
|
|
196
|
+
@include token-utils.create-token-values-mixed(
|
|
178
197
|
tokens-mdc-outlined-button.$prefix,
|
|
179
198
|
tokens-mdc-outlined-button.get-unthemable-tokens()
|
|
180
199
|
);
|
|
181
200
|
|
|
182
|
-
@include token-utils.create-token-values(
|
|
201
|
+
@include token-utils.create-token-values-mixed(
|
|
183
202
|
tokens-mat-text-button.$prefix,
|
|
184
203
|
tokens-mat-text-button.get-unthemable-tokens()
|
|
185
204
|
);
|
|
186
|
-
@include token-utils.create-token-values(
|
|
205
|
+
@include token-utils.create-token-values-mixed(
|
|
187
206
|
tokens-mat-filled-button.$prefix,
|
|
188
207
|
tokens-mat-filled-button.get-unthemable-tokens()
|
|
189
208
|
);
|
|
190
|
-
@include token-utils.create-token-values(
|
|
209
|
+
@include token-utils.create-token-values-mixed(
|
|
191
210
|
tokens-mat-protected-button.$prefix,
|
|
192
211
|
tokens-mat-protected-button.get-unthemable-tokens()
|
|
193
212
|
);
|
|
194
|
-
@include token-utils.create-token-values(
|
|
213
|
+
@include token-utils.create-token-values-mixed(
|
|
195
214
|
tokens-mat-outlined-button.$prefix,
|
|
196
215
|
tokens-mat-outlined-button.get-unthemable-tokens()
|
|
197
216
|
);
|
|
217
|
+
@include token-utils.create-token-values-mixed(
|
|
218
|
+
tokens-mat-tonal-button.$prefix,
|
|
219
|
+
tokens-mat-tonal-button.get-unthemable-tokens()
|
|
220
|
+
);
|
|
198
221
|
}
|
|
199
222
|
}
|
|
200
223
|
}
|
|
@@ -211,6 +234,7 @@
|
|
|
211
234
|
@include sass-utils.current-selector-or-root() {
|
|
212
235
|
@include _text-button-variant($theme, null);
|
|
213
236
|
@include _filled-button-variant($theme, null);
|
|
237
|
+
@include _tonal-button-variant($theme, null);
|
|
214
238
|
@include _protected-button-variant($theme, null);
|
|
215
239
|
@include _outlined-button-variant($theme, null);
|
|
216
240
|
}
|
|
@@ -270,6 +294,20 @@
|
|
|
270
294
|
@include _outlined-button-variant($theme, warn);
|
|
271
295
|
}
|
|
272
296
|
}
|
|
297
|
+
|
|
298
|
+
.mat-tonal-button {
|
|
299
|
+
&.mat-primary {
|
|
300
|
+
@include _tonal-button-variant($theme, primary);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&.mat-accent {
|
|
304
|
+
@include _tonal-button-variant($theme, accent);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
&.mat-warn {
|
|
308
|
+
@include _tonal-button-variant($theme, warn);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
273
311
|
}
|
|
274
312
|
}
|
|
275
313
|
|
|
@@ -280,39 +318,43 @@
|
|
|
280
318
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
281
319
|
} @else {
|
|
282
320
|
@include sass-utils.current-selector-or-root() {
|
|
283
|
-
@include token-utils.create-token-values(
|
|
321
|
+
@include token-utils.create-token-values-mixed(
|
|
284
322
|
tokens-mdc-text-button.$prefix,
|
|
285
323
|
tokens-mdc-text-button.get-typography-tokens($theme)
|
|
286
324
|
);
|
|
287
|
-
@include token-utils.create-token-values(
|
|
325
|
+
@include token-utils.create-token-values-mixed(
|
|
288
326
|
tokens-mdc-filled-button.$prefix,
|
|
289
327
|
tokens-mdc-filled-button.get-typography-tokens($theme)
|
|
290
328
|
);
|
|
291
|
-
@include token-utils.create-token-values(
|
|
329
|
+
@include token-utils.create-token-values-mixed(
|
|
292
330
|
tokens-mdc-protected-button.$prefix,
|
|
293
331
|
tokens-mdc-protected-button.get-typography-tokens($theme)
|
|
294
332
|
);
|
|
295
|
-
@include token-utils.create-token-values(
|
|
333
|
+
@include token-utils.create-token-values-mixed(
|
|
296
334
|
tokens-mdc-outlined-button.$prefix,
|
|
297
335
|
tokens-mdc-outlined-button.get-typography-tokens($theme)
|
|
298
336
|
);
|
|
299
337
|
|
|
300
|
-
@include token-utils.create-token-values(
|
|
338
|
+
@include token-utils.create-token-values-mixed(
|
|
301
339
|
tokens-mat-text-button.$prefix,
|
|
302
340
|
tokens-mat-text-button.get-typography-tokens($theme)
|
|
303
341
|
);
|
|
304
|
-
@include token-utils.create-token-values(
|
|
342
|
+
@include token-utils.create-token-values-mixed(
|
|
305
343
|
tokens-mat-filled-button.$prefix,
|
|
306
344
|
tokens-mat-filled-button.get-typography-tokens($theme)
|
|
307
345
|
);
|
|
308
|
-
@include token-utils.create-token-values(
|
|
346
|
+
@include token-utils.create-token-values-mixed(
|
|
309
347
|
tokens-mat-protected-button.$prefix,
|
|
310
348
|
tokens-mat-protected-button.get-typography-tokens($theme)
|
|
311
349
|
);
|
|
312
|
-
@include token-utils.create-token-values(
|
|
350
|
+
@include token-utils.create-token-values-mixed(
|
|
313
351
|
tokens-mat-outlined-button.$prefix,
|
|
314
352
|
tokens-mat-outlined-button.get-typography-tokens($theme)
|
|
315
353
|
);
|
|
354
|
+
@include token-utils.create-token-values-mixed(
|
|
355
|
+
tokens-mat-tonal-button.$prefix,
|
|
356
|
+
tokens-mat-tonal-button.get-typography-tokens($theme)
|
|
357
|
+
);
|
|
316
358
|
}
|
|
317
359
|
}
|
|
318
360
|
}
|
|
@@ -324,39 +366,43 @@
|
|
|
324
366
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
325
367
|
} @else {
|
|
326
368
|
@include sass-utils.current-selector-or-root() {
|
|
327
|
-
@include token-utils.create-token-values(
|
|
369
|
+
@include token-utils.create-token-values-mixed(
|
|
328
370
|
tokens-mdc-text-button.$prefix,
|
|
329
371
|
tokens-mdc-text-button.get-density-tokens($theme)
|
|
330
372
|
);
|
|
331
|
-
@include token-utils.create-token-values(
|
|
373
|
+
@include token-utils.create-token-values-mixed(
|
|
332
374
|
tokens-mdc-filled-button.$prefix,
|
|
333
375
|
tokens-mdc-filled-button.get-density-tokens($theme)
|
|
334
376
|
);
|
|
335
|
-
@include token-utils.create-token-values(
|
|
377
|
+
@include token-utils.create-token-values-mixed(
|
|
336
378
|
tokens-mdc-protected-button.$prefix,
|
|
337
379
|
tokens-mdc-protected-button.get-density-tokens($theme)
|
|
338
380
|
);
|
|
339
|
-
@include token-utils.create-token-values(
|
|
381
|
+
@include token-utils.create-token-values-mixed(
|
|
340
382
|
tokens-mdc-outlined-button.$prefix,
|
|
341
383
|
tokens-mdc-outlined-button.get-density-tokens($theme)
|
|
342
384
|
);
|
|
343
385
|
|
|
344
|
-
@include token-utils.create-token-values(
|
|
386
|
+
@include token-utils.create-token-values-mixed(
|
|
345
387
|
tokens-mat-text-button.$prefix,
|
|
346
388
|
tokens-mat-text-button.get-density-tokens($theme)
|
|
347
389
|
);
|
|
348
|
-
@include token-utils.create-token-values(
|
|
390
|
+
@include token-utils.create-token-values-mixed(
|
|
349
391
|
tokens-mat-filled-button.$prefix,
|
|
350
392
|
tokens-mat-filled-button.get-density-tokens($theme)
|
|
351
393
|
);
|
|
352
|
-
@include token-utils.create-token-values(
|
|
394
|
+
@include token-utils.create-token-values-mixed(
|
|
353
395
|
tokens-mat-protected-button.$prefix,
|
|
354
396
|
tokens-mat-protected-button.get-density-tokens($theme)
|
|
355
397
|
);
|
|
356
|
-
@include token-utils.create-token-values(
|
|
398
|
+
@include token-utils.create-token-values-mixed(
|
|
357
399
|
tokens-mat-outlined-button.$prefix,
|
|
358
400
|
tokens-mat-outlined-button.get-density-tokens($theme)
|
|
359
401
|
);
|
|
402
|
+
@include token-utils.create-token-values-mixed(
|
|
403
|
+
tokens-mat-tonal-button.$prefix,
|
|
404
|
+
tokens-mat-tonal-button.get-density-tokens($theme)
|
|
405
|
+
);
|
|
360
406
|
}
|
|
361
407
|
}
|
|
362
408
|
}
|
|
@@ -371,6 +417,7 @@
|
|
|
371
417
|
$mat-protected-button-tokens: tokens-mat-protected-button.get-token-slots();
|
|
372
418
|
$mdc-text-button-tokens: tokens-mdc-text-button.get-token-slots();
|
|
373
419
|
$mat-text-button-tokens: tokens-mat-text-button.get-token-slots();
|
|
420
|
+
$mat-tonal-button-tokens: tokens-mat-tonal-button.get-token-slots();
|
|
374
421
|
|
|
375
422
|
@return (
|
|
376
423
|
(
|
|
@@ -413,6 +460,11 @@
|
|
|
413
460
|
tokens: $mat-text-button-tokens,
|
|
414
461
|
prefix: 'text-',
|
|
415
462
|
),
|
|
463
|
+
(
|
|
464
|
+
namespace: tokens-mat-tonal-button.$prefix,
|
|
465
|
+
tokens: $mat-tonal-button-tokens,
|
|
466
|
+
prefix: 'tonal-',
|
|
467
|
+
),
|
|
416
468
|
);
|
|
417
469
|
}
|
|
418
470
|
|
package/button/_fab-theme.scss
CHANGED
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
19
19
|
} @else {
|
|
20
20
|
@include sass-utils.current-selector-or-root() {
|
|
21
|
-
@include token-utils.create-token-values(
|
|
21
|
+
@include token-utils.create-token-values-mixed(
|
|
22
22
|
tokens-mdc-fab.$prefix,
|
|
23
23
|
tokens-mdc-fab.get-unthemable-tokens()
|
|
24
24
|
);
|
|
25
|
-
@include token-utils.create-token-values(
|
|
25
|
+
@include token-utils.create-token-values-mixed(
|
|
26
26
|
tokens-mdc-fab-small.$prefix,
|
|
27
27
|
tokens-mdc-fab-small.get-unthemable-tokens()
|
|
28
28
|
);
|
|
29
|
-
@include token-utils.create-token-values(
|
|
29
|
+
@include token-utils.create-token-values-mixed(
|
|
30
30
|
tokens-mdc-extended-fab.$prefix,
|
|
31
31
|
tokens-mdc-extended-fab.get-unthemable-tokens()
|
|
32
32
|
);
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
tokens-mat-fab.get-color-tokens($theme)
|
|
48
48
|
);
|
|
49
49
|
|
|
50
|
-
@include token-utils.create-token-values(tokens-mdc-fab.$prefix, $mdc-tokens);
|
|
51
|
-
@include token-utils.create-token-values(tokens-mat-fab.$prefix, $mat-tokens);
|
|
50
|
+
@include token-utils.create-token-values-mixed(tokens-mdc-fab.$prefix, $mdc-tokens);
|
|
51
|
+
@include token-utils.create-token-values-mixed(tokens-mat-fab.$prefix, $mat-tokens);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
@mixin _fab-small-variant($theme, $palette) {
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
tokens-mat-fab-small.get-color-tokens($theme)
|
|
65
65
|
);
|
|
66
66
|
|
|
67
|
-
@include token-utils.create-token-values(tokens-mdc-fab-small.$prefix, $mdc-tokens);
|
|
68
|
-
@include token-utils.create-token-values(tokens-mat-fab-small.$prefix, $mat-tokens);
|
|
67
|
+
@include token-utils.create-token-values-mixed(tokens-mdc-fab-small.$prefix, $mdc-tokens);
|
|
68
|
+
@include token-utils.create-token-values-mixed(tokens-mat-fab-small.$prefix, $mat-tokens);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/// Outputs color theme styles for the mat-fab.
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
@include sass-utils.current-selector-or-root() {
|
|
81
81
|
@include _fab-variant($theme, null);
|
|
82
82
|
@include _fab-small-variant($theme, null);
|
|
83
|
-
@include token-utils.create-token-values(
|
|
83
|
+
@include token-utils.create-token-values-mixed(
|
|
84
84
|
tokens-mdc-extended-fab.$prefix,
|
|
85
85
|
tokens-mdc-extended-fab.get-color-tokens($theme)
|
|
86
86
|
);
|
|
@@ -123,15 +123,15 @@
|
|
|
123
123
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
124
124
|
} @else {
|
|
125
125
|
@include sass-utils.current-selector-or-root() {
|
|
126
|
-
@include token-utils.create-token-values(
|
|
126
|
+
@include token-utils.create-token-values-mixed(
|
|
127
127
|
tokens-mdc-extended-fab.$prefix,
|
|
128
128
|
tokens-mdc-extended-fab.get-typography-tokens($theme)
|
|
129
129
|
);
|
|
130
|
-
@include token-utils.create-token-values(
|
|
130
|
+
@include token-utils.create-token-values-mixed(
|
|
131
131
|
tokens-mat-fab.$prefix,
|
|
132
132
|
tokens-mat-fab.get-typography-tokens($theme)
|
|
133
133
|
);
|
|
134
|
-
@include token-utils.create-token-values(
|
|
134
|
+
@include token-utils.create-token-values-mixed(
|
|
135
135
|
tokens-mat-fab-small.$prefix,
|
|
136
136
|
tokens-mat-fab-small.get-typography-tokens($theme)
|
|
137
137
|
);
|
|
@@ -146,11 +146,11 @@
|
|
|
146
146
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
147
147
|
} @else {
|
|
148
148
|
@include sass-utils.current-selector-or-root() {
|
|
149
|
-
@include token-utils.create-token-values(
|
|
149
|
+
@include token-utils.create-token-values-mixed(
|
|
150
150
|
tokens-mat-fab.$prefix,
|
|
151
151
|
tokens-mat-fab.get-density-tokens($theme)
|
|
152
152
|
);
|
|
153
|
-
@include token-utils.create-token-values(
|
|
153
|
+
@include token-utils.create-token-values-mixed(
|
|
154
154
|
tokens-mat-fab-small.$prefix,
|
|
155
155
|
tokens-mat-fab-small.get-density-tokens($theme)
|
|
156
156
|
);
|