@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,68 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../core/theming/theming';
|
|
3
|
+
@use '../core/tokens/m2-utils';
|
|
4
|
+
@use '../core/tokens/m3-utils';
|
|
5
|
+
|
|
6
|
+
@function get-tokens($theme) {
|
|
7
|
+
$system: m2-utils.get-system($theme);
|
|
8
|
+
$density-scale: theming.clamp-density(map.get($system, density-scale), -4);
|
|
9
|
+
|
|
10
|
+
@return (
|
|
11
|
+
base: (
|
|
12
|
+
// This is specified both here and in the density tokens, because it determines the size of
|
|
13
|
+
// the tab itself and there are internal tests who don't configure the theme correctly.
|
|
14
|
+
tab-container-height: 48px,
|
|
15
|
+
tab-divider-color: transparent,
|
|
16
|
+
tab-divider-height: 0,
|
|
17
|
+
tab-active-indicator-height: 2px,
|
|
18
|
+
tab-active-indicator-shape: 0,
|
|
19
|
+
),
|
|
20
|
+
color: private-get-color-palette-color-tokens($theme, primary),
|
|
21
|
+
typography: (
|
|
22
|
+
tab-label-text-font: map.get($system, label-small-font),
|
|
23
|
+
tab-label-text-size: map.get($system, label-small-size),
|
|
24
|
+
tab-label-text-tracking: map.get($system, label-small-tracking),
|
|
25
|
+
tab-label-text-line-height: map.get($system, label-small-line-height),
|
|
26
|
+
tab-label-text-weight: map.get($system, label-small-weight),
|
|
27
|
+
),
|
|
28
|
+
density: (
|
|
29
|
+
tab-container-height: map.get((
|
|
30
|
+
0: 48px,
|
|
31
|
+
-1: 44px,
|
|
32
|
+
-2: 40px,
|
|
33
|
+
-3: 36px,
|
|
34
|
+
-4: 32px,
|
|
35
|
+
), $density-scale),
|
|
36
|
+
),
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Tokens that can be configured through Angular Material's color theming API.
|
|
41
|
+
@function private-get-color-palette-color-tokens($theme, $color-variant, $exclude: ()) {
|
|
42
|
+
$system: m2-utils.get-system($theme);
|
|
43
|
+
$system: m3-utils.replace-colors-with-variant($system, primary, $color-variant);
|
|
44
|
+
|
|
45
|
+
$tokens: (
|
|
46
|
+
tab-disabled-ripple-color: map.get($system, on-surface-variant),
|
|
47
|
+
tab-pagination-icon-color: map.get($system, on-surface),
|
|
48
|
+
tab-inactive-label-text-color: map.get($system, on-surface-variant),
|
|
49
|
+
tab-active-label-text-color: map.get($system, primary),
|
|
50
|
+
tab-active-ripple-color: map.get($system, primary),
|
|
51
|
+
tab-inactive-ripple-color: map.get($system, primary),
|
|
52
|
+
tab-inactive-focus-label-text-color: map.get($system, on-surface-variant),
|
|
53
|
+
tab-inactive-hover-label-text-color: map.get($system, on-surface-variant),
|
|
54
|
+
tab-active-focus-label-text-color: map.get($system, primary),
|
|
55
|
+
tab-active-hover-label-text-color: map.get($system, primary),
|
|
56
|
+
tab-active-focus-indicator-color: map.get($system, primary),
|
|
57
|
+
tab-active-hover-indicator-color: map.get($system, primary),
|
|
58
|
+
tab-active-indicator-color: map.get($system, primary),
|
|
59
|
+
tab-background-color: map.get($system, primary),
|
|
60
|
+
tab-foreground-color: map.get($system, on-primary),
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
@each $token in $exclude {
|
|
64
|
+
$tokens: map.remove($tokens, $token);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@return $tokens;
|
|
68
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use '../core/tokens/m3-utils';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use 'sass:list';
|
|
4
|
+
@use '../core/theming/theming';
|
|
5
|
+
@use '../core/tokens/m3';
|
|
6
|
+
|
|
7
|
+
/// Generates the tokens for MDC tab
|
|
8
|
+
/// @param {String} $color-variant The color variant to use for the component
|
|
9
|
+
@function get-tokens($theme: m3.$sys-theme, $color-variant: null) {
|
|
10
|
+
$system: m3-utils.get-system($theme);
|
|
11
|
+
@if $color-variant {
|
|
12
|
+
$system: m3-utils.replace-colors-with-variant($system, primary, $color-variant);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@return (
|
|
16
|
+
base: (
|
|
17
|
+
tab-active-indicator-height: 2px,
|
|
18
|
+
tab-active-indicator-shape: 0,
|
|
19
|
+
tab-divider-height: 1px,
|
|
20
|
+
),
|
|
21
|
+
color: (
|
|
22
|
+
tab-active-focus-indicator-color: map.get($system, primary),
|
|
23
|
+
tab-active-focus-label-text-color: map.get($system, on-surface),
|
|
24
|
+
tab-active-hover-indicator-color: map.get($system, primary),
|
|
25
|
+
tab-active-hover-label-text-color: map.get($system, on-surface),
|
|
26
|
+
tab-active-indicator-color: map.get($system, primary),
|
|
27
|
+
tab-active-label-text-color: map.get($system, on-surface),
|
|
28
|
+
tab-active-ripple-color: map.get($system, on-surface),
|
|
29
|
+
tab-divider-color: map.get($system, surface-variant),
|
|
30
|
+
tab-inactive-focus-label-text-color: map.get($system, on-surface),
|
|
31
|
+
tab-inactive-hover-label-text-color: map.get($system, on-surface),
|
|
32
|
+
tab-inactive-label-text-color: map.get($system, on-surface),
|
|
33
|
+
tab-inactive-ripple-color: map.get($system, on-surface),
|
|
34
|
+
tab-pagination-icon-color: map.get($system, on-surface),
|
|
35
|
+
tab-disabled-ripple-color: map.get($system, on-surface-variant),
|
|
36
|
+
tab-background-color: null,
|
|
37
|
+
tab-foreground-color: null,
|
|
38
|
+
),
|
|
39
|
+
typography: (
|
|
40
|
+
tab-label-text-font: map.get($system, title-small-font),
|
|
41
|
+
tab-label-text-line-height: map.get($system, title-small-line-height),
|
|
42
|
+
tab-label-text-size: map.get($system, title-small-size),
|
|
43
|
+
tab-label-text-tracking: map.get($system, title-small-tracking),
|
|
44
|
+
tab-label-text-weight: map.get($system, title-small-weight),
|
|
45
|
+
),
|
|
46
|
+
density: get-density-tokens(map.get($system, density-scale)),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Tokens that can be configured through Angular Material's density theming API.
|
|
51
|
+
@function get-density-tokens($scale) {
|
|
52
|
+
$scale: theming.clamp-density($scale, -4);
|
|
53
|
+
$index: ($scale * -1) + 1;
|
|
54
|
+
|
|
55
|
+
@return (
|
|
56
|
+
tab-container-height: list.nth((48px, 44px, 40px, 36px, 32px), $index),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@use './m2-tabs';
|
|
2
|
+
@use './m3-tabs';
|
|
3
|
+
@use '../core/theming/inspection';
|
|
4
|
+
@use '../core/typography/typography';
|
|
5
|
+
@use '../core/tokens/token-utils';
|
|
6
|
+
@use 'sass:map';
|
|
7
|
+
|
|
8
|
+
@mixin base($theme) {
|
|
9
|
+
$tokens: map.get(m2-tabs.get-tokens($theme), base);
|
|
10
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
11
|
+
$tokens: map.get(m3-tabs.get-tokens($theme), base);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include token-utils.values($tokens);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/// Outputs color theme styles for the mat-tab.
|
|
18
|
+
/// @param {Map} $theme The theme to generate color styles for.
|
|
19
|
+
/// @param {String} $color-variant The color variant to use for the component (M3 only)
|
|
20
|
+
@mixin color($theme, $color-variant: null) {
|
|
21
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
22
|
+
$tokens: map.get(m3-tabs.get-tokens($theme, $color-variant), color);
|
|
23
|
+
@include token-utils.values($tokens);
|
|
24
|
+
} @else {
|
|
25
|
+
.mat-mdc-tab-group,
|
|
26
|
+
.mat-mdc-tab-nav-bar {
|
|
27
|
+
@include token-utils.values(
|
|
28
|
+
m2-tabs.private-get-color-palette-color-tokens($theme, primary,
|
|
29
|
+
$exclude: (tab-background-color, tab-foreground-color)));
|
|
30
|
+
|
|
31
|
+
&.mat-accent {
|
|
32
|
+
@include token-utils.values(
|
|
33
|
+
m2-tabs.private-get-color-palette-color-tokens($theme, secondary,
|
|
34
|
+
$exclude: (tab-background-color, tab-foreground-color)));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.mat-warn {
|
|
38
|
+
@include token-utils.values(
|
|
39
|
+
m2-tabs.private-get-color-palette-color-tokens($theme, error,
|
|
40
|
+
$exclude: (tab-background-color, tab-foreground-color)));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.mat-background-primary {
|
|
44
|
+
$tokens: m2-tabs.private-get-color-palette-color-tokens($theme, primary);
|
|
45
|
+
@include token-utils.values((
|
|
46
|
+
tab-background-color: map.get($tokens, tab-background-color),
|
|
47
|
+
tab-foreground-color: map.get($tokens, tab-foreground-color)
|
|
48
|
+
));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.mat-background-accent {
|
|
52
|
+
$tokens: m2-tabs.private-get-color-palette-color-tokens($theme, secondary);
|
|
53
|
+
@include token-utils.values((
|
|
54
|
+
tab-background-color: map.get($tokens, tab-background-color),
|
|
55
|
+
tab-foreground-color: map.get($tokens, tab-foreground-color),
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.mat-background-warn {
|
|
60
|
+
$tokens: m2-tabs.private-get-color-palette-color-tokens($theme, error);
|
|
61
|
+
@include token-utils.values((
|
|
62
|
+
tab-background-color: map.get($tokens, tab-background-color),
|
|
63
|
+
tab-foreground-color: map.get($tokens, tab-foreground-color),
|
|
64
|
+
));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/// Outputs typography theme styles for the mat-tab.
|
|
71
|
+
/// @param {Map} $theme The theme to generate typography styles for.
|
|
72
|
+
@mixin typography($theme) {
|
|
73
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
74
|
+
@include token-utils.values(map.get(m3-tabs.get-tokens($theme), typography));
|
|
75
|
+
} @else {
|
|
76
|
+
.mat-mdc-tab-header {
|
|
77
|
+
@include token-utils.values(map.get(m2-tabs.get-tokens($theme), typography));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/// Outputs density theme styles for the mat-tab.
|
|
83
|
+
/// @param {Map} $theme The theme to generate density styles for.
|
|
84
|
+
@mixin density($theme) {
|
|
85
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
86
|
+
@include token-utils.values(map.get(m3-tabs.get-tokens($theme), density));
|
|
87
|
+
} @else {
|
|
88
|
+
.mat-mdc-tab-header {
|
|
89
|
+
@include token-utils.values(map.get(m2-tabs.get-tokens($theme), density));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
95
|
+
@function _define-overrides() {
|
|
96
|
+
@return (
|
|
97
|
+
(
|
|
98
|
+
namespace: tab,
|
|
99
|
+
tokens: token-utils.get-overrides(m3-tabs.get-tokens(), tab)
|
|
100
|
+
),
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/// Outputs the CSS variable values for the given tokens.
|
|
105
|
+
/// @param {Map} $tokens The token values to emit.
|
|
106
|
+
@mixin overrides($tokens: ()) {
|
|
107
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides());
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/// Outputs all (base, color, typography, and density) theme styles for the mat-tab.
|
|
111
|
+
/// @param {Map} $theme The theme to generate styles for.
|
|
112
|
+
/// @param {String} $color-variant The color variant to use for the component (M3 only)
|
|
113
|
+
@mixin theme($theme, $color-variant: null) {
|
|
114
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
115
|
+
@include base($theme);
|
|
116
|
+
@include color($theme, $color-variant);
|
|
117
|
+
@include density($theme);
|
|
118
|
+
@include typography($theme);
|
|
119
|
+
} @else {
|
|
120
|
+
@include base($theme);
|
|
121
|
+
@if inspection.theme-has($theme, color) {
|
|
122
|
+
@include color($theme);
|
|
123
|
+
}
|
|
124
|
+
@if inspection.theme-has($theme, density) {
|
|
125
|
+
@include density($theme);
|
|
126
|
+
}
|
|
127
|
+
@if inspection.theme-has($theme, typography) {
|
|
128
|
+
@include typography($theme);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use '../core/style/elevation';
|
|
2
|
+
@use '../core/tokens/m2-utils';
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
|
|
5
|
+
@function get-tokens($theme) {
|
|
6
|
+
$system: m2-utils.get-system($theme);
|
|
7
|
+
|
|
8
|
+
@return (
|
|
9
|
+
base: (
|
|
10
|
+
timepicker-container-shape: 4px,
|
|
11
|
+
timepicker-container-elevation-shadow: elevation.get-box-shadow(8),
|
|
12
|
+
),
|
|
13
|
+
color: (
|
|
14
|
+
timepicker-container-background-color: map.get($system, surface)
|
|
15
|
+
),
|
|
16
|
+
typography: (),
|
|
17
|
+
density: (),
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../core/style/elevation';
|
|
3
|
+
@use '../core/tokens/m3-utils';
|
|
4
|
+
@use '../core/tokens/m3';
|
|
5
|
+
|
|
6
|
+
/// Generates custom tokens for the mat-timepicker.
|
|
7
|
+
@function get-tokens($theme: m3.$sys-theme) {
|
|
8
|
+
$system: m3-utils.get-system($theme);
|
|
9
|
+
|
|
10
|
+
@return (
|
|
11
|
+
base: (
|
|
12
|
+
timepicker-container-shape: map.get($system, corner-extra-small),
|
|
13
|
+
),
|
|
14
|
+
color: (
|
|
15
|
+
timepicker-container-background-color: map.get($system, surface-container),
|
|
16
|
+
timepicker-container-elevation-shadow: elevation.get-box-shadow(2),
|
|
17
|
+
),
|
|
18
|
+
typography: (),
|
|
19
|
+
density: (),
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../core/theming/inspection';
|
|
3
|
+
@use '../core/typography/typography';
|
|
4
|
+
@use './m2-timepicker';
|
|
5
|
+
@use './m3-timepicker';
|
|
6
|
+
@use '../core/tokens/token-utils';
|
|
7
|
+
|
|
8
|
+
@mixin base($theme) {
|
|
9
|
+
$tokens: map.get(m2-timepicker.get-tokens($theme), base);
|
|
10
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
11
|
+
$tokens: map.get(m3-timepicker.get-tokens($theme), base);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include token-utils.values($tokens);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin color($theme) {
|
|
18
|
+
$tokens: map.get(m2-timepicker.get-tokens($theme), color);
|
|
19
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
20
|
+
$tokens: map.get(m3-timepicker.get-tokens($theme), color);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include token-utils.values($tokens);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin typography($theme) {
|
|
27
|
+
$tokens: map.get(m2-timepicker.get-tokens($theme), typography);
|
|
28
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
29
|
+
$tokens: map.get(m3-timepicker.get-tokens($theme), typography);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@include token-utils.values($tokens);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin density($theme) {
|
|
36
|
+
$tokens: map.get(m2-timepicker.get-tokens($theme), density);
|
|
37
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
38
|
+
$tokens: map.get(m3-timepicker.get-tokens($theme), density);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include token-utils.values($tokens);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
45
|
+
@function _define-overrides() {
|
|
46
|
+
@return (
|
|
47
|
+
(
|
|
48
|
+
namespace: timepicker,
|
|
49
|
+
tokens: token-utils.get-overrides(m3-timepicker.get-tokens(), timepicker)
|
|
50
|
+
),
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/// Outputs the CSS variable values for the given tokens.
|
|
55
|
+
/// @param {Map} $tokens The token values to emit.
|
|
56
|
+
@mixin overrides($tokens: ()) {
|
|
57
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides());
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/// Outputs all (base, color, typography, and density) theme styles for the mat-timepicker.
|
|
61
|
+
/// @param {Map} $theme The theme to generate styles for.
|
|
62
|
+
/// @param {String} $color-variant The color variant to use for the component
|
|
63
|
+
@mixin theme($theme, $color-variant: null) {
|
|
64
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
65
|
+
@include base($theme);
|
|
66
|
+
@include color($theme);
|
|
67
|
+
@include density($theme);
|
|
68
|
+
@include typography($theme);
|
|
69
|
+
} @else {
|
|
70
|
+
@include base($theme);
|
|
71
|
+
@if inspection.theme-has($theme, color) {
|
|
72
|
+
@include color($theme);
|
|
73
|
+
}
|
|
74
|
+
@if inspection.theme-has($theme, density) {
|
|
75
|
+
@include density($theme);
|
|
76
|
+
}
|
|
77
|
+
@if inspection.theme-has($theme, typography) {
|
|
78
|
+
@include typography($theme);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../core/theming/theming';
|
|
3
|
+
@use '../core/tokens/m2-utils';
|
|
4
|
+
|
|
5
|
+
@function get-tokens($theme) {
|
|
6
|
+
$system: m2-utils.get-system($theme);
|
|
7
|
+
$density-scale: theming.clamp-density(map.get($system, density-scale), -3);
|
|
8
|
+
|
|
9
|
+
@return (
|
|
10
|
+
base: (),
|
|
11
|
+
color: private-get-color-palette-color-tokens(
|
|
12
|
+
map.get($system, surface), map.get($system, on-surface)),
|
|
13
|
+
typography: (
|
|
14
|
+
toolbar-title-text-font: map.get($system, title-small-font),
|
|
15
|
+
toolbar-title-text-line-height: map.get($system, title-small-line-height),
|
|
16
|
+
toolbar-title-text-size: map.get($system, title-small-size),
|
|
17
|
+
toolbar-title-text-tracking: map.get($system, title-small-tracking),
|
|
18
|
+
toolbar-title-text-weight: map.get($system, title-small-weight),
|
|
19
|
+
),
|
|
20
|
+
density: (
|
|
21
|
+
toolbar-standard-height: map.get((
|
|
22
|
+
0: 64px,
|
|
23
|
+
-1: 60px,
|
|
24
|
+
-2: 56px,
|
|
25
|
+
-3: 52px,
|
|
26
|
+
), $density-scale),
|
|
27
|
+
toolbar-mobile-height: map.get((
|
|
28
|
+
0: 56px,
|
|
29
|
+
-1: 52px,
|
|
30
|
+
-2: 48px,
|
|
31
|
+
-3: 44px,
|
|
32
|
+
), $density-scale),
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Generates the tokens used to theme the toolbar based on a palette.
|
|
38
|
+
@function private-get-color-palette-color-tokens($background-color, $text-color) {
|
|
39
|
+
@return (
|
|
40
|
+
toolbar-container-background-color: $background-color,
|
|
41
|
+
toolbar-container-text-color: $text-color,
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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-toolbar.
|
|
8
|
+
/// @param {Map} $systems The MDC system tokens
|
|
9
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
10
|
+
/// @param {Map} $token-slots Possible token slots
|
|
11
|
+
/// @return {Map} A set of custom tokens for the mat-toolbar
|
|
12
|
+
@function get-tokens($theme: m3.$sys-theme) {
|
|
13
|
+
$system: m3-utils.get-system($theme);
|
|
14
|
+
|
|
15
|
+
@return (
|
|
16
|
+
base: (),
|
|
17
|
+
color: (
|
|
18
|
+
toolbar-container-background-color: map.get($system, surface),
|
|
19
|
+
toolbar-container-text-color: map.get($system, on-surface),
|
|
20
|
+
),
|
|
21
|
+
typography: (
|
|
22
|
+
toolbar-title-text-font: map.get($system, title-large-font),
|
|
23
|
+
toolbar-title-text-line-height: map.get($system, title-large-line-height),
|
|
24
|
+
toolbar-title-text-size: map.get($system, title-large-size),
|
|
25
|
+
toolbar-title-text-tracking: map.get($system, title-large-tracking),
|
|
26
|
+
toolbar-title-text-weight: map.get($system, title-large-weight),
|
|
27
|
+
),
|
|
28
|
+
density: get-density-tokens(map.get($system, density-scale)),
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Tokens that can be configured through Angular Material's density theming API.
|
|
33
|
+
@function get-density-tokens($scale) {
|
|
34
|
+
$scale: theming.clamp-density($scale, -3);
|
|
35
|
+
$index: ($scale * -1) + 1;
|
|
36
|
+
|
|
37
|
+
@return (
|
|
38
|
+
toolbar-standard-height: list.nth((64px, 60px, 56px, 52px), $index),
|
|
39
|
+
toolbar-mobile-height: list.nth((56px, 52px, 48px, 44px), $index),
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../core/theming/inspection';
|
|
3
|
+
@use '../core/tokens/token-utils';
|
|
4
|
+
@use '../core/typography/typography';
|
|
5
|
+
@use './m2-toolbar';
|
|
6
|
+
@use './m3-toolbar';
|
|
7
|
+
|
|
8
|
+
@mixin _palette-styles($theme, $palette-name) {
|
|
9
|
+
$tokens: m2-toolbar.private-get-color-palette-color-tokens(
|
|
10
|
+
$background-color: inspection.get-theme-color($theme, $palette-name),
|
|
11
|
+
$text-color: inspection.get-theme-color($theme, $palette-name, default-contrast)
|
|
12
|
+
);
|
|
13
|
+
@include token-utils.values($tokens);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin base($theme) {
|
|
17
|
+
$tokens: map.get(m2-toolbar.get-tokens($theme), base);
|
|
18
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
19
|
+
$tokens: map.get(m3-toolbar.get-tokens($theme), base);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include token-utils.values($tokens);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin color($theme) {
|
|
26
|
+
$tokens: map.get(m2-toolbar.get-tokens($theme), color);
|
|
27
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
28
|
+
$tokens: map.get(m3-toolbar.get-tokens($theme), color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include token-utils.values($tokens);
|
|
32
|
+
|
|
33
|
+
@if inspection.get-theme-version($theme) != 1 {
|
|
34
|
+
.mat-toolbar {
|
|
35
|
+
&.mat-primary {
|
|
36
|
+
$tokens: m2-toolbar.private-get-color-palette-color-tokens(
|
|
37
|
+
$background-color: inspection.get-theme-color($theme, primary),
|
|
38
|
+
$text-color: inspection.get-theme-color($theme, primary, default-contrast)
|
|
39
|
+
);
|
|
40
|
+
@include token-utils.values($tokens);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.mat-accent {
|
|
44
|
+
$tokens: m2-toolbar.private-get-color-palette-color-tokens(
|
|
45
|
+
$background-color: inspection.get-theme-color($theme, accent),
|
|
46
|
+
$text-color: inspection.get-theme-color($theme, accent, default-contrast)
|
|
47
|
+
);
|
|
48
|
+
@include token-utils.values($tokens);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.mat-warn {
|
|
52
|
+
$tokens: m2-toolbar.private-get-color-palette-color-tokens(
|
|
53
|
+
$background-color: inspection.get-theme-color($theme, warn),
|
|
54
|
+
$text-color: inspection.get-theme-color($theme, warn, default-contrast)
|
|
55
|
+
);
|
|
56
|
+
@include token-utils.values($tokens);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@mixin typography($theme) {
|
|
63
|
+
$tokens: map.get(m2-toolbar.get-tokens($theme), typography);
|
|
64
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
65
|
+
$tokens: map.get(m3-toolbar.get-tokens($theme), typography);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@include token-utils.values($tokens);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@mixin density($theme) {
|
|
72
|
+
$tokens: map.get(m2-toolbar.get-tokens($theme), density);
|
|
73
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
74
|
+
$tokens: map.get(m3-toolbar.get-tokens($theme), density);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@include token-utils.values($tokens);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
81
|
+
@function _define-overrides() {
|
|
82
|
+
@return (
|
|
83
|
+
(
|
|
84
|
+
namespace: toolbar,
|
|
85
|
+
tokens: token-utils.get-overrides(m3-toolbar.get-tokens(), toolbar)
|
|
86
|
+
),
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/// Outputs the CSS variable values for the given tokens.
|
|
91
|
+
/// @param {Map} $tokens The token values to emit.
|
|
92
|
+
@mixin overrides($tokens: ()) {
|
|
93
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides());
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@mixin theme($theme) {
|
|
97
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
98
|
+
@include base($theme);
|
|
99
|
+
@include color($theme);
|
|
100
|
+
@include density($theme);
|
|
101
|
+
@include typography($theme);
|
|
102
|
+
} @else {
|
|
103
|
+
@include base($theme);
|
|
104
|
+
@if inspection.theme-has($theme, color) {
|
|
105
|
+
@include color($theme);
|
|
106
|
+
}
|
|
107
|
+
@if inspection.theme-has($theme, density) {
|
|
108
|
+
@include density($theme);
|
|
109
|
+
}
|
|
110
|
+
@if inspection.theme-has($theme, typography) {
|
|
111
|
+
@include typography($theme);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use '../core/tokens/m2-utils';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@function get-tokens($theme) {
|
|
5
|
+
$system: m2-utils.get-system($theme);
|
|
6
|
+
|
|
7
|
+
@return (
|
|
8
|
+
base: (
|
|
9
|
+
tooltip-container-shape: 4px,
|
|
10
|
+
tooltip-supporting-text-line-height: 16px,
|
|
11
|
+
),
|
|
12
|
+
color: (
|
|
13
|
+
tooltip-container-color: map.get($system, inverse-surface),
|
|
14
|
+
tooltip-supporting-text-color: map.get($system, inverse-on-surface),
|
|
15
|
+
),
|
|
16
|
+
typography: (
|
|
17
|
+
tooltip-supporting-text-font: map.get($system, body-small-font),
|
|
18
|
+
tooltip-supporting-text-size: map.get($system, body-small-size),
|
|
19
|
+
tooltip-supporting-text-weight: map.get($system, body-small-weight),
|
|
20
|
+
tooltip-supporting-text-tracking: map.get($system, body-small-tracking),
|
|
21
|
+
),
|
|
22
|
+
density: (),
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use '../core/tokens/m3-utils';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../core/tokens/m3';
|
|
4
|
+
|
|
5
|
+
/// Generates the tokens for MDC plain-tooltip
|
|
6
|
+
@function get-tokens($theme: m3.$sys-theme) {
|
|
7
|
+
$system: m3-utils.get-system($theme);
|
|
8
|
+
|
|
9
|
+
@return (
|
|
10
|
+
base: (),
|
|
11
|
+
color: (
|
|
12
|
+
tooltip-container-color: map.get($system, inverse-surface),
|
|
13
|
+
tooltip-container-shape: map.get($system, corner-extra-small),
|
|
14
|
+
tooltip-supporting-text-color: map.get($system, inverse-on-surface),
|
|
15
|
+
),
|
|
16
|
+
typography: (
|
|
17
|
+
tooltip-supporting-text-font: map.get($system, body-small-font),
|
|
18
|
+
tooltip-supporting-text-line-height: map.get($system, body-small-line-height),
|
|
19
|
+
tooltip-supporting-text-size: map.get($system, body-small-size),
|
|
20
|
+
tooltip-supporting-text-tracking: map.get($system, body-small-tracking),
|
|
21
|
+
tooltip-supporting-text-weight: map.get($system, body-small-weight)
|
|
22
|
+
),
|
|
23
|
+
density: (),
|
|
24
|
+
);
|
|
25
|
+
}
|