@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,127 @@
|
|
|
1
|
+
import { MatFormFieldControlHarness } from './_form-field-control-harness-chunk.js';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
+
import { MatInputHarness } from './_input-harness-chunk.js';
|
|
4
|
+
import { MatSelectHarness } from './select-testing.js';
|
|
5
|
+
import { MatDatepickerInputHarness, MatDateRangeInputHarness } from './_date-range-input-harness-chunk.js';
|
|
6
|
+
import '@angular/material/form-field/testing/control';
|
|
7
|
+
import '@angular/material/core/testing';
|
|
8
|
+
|
|
9
|
+
/** A set of criteria that can be used to filter a list of `MatFormFieldHarness` instances. */
|
|
10
|
+
interface FormFieldHarnessFilters extends BaseHarnessFilters {
|
|
11
|
+
/** Filters based on the text of the form field's floating label. */
|
|
12
|
+
floatingLabelText?: string | RegExp;
|
|
13
|
+
/** Filters based on whether the form field has error messages. */
|
|
14
|
+
hasErrors?: boolean;
|
|
15
|
+
/** Filters based on whether the form field value is valid. */
|
|
16
|
+
isValid?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** A set of criteria that can be used to filter a list of error harness instances. */
|
|
20
|
+
interface ErrorHarnessFilters extends BaseHarnessFilters {
|
|
21
|
+
/** Only find instances whose text matches the given value. */
|
|
22
|
+
text?: string | RegExp;
|
|
23
|
+
}
|
|
24
|
+
/** Harness for interacting with a `mat-error` in tests. */
|
|
25
|
+
declare class MatErrorHarness extends ComponentHarness {
|
|
26
|
+
static hostSelector: string;
|
|
27
|
+
/**
|
|
28
|
+
* Gets a `HarnessPredicate` that can be used to search for an error with specific
|
|
29
|
+
* attributes.
|
|
30
|
+
* @param options Options for filtering which error instances are considered a match.
|
|
31
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
32
|
+
*/
|
|
33
|
+
static with<T extends MatErrorHarness>(this: ComponentHarnessConstructor<T>, options?: ErrorHarnessFilters): HarnessPredicate<T>;
|
|
34
|
+
protected static _getErrorPredicate<T extends MatErrorHarness>(type: ComponentHarnessConstructor<T>, options: ErrorHarnessFilters): HarnessPredicate<T>;
|
|
35
|
+
/** Gets a promise for the error's label text. */
|
|
36
|
+
getText(): Promise<string>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Possible harnesses of controls which can be bound to a form-field. */
|
|
40
|
+
type FormFieldControlHarness = MatInputHarness | MatSelectHarness | MatDatepickerInputHarness | MatDateRangeInputHarness;
|
|
41
|
+
declare class MatFormFieldHarness extends ComponentHarness {
|
|
42
|
+
private _prefixContainer;
|
|
43
|
+
private _suffixContainer;
|
|
44
|
+
private _label;
|
|
45
|
+
private _hints;
|
|
46
|
+
private _inputControl;
|
|
47
|
+
private _selectControl;
|
|
48
|
+
private _datepickerInputControl;
|
|
49
|
+
private _dateRangeInputControl;
|
|
50
|
+
private _textField;
|
|
51
|
+
private _errorHarness;
|
|
52
|
+
static hostSelector: string;
|
|
53
|
+
/**
|
|
54
|
+
* Gets a `HarnessPredicate` that can be used to search for a form field with specific
|
|
55
|
+
* attributes.
|
|
56
|
+
* @param options Options for filtering which form field instances are considered a match.
|
|
57
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
58
|
+
*/
|
|
59
|
+
static with<T extends MatFormFieldHarness>(this: ComponentHarnessConstructor<T>, options?: FormFieldHarnessFilters): HarnessPredicate<T>;
|
|
60
|
+
/** Gets the appearance of the form-field. */
|
|
61
|
+
getAppearance(): Promise<'fill' | 'outline'>;
|
|
62
|
+
/** Whether the form-field has a label. */
|
|
63
|
+
hasLabel(): Promise<boolean>;
|
|
64
|
+
/** Whether the label is currently floating. */
|
|
65
|
+
isLabelFloating(): Promise<boolean>;
|
|
66
|
+
/** Gets the label of the form-field. */
|
|
67
|
+
getLabel(): Promise<string | null>;
|
|
68
|
+
/** Whether the form-field has errors. */
|
|
69
|
+
hasErrors(): Promise<boolean>;
|
|
70
|
+
/** Whether the form-field is disabled. */
|
|
71
|
+
isDisabled(): Promise<boolean>;
|
|
72
|
+
/** Whether the form-field is currently autofilled. */
|
|
73
|
+
isAutofilled(): Promise<boolean>;
|
|
74
|
+
/**
|
|
75
|
+
* Gets the harness of the control that is bound to the form-field. Only
|
|
76
|
+
* default controls such as "MatInputHarness" and "MatSelectHarness" are
|
|
77
|
+
* supported.
|
|
78
|
+
*/
|
|
79
|
+
getControl(): Promise<FormFieldControlHarness | null>;
|
|
80
|
+
/**
|
|
81
|
+
* Gets the harness of the control that is bound to the form-field. Searches
|
|
82
|
+
* for a control that matches the specified harness type.
|
|
83
|
+
*/
|
|
84
|
+
getControl<X extends MatFormFieldControlHarness>(type: ComponentHarnessConstructor<X>): Promise<X | null>;
|
|
85
|
+
/**
|
|
86
|
+
* Gets the harness of the control that is bound to the form-field. Searches
|
|
87
|
+
* for a control that matches the specified harness predicate.
|
|
88
|
+
*/
|
|
89
|
+
getControl<X extends MatFormFieldControlHarness>(type: HarnessPredicate<X>): Promise<X | null>;
|
|
90
|
+
/** Gets the theme color of the form-field. */
|
|
91
|
+
getThemeColor(): Promise<'primary' | 'accent' | 'warn'>;
|
|
92
|
+
/** Gets error messages which are currently displayed in the form-field. */
|
|
93
|
+
getTextErrors(): Promise<string[]>;
|
|
94
|
+
/** Gets all of the error harnesses in the form field. */
|
|
95
|
+
getErrors(filter?: ErrorHarnessFilters): Promise<MatErrorHarness[]>;
|
|
96
|
+
/** Gets hint messages which are currently displayed in the form-field. */
|
|
97
|
+
getTextHints(): Promise<string[]>;
|
|
98
|
+
/** Gets the text inside the prefix element. */
|
|
99
|
+
getPrefixText(): Promise<string>;
|
|
100
|
+
/** Gets the text inside the suffix element. */
|
|
101
|
+
getSuffixText(): Promise<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the form control has been touched. Returns "null"
|
|
104
|
+
* if no form control is set up.
|
|
105
|
+
*/
|
|
106
|
+
isControlTouched(): Promise<boolean | null>;
|
|
107
|
+
/**
|
|
108
|
+
* Whether the form control is dirty. Returns "null"
|
|
109
|
+
* if no form control is set up.
|
|
110
|
+
*/
|
|
111
|
+
isControlDirty(): Promise<boolean | null>;
|
|
112
|
+
/**
|
|
113
|
+
* Whether the form control is valid. Returns "null"
|
|
114
|
+
* if no form control is set up.
|
|
115
|
+
*/
|
|
116
|
+
isControlValid(): Promise<boolean | null>;
|
|
117
|
+
/**
|
|
118
|
+
* Whether the form control is pending validation. Returns "null"
|
|
119
|
+
* if no form control is set up.
|
|
120
|
+
*/
|
|
121
|
+
isControlPending(): Promise<boolean | null>;
|
|
122
|
+
/** Checks whether the form-field control has set up a form control. */
|
|
123
|
+
private _hasFormControl;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export { MatErrorHarness, MatFormFieldControlHarness, MatFormFieldHarness };
|
|
127
|
+
export type { ErrorHarnessFilters, FormFieldControlHarness, FormFieldHarnessFilters };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { MatFormFieldModule, MatLabel } from './_form-field-module-chunk.js';
|
|
2
|
+
export { FloatLabelType, MAT_ERROR, MAT_FORM_FIELD, MAT_FORM_FIELD_DEFAULT_OPTIONS, MAT_PREFIX, MAT_SUFFIX, MatError, MatFormField, MatFormFieldAppearance, MatFormFieldDefaultOptions, MatHint, MatPrefix, MatSuffix, SubscriptSizing } from './_form-field-chunk.js';
|
|
3
|
+
export { MatFormFieldControl } from './_form-field-control-chunk.js';
|
|
4
|
+
import '@angular/core';
|
|
5
|
+
import '@angular/cdk/observers';
|
|
6
|
+
import '@angular/cdk/bidi';
|
|
7
|
+
import '@angular/cdk/coercion';
|
|
8
|
+
import '@angular/forms';
|
|
9
|
+
import './_palette-chunk.js';
|
|
10
|
+
import 'rxjs';
|
|
11
|
+
|
|
12
|
+
/** @docs-private */
|
|
13
|
+
declare function getMatFormFieldPlaceholderConflictError(): Error;
|
|
14
|
+
/** @docs-private */
|
|
15
|
+
declare function getMatFormFieldDuplicatedHintError(align: string): Error;
|
|
16
|
+
/** @docs-private */
|
|
17
|
+
declare function getMatFormFieldMissingControlError(): Error;
|
|
18
|
+
|
|
19
|
+
export { getMatFormFieldDuplicatedHintError, getMatFormFieldMissingControlError, getMatFormFieldPlaceholderConflictError };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ContentContainerComponentHarness, HarnessPredicate, ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
|
|
3
|
+
/** A set of criteria that can be used to filter a list of `MatGridListHarness` instances. */
|
|
4
|
+
interface GridListHarnessFilters extends BaseHarnessFilters {
|
|
5
|
+
}
|
|
6
|
+
/** A set of criteria that can be used to filter a list of `MatTileHarness` instances. */
|
|
7
|
+
interface GridTileHarnessFilters extends BaseHarnessFilters {
|
|
8
|
+
/** Text the grid-tile header should match. */
|
|
9
|
+
headerText?: string | RegExp;
|
|
10
|
+
/** Text the grid-tile footer should match. */
|
|
11
|
+
footerText?: string | RegExp;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Selectors for the various `mat-grid-tile` sections that may contain user content. */
|
|
15
|
+
declare enum MatGridTileSection {
|
|
16
|
+
HEADER = ".mat-grid-tile-header",
|
|
17
|
+
FOOTER = ".mat-grid-tile-footer"
|
|
18
|
+
}
|
|
19
|
+
/** Harness for interacting with a standard `MatGridTitle` in tests. */
|
|
20
|
+
declare class MatGridTileHarness extends ContentContainerComponentHarness<MatGridTileSection> {
|
|
21
|
+
/** The selector for the host element of a `MatGridTile` instance. */
|
|
22
|
+
static hostSelector: string;
|
|
23
|
+
/**
|
|
24
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatGridTileHarness`
|
|
25
|
+
* that meets certain criteria.
|
|
26
|
+
* @param options Options for filtering which dialog instances are considered a match.
|
|
27
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
28
|
+
*/
|
|
29
|
+
static with(options?: GridTileHarnessFilters): HarnessPredicate<MatGridTileHarness>;
|
|
30
|
+
private _header;
|
|
31
|
+
private _footer;
|
|
32
|
+
private _avatar;
|
|
33
|
+
/** Gets the amount of rows that the grid-tile takes up. */
|
|
34
|
+
getRowspan(): Promise<number>;
|
|
35
|
+
/** Gets the amount of columns that the grid-tile takes up. */
|
|
36
|
+
getColspan(): Promise<number>;
|
|
37
|
+
/** Whether the grid-tile has a header. */
|
|
38
|
+
hasHeader(): Promise<boolean>;
|
|
39
|
+
/** Whether the grid-tile has a footer. */
|
|
40
|
+
hasFooter(): Promise<boolean>;
|
|
41
|
+
/** Whether the grid-tile has an avatar. */
|
|
42
|
+
hasAvatar(): Promise<boolean>;
|
|
43
|
+
/** Gets the text of the header if present. */
|
|
44
|
+
getHeaderText(): Promise<string | null>;
|
|
45
|
+
/** Gets the text of the footer if present. */
|
|
46
|
+
getFooterText(): Promise<string | null>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Harness for interacting with a standard `MatGridList` in tests. */
|
|
50
|
+
declare class MatGridListHarness extends ComponentHarness {
|
|
51
|
+
/** The selector for the host element of a `MatGridList` instance. */
|
|
52
|
+
static hostSelector: string;
|
|
53
|
+
/**
|
|
54
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatGridListHarness`
|
|
55
|
+
* that meets certain criteria.
|
|
56
|
+
* @param options Options for filtering which dialog instances are considered a match.
|
|
57
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
58
|
+
*/
|
|
59
|
+
static with(options?: GridListHarnessFilters): HarnessPredicate<MatGridListHarness>;
|
|
60
|
+
/**
|
|
61
|
+
* Tile coordinator that is used by the "MatGridList" for computing
|
|
62
|
+
* positions of tiles. We leverage the coordinator to provide an API
|
|
63
|
+
* for retrieving tiles based on visual tile positions.
|
|
64
|
+
*/
|
|
65
|
+
private _tileCoordinator;
|
|
66
|
+
/** Gets all tiles of the grid-list. */
|
|
67
|
+
getTiles(filters?: GridTileHarnessFilters): Promise<MatGridTileHarness[]>;
|
|
68
|
+
/** Gets the amount of columns of the grid-list. */
|
|
69
|
+
getColumns(): Promise<number>;
|
|
70
|
+
/**
|
|
71
|
+
* Gets a tile of the grid-list that is located at the given location.
|
|
72
|
+
* @param row Zero-based row index.
|
|
73
|
+
* @param column Zero-based column index.
|
|
74
|
+
*/
|
|
75
|
+
getTileAtPosition({ row, column, }: {
|
|
76
|
+
row: number;
|
|
77
|
+
column: number;
|
|
78
|
+
}): Promise<MatGridTileHarness>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { MatGridListHarness, MatGridTileHarness, MatGridTileSection };
|
|
82
|
+
export type { GridListHarnessFilters, GridTileHarnessFilters };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { MatLine, MatLineModule } from './_line-chunk.js';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { AfterContentInit, QueryList, OnInit, AfterContentChecked } from '@angular/core';
|
|
4
|
+
import { NumberInput } from '@angular/cdk/coercion';
|
|
5
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Interface describing a tile.
|
|
9
|
+
* @docs-private
|
|
10
|
+
*/
|
|
11
|
+
interface Tile {
|
|
12
|
+
/** Amount of rows that the tile takes up. */
|
|
13
|
+
rowspan: number;
|
|
14
|
+
/** Amount of columns that the tile takes up. */
|
|
15
|
+
colspan: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Class for determining, from a list of tiles, the (row, col) position of each of those tiles
|
|
19
|
+
* in the grid. This is necessary (rather than just rendering the tiles in normal document flow)
|
|
20
|
+
* because the tiles can have a rowspan.
|
|
21
|
+
*
|
|
22
|
+
* The positioning algorithm greedily places each tile as soon as it encounters a gap in the grid
|
|
23
|
+
* large enough to accommodate it so that the tiles still render in the same order in which they
|
|
24
|
+
* are given.
|
|
25
|
+
*
|
|
26
|
+
* The basis of the algorithm is the use of an array to track the already placed tiles. Each
|
|
27
|
+
* element of the array corresponds to a column, and the value indicates how many cells in that
|
|
28
|
+
* column are already occupied; zero indicates an empty cell. Moving "down" to the next row
|
|
29
|
+
* decrements each value in the tracking array (indicating that the column is one cell closer to
|
|
30
|
+
* being free).
|
|
31
|
+
*
|
|
32
|
+
* @docs-private
|
|
33
|
+
*/
|
|
34
|
+
declare class TileCoordinator {
|
|
35
|
+
/** Tracking array (see class description). */
|
|
36
|
+
tracker: number[];
|
|
37
|
+
/** Index at which the search for the next gap will start. */
|
|
38
|
+
columnIndex: number;
|
|
39
|
+
/** The current row index. */
|
|
40
|
+
rowIndex: number;
|
|
41
|
+
/** Gets the total number of rows occupied by tiles */
|
|
42
|
+
get rowCount(): number;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the total span of rows occupied by tiles.
|
|
45
|
+
* Ex: A list with 1 row that contains a tile with rowspan 2 will have a total rowspan of 2.
|
|
46
|
+
*/
|
|
47
|
+
get rowspan(): number;
|
|
48
|
+
/** The computed (row, col) position of each tile (the output). */
|
|
49
|
+
positions: TilePosition[];
|
|
50
|
+
/**
|
|
51
|
+
* Updates the tile positions.
|
|
52
|
+
* @param numColumns Amount of columns in the grid.
|
|
53
|
+
* @param tiles Tiles to be positioned.
|
|
54
|
+
*/
|
|
55
|
+
update(numColumns: number, tiles: Tile[]): void;
|
|
56
|
+
/** Calculates the row and col position of a tile. */
|
|
57
|
+
private _trackTile;
|
|
58
|
+
/** Finds the next available space large enough to fit the tile. */
|
|
59
|
+
private _findMatchingGap;
|
|
60
|
+
/** Move "down" to the next row. */
|
|
61
|
+
private _nextRow;
|
|
62
|
+
/**
|
|
63
|
+
* Finds the end index (exclusive) of a gap given the index from which to start looking.
|
|
64
|
+
* The gap ends when a non-zero value is found.
|
|
65
|
+
*/
|
|
66
|
+
private _findGapEndIndex;
|
|
67
|
+
/** Update the tile tracker to account for the given tile in the given space. */
|
|
68
|
+
private _markTilePosition;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Simple data structure for tile position (row, col).
|
|
72
|
+
* @docs-private
|
|
73
|
+
*/
|
|
74
|
+
declare class TilePosition {
|
|
75
|
+
row: number;
|
|
76
|
+
col: number;
|
|
77
|
+
constructor(row: number, col: number);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Base interface for a `MatGridList`.
|
|
82
|
+
* @docs-private
|
|
83
|
+
*/
|
|
84
|
+
interface MatGridListBase {
|
|
85
|
+
cols: number;
|
|
86
|
+
gutterSize: string;
|
|
87
|
+
rowHeight: number | string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare class MatGridTile {
|
|
91
|
+
private _element;
|
|
92
|
+
_gridList?: MatGridListBase | null | undefined;
|
|
93
|
+
_rowspan: number;
|
|
94
|
+
_colspan: number;
|
|
95
|
+
constructor(...args: unknown[]);
|
|
96
|
+
/** Amount of rows that the grid tile takes up. */
|
|
97
|
+
get rowspan(): number;
|
|
98
|
+
set rowspan(value: NumberInput);
|
|
99
|
+
/** Amount of columns that the grid tile takes up. */
|
|
100
|
+
get colspan(): number;
|
|
101
|
+
set colspan(value: NumberInput);
|
|
102
|
+
/**
|
|
103
|
+
* Sets the style of the grid-tile element. Needs to be set manually to avoid
|
|
104
|
+
* "Changed after checked" errors that would occur with HostBinding.
|
|
105
|
+
*/
|
|
106
|
+
_setStyle(property: string, value: any): void;
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTile, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatGridTile, "mat-grid-tile", ["matGridTile"], { "rowspan": { "alias": "rowspan"; "required": false; }; "colspan": { "alias": "colspan"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
109
|
+
}
|
|
110
|
+
declare class MatGridTileText implements AfterContentInit {
|
|
111
|
+
private _element;
|
|
112
|
+
_lines: QueryList<MatLine>;
|
|
113
|
+
constructor(...args: unknown[]);
|
|
114
|
+
ngAfterContentInit(): void;
|
|
115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTileText, never>;
|
|
116
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatGridTileText, "mat-grid-tile-header, mat-grid-tile-footer", never, {}, {}, ["_lines"], ["[mat-grid-avatar], [matGridAvatar]", "[mat-line], [matLine]", "*"], true, never>;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
|
120
|
+
* @docs-private
|
|
121
|
+
*/
|
|
122
|
+
declare class MatGridAvatarCssMatStyler {
|
|
123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatGridAvatarCssMatStyler, never>;
|
|
124
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatGridAvatarCssMatStyler, "[mat-grid-avatar], [matGridAvatar]", never, {}, {}, never, never, true, never>;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
|
128
|
+
* @docs-private
|
|
129
|
+
*/
|
|
130
|
+
declare class MatGridTileHeaderCssMatStyler {
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTileHeaderCssMatStyler, never>;
|
|
132
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatGridTileHeaderCssMatStyler, "mat-grid-tile-header", never, {}, {}, never, never, true, never>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
|
136
|
+
* @docs-private
|
|
137
|
+
*/
|
|
138
|
+
declare class MatGridTileFooterCssMatStyler {
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTileFooterCssMatStyler, never>;
|
|
140
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatGridTileFooterCssMatStyler, "mat-grid-tile-footer", never, {}, {}, never, never, true, never>;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** Object that can be styled by the `TileStyler`. */
|
|
144
|
+
interface TileStyleTarget {
|
|
145
|
+
_setListStyle(style: [string, string | null] | null): void;
|
|
146
|
+
_tiles: QueryList<MatGridTile>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare class MatGridList implements MatGridListBase, OnInit, AfterContentChecked, TileStyleTarget {
|
|
150
|
+
private _element;
|
|
151
|
+
private _dir;
|
|
152
|
+
/** Number of columns being rendered. */
|
|
153
|
+
private _cols;
|
|
154
|
+
/** Used for determining the position of each tile in the grid. */
|
|
155
|
+
private _tileCoordinator;
|
|
156
|
+
/**
|
|
157
|
+
* Row height value passed in by user. This can be one of three types:
|
|
158
|
+
* - Number value (ex: "100px"): sets a fixed row height to that value
|
|
159
|
+
* - Ratio value (ex: "4:3"): sets the row height based on width:height ratio
|
|
160
|
+
* - "Fit" mode (ex: "fit"): sets the row height to total height divided by number of rows
|
|
161
|
+
*/
|
|
162
|
+
private _rowHeight;
|
|
163
|
+
/** The amount of space between tiles. This will be something like '5px' or '2em'. */
|
|
164
|
+
private _gutter;
|
|
165
|
+
/** Sets position and size styles for a tile */
|
|
166
|
+
private _tileStyler;
|
|
167
|
+
/** Query list of tiles that are being rendered. */
|
|
168
|
+
_tiles: QueryList<MatGridTile>;
|
|
169
|
+
constructor(...args: unknown[]);
|
|
170
|
+
/** Amount of columns in the grid list. */
|
|
171
|
+
get cols(): number;
|
|
172
|
+
set cols(value: NumberInput);
|
|
173
|
+
/** Size of the grid list's gutter in pixels. */
|
|
174
|
+
get gutterSize(): string;
|
|
175
|
+
set gutterSize(value: string);
|
|
176
|
+
/** Set internal representation of row height from the user-provided value. */
|
|
177
|
+
get rowHeight(): string | number;
|
|
178
|
+
set rowHeight(value: string | number);
|
|
179
|
+
ngOnInit(): void;
|
|
180
|
+
/**
|
|
181
|
+
* The layout calculation is fairly cheap if nothing changes, so there's little cost
|
|
182
|
+
* to run it frequently.
|
|
183
|
+
*/
|
|
184
|
+
ngAfterContentChecked(): void;
|
|
185
|
+
/** Throw a friendly error if cols property is missing */
|
|
186
|
+
private _checkCols;
|
|
187
|
+
/** Default to equal width:height if rowHeight property is missing */
|
|
188
|
+
private _checkRowHeight;
|
|
189
|
+
/** Creates correct Tile Styler subtype based on rowHeight passed in by user */
|
|
190
|
+
private _setTileStyler;
|
|
191
|
+
/** Computes and applies the size and position for all children grid tiles. */
|
|
192
|
+
private _layoutTiles;
|
|
193
|
+
/** Sets style on the main grid-list element, given the style name and value. */
|
|
194
|
+
_setListStyle(style: [string, string | null] | null): void;
|
|
195
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatGridList, never>;
|
|
196
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatGridList, "mat-grid-list", ["matGridList"], { "cols": { "alias": "cols"; "required": false; }; "gutterSize": { "alias": "gutterSize"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; }, {}, ["_tiles"], ["*"], true, never>;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare class MatGridListModule {
|
|
200
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatGridListModule, never>;
|
|
201
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatGridListModule, never, [typeof MatLineModule, typeof MatGridList, typeof MatGridTile, typeof MatGridTileText, typeof MatGridTileHeaderCssMatStyler, typeof MatGridTileFooterCssMatStyler, typeof MatGridAvatarCssMatStyler], [typeof i2.BidiModule, typeof MatGridList, typeof MatGridTile, typeof MatGridTileText, typeof MatLineModule, typeof MatGridTileHeaderCssMatStyler, typeof MatGridTileFooterCssMatStyler, typeof MatGridAvatarCssMatStyler]>;
|
|
202
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatGridListModule>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
declare const ɵTileCoordinator: typeof TileCoordinator;
|
|
206
|
+
|
|
207
|
+
export { MatGridAvatarCssMatStyler, MatGridList, MatGridListModule, MatGridTile, MatGridTileFooterCssMatStyler, MatGridTileHeaderCssMatStyler, MatGridTileText, MatLine, ɵTileCoordinator };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { OnDestroy } from '@angular/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { MatIconRegistry } from './_icon-registry-chunk.js';
|
|
6
|
+
import '@angular/common/http';
|
|
7
|
+
import '@angular/platform-browser';
|
|
8
|
+
|
|
9
|
+
/** Possible types of icons. */
|
|
10
|
+
declare enum IconType {
|
|
11
|
+
SVG = 0,
|
|
12
|
+
FONT = 1
|
|
13
|
+
}
|
|
14
|
+
/** A set of criteria that can be used to filter a list of `MatIconHarness` instances. */
|
|
15
|
+
interface IconHarnessFilters extends BaseHarnessFilters {
|
|
16
|
+
/** Filters based on the typef of the icon. */
|
|
17
|
+
type?: IconType;
|
|
18
|
+
/** Filters based on the name of the icon. */
|
|
19
|
+
name?: string | RegExp;
|
|
20
|
+
/** Filters based on the namespace of the icon. */
|
|
21
|
+
namespace?: string | null | RegExp;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Harness for interacting with a standard mat-icon in tests. */
|
|
25
|
+
declare class MatIconHarness extends ComponentHarness {
|
|
26
|
+
/** The selector for the host element of a `MatIcon` instance. */
|
|
27
|
+
static hostSelector: string;
|
|
28
|
+
/**
|
|
29
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatIconHarness` that meets
|
|
30
|
+
* certain criteria.
|
|
31
|
+
* @param options Options for filtering which icon instances are considered a match.
|
|
32
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
33
|
+
*/
|
|
34
|
+
static with(options?: IconHarnessFilters): HarnessPredicate<MatIconHarness>;
|
|
35
|
+
/** Gets the type of the icon. */
|
|
36
|
+
getType(): Promise<IconType>;
|
|
37
|
+
/** Gets the name of the icon. */
|
|
38
|
+
getName(): Promise<string | null>;
|
|
39
|
+
/** Gets the namespace of the icon. */
|
|
40
|
+
getNamespace(): Promise<string | null>;
|
|
41
|
+
/** Gets whether the icon is inline. */
|
|
42
|
+
isInline(): Promise<boolean>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type PublicApi<T> = {
|
|
46
|
+
[K in keyof T]: T[K] extends (...x: any[]) => T ? (...x: any[]) => PublicApi<T> : T[K];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* A null icon registry that must be imported to allow disabling of custom
|
|
50
|
+
* icons.
|
|
51
|
+
*/
|
|
52
|
+
declare class FakeMatIconRegistry implements PublicApi<MatIconRegistry>, OnDestroy {
|
|
53
|
+
addSvgIcon(): this;
|
|
54
|
+
addSvgIconLiteral(): this;
|
|
55
|
+
addSvgIconInNamespace(): this;
|
|
56
|
+
addSvgIconLiteralInNamespace(): this;
|
|
57
|
+
addSvgIconSet(): this;
|
|
58
|
+
addSvgIconSetLiteral(): this;
|
|
59
|
+
addSvgIconSetInNamespace(): this;
|
|
60
|
+
addSvgIconSetLiteralInNamespace(): this;
|
|
61
|
+
registerFontClassAlias(): this;
|
|
62
|
+
classNameForFontAlias(alias: string): string;
|
|
63
|
+
getDefaultFontSetClass(): string[];
|
|
64
|
+
getSvgIconFromUrl(): Observable<SVGElement>;
|
|
65
|
+
getNamedSvgIcon(): Observable<SVGElement>;
|
|
66
|
+
setDefaultFontSetClass(): this;
|
|
67
|
+
addSvgIconResolver(): this;
|
|
68
|
+
ngOnDestroy(): void;
|
|
69
|
+
private _generateEmptySvg;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FakeMatIconRegistry, never>;
|
|
71
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FakeMatIconRegistry>;
|
|
72
|
+
}
|
|
73
|
+
/** Import this module in tests to install the null icon registry. */
|
|
74
|
+
declare class MatIconTestingModule {
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconTestingModule, never>;
|
|
76
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatIconTestingModule, never, never, never>;
|
|
77
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatIconTestingModule>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { FakeMatIconRegistry, IconType, MatIconHarness, MatIconTestingModule };
|
|
81
|
+
export type { IconHarnessFilters };
|
package/types/icon.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { MAT_ICON_DEFAULT_OPTIONS, MAT_ICON_LOCATION, MatIcon, MatIconDefaultOptions, MatIconLocation, MatIconModule } from './_icon-module-chunk.js';
|
|
2
|
+
export { IconOptions, IconResolver, MatIconRegistry, SafeResourceUrlWithIconOptions, getMatIconFailedToSanitizeLiteralError, getMatIconFailedToSanitizeUrlError, getMatIconNameNotFoundError, getMatIconNoHttpProviderError } from './_icon-registry-chunk.js';
|
|
3
|
+
import '@angular/core';
|
|
4
|
+
import './_palette-chunk.js';
|
|
5
|
+
import '@angular/cdk/bidi';
|
|
6
|
+
import '@angular/common/http';
|
|
7
|
+
import '@angular/platform-browser';
|
|
8
|
+
import 'rxjs';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export { InputHarnessFilters, MatInputHarness } from './_input-harness-chunk.js';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
+
import { MatFormFieldControlHarnessBase } from './_form-field-control-harness-chunk.js';
|
|
4
|
+
import { MatFormFieldControlHarnessFilters } from '@angular/material/form-field/testing/control';
|
|
5
|
+
|
|
6
|
+
/** A set of criteria that can be used to filter a list of `MatNativeSelectHarness` instances. */
|
|
7
|
+
interface NativeSelectHarnessFilters extends MatFormFieldControlHarnessFilters {
|
|
8
|
+
}
|
|
9
|
+
/** A set of criteria that can be used to filter a list of `MatNativeOptionHarness` instances. */
|
|
10
|
+
interface NativeOptionHarnessFilters extends BaseHarnessFilters {
|
|
11
|
+
text?: string | RegExp;
|
|
12
|
+
index?: number;
|
|
13
|
+
isSelected?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Harness for interacting with a native `option` in tests. */
|
|
17
|
+
declare class MatNativeOptionHarness extends ComponentHarness {
|
|
18
|
+
/** Selector used to locate option instances. */
|
|
19
|
+
static hostSelector: string;
|
|
20
|
+
/**
|
|
21
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatNativeOptionHarness` that meets
|
|
22
|
+
* certain criteria.
|
|
23
|
+
* @param options Options for filtering which option instances are considered a match.
|
|
24
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
25
|
+
*/
|
|
26
|
+
static with(options?: NativeOptionHarnessFilters): HarnessPredicate<MatNativeOptionHarness>;
|
|
27
|
+
/** Gets the option's label text. */
|
|
28
|
+
getText(): Promise<string>;
|
|
29
|
+
/** Index of the option within the native `select` element. */
|
|
30
|
+
getIndex(): Promise<number>;
|
|
31
|
+
/** Gets whether the option is disabled. */
|
|
32
|
+
isDisabled(): Promise<boolean>;
|
|
33
|
+
/** Gets whether the option is selected. */
|
|
34
|
+
isSelected(): Promise<boolean>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Harness for interacting with a native `select` in tests. */
|
|
38
|
+
declare class MatNativeSelectHarness extends MatFormFieldControlHarnessBase {
|
|
39
|
+
static hostSelector: string;
|
|
40
|
+
/**
|
|
41
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatNativeSelectHarness` that meets
|
|
42
|
+
* certain criteria.
|
|
43
|
+
* @param options Options for filtering which select instances are considered a match.
|
|
44
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
45
|
+
*/
|
|
46
|
+
static with(options?: NativeSelectHarnessFilters): HarnessPredicate<MatNativeSelectHarness>;
|
|
47
|
+
/** Gets a boolean promise indicating if the select is disabled. */
|
|
48
|
+
isDisabled(): Promise<boolean>;
|
|
49
|
+
/** Gets a boolean promise indicating if the select is required. */
|
|
50
|
+
isRequired(): Promise<boolean>;
|
|
51
|
+
/** Gets a boolean promise indicating if the select is in multi-selection mode. */
|
|
52
|
+
isMultiple(): Promise<boolean>;
|
|
53
|
+
/** Gets the name of the select. */
|
|
54
|
+
getName(): Promise<string>;
|
|
55
|
+
/** Gets the id of the select. */
|
|
56
|
+
getId(): Promise<string>;
|
|
57
|
+
/** Focuses the select and returns a void promise that indicates when the action is complete. */
|
|
58
|
+
focus(): Promise<void>;
|
|
59
|
+
/** Blurs the select and returns a void promise that indicates when the action is complete. */
|
|
60
|
+
blur(): Promise<void>;
|
|
61
|
+
/** Whether the select is focused. */
|
|
62
|
+
isFocused(): Promise<boolean>;
|
|
63
|
+
/** Gets the options inside the select panel. */
|
|
64
|
+
getOptions(filter?: NativeOptionHarnessFilters): Promise<MatNativeOptionHarness[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Selects the options that match the passed-in filter. If the select is in multi-selection
|
|
67
|
+
* mode all options will be clicked, otherwise the harness will pick the first matching option.
|
|
68
|
+
*/
|
|
69
|
+
selectOptions(filter?: NativeOptionHarnessFilters): Promise<void>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { MatNativeOptionHarness, MatNativeSelectHarness };
|
|
73
|
+
export type { NativeOptionHarnessFilters, NativeSelectHarnessFilters };
|