@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,184 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
3
|
+
import { ThemePalette } from './_palette-chunk.js';
|
|
4
|
+
import { Subject, Observable } from 'rxjs';
|
|
5
|
+
import { MatFormFieldAppearance } from './_form-field-chunk.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* To modify the labels and text displayed, create a new instance of MatPaginatorIntl and
|
|
9
|
+
* include it in a custom provider
|
|
10
|
+
*/
|
|
11
|
+
declare class MatPaginatorIntl {
|
|
12
|
+
/**
|
|
13
|
+
* Stream to emit from when labels are changed. Use this to notify components when the labels have
|
|
14
|
+
* changed after initialization.
|
|
15
|
+
*/
|
|
16
|
+
readonly changes: Subject<void>;
|
|
17
|
+
/** A label for the page size selector. */
|
|
18
|
+
itemsPerPageLabel: string;
|
|
19
|
+
/** A label for the button that increments the current page. */
|
|
20
|
+
nextPageLabel: string;
|
|
21
|
+
/** A label for the button that decrements the current page. */
|
|
22
|
+
previousPageLabel: string;
|
|
23
|
+
/** A label for the button that moves to the first page. */
|
|
24
|
+
firstPageLabel: string;
|
|
25
|
+
/** A label for the button that moves to the last page. */
|
|
26
|
+
lastPageLabel: string;
|
|
27
|
+
/** A label for the range of items within the current page and the length of the whole list. */
|
|
28
|
+
getRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginatorIntl, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatPaginatorIntl>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Object that can used to configure the underlying `MatSelect` inside a `MatPaginator`. */
|
|
34
|
+
interface MatPaginatorSelectConfig {
|
|
35
|
+
/** Whether to center the active option over the trigger. */
|
|
36
|
+
disableOptionCentering?: boolean;
|
|
37
|
+
/** Classes to be passed to the select panel. */
|
|
38
|
+
panelClass?: string | string[] | Set<string> | {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Change event object that is emitted when the user selects a
|
|
44
|
+
* different page size or navigates to another page.
|
|
45
|
+
*/
|
|
46
|
+
declare class PageEvent {
|
|
47
|
+
/** The current page index. */
|
|
48
|
+
pageIndex: number;
|
|
49
|
+
/**
|
|
50
|
+
* Index of the page that was selected previously.
|
|
51
|
+
* @breaking-change 8.0.0 To be made into a required property.
|
|
52
|
+
*/
|
|
53
|
+
previousPageIndex?: number;
|
|
54
|
+
/** The current page size. */
|
|
55
|
+
pageSize: number;
|
|
56
|
+
/** The current total number of items being paged. */
|
|
57
|
+
length: number;
|
|
58
|
+
}
|
|
59
|
+
/** Object that can be used to configure the default options for the paginator module. */
|
|
60
|
+
interface MatPaginatorDefaultOptions {
|
|
61
|
+
/** Number of items to display on a page. By default set to 50. */
|
|
62
|
+
pageSize?: number;
|
|
63
|
+
/** The set of provided page size options to display to the user. */
|
|
64
|
+
pageSizeOptions?: number[];
|
|
65
|
+
/** Whether to hide the page size selection UI from the user. */
|
|
66
|
+
hidePageSize?: boolean;
|
|
67
|
+
/** Whether to show the first/last buttons UI to the user. */
|
|
68
|
+
showFirstLastButtons?: boolean;
|
|
69
|
+
/** The default form-field appearance to apply to the page size options selector. */
|
|
70
|
+
formFieldAppearance?: MatFormFieldAppearance;
|
|
71
|
+
}
|
|
72
|
+
/** Injection token that can be used to provide the default options for the paginator module. */
|
|
73
|
+
declare const MAT_PAGINATOR_DEFAULT_OPTIONS: InjectionToken<MatPaginatorDefaultOptions>;
|
|
74
|
+
/**
|
|
75
|
+
* Component to provide navigation between paged information. Displays the size of the current
|
|
76
|
+
* page, user-selectable options to change that size, what items are being shown, and
|
|
77
|
+
* navigational button to go to the previous or next page.
|
|
78
|
+
*/
|
|
79
|
+
declare class MatPaginator implements OnInit, OnDestroy {
|
|
80
|
+
_intl: MatPaginatorIntl;
|
|
81
|
+
private _changeDetectorRef;
|
|
82
|
+
/** If set, styles the "page size" form field with the designated style. */
|
|
83
|
+
_formFieldAppearance?: MatFormFieldAppearance;
|
|
84
|
+
/** ID for the DOM node containing the paginator's items per page label. */
|
|
85
|
+
readonly _pageSizeLabelId: string;
|
|
86
|
+
private _intlChanges;
|
|
87
|
+
private _isInitialized;
|
|
88
|
+
private _initializedStream;
|
|
89
|
+
/**
|
|
90
|
+
* Theme color of the underlying form controls. This API is supported in M2
|
|
91
|
+
* themes only,it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/paginator/styling.
|
|
92
|
+
*
|
|
93
|
+
* For information on applying color variants in M3, see
|
|
94
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
95
|
+
*/
|
|
96
|
+
color: ThemePalette;
|
|
97
|
+
/** The zero-based page index of the displayed list of items. Defaulted to 0. */
|
|
98
|
+
get pageIndex(): number;
|
|
99
|
+
set pageIndex(value: number);
|
|
100
|
+
private _pageIndex;
|
|
101
|
+
/** The length of the total number of items that are being paginated. Defaulted to 0. */
|
|
102
|
+
get length(): number;
|
|
103
|
+
set length(value: number);
|
|
104
|
+
private _length;
|
|
105
|
+
/** Number of items to display on a page. By default set to 50. */
|
|
106
|
+
get pageSize(): number;
|
|
107
|
+
set pageSize(value: number);
|
|
108
|
+
private _pageSize;
|
|
109
|
+
/** The set of provided page size options to display to the user. */
|
|
110
|
+
get pageSizeOptions(): number[];
|
|
111
|
+
set pageSizeOptions(value: number[] | readonly number[]);
|
|
112
|
+
private _pageSizeOptions;
|
|
113
|
+
/** Whether to hide the page size selection UI from the user. */
|
|
114
|
+
hidePageSize: boolean;
|
|
115
|
+
/** Whether to show the first/last buttons UI to the user. */
|
|
116
|
+
showFirstLastButtons: boolean;
|
|
117
|
+
/** Used to configure the underlying `MatSelect` inside the paginator. */
|
|
118
|
+
selectConfig: MatPaginatorSelectConfig;
|
|
119
|
+
/** Whether the paginator is disabled. */
|
|
120
|
+
disabled: boolean;
|
|
121
|
+
/** Event emitted when the paginator changes the page size or page index. */
|
|
122
|
+
readonly page: EventEmitter<PageEvent>;
|
|
123
|
+
/** Displayed set of page size options. Will be sorted and include current page size. */
|
|
124
|
+
_displayedPageSizeOptions: number[];
|
|
125
|
+
/** Emits when the paginator is initialized. */
|
|
126
|
+
initialized: Observable<void>;
|
|
127
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
128
|
+
constructor(...args: unknown[]);
|
|
129
|
+
ngOnInit(): void;
|
|
130
|
+
ngOnDestroy(): void;
|
|
131
|
+
/** Advances to the next page if it exists. */
|
|
132
|
+
nextPage(): void;
|
|
133
|
+
/** Move back to the previous page if it exists. */
|
|
134
|
+
previousPage(): void;
|
|
135
|
+
/** Move to the first page if not already there. */
|
|
136
|
+
firstPage(): void;
|
|
137
|
+
/** Move to the last page if not already there. */
|
|
138
|
+
lastPage(): void;
|
|
139
|
+
/** Whether there is a previous page. */
|
|
140
|
+
hasPreviousPage(): boolean;
|
|
141
|
+
/** Whether there is a next page. */
|
|
142
|
+
hasNextPage(): boolean;
|
|
143
|
+
/** Calculate the number of pages */
|
|
144
|
+
getNumberOfPages(): number;
|
|
145
|
+
/**
|
|
146
|
+
* Changes the page size so that the first item displayed on the page will still be
|
|
147
|
+
* displayed using the new page size.
|
|
148
|
+
*
|
|
149
|
+
* For example, if the page size is 10 and on the second page (items indexed 10-19) then
|
|
150
|
+
* switching so that the page size is 5 will set the third page as the current page so
|
|
151
|
+
* that the 10th item will still be displayed.
|
|
152
|
+
*/
|
|
153
|
+
_changePageSize(pageSize: number): void;
|
|
154
|
+
/** Checks whether the buttons for going forwards should be disabled. */
|
|
155
|
+
_nextButtonsDisabled(): boolean;
|
|
156
|
+
/** Checks whether the buttons for going backwards should be disabled. */
|
|
157
|
+
_previousButtonsDisabled(): boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Updates the list of page size options to display to the user. Includes making sure that
|
|
160
|
+
* the page size is an option and that the list is sorted.
|
|
161
|
+
*/
|
|
162
|
+
private _updateDisplayedPageSizeOptions;
|
|
163
|
+
/** Emits an event notifying that a change of the paginator's properties has been triggered. */
|
|
164
|
+
private _emitPageEvent;
|
|
165
|
+
/** Navigates to a specific page index. */
|
|
166
|
+
private _navigate;
|
|
167
|
+
/**
|
|
168
|
+
* Callback invoked when one of the navigation buttons is called.
|
|
169
|
+
* @param targetIndex Index to which the paginator should navigate.
|
|
170
|
+
* @param isDisabled Whether the button is disabled.
|
|
171
|
+
*/
|
|
172
|
+
protected _buttonClicked(targetIndex: number, isDisabled: boolean): void;
|
|
173
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginator, never>;
|
|
174
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatPaginator, "mat-paginator", ["matPaginator"], { "color": { "alias": "color"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "length": { "alias": "length"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "selectConfig": { "alias": "selectConfig"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "page": "page"; }, never, never, true, never>;
|
|
175
|
+
static ngAcceptInputType_pageIndex: unknown;
|
|
176
|
+
static ngAcceptInputType_length: unknown;
|
|
177
|
+
static ngAcceptInputType_pageSize: unknown;
|
|
178
|
+
static ngAcceptInputType_hidePageSize: unknown;
|
|
179
|
+
static ngAcceptInputType_showFirstLastButtons: unknown;
|
|
180
|
+
static ngAcceptInputType_disabled: unknown;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export { MAT_PAGINATOR_DEFAULT_OPTIONS, MatPaginator, MatPaginatorIntl, PageEvent };
|
|
184
|
+
export type { MatPaginatorDefaultOptions, MatPaginatorSelectConfig };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, ElementRef } from '@angular/core';
|
|
3
|
+
import { ThemePalette } from './_palette-chunk.js';
|
|
4
|
+
|
|
5
|
+
/** Possible mode for a progress spinner. */
|
|
6
|
+
type ProgressSpinnerMode = 'determinate' | 'indeterminate';
|
|
7
|
+
/** Default `mat-progress-spinner` options that can be overridden. */
|
|
8
|
+
interface MatProgressSpinnerDefaultOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Default theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
11
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/progress-spinner/styling.
|
|
12
|
+
*
|
|
13
|
+
* For information on applying color variants in M3, see
|
|
14
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
15
|
+
*/
|
|
16
|
+
color?: ThemePalette;
|
|
17
|
+
/** Diameter of the spinner. */
|
|
18
|
+
diameter?: number;
|
|
19
|
+
/** Width of the spinner's stroke. */
|
|
20
|
+
strokeWidth?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the animations should be force to be enabled, ignoring if the current environment
|
|
23
|
+
* disables them.
|
|
24
|
+
*/
|
|
25
|
+
_forceAnimations?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** Injection token to be used to override the default options for `mat-progress-spinner`. */
|
|
28
|
+
declare const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<MatProgressSpinnerDefaultOptions>;
|
|
29
|
+
declare class MatProgressSpinner {
|
|
30
|
+
readonly _elementRef: ElementRef<HTMLElement>;
|
|
31
|
+
/** Whether the _mat-animation-noopable class should be applied, disabling animations. */
|
|
32
|
+
_noopAnimations: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
35
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/progress-spinner/styling.
|
|
36
|
+
*
|
|
37
|
+
* For information on applying color variants in M3, see
|
|
38
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
39
|
+
*/
|
|
40
|
+
get color(): string | null | undefined;
|
|
41
|
+
set color(value: string | null | undefined);
|
|
42
|
+
private _color;
|
|
43
|
+
private _defaultColor;
|
|
44
|
+
/** The element of the determinate spinner. */
|
|
45
|
+
_determinateCircle: ElementRef<HTMLElement>;
|
|
46
|
+
constructor(...args: unknown[]);
|
|
47
|
+
/**
|
|
48
|
+
* Mode of the progress bar.
|
|
49
|
+
*
|
|
50
|
+
* Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
|
|
51
|
+
* 'determinate'.
|
|
52
|
+
* Mirrored to mode attribute.
|
|
53
|
+
*/
|
|
54
|
+
mode: ProgressSpinnerMode;
|
|
55
|
+
/** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
|
|
56
|
+
get value(): number;
|
|
57
|
+
set value(v: number);
|
|
58
|
+
private _value;
|
|
59
|
+
/** The diameter of the progress spinner (will set width and height of svg). */
|
|
60
|
+
get diameter(): number;
|
|
61
|
+
set diameter(size: number);
|
|
62
|
+
private _diameter;
|
|
63
|
+
/** Stroke width of the progress spinner. */
|
|
64
|
+
get strokeWidth(): number;
|
|
65
|
+
set strokeWidth(value: number);
|
|
66
|
+
private _strokeWidth;
|
|
67
|
+
/** The radius of the spinner, adjusted for stroke width. */
|
|
68
|
+
_circleRadius(): number;
|
|
69
|
+
/** The view box of the spinner's svg element. */
|
|
70
|
+
_viewBox(): string;
|
|
71
|
+
/** The stroke circumference of the svg circle. */
|
|
72
|
+
_strokeCircumference(): number;
|
|
73
|
+
/** The dash offset of the svg circle. */
|
|
74
|
+
_strokeDashOffset(): number | null;
|
|
75
|
+
/** Stroke width of the circle in percent. */
|
|
76
|
+
_circleStrokeWidth(): number;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinner, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressSpinner, "mat-progress-spinner, mat-spinner", ["matProgressSpinner"], { "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; }, {}, never, never, true, never>;
|
|
79
|
+
static ngAcceptInputType_value: unknown;
|
|
80
|
+
static ngAcceptInputType_diameter: unknown;
|
|
81
|
+
static ngAcceptInputType_strokeWidth: unknown;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Import Progress Spinner instead. Note that the
|
|
85
|
+
* `mat-spinner` selector isn't deprecated.
|
|
86
|
+
* @breaking-change 16.0.0
|
|
87
|
+
*/
|
|
88
|
+
declare const MatSpinner: typeof MatProgressSpinner;
|
|
89
|
+
|
|
90
|
+
export { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS, MatProgressSpinner, MatSpinner };
|
|
91
|
+
export type { MatProgressSpinnerDefaultOptions, ProgressSpinnerMode };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Possible states for a pseudo checkbox.
|
|
6
|
+
* @docs-private
|
|
7
|
+
*/
|
|
8
|
+
type MatPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate';
|
|
9
|
+
/**
|
|
10
|
+
* Component that shows a simplified checkbox without including any kind of "real" checkbox.
|
|
11
|
+
* Meant to be used when the checkbox is purely decorative and a large number of them will be
|
|
12
|
+
* included, such as for the options in a multi-select. Uses no SVGs or complex animations.
|
|
13
|
+
* Note that theming is meant to be handled by the parent element, e.g.
|
|
14
|
+
* `mat-primary .mat-pseudo-checkbox`.
|
|
15
|
+
*
|
|
16
|
+
* Note that this component will be completely invisible to screen-reader users. This is *not*
|
|
17
|
+
* interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly
|
|
18
|
+
* interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail
|
|
19
|
+
* of more complex components that appropriately handle selected / checked state.
|
|
20
|
+
* @docs-private
|
|
21
|
+
*/
|
|
22
|
+
declare class MatPseudoCheckbox {
|
|
23
|
+
_animationsDisabled: boolean;
|
|
24
|
+
/** Display state of the checkbox. */
|
|
25
|
+
state: MatPseudoCheckboxState;
|
|
26
|
+
/** Whether the checkbox is disabled. */
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Appearance of the pseudo checkbox. Default appearance of 'full' renders a checkmark/mixedmark
|
|
30
|
+
* indicator inside a square box. 'minimal' appearance only renders the checkmark/mixedmark.
|
|
31
|
+
*/
|
|
32
|
+
appearance: 'minimal' | 'full';
|
|
33
|
+
constructor(...args: unknown[]);
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPseudoCheckbox, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatPseudoCheckbox, "mat-pseudo-checkbox", never, { "state": { "alias": "state"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class MatPseudoCheckboxModule {
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPseudoCheckboxModule, never>;
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatPseudoCheckboxModule, never, [typeof MatPseudoCheckbox], [typeof MatPseudoCheckbox, typeof i2.BidiModule]>;
|
|
41
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatPseudoCheckboxModule>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { MatPseudoCheckbox, MatPseudoCheckboxModule };
|
|
45
|
+
export type { MatPseudoCheckboxState };
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgZone, ElementRef, Injector, InjectionToken, OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { Platform } from '@angular/cdk/platform';
|
|
4
|
+
|
|
5
|
+
/** Possible states for a ripple element. */
|
|
6
|
+
declare enum RippleState {
|
|
7
|
+
FADING_IN = 0,
|
|
8
|
+
VISIBLE = 1,
|
|
9
|
+
FADING_OUT = 2,
|
|
10
|
+
HIDDEN = 3
|
|
11
|
+
}
|
|
12
|
+
type RippleConfig = {
|
|
13
|
+
color?: string;
|
|
14
|
+
centered?: boolean;
|
|
15
|
+
radius?: number;
|
|
16
|
+
persistent?: boolean;
|
|
17
|
+
animation?: RippleAnimationConfig;
|
|
18
|
+
terminateOnPointerUp?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Interface that describes the configuration for the animation of a ripple.
|
|
22
|
+
* There are two animation phases with different durations for the ripples.
|
|
23
|
+
*/
|
|
24
|
+
interface RippleAnimationConfig {
|
|
25
|
+
/** Duration in milliseconds for the enter animation (expansion from point of contact). */
|
|
26
|
+
enterDuration?: number;
|
|
27
|
+
/** Duration in milliseconds for the exit animation (fade-out). */
|
|
28
|
+
exitDuration?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Reference to a previously launched ripple element.
|
|
32
|
+
*/
|
|
33
|
+
declare class RippleRef {
|
|
34
|
+
private _renderer;
|
|
35
|
+
/** Reference to the ripple HTML element. */
|
|
36
|
+
element: HTMLElement;
|
|
37
|
+
/** Ripple configuration used for the ripple. */
|
|
38
|
+
config: RippleConfig;
|
|
39
|
+
_animationForciblyDisabledThroughCss: boolean;
|
|
40
|
+
/** Current state of the ripple. */
|
|
41
|
+
state: RippleState;
|
|
42
|
+
constructor(_renderer: {
|
|
43
|
+
fadeOutRipple(ref: RippleRef): void;
|
|
44
|
+
},
|
|
45
|
+
/** Reference to the ripple HTML element. */
|
|
46
|
+
element: HTMLElement,
|
|
47
|
+
/** Ripple configuration used for the ripple. */
|
|
48
|
+
config: RippleConfig, _animationForciblyDisabledThroughCss?: boolean);
|
|
49
|
+
/** Fades out the ripple element. */
|
|
50
|
+
fadeOut(): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Interface that describes the target for launching ripples.
|
|
55
|
+
* It defines the ripple configuration and disabled state for interaction ripples.
|
|
56
|
+
* @docs-private
|
|
57
|
+
*/
|
|
58
|
+
interface RippleTarget {
|
|
59
|
+
/** Configuration for ripples that are launched on pointer down. */
|
|
60
|
+
rippleConfig: RippleConfig;
|
|
61
|
+
/** Whether ripples on pointer down should be disabled. */
|
|
62
|
+
rippleDisabled: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Default ripple animation configuration for ripples without an explicit
|
|
66
|
+
* animation config specified.
|
|
67
|
+
*/
|
|
68
|
+
declare const defaultRippleAnimationConfig: {
|
|
69
|
+
enterDuration: number;
|
|
70
|
+
exitDuration: number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Helper service that performs DOM manipulations. Not intended to be used outside this module.
|
|
74
|
+
* The constructor takes a reference to the ripple directive's host element and a map of DOM
|
|
75
|
+
* event handlers to be installed on the element that triggers ripple animations.
|
|
76
|
+
* This will eventually become a custom renderer once Angular support exists.
|
|
77
|
+
* @docs-private
|
|
78
|
+
*/
|
|
79
|
+
declare class RippleRenderer implements EventListenerObject {
|
|
80
|
+
private _target;
|
|
81
|
+
private _ngZone;
|
|
82
|
+
private _platform;
|
|
83
|
+
/** Element where the ripples are being added to. */
|
|
84
|
+
private _containerElement;
|
|
85
|
+
/** Element which triggers the ripple elements on mouse events. */
|
|
86
|
+
private _triggerElement;
|
|
87
|
+
/** Whether the pointer is currently down or not. */
|
|
88
|
+
private _isPointerDown;
|
|
89
|
+
/**
|
|
90
|
+
* Map of currently active ripple references.
|
|
91
|
+
* The ripple reference is mapped to its element event listeners.
|
|
92
|
+
* The reason why `| null` is used is that event listeners are added only
|
|
93
|
+
* when the condition is truthy (see the `_startFadeOutTransition` method).
|
|
94
|
+
*/
|
|
95
|
+
private _activeRipples;
|
|
96
|
+
/** Latest non-persistent ripple that was triggered. */
|
|
97
|
+
private _mostRecentTransientRipple;
|
|
98
|
+
/** Time in milliseconds when the last touchstart event happened. */
|
|
99
|
+
private _lastTouchStartEvent;
|
|
100
|
+
/** Whether pointer-up event listeners have been registered. */
|
|
101
|
+
private _pointerUpEventsRegistered;
|
|
102
|
+
/**
|
|
103
|
+
* Cached dimensions of the ripple container. Set when the first
|
|
104
|
+
* ripple is shown and cleared once no more ripples are visible.
|
|
105
|
+
*/
|
|
106
|
+
private _containerRect;
|
|
107
|
+
private static _eventManager;
|
|
108
|
+
constructor(_target: RippleTarget, _ngZone: NgZone, elementOrElementRef: HTMLElement | ElementRef<HTMLElement>, _platform: Platform, injector?: Injector);
|
|
109
|
+
/**
|
|
110
|
+
* Fades in a ripple at the given coordinates.
|
|
111
|
+
* @param x Coordinate within the element, along the X axis at which to start the ripple.
|
|
112
|
+
* @param y Coordinate within the element, along the Y axis at which to start the ripple.
|
|
113
|
+
* @param config Extra ripple options.
|
|
114
|
+
*/
|
|
115
|
+
fadeInRipple(x: number, y: number, config?: RippleConfig): RippleRef;
|
|
116
|
+
/** Fades out a ripple reference. */
|
|
117
|
+
fadeOutRipple(rippleRef: RippleRef): void;
|
|
118
|
+
/** Fades out all currently active ripples. */
|
|
119
|
+
fadeOutAll(): void;
|
|
120
|
+
/** Fades out all currently active non-persistent ripples. */
|
|
121
|
+
fadeOutAllNonPersistent(): void;
|
|
122
|
+
/** Sets up the trigger event listeners */
|
|
123
|
+
setupTriggerEvents(elementOrElementRef: HTMLElement | ElementRef<HTMLElement>): void;
|
|
124
|
+
/**
|
|
125
|
+
* Handles all registered events.
|
|
126
|
+
* @docs-private
|
|
127
|
+
*/
|
|
128
|
+
handleEvent(event: Event): void;
|
|
129
|
+
/** Method that will be called if the fade-in or fade-in transition completed. */
|
|
130
|
+
private _finishRippleTransition;
|
|
131
|
+
/**
|
|
132
|
+
* Starts the fade-out transition of the given ripple if it's not persistent and the pointer
|
|
133
|
+
* is not held down anymore.
|
|
134
|
+
*/
|
|
135
|
+
private _startFadeOutTransition;
|
|
136
|
+
/** Destroys the given ripple by removing it from the DOM and updating its state. */
|
|
137
|
+
private _destroyRipple;
|
|
138
|
+
/** Function being called whenever the trigger is being pressed using mouse. */
|
|
139
|
+
private _onMousedown;
|
|
140
|
+
/** Function being called whenever the trigger is being pressed using touch. */
|
|
141
|
+
private _onTouchStart;
|
|
142
|
+
/** Function being called whenever the trigger is being released. */
|
|
143
|
+
private _onPointerUp;
|
|
144
|
+
private _getActiveRipples;
|
|
145
|
+
/** Removes previously registered event listeners from the trigger element. */
|
|
146
|
+
_removeTriggerEvents(): void;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** Configurable options for `matRipple`. */
|
|
150
|
+
interface RippleGlobalOptions {
|
|
151
|
+
/**
|
|
152
|
+
* Whether ripples should be disabled. Ripples can be still launched manually by using
|
|
153
|
+
* the `launch()` method. Therefore focus indicators will still show up.
|
|
154
|
+
*/
|
|
155
|
+
disabled?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Default configuration for the animation duration of the ripples. There are two phases with
|
|
158
|
+
* different durations for the ripples: `enter` and `leave`. The durations will be overwritten
|
|
159
|
+
* by the value of `matRippleAnimation` or if animations are disabled.
|
|
160
|
+
*/
|
|
161
|
+
animation?: RippleAnimationConfig;
|
|
162
|
+
/**
|
|
163
|
+
* Whether ripples should start fading out immediately after the mouse or touch is released. By
|
|
164
|
+
* default, ripples will wait for the enter animation to complete and for mouse or touch release.
|
|
165
|
+
*/
|
|
166
|
+
terminateOnPointerUp?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* A namespace to use for ripple loader to allow multiple instances to exist on the same page.
|
|
169
|
+
*/
|
|
170
|
+
namespace?: string;
|
|
171
|
+
}
|
|
172
|
+
/** Injection token that can be used to specify the global ripple options. */
|
|
173
|
+
declare const MAT_RIPPLE_GLOBAL_OPTIONS: InjectionToken<RippleGlobalOptions>;
|
|
174
|
+
declare class MatRipple implements OnInit, OnDestroy, RippleTarget {
|
|
175
|
+
private _elementRef;
|
|
176
|
+
private _animationsDisabled;
|
|
177
|
+
/** Custom color for all ripples. */
|
|
178
|
+
color: string;
|
|
179
|
+
/** Whether the ripples should be visible outside the component's bounds. */
|
|
180
|
+
unbounded: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Whether the ripple always originates from the center of the host element's bounds, rather
|
|
183
|
+
* than originating from the location of the click event.
|
|
184
|
+
*/
|
|
185
|
+
centered: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
|
|
188
|
+
* will be the distance from the center of the ripple to the furthest corner of the host element's
|
|
189
|
+
* bounding rectangle.
|
|
190
|
+
*/
|
|
191
|
+
radius: number;
|
|
192
|
+
/**
|
|
193
|
+
* Configuration for the ripple animation. Allows modifying the enter and exit animation
|
|
194
|
+
* duration of the ripples. The animation durations will be overwritten if animations are
|
|
195
|
+
* disabled.
|
|
196
|
+
*/
|
|
197
|
+
animation: RippleAnimationConfig;
|
|
198
|
+
/**
|
|
199
|
+
* Whether click events will not trigger the ripple. Ripples can be still launched manually
|
|
200
|
+
* by using the `launch()` method.
|
|
201
|
+
*/
|
|
202
|
+
get disabled(): boolean;
|
|
203
|
+
set disabled(value: boolean);
|
|
204
|
+
private _disabled;
|
|
205
|
+
/**
|
|
206
|
+
* The element that triggers the ripple when click events are received.
|
|
207
|
+
* Defaults to the directive's host element.
|
|
208
|
+
*/
|
|
209
|
+
get trigger(): HTMLElement;
|
|
210
|
+
set trigger(trigger: HTMLElement);
|
|
211
|
+
private _trigger;
|
|
212
|
+
/** Renderer for the ripple DOM manipulations. */
|
|
213
|
+
private _rippleRenderer;
|
|
214
|
+
/** Options that are set globally for all ripples. */
|
|
215
|
+
private _globalOptions;
|
|
216
|
+
/** @docs-private Whether ripple directive is initialized and the input bindings are set. */
|
|
217
|
+
_isInitialized: boolean;
|
|
218
|
+
constructor(...args: unknown[]);
|
|
219
|
+
ngOnInit(): void;
|
|
220
|
+
ngOnDestroy(): void;
|
|
221
|
+
/** Fades out all currently showing ripple elements. */
|
|
222
|
+
fadeOutAll(): void;
|
|
223
|
+
/** Fades out all currently showing non-persistent ripple elements. */
|
|
224
|
+
fadeOutAllNonPersistent(): void;
|
|
225
|
+
/**
|
|
226
|
+
* Ripple configuration from the directive's input values.
|
|
227
|
+
* @docs-private Implemented as part of RippleTarget
|
|
228
|
+
*/
|
|
229
|
+
get rippleConfig(): RippleConfig;
|
|
230
|
+
/**
|
|
231
|
+
* Whether ripples on pointer-down are disabled or not.
|
|
232
|
+
* @docs-private Implemented as part of RippleTarget
|
|
233
|
+
*/
|
|
234
|
+
get rippleDisabled(): boolean;
|
|
235
|
+
/** Sets up the trigger event listeners if ripples are enabled. */
|
|
236
|
+
private _setupTriggerEventsIfEnabled;
|
|
237
|
+
/**
|
|
238
|
+
* Launches a manual ripple using the specified ripple configuration.
|
|
239
|
+
* @param config Configuration for the manual ripple.
|
|
240
|
+
*/
|
|
241
|
+
launch(config: RippleConfig): RippleRef;
|
|
242
|
+
/**
|
|
243
|
+
* Launches a manual ripple at the specified coordinates relative to the viewport.
|
|
244
|
+
* @param x Coordinate along the X axis at which to fade-in the ripple. Coordinate
|
|
245
|
+
* should be relative to the viewport.
|
|
246
|
+
* @param y Coordinate along the Y axis at which to fade-in the ripple. Coordinate
|
|
247
|
+
* should be relative to the viewport.
|
|
248
|
+
* @param config Optional ripple configuration for the manual ripple.
|
|
249
|
+
*/
|
|
250
|
+
launch(x: number, y: number, config?: RippleConfig): RippleRef;
|
|
251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRipple, never>;
|
|
252
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatRipple, "[mat-ripple], [matRipple]", ["matRipple"], { "color": { "alias": "matRippleColor"; "required": false; }; "unbounded": { "alias": "matRippleUnbounded"; "required": false; }; "centered": { "alias": "matRippleCentered"; "required": false; }; "radius": { "alias": "matRippleRadius"; "required": false; }; "animation": { "alias": "matRippleAnimation"; "required": false; }; "disabled": { "alias": "matRippleDisabled"; "required": false; }; "trigger": { "alias": "matRippleTrigger"; "required": false; }; }, {}, never, never, true, never>;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export { MAT_RIPPLE_GLOBAL_OPTIONS, MatRipple, RippleRef, RippleRenderer, RippleState, defaultRippleAnimationConfig };
|
|
256
|
+
export type { RippleAnimationConfig, RippleConfig, RippleGlobalOptions, RippleTarget };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Handles attaching ripples on demand.
|
|
6
|
+
*
|
|
7
|
+
* This service allows us to avoid eagerly creating & attaching MatRipples.
|
|
8
|
+
* It works by creating & attaching a ripple only when a component is first interacted with.
|
|
9
|
+
*
|
|
10
|
+
* @docs-private
|
|
11
|
+
*/
|
|
12
|
+
declare class MatRippleLoader implements OnDestroy {
|
|
13
|
+
private _document;
|
|
14
|
+
private _animationsDisabled;
|
|
15
|
+
private _globalRippleOptions;
|
|
16
|
+
private _platform;
|
|
17
|
+
private _ngZone;
|
|
18
|
+
private _injector;
|
|
19
|
+
private _eventCleanups;
|
|
20
|
+
private _hosts;
|
|
21
|
+
constructor();
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Configures the ripple that will be rendered by the ripple loader.
|
|
25
|
+
*
|
|
26
|
+
* Stores the given information about how the ripple should be configured on the host
|
|
27
|
+
* element so that it can later be retrived & used when the ripple is actually created.
|
|
28
|
+
*/
|
|
29
|
+
configureRipple(host: HTMLElement, config: {
|
|
30
|
+
className?: string;
|
|
31
|
+
centered?: boolean;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}): void;
|
|
34
|
+
/** Sets the disabled state on the ripple instance corresponding to the given host element. */
|
|
35
|
+
setDisabled(host: HTMLElement, disabled: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* Handles creating and attaching component internals
|
|
38
|
+
* when a component is initially interacted with.
|
|
39
|
+
*/
|
|
40
|
+
private _onInteraction;
|
|
41
|
+
/** Creates a MatRipple and appends it to the given element. */
|
|
42
|
+
private _createRipple;
|
|
43
|
+
destroyRipple(host: HTMLElement): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRippleLoader, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatRippleLoader>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { MatRippleLoader };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { MatRipple } from './_ripple-chunk.js';
|
|
3
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
4
|
+
|
|
5
|
+
declare class MatRippleModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRippleModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatRippleModule, never, [typeof MatRipple], [typeof MatRipple, typeof i2.BidiModule]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatRippleModule>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { MatRippleModule };
|