@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,1068 @@
|
|
|
1
|
+
import { MAT_OPTION_PARENT_COMPONENT, MatOption, MAT_OPTGROUP, MatOptionSelectionChange, _countGroupLabelsBeforeOption, _getOptionScrollPosition } from './_option-chunk.mjs';
|
|
2
|
+
export { MatOptgroup } from './_option-chunk.mjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, inject, ChangeDetectorRef, ElementRef, EventEmitter, booleanAttribute, TemplateRef, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, ContentChildren, Input, Output, Directive, forwardRef, Injector, EnvironmentInjector, ViewContainerRef, NgZone, Renderer2, afterNextRender, NgModule } from '@angular/core';
|
|
5
|
+
import { Directionality, BidiModule } from '@angular/cdk/bidi';
|
|
6
|
+
import { ViewportRuler, CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
7
|
+
import { createRepositionScrollStrategy, createOverlayRef, OverlayConfig, createFlexibleConnectedPositionStrategy, OverlayModule } from '@angular/cdk/overlay';
|
|
8
|
+
import { _IdGenerator, ActiveDescendantKeyManager, removeAriaReferencedId, addAriaReferencedId } from '@angular/cdk/a11y';
|
|
9
|
+
import { Platform, _getFocusedElementPierceShadowDom, _getEventTarget } from '@angular/cdk/platform';
|
|
10
|
+
import { Subscription, Subject, merge, of, defer, Observable } from 'rxjs';
|
|
11
|
+
import { _animationsDisabled } from './_animation-chunk.mjs';
|
|
12
|
+
import { hasModifierKey, ESCAPE, ENTER, TAB, UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes';
|
|
13
|
+
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
14
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
15
|
+
import { coerceArray } from '@angular/cdk/coercion';
|
|
16
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
17
|
+
import { filter, map, startWith, switchMap, tap, delay, take } from 'rxjs/operators';
|
|
18
|
+
import { MAT_FORM_FIELD } from './_form-field-chunk.mjs';
|
|
19
|
+
import { MatOptionModule } from './_option-module-chunk.mjs';
|
|
20
|
+
import './_ripple-chunk.mjs';
|
|
21
|
+
import '@angular/cdk/private';
|
|
22
|
+
import './_pseudo-checkbox-chunk.mjs';
|
|
23
|
+
import './_structural-styles-chunk.mjs';
|
|
24
|
+
import '@angular/common';
|
|
25
|
+
import '@angular/cdk/observers/private';
|
|
26
|
+
import './_ripple-module-chunk.mjs';
|
|
27
|
+
import './_pseudo-checkbox-module-chunk.mjs';
|
|
28
|
+
|
|
29
|
+
class MatAutocompleteSelectedEvent {
|
|
30
|
+
source;
|
|
31
|
+
option;
|
|
32
|
+
constructor(source, option) {
|
|
33
|
+
this.source = source;
|
|
34
|
+
this.option = option;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS = new InjectionToken('mat-autocomplete-default-options', {
|
|
38
|
+
providedIn: 'root',
|
|
39
|
+
factory: () => ({
|
|
40
|
+
autoActiveFirstOption: false,
|
|
41
|
+
autoSelectActiveOption: false,
|
|
42
|
+
hideSingleSelectionIndicator: false,
|
|
43
|
+
requireSelection: false,
|
|
44
|
+
hasBackdrop: false
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
class MatAutocomplete {
|
|
48
|
+
_changeDetectorRef = inject(ChangeDetectorRef);
|
|
49
|
+
_elementRef = inject(ElementRef);
|
|
50
|
+
_defaults = inject(MAT_AUTOCOMPLETE_DEFAULT_OPTIONS);
|
|
51
|
+
_animationsDisabled = _animationsDisabled();
|
|
52
|
+
_activeOptionChanges = Subscription.EMPTY;
|
|
53
|
+
_keyManager;
|
|
54
|
+
showPanel = false;
|
|
55
|
+
get isOpen() {
|
|
56
|
+
return this._isOpen && this.showPanel;
|
|
57
|
+
}
|
|
58
|
+
_isOpen = false;
|
|
59
|
+
_latestOpeningTrigger;
|
|
60
|
+
_setColor(value) {
|
|
61
|
+
this._color = value;
|
|
62
|
+
this._changeDetectorRef.markForCheck();
|
|
63
|
+
}
|
|
64
|
+
_color;
|
|
65
|
+
template;
|
|
66
|
+
panel;
|
|
67
|
+
options;
|
|
68
|
+
optionGroups;
|
|
69
|
+
ariaLabel;
|
|
70
|
+
ariaLabelledby;
|
|
71
|
+
displayWith = null;
|
|
72
|
+
autoActiveFirstOption;
|
|
73
|
+
autoSelectActiveOption;
|
|
74
|
+
requireSelection;
|
|
75
|
+
panelWidth;
|
|
76
|
+
disableRipple = false;
|
|
77
|
+
optionSelected = new EventEmitter();
|
|
78
|
+
opened = new EventEmitter();
|
|
79
|
+
closed = new EventEmitter();
|
|
80
|
+
optionActivated = new EventEmitter();
|
|
81
|
+
set classList(value) {
|
|
82
|
+
this._classList = value;
|
|
83
|
+
this._elementRef.nativeElement.className = '';
|
|
84
|
+
}
|
|
85
|
+
_classList;
|
|
86
|
+
get hideSingleSelectionIndicator() {
|
|
87
|
+
return this._hideSingleSelectionIndicator;
|
|
88
|
+
}
|
|
89
|
+
set hideSingleSelectionIndicator(value) {
|
|
90
|
+
this._hideSingleSelectionIndicator = value;
|
|
91
|
+
this._syncParentProperties();
|
|
92
|
+
}
|
|
93
|
+
_hideSingleSelectionIndicator;
|
|
94
|
+
_syncParentProperties() {
|
|
95
|
+
if (this.options) {
|
|
96
|
+
for (const option of this.options) {
|
|
97
|
+
option._changeDetectorRef.markForCheck();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
id = inject(_IdGenerator).getId('mat-autocomplete-');
|
|
102
|
+
inertGroups;
|
|
103
|
+
constructor() {
|
|
104
|
+
const platform = inject(Platform);
|
|
105
|
+
this.inertGroups = platform?.SAFARI || false;
|
|
106
|
+
this.autoActiveFirstOption = !!this._defaults.autoActiveFirstOption;
|
|
107
|
+
this.autoSelectActiveOption = !!this._defaults.autoSelectActiveOption;
|
|
108
|
+
this.requireSelection = !!this._defaults.requireSelection;
|
|
109
|
+
this._hideSingleSelectionIndicator = this._defaults.hideSingleSelectionIndicator ?? false;
|
|
110
|
+
}
|
|
111
|
+
ngAfterContentInit() {
|
|
112
|
+
this._keyManager = new ActiveDescendantKeyManager(this.options).withWrap().skipPredicate(this._skipPredicate);
|
|
113
|
+
this._activeOptionChanges = this._keyManager.change.subscribe(index => {
|
|
114
|
+
if (this.isOpen) {
|
|
115
|
+
this.optionActivated.emit({
|
|
116
|
+
source: this,
|
|
117
|
+
option: this.options.toArray()[index] || null
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
this._setVisibility();
|
|
122
|
+
}
|
|
123
|
+
ngOnDestroy() {
|
|
124
|
+
this._keyManager?.destroy();
|
|
125
|
+
this._activeOptionChanges.unsubscribe();
|
|
126
|
+
}
|
|
127
|
+
_setScrollTop(scrollTop) {
|
|
128
|
+
if (this.panel) {
|
|
129
|
+
this.panel.nativeElement.scrollTop = scrollTop;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
_getScrollTop() {
|
|
133
|
+
return this.panel ? this.panel.nativeElement.scrollTop : 0;
|
|
134
|
+
}
|
|
135
|
+
_setVisibility() {
|
|
136
|
+
this.showPanel = !!this.options?.length;
|
|
137
|
+
this._changeDetectorRef.markForCheck();
|
|
138
|
+
}
|
|
139
|
+
_emitSelectEvent(option) {
|
|
140
|
+
const event = new MatAutocompleteSelectedEvent(this, option);
|
|
141
|
+
this.optionSelected.emit(event);
|
|
142
|
+
}
|
|
143
|
+
_getPanelAriaLabelledby(labelId) {
|
|
144
|
+
if (this.ariaLabel) {
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
const labelExpression = labelId ? labelId + ' ' : '';
|
|
148
|
+
return this.ariaLabelledby ? labelExpression + this.ariaLabelledby : labelId;
|
|
149
|
+
}
|
|
150
|
+
_skipPredicate() {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
154
|
+
minVersion: "12.0.0",
|
|
155
|
+
version: "22.0.0-next.1",
|
|
156
|
+
ngImport: i0,
|
|
157
|
+
type: MatAutocomplete,
|
|
158
|
+
deps: [],
|
|
159
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
160
|
+
});
|
|
161
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
162
|
+
minVersion: "16.1.0",
|
|
163
|
+
version: "22.0.0-next.1",
|
|
164
|
+
type: MatAutocomplete,
|
|
165
|
+
isStandalone: true,
|
|
166
|
+
selector: "mat-autocomplete",
|
|
167
|
+
inputs: {
|
|
168
|
+
ariaLabel: ["aria-label", "ariaLabel"],
|
|
169
|
+
ariaLabelledby: ["aria-labelledby", "ariaLabelledby"],
|
|
170
|
+
displayWith: "displayWith",
|
|
171
|
+
autoActiveFirstOption: ["autoActiveFirstOption", "autoActiveFirstOption", booleanAttribute],
|
|
172
|
+
autoSelectActiveOption: ["autoSelectActiveOption", "autoSelectActiveOption", booleanAttribute],
|
|
173
|
+
requireSelection: ["requireSelection", "requireSelection", booleanAttribute],
|
|
174
|
+
panelWidth: "panelWidth",
|
|
175
|
+
disableRipple: ["disableRipple", "disableRipple", booleanAttribute],
|
|
176
|
+
classList: ["class", "classList"],
|
|
177
|
+
hideSingleSelectionIndicator: ["hideSingleSelectionIndicator", "hideSingleSelectionIndicator", booleanAttribute]
|
|
178
|
+
},
|
|
179
|
+
outputs: {
|
|
180
|
+
optionSelected: "optionSelected",
|
|
181
|
+
opened: "opened",
|
|
182
|
+
closed: "closed",
|
|
183
|
+
optionActivated: "optionActivated"
|
|
184
|
+
},
|
|
185
|
+
host: {
|
|
186
|
+
classAttribute: "mat-mdc-autocomplete"
|
|
187
|
+
},
|
|
188
|
+
providers: [{
|
|
189
|
+
provide: MAT_OPTION_PARENT_COMPONENT,
|
|
190
|
+
useExisting: MatAutocomplete
|
|
191
|
+
}],
|
|
192
|
+
queries: [{
|
|
193
|
+
propertyName: "options",
|
|
194
|
+
predicate: MatOption,
|
|
195
|
+
descendants: true
|
|
196
|
+
}, {
|
|
197
|
+
propertyName: "optionGroups",
|
|
198
|
+
predicate: MAT_OPTGROUP,
|
|
199
|
+
descendants: true
|
|
200
|
+
}],
|
|
201
|
+
viewQueries: [{
|
|
202
|
+
propertyName: "template",
|
|
203
|
+
first: true,
|
|
204
|
+
predicate: TemplateRef,
|
|
205
|
+
descendants: true,
|
|
206
|
+
static: true
|
|
207
|
+
}, {
|
|
208
|
+
propertyName: "panel",
|
|
209
|
+
first: true,
|
|
210
|
+
predicate: ["panel"],
|
|
211
|
+
descendants: true
|
|
212
|
+
}],
|
|
213
|
+
exportAs: ["matAutocomplete"],
|
|
214
|
+
ngImport: i0,
|
|
215
|
+
template: "<ng-template let-formFieldId=\"id\">\n <div\n class=\"mat-mdc-autocomplete-panel mdc-menu-surface mdc-menu-surface--open\"\n role=\"listbox\"\n [id]=\"id\"\n [class]=\"_classList\"\n [class.mat-mdc-autocomplete-visible]=\"showPanel\"\n [class.mat-mdc-autocomplete-hidden]=\"!showPanel\"\n [class.mat-autocomplete-panel-animations-enabled]=\"!_animationsDisabled\"\n [class.mat-primary]=\"_color === 'primary'\"\n [class.mat-accent]=\"_color === 'accent'\"\n [class.mat-warn]=\"_color === 'warn'\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"_getPanelAriaLabelledby(formFieldId)\"\n #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n",
|
|
216
|
+
styles: ["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden,.cdk-overlay-pane:has(>.mat-mdc-autocomplete-hidden){visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"],
|
|
217
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
218
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
222
|
+
minVersion: "12.0.0",
|
|
223
|
+
version: "22.0.0-next.1",
|
|
224
|
+
ngImport: i0,
|
|
225
|
+
type: MatAutocomplete,
|
|
226
|
+
decorators: [{
|
|
227
|
+
type: Component,
|
|
228
|
+
args: [{
|
|
229
|
+
selector: 'mat-autocomplete',
|
|
230
|
+
encapsulation: ViewEncapsulation.None,
|
|
231
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
232
|
+
exportAs: 'matAutocomplete',
|
|
233
|
+
host: {
|
|
234
|
+
'class': 'mat-mdc-autocomplete'
|
|
235
|
+
},
|
|
236
|
+
providers: [{
|
|
237
|
+
provide: MAT_OPTION_PARENT_COMPONENT,
|
|
238
|
+
useExisting: MatAutocomplete
|
|
239
|
+
}],
|
|
240
|
+
template: "<ng-template let-formFieldId=\"id\">\n <div\n class=\"mat-mdc-autocomplete-panel mdc-menu-surface mdc-menu-surface--open\"\n role=\"listbox\"\n [id]=\"id\"\n [class]=\"_classList\"\n [class.mat-mdc-autocomplete-visible]=\"showPanel\"\n [class.mat-mdc-autocomplete-hidden]=\"!showPanel\"\n [class.mat-autocomplete-panel-animations-enabled]=\"!_animationsDisabled\"\n [class.mat-primary]=\"_color === 'primary'\"\n [class.mat-accent]=\"_color === 'accent'\"\n [class.mat-warn]=\"_color === 'warn'\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"_getPanelAriaLabelledby(formFieldId)\"\n #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n",
|
|
241
|
+
styles: ["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden,.cdk-overlay-pane:has(>.mat-mdc-autocomplete-hidden){visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"]
|
|
242
|
+
}]
|
|
243
|
+
}],
|
|
244
|
+
ctorParameters: () => [],
|
|
245
|
+
propDecorators: {
|
|
246
|
+
template: [{
|
|
247
|
+
type: ViewChild,
|
|
248
|
+
args: [TemplateRef, {
|
|
249
|
+
static: true
|
|
250
|
+
}]
|
|
251
|
+
}],
|
|
252
|
+
panel: [{
|
|
253
|
+
type: ViewChild,
|
|
254
|
+
args: ['panel']
|
|
255
|
+
}],
|
|
256
|
+
options: [{
|
|
257
|
+
type: ContentChildren,
|
|
258
|
+
args: [MatOption, {
|
|
259
|
+
descendants: true
|
|
260
|
+
}]
|
|
261
|
+
}],
|
|
262
|
+
optionGroups: [{
|
|
263
|
+
type: ContentChildren,
|
|
264
|
+
args: [MAT_OPTGROUP, {
|
|
265
|
+
descendants: true
|
|
266
|
+
}]
|
|
267
|
+
}],
|
|
268
|
+
ariaLabel: [{
|
|
269
|
+
type: Input,
|
|
270
|
+
args: ['aria-label']
|
|
271
|
+
}],
|
|
272
|
+
ariaLabelledby: [{
|
|
273
|
+
type: Input,
|
|
274
|
+
args: ['aria-labelledby']
|
|
275
|
+
}],
|
|
276
|
+
displayWith: [{
|
|
277
|
+
type: Input
|
|
278
|
+
}],
|
|
279
|
+
autoActiveFirstOption: [{
|
|
280
|
+
type: Input,
|
|
281
|
+
args: [{
|
|
282
|
+
transform: booleanAttribute
|
|
283
|
+
}]
|
|
284
|
+
}],
|
|
285
|
+
autoSelectActiveOption: [{
|
|
286
|
+
type: Input,
|
|
287
|
+
args: [{
|
|
288
|
+
transform: booleanAttribute
|
|
289
|
+
}]
|
|
290
|
+
}],
|
|
291
|
+
requireSelection: [{
|
|
292
|
+
type: Input,
|
|
293
|
+
args: [{
|
|
294
|
+
transform: booleanAttribute
|
|
295
|
+
}]
|
|
296
|
+
}],
|
|
297
|
+
panelWidth: [{
|
|
298
|
+
type: Input
|
|
299
|
+
}],
|
|
300
|
+
disableRipple: [{
|
|
301
|
+
type: Input,
|
|
302
|
+
args: [{
|
|
303
|
+
transform: booleanAttribute
|
|
304
|
+
}]
|
|
305
|
+
}],
|
|
306
|
+
optionSelected: [{
|
|
307
|
+
type: Output
|
|
308
|
+
}],
|
|
309
|
+
opened: [{
|
|
310
|
+
type: Output
|
|
311
|
+
}],
|
|
312
|
+
closed: [{
|
|
313
|
+
type: Output
|
|
314
|
+
}],
|
|
315
|
+
optionActivated: [{
|
|
316
|
+
type: Output
|
|
317
|
+
}],
|
|
318
|
+
classList: [{
|
|
319
|
+
type: Input,
|
|
320
|
+
args: ['class']
|
|
321
|
+
}],
|
|
322
|
+
hideSingleSelectionIndicator: [{
|
|
323
|
+
type: Input,
|
|
324
|
+
args: [{
|
|
325
|
+
transform: booleanAttribute
|
|
326
|
+
}]
|
|
327
|
+
}]
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
class MatAutocompleteOrigin {
|
|
332
|
+
elementRef = inject(ElementRef);
|
|
333
|
+
constructor() {}
|
|
334
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
335
|
+
minVersion: "12.0.0",
|
|
336
|
+
version: "22.0.0-next.1",
|
|
337
|
+
ngImport: i0,
|
|
338
|
+
type: MatAutocompleteOrigin,
|
|
339
|
+
deps: [],
|
|
340
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
341
|
+
});
|
|
342
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
343
|
+
minVersion: "14.0.0",
|
|
344
|
+
version: "22.0.0-next.1",
|
|
345
|
+
type: MatAutocompleteOrigin,
|
|
346
|
+
isStandalone: true,
|
|
347
|
+
selector: "[matAutocompleteOrigin]",
|
|
348
|
+
exportAs: ["matAutocompleteOrigin"],
|
|
349
|
+
ngImport: i0
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
353
|
+
minVersion: "12.0.0",
|
|
354
|
+
version: "22.0.0-next.1",
|
|
355
|
+
ngImport: i0,
|
|
356
|
+
type: MatAutocompleteOrigin,
|
|
357
|
+
decorators: [{
|
|
358
|
+
type: Directive,
|
|
359
|
+
args: [{
|
|
360
|
+
selector: '[matAutocompleteOrigin]',
|
|
361
|
+
exportAs: 'matAutocompleteOrigin'
|
|
362
|
+
}]
|
|
363
|
+
}],
|
|
364
|
+
ctorParameters: () => []
|
|
365
|
+
});
|
|
366
|
+
|
|
367
|
+
const MAT_AUTOCOMPLETE_VALUE_ACCESSOR = {
|
|
368
|
+
provide: NG_VALUE_ACCESSOR,
|
|
369
|
+
useExisting: forwardRef(() => MatAutocompleteTrigger),
|
|
370
|
+
multi: true
|
|
371
|
+
};
|
|
372
|
+
function getMatAutocompleteMissingPanelError() {
|
|
373
|
+
return Error('Attempting to open an undefined instance of `mat-autocomplete`. ' + 'Make sure that the id passed to the `matAutocomplete` is correct and that ' + "you're attempting to open it after the ngAfterContentInit hook.");
|
|
374
|
+
}
|
|
375
|
+
const MAT_AUTOCOMPLETE_SCROLL_STRATEGY = new InjectionToken('mat-autocomplete-scroll-strategy', {
|
|
376
|
+
providedIn: 'root',
|
|
377
|
+
factory: () => {
|
|
378
|
+
const injector = inject(Injector);
|
|
379
|
+
return () => createRepositionScrollStrategy(injector);
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
class MatAutocompleteTrigger {
|
|
383
|
+
_environmentInjector = inject(EnvironmentInjector);
|
|
384
|
+
_element = inject(ElementRef);
|
|
385
|
+
_injector = inject(Injector);
|
|
386
|
+
_viewContainerRef = inject(ViewContainerRef);
|
|
387
|
+
_zone = inject(NgZone);
|
|
388
|
+
_changeDetectorRef = inject(ChangeDetectorRef);
|
|
389
|
+
_dir = inject(Directionality, {
|
|
390
|
+
optional: true
|
|
391
|
+
});
|
|
392
|
+
_formField = inject(MAT_FORM_FIELD, {
|
|
393
|
+
optional: true,
|
|
394
|
+
host: true
|
|
395
|
+
});
|
|
396
|
+
_viewportRuler = inject(ViewportRuler);
|
|
397
|
+
_scrollStrategy = inject(MAT_AUTOCOMPLETE_SCROLL_STRATEGY);
|
|
398
|
+
_renderer = inject(Renderer2);
|
|
399
|
+
_animationsDisabled = _animationsDisabled();
|
|
400
|
+
_defaults = inject(MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, {
|
|
401
|
+
optional: true
|
|
402
|
+
});
|
|
403
|
+
_overlayRef = null;
|
|
404
|
+
_portal;
|
|
405
|
+
_componentDestroyed = false;
|
|
406
|
+
_initialized = new Subject();
|
|
407
|
+
_keydownSubscription;
|
|
408
|
+
_outsideClickSubscription;
|
|
409
|
+
_cleanupWindowBlur;
|
|
410
|
+
_previousValue = null;
|
|
411
|
+
_valueOnAttach = null;
|
|
412
|
+
_valueOnLastKeydown = null;
|
|
413
|
+
_positionStrategy;
|
|
414
|
+
_manuallyFloatingLabel = false;
|
|
415
|
+
_closingActionsSubscription;
|
|
416
|
+
_viewportSubscription = Subscription.EMPTY;
|
|
417
|
+
_breakpointObserver = inject(BreakpointObserver);
|
|
418
|
+
_handsetLandscapeSubscription = Subscription.EMPTY;
|
|
419
|
+
_canOpenOnNextFocus = true;
|
|
420
|
+
_valueBeforeAutoSelection;
|
|
421
|
+
_pendingAutoselectedOption = null;
|
|
422
|
+
_closeKeyEventStream = new Subject();
|
|
423
|
+
_overlayPanelClass = coerceArray(this._defaults?.overlayPanelClass || []);
|
|
424
|
+
_windowBlurHandler = () => {
|
|
425
|
+
this._canOpenOnNextFocus = this.panelOpen || !this._hasFocus();
|
|
426
|
+
};
|
|
427
|
+
_onChange = () => {};
|
|
428
|
+
_onTouched = () => {};
|
|
429
|
+
autocomplete;
|
|
430
|
+
position = 'auto';
|
|
431
|
+
connectedTo;
|
|
432
|
+
autocompleteAttribute = 'off';
|
|
433
|
+
autocompleteDisabled = false;
|
|
434
|
+
constructor() {}
|
|
435
|
+
_aboveClass = 'mat-mdc-autocomplete-panel-above';
|
|
436
|
+
ngAfterViewInit() {
|
|
437
|
+
this._initialized.next();
|
|
438
|
+
this._initialized.complete();
|
|
439
|
+
this._cleanupWindowBlur = this._renderer.listen('window', 'blur', this._windowBlurHandler);
|
|
440
|
+
}
|
|
441
|
+
ngOnChanges(changes) {
|
|
442
|
+
if (changes['position'] && this._positionStrategy) {
|
|
443
|
+
this._setStrategyPositions(this._positionStrategy);
|
|
444
|
+
if (this.panelOpen) {
|
|
445
|
+
this._overlayRef.updatePosition();
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
ngOnDestroy() {
|
|
450
|
+
this._cleanupWindowBlur?.();
|
|
451
|
+
this._handsetLandscapeSubscription.unsubscribe();
|
|
452
|
+
this._viewportSubscription.unsubscribe();
|
|
453
|
+
this._componentDestroyed = true;
|
|
454
|
+
this._destroyPanel();
|
|
455
|
+
this._closeKeyEventStream.complete();
|
|
456
|
+
this._clearFromModal();
|
|
457
|
+
}
|
|
458
|
+
get panelOpen() {
|
|
459
|
+
return this._overlayAttached && this.autocomplete.showPanel;
|
|
460
|
+
}
|
|
461
|
+
_overlayAttached = false;
|
|
462
|
+
openPanel() {
|
|
463
|
+
this._openPanelInternal();
|
|
464
|
+
}
|
|
465
|
+
closePanel() {
|
|
466
|
+
this._resetLabel();
|
|
467
|
+
if (!this._overlayAttached) {
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
if (this.panelOpen) {
|
|
471
|
+
this._zone.run(() => {
|
|
472
|
+
this.autocomplete.closed.emit();
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
if (this.autocomplete._latestOpeningTrigger === this) {
|
|
476
|
+
this.autocomplete._isOpen = false;
|
|
477
|
+
this.autocomplete._latestOpeningTrigger = null;
|
|
478
|
+
}
|
|
479
|
+
this._overlayAttached = false;
|
|
480
|
+
this._pendingAutoselectedOption = null;
|
|
481
|
+
if (this._overlayRef && this._overlayRef.hasAttached()) {
|
|
482
|
+
this._overlayRef.detach();
|
|
483
|
+
this._closingActionsSubscription.unsubscribe();
|
|
484
|
+
}
|
|
485
|
+
this._updatePanelState();
|
|
486
|
+
if (!this._componentDestroyed) {
|
|
487
|
+
this._changeDetectorRef.detectChanges();
|
|
488
|
+
}
|
|
489
|
+
if (this._trackedModal) {
|
|
490
|
+
removeAriaReferencedId(this._trackedModal, 'aria-owns', this.autocomplete.id);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
updatePosition() {
|
|
494
|
+
if (this._overlayAttached) {
|
|
495
|
+
this._overlayRef.updatePosition();
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
get panelClosingActions() {
|
|
499
|
+
return merge(this.optionSelections, this.autocomplete._keyManager.tabOut.pipe(filter(() => this._overlayAttached)), this._closeKeyEventStream, this._getOutsideClickStream(), this._overlayRef ? this._overlayRef.detachments().pipe(filter(() => this._overlayAttached)) : of()).pipe(map(event => event instanceof MatOptionSelectionChange ? event : null));
|
|
500
|
+
}
|
|
501
|
+
optionSelections = defer(() => {
|
|
502
|
+
const options = this.autocomplete ? this.autocomplete.options : null;
|
|
503
|
+
if (options) {
|
|
504
|
+
return options.changes.pipe(startWith(options), switchMap(() => merge(...options.map(option => option.onSelectionChange))));
|
|
505
|
+
}
|
|
506
|
+
return this._initialized.pipe(switchMap(() => this.optionSelections));
|
|
507
|
+
});
|
|
508
|
+
get activeOption() {
|
|
509
|
+
if (this.autocomplete && this.autocomplete._keyManager) {
|
|
510
|
+
return this.autocomplete._keyManager.activeItem;
|
|
511
|
+
}
|
|
512
|
+
return null;
|
|
513
|
+
}
|
|
514
|
+
_getOutsideClickStream() {
|
|
515
|
+
return new Observable(observer => {
|
|
516
|
+
const listener = event => {
|
|
517
|
+
const clickTarget = _getEventTarget(event);
|
|
518
|
+
const formField = this._formField ? this._formField.getConnectedOverlayOrigin().nativeElement : null;
|
|
519
|
+
const customOrigin = this.connectedTo ? this.connectedTo.elementRef.nativeElement : null;
|
|
520
|
+
if (this._overlayAttached && clickTarget !== this._element.nativeElement && !this._hasFocus() && (!formField || !formField.contains(clickTarget)) && (!customOrigin || !customOrigin.contains(clickTarget)) && !!this._overlayRef && !this._overlayRef.overlayElement.contains(clickTarget)) {
|
|
521
|
+
observer.next(event);
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
const cleanups = [this._renderer.listen('document', 'click', listener), this._renderer.listen('document', 'auxclick', listener), this._renderer.listen('document', 'touchend', listener)];
|
|
525
|
+
return () => {
|
|
526
|
+
cleanups.forEach(current => current());
|
|
527
|
+
};
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
writeValue(value) {
|
|
531
|
+
Promise.resolve(null).then(() => this._assignOptionValue(value));
|
|
532
|
+
}
|
|
533
|
+
registerOnChange(fn) {
|
|
534
|
+
this._onChange = fn;
|
|
535
|
+
}
|
|
536
|
+
registerOnTouched(fn) {
|
|
537
|
+
this._onTouched = fn;
|
|
538
|
+
}
|
|
539
|
+
setDisabledState(isDisabled) {
|
|
540
|
+
this._element.nativeElement.disabled = isDisabled;
|
|
541
|
+
}
|
|
542
|
+
_handleKeydown(e) {
|
|
543
|
+
const event = e;
|
|
544
|
+
const keyCode = event.keyCode;
|
|
545
|
+
const hasModifier = hasModifierKey(event);
|
|
546
|
+
if (keyCode === ESCAPE && !hasModifier) {
|
|
547
|
+
event.preventDefault();
|
|
548
|
+
}
|
|
549
|
+
this._valueOnLastKeydown = this._element.nativeElement.value;
|
|
550
|
+
if (this.activeOption && keyCode === ENTER && this.panelOpen && !hasModifier) {
|
|
551
|
+
this.activeOption._selectViaInteraction();
|
|
552
|
+
this._resetActiveItem();
|
|
553
|
+
event.preventDefault();
|
|
554
|
+
} else if (this.autocomplete) {
|
|
555
|
+
const prevActiveItem = this.autocomplete._keyManager.activeItem;
|
|
556
|
+
const isArrowKey = keyCode === UP_ARROW || keyCode === DOWN_ARROW;
|
|
557
|
+
if (keyCode === TAB || isArrowKey && !hasModifier && this.panelOpen) {
|
|
558
|
+
this.autocomplete._keyManager.onKeydown(event);
|
|
559
|
+
} else if (isArrowKey && this._canOpen()) {
|
|
560
|
+
this._openPanelInternal(this._valueOnLastKeydown);
|
|
561
|
+
}
|
|
562
|
+
if (isArrowKey || this.autocomplete._keyManager.activeItem !== prevActiveItem) {
|
|
563
|
+
this._scrollToOption(this.autocomplete._keyManager.activeItemIndex || 0);
|
|
564
|
+
if (this.autocomplete.autoSelectActiveOption && this.activeOption) {
|
|
565
|
+
if (!this._pendingAutoselectedOption) {
|
|
566
|
+
this._valueBeforeAutoSelection = this._valueOnLastKeydown;
|
|
567
|
+
}
|
|
568
|
+
this._pendingAutoselectedOption = this.activeOption;
|
|
569
|
+
this._assignOptionValue(this.activeOption.value);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
_handleInput(event) {
|
|
575
|
+
let target = event.target;
|
|
576
|
+
let value = target.value;
|
|
577
|
+
if (target.type === 'number') {
|
|
578
|
+
value = value == '' ? null : parseFloat(value);
|
|
579
|
+
}
|
|
580
|
+
if (this._previousValue !== value) {
|
|
581
|
+
this._previousValue = value;
|
|
582
|
+
this._pendingAutoselectedOption = null;
|
|
583
|
+
if (!this.autocomplete || !this.autocomplete.requireSelection) {
|
|
584
|
+
this._onChange(value);
|
|
585
|
+
}
|
|
586
|
+
if (!value) {
|
|
587
|
+
this._clearPreviousSelectedOption(null, false);
|
|
588
|
+
} else if (this.panelOpen && !this.autocomplete.requireSelection) {
|
|
589
|
+
const selectedOption = this.autocomplete.options?.find(option => option.selected);
|
|
590
|
+
if (selectedOption) {
|
|
591
|
+
const display = this._getDisplayValue(selectedOption.value);
|
|
592
|
+
if (value !== display) {
|
|
593
|
+
selectedOption.deselect(false);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
if (this._canOpen() && this._hasFocus()) {
|
|
598
|
+
const valueOnAttach = this._valueOnLastKeydown ?? this._element.nativeElement.value;
|
|
599
|
+
this._valueOnLastKeydown = null;
|
|
600
|
+
this._openPanelInternal(valueOnAttach);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
_handleFocus() {
|
|
605
|
+
if (!this._canOpenOnNextFocus) {
|
|
606
|
+
this._canOpenOnNextFocus = true;
|
|
607
|
+
} else if (this._canOpen()) {
|
|
608
|
+
this._previousValue = this._element.nativeElement.value;
|
|
609
|
+
this._attachOverlay(this._previousValue);
|
|
610
|
+
this._floatLabel(true);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
_handleClick() {
|
|
614
|
+
if (this._canOpen() && !this.panelOpen) {
|
|
615
|
+
this._openPanelInternal();
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
_hasFocus() {
|
|
619
|
+
return _getFocusedElementPierceShadowDom() === this._element.nativeElement;
|
|
620
|
+
}
|
|
621
|
+
_floatLabel(shouldAnimate = false) {
|
|
622
|
+
if (this._formField && this._formField.floatLabel === 'auto') {
|
|
623
|
+
if (shouldAnimate) {
|
|
624
|
+
this._formField._animateAndLockLabel();
|
|
625
|
+
} else {
|
|
626
|
+
this._formField.floatLabel = 'always';
|
|
627
|
+
}
|
|
628
|
+
this._manuallyFloatingLabel = true;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
_resetLabel() {
|
|
632
|
+
if (this._manuallyFloatingLabel) {
|
|
633
|
+
if (this._formField) {
|
|
634
|
+
this._formField.floatLabel = 'auto';
|
|
635
|
+
}
|
|
636
|
+
this._manuallyFloatingLabel = false;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
_subscribeToClosingActions() {
|
|
640
|
+
const initialRender = new Observable(subscriber => {
|
|
641
|
+
afterNextRender(() => {
|
|
642
|
+
subscriber.next();
|
|
643
|
+
}, {
|
|
644
|
+
injector: this._environmentInjector
|
|
645
|
+
});
|
|
646
|
+
});
|
|
647
|
+
const optionChanges = this.autocomplete.options?.changes.pipe(tap(() => this._positionStrategy.reapplyLastPosition()), delay(0)) ?? of();
|
|
648
|
+
return merge(initialRender, optionChanges).pipe(switchMap(() => this._zone.run(() => {
|
|
649
|
+
const wasOpen = this.panelOpen;
|
|
650
|
+
this._resetActiveItem();
|
|
651
|
+
this._updatePanelState();
|
|
652
|
+
this._changeDetectorRef.detectChanges();
|
|
653
|
+
if (this.panelOpen) {
|
|
654
|
+
this._overlayRef.updatePosition();
|
|
655
|
+
}
|
|
656
|
+
if (wasOpen !== this.panelOpen) {
|
|
657
|
+
if (this.panelOpen) {
|
|
658
|
+
this._emitOpened();
|
|
659
|
+
} else {
|
|
660
|
+
this.autocomplete.closed.emit();
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
return this.panelClosingActions;
|
|
664
|
+
})), take(1)).subscribe(event => this._setValueAndClose(event));
|
|
665
|
+
}
|
|
666
|
+
_emitOpened() {
|
|
667
|
+
this.autocomplete.opened.emit();
|
|
668
|
+
}
|
|
669
|
+
_destroyPanel() {
|
|
670
|
+
if (this._overlayRef) {
|
|
671
|
+
this.closePanel();
|
|
672
|
+
this._overlayRef.dispose();
|
|
673
|
+
this._overlayRef = null;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
_getDisplayValue(value) {
|
|
677
|
+
const autocomplete = this.autocomplete;
|
|
678
|
+
return autocomplete && autocomplete.displayWith ? autocomplete.displayWith(value) : value;
|
|
679
|
+
}
|
|
680
|
+
_assignOptionValue(value) {
|
|
681
|
+
const toDisplay = this._getDisplayValue(value);
|
|
682
|
+
if (value == null) {
|
|
683
|
+
this._clearPreviousSelectedOption(null, false);
|
|
684
|
+
}
|
|
685
|
+
this._updateNativeInputValue(toDisplay != null ? toDisplay : '');
|
|
686
|
+
}
|
|
687
|
+
_updateNativeInputValue(value) {
|
|
688
|
+
if (this._formField) {
|
|
689
|
+
this._formField._control.value = value;
|
|
690
|
+
} else {
|
|
691
|
+
this._element.nativeElement.value = value;
|
|
692
|
+
}
|
|
693
|
+
this._previousValue = value;
|
|
694
|
+
}
|
|
695
|
+
_setValueAndClose(event) {
|
|
696
|
+
const panel = this.autocomplete;
|
|
697
|
+
const toSelect = event ? event.source : this._pendingAutoselectedOption;
|
|
698
|
+
if (toSelect) {
|
|
699
|
+
this._clearPreviousSelectedOption(toSelect);
|
|
700
|
+
this._assignOptionValue(toSelect.value);
|
|
701
|
+
this._onChange(toSelect.value);
|
|
702
|
+
panel._emitSelectEvent(toSelect);
|
|
703
|
+
this._element.nativeElement.focus();
|
|
704
|
+
} else if (panel.requireSelection && this._element.nativeElement.value !== this._valueOnAttach) {
|
|
705
|
+
this._clearPreviousSelectedOption(null);
|
|
706
|
+
this._assignOptionValue(null);
|
|
707
|
+
this._onChange(null);
|
|
708
|
+
}
|
|
709
|
+
this.closePanel();
|
|
710
|
+
}
|
|
711
|
+
_clearPreviousSelectedOption(skip, emitEvent) {
|
|
712
|
+
this.autocomplete?.options?.forEach(option => {
|
|
713
|
+
if (option !== skip && option.selected) {
|
|
714
|
+
option.deselect(emitEvent);
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
_openPanelInternal(valueOnAttach = this._element.nativeElement.value) {
|
|
719
|
+
this._attachOverlay(valueOnAttach);
|
|
720
|
+
this._floatLabel();
|
|
721
|
+
if (this._trackedModal) {
|
|
722
|
+
const panelId = this.autocomplete.id;
|
|
723
|
+
addAriaReferencedId(this._trackedModal, 'aria-owns', panelId);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
_attachOverlay(valueOnAttach) {
|
|
727
|
+
if (!this.autocomplete) {
|
|
728
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
729
|
+
throw getMatAutocompleteMissingPanelError();
|
|
730
|
+
} else {
|
|
731
|
+
return;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
let overlayRef = this._overlayRef;
|
|
735
|
+
if (!overlayRef) {
|
|
736
|
+
this._portal = new TemplatePortal(this.autocomplete.template, this._viewContainerRef, {
|
|
737
|
+
id: this._formField?.getLabelId()
|
|
738
|
+
});
|
|
739
|
+
overlayRef = createOverlayRef(this._injector, this._getOverlayConfig());
|
|
740
|
+
this._overlayRef = overlayRef;
|
|
741
|
+
this._viewportSubscription = this._viewportRuler.change().subscribe(() => {
|
|
742
|
+
if (this.panelOpen && overlayRef) {
|
|
743
|
+
overlayRef.updateSize({
|
|
744
|
+
width: this._getPanelWidth()
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
this._handsetLandscapeSubscription = this._breakpointObserver.observe(Breakpoints.HandsetLandscape).subscribe(result => {
|
|
749
|
+
const isHandsetLandscape = result.matches;
|
|
750
|
+
if (isHandsetLandscape) {
|
|
751
|
+
this._positionStrategy.withFlexibleDimensions(true).withGrowAfterOpen(true).withViewportMargin(8);
|
|
752
|
+
} else {
|
|
753
|
+
this._positionStrategy.withFlexibleDimensions(false).withGrowAfterOpen(false).withViewportMargin(0);
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
} else {
|
|
757
|
+
this._positionStrategy.setOrigin(this._getConnectedElement());
|
|
758
|
+
overlayRef.updateSize({
|
|
759
|
+
width: this._getPanelWidth()
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
if (overlayRef && !overlayRef.hasAttached()) {
|
|
763
|
+
overlayRef.attach(this._portal);
|
|
764
|
+
this._valueOnAttach = valueOnAttach;
|
|
765
|
+
this._valueOnLastKeydown = null;
|
|
766
|
+
this._closingActionsSubscription = this._subscribeToClosingActions();
|
|
767
|
+
}
|
|
768
|
+
const wasOpen = this.panelOpen;
|
|
769
|
+
this.autocomplete._isOpen = this._overlayAttached = true;
|
|
770
|
+
this.autocomplete._latestOpeningTrigger = this;
|
|
771
|
+
this.autocomplete._setColor(this._formField?.color);
|
|
772
|
+
this._updatePanelState();
|
|
773
|
+
this._applyModalPanelOwnership();
|
|
774
|
+
if (this.panelOpen && wasOpen !== this.panelOpen) {
|
|
775
|
+
this._emitOpened();
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
_handlePanelKeydown = event => {
|
|
779
|
+
if (event.keyCode === ESCAPE && !hasModifierKey(event) || event.keyCode === UP_ARROW && hasModifierKey(event, 'altKey')) {
|
|
780
|
+
if (this._pendingAutoselectedOption) {
|
|
781
|
+
this._updateNativeInputValue(this._valueBeforeAutoSelection ?? '');
|
|
782
|
+
this._pendingAutoselectedOption = null;
|
|
783
|
+
}
|
|
784
|
+
this._closeKeyEventStream.next();
|
|
785
|
+
this._resetActiveItem();
|
|
786
|
+
event.stopPropagation();
|
|
787
|
+
event.preventDefault();
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
_updatePanelState() {
|
|
791
|
+
this.autocomplete._setVisibility();
|
|
792
|
+
if (this.panelOpen) {
|
|
793
|
+
const overlayRef = this._overlayRef;
|
|
794
|
+
if (!this._keydownSubscription) {
|
|
795
|
+
this._keydownSubscription = overlayRef.keydownEvents().subscribe(this._handlePanelKeydown);
|
|
796
|
+
}
|
|
797
|
+
if (!this._outsideClickSubscription) {
|
|
798
|
+
this._outsideClickSubscription = overlayRef.outsidePointerEvents().subscribe();
|
|
799
|
+
}
|
|
800
|
+
} else {
|
|
801
|
+
this._keydownSubscription?.unsubscribe();
|
|
802
|
+
this._outsideClickSubscription?.unsubscribe();
|
|
803
|
+
this._keydownSubscription = this._outsideClickSubscription = undefined;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
_getOverlayConfig() {
|
|
807
|
+
return new OverlayConfig({
|
|
808
|
+
positionStrategy: this._getOverlayPosition(),
|
|
809
|
+
scrollStrategy: this._scrollStrategy(),
|
|
810
|
+
width: this._getPanelWidth(),
|
|
811
|
+
direction: this._dir ?? undefined,
|
|
812
|
+
hasBackdrop: this._defaults?.hasBackdrop,
|
|
813
|
+
backdropClass: this._defaults?.backdropClass || 'cdk-overlay-transparent-backdrop',
|
|
814
|
+
panelClass: this._overlayPanelClass,
|
|
815
|
+
disableAnimations: this._animationsDisabled
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
_getOverlayPosition() {
|
|
819
|
+
const strategy = createFlexibleConnectedPositionStrategy(this._injector, this._getConnectedElement()).withFlexibleDimensions(false).withPush(false).withPopoverLocation('inline');
|
|
820
|
+
this._setStrategyPositions(strategy);
|
|
821
|
+
this._positionStrategy = strategy;
|
|
822
|
+
return strategy;
|
|
823
|
+
}
|
|
824
|
+
_setStrategyPositions(positionStrategy) {
|
|
825
|
+
const belowPositions = [{
|
|
826
|
+
originX: 'start',
|
|
827
|
+
originY: 'bottom',
|
|
828
|
+
overlayX: 'start',
|
|
829
|
+
overlayY: 'top'
|
|
830
|
+
}, {
|
|
831
|
+
originX: 'end',
|
|
832
|
+
originY: 'bottom',
|
|
833
|
+
overlayX: 'end',
|
|
834
|
+
overlayY: 'top'
|
|
835
|
+
}];
|
|
836
|
+
const panelClass = this._aboveClass;
|
|
837
|
+
const abovePositions = [{
|
|
838
|
+
originX: 'start',
|
|
839
|
+
originY: 'top',
|
|
840
|
+
overlayX: 'start',
|
|
841
|
+
overlayY: 'bottom',
|
|
842
|
+
panelClass
|
|
843
|
+
}, {
|
|
844
|
+
originX: 'end',
|
|
845
|
+
originY: 'top',
|
|
846
|
+
overlayX: 'end',
|
|
847
|
+
overlayY: 'bottom',
|
|
848
|
+
panelClass
|
|
849
|
+
}];
|
|
850
|
+
let positions;
|
|
851
|
+
if (this.position === 'above') {
|
|
852
|
+
positions = abovePositions;
|
|
853
|
+
} else if (this.position === 'below') {
|
|
854
|
+
positions = belowPositions;
|
|
855
|
+
} else {
|
|
856
|
+
positions = [...belowPositions, ...abovePositions];
|
|
857
|
+
}
|
|
858
|
+
positionStrategy.withPositions(positions);
|
|
859
|
+
}
|
|
860
|
+
_getConnectedElement() {
|
|
861
|
+
if (this.connectedTo) {
|
|
862
|
+
return this.connectedTo.elementRef;
|
|
863
|
+
}
|
|
864
|
+
return this._formField ? this._formField.getConnectedOverlayOrigin() : this._element;
|
|
865
|
+
}
|
|
866
|
+
_getPanelWidth() {
|
|
867
|
+
return this.autocomplete.panelWidth || this._getHostWidth();
|
|
868
|
+
}
|
|
869
|
+
_getHostWidth() {
|
|
870
|
+
return this._getConnectedElement().nativeElement.getBoundingClientRect().width;
|
|
871
|
+
}
|
|
872
|
+
_resetActiveItem() {
|
|
873
|
+
const autocomplete = this.autocomplete;
|
|
874
|
+
if (autocomplete.autoActiveFirstOption) {
|
|
875
|
+
let firstEnabledOptionIndex = -1;
|
|
876
|
+
for (let index = 0; index < autocomplete.options.length; index++) {
|
|
877
|
+
const option = autocomplete.options.get(index);
|
|
878
|
+
if (!option.disabled) {
|
|
879
|
+
firstEnabledOptionIndex = index;
|
|
880
|
+
break;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
autocomplete._keyManager.setActiveItem(firstEnabledOptionIndex);
|
|
884
|
+
} else {
|
|
885
|
+
autocomplete._keyManager.setActiveItem(-1);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
_canOpen() {
|
|
889
|
+
const element = this._element.nativeElement;
|
|
890
|
+
return !element.readOnly && !element.disabled && !this.autocompleteDisabled;
|
|
891
|
+
}
|
|
892
|
+
_scrollToOption(index) {
|
|
893
|
+
const autocomplete = this.autocomplete;
|
|
894
|
+
const labelCount = _countGroupLabelsBeforeOption(index, autocomplete.options, autocomplete.optionGroups);
|
|
895
|
+
if (index === 0 && labelCount === 1) {
|
|
896
|
+
autocomplete._setScrollTop(0);
|
|
897
|
+
} else if (autocomplete.panel) {
|
|
898
|
+
const option = autocomplete.options.toArray()[index];
|
|
899
|
+
if (option) {
|
|
900
|
+
const element = option._getHostElement();
|
|
901
|
+
const newScrollPosition = _getOptionScrollPosition(element.offsetTop, element.offsetHeight, autocomplete._getScrollTop(), autocomplete.panel.nativeElement.offsetHeight);
|
|
902
|
+
autocomplete._setScrollTop(newScrollPosition);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
_trackedModal = null;
|
|
907
|
+
_applyModalPanelOwnership() {
|
|
908
|
+
const modal = this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');
|
|
909
|
+
if (!modal) {
|
|
910
|
+
return;
|
|
911
|
+
}
|
|
912
|
+
const panelId = this.autocomplete.id;
|
|
913
|
+
if (this._trackedModal) {
|
|
914
|
+
removeAriaReferencedId(this._trackedModal, 'aria-owns', panelId);
|
|
915
|
+
}
|
|
916
|
+
addAriaReferencedId(modal, 'aria-owns', panelId);
|
|
917
|
+
this._trackedModal = modal;
|
|
918
|
+
}
|
|
919
|
+
_clearFromModal() {
|
|
920
|
+
if (this._trackedModal) {
|
|
921
|
+
const panelId = this.autocomplete.id;
|
|
922
|
+
removeAriaReferencedId(this._trackedModal, 'aria-owns', panelId);
|
|
923
|
+
this._trackedModal = null;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
927
|
+
minVersion: "12.0.0",
|
|
928
|
+
version: "22.0.0-next.1",
|
|
929
|
+
ngImport: i0,
|
|
930
|
+
type: MatAutocompleteTrigger,
|
|
931
|
+
deps: [],
|
|
932
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
933
|
+
});
|
|
934
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
935
|
+
minVersion: "16.1.0",
|
|
936
|
+
version: "22.0.0-next.1",
|
|
937
|
+
type: MatAutocompleteTrigger,
|
|
938
|
+
isStandalone: true,
|
|
939
|
+
selector: "input[matAutocomplete], textarea[matAutocomplete]",
|
|
940
|
+
inputs: {
|
|
941
|
+
autocomplete: ["matAutocomplete", "autocomplete"],
|
|
942
|
+
position: ["matAutocompletePosition", "position"],
|
|
943
|
+
connectedTo: ["matAutocompleteConnectedTo", "connectedTo"],
|
|
944
|
+
autocompleteAttribute: ["autocomplete", "autocompleteAttribute"],
|
|
945
|
+
autocompleteDisabled: ["matAutocompleteDisabled", "autocompleteDisabled", booleanAttribute]
|
|
946
|
+
},
|
|
947
|
+
host: {
|
|
948
|
+
listeners: {
|
|
949
|
+
"focusin": "_handleFocus()",
|
|
950
|
+
"blur": "_onTouched()",
|
|
951
|
+
"input": "_handleInput($event)",
|
|
952
|
+
"keydown": "_handleKeydown($event)",
|
|
953
|
+
"click": "_handleClick()"
|
|
954
|
+
},
|
|
955
|
+
properties: {
|
|
956
|
+
"attr.autocomplete": "autocompleteAttribute",
|
|
957
|
+
"attr.role": "autocompleteDisabled ? null : \"combobox\"",
|
|
958
|
+
"attr.aria-autocomplete": "autocompleteDisabled ? null : \"list\"",
|
|
959
|
+
"attr.aria-activedescendant": "(panelOpen && activeOption) ? activeOption.id : null",
|
|
960
|
+
"attr.aria-expanded": "autocompleteDisabled ? null : panelOpen.toString()",
|
|
961
|
+
"attr.aria-controls": "(autocompleteDisabled || !panelOpen) ? null : autocomplete?.id",
|
|
962
|
+
"attr.aria-haspopup": "autocompleteDisabled ? null : \"listbox\""
|
|
963
|
+
},
|
|
964
|
+
classAttribute: "mat-mdc-autocomplete-trigger"
|
|
965
|
+
},
|
|
966
|
+
providers: [MAT_AUTOCOMPLETE_VALUE_ACCESSOR],
|
|
967
|
+
exportAs: ["matAutocompleteTrigger"],
|
|
968
|
+
usesOnChanges: true,
|
|
969
|
+
ngImport: i0
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
973
|
+
minVersion: "12.0.0",
|
|
974
|
+
version: "22.0.0-next.1",
|
|
975
|
+
ngImport: i0,
|
|
976
|
+
type: MatAutocompleteTrigger,
|
|
977
|
+
decorators: [{
|
|
978
|
+
type: Directive,
|
|
979
|
+
args: [{
|
|
980
|
+
selector: `input[matAutocomplete], textarea[matAutocomplete]`,
|
|
981
|
+
host: {
|
|
982
|
+
'class': 'mat-mdc-autocomplete-trigger',
|
|
983
|
+
'[attr.autocomplete]': 'autocompleteAttribute',
|
|
984
|
+
'[attr.role]': 'autocompleteDisabled ? null : "combobox"',
|
|
985
|
+
'[attr.aria-autocomplete]': 'autocompleteDisabled ? null : "list"',
|
|
986
|
+
'[attr.aria-activedescendant]': '(panelOpen && activeOption) ? activeOption.id : null',
|
|
987
|
+
'[attr.aria-expanded]': 'autocompleteDisabled ? null : panelOpen.toString()',
|
|
988
|
+
'[attr.aria-controls]': '(autocompleteDisabled || !panelOpen) ? null : autocomplete?.id',
|
|
989
|
+
'[attr.aria-haspopup]': 'autocompleteDisabled ? null : "listbox"',
|
|
990
|
+
'(focusin)': '_handleFocus()',
|
|
991
|
+
'(blur)': '_onTouched()',
|
|
992
|
+
'(input)': '_handleInput($event)',
|
|
993
|
+
'(keydown)': '_handleKeydown($event)',
|
|
994
|
+
'(click)': '_handleClick()'
|
|
995
|
+
},
|
|
996
|
+
exportAs: 'matAutocompleteTrigger',
|
|
997
|
+
providers: [MAT_AUTOCOMPLETE_VALUE_ACCESSOR]
|
|
998
|
+
}]
|
|
999
|
+
}],
|
|
1000
|
+
ctorParameters: () => [],
|
|
1001
|
+
propDecorators: {
|
|
1002
|
+
autocomplete: [{
|
|
1003
|
+
type: Input,
|
|
1004
|
+
args: ['matAutocomplete']
|
|
1005
|
+
}],
|
|
1006
|
+
position: [{
|
|
1007
|
+
type: Input,
|
|
1008
|
+
args: ['matAutocompletePosition']
|
|
1009
|
+
}],
|
|
1010
|
+
connectedTo: [{
|
|
1011
|
+
type: Input,
|
|
1012
|
+
args: ['matAutocompleteConnectedTo']
|
|
1013
|
+
}],
|
|
1014
|
+
autocompleteAttribute: [{
|
|
1015
|
+
type: Input,
|
|
1016
|
+
args: ['autocomplete']
|
|
1017
|
+
}],
|
|
1018
|
+
autocompleteDisabled: [{
|
|
1019
|
+
type: Input,
|
|
1020
|
+
args: [{
|
|
1021
|
+
alias: 'matAutocompleteDisabled',
|
|
1022
|
+
transform: booleanAttribute
|
|
1023
|
+
}]
|
|
1024
|
+
}]
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
|
|
1028
|
+
class MatAutocompleteModule {
|
|
1029
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1030
|
+
minVersion: "12.0.0",
|
|
1031
|
+
version: "22.0.0-next.1",
|
|
1032
|
+
ngImport: i0,
|
|
1033
|
+
type: MatAutocompleteModule,
|
|
1034
|
+
deps: [],
|
|
1035
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
1036
|
+
});
|
|
1037
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1038
|
+
minVersion: "14.0.0",
|
|
1039
|
+
version: "22.0.0-next.1",
|
|
1040
|
+
ngImport: i0,
|
|
1041
|
+
type: MatAutocompleteModule,
|
|
1042
|
+
imports: [OverlayModule, MatOptionModule, MatAutocomplete, MatAutocompleteTrigger, MatAutocompleteOrigin],
|
|
1043
|
+
exports: [CdkScrollableModule, MatAutocomplete, MatOptionModule, BidiModule, MatAutocompleteTrigger, MatAutocompleteOrigin]
|
|
1044
|
+
});
|
|
1045
|
+
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
1046
|
+
minVersion: "12.0.0",
|
|
1047
|
+
version: "22.0.0-next.1",
|
|
1048
|
+
ngImport: i0,
|
|
1049
|
+
type: MatAutocompleteModule,
|
|
1050
|
+
imports: [OverlayModule, MatOptionModule, CdkScrollableModule, MatOptionModule, BidiModule]
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1054
|
+
minVersion: "12.0.0",
|
|
1055
|
+
version: "22.0.0-next.1",
|
|
1056
|
+
ngImport: i0,
|
|
1057
|
+
type: MatAutocompleteModule,
|
|
1058
|
+
decorators: [{
|
|
1059
|
+
type: NgModule,
|
|
1060
|
+
args: [{
|
|
1061
|
+
imports: [OverlayModule, MatOptionModule, MatAutocomplete, MatAutocompleteTrigger, MatAutocompleteOrigin],
|
|
1062
|
+
exports: [CdkScrollableModule, MatAutocomplete, MatOptionModule, BidiModule, MatAutocompleteTrigger, MatAutocompleteOrigin]
|
|
1063
|
+
}]
|
|
1064
|
+
}]
|
|
1065
|
+
});
|
|
1066
|
+
|
|
1067
|
+
export { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MAT_AUTOCOMPLETE_SCROLL_STRATEGY, MAT_AUTOCOMPLETE_VALUE_ACCESSOR, MatAutocomplete, MatAutocompleteModule, MatAutocompleteOrigin, MatAutocompleteSelectedEvent, MatAutocompleteTrigger, MatOption, getMatAutocompleteMissingPanelError };
|
|
1068
|
+
//# sourceMappingURL=autocomplete.mjs.map
|