@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,335 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, AfterContentInit, AfterViewInit, OnDestroy, EventEmitter, ElementRef, DoCheck, QueryList } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/cdk/scrolling';
|
|
4
|
+
import { CdkScrollable } from '@angular/cdk/scrolling';
|
|
5
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
6
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
7
|
+
import { Subject, Observable } from 'rxjs';
|
|
8
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Throws an exception when two MatDrawer are matching the same position.
|
|
12
|
+
* @docs-private
|
|
13
|
+
*/
|
|
14
|
+
declare function throwMatDuplicatedDrawerError(position: string): void;
|
|
15
|
+
/** Options for where to set focus to automatically on dialog open */
|
|
16
|
+
type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
17
|
+
/** Result of the toggle promise that indicates the state of the drawer. */
|
|
18
|
+
type MatDrawerToggleResult = 'open' | 'close';
|
|
19
|
+
/** Drawer and SideNav display modes. */
|
|
20
|
+
type MatDrawerMode = 'over' | 'push' | 'side';
|
|
21
|
+
/** Configures whether drawers should use auto sizing by default. */
|
|
22
|
+
declare const MAT_DRAWER_DEFAULT_AUTOSIZE: InjectionToken<boolean>;
|
|
23
|
+
declare class MatDrawerContent extends CdkScrollable implements AfterContentInit {
|
|
24
|
+
private _platform;
|
|
25
|
+
private _changeDetectorRef;
|
|
26
|
+
_container: MatDrawerContainer;
|
|
27
|
+
constructor(...args: unknown[]);
|
|
28
|
+
ngAfterContentInit(): void;
|
|
29
|
+
/** Determines whether the content element should be hidden from the user. */
|
|
30
|
+
protected _shouldBeHidden(): boolean;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawerContent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawerContent, "mat-drawer-content", never, {}, {}, never, ["*"], true, never>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* This component corresponds to a drawer that can be opened on the drawer container.
|
|
36
|
+
*/
|
|
37
|
+
declare class MatDrawer implements AfterViewInit, OnDestroy {
|
|
38
|
+
private _elementRef;
|
|
39
|
+
private _focusTrapFactory;
|
|
40
|
+
private _focusMonitor;
|
|
41
|
+
private _platform;
|
|
42
|
+
private _ngZone;
|
|
43
|
+
private _renderer;
|
|
44
|
+
private readonly _interactivityChecker;
|
|
45
|
+
private _doc;
|
|
46
|
+
_container?: MatDrawerContainer | null | undefined;
|
|
47
|
+
private _focusTrap;
|
|
48
|
+
private _elementFocusedBeforeDrawerWasOpened;
|
|
49
|
+
private _eventCleanups;
|
|
50
|
+
/** Whether the view of the component has been attached. */
|
|
51
|
+
private _isAttached;
|
|
52
|
+
/** Anchor node used to restore the drawer to its initial position. */
|
|
53
|
+
private _anchor;
|
|
54
|
+
/** The side that the drawer is attached to. */
|
|
55
|
+
get position(): 'start' | 'end';
|
|
56
|
+
set position(value: 'start' | 'end');
|
|
57
|
+
private _position;
|
|
58
|
+
/** Mode of the drawer; one of 'over', 'push' or 'side'. */
|
|
59
|
+
get mode(): MatDrawerMode;
|
|
60
|
+
set mode(value: MatDrawerMode);
|
|
61
|
+
private _mode;
|
|
62
|
+
/** Whether the drawer can be closed with the escape key or by clicking on the backdrop. */
|
|
63
|
+
get disableClose(): boolean;
|
|
64
|
+
set disableClose(value: BooleanInput);
|
|
65
|
+
private _disableClose;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the drawer should focus the first focusable element automatically when opened.
|
|
68
|
+
* Defaults to false in when `mode` is set to `side`, otherwise defaults to `true`. If explicitly
|
|
69
|
+
* enabled, focus will be moved into the sidenav in `side` mode as well.
|
|
70
|
+
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or AutoFocusTarget
|
|
71
|
+
* instead.
|
|
72
|
+
*/
|
|
73
|
+
get autoFocus(): AutoFocusTarget | string | boolean;
|
|
74
|
+
set autoFocus(value: AutoFocusTarget | string | BooleanInput);
|
|
75
|
+
private _autoFocus;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the drawer is opened. We overload this because we trigger an event when it
|
|
78
|
+
* starts or end.
|
|
79
|
+
*/
|
|
80
|
+
get opened(): boolean;
|
|
81
|
+
set opened(value: BooleanInput);
|
|
82
|
+
private _opened;
|
|
83
|
+
/** How the sidenav was opened (keypress, mouse click etc.) */
|
|
84
|
+
private _openedVia;
|
|
85
|
+
/** Emits whenever the drawer has started animating. */
|
|
86
|
+
readonly _animationStarted: Subject<unknown>;
|
|
87
|
+
/** Emits whenever the drawer is done animating. */
|
|
88
|
+
readonly _animationEnd: Subject<unknown>;
|
|
89
|
+
/** Event emitted when the drawer open state is changed. */
|
|
90
|
+
readonly openedChange: EventEmitter<boolean>;
|
|
91
|
+
/** Event emitted when the drawer has been opened. */
|
|
92
|
+
readonly _openedStream: Observable<void>;
|
|
93
|
+
/** Event emitted when the drawer has started opening. */
|
|
94
|
+
readonly openedStart: Observable<void>;
|
|
95
|
+
/** Event emitted when the drawer has been closed. */
|
|
96
|
+
readonly _closedStream: Observable<void>;
|
|
97
|
+
/** Event emitted when the drawer has started closing. */
|
|
98
|
+
readonly closedStart: Observable<void>;
|
|
99
|
+
/** Emits when the component is destroyed. */
|
|
100
|
+
private readonly _destroyed;
|
|
101
|
+
/** Event emitted when the drawer's position changes. */
|
|
102
|
+
readonly onPositionChanged: EventEmitter<void>;
|
|
103
|
+
/** Reference to the inner element that contains all the content. */
|
|
104
|
+
_content: ElementRef<HTMLElement>;
|
|
105
|
+
/**
|
|
106
|
+
* An observable that emits when the drawer mode changes. This is used by the drawer container to
|
|
107
|
+
* to know when to when the mode changes so it can adapt the margins on the content.
|
|
108
|
+
*/
|
|
109
|
+
readonly _modeChanged: Subject<void>;
|
|
110
|
+
private _injector;
|
|
111
|
+
private _changeDetectorRef;
|
|
112
|
+
constructor(...args: unknown[]);
|
|
113
|
+
/**
|
|
114
|
+
* Focuses the provided element. If the element is not focusable, it will add a tabIndex
|
|
115
|
+
* attribute to forcefully focus it. The attribute is removed after focus is moved.
|
|
116
|
+
* @param element The element to focus.
|
|
117
|
+
*/
|
|
118
|
+
private _forceFocus;
|
|
119
|
+
/**
|
|
120
|
+
* Focuses the first element that matches the given selector within the focus trap.
|
|
121
|
+
* @param selector The CSS selector for the element to set focus to.
|
|
122
|
+
*/
|
|
123
|
+
private _focusByCssSelector;
|
|
124
|
+
/**
|
|
125
|
+
* Moves focus into the drawer. Note that this works even if
|
|
126
|
+
* the focus trap is disabled in `side` mode.
|
|
127
|
+
*/
|
|
128
|
+
private _takeFocus;
|
|
129
|
+
/**
|
|
130
|
+
* Restores focus to the element that was originally focused when the drawer opened.
|
|
131
|
+
* If no element was focused at that time, the focus will be restored to the drawer.
|
|
132
|
+
*/
|
|
133
|
+
private _restoreFocus;
|
|
134
|
+
/** Whether focus is currently within the drawer. */
|
|
135
|
+
private _isFocusWithinDrawer;
|
|
136
|
+
ngAfterViewInit(): void;
|
|
137
|
+
ngOnDestroy(): void;
|
|
138
|
+
/**
|
|
139
|
+
* Open the drawer.
|
|
140
|
+
* @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.
|
|
141
|
+
* Used for focus management after the sidenav is closed.
|
|
142
|
+
*/
|
|
143
|
+
open(openedVia?: FocusOrigin): Promise<MatDrawerToggleResult>;
|
|
144
|
+
/** Close the drawer. */
|
|
145
|
+
close(): Promise<MatDrawerToggleResult>;
|
|
146
|
+
/** Closes the drawer with context that the backdrop was clicked. */
|
|
147
|
+
_closeViaBackdropClick(): Promise<MatDrawerToggleResult>;
|
|
148
|
+
/**
|
|
149
|
+
* Toggle this drawer.
|
|
150
|
+
* @param isOpen Whether the drawer should be open.
|
|
151
|
+
* @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.
|
|
152
|
+
* Used for focus management after the sidenav is closed.
|
|
153
|
+
*/
|
|
154
|
+
toggle(isOpen?: boolean, openedVia?: FocusOrigin): Promise<MatDrawerToggleResult>;
|
|
155
|
+
/**
|
|
156
|
+
* Toggles the opened state of the drawer.
|
|
157
|
+
* @param isOpen Whether the drawer should open or close.
|
|
158
|
+
* @param restoreFocus Whether focus should be restored on close.
|
|
159
|
+
* @param focusOrigin Origin to use when restoring focus.
|
|
160
|
+
*/
|
|
161
|
+
private _setOpen;
|
|
162
|
+
/** Toggles whether the drawer is currently animating. */
|
|
163
|
+
private _setIsAnimating;
|
|
164
|
+
_getWidth(): number;
|
|
165
|
+
/** Updates the enabled state of the focus trap. */
|
|
166
|
+
private _updateFocusTrapState;
|
|
167
|
+
/**
|
|
168
|
+
* Updates the position of the drawer in the DOM. We need to move the element around ourselves
|
|
169
|
+
* when it's in the `end` position so that it comes after the content and the visual order
|
|
170
|
+
* matches the tab order. We also need to be able to move it back to `start` if the sidenav
|
|
171
|
+
* started off as `end` and was changed to `start`.
|
|
172
|
+
*/
|
|
173
|
+
private _updatePositionInParent;
|
|
174
|
+
/** Event handler for animation events. */
|
|
175
|
+
private _handleTransitionEvent;
|
|
176
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawer, never>;
|
|
177
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawer, "mat-drawer", ["matDrawer"], { "position": { "alias": "position"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "openedChange": "openedChange"; "_openedStream": "opened"; "openedStart": "openedStart"; "_closedStream": "closed"; "closedStart": "closedStart"; "onPositionChanged": "positionChanged"; }, never, ["*"], true, never>;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* `<mat-drawer-container>` component.
|
|
181
|
+
*
|
|
182
|
+
* This is the parent component to one or two `<mat-drawer>`s that validates the state internally
|
|
183
|
+
* and coordinates the backdrop and content styling.
|
|
184
|
+
*/
|
|
185
|
+
declare class MatDrawerContainer implements AfterContentInit, DoCheck, OnDestroy {
|
|
186
|
+
private _dir;
|
|
187
|
+
private _element;
|
|
188
|
+
private _ngZone;
|
|
189
|
+
private _changeDetectorRef;
|
|
190
|
+
private _animationDisabled;
|
|
191
|
+
_transitionsEnabled: boolean;
|
|
192
|
+
/** All drawers in the container. Includes drawers from inside nested containers. */
|
|
193
|
+
_allDrawers: QueryList<MatDrawer>;
|
|
194
|
+
/** Drawers that belong to this container. */
|
|
195
|
+
_drawers: QueryList<MatDrawer>;
|
|
196
|
+
_content: MatDrawerContent;
|
|
197
|
+
_userContent: MatDrawerContent;
|
|
198
|
+
/** The drawer child with the `start` position. */
|
|
199
|
+
get start(): MatDrawer | null;
|
|
200
|
+
/** The drawer child with the `end` position. */
|
|
201
|
+
get end(): MatDrawer | null;
|
|
202
|
+
/**
|
|
203
|
+
* Whether to automatically resize the container whenever
|
|
204
|
+
* the size of any of its drawers changes.
|
|
205
|
+
*
|
|
206
|
+
* **Use at your own risk!** Enabling this option can cause layout thrashing by measuring
|
|
207
|
+
* the drawers on every change detection cycle. Can be configured globally via the
|
|
208
|
+
* `MAT_DRAWER_DEFAULT_AUTOSIZE` token.
|
|
209
|
+
*/
|
|
210
|
+
get autosize(): boolean;
|
|
211
|
+
set autosize(value: BooleanInput);
|
|
212
|
+
private _autosize;
|
|
213
|
+
/**
|
|
214
|
+
* Whether the drawer container should have a backdrop while one of the sidenavs is open.
|
|
215
|
+
* If explicitly set to `true`, the backdrop will be enabled for drawers in the `side`
|
|
216
|
+
* mode as well.
|
|
217
|
+
*/
|
|
218
|
+
get hasBackdrop(): boolean;
|
|
219
|
+
set hasBackdrop(value: BooleanInput);
|
|
220
|
+
_backdropOverride: boolean | null;
|
|
221
|
+
/** Event emitted when the drawer backdrop is clicked. */
|
|
222
|
+
readonly backdropClick: EventEmitter<void>;
|
|
223
|
+
/** The drawer at the start/end position, independent of direction. */
|
|
224
|
+
private _start;
|
|
225
|
+
private _end;
|
|
226
|
+
/**
|
|
227
|
+
* The drawer at the left/right. When direction changes, these will change as well.
|
|
228
|
+
* They're used as aliases for the above to set the left/right style properly.
|
|
229
|
+
* In LTR, _left == _start and _right == _end.
|
|
230
|
+
* In RTL, _left == _end and _right == _start.
|
|
231
|
+
*/
|
|
232
|
+
private _left;
|
|
233
|
+
private _right;
|
|
234
|
+
/** Emits when the component is destroyed. */
|
|
235
|
+
private readonly _destroyed;
|
|
236
|
+
/** Emits on every ngDoCheck. Used for debouncing reflows. */
|
|
237
|
+
private readonly _doCheckSubject;
|
|
238
|
+
/**
|
|
239
|
+
* Margins to be applied to the content. These are used to push / shrink the drawer content when a
|
|
240
|
+
* drawer is open. We use margin rather than transform even for push mode because transform breaks
|
|
241
|
+
* fixed position elements inside of the transformed element.
|
|
242
|
+
*/
|
|
243
|
+
_contentMargins: {
|
|
244
|
+
left: number | null;
|
|
245
|
+
right: number | null;
|
|
246
|
+
};
|
|
247
|
+
readonly _contentMarginChanges: Subject<{
|
|
248
|
+
left: number | null;
|
|
249
|
+
right: number | null;
|
|
250
|
+
}>;
|
|
251
|
+
/** Reference to the CdkScrollable instance that wraps the scrollable content. */
|
|
252
|
+
get scrollable(): CdkScrollable;
|
|
253
|
+
private _injector;
|
|
254
|
+
constructor(...args: unknown[]);
|
|
255
|
+
ngAfterContentInit(): void;
|
|
256
|
+
ngOnDestroy(): void;
|
|
257
|
+
/** Calls `open` of both start and end drawers */
|
|
258
|
+
open(): void;
|
|
259
|
+
/** Calls `close` of both start and end drawers */
|
|
260
|
+
close(): void;
|
|
261
|
+
/**
|
|
262
|
+
* Recalculates and updates the inline styles for the content. Note that this should be used
|
|
263
|
+
* sparingly, because it causes a reflow.
|
|
264
|
+
*/
|
|
265
|
+
updateContentMargins(): void;
|
|
266
|
+
ngDoCheck(): void;
|
|
267
|
+
/**
|
|
268
|
+
* Subscribes to drawer events in order to set a class on the main container element when the
|
|
269
|
+
* drawer is open and the backdrop is visible. This ensures any overflow on the container element
|
|
270
|
+
* is properly hidden.
|
|
271
|
+
*/
|
|
272
|
+
private _watchDrawerToggle;
|
|
273
|
+
/**
|
|
274
|
+
* Subscribes to drawer onPositionChanged event in order to
|
|
275
|
+
* re-validate drawers when the position changes.
|
|
276
|
+
*/
|
|
277
|
+
private _watchDrawerPosition;
|
|
278
|
+
/** Subscribes to changes in drawer mode so we can run change detection. */
|
|
279
|
+
private _watchDrawerMode;
|
|
280
|
+
/** Toggles the 'mat-drawer-opened' class on the main 'mat-drawer-container' element. */
|
|
281
|
+
private _setContainerClass;
|
|
282
|
+
/** Validate the state of the drawer children components. */
|
|
283
|
+
private _validateDrawers;
|
|
284
|
+
/** Whether the container is being pushed to the side by one of the drawers. */
|
|
285
|
+
private _isPushed;
|
|
286
|
+
_onBackdropClicked(): void;
|
|
287
|
+
_closeModalDrawersViaBackdrop(): void;
|
|
288
|
+
_isShowingBackdrop(): boolean;
|
|
289
|
+
private _isDrawerOpen;
|
|
290
|
+
private _drawerHasBackdrop;
|
|
291
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawerContainer, never>;
|
|
292
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawerContainer, "mat-drawer-container", ["matDrawerContainer"], { "autosize": { "alias": "autosize"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; }, { "backdropClick": "backdropClick"; }, ["_content", "_allDrawers"], ["mat-drawer", "mat-drawer-content", "*"], true, never>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
declare class MatSidenavContent extends MatDrawerContent {
|
|
296
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavContent, never>;
|
|
297
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenavContent, "mat-sidenav-content", never, {}, {}, never, ["*"], true, never>;
|
|
298
|
+
}
|
|
299
|
+
declare class MatSidenav extends MatDrawer {
|
|
300
|
+
/** Whether the sidenav is fixed in the viewport. */
|
|
301
|
+
get fixedInViewport(): boolean;
|
|
302
|
+
set fixedInViewport(value: BooleanInput);
|
|
303
|
+
private _fixedInViewport;
|
|
304
|
+
/**
|
|
305
|
+
* The gap between the top of the sidenav and the top of the viewport when the sidenav is in fixed
|
|
306
|
+
* mode.
|
|
307
|
+
*/
|
|
308
|
+
get fixedTopGap(): number;
|
|
309
|
+
set fixedTopGap(value: NumberInput);
|
|
310
|
+
private _fixedTopGap;
|
|
311
|
+
/**
|
|
312
|
+
* The gap between the bottom of the sidenav and the bottom of the viewport when the sidenav is in
|
|
313
|
+
* fixed mode.
|
|
314
|
+
*/
|
|
315
|
+
get fixedBottomGap(): number;
|
|
316
|
+
set fixedBottomGap(value: NumberInput);
|
|
317
|
+
private _fixedBottomGap;
|
|
318
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenav, never>;
|
|
319
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenav, "mat-sidenav", ["matSidenav"], { "fixedInViewport": { "alias": "fixedInViewport"; "required": false; }; "fixedTopGap": { "alias": "fixedTopGap"; "required": false; }; "fixedBottomGap": { "alias": "fixedBottomGap"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
320
|
+
}
|
|
321
|
+
declare class MatSidenavContainer extends MatDrawerContainer {
|
|
322
|
+
_allDrawers: QueryList<MatSidenav>;
|
|
323
|
+
_content: MatSidenavContent;
|
|
324
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavContainer, never>;
|
|
325
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenavContainer, "mat-sidenav-container", ["matSidenavContainer"], {}, {}, ["_content", "_allDrawers"], ["mat-sidenav", "mat-sidenav-content", "*"], true, never>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare class MatSidenavModule {
|
|
329
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavModule, never>;
|
|
330
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSidenavModule, never, [typeof i1.CdkScrollableModule, typeof MatDrawer, typeof MatDrawerContainer, typeof MatDrawerContent, typeof MatSidenav, typeof MatSidenavContainer, typeof MatSidenavContent], [typeof i2.BidiModule, typeof i1.CdkScrollableModule, typeof MatDrawer, typeof MatDrawerContainer, typeof MatDrawerContent, typeof MatSidenav, typeof MatSidenavContainer, typeof MatSidenavContent]>;
|
|
331
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatSidenavModule>;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export { MAT_DRAWER_DEFAULT_AUTOSIZE, MatDrawer, MatDrawerContainer, MatDrawerContent, MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule, throwMatDuplicatedDrawerError };
|
|
335
|
+
export type { MatDrawerMode, MatDrawerToggleResult };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
+
|
|
4
|
+
/** A set of criteria that can be used to filter a list of `MatSlideToggleHarness` instances. */
|
|
5
|
+
interface SlideToggleHarnessFilters extends BaseHarnessFilters {
|
|
6
|
+
/** Only find instances whose label matches the given value. */
|
|
7
|
+
label?: string | RegExp;
|
|
8
|
+
/** Only find instances whose name is the given value. */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** Only find instances with the given checked value. */
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
/** Only find instances where the disabled state matches the given value. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Harness for interacting with a mat-slide-toggle in tests. */
|
|
17
|
+
declare class MatSlideToggleHarness extends ComponentHarness {
|
|
18
|
+
private _label;
|
|
19
|
+
_nativeElement: () => Promise<_angular_cdk_testing.TestElement>;
|
|
20
|
+
static hostSelector: string;
|
|
21
|
+
/**
|
|
22
|
+
* Gets a `HarnessPredicate` that can be used to search for a slide-toggle w/ specific attributes.
|
|
23
|
+
* @param options Options for narrowing the search:
|
|
24
|
+
* - `selector` finds a slide-toggle whose host element matches the given selector.
|
|
25
|
+
* - `label` finds a slide-toggle with specific label text.
|
|
26
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
27
|
+
*/
|
|
28
|
+
static with<T extends MatSlideToggleHarness>(this: ComponentHarnessConstructor<T>, options?: SlideToggleHarnessFilters): HarnessPredicate<T>;
|
|
29
|
+
/** Toggle the checked state of the slide-toggle. */
|
|
30
|
+
toggle(): Promise<void>;
|
|
31
|
+
/** Whether the slide-toggle is checked. */
|
|
32
|
+
isChecked(): Promise<boolean>;
|
|
33
|
+
/** Whether the slide-toggle is disabled. */
|
|
34
|
+
isDisabled(): Promise<boolean>;
|
|
35
|
+
/** Whether the slide-toggle is required. */
|
|
36
|
+
isRequired(): Promise<boolean>;
|
|
37
|
+
/** Whether the slide-toggle is valid. */
|
|
38
|
+
isValid(): Promise<boolean>;
|
|
39
|
+
/** Gets the slide-toggle's name. */
|
|
40
|
+
getName(): Promise<string | null>;
|
|
41
|
+
/** Gets the slide-toggle's aria-label. */
|
|
42
|
+
getAriaLabel(): Promise<string | null>;
|
|
43
|
+
/** Gets the slide-toggle's aria-labelledby. */
|
|
44
|
+
getAriaLabelledby(): Promise<string | null>;
|
|
45
|
+
/** Gets the slide-toggle's label text. */
|
|
46
|
+
getLabelText(): Promise<string>;
|
|
47
|
+
/** Focuses the slide-toggle. */
|
|
48
|
+
focus(): Promise<void>;
|
|
49
|
+
/** Blurs the slide-toggle. */
|
|
50
|
+
blur(): Promise<void>;
|
|
51
|
+
/** Whether the slide-toggle is focused. */
|
|
52
|
+
isFocused(): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Puts the slide-toggle in a checked state by toggling it if it is currently unchecked, or doing
|
|
55
|
+
* nothing if it is already checked.
|
|
56
|
+
*/
|
|
57
|
+
check(): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Puts the slide-toggle in an unchecked state by toggling it if it is currently checked, or doing
|
|
60
|
+
* nothing if it is already unchecked.
|
|
61
|
+
*/
|
|
62
|
+
uncheck(): Promise<void>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { MatSlideToggleHarness };
|
|
66
|
+
export type { SlideToggleHarnessFilters };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnDestroy, AfterContentInit, OnChanges, ChangeDetectorRef, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
5
|
+
import { ThemePalette } from './_palette-chunk.js';
|
|
6
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
7
|
+
|
|
8
|
+
/** Default `mat-slide-toggle` options that can be overridden. */
|
|
9
|
+
interface MatSlideToggleDefaultOptions {
|
|
10
|
+
/** Whether toggle action triggers value changes in slide toggle. */
|
|
11
|
+
disableToggleValue?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Default theme color of the slide toggle. This API is supported in M2 themes only,
|
|
14
|
+
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/slide-toggle/styling.
|
|
15
|
+
*
|
|
16
|
+
* For information on applying color variants in M3, see
|
|
17
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
18
|
+
*/
|
|
19
|
+
color?: ThemePalette;
|
|
20
|
+
/** Whether to hide the icon inside the slide toggle. */
|
|
21
|
+
hideIcon?: boolean;
|
|
22
|
+
/** Whether disabled slide toggles should remain interactive. */
|
|
23
|
+
disabledInteractive?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Injection token to be used to override the default options for `mat-slide-toggle`. */
|
|
26
|
+
declare const MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS: InjectionToken<MatSlideToggleDefaultOptions>;
|
|
27
|
+
|
|
28
|
+
/** Change event object emitted by a slide toggle. */
|
|
29
|
+
declare class MatSlideToggleChange {
|
|
30
|
+
/** The source slide toggle of the event. */
|
|
31
|
+
source: MatSlideToggle;
|
|
32
|
+
/** The new `checked` value of the slide toggle. */
|
|
33
|
+
checked: boolean;
|
|
34
|
+
constructor(
|
|
35
|
+
/** The source slide toggle of the event. */
|
|
36
|
+
source: MatSlideToggle,
|
|
37
|
+
/** The new `checked` value of the slide toggle. */
|
|
38
|
+
checked: boolean);
|
|
39
|
+
}
|
|
40
|
+
declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnChanges, ControlValueAccessor, Validator {
|
|
41
|
+
private _elementRef;
|
|
42
|
+
protected _focusMonitor: FocusMonitor;
|
|
43
|
+
protected _changeDetectorRef: ChangeDetectorRef;
|
|
44
|
+
defaults: MatSlideToggleDefaultOptions;
|
|
45
|
+
private _onChange;
|
|
46
|
+
private _onTouched;
|
|
47
|
+
private _validatorOnChange;
|
|
48
|
+
private _uniqueId;
|
|
49
|
+
private _checked;
|
|
50
|
+
private _createChangeEvent;
|
|
51
|
+
/** Unique ID for the label element. */
|
|
52
|
+
_labelId: string;
|
|
53
|
+
/** Returns the unique id for the visual hidden button. */
|
|
54
|
+
get buttonId(): string;
|
|
55
|
+
/** Reference to the MDC switch element. */
|
|
56
|
+
_switchElement: ElementRef<HTMLElement>;
|
|
57
|
+
/** Focuses the slide-toggle. */
|
|
58
|
+
focus(): void;
|
|
59
|
+
/** Whether noop animations are enabled. */
|
|
60
|
+
_noopAnimations: boolean;
|
|
61
|
+
/** Whether the slide toggle is currently focused. */
|
|
62
|
+
_focused: boolean;
|
|
63
|
+
/** Name value will be applied to the input element if present. */
|
|
64
|
+
name: string | null;
|
|
65
|
+
/** A unique id for the slide-toggle input. If none is supplied, it will be auto-generated. */
|
|
66
|
+
id: string;
|
|
67
|
+
/** Whether the label should appear after or before the slide-toggle. Defaults to 'after'. */
|
|
68
|
+
labelPosition: 'before' | 'after';
|
|
69
|
+
/** Used to set the aria-label attribute on the underlying input element. */
|
|
70
|
+
ariaLabel: string | null;
|
|
71
|
+
/** Used to set the aria-labelledby attribute on the underlying input element. */
|
|
72
|
+
ariaLabelledby: string | null;
|
|
73
|
+
/** Used to set the aria-describedby attribute on the underlying input element. */
|
|
74
|
+
ariaDescribedby: string;
|
|
75
|
+
/** Whether the slide-toggle is required. */
|
|
76
|
+
required: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Theme color of the slide toggle. This API is supported in M2 themes only,
|
|
79
|
+
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/slide-toggle/styling.
|
|
80
|
+
*
|
|
81
|
+
* For information on applying color variants in M3, see
|
|
82
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
83
|
+
*/
|
|
84
|
+
color: string | undefined;
|
|
85
|
+
/** Whether the slide toggle is disabled. */
|
|
86
|
+
disabled: boolean;
|
|
87
|
+
/** Whether the slide toggle has a ripple. */
|
|
88
|
+
disableRipple: boolean;
|
|
89
|
+
/** Tabindex of slide toggle. */
|
|
90
|
+
tabIndex: number;
|
|
91
|
+
/** Whether the slide-toggle element is checked or not. */
|
|
92
|
+
get checked(): boolean;
|
|
93
|
+
set checked(value: boolean);
|
|
94
|
+
/** Whether to hide the icon inside of the slide toggle. */
|
|
95
|
+
hideIcon: boolean;
|
|
96
|
+
/** Whether the slide toggle should remain interactive when it is disabled. */
|
|
97
|
+
disabledInteractive: boolean;
|
|
98
|
+
/** An event will be dispatched each time the slide-toggle changes its value. */
|
|
99
|
+
readonly change: EventEmitter<MatSlideToggleChange>;
|
|
100
|
+
/**
|
|
101
|
+
* An event will be dispatched each time the slide-toggle input is toggled.
|
|
102
|
+
* This event is always emitted when the user toggles the slide toggle, but this does not mean
|
|
103
|
+
* the slide toggle's value has changed.
|
|
104
|
+
*/
|
|
105
|
+
readonly toggleChange: EventEmitter<void>;
|
|
106
|
+
/** Returns the unique id for the visual hidden input. */
|
|
107
|
+
get inputId(): string;
|
|
108
|
+
constructor(...args: unknown[]);
|
|
109
|
+
ngAfterContentInit(): void;
|
|
110
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
111
|
+
ngOnDestroy(): void;
|
|
112
|
+
/** Implemented as part of ControlValueAccessor. */
|
|
113
|
+
writeValue(value: any): void;
|
|
114
|
+
/** Implemented as part of ControlValueAccessor. */
|
|
115
|
+
registerOnChange(fn: any): void;
|
|
116
|
+
/** Implemented as part of ControlValueAccessor. */
|
|
117
|
+
registerOnTouched(fn: any): void;
|
|
118
|
+
/** Implemented as a part of Validator. */
|
|
119
|
+
validate(control: AbstractControl<boolean>): ValidationErrors | null;
|
|
120
|
+
/** Implemented as a part of Validator. */
|
|
121
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
122
|
+
/** Implemented as a part of ControlValueAccessor. */
|
|
123
|
+
setDisabledState(isDisabled: boolean): void;
|
|
124
|
+
/** Toggles the checked state of the slide-toggle. */
|
|
125
|
+
toggle(): void;
|
|
126
|
+
/**
|
|
127
|
+
* Emits a change event on the `change` output. Also notifies the FormControl about the change.
|
|
128
|
+
*/
|
|
129
|
+
protected _emitChangeEvent(): void;
|
|
130
|
+
/** Method being called whenever the underlying button is clicked. */
|
|
131
|
+
_handleClick(): void;
|
|
132
|
+
_getAriaLabelledBy(): string | null;
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggle, never>;
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatSlideToggle, "mat-slide-toggle", ["matSlideToggle"], { "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "required": { "alias": "required"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "hideIcon": { "alias": "hideIcon"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; }, { "change": "change"; "toggleChange": "toggleChange"; }, never, ["*"], true, never>;
|
|
135
|
+
static ngAcceptInputType_required: unknown;
|
|
136
|
+
static ngAcceptInputType_disabled: unknown;
|
|
137
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
138
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
139
|
+
static ngAcceptInputType_checked: unknown;
|
|
140
|
+
static ngAcceptInputType_hideIcon: unknown;
|
|
141
|
+
static ngAcceptInputType_disabledInteractive: unknown;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare class MatSlideToggleModule {
|
|
145
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleModule, never>;
|
|
146
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSlideToggleModule, never, [typeof MatSlideToggle], [typeof MatSlideToggle, typeof i2.BidiModule]>;
|
|
147
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatSlideToggleModule>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export { MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS, MatSlideToggle, MatSlideToggleChange, MatSlideToggleModule };
|
|
151
|
+
export type { MatSlideToggleDefaultOptions };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
|
|
3
|
+
/** Possible positions of a slider thumb. */
|
|
4
|
+
declare enum ThumbPosition {
|
|
5
|
+
START = 0,
|
|
6
|
+
END = 1
|
|
7
|
+
}
|
|
8
|
+
/** A set of criteria that can be used to filter a list of `MatSliderHarness` instances. */
|
|
9
|
+
interface SliderHarnessFilters extends BaseHarnessFilters {
|
|
10
|
+
/** Filters out only range/non-range sliders. */
|
|
11
|
+
isRange?: boolean;
|
|
12
|
+
/** Only find instances which match the given disabled state. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** A set of criteria that can be used to filter a list of `MatSliderThumbHarness` instances. */
|
|
16
|
+
interface SliderThumbHarnessFilters extends BaseHarnessFilters {
|
|
17
|
+
/** Filters out slider thumbs with a particular position. */
|
|
18
|
+
position?: ThumbPosition;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Harness for interacting with a thumb inside of a Material slider in tests. */
|
|
22
|
+
declare class MatSliderThumbHarness extends ComponentHarness {
|
|
23
|
+
static hostSelector: string;
|
|
24
|
+
/**
|
|
25
|
+
* Gets a `HarnessPredicate` that can be used to search for a slider thumb with specific attributes.
|
|
26
|
+
* @param options Options for filtering which thumb instances are considered a match.
|
|
27
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
28
|
+
*/
|
|
29
|
+
static with<T extends MatSliderThumbHarness>(this: ComponentHarnessConstructor<T>, options?: SliderThumbHarnessFilters): HarnessPredicate<T>;
|
|
30
|
+
/** Gets the position of the thumb inside the slider. */
|
|
31
|
+
getPosition(): Promise<ThumbPosition>;
|
|
32
|
+
/** Gets the value of the thumb. */
|
|
33
|
+
getValue(): Promise<number>;
|
|
34
|
+
/** Sets the value of the thumb. */
|
|
35
|
+
setValue(newValue: number): Promise<void>;
|
|
36
|
+
/** Gets the current percentage value of the slider. */
|
|
37
|
+
getPercentage(): Promise<number>;
|
|
38
|
+
/** Gets the maximum value of the thumb. */
|
|
39
|
+
getMaxValue(): Promise<number>;
|
|
40
|
+
/** Gets the minimum value of the thumb. */
|
|
41
|
+
getMinValue(): Promise<number>;
|
|
42
|
+
/** Gets the text representation of the slider's value. */
|
|
43
|
+
getDisplayValue(): Promise<string>;
|
|
44
|
+
/** Whether the thumb is disabled. */
|
|
45
|
+
isDisabled(): Promise<boolean>;
|
|
46
|
+
/** Gets the name of the thumb. */
|
|
47
|
+
getName(): Promise<string>;
|
|
48
|
+
/** Gets the id of the thumb. */
|
|
49
|
+
getId(): Promise<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Focuses the thumb and returns a promise that indicates when the
|
|
52
|
+
* action is complete.
|
|
53
|
+
*/
|
|
54
|
+
focus(): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Blurs the thumb and returns a promise that indicates when the
|
|
57
|
+
* action is complete.
|
|
58
|
+
*/
|
|
59
|
+
blur(): Promise<void>;
|
|
60
|
+
/** Whether the thumb is focused. */
|
|
61
|
+
isFocused(): Promise<boolean>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** Harness for interacting with a MDC mat-slider in tests. */
|
|
65
|
+
declare class MatSliderHarness extends ComponentHarness {
|
|
66
|
+
static hostSelector: string;
|
|
67
|
+
/**
|
|
68
|
+
* Gets a `HarnessPredicate` that can be used to search for a slider with specific attributes.
|
|
69
|
+
* @param options Options for filtering which input instances are considered a match.
|
|
70
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
71
|
+
*/
|
|
72
|
+
static with<T extends MatSliderHarness>(this: ComponentHarnessConstructor<T>, options?: SliderHarnessFilters): HarnessPredicate<T>;
|
|
73
|
+
/** Gets the start thumb of the slider (only applicable for range sliders). */
|
|
74
|
+
getStartThumb(): Promise<MatSliderThumbHarness>;
|
|
75
|
+
/** Gets the thumb (for single point sliders), or the end thumb (for range sliders). */
|
|
76
|
+
getEndThumb(): Promise<MatSliderThumbHarness>;
|
|
77
|
+
/** Gets whether the slider is a range slider. */
|
|
78
|
+
isRange(): Promise<boolean>;
|
|
79
|
+
/** Gets whether the slider is disabled. */
|
|
80
|
+
isDisabled(): Promise<boolean>;
|
|
81
|
+
/** Gets the value step increments of the slider. */
|
|
82
|
+
getStep(): Promise<number>;
|
|
83
|
+
/** Gets the maximum value of the slider. */
|
|
84
|
+
getMaxValue(): Promise<number>;
|
|
85
|
+
/** Gets the minimum value of the slider. */
|
|
86
|
+
getMinValue(): Promise<number>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { MatSliderHarness, MatSliderThumbHarness, ThumbPosition };
|
|
90
|
+
export type { SliderHarnessFilters, SliderThumbHarnessFilters };
|