@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,900 @@
|
|
|
1
|
+
import { BidiModule } from '@angular/cdk/bidi';
|
|
2
|
+
import { TemplatePortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
|
|
3
|
+
import { CdkStepLabel, CdkStepHeader, CdkStep, CdkStepper, CdkStepperNext, CdkStepperPrevious, CdkStepperModule } from '@angular/cdk/stepper';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Directive, Injectable, inject, ChangeDetectorRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, TemplateRef, ViewContainerRef, ContentChild, NgZone, Renderer2, signal, QueryList, EventEmitter, input, ElementRef, ViewChildren, ContentChildren, Output, NgModule } from '@angular/core';
|
|
6
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
7
|
+
import { Subject, Subscription } from 'rxjs';
|
|
8
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
9
|
+
import { _CdkPrivateStyleLoader, _VisuallyHiddenLoader } from '@angular/cdk/private';
|
|
10
|
+
import { MatIcon, MatIconModule } from './icon.mjs';
|
|
11
|
+
import { _StructuralStylesLoader } from './_structural-styles-chunk.mjs';
|
|
12
|
+
import { MatRipple } from './_ripple-chunk.mjs';
|
|
13
|
+
import { Platform } from '@angular/cdk/platform';
|
|
14
|
+
import { switchMap, map, startWith, takeUntil } from 'rxjs/operators';
|
|
15
|
+
import { ErrorStateMatcher } from './_error-options-chunk.mjs';
|
|
16
|
+
import { _animationsDisabled } from './_animation-chunk.mjs';
|
|
17
|
+
import { MatRippleModule } from './_ripple-module-chunk.mjs';
|
|
18
|
+
import './_icon-registry-chunk.mjs';
|
|
19
|
+
import '@angular/common/http';
|
|
20
|
+
import '@angular/platform-browser';
|
|
21
|
+
import '@angular/cdk/coercion';
|
|
22
|
+
import '@angular/cdk/layout';
|
|
23
|
+
|
|
24
|
+
class MatStepLabel extends CdkStepLabel {
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "22.0.0-next.1",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: MatStepLabel,
|
|
30
|
+
deps: null,
|
|
31
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
32
|
+
});
|
|
33
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
34
|
+
minVersion: "14.0.0",
|
|
35
|
+
version: "22.0.0-next.1",
|
|
36
|
+
type: MatStepLabel,
|
|
37
|
+
isStandalone: true,
|
|
38
|
+
selector: "[matStepLabel]",
|
|
39
|
+
usesInheritance: true,
|
|
40
|
+
ngImport: i0
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
44
|
+
minVersion: "12.0.0",
|
|
45
|
+
version: "22.0.0-next.1",
|
|
46
|
+
ngImport: i0,
|
|
47
|
+
type: MatStepLabel,
|
|
48
|
+
decorators: [{
|
|
49
|
+
type: Directive,
|
|
50
|
+
args: [{
|
|
51
|
+
selector: '[matStepLabel]'
|
|
52
|
+
}]
|
|
53
|
+
}]
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
class MatStepperIntl {
|
|
57
|
+
changes = new Subject();
|
|
58
|
+
optionalLabel = 'Optional';
|
|
59
|
+
completedLabel = 'Completed';
|
|
60
|
+
editableLabel = 'Editable';
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
62
|
+
minVersion: "12.0.0",
|
|
63
|
+
version: "22.0.0-next.1",
|
|
64
|
+
ngImport: i0,
|
|
65
|
+
type: MatStepperIntl,
|
|
66
|
+
deps: [],
|
|
67
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
68
|
+
});
|
|
69
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
70
|
+
minVersion: "12.0.0",
|
|
71
|
+
version: "22.0.0-next.1",
|
|
72
|
+
ngImport: i0,
|
|
73
|
+
type: MatStepperIntl,
|
|
74
|
+
providedIn: 'root'
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
78
|
+
minVersion: "12.0.0",
|
|
79
|
+
version: "22.0.0-next.1",
|
|
80
|
+
ngImport: i0,
|
|
81
|
+
type: MatStepperIntl,
|
|
82
|
+
decorators: [{
|
|
83
|
+
type: Injectable,
|
|
84
|
+
args: [{
|
|
85
|
+
providedIn: 'root'
|
|
86
|
+
}]
|
|
87
|
+
}]
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
class MatStepHeader extends CdkStepHeader {
|
|
91
|
+
_intl = inject(MatStepperIntl);
|
|
92
|
+
_focusMonitor = inject(FocusMonitor);
|
|
93
|
+
_intlSubscription;
|
|
94
|
+
state;
|
|
95
|
+
label;
|
|
96
|
+
errorMessage;
|
|
97
|
+
iconOverrides;
|
|
98
|
+
index;
|
|
99
|
+
selected = false;
|
|
100
|
+
active = false;
|
|
101
|
+
optional = false;
|
|
102
|
+
disableRipple = false;
|
|
103
|
+
color;
|
|
104
|
+
constructor() {
|
|
105
|
+
super();
|
|
106
|
+
const styleLoader = inject(_CdkPrivateStyleLoader);
|
|
107
|
+
styleLoader.load(_StructuralStylesLoader);
|
|
108
|
+
styleLoader.load(_VisuallyHiddenLoader);
|
|
109
|
+
const changeDetectorRef = inject(ChangeDetectorRef);
|
|
110
|
+
this._intlSubscription = this._intl.changes.subscribe(() => changeDetectorRef.markForCheck());
|
|
111
|
+
}
|
|
112
|
+
ngAfterViewInit() {
|
|
113
|
+
this._focusMonitor.monitor(this._elementRef, true);
|
|
114
|
+
}
|
|
115
|
+
ngOnDestroy() {
|
|
116
|
+
this._intlSubscription.unsubscribe();
|
|
117
|
+
this._focusMonitor.stopMonitoring(this._elementRef);
|
|
118
|
+
}
|
|
119
|
+
focus(origin, options) {
|
|
120
|
+
if (origin) {
|
|
121
|
+
this._focusMonitor.focusVia(this._elementRef, origin, options);
|
|
122
|
+
} else {
|
|
123
|
+
this._elementRef.nativeElement.focus(options);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
_stringLabel() {
|
|
127
|
+
return this.label instanceof MatStepLabel ? null : this.label;
|
|
128
|
+
}
|
|
129
|
+
_templateLabel() {
|
|
130
|
+
return this.label instanceof MatStepLabel ? this.label : null;
|
|
131
|
+
}
|
|
132
|
+
_getHostElement() {
|
|
133
|
+
return this._elementRef.nativeElement;
|
|
134
|
+
}
|
|
135
|
+
_getDefaultTextForState(state) {
|
|
136
|
+
if (state == 'number') {
|
|
137
|
+
return `${this.index + 1}`;
|
|
138
|
+
}
|
|
139
|
+
if (state == 'edit') {
|
|
140
|
+
return 'create';
|
|
141
|
+
}
|
|
142
|
+
if (state == 'error') {
|
|
143
|
+
return 'warning';
|
|
144
|
+
}
|
|
145
|
+
return state;
|
|
146
|
+
}
|
|
147
|
+
_hasEmptyLabel() {
|
|
148
|
+
return !this._stringLabel() && !this._templateLabel() && !this._hasOptionalLabel() && !this._hasErrorLabel();
|
|
149
|
+
}
|
|
150
|
+
_hasOptionalLabel() {
|
|
151
|
+
return this.optional && this.state !== 'error';
|
|
152
|
+
}
|
|
153
|
+
_hasErrorLabel() {
|
|
154
|
+
return this.state === 'error';
|
|
155
|
+
}
|
|
156
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
157
|
+
minVersion: "12.0.0",
|
|
158
|
+
version: "22.0.0-next.1",
|
|
159
|
+
ngImport: i0,
|
|
160
|
+
type: MatStepHeader,
|
|
161
|
+
deps: [],
|
|
162
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
163
|
+
});
|
|
164
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
165
|
+
minVersion: "17.0.0",
|
|
166
|
+
version: "22.0.0-next.1",
|
|
167
|
+
type: MatStepHeader,
|
|
168
|
+
isStandalone: true,
|
|
169
|
+
selector: "mat-step-header",
|
|
170
|
+
inputs: {
|
|
171
|
+
state: "state",
|
|
172
|
+
label: "label",
|
|
173
|
+
errorMessage: "errorMessage",
|
|
174
|
+
iconOverrides: "iconOverrides",
|
|
175
|
+
index: "index",
|
|
176
|
+
selected: "selected",
|
|
177
|
+
active: "active",
|
|
178
|
+
optional: "optional",
|
|
179
|
+
disableRipple: "disableRipple",
|
|
180
|
+
color: "color"
|
|
181
|
+
},
|
|
182
|
+
host: {
|
|
183
|
+
attributes: {
|
|
184
|
+
"role": ""
|
|
185
|
+
},
|
|
186
|
+
properties: {
|
|
187
|
+
"class.mat-step-header-empty-label": "_hasEmptyLabel()",
|
|
188
|
+
"class": "\"mat-\" + (color || \"primary\")"
|
|
189
|
+
},
|
|
190
|
+
classAttribute: "mat-step-header"
|
|
191
|
+
},
|
|
192
|
+
usesInheritance: true,
|
|
193
|
+
ngImport: i0,
|
|
194
|
+
template: "<div class=\"mat-step-header-ripple mat-focus-indicator\" matRipple\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"disableRipple\"></div>\n\n<div class=\"mat-step-icon-state-{{state}} mat-step-icon\" [class.mat-step-icon-selected]=\"selected\">\n <div class=\"mat-step-icon-content\">\n @if (iconOverrides && iconOverrides[state]) {\n <ng-container\n [ngTemplateOutlet]=\"iconOverrides[state]\"\n [ngTemplateOutletContext]=\"{index, active, optional}\"></ng-container>\n } @else {\n @switch (state) {\n @case ('number') {\n <span aria-hidden=\"true\">{{_getDefaultTextForState(state)}}</span>\n }\n\n @default {\n @if (state === 'done') {\n <span class=\"cdk-visually-hidden\">{{_intl.completedLabel}}</span>\n } @else if (state === 'edit') {\n <span class=\"cdk-visually-hidden\">{{_intl.editableLabel}}</span>\n }\n\n <mat-icon aria-hidden=\"true\">{{_getDefaultTextForState(state)}}</mat-icon>\n }\n }\n }\n </div>\n</div>\n<div class=\"mat-step-label\"\n [class.mat-step-label-active]=\"active\"\n [class.mat-step-label-selected]=\"selected\"\n [class.mat-step-label-error]=\"state == 'error'\">\n @if (_templateLabel(); as templateLabel) {\n <!-- If there is a label template, use it. -->\n <div class=\"mat-step-text-label\">\n <ng-container [ngTemplateOutlet]=\"templateLabel.template\"></ng-container>\n </div>\n } @else if (_stringLabel()) {\n <!-- If there is no label template, fall back to the text label. -->\n <div class=\"mat-step-text-label\">{{label}}</div>\n }\n\n @if (_hasOptionalLabel()) {\n <div class=\"mat-step-optional\">{{_intl.optionalLabel}}</div>\n }\n\n @if (_hasErrorLabel()) {\n <div class=\"mat-step-sub-label-error\">{{errorMessage}}</div>\n }\n</div>\n\n",
|
|
195
|
+
styles: [".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus-visible .mat-focus-indicator::before{content:\"\"}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}\n"],
|
|
196
|
+
dependencies: [{
|
|
197
|
+
kind: "directive",
|
|
198
|
+
type: MatRipple,
|
|
199
|
+
selector: "[mat-ripple], [matRipple]",
|
|
200
|
+
inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"],
|
|
201
|
+
exportAs: ["matRipple"]
|
|
202
|
+
}, {
|
|
203
|
+
kind: "directive",
|
|
204
|
+
type: NgTemplateOutlet,
|
|
205
|
+
selector: "[ngTemplateOutlet]",
|
|
206
|
+
inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"]
|
|
207
|
+
}, {
|
|
208
|
+
kind: "component",
|
|
209
|
+
type: MatIcon,
|
|
210
|
+
selector: "mat-icon",
|
|
211
|
+
inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"],
|
|
212
|
+
exportAs: ["matIcon"]
|
|
213
|
+
}],
|
|
214
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
215
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
219
|
+
minVersion: "12.0.0",
|
|
220
|
+
version: "22.0.0-next.1",
|
|
221
|
+
ngImport: i0,
|
|
222
|
+
type: MatStepHeader,
|
|
223
|
+
decorators: [{
|
|
224
|
+
type: Component,
|
|
225
|
+
args: [{
|
|
226
|
+
selector: 'mat-step-header',
|
|
227
|
+
host: {
|
|
228
|
+
'class': 'mat-step-header',
|
|
229
|
+
'[class.mat-step-header-empty-label]': '_hasEmptyLabel()',
|
|
230
|
+
'[class]': '"mat-" + (color || "primary")',
|
|
231
|
+
'role': ''
|
|
232
|
+
},
|
|
233
|
+
encapsulation: ViewEncapsulation.None,
|
|
234
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
235
|
+
imports: [MatRipple, NgTemplateOutlet, MatIcon],
|
|
236
|
+
template: "<div class=\"mat-step-header-ripple mat-focus-indicator\" matRipple\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"disableRipple\"></div>\n\n<div class=\"mat-step-icon-state-{{state}} mat-step-icon\" [class.mat-step-icon-selected]=\"selected\">\n <div class=\"mat-step-icon-content\">\n @if (iconOverrides && iconOverrides[state]) {\n <ng-container\n [ngTemplateOutlet]=\"iconOverrides[state]\"\n [ngTemplateOutletContext]=\"{index, active, optional}\"></ng-container>\n } @else {\n @switch (state) {\n @case ('number') {\n <span aria-hidden=\"true\">{{_getDefaultTextForState(state)}}</span>\n }\n\n @default {\n @if (state === 'done') {\n <span class=\"cdk-visually-hidden\">{{_intl.completedLabel}}</span>\n } @else if (state === 'edit') {\n <span class=\"cdk-visually-hidden\">{{_intl.editableLabel}}</span>\n }\n\n <mat-icon aria-hidden=\"true\">{{_getDefaultTextForState(state)}}</mat-icon>\n }\n }\n }\n </div>\n</div>\n<div class=\"mat-step-label\"\n [class.mat-step-label-active]=\"active\"\n [class.mat-step-label-selected]=\"selected\"\n [class.mat-step-label-error]=\"state == 'error'\">\n @if (_templateLabel(); as templateLabel) {\n <!-- If there is a label template, use it. -->\n <div class=\"mat-step-text-label\">\n <ng-container [ngTemplateOutlet]=\"templateLabel.template\"></ng-container>\n </div>\n } @else if (_stringLabel()) {\n <!-- If there is no label template, fall back to the text label. -->\n <div class=\"mat-step-text-label\">{{label}}</div>\n }\n\n @if (_hasOptionalLabel()) {\n <div class=\"mat-step-optional\">{{_intl.optionalLabel}}</div>\n }\n\n @if (_hasErrorLabel()) {\n <div class=\"mat-step-sub-label-error\">{{errorMessage}}</div>\n }\n</div>\n\n",
|
|
237
|
+
styles: [".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus-visible .mat-focus-indicator::before{content:\"\"}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}\n"]
|
|
238
|
+
}]
|
|
239
|
+
}],
|
|
240
|
+
ctorParameters: () => [],
|
|
241
|
+
propDecorators: {
|
|
242
|
+
state: [{
|
|
243
|
+
type: Input
|
|
244
|
+
}],
|
|
245
|
+
label: [{
|
|
246
|
+
type: Input
|
|
247
|
+
}],
|
|
248
|
+
errorMessage: [{
|
|
249
|
+
type: Input
|
|
250
|
+
}],
|
|
251
|
+
iconOverrides: [{
|
|
252
|
+
type: Input
|
|
253
|
+
}],
|
|
254
|
+
index: [{
|
|
255
|
+
type: Input
|
|
256
|
+
}],
|
|
257
|
+
selected: [{
|
|
258
|
+
type: Input
|
|
259
|
+
}],
|
|
260
|
+
active: [{
|
|
261
|
+
type: Input
|
|
262
|
+
}],
|
|
263
|
+
optional: [{
|
|
264
|
+
type: Input
|
|
265
|
+
}],
|
|
266
|
+
disableRipple: [{
|
|
267
|
+
type: Input
|
|
268
|
+
}],
|
|
269
|
+
color: [{
|
|
270
|
+
type: Input
|
|
271
|
+
}]
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
class MatStepperIcon {
|
|
276
|
+
templateRef = inject(TemplateRef);
|
|
277
|
+
name;
|
|
278
|
+
constructor() {}
|
|
279
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
280
|
+
minVersion: "12.0.0",
|
|
281
|
+
version: "22.0.0-next.1",
|
|
282
|
+
ngImport: i0,
|
|
283
|
+
type: MatStepperIcon,
|
|
284
|
+
deps: [],
|
|
285
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
286
|
+
});
|
|
287
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
288
|
+
minVersion: "14.0.0",
|
|
289
|
+
version: "22.0.0-next.1",
|
|
290
|
+
type: MatStepperIcon,
|
|
291
|
+
isStandalone: true,
|
|
292
|
+
selector: "ng-template[matStepperIcon]",
|
|
293
|
+
inputs: {
|
|
294
|
+
name: ["matStepperIcon", "name"]
|
|
295
|
+
},
|
|
296
|
+
ngImport: i0
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
300
|
+
minVersion: "12.0.0",
|
|
301
|
+
version: "22.0.0-next.1",
|
|
302
|
+
ngImport: i0,
|
|
303
|
+
type: MatStepperIcon,
|
|
304
|
+
decorators: [{
|
|
305
|
+
type: Directive,
|
|
306
|
+
args: [{
|
|
307
|
+
selector: 'ng-template[matStepperIcon]'
|
|
308
|
+
}]
|
|
309
|
+
}],
|
|
310
|
+
ctorParameters: () => [],
|
|
311
|
+
propDecorators: {
|
|
312
|
+
name: [{
|
|
313
|
+
type: Input,
|
|
314
|
+
args: ['matStepperIcon']
|
|
315
|
+
}]
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
|
|
319
|
+
class MatStepContent {
|
|
320
|
+
_template = inject(TemplateRef);
|
|
321
|
+
constructor() {}
|
|
322
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
323
|
+
minVersion: "12.0.0",
|
|
324
|
+
version: "22.0.0-next.1",
|
|
325
|
+
ngImport: i0,
|
|
326
|
+
type: MatStepContent,
|
|
327
|
+
deps: [],
|
|
328
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
329
|
+
});
|
|
330
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
331
|
+
minVersion: "14.0.0",
|
|
332
|
+
version: "22.0.0-next.1",
|
|
333
|
+
type: MatStepContent,
|
|
334
|
+
isStandalone: true,
|
|
335
|
+
selector: "ng-template[matStepContent]",
|
|
336
|
+
ngImport: i0
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
340
|
+
minVersion: "12.0.0",
|
|
341
|
+
version: "22.0.0-next.1",
|
|
342
|
+
ngImport: i0,
|
|
343
|
+
type: MatStepContent,
|
|
344
|
+
decorators: [{
|
|
345
|
+
type: Directive,
|
|
346
|
+
args: [{
|
|
347
|
+
selector: 'ng-template[matStepContent]'
|
|
348
|
+
}]
|
|
349
|
+
}],
|
|
350
|
+
ctorParameters: () => []
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
class MatStep extends CdkStep {
|
|
354
|
+
_errorStateMatcher = inject(ErrorStateMatcher, {
|
|
355
|
+
skipSelf: true
|
|
356
|
+
});
|
|
357
|
+
_viewContainerRef = inject(ViewContainerRef);
|
|
358
|
+
_isSelected = Subscription.EMPTY;
|
|
359
|
+
stepLabel = undefined;
|
|
360
|
+
color;
|
|
361
|
+
_lazyContent;
|
|
362
|
+
_portal;
|
|
363
|
+
ngAfterContentInit() {
|
|
364
|
+
this._isSelected = this._stepper.steps.changes.pipe(switchMap(() => {
|
|
365
|
+
return this._stepper.selectionChange.pipe(map(event => event.selectedStep === this), startWith(this._stepper.selected === this));
|
|
366
|
+
})).subscribe(isSelected => {
|
|
367
|
+
if (isSelected && this._lazyContent && !this._portal) {
|
|
368
|
+
this._portal = new TemplatePortal(this._lazyContent._template, this._viewContainerRef);
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
ngOnDestroy() {
|
|
373
|
+
this._isSelected.unsubscribe();
|
|
374
|
+
}
|
|
375
|
+
isErrorState(control, form) {
|
|
376
|
+
const originalErrorState = this._errorStateMatcher.isErrorState(control, form);
|
|
377
|
+
const customErrorState = !!(control && control.invalid && this.interacted);
|
|
378
|
+
return originalErrorState || customErrorState;
|
|
379
|
+
}
|
|
380
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
381
|
+
minVersion: "12.0.0",
|
|
382
|
+
version: "22.0.0-next.1",
|
|
383
|
+
ngImport: i0,
|
|
384
|
+
type: MatStep,
|
|
385
|
+
deps: null,
|
|
386
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
387
|
+
});
|
|
388
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
389
|
+
minVersion: "14.0.0",
|
|
390
|
+
version: "22.0.0-next.1",
|
|
391
|
+
type: MatStep,
|
|
392
|
+
isStandalone: true,
|
|
393
|
+
selector: "mat-step",
|
|
394
|
+
inputs: {
|
|
395
|
+
color: "color"
|
|
396
|
+
},
|
|
397
|
+
host: {
|
|
398
|
+
attributes: {
|
|
399
|
+
"hidden": ""
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
providers: [{
|
|
403
|
+
provide: ErrorStateMatcher,
|
|
404
|
+
useExisting: MatStep
|
|
405
|
+
}, {
|
|
406
|
+
provide: CdkStep,
|
|
407
|
+
useExisting: MatStep
|
|
408
|
+
}],
|
|
409
|
+
queries: [{
|
|
410
|
+
propertyName: "stepLabel",
|
|
411
|
+
first: true,
|
|
412
|
+
predicate: MatStepLabel,
|
|
413
|
+
descendants: true
|
|
414
|
+
}, {
|
|
415
|
+
propertyName: "_lazyContent",
|
|
416
|
+
first: true,
|
|
417
|
+
predicate: MatStepContent,
|
|
418
|
+
descendants: true
|
|
419
|
+
}],
|
|
420
|
+
exportAs: ["matStep"],
|
|
421
|
+
usesInheritance: true,
|
|
422
|
+
ngImport: i0,
|
|
423
|
+
template: "<ng-template>\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"_portal\"></ng-template>\n</ng-template>\n",
|
|
424
|
+
dependencies: [{
|
|
425
|
+
kind: "directive",
|
|
426
|
+
type: CdkPortalOutlet,
|
|
427
|
+
selector: "[cdkPortalOutlet]",
|
|
428
|
+
inputs: ["cdkPortalOutlet"],
|
|
429
|
+
outputs: ["attached"],
|
|
430
|
+
exportAs: ["cdkPortalOutlet"]
|
|
431
|
+
}],
|
|
432
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
433
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
437
|
+
minVersion: "12.0.0",
|
|
438
|
+
version: "22.0.0-next.1",
|
|
439
|
+
ngImport: i0,
|
|
440
|
+
type: MatStep,
|
|
441
|
+
decorators: [{
|
|
442
|
+
type: Component,
|
|
443
|
+
args: [{
|
|
444
|
+
selector: 'mat-step',
|
|
445
|
+
providers: [{
|
|
446
|
+
provide: ErrorStateMatcher,
|
|
447
|
+
useExisting: MatStep
|
|
448
|
+
}, {
|
|
449
|
+
provide: CdkStep,
|
|
450
|
+
useExisting: MatStep
|
|
451
|
+
}],
|
|
452
|
+
encapsulation: ViewEncapsulation.None,
|
|
453
|
+
exportAs: 'matStep',
|
|
454
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
455
|
+
imports: [CdkPortalOutlet],
|
|
456
|
+
host: {
|
|
457
|
+
'hidden': ''
|
|
458
|
+
},
|
|
459
|
+
template: "<ng-template>\n <ng-content></ng-content>\n <ng-template [cdkPortalOutlet]=\"_portal\"></ng-template>\n</ng-template>\n"
|
|
460
|
+
}]
|
|
461
|
+
}],
|
|
462
|
+
propDecorators: {
|
|
463
|
+
stepLabel: [{
|
|
464
|
+
type: ContentChild,
|
|
465
|
+
args: [MatStepLabel]
|
|
466
|
+
}],
|
|
467
|
+
color: [{
|
|
468
|
+
type: Input
|
|
469
|
+
}],
|
|
470
|
+
_lazyContent: [{
|
|
471
|
+
type: ContentChild,
|
|
472
|
+
args: [MatStepContent, {
|
|
473
|
+
static: false
|
|
474
|
+
}]
|
|
475
|
+
}]
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
class MatStepper extends CdkStepper {
|
|
479
|
+
_ngZone = inject(NgZone);
|
|
480
|
+
_renderer = inject(Renderer2);
|
|
481
|
+
_animationsDisabled = _animationsDisabled();
|
|
482
|
+
_cleanupTransition;
|
|
483
|
+
_isAnimating = signal(false, ...(ngDevMode ? [{
|
|
484
|
+
debugName: "_isAnimating"
|
|
485
|
+
}] : []));
|
|
486
|
+
_stepHeader = undefined;
|
|
487
|
+
_animatedContainers;
|
|
488
|
+
_steps = undefined;
|
|
489
|
+
steps = new QueryList();
|
|
490
|
+
_icons;
|
|
491
|
+
animationDone = new EventEmitter();
|
|
492
|
+
disableRipple = false;
|
|
493
|
+
color;
|
|
494
|
+
labelPosition = 'end';
|
|
495
|
+
headerPosition = 'top';
|
|
496
|
+
headerPrefix = input(null, ...(ngDevMode ? [{
|
|
497
|
+
debugName: "headerPrefix"
|
|
498
|
+
}] : []));
|
|
499
|
+
_iconOverrides = {};
|
|
500
|
+
get animationDuration() {
|
|
501
|
+
return this._animationDuration;
|
|
502
|
+
}
|
|
503
|
+
set animationDuration(value) {
|
|
504
|
+
this._animationDuration = /^\d+$/.test(value) ? value + 'ms' : value;
|
|
505
|
+
}
|
|
506
|
+
_animationDuration = '';
|
|
507
|
+
_isServer = !inject(Platform).isBrowser;
|
|
508
|
+
constructor() {
|
|
509
|
+
super();
|
|
510
|
+
const elementRef = inject(ElementRef);
|
|
511
|
+
const nodeName = elementRef.nativeElement.nodeName.toLowerCase();
|
|
512
|
+
this.orientation = nodeName === 'mat-vertical-stepper' ? 'vertical' : 'horizontal';
|
|
513
|
+
}
|
|
514
|
+
ngAfterContentInit() {
|
|
515
|
+
super.ngAfterContentInit();
|
|
516
|
+
this._icons.forEach(({
|
|
517
|
+
name,
|
|
518
|
+
templateRef
|
|
519
|
+
}) => this._iconOverrides[name] = templateRef);
|
|
520
|
+
this.steps.changes.pipe(takeUntil(this._destroyed)).subscribe(() => this._stateChanged());
|
|
521
|
+
this.selectedIndexChange.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
522
|
+
const duration = this._getAnimationDuration();
|
|
523
|
+
if (duration === '0ms' || duration === '0s') {
|
|
524
|
+
this._onAnimationDone();
|
|
525
|
+
} else {
|
|
526
|
+
this._isAnimating.set(true);
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
this._ngZone.runOutsideAngular(() => {
|
|
530
|
+
if (!this._animationsDisabled) {
|
|
531
|
+
setTimeout(() => {
|
|
532
|
+
this._elementRef.nativeElement.classList.add('mat-stepper-animations-enabled');
|
|
533
|
+
this._cleanupTransition = this._renderer.listen(this._elementRef.nativeElement, 'transitionend', this._handleTransitionend);
|
|
534
|
+
}, 200);
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
ngAfterViewInit() {
|
|
539
|
+
super.ngAfterViewInit();
|
|
540
|
+
if (typeof queueMicrotask === 'function') {
|
|
541
|
+
let hasEmittedInitial = false;
|
|
542
|
+
this._animatedContainers.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => queueMicrotask(() => {
|
|
543
|
+
if (!hasEmittedInitial) {
|
|
544
|
+
hasEmittedInitial = true;
|
|
545
|
+
this.animationDone.emit();
|
|
546
|
+
}
|
|
547
|
+
this._stateChanged();
|
|
548
|
+
}));
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
ngOnDestroy() {
|
|
552
|
+
super.ngOnDestroy();
|
|
553
|
+
this._cleanupTransition?.();
|
|
554
|
+
}
|
|
555
|
+
_getAnimationDuration() {
|
|
556
|
+
if (this._animationsDisabled) {
|
|
557
|
+
return '0ms';
|
|
558
|
+
}
|
|
559
|
+
if (this.animationDuration) {
|
|
560
|
+
return this.animationDuration;
|
|
561
|
+
}
|
|
562
|
+
return this.orientation === 'horizontal' ? '500ms' : '225ms';
|
|
563
|
+
}
|
|
564
|
+
_handleTransitionend = event => {
|
|
565
|
+
const target = event.target;
|
|
566
|
+
if (!target) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
const isHorizontalActiveElement = this.orientation === 'horizontal' && event.propertyName === 'transform' && target.classList.contains('mat-horizontal-stepper-content-current');
|
|
570
|
+
const isVerticalActiveElement = this.orientation === 'vertical' && event.propertyName === 'grid-template-rows' && target.classList.contains('mat-vertical-content-container-active');
|
|
571
|
+
const shouldEmit = (isHorizontalActiveElement || isVerticalActiveElement) && this._animatedContainers.find(ref => ref.nativeElement === target);
|
|
572
|
+
if (shouldEmit) {
|
|
573
|
+
this._onAnimationDone();
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
_onAnimationDone() {
|
|
577
|
+
this._isAnimating.set(false);
|
|
578
|
+
this.animationDone.emit();
|
|
579
|
+
}
|
|
580
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
581
|
+
minVersion: "12.0.0",
|
|
582
|
+
version: "22.0.0-next.1",
|
|
583
|
+
ngImport: i0,
|
|
584
|
+
type: MatStepper,
|
|
585
|
+
deps: [],
|
|
586
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
587
|
+
});
|
|
588
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
589
|
+
minVersion: "17.0.0",
|
|
590
|
+
version: "22.0.0-next.1",
|
|
591
|
+
type: MatStepper,
|
|
592
|
+
isStandalone: true,
|
|
593
|
+
selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]",
|
|
594
|
+
inputs: {
|
|
595
|
+
disableRipple: {
|
|
596
|
+
classPropertyName: "disableRipple",
|
|
597
|
+
publicName: "disableRipple",
|
|
598
|
+
isSignal: false,
|
|
599
|
+
isRequired: false,
|
|
600
|
+
transformFunction: null
|
|
601
|
+
},
|
|
602
|
+
color: {
|
|
603
|
+
classPropertyName: "color",
|
|
604
|
+
publicName: "color",
|
|
605
|
+
isSignal: false,
|
|
606
|
+
isRequired: false,
|
|
607
|
+
transformFunction: null
|
|
608
|
+
},
|
|
609
|
+
labelPosition: {
|
|
610
|
+
classPropertyName: "labelPosition",
|
|
611
|
+
publicName: "labelPosition",
|
|
612
|
+
isSignal: false,
|
|
613
|
+
isRequired: false,
|
|
614
|
+
transformFunction: null
|
|
615
|
+
},
|
|
616
|
+
headerPosition: {
|
|
617
|
+
classPropertyName: "headerPosition",
|
|
618
|
+
publicName: "headerPosition",
|
|
619
|
+
isSignal: false,
|
|
620
|
+
isRequired: false,
|
|
621
|
+
transformFunction: null
|
|
622
|
+
},
|
|
623
|
+
headerPrefix: {
|
|
624
|
+
classPropertyName: "headerPrefix",
|
|
625
|
+
publicName: "headerPrefix",
|
|
626
|
+
isSignal: true,
|
|
627
|
+
isRequired: false,
|
|
628
|
+
transformFunction: null
|
|
629
|
+
},
|
|
630
|
+
animationDuration: {
|
|
631
|
+
classPropertyName: "animationDuration",
|
|
632
|
+
publicName: "animationDuration",
|
|
633
|
+
isSignal: false,
|
|
634
|
+
isRequired: false,
|
|
635
|
+
transformFunction: null
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
outputs: {
|
|
639
|
+
animationDone: "animationDone"
|
|
640
|
+
},
|
|
641
|
+
host: {
|
|
642
|
+
properties: {
|
|
643
|
+
"class.mat-stepper-horizontal": "orientation === \"horizontal\"",
|
|
644
|
+
"class.mat-stepper-vertical": "orientation === \"vertical\"",
|
|
645
|
+
"class.mat-stepper-label-position-end": "orientation === \"horizontal\" && labelPosition == \"end\"",
|
|
646
|
+
"class.mat-stepper-label-position-bottom": "orientation === \"horizontal\" && labelPosition == \"bottom\"",
|
|
647
|
+
"class.mat-stepper-header-position-bottom": "headerPosition === \"bottom\"",
|
|
648
|
+
"class.mat-stepper-animating": "_isAnimating()",
|
|
649
|
+
"style.--mat-stepper-animation-duration": "_getAnimationDuration()"
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
providers: [{
|
|
653
|
+
provide: CdkStepper,
|
|
654
|
+
useExisting: MatStepper
|
|
655
|
+
}],
|
|
656
|
+
queries: [{
|
|
657
|
+
propertyName: "_steps",
|
|
658
|
+
predicate: MatStep,
|
|
659
|
+
descendants: true
|
|
660
|
+
}, {
|
|
661
|
+
propertyName: "_icons",
|
|
662
|
+
predicate: MatStepperIcon,
|
|
663
|
+
descendants: true
|
|
664
|
+
}],
|
|
665
|
+
viewQueries: [{
|
|
666
|
+
propertyName: "_stepHeader",
|
|
667
|
+
predicate: MatStepHeader,
|
|
668
|
+
descendants: true
|
|
669
|
+
}, {
|
|
670
|
+
propertyName: "_animatedContainers",
|
|
671
|
+
predicate: ["animatedContainer"],
|
|
672
|
+
descendants: true
|
|
673
|
+
}],
|
|
674
|
+
exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"],
|
|
675
|
+
usesInheritance: true,
|
|
676
|
+
ngImport: i0,
|
|
677
|
+
template: "<!--\n We need to project the content somewhere to avoid hydration errors. Some observations:\n 1. This is only necessary on the server.\n 2. We get a hydration error if there aren't any nodes after the `ng-content`.\n 3. We get a hydration error if `ng-content` is wrapped in another element.\n-->\n@if (_isServer) {\n <ng-content/>\n}\n\n@switch (orientation) {\n @case ('horizontal') {\n <div class=\"mat-horizontal-stepper-wrapper\">\n @if (headerPrefix()) {\n <div class=\"mat-horizontal-stepper-header-wrapper\">\n <ng-container [ngTemplateOutlet]=\"headerPrefix()\"/>\n <ng-container [ngTemplateOutlet]=\"horizontalStepsTemplate\"\n [ngTemplateOutletContext]=\"{steps}\"/>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"horizontalStepsTemplate\"\n [ngTemplateOutletContext]=\"{steps}\"/>\n }\n\n <div class=\"mat-horizontal-content-container\">\n @for (step of steps; track step) {\n <div\n #animatedContainer\n class=\"mat-horizontal-stepper-content\"\n role=\"tabpanel\"\n [id]=\"_getStepContentId($index)\"\n [attr.aria-labelledby]=\"_getStepLabelId($index)\"\n [class]=\"'mat-horizontal-stepper-content-' + _getAnimationDirection($index)\"\n [attr.inert]=\"selectedIndex === $index ? null : ''\">\n <ng-container [ngTemplateOutlet]=\"step.content\"/>\n </div>\n }\n </div>\n </div>\n }\n\n @case ('vertical') {\n <div class=\"mat-vertical-stepper-wrapper\">\n @if (headerPrefix()) {\n <ng-container [ngTemplateOutlet]=\"headerPrefix()\"/>\n }\n\n @for (step of steps; track step) {\n <div class=\"mat-step\">\n <ng-container\n [ngTemplateOutlet]=\"stepTemplate\"\n [ngTemplateOutletContext]=\"{step}\"/>\n <div\n #animatedContainer\n class=\"mat-vertical-content-container\"\n [class.mat-stepper-vertical-line]=\"!$last\"\n [class.mat-vertical-content-container-active]=\"selectedIndex === $index\"\n [attr.inert]=\"selectedIndex === $index ? null : ''\">\n <div \n class=\"mat-vertical-stepper-content\"\n role=\"region\"\n [id]=\"_getStepContentId($index)\"\n [attr.aria-labelledby]=\"_getStepLabelId($index)\">\n <div class=\"mat-vertical-content\">\n <ng-container [ngTemplateOutlet]=\"step.content\"/>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n}\n\n<!-- Common step templating -->\n<ng-template let-step=\"step\" #stepTemplate>\n <mat-step-header\n [class.mat-horizontal-stepper-header]=\"orientation === 'horizontal'\"\n [class.mat-vertical-stepper-header]=\"orientation === 'vertical'\"\n (click)=\"step.select()\"\n (keydown)=\"_onKeydown($event)\"\n [tabIndex]=\"_getFocusIndex() === step.index() ? 0 : -1\"\n [id]=\"_getStepLabelId(step.index())\"\n [attr.role]=\"orientation === 'horizontal' ? 'tab' : 'button'\"\n [attr.aria-posinset]=\"orientation === 'horizontal' ? step.index() + 1 : null\"\n [attr.aria-setsize]=\"orientation === 'horizontal' ? steps.length : null\"\n [attr.aria-selected]=\"orientation === 'horizontal' ? step.isSelected() : null\"\n [attr.aria-current]=\"orientation === 'vertical' && step.isSelected() ? 'step' : null\"\n [attr.aria-disabled]=\"orientation === 'vertical' && step.isSelected() ? 'true' : null\"\n [attr.aria-expanded]=\"orientation === 'vertical' ? step.isSelected() : null\"\n [attr.aria-controls]=\"_getStepContentId(step.index())\"\n [attr.aria-label]=\"step.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null\"\n [attr.aria-disabled]=\"step.isNavigable() ? null : true\"\n [index]=\"step.index()\"\n [state]=\"step.indicatorType()\"\n [label]=\"step.stepLabel || step.label\"\n [selected]=\"step.isSelected()\"\n [active]=\"step.isNavigable()\"\n [optional]=\"step.optional\"\n [errorMessage]=\"step.errorMessage\"\n [iconOverrides]=\"_iconOverrides\"\n [disableRipple]=\"disableRipple || !step.isNavigable()\"\n [color]=\"step.color || color\"/>\n</ng-template>\n\n<ng-template #horizontalStepsTemplate let-steps=\"steps\">\n <div \n aria-orientation=\"horizontal\"\n class=\"mat-horizontal-stepper-header-container\" \n role=\"tablist\">\n @for (step of steps; track step) {\n <ng-container\n [ngTemplateOutlet]=\"stepTemplate\"\n [ngTemplateOutletContext]=\"{step}\"/>\n @if (!$last) {\n <div class=\"mat-stepper-horizontal-line\"></div>\n }\n }\n </div>\n</ng-template>\n",
|
|
678
|
+
styles: [".mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-wrapper{align-items:center;display:flex}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center;flex-grow:1}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:\"\";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}\n"],
|
|
679
|
+
dependencies: [{
|
|
680
|
+
kind: "directive",
|
|
681
|
+
type: NgTemplateOutlet,
|
|
682
|
+
selector: "[ngTemplateOutlet]",
|
|
683
|
+
inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"]
|
|
684
|
+
}, {
|
|
685
|
+
kind: "component",
|
|
686
|
+
type: MatStepHeader,
|
|
687
|
+
selector: "mat-step-header",
|
|
688
|
+
inputs: ["state", "label", "errorMessage", "iconOverrides", "index", "selected", "active", "optional", "disableRipple", "color"]
|
|
689
|
+
}],
|
|
690
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
691
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
695
|
+
minVersion: "12.0.0",
|
|
696
|
+
version: "22.0.0-next.1",
|
|
697
|
+
ngImport: i0,
|
|
698
|
+
type: MatStepper,
|
|
699
|
+
decorators: [{
|
|
700
|
+
type: Component,
|
|
701
|
+
args: [{
|
|
702
|
+
selector: 'mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]',
|
|
703
|
+
exportAs: 'matStepper, matVerticalStepper, matHorizontalStepper',
|
|
704
|
+
host: {
|
|
705
|
+
'[class.mat-stepper-horizontal]': 'orientation === "horizontal"',
|
|
706
|
+
'[class.mat-stepper-vertical]': 'orientation === "vertical"',
|
|
707
|
+
'[class.mat-stepper-label-position-end]': 'orientation === "horizontal" && labelPosition == "end"',
|
|
708
|
+
'[class.mat-stepper-label-position-bottom]': 'orientation === "horizontal" && labelPosition == "bottom"',
|
|
709
|
+
'[class.mat-stepper-header-position-bottom]': 'headerPosition === "bottom"',
|
|
710
|
+
'[class.mat-stepper-animating]': '_isAnimating()',
|
|
711
|
+
'[style.--mat-stepper-animation-duration]': '_getAnimationDuration()'
|
|
712
|
+
},
|
|
713
|
+
providers: [{
|
|
714
|
+
provide: CdkStepper,
|
|
715
|
+
useExisting: MatStepper
|
|
716
|
+
}],
|
|
717
|
+
encapsulation: ViewEncapsulation.None,
|
|
718
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
719
|
+
imports: [NgTemplateOutlet, MatStepHeader],
|
|
720
|
+
template: "<!--\n We need to project the content somewhere to avoid hydration errors. Some observations:\n 1. This is only necessary on the server.\n 2. We get a hydration error if there aren't any nodes after the `ng-content`.\n 3. We get a hydration error if `ng-content` is wrapped in another element.\n-->\n@if (_isServer) {\n <ng-content/>\n}\n\n@switch (orientation) {\n @case ('horizontal') {\n <div class=\"mat-horizontal-stepper-wrapper\">\n @if (headerPrefix()) {\n <div class=\"mat-horizontal-stepper-header-wrapper\">\n <ng-container [ngTemplateOutlet]=\"headerPrefix()\"/>\n <ng-container [ngTemplateOutlet]=\"horizontalStepsTemplate\"\n [ngTemplateOutletContext]=\"{steps}\"/>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"horizontalStepsTemplate\"\n [ngTemplateOutletContext]=\"{steps}\"/>\n }\n\n <div class=\"mat-horizontal-content-container\">\n @for (step of steps; track step) {\n <div\n #animatedContainer\n class=\"mat-horizontal-stepper-content\"\n role=\"tabpanel\"\n [id]=\"_getStepContentId($index)\"\n [attr.aria-labelledby]=\"_getStepLabelId($index)\"\n [class]=\"'mat-horizontal-stepper-content-' + _getAnimationDirection($index)\"\n [attr.inert]=\"selectedIndex === $index ? null : ''\">\n <ng-container [ngTemplateOutlet]=\"step.content\"/>\n </div>\n }\n </div>\n </div>\n }\n\n @case ('vertical') {\n <div class=\"mat-vertical-stepper-wrapper\">\n @if (headerPrefix()) {\n <ng-container [ngTemplateOutlet]=\"headerPrefix()\"/>\n }\n\n @for (step of steps; track step) {\n <div class=\"mat-step\">\n <ng-container\n [ngTemplateOutlet]=\"stepTemplate\"\n [ngTemplateOutletContext]=\"{step}\"/>\n <div\n #animatedContainer\n class=\"mat-vertical-content-container\"\n [class.mat-stepper-vertical-line]=\"!$last\"\n [class.mat-vertical-content-container-active]=\"selectedIndex === $index\"\n [attr.inert]=\"selectedIndex === $index ? null : ''\">\n <div \n class=\"mat-vertical-stepper-content\"\n role=\"region\"\n [id]=\"_getStepContentId($index)\"\n [attr.aria-labelledby]=\"_getStepLabelId($index)\">\n <div class=\"mat-vertical-content\">\n <ng-container [ngTemplateOutlet]=\"step.content\"/>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n}\n\n<!-- Common step templating -->\n<ng-template let-step=\"step\" #stepTemplate>\n <mat-step-header\n [class.mat-horizontal-stepper-header]=\"orientation === 'horizontal'\"\n [class.mat-vertical-stepper-header]=\"orientation === 'vertical'\"\n (click)=\"step.select()\"\n (keydown)=\"_onKeydown($event)\"\n [tabIndex]=\"_getFocusIndex() === step.index() ? 0 : -1\"\n [id]=\"_getStepLabelId(step.index())\"\n [attr.role]=\"orientation === 'horizontal' ? 'tab' : 'button'\"\n [attr.aria-posinset]=\"orientation === 'horizontal' ? step.index() + 1 : null\"\n [attr.aria-setsize]=\"orientation === 'horizontal' ? steps.length : null\"\n [attr.aria-selected]=\"orientation === 'horizontal' ? step.isSelected() : null\"\n [attr.aria-current]=\"orientation === 'vertical' && step.isSelected() ? 'step' : null\"\n [attr.aria-disabled]=\"orientation === 'vertical' && step.isSelected() ? 'true' : null\"\n [attr.aria-expanded]=\"orientation === 'vertical' ? step.isSelected() : null\"\n [attr.aria-controls]=\"_getStepContentId(step.index())\"\n [attr.aria-label]=\"step.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null\"\n [attr.aria-disabled]=\"step.isNavigable() ? null : true\"\n [index]=\"step.index()\"\n [state]=\"step.indicatorType()\"\n [label]=\"step.stepLabel || step.label\"\n [selected]=\"step.isSelected()\"\n [active]=\"step.isNavigable()\"\n [optional]=\"step.optional\"\n [errorMessage]=\"step.errorMessage\"\n [iconOverrides]=\"_iconOverrides\"\n [disableRipple]=\"disableRipple || !step.isNavigable()\"\n [color]=\"step.color || color\"/>\n</ng-template>\n\n<ng-template #horizontalStepsTemplate let-steps=\"steps\">\n <div \n aria-orientation=\"horizontal\"\n class=\"mat-horizontal-stepper-header-container\" \n role=\"tablist\">\n @for (step of steps; track step) {\n <ng-container\n [ngTemplateOutlet]=\"stepTemplate\"\n [ngTemplateOutletContext]=\"{step}\"/>\n @if (!$last) {\n <div class=\"mat-stepper-horizontal-line\"></div>\n }\n }\n </div>\n</ng-template>\n",
|
|
721
|
+
styles: [".mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-wrapper{align-items:center;display:flex}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center;flex-grow:1}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:\"\";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}\n"]
|
|
722
|
+
}]
|
|
723
|
+
}],
|
|
724
|
+
ctorParameters: () => [],
|
|
725
|
+
propDecorators: {
|
|
726
|
+
_stepHeader: [{
|
|
727
|
+
type: ViewChildren,
|
|
728
|
+
args: [MatStepHeader]
|
|
729
|
+
}],
|
|
730
|
+
_animatedContainers: [{
|
|
731
|
+
type: ViewChildren,
|
|
732
|
+
args: ['animatedContainer']
|
|
733
|
+
}],
|
|
734
|
+
_steps: [{
|
|
735
|
+
type: ContentChildren,
|
|
736
|
+
args: [MatStep, {
|
|
737
|
+
descendants: true
|
|
738
|
+
}]
|
|
739
|
+
}],
|
|
740
|
+
_icons: [{
|
|
741
|
+
type: ContentChildren,
|
|
742
|
+
args: [MatStepperIcon, {
|
|
743
|
+
descendants: true
|
|
744
|
+
}]
|
|
745
|
+
}],
|
|
746
|
+
animationDone: [{
|
|
747
|
+
type: Output
|
|
748
|
+
}],
|
|
749
|
+
disableRipple: [{
|
|
750
|
+
type: Input
|
|
751
|
+
}],
|
|
752
|
+
color: [{
|
|
753
|
+
type: Input
|
|
754
|
+
}],
|
|
755
|
+
labelPosition: [{
|
|
756
|
+
type: Input
|
|
757
|
+
}],
|
|
758
|
+
headerPosition: [{
|
|
759
|
+
type: Input
|
|
760
|
+
}],
|
|
761
|
+
headerPrefix: [{
|
|
762
|
+
type: i0.Input,
|
|
763
|
+
args: [{
|
|
764
|
+
isSignal: true,
|
|
765
|
+
alias: "headerPrefix",
|
|
766
|
+
required: false
|
|
767
|
+
}]
|
|
768
|
+
}],
|
|
769
|
+
animationDuration: [{
|
|
770
|
+
type: Input
|
|
771
|
+
}]
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
|
|
775
|
+
class MatStepperNext extends CdkStepperNext {
|
|
776
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
777
|
+
minVersion: "12.0.0",
|
|
778
|
+
version: "22.0.0-next.1",
|
|
779
|
+
ngImport: i0,
|
|
780
|
+
type: MatStepperNext,
|
|
781
|
+
deps: null,
|
|
782
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
783
|
+
});
|
|
784
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
785
|
+
minVersion: "14.0.0",
|
|
786
|
+
version: "22.0.0-next.1",
|
|
787
|
+
type: MatStepperNext,
|
|
788
|
+
isStandalone: true,
|
|
789
|
+
selector: "button[matStepperNext]",
|
|
790
|
+
host: {
|
|
791
|
+
properties: {
|
|
792
|
+
"type": "type"
|
|
793
|
+
},
|
|
794
|
+
classAttribute: "mat-stepper-next"
|
|
795
|
+
},
|
|
796
|
+
usesInheritance: true,
|
|
797
|
+
ngImport: i0
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
801
|
+
minVersion: "12.0.0",
|
|
802
|
+
version: "22.0.0-next.1",
|
|
803
|
+
ngImport: i0,
|
|
804
|
+
type: MatStepperNext,
|
|
805
|
+
decorators: [{
|
|
806
|
+
type: Directive,
|
|
807
|
+
args: [{
|
|
808
|
+
selector: 'button[matStepperNext]',
|
|
809
|
+
host: {
|
|
810
|
+
'class': 'mat-stepper-next',
|
|
811
|
+
'[type]': 'type'
|
|
812
|
+
}
|
|
813
|
+
}]
|
|
814
|
+
}]
|
|
815
|
+
});
|
|
816
|
+
class MatStepperPrevious extends CdkStepperPrevious {
|
|
817
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
818
|
+
minVersion: "12.0.0",
|
|
819
|
+
version: "22.0.0-next.1",
|
|
820
|
+
ngImport: i0,
|
|
821
|
+
type: MatStepperPrevious,
|
|
822
|
+
deps: null,
|
|
823
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
824
|
+
});
|
|
825
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
826
|
+
minVersion: "14.0.0",
|
|
827
|
+
version: "22.0.0-next.1",
|
|
828
|
+
type: MatStepperPrevious,
|
|
829
|
+
isStandalone: true,
|
|
830
|
+
selector: "button[matStepperPrevious]",
|
|
831
|
+
host: {
|
|
832
|
+
properties: {
|
|
833
|
+
"type": "type"
|
|
834
|
+
},
|
|
835
|
+
classAttribute: "mat-stepper-previous"
|
|
836
|
+
},
|
|
837
|
+
usesInheritance: true,
|
|
838
|
+
ngImport: i0
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
842
|
+
minVersion: "12.0.0",
|
|
843
|
+
version: "22.0.0-next.1",
|
|
844
|
+
ngImport: i0,
|
|
845
|
+
type: MatStepperPrevious,
|
|
846
|
+
decorators: [{
|
|
847
|
+
type: Directive,
|
|
848
|
+
args: [{
|
|
849
|
+
selector: 'button[matStepperPrevious]',
|
|
850
|
+
host: {
|
|
851
|
+
'class': 'mat-stepper-previous',
|
|
852
|
+
'[type]': 'type'
|
|
853
|
+
}
|
|
854
|
+
}]
|
|
855
|
+
}]
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
class MatStepperModule {
|
|
859
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
860
|
+
minVersion: "12.0.0",
|
|
861
|
+
version: "22.0.0-next.1",
|
|
862
|
+
ngImport: i0,
|
|
863
|
+
type: MatStepperModule,
|
|
864
|
+
deps: [],
|
|
865
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
866
|
+
});
|
|
867
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
868
|
+
minVersion: "14.0.0",
|
|
869
|
+
version: "22.0.0-next.1",
|
|
870
|
+
ngImport: i0,
|
|
871
|
+
type: MatStepperModule,
|
|
872
|
+
imports: [PortalModule, CdkStepperModule, MatIconModule, MatRippleModule, MatStep, MatStepLabel, MatStepper, MatStepperNext, MatStepperPrevious, MatStepHeader, MatStepperIcon, MatStepContent],
|
|
873
|
+
exports: [BidiModule, MatStep, MatStepLabel, MatStepper, MatStepperNext, MatStepperPrevious, MatStepHeader, MatStepperIcon, MatStepContent]
|
|
874
|
+
});
|
|
875
|
+
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
876
|
+
minVersion: "12.0.0",
|
|
877
|
+
version: "22.0.0-next.1",
|
|
878
|
+
ngImport: i0,
|
|
879
|
+
type: MatStepperModule,
|
|
880
|
+
providers: [ErrorStateMatcher],
|
|
881
|
+
imports: [PortalModule, CdkStepperModule, MatIconModule, MatRippleModule, MatStepper, MatStepHeader, BidiModule]
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
885
|
+
minVersion: "12.0.0",
|
|
886
|
+
version: "22.0.0-next.1",
|
|
887
|
+
ngImport: i0,
|
|
888
|
+
type: MatStepperModule,
|
|
889
|
+
decorators: [{
|
|
890
|
+
type: NgModule,
|
|
891
|
+
args: [{
|
|
892
|
+
imports: [PortalModule, CdkStepperModule, MatIconModule, MatRippleModule, MatStep, MatStepLabel, MatStepper, MatStepperNext, MatStepperPrevious, MatStepHeader, MatStepperIcon, MatStepContent],
|
|
893
|
+
exports: [BidiModule, MatStep, MatStepLabel, MatStepper, MatStepperNext, MatStepperPrevious, MatStepHeader, MatStepperIcon, MatStepContent],
|
|
894
|
+
providers: [ErrorStateMatcher]
|
|
895
|
+
}]
|
|
896
|
+
}]
|
|
897
|
+
});
|
|
898
|
+
|
|
899
|
+
export { MatStep, MatStepContent, MatStepHeader, MatStepLabel, MatStepper, MatStepperIcon, MatStepperIntl, MatStepperModule, MatStepperNext, MatStepperPrevious };
|
|
900
|
+
//# sourceMappingURL=stepper.mjs.map
|