@depup/angular__material 21.2.2-depup.19
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/LICENSE +21 -0
- package/README.md +31 -0
- package/_index.scss +145 -0
- package/autocomplete/_autocomplete-theme.scss +76 -0
- package/autocomplete/_m2-autocomplete.scss +19 -0
- package/autocomplete/_m3-autocomplete.scss +26 -0
- package/badge/_badge-theme.scss +106 -0
- package/badge/_m2-badge.scss +73 -0
- package/badge/_m3-badge.scss +52 -0
- package/bottom-sheet/_bottom-sheet-theme.scss +76 -0
- package/bottom-sheet/_m2-bottom-sheet.scss +24 -0
- package/bottom-sheet/_m3-bottom-sheet.scss +25 -0
- package/button/_button-theme.scss +113 -0
- package/button/_fab-theme.scss +111 -0
- package/button/_icon-button-theme.scss +136 -0
- package/button/_m2-button.scss +194 -0
- package/button/_m2-fab.scss +101 -0
- package/button/_m2-icon-button.scss +59 -0
- package/button/_m3-button.scss +170 -0
- package/button/_m3-fab.scss +92 -0
- package/button/_m3-icon-button.scss +54 -0
- package/button-toggle/_button-toggle-theme.scss +93 -0
- package/button-toggle/_m2-button-toggle.scss +68 -0
- package/button-toggle/_m3-button-toggle.scss +72 -0
- package/card/_card-theme.scss +76 -0
- package/card/_m2-card.scss +39 -0
- package/card/_m3-card.scss +44 -0
- package/changes.json +10 -0
- package/checkbox/_checkbox-theme.scss +105 -0
- package/checkbox/_m2-checkbox.scss +78 -0
- package/checkbox/_m3-checkbox.scss +68 -0
- package/chips/_chips-theme.scss +115 -0
- package/chips/_m2-chip.scss +85 -0
- package/chips/_m3-chip.scss +81 -0
- package/core/_core-theme.scss +125 -0
- package/core/_core.scss +50 -0
- package/core/_m2-app.scss +24 -0
- package/core/_m3-app.scss +44 -0
- package/core/color/_all-color.scss +17 -0
- package/core/density/private/_all-density.scss +78 -0
- package/core/focus-indicators/_private.scss +126 -0
- package/core/m2/_index.scss +52 -0
- package/core/m2/_palette.scss +748 -0
- package/core/m2/_theming.scss +340 -0
- package/core/m2/_typography-utils.scss +81 -0
- package/core/m2/_typography.scss +388 -0
- package/core/option/_m2-optgroup.scss +21 -0
- package/core/option/_m2-option.scss +38 -0
- package/core/option/_m3-optgroup.scss +25 -0
- package/core/option/_m3-option.scss +37 -0
- package/core/option/_optgroup-theme.scss +76 -0
- package/core/option/_option-theme.scss +103 -0
- package/core/ripple/_m2-ripple.scss +17 -0
- package/core/ripple/_m3-ripple.scss +17 -0
- package/core/ripple/_ripple-theme.scss +75 -0
- package/core/ripple/_ripple.scss +56 -0
- package/core/selection/pseudo-checkbox/_m2-pseudo-checkbox.scss +32 -0
- package/core/selection/pseudo-checkbox/_m3-pseudo-checkbox.scss +34 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-common.scss +86 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +110 -0
- package/core/style/_checkbox-common.scss +11 -0
- package/core/style/_elevation.scss +208 -0
- package/core/style/_layout-common.scss +8 -0
- package/core/style/_private.scss +27 -0
- package/core/style/_sass-utils.scss +57 -0
- package/core/style/_validation.scss +52 -0
- package/core/style/_variables.scss +44 -0
- package/core/style/_vendor-prefixes.scss +56 -0
- package/core/theming/_all-theme.scss +168 -0
- package/core/theming/_color-api-backwards-compatibility.scss +159 -0
- package/core/theming/_config-validation.scss +174 -0
- package/core/theming/_definition.scss +141 -0
- package/core/theming/_inspection.scss +289 -0
- package/core/theming/_m2-inspection.scss +243 -0
- package/core/theming/_palettes.scss +1036 -0
- package/core/theming/_theming.scss +193 -0
- package/core/theming/_validation.scss +5 -0
- package/core/tokens/_classes.scss +398 -0
- package/core/tokens/_m2-utils.scss +25 -0
- package/core/tokens/_m3-tokens.scss +126 -0
- package/core/tokens/_m3-utils.scss +36 -0
- package/core/tokens/_system.scss +398 -0
- package/core/tokens/_token-utils.scss +119 -0
- package/core/tokens/m2/_index.scss +6 -0
- package/core/tokens/m2/_md-sys-color-internal.scss +11 -0
- package/core/tokens/m2/_md-sys-color.scss +123 -0
- package/core/tokens/m2/_md-sys-elevation.scss +10 -0
- package/core/tokens/m2/_md-sys-motion.scss +30 -0
- package/core/tokens/m2/_md-sys-shape.scss +16 -0
- package/core/tokens/m2/_md-sys-state.scss +8 -0
- package/core/tokens/m2/_md-sys-typescale.scss +68 -0
- package/core/tokens/m3/_index.scss +7 -0
- package/core/tokens/m3/_md-sys-color-internal.scss +11 -0
- package/core/tokens/m3/_md-sys-color.scss +118 -0
- package/core/tokens/m3/_md-sys-elevation.scss +15 -0
- package/core/tokens/m3/_md-sys-motion.scss +35 -0
- package/core/tokens/m3/_md-sys-shape.scss +21 -0
- package/core/tokens/m3/_md-sys-state.scss +13 -0
- package/core/tokens/m3/_md-sys-typescale-internal.scss +5 -0
- package/core/tokens/m3/_md-sys-typescale.scss +114 -0
- package/core/tokens/m3/_theme.scss +35 -0
- package/core/typography/_all-typography.scss +104 -0
- package/core/typography/_typography-utils.scss +31 -0
- package/core/typography/_typography.scss +269 -0
- package/core/typography/_versioning.scss +90 -0
- package/datepicker/_datepicker-theme.scss +132 -0
- package/datepicker/_m2-datepicker.scss +81 -0
- package/datepicker/_m3-datepicker.scss +74 -0
- package/dialog/_dialog-legacy-padding.scss +31 -0
- package/dialog/_dialog-theme.scss +76 -0
- package/dialog/_m2-dialog.scss +43 -0
- package/dialog/_m3-dialog.scss +47 -0
- package/divider/_divider-theme.scss +75 -0
- package/divider/_m2-divider.scss +17 -0
- package/divider/_m3-divider.scss +19 -0
- package/expansion/_expansion-theme.scss +76 -0
- package/expansion/_m2-expansion.scss +64 -0
- package/expansion/_m3-expansion.scss +61 -0
- package/fesm2022/_animation-chunk.mjs +22 -0
- package/fesm2022/_animation-chunk.mjs.map +1 -0
- package/fesm2022/_date-formats-chunk.mjs +86 -0
- package/fesm2022/_date-formats-chunk.mjs.map +1 -0
- package/fesm2022/_date-range-input-harness-chunk.mjs +322 -0
- package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -0
- package/fesm2022/_error-options-chunk.mjs +66 -0
- package/fesm2022/_error-options-chunk.mjs.map +1 -0
- package/fesm2022/_error-state-chunk.mjs +30 -0
- package/fesm2022/_error-state-chunk.mjs.map +1 -0
- package/fesm2022/_form-field-chunk.mjs +1351 -0
- package/fesm2022/_form-field-chunk.mjs.map +1 -0
- package/fesm2022/_icon-button-chunk.mjs +268 -0
- package/fesm2022/_icon-button-chunk.mjs.map +1 -0
- package/fesm2022/_icon-registry-chunk.mjs +368 -0
- package/fesm2022/_icon-registry-chunk.mjs.map +1 -0
- package/fesm2022/_input-harness-chunk.mjs +67 -0
- package/fesm2022/_input-harness-chunk.mjs.map +1 -0
- package/fesm2022/_input-value-accessor-chunk.mjs +6 -0
- package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -0
- package/fesm2022/_internal-form-field-chunk.mjs +67 -0
- package/fesm2022/_internal-form-field-chunk.mjs.map +1 -0
- package/fesm2022/_line-chunk.mjs +99 -0
- package/fesm2022/_line-chunk.mjs.map +1 -0
- package/fesm2022/_option-chunk.mjs +385 -0
- package/fesm2022/_option-chunk.mjs.map +1 -0
- package/fesm2022/_option-harness-chunk.mjs +30 -0
- package/fesm2022/_option-harness-chunk.mjs.map +1 -0
- package/fesm2022/_option-module-chunk.mjs +48 -0
- package/fesm2022/_option-module-chunk.mjs.map +1 -0
- package/fesm2022/_pseudo-checkbox-chunk.mjs +88 -0
- package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -0
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs +46 -0
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -0
- package/fesm2022/_public-api-chunk.mjs +84 -0
- package/fesm2022/_public-api-chunk.mjs.map +1 -0
- package/fesm2022/_ripple-chunk.mjs +544 -0
- package/fesm2022/_ripple-chunk.mjs.map +1 -0
- package/fesm2022/_ripple-loader-chunk.mjs +144 -0
- package/fesm2022/_ripple-loader-chunk.mjs.map +1 -0
- package/fesm2022/_ripple-module-chunk.mjs +46 -0
- package/fesm2022/_ripple-module-chunk.mjs.map +1 -0
- package/fesm2022/_structural-styles-chunk.mjs +45 -0
- package/fesm2022/_structural-styles-chunk.mjs.map +1 -0
- package/fesm2022/_tooltip-chunk.mjs +848 -0
- package/fesm2022/_tooltip-chunk.mjs.map +1 -0
- package/fesm2022/autocomplete-testing.mjs +75 -0
- package/fesm2022/autocomplete-testing.mjs.map +1 -0
- package/fesm2022/autocomplete.mjs +1068 -0
- package/fesm2022/autocomplete.mjs.map +1 -0
- package/fesm2022/badge-testing.mjs +48 -0
- package/fesm2022/badge-testing.mjs.map +1 -0
- package/fesm2022/badge.mjs +357 -0
- package/fesm2022/badge.mjs.map +1 -0
- package/fesm2022/bottom-sheet-testing.mjs +17 -0
- package/fesm2022/bottom-sheet-testing.mjs.map +1 -0
- package/fesm2022/bottom-sheet.mjs +390 -0
- package/fesm2022/bottom-sheet.mjs.map +1 -0
- package/fesm2022/button-testing.mjs +81 -0
- package/fesm2022/button-testing.mjs.map +1 -0
- package/fesm2022/button-toggle-testing.mjs +87 -0
- package/fesm2022/button-toggle-testing.mjs.map +1 -0
- package/fesm2022/button-toggle.mjs +789 -0
- package/fesm2022/button-toggle.mjs.map +1 -0
- package/fesm2022/button.mjs +308 -0
- package/fesm2022/button.mjs.map +1 -0
- package/fesm2022/card-testing.mjs +29 -0
- package/fesm2022/card-testing.mjs.map +1 -0
- package/fesm2022/card.mjs +615 -0
- package/fesm2022/card.mjs.map +1 -0
- package/fesm2022/checkbox-testing.mjs +79 -0
- package/fesm2022/checkbox-testing.mjs.map +1 -0
- package/fesm2022/checkbox.mjs +551 -0
- package/fesm2022/checkbox.mjs.map +1 -0
- package/fesm2022/chips-testing.mjs +239 -0
- package/fesm2022/chips-testing.mjs.map +1 -0
- package/fesm2022/chips.mjs +2663 -0
- package/fesm2022/chips.mjs.map +1 -0
- package/fesm2022/core-testing.mjs +22 -0
- package/fesm2022/core-testing.mjs.map +1 -0
- package/fesm2022/core.mjs +408 -0
- package/fesm2022/core.mjs.map +1 -0
- package/fesm2022/datepicker-testing.mjs +26 -0
- package/fesm2022/datepicker-testing.mjs.map +1 -0
- package/fesm2022/datepicker.mjs +5015 -0
- package/fesm2022/datepicker.mjs.map +1 -0
- package/fesm2022/dialog-testing.mjs +123 -0
- package/fesm2022/dialog-testing.mjs.map +1 -0
- package/fesm2022/dialog.mjs +873 -0
- package/fesm2022/dialog.mjs.map +1 -0
- package/fesm2022/divider-testing.mjs +17 -0
- package/fesm2022/divider-testing.mjs.map +1 -0
- package/fesm2022/divider.mjs +132 -0
- package/fesm2022/divider.mjs.map +1 -0
- package/fesm2022/expansion-testing.mjs +87 -0
- package/fesm2022/expansion-testing.mjs.map +1 -0
- package/fesm2022/expansion.mjs +749 -0
- package/fesm2022/expansion.mjs.map +1 -0
- package/fesm2022/form-field-testing-control.mjs +24 -0
- package/fesm2022/form-field-testing-control.mjs.map +1 -0
- package/fesm2022/form-field-testing.mjs +135 -0
- package/fesm2022/form-field-testing.mjs.map +1 -0
- package/fesm2022/form-field.mjs +57 -0
- package/fesm2022/form-field.mjs.map +1 -0
- package/fesm2022/grid-list-testing.mjs +80 -0
- package/fesm2022/grid-list-testing.mjs.map +1 -0
- package/fesm2022/grid-list.mjs +604 -0
- package/fesm2022/grid-list.mjs.map +1 -0
- package/fesm2022/icon-testing.mjs +172 -0
- package/fesm2022/icon-testing.mjs.map +1 -0
- package/fesm2022/icon.mjs +366 -0
- package/fesm2022/icon.mjs.map +1 -0
- package/fesm2022/input-testing.mjs +73 -0
- package/fesm2022/input-testing.mjs.map +1 -0
- package/fesm2022/input.mjs +495 -0
- package/fesm2022/input.mjs.map +1 -0
- package/fesm2022/list-testing.mjs +295 -0
- package/fesm2022/list-testing.mjs.map +1 -0
- package/fesm2022/list.mjs +1604 -0
- package/fesm2022/list.mjs.map +1 -0
- package/fesm2022/material.mjs +4 -0
- package/fesm2022/material.mjs.map +1 -0
- package/fesm2022/menu-testing.mjs +174 -0
- package/fesm2022/menu-testing.mjs.map +1 -0
- package/fesm2022/menu.mjs +1421 -0
- package/fesm2022/menu.mjs.map +1 -0
- package/fesm2022/paginator-testing.mjs +69 -0
- package/fesm2022/paginator-testing.mjs.map +1 -0
- package/fesm2022/paginator.mjs +445 -0
- package/fesm2022/paginator.mjs.map +1 -0
- package/fesm2022/progress-bar-testing.mjs +20 -0
- package/fesm2022/progress-bar-testing.mjs.map +1 -0
- package/fesm2022/progress-bar.mjs +247 -0
- package/fesm2022/progress-bar.mjs.map +1 -0
- package/fesm2022/progress-spinner-testing.mjs +21 -0
- package/fesm2022/progress-spinner-testing.mjs.map +1 -0
- package/fesm2022/progress-spinner.mjs +258 -0
- package/fesm2022/progress-spinner.mjs.map +1 -0
- package/fesm2022/radio-testing.mjs +143 -0
- package/fesm2022/radio-testing.mjs.map +1 -0
- package/fesm2022/radio.mjs +751 -0
- package/fesm2022/radio.mjs.map +1 -0
- package/fesm2022/select-testing.mjs +92 -0
- package/fesm2022/select-testing.mjs.map +1 -0
- package/fesm2022/select.mjs +1181 -0
- package/fesm2022/select.mjs.map +1 -0
- package/fesm2022/sidenav-testing.mjs +80 -0
- package/fesm2022/sidenav-testing.mjs.map +1 -0
- package/fesm2022/sidenav.mjs +1151 -0
- package/fesm2022/sidenav.mjs.map +1 -0
- package/fesm2022/slide-toggle-testing.mjs +68 -0
- package/fesm2022/slide-toggle-testing.mjs.map +1 -0
- package/fesm2022/slide-toggle.mjs +403 -0
- package/fesm2022/slide-toggle.mjs.map +1 -0
- package/fesm2022/slider-testing.mjs +105 -0
- package/fesm2022/slider-testing.mjs.map +1 -0
- package/fesm2022/slider.mjs +1720 -0
- package/fesm2022/slider.mjs.map +1 -0
- package/fesm2022/snack-bar-testing.mjs +47 -0
- package/fesm2022/snack-bar-testing.mjs.map +1 -0
- package/fesm2022/snack-bar.mjs +820 -0
- package/fesm2022/snack-bar.mjs.map +1 -0
- package/fesm2022/sort-testing.mjs +55 -0
- package/fesm2022/sort-testing.mjs.map +1 -0
- package/fesm2022/sort.mjs +470 -0
- package/fesm2022/sort.mjs.map +1 -0
- package/fesm2022/stepper-testing.mjs +99 -0
- package/fesm2022/stepper-testing.mjs.map +1 -0
- package/fesm2022/stepper.mjs +900 -0
- package/fesm2022/stepper.mjs.map +1 -0
- package/fesm2022/table-testing.mjs +152 -0
- package/fesm2022/table-testing.mjs.map +1 -0
- package/fesm2022/table.mjs +1151 -0
- package/fesm2022/table.mjs.map +1 -0
- package/fesm2022/tabs-testing.mjs +144 -0
- package/fesm2022/tabs-testing.mjs.map +1 -0
- package/fesm2022/tabs.mjs +2435 -0
- package/fesm2022/tabs.mjs.map +1 -0
- package/fesm2022/timepicker-testing.mjs +128 -0
- package/fesm2022/timepicker-testing.mjs.map +1 -0
- package/fesm2022/timepicker.mjs +1284 -0
- package/fesm2022/timepicker.mjs.map +1 -0
- package/fesm2022/toolbar-testing.mjs +26 -0
- package/fesm2022/toolbar-testing.mjs.map +1 -0
- package/fesm2022/toolbar.mjs +182 -0
- package/fesm2022/toolbar.mjs.map +1 -0
- package/fesm2022/tooltip-testing.mjs +48 -0
- package/fesm2022/tooltip-testing.mjs.map +1 -0
- package/fesm2022/tooltip.mjs +58 -0
- package/fesm2022/tooltip.mjs.map +1 -0
- package/fesm2022/tree-testing.mjs +104 -0
- package/fesm2022/tree-testing.mjs.map +1 -0
- package/fesm2022/tree.mjs +681 -0
- package/fesm2022/tree.mjs.map +1 -0
- package/form-field/_form-field-theme.scss +96 -0
- package/form-field/_m2-form-field.scss +226 -0
- package/form-field/_m3-form-field.scss +137 -0
- package/grid-list/_grid-list-theme.scss +76 -0
- package/grid-list/_m2-grid-list.scss +21 -0
- package/grid-list/_m3-grid-list.scss +20 -0
- package/icon/_icon-theme.scss +109 -0
- package/icon/_m2-icon.scss +15 -0
- package/icon/_m3-icon.scss +21 -0
- package/input/_input-theme.scss +36 -0
- package/list/_list-theme.scss +201 -0
- package/list/_m2-list.scss +92 -0
- package/list/_m3-list.scss +93 -0
- package/menu/_m2-menu.scss +44 -0
- package/menu/_m3-menu.scss +42 -0
- package/menu/_menu-theme.scss +76 -0
- package/package.json +404 -0
- package/paginator/_m2-paginator.scss +69 -0
- package/paginator/_m3-paginator.scss +46 -0
- package/paginator/_paginator-theme.scss +76 -0
- package/prebuilt-themes/azure-blue.css +1 -0
- package/prebuilt-themes/cyan-orange.css +1 -0
- package/prebuilt-themes/deeppurple-amber.css +1 -0
- package/prebuilt-themes/indigo-pink.css +1 -0
- package/prebuilt-themes/magenta-violet.css +1 -0
- package/prebuilt-themes/pink-bluegrey.css +1 -0
- package/prebuilt-themes/purple-green.css +1 -0
- package/prebuilt-themes/rose-red.css +1 -0
- package/progress-bar/_m2-progress-bar.scss +36 -0
- package/progress-bar/_m3-progress-bar.scss +29 -0
- package/progress-bar/_progress-bar-theme.scss +93 -0
- package/progress-spinner/_m2-progress-spinner.scss +25 -0
- package/progress-spinner/_m3-progress-spinner.scss +27 -0
- package/progress-spinner/_progress-spinner-theme.scss +95 -0
- package/radio/_m2-radio.scss +67 -0
- package/radio/_m3-radio.scss +65 -0
- package/radio/_radio-theme.scss +102 -0
- package/schematics/collection.json +55 -0
- package/schematics/migration.json +15 -0
- package/schematics/ng-add/fonts/material-fonts.d.ts +11 -0
- package/schematics/ng-add/fonts/material-fonts.js +41 -0
- package/schematics/ng-add/fonts/material-fonts.js.map +1 -0
- package/schematics/ng-add/index.d.ts +17 -0
- package/schematics/ng-add/index.js +54 -0
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/package-config.d.ts +12 -0
- package/schematics/ng-add/package-config.js +51 -0
- package/schematics/ng-add/package-config.js.map +1 -0
- package/schematics/ng-add/schema.d.ts +15 -0
- package/schematics/ng-add/schema.js +10 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/schema.json +43 -0
- package/schematics/ng-add/setup-project.d.ts +15 -0
- package/schematics/ng-add/setup-project.js +36 -0
- package/schematics/ng-add/setup-project.js.map +1 -0
- package/schematics/ng-add/theming/create-theme.d.ts +9 -0
- package/schematics/ng-add/theming/create-theme.js +58 -0
- package/schematics/ng-add/theming/create-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.d.ts +11 -0
- package/schematics/ng-add/theming/theming.js +133 -0
- package/schematics/ng-add/theming/theming.js.map +1 -0
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +27 -0
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +99 -0
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +38 -0
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +118 -0
- package/schematics/ng-generate/address-form/index.d.ts +14 -0
- package/schematics/ng-generate/address-form/index.js +43 -0
- package/schematics/ng-generate/address-form/index.js.map +1 -0
- package/schematics/ng-generate/address-form/schema.d.ts +10 -0
- package/schematics/ng-generate/address-form/schema.js +10 -0
- package/schematics/ng-generate/address-form/schema.js.map +1 -0
- package/schematics/ng-generate/address-form/schema.json +100 -0
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +21 -0
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +26 -0
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +36 -0
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +56 -0
- package/schematics/ng-generate/dashboard/index.d.ts +14 -0
- package/schematics/ng-generate/dashboard/index.js +42 -0
- package/schematics/ng-generate/dashboard/index.js.map +1 -0
- package/schematics/ng-generate/dashboard/schema.d.ts +10 -0
- package/schematics/ng-generate/dashboard/schema.js +10 -0
- package/schematics/ng-generate/dashboard/schema.js.map +1 -0
- package/schematics/ng-generate/dashboard/schema.json +100 -0
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +17 -0
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +28 -0
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +36 -0
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +42 -0
- package/schematics/ng-generate/navigation/index.d.ts +14 -0
- package/schematics/ng-generate/navigation/index.js +42 -0
- package/schematics/ng-generate/navigation/index.js.map +1 -0
- package/schematics/ng-generate/navigation/schema.d.ts +10 -0
- package/schematics/ng-generate/navigation/schema.js +10 -0
- package/schematics/ng-generate/navigation/schema.js.map +1 -0
- package/schematics/ng-generate/navigation/schema.json +105 -0
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__-datasource.ts.template +111 -0
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +3 -0
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +26 -0
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +36 -0
- package/schematics/ng-generate/table/index.d.ts +14 -0
- package/schematics/ng-generate/table/index.js +40 -0
- package/schematics/ng-generate/table/index.js.map +1 -0
- package/schematics/ng-generate/table/schema.d.ts +10 -0
- package/schematics/ng-generate/table/schema.js +10 -0
- package/schematics/ng-generate/table/schema.js.map +1 -0
- package/schematics/ng-generate/table/schema.json +100 -0
- package/schematics/ng-generate/theme-color/index_bundled.js +6561 -0
- package/schematics/ng-generate/theme-color/index_bundled.js.map +6 -0
- package/schematics/ng-generate/theme-color/schema.json +55 -0
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +4 -0
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +22 -0
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +32 -0
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +93 -0
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/example-data.ts.template +47 -0
- package/schematics/ng-generate/tree/index.d.ts +14 -0
- package/schematics/ng-generate/tree/index.js +40 -0
- package/schematics/ng-generate/tree/index.js.map +1 -0
- package/schematics/ng-generate/tree/schema.d.ts +10 -0
- package/schematics/ng-generate/tree/schema.js +10 -0
- package/schematics/ng-generate/tree/schema.js.map +1 -0
- package/schematics/ng-generate/tree/schema.json +100 -0
- package/schematics/ng-update/index_bundled.js +204 -0
- package/schematics/ng-update/index_bundled.js.map +6 -0
- package/schematics/package.json +3 -0
- package/select/_m2-select.scss +49 -0
- package/select/_m3-select.scss +54 -0
- package/select/_select-theme.scss +99 -0
- package/sidenav/_m2-sidenav.scss +48 -0
- package/sidenav/_m3-sidenav.scss +26 -0
- package/sidenav/_sidenav-theme.scss +75 -0
- package/slide-toggle/_m2-slide-toggle.scss +134 -0
- package/slide-toggle/_m3-slide-toggle.scss +133 -0
- package/slide-toggle/_slide-toggle-theme.scss +119 -0
- package/slider/_m2-slider.scss +73 -0
- package/slider/_m3-slider.scss +69 -0
- package/slider/_slider-theme.scss +103 -0
- package/snack-bar/_m2-snack-bar.scss +24 -0
- package/snack-bar/_m3-snack-bar.scss +26 -0
- package/snack-bar/_snack-bar-theme.scss +77 -0
- package/sort/_m2-sort.scss +16 -0
- package/sort/_m3-sort.scss +20 -0
- package/sort/_sort-theme.scss +76 -0
- package/stepper/_m2-stepper.scss +65 -0
- package/stepper/_m3-stepper.scss +66 -0
- package/stepper/_stepper-theme.scss +102 -0
- package/table/_m2-table.scss +63 -0
- package/table/_m3-table.scss +52 -0
- package/table/_table-theme.scss +76 -0
- package/tabs/_m2-tabs.scss +68 -0
- package/tabs/_m3-tabs.scss +58 -0
- package/tabs/_tabs-theme.scss +131 -0
- package/timepicker/_m2-timepicker.scss +19 -0
- package/timepicker/_m3-timepicker.scss +21 -0
- package/timepicker/_timepicker-theme.scss +81 -0
- package/toolbar/_m2-toolbar.scss +43 -0
- package/toolbar/_m3-toolbar.scss +41 -0
- package/toolbar/_toolbar-theme.scss +114 -0
- package/tooltip/_m2-tooltip.scss +24 -0
- package/tooltip/_m3-tooltip.scss +25 -0
- package/tooltip/_tooltip-theme.scss +76 -0
- package/tree/_m2-tree.scss +30 -0
- package/tree/_m3-tree.scss +37 -0
- package/tree/_tree-theme.scss +76 -0
- package/types/_badge-chunk.d.ts +100 -0
- package/types/_button-toggle-chunk.d.ts +252 -0
- package/types/_date-adapter-chunk.d.ts +261 -0
- package/types/_date-range-input-harness-chunk.d.ts +284 -0
- package/types/_dialog-chunk.d.ts +336 -0
- package/types/_error-options-chunk.d.ts +17 -0
- package/types/_form-field-chunk.d.ts +375 -0
- package/types/_form-field-control-chunk.d.ts +64 -0
- package/types/_form-field-control-harness-chunk.d.ts +20 -0
- package/types/_form-field-module-chunk.d.ts +18 -0
- package/types/_icon-module-chunk.d.ts +162 -0
- package/types/_icon-registry-chunk.d.ts +271 -0
- package/types/_input-harness-chunk.d.ts +61 -0
- package/types/_line-chunk.d.ts +25 -0
- package/types/_list-option-types-chunk.d.ts +15 -0
- package/types/_option-chunk.d.ts +146 -0
- package/types/_option-harness-chunk.d.ts +35 -0
- package/types/_option-module-chunk.d.ts +13 -0
- package/types/_option-parent-chunk.d.ts +20 -0
- package/types/_paginator-chunk.d.ts +184 -0
- package/types/_palette-chunk.d.ts +4 -0
- package/types/_progress-spinner-chunk.d.ts +91 -0
- package/types/_pseudo-checkbox-module-chunk.d.ts +45 -0
- package/types/_ripple-chunk.d.ts +256 -0
- package/types/_ripple-loader-chunk.d.ts +48 -0
- package/types/_ripple-module-chunk.d.ts +11 -0
- package/types/_sort-chunk.d.ts +88 -0
- package/types/_sort-direction-chunk.d.ts +3 -0
- package/types/_tooltip-chunk.d.ts +315 -0
- package/types/autocomplete-testing.d.ts +53 -0
- package/types/autocomplete.d.ts +420 -0
- package/types/badge-testing.d.ts +36 -0
- package/types/badge.d.ts +14 -0
- package/types/bottom-sheet-testing.d.ts +26 -0
- package/types/bottom-sheet.d.ts +192 -0
- package/types/button-testing.d.ts +70 -0
- package/types/button-toggle-testing.d.ts +97 -0
- package/types/button-toggle.d.ts +16 -0
- package/types/button.d.ts +210 -0
- package/types/card-testing.d.ts +41 -0
- package/types/card.d.ts +156 -0
- package/types/checkbox-testing.d.ts +86 -0
- package/types/checkbox.d.ts +216 -0
- package/types/chips-testing.d.ts +270 -0
- package/types/chips.d.ts +993 -0
- package/types/core-testing.d.ts +32 -0
- package/types/core.d.ts +185 -0
- package/types/datepicker-testing.d.ts +25 -0
- package/types/datepicker.d.ts +1746 -0
- package/types/dialog-testing.d.ts +83 -0
- package/types/dialog.d.ts +84 -0
- package/types/divider-testing.d.ts +15 -0
- package/types/divider.d.ts +24 -0
- package/types/expansion-testing.d.ts +101 -0
- package/types/expansion.d.ts +258 -0
- package/types/form-field-testing-control.d.ts +13 -0
- package/types/form-field-testing.d.ts +127 -0
- package/types/form-field.d.ts +19 -0
- package/types/grid-list-testing.d.ts +82 -0
- package/types/grid-list.d.ts +207 -0
- package/types/icon-testing.d.ts +81 -0
- package/types/icon.d.ts +8 -0
- package/types/input-testing.d.ts +73 -0
- package/types/input.d.ts +208 -0
- package/types/list-testing.d.ts +354 -0
- package/types/list.d.ts +516 -0
- package/types/material.d.ts +3 -0
- package/types/menu-testing.d.ts +141 -0
- package/types/menu.d.ts +547 -0
- package/types/paginator-testing.d.ts +51 -0
- package/types/paginator.d.ts +36 -0
- package/types/progress-bar-testing.d.ts +24 -0
- package/types/progress-bar.d.ts +106 -0
- package/types/progress-spinner-testing.d.ts +28 -0
- package/types/progress-spinner.d.ts +13 -0
- package/types/radio-testing.d.ts +109 -0
- package/types/radio.d.ts +295 -0
- package/types/select-testing.d.ts +63 -0
- package/types/select.d.ts +448 -0
- package/types/sidenav-testing.d.ts +122 -0
- package/types/sidenav.d.ts +335 -0
- package/types/slide-toggle-testing.d.ts +66 -0
- package/types/slide-toggle.d.ts +151 -0
- package/types/slider-testing.d.ts +90 -0
- package/types/slider.d.ts +662 -0
- package/types/snack-bar-testing.d.ts +64 -0
- package/types/snack-bar.d.ts +328 -0
- package/types/sort-testing.d.ts +48 -0
- package/types/sort.d.ts +126 -0
- package/types/stepper-testing.d.ts +136 -0
- package/types/stepper.d.ts +225 -0
- package/types/table-testing.d.ts +174 -0
- package/types/table.d.ts +302 -0
- package/types/tabs-testing.d.ts +145 -0
- package/types/tabs.d.ts +890 -0
- package/types/timepicker-testing.d.ts +108 -0
- package/types/timepicker.d.ts +318 -0
- package/types/toolbar-testing.d.ts +33 -0
- package/types/toolbar.d.ts +44 -0
- package/types/tooltip-testing.d.ts +35 -0
- package/types/tooltip.d.ts +17 -0
- package/types/tree-testing.d.ts +119 -0
- package/types/tree.d.ts +233 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:list';
|
|
3
|
+
@use '../core/tokens/m3-utils';
|
|
4
|
+
@use '../core/theming/theming';
|
|
5
|
+
@use '../core/tokens/m3';
|
|
6
|
+
|
|
7
|
+
/// Generates custom tokens for the mat-chip.
|
|
8
|
+
@function get-tokens($theme: m3.$sys-theme, $color-variant: null) {
|
|
9
|
+
$system: m3-utils.get-system($theme);
|
|
10
|
+
@if $color-variant {
|
|
11
|
+
$system: m3-utils.replace-colors-with-variant($system, secondary, $color-variant);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@return (
|
|
15
|
+
base: (
|
|
16
|
+
chip-container-shape-radius: 8px,
|
|
17
|
+
chip-disabled-container-opacity: 1,
|
|
18
|
+
chip-elevated-container-color: transparent, // surface in M3, but not emitted in MDC
|
|
19
|
+
chip-flat-selected-outline-width: 0,
|
|
20
|
+
chip-outline-width: 1px,
|
|
21
|
+
chip-trailing-action-focus-opacity: 1,
|
|
22
|
+
chip-trailing-action-opacity: 1,
|
|
23
|
+
chip-with-avatar-avatar-shape-radius: 24px,
|
|
24
|
+
chip-with-avatar-avatar-size: 24px,
|
|
25
|
+
chip-with-avatar-disabled-avatar-opacity: 0.38,
|
|
26
|
+
chip-with-icon-disabled-icon-opacity: 0.38,
|
|
27
|
+
chip-with-icon-icon-size: 18px,
|
|
28
|
+
chip-with-trailing-icon-disabled-trailing-icon-opacity: 0.38,
|
|
29
|
+
),
|
|
30
|
+
color: (
|
|
31
|
+
chip-disabled-label-text-color:
|
|
32
|
+
m3-utils.color-with-opacity(map.get($system, on-surface), 38%),
|
|
33
|
+
chip-disabled-outline-color: m3-utils.color-with-opacity(map.get($system, on-surface), 12%),
|
|
34
|
+
chip-elevated-selected-container-color: map.get($system, secondary-container),
|
|
35
|
+
chip-flat-disabled-selected-container-color:
|
|
36
|
+
m3-utils.color-with-opacity(map.get($system, on-surface), 12%),
|
|
37
|
+
chip-focus-outline-color: map.get($system, on-surface-variant),
|
|
38
|
+
chip-focus-state-layer-color: map.get($system, on-surface-variant),
|
|
39
|
+
chip-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity),
|
|
40
|
+
chip-hover-state-layer-color: map.get($system, on-surface-variant),
|
|
41
|
+
chip-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity),
|
|
42
|
+
chip-label-text-color: map.get($system, on-surface-variant),
|
|
43
|
+
chip-outline-color: map.get($system, outline),
|
|
44
|
+
chip-selected-disabled-trailing-icon-color: map.get($system, on-surface),
|
|
45
|
+
chip-selected-focus-state-layer-color: map.get($system, on-secondary-container),
|
|
46
|
+
chip-selected-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity),
|
|
47
|
+
chip-selected-hover-state-layer-color: map.get($system, on-secondary-container),
|
|
48
|
+
chip-selected-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity),
|
|
49
|
+
chip-selected-label-text-color: map.get($system, on-secondary-container),
|
|
50
|
+
chip-selected-trailing-action-state-layer-color: map.get($system, on-secondary-container),
|
|
51
|
+
chip-selected-trailing-icon-color: map.get($system, on-secondary-container),
|
|
52
|
+
chip-trailing-action-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity),
|
|
53
|
+
chip-trailing-action-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity),
|
|
54
|
+
chip-trailing-action-state-layer-color: map.get($system, on-surface-variant),
|
|
55
|
+
chip-with-icon-disabled-icon-color: map.get($system, on-surface),
|
|
56
|
+
chip-with-icon-icon-color: map.get($system, on-surface-variant),
|
|
57
|
+
chip-with-icon-selected-icon-color: map.get($system, on-secondary-container),
|
|
58
|
+
chip-with-trailing-icon-disabled-trailing-icon-color:map.get($system, on-surface),
|
|
59
|
+
chip-with-trailing-icon-trailing-icon-color: map.get($system, on-surface-variant),
|
|
60
|
+
chip-elevated-disabled-container-color: null,
|
|
61
|
+
),
|
|
62
|
+
typography: (
|
|
63
|
+
chip-label-text-font: map.get($system, label-large-font),
|
|
64
|
+
chip-label-text-line-height: map.get($system, label-large-line-height),
|
|
65
|
+
chip-label-text-size: map.get($system, label-large-size),
|
|
66
|
+
chip-label-text-tracking: map.get($system, label-large-tracking),
|
|
67
|
+
chip-label-text-weight: map.get($system, label-large-weight),
|
|
68
|
+
),
|
|
69
|
+
density: get-density-tokens(map.get($system, density-scale)),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Tokens that can be configured through Angular Material's density theming API.
|
|
74
|
+
@function get-density-tokens($scale) {
|
|
75
|
+
$scale: theming.clamp-density($scale, -2);
|
|
76
|
+
$index: ($scale * -1) + 1;
|
|
77
|
+
|
|
78
|
+
@return (
|
|
79
|
+
chip-container-height: list.nth((32px, 28px, 24px), $index),
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@use './theming/inspection';
|
|
2
|
+
@use './ripple/ripple-theme';
|
|
3
|
+
@use './option/option-theme';
|
|
4
|
+
@use './option/optgroup-theme';
|
|
5
|
+
@use './selection/pseudo-checkbox/pseudo-checkbox-theme';
|
|
6
|
+
@use './typography/typography';
|
|
7
|
+
@use './tokens/token-utils';
|
|
8
|
+
@use './m2-app';
|
|
9
|
+
@use './m3-app';
|
|
10
|
+
@use 'ripple/m3-ripple';
|
|
11
|
+
@use 'option/m3-option';
|
|
12
|
+
@use 'option/m3-optgroup';
|
|
13
|
+
@use 'selection/pseudo-checkbox/m3-pseudo-checkbox';
|
|
14
|
+
@use 'sass:map';
|
|
15
|
+
|
|
16
|
+
@mixin base($theme) {
|
|
17
|
+
$tokens: map.get(m2-app.get-tokens($theme), base);
|
|
18
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
19
|
+
$tokens: map.get(m3-app.get-tokens($theme), base);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include token-utils.values($tokens);
|
|
23
|
+
|
|
24
|
+
@include ripple-theme.base($theme);
|
|
25
|
+
@include option-theme.base($theme);
|
|
26
|
+
@include optgroup-theme.base($theme);
|
|
27
|
+
@include pseudo-checkbox-theme.base($theme);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin color($theme) {
|
|
31
|
+
$tokens: map.get(m2-app.get-tokens($theme), color);
|
|
32
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
33
|
+
$tokens: map.get(m3-app.get-tokens($theme), color);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include token-utils.values($tokens);
|
|
37
|
+
|
|
38
|
+
@include ripple-theme.color($theme);
|
|
39
|
+
@include option-theme.color($theme);
|
|
40
|
+
@include optgroup-theme.color($theme);
|
|
41
|
+
@include pseudo-checkbox-theme.color($theme);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin typography($theme) {
|
|
45
|
+
$tokens: map.get(m2-app.get-tokens($theme), typography);
|
|
46
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
47
|
+
$tokens: map.get(m3-app.get-tokens($theme), typography);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include token-utils.values($tokens);
|
|
51
|
+
|
|
52
|
+
@include ripple-theme.typography($theme);
|
|
53
|
+
@include option-theme.typography($theme);
|
|
54
|
+
@include optgroup-theme.typography($theme);
|
|
55
|
+
@include pseudo-checkbox-theme.typography($theme);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@mixin density($theme) {
|
|
59
|
+
$tokens: map.get(m2-app.get-tokens($theme), density);
|
|
60
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
61
|
+
$tokens: map.get(m3-app.get-tokens($theme), density);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@include token-utils.values($tokens);
|
|
65
|
+
|
|
66
|
+
@include ripple-theme.density($theme);
|
|
67
|
+
@include option-theme.density($theme);
|
|
68
|
+
@include optgroup-theme.density($theme);
|
|
69
|
+
@include pseudo-checkbox-theme.density($theme);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@function _define-overrides() {
|
|
73
|
+
@return (
|
|
74
|
+
(
|
|
75
|
+
namespace: app,
|
|
76
|
+
tokens: token-utils.get-overrides(m3-app.get-tokens(), app),
|
|
77
|
+
prefix: 'app-'
|
|
78
|
+
),
|
|
79
|
+
(
|
|
80
|
+
namespace: ripple,
|
|
81
|
+
tokens: token-utils.get-overrides(m3-ripple.get-tokens(), ripple),
|
|
82
|
+
prefix: 'ripple-'
|
|
83
|
+
),
|
|
84
|
+
(
|
|
85
|
+
namespace: option,
|
|
86
|
+
tokens: token-utils.get-overrides(m3-option.get-tokens(), option),
|
|
87
|
+
prefix: 'option-'
|
|
88
|
+
),
|
|
89
|
+
(
|
|
90
|
+
namespace: optgroup,
|
|
91
|
+
tokens: token-utils.get-overrides(m3-optgroup.get-tokens(), optgroup),
|
|
92
|
+
prefix: 'optgroup-'
|
|
93
|
+
),
|
|
94
|
+
(
|
|
95
|
+
namespace: pseudo-checkbox,
|
|
96
|
+
tokens: token-utils.get-overrides(m3-pseudo-checkbox.get-tokens(), pseudo-checkbox),
|
|
97
|
+
prefix: 'pseudo-checkbox-'
|
|
98
|
+
),
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@mixin overrides($tokens: ()) {
|
|
103
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides());
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Mixin that renders all of the core styles that depend on the theme.
|
|
107
|
+
@mixin theme($theme) {
|
|
108
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
109
|
+
@include base($theme);
|
|
110
|
+
@include color($theme);
|
|
111
|
+
@include density($theme);
|
|
112
|
+
@include typography($theme);
|
|
113
|
+
} @else {
|
|
114
|
+
@include base($theme);
|
|
115
|
+
@if inspection.theme-has($theme, color) {
|
|
116
|
+
@include color($theme);
|
|
117
|
+
}
|
|
118
|
+
@if inspection.theme-has($theme, density) {
|
|
119
|
+
@include density($theme);
|
|
120
|
+
}
|
|
121
|
+
@if inspection.theme-has($theme, typography) {
|
|
122
|
+
@include typography($theme);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
package/core/_core.scss
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use './m3-app';
|
|
2
|
+
@use './tokens/token-utils';
|
|
3
|
+
@use './style/elevation';
|
|
4
|
+
|
|
5
|
+
$fallbacks: m3-app.get-tokens();
|
|
6
|
+
|
|
7
|
+
/// @deprecated This mixin is a no-op and is going to be removed in v21.
|
|
8
|
+
@mixin core() {}
|
|
9
|
+
|
|
10
|
+
// Emits the mat-app-background CSS class. This predefined class sets the
|
|
11
|
+
// background color and text color of an element.
|
|
12
|
+
@mixin app-background() {
|
|
13
|
+
// TODO: Move ripple styles to be dynamically loaded instead of in core.
|
|
14
|
+
// This variable is used as a fallback for the ripple element's
|
|
15
|
+
// background color. However, if it isn't defined anywhere, then MSS
|
|
16
|
+
// complains in its verification stage.
|
|
17
|
+
html {
|
|
18
|
+
--mat-sys-on-surface: initial;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Wrapper element that provides the theme background when the
|
|
22
|
+
// user's content isn't inside of a `mat-sidenav-container`.
|
|
23
|
+
@at-root {
|
|
24
|
+
// Note: we need to emit fallback values here to avoid errors in internal builds.
|
|
25
|
+
.mat-app-background {
|
|
26
|
+
background-color: token-utils.slot(app-background-color, $fallbacks, transparent);
|
|
27
|
+
color: token-utils.slot(app-text-color, $fallbacks, inherit);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Emits CSS classes for applying elevation. These classes follow the pattern
|
|
33
|
+
// mat-elevation-z#, where # is the elevation number you want, from 0 to 24.
|
|
34
|
+
// These predefined classes use the CSS box-shadow settings defined by the
|
|
35
|
+
// Material Design specification.
|
|
36
|
+
@mixin elevation-classes() {
|
|
37
|
+
@at-root {
|
|
38
|
+
// Provides external CSS classes for each elevation value. Each CSS class is formatted as
|
|
39
|
+
// `mat-elevation-z$z-value` where `$z-value` corresponds to the z-space to which the element
|
|
40
|
+
// is elevated.
|
|
41
|
+
@for $z-value from 0 through 24 {
|
|
42
|
+
$selector: elevation.$prefix + $z-value;
|
|
43
|
+
// We need the `mat-mdc-elevation-specific`, because some MDC mixins
|
|
44
|
+
// come with elevation baked in and we don't have a way of removing it.
|
|
45
|
+
.#{$selector}, .mat-mdc-elevation-specific.#{$selector} {
|
|
46
|
+
box-shadow: token-utils.slot('app-elevation-shadow-level-#{$z-value}', $fallbacks, none);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './style/elevation';
|
|
3
|
+
@use '../core/tokens/m2-utils';
|
|
4
|
+
|
|
5
|
+
@function get-tokens($theme) {
|
|
6
|
+
$system: m2-utils.get-system($theme);
|
|
7
|
+
|
|
8
|
+
$color-tokens: (
|
|
9
|
+
app-background-color: map.get($system, background),
|
|
10
|
+
app-text-color: map.get($system, on-surface)
|
|
11
|
+
);
|
|
12
|
+
@for $zValue from 0 through 24 {
|
|
13
|
+
$color-tokens: map.set($color-tokens, 'app-elevation-shadow-level-#{$zValue}',
|
|
14
|
+
elevation.get-box-shadow($zValue, map.get($system, shadow)));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@return (
|
|
18
|
+
base: (),
|
|
19
|
+
color: $color-tokens,
|
|
20
|
+
typography: (),
|
|
21
|
+
density: (),
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './style/elevation';
|
|
3
|
+
@use './tokens/m3-utils';
|
|
4
|
+
@use '../core/tokens/m3';
|
|
5
|
+
|
|
6
|
+
/// Generates custom tokens for the app.
|
|
7
|
+
@function get-tokens($theme: m3.$sys-theme) {
|
|
8
|
+
$system: m3-utils.get-system($theme);
|
|
9
|
+
|
|
10
|
+
@return (
|
|
11
|
+
base: (),
|
|
12
|
+
color: (
|
|
13
|
+
app-background-color: map.get($system, background),
|
|
14
|
+
app-text-color: map.get($system, on-background),
|
|
15
|
+
app-elevation-shadow-level-0: elevation.get-box-shadow(0, map.get($system, shadow)),
|
|
16
|
+
app-elevation-shadow-level-1: elevation.get-box-shadow(1, map.get($system, shadow)),
|
|
17
|
+
app-elevation-shadow-level-2: elevation.get-box-shadow(2, map.get($system, shadow)),
|
|
18
|
+
app-elevation-shadow-level-3: elevation.get-box-shadow(3, map.get($system, shadow)),
|
|
19
|
+
app-elevation-shadow-level-4: elevation.get-box-shadow(4, map.get($system, shadow)),
|
|
20
|
+
app-elevation-shadow-level-5: elevation.get-box-shadow(5, map.get($system, shadow)),
|
|
21
|
+
app-elevation-shadow-level-6: elevation.get-box-shadow(6, map.get($system, shadow)),
|
|
22
|
+
app-elevation-shadow-level-7: elevation.get-box-shadow(7, map.get($system, shadow)),
|
|
23
|
+
app-elevation-shadow-level-8: elevation.get-box-shadow(8, map.get($system, shadow)),
|
|
24
|
+
app-elevation-shadow-level-9: elevation.get-box-shadow(9, map.get($system, shadow)),
|
|
25
|
+
app-elevation-shadow-level-10: elevation.get-box-shadow(10, map.get($system, shadow)),
|
|
26
|
+
app-elevation-shadow-level-11: elevation.get-box-shadow(11, map.get($system, shadow)),
|
|
27
|
+
app-elevation-shadow-level-12: elevation.get-box-shadow(12, map.get($system, shadow)),
|
|
28
|
+
app-elevation-shadow-level-13: elevation.get-box-shadow(13, map.get($system, shadow)),
|
|
29
|
+
app-elevation-shadow-level-14: elevation.get-box-shadow(14, map.get($system, shadow)),
|
|
30
|
+
app-elevation-shadow-level-15: elevation.get-box-shadow(15, map.get($system, shadow)),
|
|
31
|
+
app-elevation-shadow-level-16: elevation.get-box-shadow(16, map.get($system, shadow)),
|
|
32
|
+
app-elevation-shadow-level-17: elevation.get-box-shadow(17, map.get($system, shadow)),
|
|
33
|
+
app-elevation-shadow-level-18: elevation.get-box-shadow(18, map.get($system, shadow)),
|
|
34
|
+
app-elevation-shadow-level-19: elevation.get-box-shadow(19, map.get($system, shadow)),
|
|
35
|
+
app-elevation-shadow-level-20: elevation.get-box-shadow(20, map.get($system, shadow)),
|
|
36
|
+
app-elevation-shadow-level-21: elevation.get-box-shadow(21, map.get($system, shadow)),
|
|
37
|
+
app-elevation-shadow-level-22: elevation.get-box-shadow(22, map.get($system, shadow)),
|
|
38
|
+
app-elevation-shadow-level-23: elevation.get-box-shadow(23, map.get($system, shadow)),
|
|
39
|
+
app-elevation-shadow-level-24: elevation.get-box-shadow(24, map.get($system, shadow)),
|
|
40
|
+
),
|
|
41
|
+
typography: (),
|
|
42
|
+
density: (),
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use '../theming/all-theme';
|
|
2
|
+
@use '../theming/inspection';
|
|
3
|
+
|
|
4
|
+
// Includes all of the color styles.
|
|
5
|
+
@mixin all-component-colors($theme) {
|
|
6
|
+
@if not inspection.theme-has($theme, color) {
|
|
7
|
+
@error 'No color configuration specified.';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include all-theme.all-component-colors(
|
|
11
|
+
inspection.theme-remove($theme, base, typography, density));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// @deprecated Use `all-component-colors`.
|
|
15
|
+
@mixin angular-material-color($theme) {
|
|
16
|
+
@include all-component-colors($theme);
|
|
17
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@use '../../../autocomplete/autocomplete-theme';
|
|
2
|
+
@use '../../../button-toggle/button-toggle-theme';
|
|
3
|
+
@use '../../../button/button-theme';
|
|
4
|
+
@use '../../../button/fab-theme';
|
|
5
|
+
@use '../../../button/icon-button-theme';
|
|
6
|
+
@use '../../../card/card-theme';
|
|
7
|
+
@use '../../../checkbox/checkbox-theme';
|
|
8
|
+
@use '../../../chips/chips-theme';
|
|
9
|
+
@use '../../../core/core-theme';
|
|
10
|
+
@use '../../../dialog/dialog-theme';
|
|
11
|
+
@use '../../../expansion/expansion-theme';
|
|
12
|
+
@use '../../../form-field/form-field-theme';
|
|
13
|
+
@use '../../../input/input-theme';
|
|
14
|
+
@use '../../../list/list-theme';
|
|
15
|
+
@use '../../../menu/menu-theme';
|
|
16
|
+
@use '../../../paginator/paginator-theme';
|
|
17
|
+
@use '../../../progress-bar/progress-bar-theme';
|
|
18
|
+
@use '../../../progress-spinner/progress-spinner-theme';
|
|
19
|
+
@use '../../../radio/radio-theme';
|
|
20
|
+
@use '../../../select/select-theme';
|
|
21
|
+
@use '../../../slide-toggle/slide-toggle-theme';
|
|
22
|
+
@use '../../../slider/slider-theme';
|
|
23
|
+
@use '../../../snack-bar/snack-bar-theme';
|
|
24
|
+
@use '../../../stepper/stepper-theme';
|
|
25
|
+
@use '../../../table/table-theme';
|
|
26
|
+
@use '../../../tabs/tabs-theme';
|
|
27
|
+
@use '../../../toolbar/toolbar-theme';
|
|
28
|
+
@use '../../../tooltip/tooltip-theme';
|
|
29
|
+
@use '../../../tree/tree-theme';
|
|
30
|
+
@use '../../theming/inspection';
|
|
31
|
+
|
|
32
|
+
// Includes all of the density styles.
|
|
33
|
+
@mixin all-component-densities($theme) {
|
|
34
|
+
@if not inspection.theme-has($theme, density) {
|
|
35
|
+
@error 'No density configuration specified.';
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// TODO: COMP-309: Do not use individual mixins. Instead, use the all-theme mixin and only
|
|
39
|
+
// specify a `density` config while setting `color` and `typography` to `null`. This is currently
|
|
40
|
+
// not possible as it would introduce a circular dependency for density because the `mat-core`
|
|
41
|
+
// mixin that is transitively loaded by the `all-theme` file, imports `all-density` which
|
|
42
|
+
// would then load `all-theme` again. This ultimately results a circular dependency.
|
|
43
|
+
@include autocomplete-theme.density($theme);
|
|
44
|
+
@include button-theme.density($theme);
|
|
45
|
+
@include button-toggle-theme.density($theme);
|
|
46
|
+
@include card-theme.density($theme);
|
|
47
|
+
@include checkbox-theme.density($theme);
|
|
48
|
+
@include chips-theme.density($theme);
|
|
49
|
+
@include core-theme.density($theme);
|
|
50
|
+
@include dialog-theme.density($theme);
|
|
51
|
+
@include expansion-theme.density($theme);
|
|
52
|
+
@include fab-theme.density($theme);
|
|
53
|
+
@include form-field-theme.density($theme);
|
|
54
|
+
@include icon-button-theme.density($theme);
|
|
55
|
+
@include input-theme.density($theme);
|
|
56
|
+
@include list-theme.density($theme);
|
|
57
|
+
@include menu-theme.density($theme);
|
|
58
|
+
@include paginator-theme.density($theme);
|
|
59
|
+
@include progress-bar-theme.density($theme);
|
|
60
|
+
@include progress-spinner-theme.density($theme);
|
|
61
|
+
@include radio-theme.density($theme);
|
|
62
|
+
@include select-theme.density($theme);
|
|
63
|
+
@include slide-toggle-theme.density($theme);
|
|
64
|
+
@include slider-theme.density($theme);
|
|
65
|
+
@include snack-bar-theme.density($theme);
|
|
66
|
+
@include stepper-theme.density($theme);
|
|
67
|
+
@include table-theme.density($theme);
|
|
68
|
+
@include tabs-theme.density($theme);
|
|
69
|
+
@include toolbar-theme.density($theme);
|
|
70
|
+
@include tooltip-theme.density($theme);
|
|
71
|
+
@include tree-theme.density($theme);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
// @deprecated Use `all-component-densities`.
|
|
76
|
+
@mixin angular-material-density($theme) {
|
|
77
|
+
@include all-component-densities($theme);
|
|
78
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
@use '@angular/cdk';
|
|
4
|
+
@use '../style/layout-common';
|
|
5
|
+
@use '../theming/inspection';
|
|
6
|
+
|
|
7
|
+
// Private sass variables that will be used as reference throughout component stylesheets.
|
|
8
|
+
$default-border-width: 3px;
|
|
9
|
+
$default-border-style: solid;
|
|
10
|
+
$default-border-color: transparent;
|
|
11
|
+
$default-border-radius: 4px;
|
|
12
|
+
|
|
13
|
+
// Mixin that renders the focus indicator structural styles.
|
|
14
|
+
@mixin strong-focus-indicators-structure() {
|
|
15
|
+
.mat-focus-indicator {
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
&::before {
|
|
19
|
+
@include layout-common.fill();
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
display: var(--mat-focus-indicator-display, none); // Hide the indicator by default.
|
|
23
|
+
border-width: var(--mat-focus-indicator-border-width, #{$default-border-width});
|
|
24
|
+
border-style: var(--mat-focus-indicator-border-style, #{$default-border-style});
|
|
25
|
+
border-color: var(--mat-focus-indicator-border-color, #{$default-border-color});
|
|
26
|
+
border-radius: var(--mat-focus-indicator-border-radius, #{$default-border-radius});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// By default, render the focus indicator when the focus indicator host element takes focus.
|
|
30
|
+
// Defining a pseudo element's content will cause it to render.
|
|
31
|
+
&:focus-visible::before {
|
|
32
|
+
content: '';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Enable the indicator in high contrast mode.
|
|
37
|
+
@include cdk.high-contrast {
|
|
38
|
+
@include _customize-focus-indicators((display: block));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Generates CSS variable declarations from a map.
|
|
43
|
+
@mixin _output-variables($map) {
|
|
44
|
+
@each $key, $value in $map {
|
|
45
|
+
@if ($value) {
|
|
46
|
+
--#{$key}: #{$value};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Mixin that dedups CSS variables for the strong-focus-indicators mixin.
|
|
52
|
+
@mixin _customize-focus-indicators($config) {
|
|
53
|
+
$border-style: map.get($config, border-style);
|
|
54
|
+
$border-width: map.get($config, border-width);
|
|
55
|
+
$border-radius: map.get($config, border-radius);
|
|
56
|
+
$border-color: map.get($config, border-color);
|
|
57
|
+
$display: map.get($config, display);
|
|
58
|
+
$map: (
|
|
59
|
+
'mat-focus-indicator-border-style': $border-style,
|
|
60
|
+
'mat-focus-indicator-border-width': $border-width,
|
|
61
|
+
'mat-focus-indicator-border-radius': $border-radius,
|
|
62
|
+
'mat-focus-indicator-border-color': $border-color,
|
|
63
|
+
'mat-focus-indicator-display': $display,
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
@if (&) {
|
|
67
|
+
@include _output-variables($map);
|
|
68
|
+
}
|
|
69
|
+
@else {
|
|
70
|
+
// We use `html` here instead of `:root`, because the
|
|
71
|
+
// latter causes some issues with internal tooling.
|
|
72
|
+
html {
|
|
73
|
+
@include _output-variables($map);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin strong-focus-indicators($config: ()) {
|
|
79
|
+
// Default focus indicator config.
|
|
80
|
+
$default-config: (
|
|
81
|
+
border-color: var(--mat-sys-secondary, black),
|
|
82
|
+
display: block,
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
// Merge default config with user config.
|
|
86
|
+
$config: map.merge($default-config, $config);
|
|
87
|
+
|
|
88
|
+
@include _customize-focus-indicators($config);
|
|
89
|
+
|
|
90
|
+
// Strong focus indicators currently need chip labels to have overflow visible.
|
|
91
|
+
// TODO(b/446709063) revisit the structure to find a way to remove this dependency.
|
|
92
|
+
@include _chip-label-overflow-visible();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@mixin strong-focus-indicators-color($theme-or-color) {
|
|
96
|
+
@if meta.type-of($theme-or-color) == 'color' {
|
|
97
|
+
@include _customize-focus-indicators((border-color: $theme-or-color));
|
|
98
|
+
}
|
|
99
|
+
@else {
|
|
100
|
+
$border-color: inspection.get-theme-color($theme-or-color, primary);
|
|
101
|
+
@include _customize-focus-indicators((border-color: $border-color));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@mixin strong-focus-indicators-theme($theme-or-color) {
|
|
106
|
+
@if meta.type-of($theme-or-color) == 'color' {
|
|
107
|
+
@include _customize-focus-indicators((border-color: $theme-or-color));
|
|
108
|
+
}
|
|
109
|
+
@else {
|
|
110
|
+
@if inspection.theme-has($theme-or-color, color) {
|
|
111
|
+
@include strong-focus-indicators-color($theme-or-color);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@mixin _chip-label-overflow-visible {
|
|
117
|
+
.mat-mdc-standard-chip {
|
|
118
|
+
// MDC sets `overflow: hidden` on these elements in order to truncate the text. This conflicts
|
|
119
|
+
// with how we structure and style the strong focus indicators so we need to override it.
|
|
120
|
+
.mdc-evolution-chip__cell--primary,
|
|
121
|
+
.mdc-evolution-chip__action--primary,
|
|
122
|
+
.mat-mdc-chip-action-label {
|
|
123
|
+
overflow: visible;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// M2-specific theming APIs which are separated out into this file so they
|
|
2
|
+
// can be renamed conditionally depending on whether we're in 1P or 3P.
|
|
3
|
+
@forward './theming' show
|
|
4
|
+
define-light-theme,
|
|
5
|
+
define-dark-theme,
|
|
6
|
+
define-palette,
|
|
7
|
+
get-contrast-color-from-palette,
|
|
8
|
+
get-color-from-palette,
|
|
9
|
+
get-color-config,
|
|
10
|
+
get-typography-config,
|
|
11
|
+
get-density-config;
|
|
12
|
+
|
|
13
|
+
@forward './palette' show
|
|
14
|
+
$red-palette,
|
|
15
|
+
$pink-palette,
|
|
16
|
+
$indigo-palette,
|
|
17
|
+
$purple-palette,
|
|
18
|
+
$deep-purple-palette,
|
|
19
|
+
$blue-palette,
|
|
20
|
+
$light-blue-palette,
|
|
21
|
+
$cyan-palette,
|
|
22
|
+
$teal-palette,
|
|
23
|
+
$green-palette,
|
|
24
|
+
$light-green-palette,
|
|
25
|
+
$lime-palette,
|
|
26
|
+
$yellow-palette,
|
|
27
|
+
$amber-palette,
|
|
28
|
+
$orange-palette,
|
|
29
|
+
$deep-orange-palette,
|
|
30
|
+
$brown-palette,
|
|
31
|
+
$grey-palette,
|
|
32
|
+
$gray-palette,
|
|
33
|
+
$blue-grey-palette,
|
|
34
|
+
$blue-gray-palette,
|
|
35
|
+
$light-theme-background-palette,
|
|
36
|
+
$dark-theme-background-palette,
|
|
37
|
+
$light-theme-foreground-palette,
|
|
38
|
+
$dark-theme-foreground-palette;
|
|
39
|
+
|
|
40
|
+
@forward './typography' show
|
|
41
|
+
define-typography-level,
|
|
42
|
+
define-rem-typography-config,
|
|
43
|
+
define-typography-config,
|
|
44
|
+
define-legacy-typography-config;
|
|
45
|
+
|
|
46
|
+
@forward './typography-utils' show
|
|
47
|
+
typography-level,
|
|
48
|
+
font-size,
|
|
49
|
+
line-height,
|
|
50
|
+
font-weight,
|
|
51
|
+
letter-spacing,
|
|
52
|
+
font-family;
|