@angular/material 19.0.0-next.1 → 19.0.0-next.10
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/_index.scss +6 -6
- package/autocomplete/_autocomplete-theme.scss +37 -24
- package/autocomplete/index.d.ts +5 -15
- package/badge/_badge-theme.scss +38 -24
- package/badge/index.d.ts +3 -7
- package/bottom-sheet/_bottom-sheet-theme.scss +32 -20
- package/bottom-sheet/index.d.ts +5 -15
- package/button/_button-base.scss +2 -2
- package/button/_button-theme.scss +229 -105
- package/button/_fab-theme.scss +95 -44
- package/button/_icon-button-theme.scss +38 -25
- package/button/index.d.ts +24 -36
- package/button-toggle/_button-toggle-theme.scss +62 -37
- package/button-toggle/index.d.ts +5 -8
- package/card/_card-theme.scss +79 -38
- package/card/index.d.ts +2 -2
- package/checkbox/_checkbox-common.scss +4 -4
- package/checkbox/_checkbox-theme.scss +16 -10
- package/checkbox/index.d.ts +16 -14
- package/chips/_chips-theme.scss +64 -30
- package/chips/index.d.ts +19 -35
- package/core/_core-theme.scss +59 -55
- package/core/_core.scss +17 -14
- package/core/focus-indicators/_private.scss +21 -82
- package/core/index.d.ts +116 -200
- package/core/option/_optgroup-theme.scss +29 -18
- package/core/option/_option-theme.scss +34 -21
- package/core/ripple/_ripple-theme.scss +33 -21
- package/core/ripple/_ripple.scss +1 -1
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +49 -23
- package/core/style/_elevation.scss +1 -1
- package/core/style/_menu-common.scss +1 -1
- package/core/style/_sass-utils.scss +4 -0
- package/core/theming/_all-theme.scss +3 -0
- package/core/theming/_config-validation.scss +4 -4
- package/core/theming/_definition.scss +12 -2
- package/core/theming/_palettes.scss +132 -45
- package/core/tokens/_density.scss +1 -0
- package/core/tokens/_m3-system.scss +162 -36
- package/core/tokens/_token-utils.scss +91 -34
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m2/mat/_badge.scss +12 -3
- package/core/tokens/m2/mat/_timepicker.scss +44 -0
- package/core/tokens/m2/mdc/_radio.scss +1 -1
- package/core/tokens/m3/_index.scss +2 -0
- package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +1 -1
- package/core/tokens/m3/definitions/_md-sys-color.scss +6 -6
- package/core/tokens/m3/mat/_badge.scss +3 -0
- package/core/tokens/m3/mat/_sidenav.scss +0 -1
- package/core/tokens/m3/mat/_timepicker.scss +22 -0
- package/core/typography/_all-typography.scss +2 -0
- package/datepicker/_datepicker-theme.scss +53 -32
- package/datepicker/index.d.ts +45 -71
- package/dialog/_dialog-theme.scss +46 -23
- package/dialog/index.d.ts +16 -37
- package/dialog/testing/index.d.ts +1 -1
- package/divider/_divider-theme.scss +28 -17
- package/expansion/_expansion-theme.scss +36 -24
- package/expansion/index.d.ts +9 -13
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +43 -75
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +24 -31
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +26 -41
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +30 -45
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +79 -157
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +53 -68
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +41 -44
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +131 -184
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +370 -411
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +208 -349
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +3 -4
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +50 -113
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +8 -8
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +60 -98
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +91 -102
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +39 -49
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +22 -31
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input.mjs +58 -59
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +112 -158
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +69 -118
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs +2 -2
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +11 -11
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +19 -26
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +15 -21
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +33 -45
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +36 -69
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +72 -94
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +31 -38
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +66 -74
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +52 -68
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +34 -52
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +63 -77
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +59 -75
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +140 -199
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +196 -0
- package/fesm2022/timepicker/testing.mjs.map +1 -0
- package/fesm2022/timepicker.mjs +842 -0
- package/fesm2022/timepicker.mjs.map +1 -0
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +18 -23
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +69 -75
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +36 -69
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-high-contrast.scss +4 -4
- package/form-field/_form-field-theme.scss +114 -61
- package/form-field/_mdc-text-field-structure.scss +51 -49
- package/form-field/index.d.ts +13 -25
- package/grid-list/_grid-list-theme.scss +25 -15
- package/grid-list/index.d.ts +6 -8
- package/icon/_icon-theme.scss +22 -14
- package/icon/index.d.ts +3 -3
- package/input/_input-theme.scss +18 -11
- package/input/index.d.ts +6 -8
- package/list/_list-inherited-structure.scss +1 -13
- package/list/_list-item-hcm-indicator.scss +1 -1
- package/list/_list-theme.scss +89 -47
- package/list/index.d.ts +10 -14
- package/menu/_menu-theme.scss +33 -21
- package/menu/index.d.ts +15 -50
- package/package.json +10 -146
- package/paginator/_paginator-theme.scss +39 -23
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +20 -16
- package/progress-bar/index.d.ts +3 -5
- package/progress-spinner/_progress-spinner-theme.scss +41 -25
- package/progress-spinner/index.d.ts +2 -2
- package/radio/_radio-theme.scss +60 -32
- package/radio/index.d.ts +5 -8
- package/schematics/collection.json +3 -3
- package/schematics/ng-add/fonts/material-fonts.d.ts +1 -1
- package/schematics/ng-add/fonts/material-fonts.js +2 -2
- package/schematics/ng-add/fonts/material-fonts.mjs +2 -2
- package/schematics/ng-add/index.d.ts +1 -1
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/index.mjs +3 -3
- package/schematics/ng-add/package-config.d.ts +1 -1
- package/schematics/ng-add/package-config.js +2 -2
- package/schematics/ng-add/package-config.mjs +2 -2
- package/schematics/ng-add/schema.d.ts +1 -1
- package/schematics/ng-add/schema.js +2 -2
- package/schematics/ng-add/schema.mjs +2 -2
- package/schematics/ng-add/setup-project.d.ts +1 -1
- package/schematics/ng-add/setup-project.js +3 -3
- package/schematics/ng-add/setup-project.mjs +3 -3
- package/schematics/ng-add/theming/create-custom-theme.d.ts +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js +2 -7
- package/schematics/ng-add/theming/create-custom-theme.mjs +2 -7
- package/schematics/ng-add/theming/theming.d.ts +1 -1
- package/schematics/ng-add/theming/theming.js +2 -2
- package/schematics/ng-add/theming/theming.mjs +2 -2
- package/schematics/ng-generate/address-form/index.d.ts +1 -1
- package/schematics/ng-generate/address-form/index.js +2 -2
- package/schematics/ng-generate/address-form/index.mjs +2 -2
- package/schematics/ng-generate/address-form/schema.d.ts +1 -1
- package/schematics/ng-generate/address-form/schema.js +2 -2
- package/schematics/ng-generate/address-form/schema.mjs +2 -2
- package/schematics/ng-generate/dashboard/index.d.ts +1 -1
- package/schematics/ng-generate/dashboard/index.js +2 -2
- package/schematics/ng-generate/dashboard/index.mjs +2 -2
- package/schematics/ng-generate/dashboard/schema.d.ts +1 -1
- package/schematics/ng-generate/dashboard/schema.js +2 -2
- package/schematics/ng-generate/dashboard/schema.mjs +2 -2
- package/schematics/ng-generate/navigation/index.d.ts +1 -1
- package/schematics/ng-generate/navigation/index.js +2 -2
- package/schematics/ng-generate/navigation/index.mjs +2 -2
- package/schematics/ng-generate/navigation/schema.d.ts +1 -1
- package/schematics/ng-generate/navigation/schema.js +2 -2
- package/schematics/ng-generate/navigation/schema.mjs +2 -2
- package/schematics/ng-generate/table/index.d.ts +1 -1
- package/schematics/ng-generate/table/index.js +2 -2
- package/schematics/ng-generate/table/index.mjs +2 -2
- package/schematics/ng-generate/table/schema.d.ts +1 -1
- package/schematics/ng-generate/table/schema.js +2 -2
- package/schematics/ng-generate/table/schema.mjs +2 -2
- package/schematics/ng-generate/{m3-theme → theme-color}/index_bundled.js +481 -289
- package/schematics/ng-generate/theme-color/index_bundled.js.map +7 -0
- package/schematics/ng-generate/{m3-theme → theme-color}/schema.json +7 -13
- package/schematics/ng-generate/tree/index.d.ts +1 -1
- package/schematics/ng-generate/tree/index.js +2 -2
- package/schematics/ng-generate/tree/index.mjs +2 -2
- package/schematics/ng-generate/tree/schema.d.ts +1 -1
- package/schematics/ng-generate/tree/schema.js +2 -2
- package/schematics/ng-generate/tree/schema.mjs +2 -2
- package/schematics/ng-update/index_bundled.js +6518 -2
- package/schematics/ng-update/index_bundled.js.map +4 -4
- package/select/_select-theme.scss +38 -25
- package/select/index.d.ts +4 -14
- package/sidenav/_sidenav-theme.scss +28 -17
- package/sidenav/index.d.ts +7 -17
- package/slide-toggle/_slide-toggle-theme.scss +52 -28
- package/slide-toggle/index.d.ts +2 -2
- package/slider/_slider-theme.scss +62 -38
- package/slider/index.d.ts +8 -8
- package/snack-bar/_snack-bar-theme.scss +29 -17
- package/snack-bar/index.d.ts +6 -22
- package/sort/_sort-theme.scss +33 -21
- package/sort/index.d.ts +4 -20
- package/stepper/_stepper-theme.scss +40 -27
- package/stepper/index.d.ts +6 -13
- package/table/_table-theme.scss +36 -23
- package/tabs/_tabs-common.scss +2 -2
- package/tabs/_tabs-theme.scss +97 -50
- package/tabs/index.d.ts +28 -35
- package/timepicker/_timepicker-theme.scss +124 -0
- package/timepicker/index.d.ts +297 -0
- package/timepicker/testing/index.d.ts +113 -0
- package/toolbar/_toolbar-theme.scss +35 -22
- package/toolbar/index.d.ts +3 -4
- package/tooltip/_tooltip-theme.scss +18 -15
- package/tooltip/index.d.ts +5 -12
- package/tree/_tree-theme.scss +33 -21
- package/tree/index.d.ts +5 -18
- package/core/focus-indicators/_focus-indicators-theme.scss +0 -11
- package/core/focus-indicators/_focus-indicators.scss +0 -6
- package/esm2022/autocomplete/animations.mjs +0 -24
- package/esm2022/autocomplete/autocomplete-origin.mjs +0 -31
- package/esm2022/autocomplete/autocomplete-trigger.mjs +0 -902
- package/esm2022/autocomplete/autocomplete.mjs +0 -238
- package/esm2022/autocomplete/autocomplete_public_index.mjs +0 -5
- package/esm2022/autocomplete/index.mjs +0 -9
- package/esm2022/autocomplete/module.mjs +0 -61
- package/esm2022/autocomplete/public-api.mjs +0 -14
- package/esm2022/autocomplete/testing/autocomplete-harness-filters.mjs +0 -9
- package/esm2022/autocomplete/testing/autocomplete-harness.mjs +0 -105
- package/esm2022/autocomplete/testing/index.mjs +0 -9
- package/esm2022/autocomplete/testing/public-api.mjs +0 -10
- package/esm2022/badge/badge-module.mjs +0 -27
- package/esm2022/badge/badge.mjs +0 -288
- package/esm2022/badge/badge_public_index.mjs +0 -5
- package/esm2022/badge/index.mjs +0 -9
- package/esm2022/badge/public-api.mjs +0 -10
- package/esm2022/badge/testing/badge-harness-filters.mjs +0 -9
- package/esm2022/badge/testing/badge-harness.mjs +0 -71
- package/esm2022/badge/testing/index.mjs +0 -9
- package/esm2022/badge/testing/public-api.mjs +0 -10
- package/esm2022/bottom-sheet/bottom-sheet-animations.mjs +0 -26
- package/esm2022/bottom-sheet/bottom-sheet-config.mjs +0 -48
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +0 -85
- package/esm2022/bottom-sheet/bottom-sheet-module.mjs +0 -28
- package/esm2022/bottom-sheet/bottom-sheet-ref.mjs +0 -104
- package/esm2022/bottom-sheet/bottom-sheet.mjs +0 -115
- package/esm2022/bottom-sheet/bottom-sheet_public_index.mjs +0 -5
- package/esm2022/bottom-sheet/index.mjs +0 -9
- package/esm2022/bottom-sheet/public-api.mjs +0 -14
- package/esm2022/bottom-sheet/testing/bottom-sheet-harness-filters.mjs +0 -9
- package/esm2022/bottom-sheet/testing/bottom-sheet-harness.mjs +0 -35
- package/esm2022/bottom-sheet/testing/index.mjs +0 -9
- package/esm2022/bottom-sheet/testing/public-api.mjs +0 -10
- package/esm2022/button/button-base.mjs +0 -230
- package/esm2022/button/button.mjs +0 -67
- package/esm2022/button/button_public_index.mjs +0 -5
- package/esm2022/button/fab.mjs +0 -166
- package/esm2022/button/icon-button.mjs +0 -56
- package/esm2022/button/index.mjs +0 -9
- package/esm2022/button/module.mjs +0 -65
- package/esm2022/button/public-api.mjs +0 -13
- package/esm2022/button/testing/button-harness-filters.mjs +0 -9
- package/esm2022/button/testing/button-harness.mjs +0 -80
- package/esm2022/button/testing/index.mjs +0 -9
- package/esm2022/button/testing/public-api.mjs +0 -10
- package/esm2022/button-toggle/button-toggle-module.mjs +0 -24
- package/esm2022/button-toggle/button-toggle.mjs +0 -651
- package/esm2022/button-toggle/button-toggle_public_index.mjs +0 -5
- package/esm2022/button-toggle/index.mjs +0 -9
- package/esm2022/button-toggle/public-api.mjs +0 -10
- package/esm2022/button-toggle/testing/button-toggle-group-harness-filters.mjs +0 -9
- package/esm2022/button-toggle/testing/button-toggle-group-harness.mjs +0 -47
- package/esm2022/button-toggle/testing/button-toggle-harness-filters.mjs +0 -9
- package/esm2022/button-toggle/testing/button-toggle-harness.mjs +0 -105
- package/esm2022/button-toggle/testing/index.mjs +0 -9
- package/esm2022/button-toggle/testing/public-api.mjs +0 -12
- package/esm2022/card/card.mjs +0 -273
- package/esm2022/card/card_public_index.mjs +0 -5
- package/esm2022/card/index.mjs +0 -9
- package/esm2022/card/module.mjs +0 -67
- package/esm2022/card/public-api.mjs +0 -10
- package/esm2022/card/testing/card-harness-filters.mjs +0 -9
- package/esm2022/card/testing/card-harness.mjs +0 -50
- package/esm2022/card/testing/index.mjs +0 -9
- package/esm2022/card/testing/public-api.mjs +0 -10
- package/esm2022/checkbox/checkbox-config.mjs +0 -22
- package/esm2022/checkbox/checkbox-required-validator.mjs +0 -41
- package/esm2022/checkbox/checkbox.mjs +0 -443
- package/esm2022/checkbox/checkbox_public_index.mjs +0 -5
- package/esm2022/checkbox/index.mjs +0 -9
- package/esm2022/checkbox/module.mjs +0 -41
- package/esm2022/checkbox/public-api.mjs +0 -12
- package/esm2022/checkbox/testing/checkbox-harness-filters.mjs +0 -9
- package/esm2022/checkbox/testing/checkbox-harness.mjs +0 -138
- package/esm2022/checkbox/testing/index.mjs +0 -9
- package/esm2022/checkbox/testing/public-api.mjs +0 -9
- package/esm2022/chips/chip-action.mjs +0 -113
- package/esm2022/chips/chip-edit-input.mjs +0 -61
- package/esm2022/chips/chip-grid.mjs +0 -420
- package/esm2022/chips/chip-icons.mjs +0 -107
- package/esm2022/chips/chip-input.mjs +0 -192
- package/esm2022/chips/chip-listbox.mjs +0 -369
- package/esm2022/chips/chip-option.mjs +0 -190
- package/esm2022/chips/chip-row.mjs +0 -173
- package/esm2022/chips/chip-set.mjs +0 -283
- package/esm2022/chips/chip-text-control.mjs +0 -9
- package/esm2022/chips/chip.mjs +0 -322
- package/esm2022/chips/chips_public_index.mjs +0 -5
- package/esm2022/chips/index.mjs +0 -9
- package/esm2022/chips/module.mjs +0 -85
- package/esm2022/chips/public-api.mjs +0 -20
- package/esm2022/chips/testing/chip-avatar-harness.mjs +0 -22
- package/esm2022/chips/testing/chip-edit-input-harness.mjs +0 -33
- package/esm2022/chips/testing/chip-grid-harness.mjs +0 -45
- package/esm2022/chips/testing/chip-harness-filters.mjs +0 -9
- package/esm2022/chips/testing/chip-harness.mjs +0 -62
- package/esm2022/chips/testing/chip-input-harness.mjs +0 -85
- package/esm2022/chips/testing/chip-listbox-harness.mjs +0 -61
- package/esm2022/chips/testing/chip-option-harness.mjs +0 -45
- package/esm2022/chips/testing/chip-remove-harness.mjs +0 -26
- package/esm2022/chips/testing/chip-row-harness.mjs +0 -40
- package/esm2022/chips/testing/chip-set-harness.mjs +0 -26
- package/esm2022/chips/testing/index.mjs +0 -9
- package/esm2022/chips/testing/public-api.mjs +0 -19
- package/esm2022/chips/tokens.mjs +0 -39
- package/esm2022/core/animation/animation.mjs +0 -21
- package/esm2022/core/common-behaviors/color.mjs +0 -33
- package/esm2022/core/common-behaviors/common-module.mjs +0 -127
- package/esm2022/core/common-behaviors/constructor.mjs +0 -9
- package/esm2022/core/common-behaviors/disable-ripple.mjs +0 -24
- package/esm2022/core/common-behaviors/disabled.mjs +0 -23
- package/esm2022/core/common-behaviors/error-state.mjs +0 -66
- package/esm2022/core/common-behaviors/index.mjs +0 -15
- package/esm2022/core/common-behaviors/initialized.mjs +0 -62
- package/esm2022/core/common-behaviors/tabindex.mjs +0 -25
- package/esm2022/core/core_public_index.mjs +0 -5
- package/esm2022/core/datetime/date-adapter.mjs +0 -109
- package/esm2022/core/datetime/date-formats.mjs +0 -10
- package/esm2022/core/datetime/index.mjs +0 -46
- package/esm2022/core/datetime/native-date-adapter.mjs +0 -221
- package/esm2022/core/datetime/native-date-formats.mjs +0 -19
- package/esm2022/core/error/error-options.mjs +0 -33
- package/esm2022/core/index.mjs +0 -9
- package/esm2022/core/internal-form-field/internal-form-field.mjs +0 -29
- package/esm2022/core/line/line.mjs +0 -64
- package/esm2022/core/option/index.mjs +0 -30
- package/esm2022/core/option/optgroup.mjs +0 -71
- package/esm2022/core/option/option-parent.mjs +0 -13
- package/esm2022/core/option/option.mjs +0 -283
- package/esm2022/core/private/index.mjs +0 -9
- package/esm2022/core/private/ripple-loader.mjs +0 -160
- package/esm2022/core/public-api.mjs +0 -19
- package/esm2022/core/ripple/index.mjs +0 -27
- package/esm2022/core/ripple/ripple-event-manager.mjs +0 -69
- package/esm2022/core/ripple/ripple-ref.mjs +0 -39
- package/esm2022/core/ripple/ripple-renderer.mjs +0 -354
- package/esm2022/core/ripple/ripple.mjs +0 -156
- package/esm2022/core/selection/index.mjs +0 -10
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +0 -24
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +0 -62
- package/esm2022/core/testing/index.mjs +0 -9
- package/esm2022/core/testing/optgroup-harness-filters.mjs +0 -9
- package/esm2022/core/testing/optgroup-harness.mjs +0 -43
- package/esm2022/core/testing/option-harness-filters.mjs +0 -9
- package/esm2022/core/testing/option-harness.mjs +0 -53
- package/esm2022/core/testing/public-api.mjs +0 -12
- package/esm2022/core/version.mjs +0 -11
- package/esm2022/datepicker/aria-accessible-name.mjs +0 -159
- package/esm2022/datepicker/calendar-body.mjs +0 -509
- package/esm2022/datepicker/calendar.mjs +0 -426
- package/esm2022/datepicker/date-range-input-parts.mjs +0 -372
- package/esm2022/datepicker/date-range-input.mjs +0 -369
- package/esm2022/datepicker/date-range-picker.mjs +0 -51
- package/esm2022/datepicker/date-range-selection-strategy.mjs +0 -97
- package/esm2022/datepicker/date-selection-model.mjs +0 -188
- package/esm2022/datepicker/datepicker-actions.mjs +0 -91
- package/esm2022/datepicker/datepicker-animations.mjs +0 -35
- package/esm2022/datepicker/datepicker-base.mjs +0 -609
- package/esm2022/datepicker/datepicker-errors.mjs +0 -14
- package/esm2022/datepicker/datepicker-input-base.mjs +0 -311
- package/esm2022/datepicker/datepicker-input.mjs +0 -200
- package/esm2022/datepicker/datepicker-intl.mjs +0 -69
- package/esm2022/datepicker/datepicker-module.mjs +0 -138
- package/esm2022/datepicker/datepicker-toggle.mjs +0 -113
- package/esm2022/datepicker/datepicker.mjs +0 -38
- package/esm2022/datepicker/datepicker_public_index.mjs +0 -5
- package/esm2022/datepicker/index.mjs +0 -9
- package/esm2022/datepicker/month-view.mjs +0 -460
- package/esm2022/datepicker/multi-year-view.mjs +0 -330
- package/esm2022/datepicker/public-api.mjs +0 -27
- package/esm2022/datepicker/testing/calendar-cell-harness.mjs +0 -138
- package/esm2022/datepicker/testing/calendar-harness.mjs +0 -83
- package/esm2022/datepicker/testing/date-range-input-harness.mjs +0 -98
- package/esm2022/datepicker/testing/datepicker-harness-filters.mjs +0 -9
- package/esm2022/datepicker/testing/datepicker-input-harness-base.mjs +0 -81
- package/esm2022/datepicker/testing/datepicker-input-harness.mjs +0 -58
- package/esm2022/datepicker/testing/datepicker-toggle-harness.mjs +0 -41
- package/esm2022/datepicker/testing/datepicker-trigger-harness-base.mjs +0 -65
- package/esm2022/datepicker/testing/index.mjs +0 -9
- package/esm2022/datepicker/testing/public-api.mjs +0 -14
- package/esm2022/datepicker/year-view.mjs +0 -324
- package/esm2022/dialog/dialog-animations.mjs +0 -38
- package/esm2022/dialog/dialog-config.mjs +0 -59
- package/esm2022/dialog/dialog-container.mjs +0 -253
- package/esm2022/dialog/dialog-content-directives.mjs +0 -212
- package/esm2022/dialog/dialog-ref.mjs +0 -177
- package/esm2022/dialog/dialog.mjs +0 -212
- package/esm2022/dialog/dialog_public_index.mjs +0 -5
- package/esm2022/dialog/index.mjs +0 -9
- package/esm2022/dialog/module.mjs +0 -45
- package/esm2022/dialog/public-api.mjs +0 -15
- package/esm2022/dialog/testing/dialog-harness-filters.mjs +0 -9
- package/esm2022/dialog/testing/dialog-harness.mjs +0 -84
- package/esm2022/dialog/testing/dialog-opener.mjs +0 -58
- package/esm2022/dialog/testing/index.mjs +0 -10
- package/esm2022/dialog/testing/public-api.mjs +0 -10
- package/esm2022/divider/divider-module.mjs +0 -24
- package/esm2022/divider/divider.mjs +0 -48
- package/esm2022/divider/divider_public_index.mjs +0 -5
- package/esm2022/divider/index.mjs +0 -9
- package/esm2022/divider/public-api.mjs +0 -10
- package/esm2022/divider/testing/divider-harness-filters.mjs +0 -9
- package/esm2022/divider/testing/divider-harness.mjs +0 -22
- package/esm2022/divider/testing/index.mjs +0 -9
- package/esm2022/divider/testing/public-api.mjs +0 -10
- package/esm2022/expansion/accordion-base.mjs +0 -14
- package/esm2022/expansion/accordion.mjs +0 -96
- package/esm2022/expansion/expansion-animations.mjs +0 -51
- package/esm2022/expansion/expansion-module.mjs +0 -65
- package/esm2022/expansion/expansion-panel-base.mjs +0 -14
- package/esm2022/expansion/expansion-panel-content.mjs +0 -35
- package/esm2022/expansion/expansion-panel-header.mjs +0 -218
- package/esm2022/expansion/expansion-panel.mjs +0 -211
- package/esm2022/expansion/expansion_public_index.mjs +0 -5
- package/esm2022/expansion/index.mjs +0 -9
- package/esm2022/expansion/public-api.mjs +0 -16
- package/esm2022/expansion/testing/accordion-harness.mjs +0 -31
- package/esm2022/expansion/testing/expansion-harness-filters.mjs +0 -9
- package/esm2022/expansion/testing/expansion-harness.mjs +0 -128
- package/esm2022/expansion/testing/index.mjs +0 -9
- package/esm2022/expansion/testing/public-api.mjs +0 -11
- package/esm2022/form-field/directives/error.mjs +0 -48
- package/esm2022/form-field/directives/floating-label.mjs +0 -135
- package/esm2022/form-field/directives/hint.mjs +0 -40
- package/esm2022/form-field/directives/label.mjs +0 -22
- package/esm2022/form-field/directives/line-ripple.mjs +0 -60
- package/esm2022/form-field/directives/notched-outline.mjs +0 -66
- package/esm2022/form-field/directives/prefix.mjs +0 -38
- package/esm2022/form-field/directives/suffix.mjs +0 -38
- package/esm2022/form-field/form-field-animations.mjs +0 -24
- package/esm2022/form-field/form-field-control.mjs +0 -11
- package/esm2022/form-field/form-field-errors.mjs +0 -20
- package/esm2022/form-field/form-field.mjs +0 -620
- package/esm2022/form-field/form-field_public_index.mjs +0 -5
- package/esm2022/form-field/index.mjs +0 -9
- package/esm2022/form-field/module.mjs +0 -51
- package/esm2022/form-field/public-api.mjs +0 -18
- package/esm2022/form-field/testing/control/form-field-control-harness.mjs +0 -15
- package/esm2022/form-field/testing/control/index.mjs +0 -9
- package/esm2022/form-field/testing/error-harness.mjs +0 -29
- package/esm2022/form-field/testing/form-field-harness-filters.mjs +0 -9
- package/esm2022/form-field/testing/form-field-harness.mjs +0 -179
- package/esm2022/form-field/testing/index.mjs +0 -9
- package/esm2022/form-field/testing/public-api.mjs +0 -15
- package/esm2022/grid-list/grid-list-base.mjs +0 -14
- package/esm2022/grid-list/grid-list-module.mjs +0 -59
- package/esm2022/grid-list/grid-list.mjs +0 -146
- package/esm2022/grid-list/grid-list_public_index.mjs +0 -5
- package/esm2022/grid-list/grid-tile.mjs +0 -128
- package/esm2022/grid-list/index.mjs +0 -9
- package/esm2022/grid-list/public-api.mjs +0 -14
- package/esm2022/grid-list/testing/grid-list-harness-filters.mjs +0 -9
- package/esm2022/grid-list/testing/grid-list-harness.mjs +0 -76
- package/esm2022/grid-list/testing/grid-tile-harness.mjs +0 -71
- package/esm2022/grid-list/testing/index.mjs +0 -9
- package/esm2022/grid-list/testing/public-api.mjs +0 -11
- package/esm2022/grid-list/tile-coordinator.mjs +0 -145
- package/esm2022/grid-list/tile-styler.mjs +0 -231
- package/esm2022/icon/fake-svgs.mjs +0 -62
- package/esm2022/icon/icon-module.mjs +0 -24
- package/esm2022/icon/icon-registry.mjs +0 -592
- package/esm2022/icon/icon.mjs +0 -379
- package/esm2022/icon/icon_public_index.mjs +0 -5
- package/esm2022/icon/index.mjs +0 -9
- package/esm2022/icon/public-api.mjs +0 -11
- package/esm2022/icon/testing/fake-icon-registry.mjs +0 -92
- package/esm2022/icon/testing/icon-harness-filters.mjs +0 -14
- package/esm2022/icon/testing/icon-harness.mjs +0 -60
- package/esm2022/icon/testing/index.mjs +0 -9
- package/esm2022/icon/testing/public-api.mjs +0 -11
- package/esm2022/icon/testing/testing_public_index.mjs +0 -5
- package/esm2022/icon/trusted-types.mjs +0 -43
- package/esm2022/index.mjs +0 -14
- package/esm2022/input/index.mjs +0 -9
- package/esm2022/input/input-errors.mjs +0 -12
- package/esm2022/input/input-value-accessor.mjs +0 -16
- package/esm2022/input/input.mjs +0 -524
- package/esm2022/input/input_public_index.mjs +0 -5
- package/esm2022/input/module.mjs +0 -26
- package/esm2022/input/public-api.mjs +0 -14
- package/esm2022/input/testing/index.mjs +0 -9
- package/esm2022/input/testing/input-harness-filters.mjs +0 -9
- package/esm2022/input/testing/input-harness.mjs +0 -119
- package/esm2022/input/testing/native-option-harness.mjs +0 -42
- package/esm2022/input/testing/native-select-harness-filters.mjs +0 -9
- package/esm2022/input/testing/native-select-harness.mjs +0 -79
- package/esm2022/input/testing/public-api.mjs +0 -13
- package/esm2022/list/action-list.mjs +0 -31
- package/esm2022/list/index.mjs +0 -9
- package/esm2022/list/list-base.mjs +0 -284
- package/esm2022/list/list-item-sections.mjs +0 -144
- package/esm2022/list/list-module.mjs +0 -97
- package/esm2022/list/list-option-types.mjs +0 -16
- package/esm2022/list/list-option.mjs +0 -295
- package/esm2022/list/list.mjs +0 -103
- package/esm2022/list/list_public_index.mjs +0 -5
- package/esm2022/list/nav-list.mjs +0 -37
- package/esm2022/list/public-api.mjs +0 -18
- package/esm2022/list/selection-list.mjs +0 -391
- package/esm2022/list/subheader.mjs +0 -28
- package/esm2022/list/testing/action-list-harness.mjs +0 -59
- package/esm2022/list/testing/index.mjs +0 -9
- package/esm2022/list/testing/list-harness-base.mjs +0 -95
- package/esm2022/list/testing/list-harness-filters.mjs +0 -9
- package/esm2022/list/testing/list-harness.mjs +0 -41
- package/esm2022/list/testing/list-item-harness-base.mjs +0 -162
- package/esm2022/list/testing/nav-list-harness.mjs +0 -69
- package/esm2022/list/testing/public-api.mjs +0 -14
- package/esm2022/list/testing/selection-list-harness.mjs +0 -122
- package/esm2022/list/tokens.mjs +0 -11
- package/esm2022/menu/index.mjs +0 -9
- package/esm2022/menu/menu-animations.mjs +0 -61
- package/esm2022/menu/menu-content.mjs +0 -87
- package/esm2022/menu/menu-errors.mjs +0 -35
- package/esm2022/menu/menu-item.mjs +0 -148
- package/esm2022/menu/menu-panel.mjs +0 -14
- package/esm2022/menu/menu-positions.mjs +0 -9
- package/esm2022/menu/menu-trigger.mjs +0 -542
- package/esm2022/menu/menu.mjs +0 -405
- package/esm2022/menu/menu_public_index.mjs +0 -5
- package/esm2022/menu/module.mjs +0 -63
- package/esm2022/menu/public-api.mjs +0 -16
- package/esm2022/menu/testing/index.mjs +0 -9
- package/esm2022/menu/testing/menu-harness-filters.mjs +0 -9
- package/esm2022/menu/testing/menu-harness.mjs +0 -166
- package/esm2022/menu/testing/public-api.mjs +0 -10
- package/esm2022/paginator/index.mjs +0 -9
- package/esm2022/paginator/module.mjs +0 -28
- package/esm2022/paginator/paginator-intl.mjs +0 -62
- package/esm2022/paginator/paginator.mjs +0 -266
- package/esm2022/paginator/paginator_public_index.mjs +0 -5
- package/esm2022/paginator/public-api.mjs +0 -11
- package/esm2022/paginator/testing/index.mjs +0 -9
- package/esm2022/paginator/testing/paginator-harness-filters.mjs +0 -9
- package/esm2022/paginator/testing/paginator-harness.mjs +0 -98
- package/esm2022/paginator/testing/public-api.mjs +0 -10
- package/esm2022/progress-bar/index.mjs +0 -9
- package/esm2022/progress-bar/module.mjs +0 -24
- package/esm2022/progress-bar/progress-bar.mjs +0 -181
- package/esm2022/progress-bar/progress-bar_public_index.mjs +0 -5
- package/esm2022/progress-bar/public-api.mjs +0 -10
- package/esm2022/progress-bar/testing/index.mjs +0 -9
- package/esm2022/progress-bar/testing/progress-bar-harness-filters.mjs +0 -9
- package/esm2022/progress-bar/testing/progress-bar-harness.mjs +0 -33
- package/esm2022/progress-bar/testing/public-api.mjs +0 -10
- package/esm2022/progress-bar/testing/testing_public_index.mjs +0 -5
- package/esm2022/progress-spinner/index.mjs +0 -9
- package/esm2022/progress-spinner/module.mjs +0 -25
- package/esm2022/progress-spinner/progress-spinner.mjs +0 -166
- package/esm2022/progress-spinner/progress-spinner_public_index.mjs +0 -5
- package/esm2022/progress-spinner/public-api.mjs +0 -10
- package/esm2022/progress-spinner/testing/index.mjs +0 -9
- package/esm2022/progress-spinner/testing/progress-spinner-harness-filters.mjs +0 -9
- package/esm2022/progress-spinner/testing/progress-spinner-harness.mjs +0 -35
- package/esm2022/progress-spinner/testing/public-api.mjs +0 -10
- package/esm2022/progress-spinner/testing/testing_public_index.mjs +0 -5
- package/esm2022/radio/index.mjs +0 -9
- package/esm2022/radio/module.mjs +0 -25
- package/esm2022/radio/public-api.mjs +0 -10
- package/esm2022/radio/radio.mjs +0 -680
- package/esm2022/radio/radio_public_index.mjs +0 -5
- package/esm2022/radio/testing/index.mjs +0 -9
- package/esm2022/radio/testing/public-api.mjs +0 -10
- package/esm2022/radio/testing/radio-harness-filters.mjs +0 -9
- package/esm2022/radio/testing/radio-harness.mjs +0 -228
- package/esm2022/select/index.mjs +0 -9
- package/esm2022/select/module.mjs +0 -59
- package/esm2022/select/public-api.mjs +0 -15
- package/esm2022/select/select-animations.mjs +0 -38
- package/esm2022/select/select-errors.mjs +0 -35
- package/esm2022/select/select.mjs +0 -1160
- package/esm2022/select/select_public_index.mjs +0 -5
- package/esm2022/select/testing/index.mjs +0 -9
- package/esm2022/select/testing/public-api.mjs +0 -10
- package/esm2022/select/testing/select-harness-filters.mjs +0 -9
- package/esm2022/select/testing/select-harness.mjs +0 -129
- package/esm2022/sidenav/drawer-animations.mjs +0 -33
- package/esm2022/sidenav/drawer.mjs +0 -863
- package/esm2022/sidenav/index.mjs +0 -9
- package/esm2022/sidenav/public-api.mjs +0 -12
- package/esm2022/sidenav/sidenav-module.mjs +0 -60
- package/esm2022/sidenav/sidenav.mjs +0 -148
- package/esm2022/sidenav/sidenav_public_index.mjs +0 -5
- package/esm2022/sidenav/testing/drawer-container-harness.mjs +0 -36
- package/esm2022/sidenav/testing/drawer-content-harness.mjs +0 -23
- package/esm2022/sidenav/testing/drawer-harness-filters.mjs +0 -9
- package/esm2022/sidenav/testing/drawer-harness.mjs +0 -49
- package/esm2022/sidenav/testing/index.mjs +0 -9
- package/esm2022/sidenav/testing/public-api.mjs +0 -15
- package/esm2022/sidenav/testing/sidenav-container-harness.mjs +0 -36
- package/esm2022/sidenav/testing/sidenav-content-harness.mjs +0 -23
- package/esm2022/sidenav/testing/sidenav-harness.mjs +0 -28
- package/esm2022/slide-toggle/index.mjs +0 -9
- package/esm2022/slide-toggle/module.mjs +0 -41
- package/esm2022/slide-toggle/public-api.mjs +0 -12
- package/esm2022/slide-toggle/slide-toggle-config.mjs +0 -14
- package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +0 -44
- package/esm2022/slide-toggle/slide-toggle.mjs +0 -273
- package/esm2022/slide-toggle/slide-toggle_public_index.mjs +0 -5
- package/esm2022/slide-toggle/testing/index.mjs +0 -9
- package/esm2022/slide-toggle/testing/public-api.mjs +0 -10
- package/esm2022/slide-toggle/testing/slide-toggle-harness-filters.mjs +0 -9
- package/esm2022/slide-toggle/testing/slide-toggle-harness.mjs +0 -110
- package/esm2022/slider/index.mjs +0 -9
- package/esm2022/slider/module.mjs +0 -39
- package/esm2022/slider/public-api.mjs +0 -13
- package/esm2022/slider/slider-input.mjs +0 -701
- package/esm2022/slider/slider-interface.mjs +0 -56
- package/esm2022/slider/slider-thumb.mjs +0 -231
- package/esm2022/slider/slider.mjs +0 -746
- package/esm2022/slider/slider_public_index.mjs +0 -5
- package/esm2022/slider/testing/index.mjs +0 -9
- package/esm2022/slider/testing/public-api.mjs +0 -11
- package/esm2022/slider/testing/slider-harness-filters.mjs +0 -7
- package/esm2022/slider/testing/slider-harness.mjs +0 -67
- package/esm2022/slider/testing/slider-thumb-harness.mjs +0 -95
- package/esm2022/snack-bar/index.mjs +0 -9
- package/esm2022/snack-bar/module.mjs +0 -47
- package/esm2022/snack-bar/public-api.mjs +0 -16
- package/esm2022/snack-bar/simple-snack-bar.mjs +0 -40
- package/esm2022/snack-bar/snack-bar-animations.mjs +0 -30
- package/esm2022/snack-bar/snack-bar-config.mjs +0 -33
- package/esm2022/snack-bar/snack-bar-container.mjs +0 -277
- package/esm2022/snack-bar/snack-bar-content.mjs +0 -55
- package/esm2022/snack-bar/snack-bar-ref.mjs +0 -89
- package/esm2022/snack-bar/snack-bar.mjs +0 -267
- package/esm2022/snack-bar/snack-bar_public_index.mjs +0 -5
- package/esm2022/snack-bar/testing/index.mjs +0 -9
- package/esm2022/snack-bar/testing/public-api.mjs +0 -10
- package/esm2022/snack-bar/testing/snack-bar-harness-filters.mjs +0 -9
- package/esm2022/snack-bar/testing/snack-bar-harness.mjs +0 -101
- package/esm2022/sort/index.mjs +0 -9
- package/esm2022/sort/public-api.mjs +0 -14
- package/esm2022/sort/sort-animations.mjs +0 -69
- package/esm2022/sort/sort-direction.mjs +0 -9
- package/esm2022/sort/sort-errors.mjs +0 -24
- package/esm2022/sort/sort-header-intl.mjs +0 -41
- package/esm2022/sort/sort-header.mjs +0 -317
- package/esm2022/sort/sort-module.mjs +0 -27
- package/esm2022/sort/sort.mjs +0 -155
- package/esm2022/sort/sort_public_index.mjs +0 -5
- package/esm2022/sort/testing/index.mjs +0 -9
- package/esm2022/sort/testing/public-api.mjs +0 -11
- package/esm2022/sort/testing/sort-harness-filters.mjs +0 -2
- package/esm2022/sort/testing/sort-harness.mjs +0 -36
- package/esm2022/sort/testing/sort-header-harness.mjs +0 -56
- package/esm2022/stepper/index.mjs +0 -9
- package/esm2022/stepper/public-api.mjs +0 -17
- package/esm2022/stepper/step-content.mjs +0 -27
- package/esm2022/stepper/step-header.mjs +0 -105
- package/esm2022/stepper/step-label.mjs +0 -22
- package/esm2022/stepper/stepper-animations.mjs +0 -47
- package/esm2022/stepper/stepper-button.mjs +0 -43
- package/esm2022/stepper/stepper-icon.mjs +0 -30
- package/esm2022/stepper/stepper-intl.mjs +0 -43
- package/esm2022/stepper/stepper-module.mjs +0 -88
- package/esm2022/stepper/stepper.mjs +0 -205
- package/esm2022/stepper/stepper_public_index.mjs +0 -5
- package/esm2022/stepper/testing/index.mjs +0 -9
- package/esm2022/stepper/testing/public-api.mjs +0 -12
- package/esm2022/stepper/testing/step-harness-filters.mjs +0 -7
- package/esm2022/stepper/testing/step-harness.mjs +0 -90
- package/esm2022/stepper/testing/stepper-button-harnesses.mjs +0 -48
- package/esm2022/stepper/testing/stepper-harness.mjs +0 -51
- package/esm2022/table/cell.mjs +0 -147
- package/esm2022/table/index.mjs +0 -9
- package/esm2022/table/module.mjs +0 -93
- package/esm2022/table/public-api.mjs +0 -14
- package/esm2022/table/row.mjs +0 -163
- package/esm2022/table/table-data-source.mjs +0 -317
- package/esm2022/table/table.mjs +0 -122
- package/esm2022/table/table_public_index.mjs +0 -5
- package/esm2022/table/testing/cell-harness.mjs +0 -77
- package/esm2022/table/testing/index.mjs +0 -9
- package/esm2022/table/testing/public-api.mjs +0 -12
- package/esm2022/table/testing/row-harness.mjs +0 -84
- package/esm2022/table/testing/table-harness-filters.mjs +0 -2
- package/esm2022/table/testing/table-harness.mjs +0 -86
- package/esm2022/table/text-column.mjs +0 -60
- package/esm2022/tabs/index.mjs +0 -9
- package/esm2022/tabs/ink-bar.mjs +0 -149
- package/esm2022/tabs/module.mjs +0 -60
- package/esm2022/tabs/paginated-tab-header.mjs +0 -539
- package/esm2022/tabs/public-api.mjs +0 -21
- package/esm2022/tabs/tab-body.mjs +0 -199
- package/esm2022/tabs/tab-config.mjs +0 -11
- package/esm2022/tabs/tab-content.mjs +0 -32
- package/esm2022/tabs/tab-group.mjs +0 -469
- package/esm2022/tabs/tab-header.mjs +0 -86
- package/esm2022/tabs/tab-label-wrapper.mjs +0 -49
- package/esm2022/tabs/tab-label.mjs +0 -44
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +0 -388
- package/esm2022/tabs/tab.mjs +0 -128
- package/esm2022/tabs/tabs-animations.mjs +0 -45
- package/esm2022/tabs/tabs_public_index.mjs +0 -5
- package/esm2022/tabs/testing/index.mjs +0 -9
- package/esm2022/tabs/testing/public-api.mjs +0 -13
- package/esm2022/tabs/testing/tab-group-harness.mjs +0 -56
- package/esm2022/tabs/testing/tab-harness-filters.mjs +0 -2
- package/esm2022/tabs/testing/tab-harness.mjs +0 -66
- package/esm2022/tabs/testing/tab-link-harness.mjs +0 -40
- package/esm2022/tabs/testing/tab-nav-bar-harness.mjs +0 -66
- package/esm2022/tabs/testing/tab-nav-panel-harness.mjs +0 -27
- package/esm2022/toolbar/index.mjs +0 -9
- package/esm2022/toolbar/public-api.mjs +0 -10
- package/esm2022/toolbar/testing/index.mjs +0 -9
- package/esm2022/toolbar/testing/public-api.mjs +0 -10
- package/esm2022/toolbar/testing/toolbar-harness-filters.mjs +0 -9
- package/esm2022/toolbar/testing/toolbar-harness.mjs +0 -44
- package/esm2022/toolbar/toolbar-module.mjs +0 -24
- package/esm2022/toolbar/toolbar.mjs +0 -84
- package/esm2022/toolbar/toolbar_public_index.mjs +0 -5
- package/esm2022/tooltip/index.mjs +0 -9
- package/esm2022/tooltip/module.mjs +0 -29
- package/esm2022/tooltip/public-api.mjs +0 -11
- package/esm2022/tooltip/testing/index.mjs +0 -9
- package/esm2022/tooltip/testing/public-api.mjs +0 -10
- package/esm2022/tooltip/testing/tooltip-harness-filters.mjs +0 -9
- package/esm2022/tooltip/testing/tooltip-harness.mjs +0 -66
- package/esm2022/tooltip/tooltip-animations.mjs +0 -24
- package/esm2022/tooltip/tooltip.mjs +0 -920
- package/esm2022/tooltip/tooltip_public_index.mjs +0 -5
- package/esm2022/tree/data-source/flat-data-source.mjs +0 -156
- package/esm2022/tree/data-source/nested-data-source.mjs +0 -38
- package/esm2022/tree/index.mjs +0 -9
- package/esm2022/tree/node.mjs +0 -220
- package/esm2022/tree/outlet.mjs +0 -46
- package/esm2022/tree/padding.mjs +0 -46
- package/esm2022/tree/public-api.mjs +0 -16
- package/esm2022/tree/testing/index.mjs +0 -9
- package/esm2022/tree/testing/node-harness.mjs +0 -73
- package/esm2022/tree/testing/public-api.mjs +0 -11
- package/esm2022/tree/testing/tree-harness-filters.mjs +0 -9
- package/esm2022/tree/testing/tree-harness.mjs +0 -123
- package/esm2022/tree/toggle.mjs +0 -27
- package/esm2022/tree/tree-module.mjs +0 -50
- package/esm2022/tree/tree.mjs +0 -34
- package/esm2022/tree/tree_public_index.mjs +0 -5
- package/schematics/ng-generate/m3-theme/index_bundled.js.map +0 -7
package/fesm2022/core.mjs
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Version, InjectionToken, inject, NgModule,
|
|
3
|
-
import
|
|
4
|
-
import { isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader } from '@angular/cdk/a11y';
|
|
2
|
+
import { Version, InjectionToken, inject, NgModule, LOCALE_ID, Injectable, Component, ViewEncapsulation, ChangeDetectionStrategy, Directive, ElementRef, ANIMATION_MODULE_TYPE, NgZone, Injector, Input, booleanAttribute, ChangeDetectorRef, EventEmitter, isSignal, Output, ViewChild } from '@angular/core';
|
|
3
|
+
import { HighContrastModeDetector, isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader } from '@angular/cdk/a11y';
|
|
5
4
|
import { BidiModule } from '@angular/cdk/bidi';
|
|
6
|
-
import {
|
|
7
|
-
import { DOCUMENT } from '@angular/common';
|
|
8
|
-
import * as i1$1 from '@angular/cdk/platform';
|
|
9
|
-
import { Platform, _isTestEnvironment, normalizePassiveListenerOptions, _getEventTarget } from '@angular/cdk/platform';
|
|
10
|
-
import { coerceBooleanProperty, coerceNumberProperty, coerceElement } from '@angular/cdk/coercion';
|
|
11
|
-
import { Observable, Subject } from 'rxjs';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
12
6
|
import { startWith } from 'rxjs/operators';
|
|
7
|
+
import { normalizePassiveListenerOptions, _getEventTarget, Platform } from '@angular/cdk/platform';
|
|
8
|
+
import { coerceElement } from '@angular/cdk/coercion';
|
|
9
|
+
import { _CdkPrivateStyleLoader, _VisuallyHiddenLoader } from '@angular/cdk/private';
|
|
13
10
|
import { ENTER, SPACE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
11
|
+
import { DOCUMENT } from '@angular/common';
|
|
14
12
|
|
|
15
13
|
/** Current version of Angular Material. */
|
|
16
|
-
const VERSION = new Version('19.0.0-next.
|
|
14
|
+
const VERSION = new Version('19.0.0-next.10');
|
|
17
15
|
|
|
18
16
|
/** @docs-private */
|
|
19
17
|
class AnimationCurves {
|
|
@@ -29,190 +27,40 @@ class AnimationDurations {
|
|
|
29
27
|
static { this.EXITING = '195ms'; }
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Injection token that configures whether the Material sanity checks are enabled.
|
|
32
|
+
* @deprecated No longer used and will be removed.
|
|
33
|
+
* @breaking-change 21.0.0
|
|
34
|
+
*/
|
|
37
35
|
const MATERIAL_SANITY_CHECKS = new InjectionToken('mat-sanity-checks', {
|
|
38
36
|
providedIn: 'root',
|
|
39
|
-
factory:
|
|
37
|
+
factory: () => true,
|
|
40
38
|
});
|
|
41
39
|
/**
|
|
42
40
|
* Module that captures anything that should be loaded and/or run for *all* Angular Material
|
|
43
41
|
* components. This includes Bidi, etc.
|
|
44
42
|
*
|
|
45
43
|
* This module should be imported to each top-level component module (e.g., MatTabsModule).
|
|
44
|
+
* @deprecated No longer used and will be removed.
|
|
45
|
+
* @breaking-change 21.0.0
|
|
46
46
|
*/
|
|
47
47
|
class MatCommonModule {
|
|
48
|
-
constructor(
|
|
49
|
-
this._sanityChecks = _sanityChecks;
|
|
50
|
-
this._document = _document;
|
|
51
|
-
/** Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype). */
|
|
52
|
-
this._hasDoneGlobalChecks = false;
|
|
48
|
+
constructor() {
|
|
53
49
|
// While A11yModule also does this, we repeat it here to avoid importing A11yModule
|
|
54
50
|
// in MatCommonModule.
|
|
55
|
-
|
|
56
|
-
if (!this._hasDoneGlobalChecks) {
|
|
57
|
-
this._hasDoneGlobalChecks = true;
|
|
58
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
59
|
-
// Inject in here so the reference to `Platform` can be removed in production mode.
|
|
60
|
-
const platform = inject(Platform, { optional: true });
|
|
61
|
-
if (this._checkIsEnabled('doctype')) {
|
|
62
|
-
_checkDoctypeIsDefined(this._document);
|
|
63
|
-
}
|
|
64
|
-
if (this._checkIsEnabled('theme')) {
|
|
65
|
-
_checkThemeIsPresent(this._document, !!platform?.isBrowser);
|
|
66
|
-
}
|
|
67
|
-
if (this._checkIsEnabled('version')) {
|
|
68
|
-
_checkCdkVersionMatch();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
/** Gets whether a specific sanity check is enabled. */
|
|
74
|
-
_checkIsEnabled(name) {
|
|
75
|
-
if (_isTestEnvironment()) {
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
if (typeof this._sanityChecks === 'boolean') {
|
|
79
|
-
return this._sanityChecks;
|
|
80
|
-
}
|
|
81
|
-
return !!this._sanityChecks[name];
|
|
51
|
+
inject(HighContrastModeDetector)._applyBodyHighContrastModeCssClasses();
|
|
82
52
|
}
|
|
83
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
84
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
85
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
54
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatCommonModule, imports: [BidiModule], exports: [BidiModule] }); }
|
|
55
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatCommonModule, imports: [BidiModule, BidiModule] }); }
|
|
86
56
|
}
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatCommonModule, decorators: [{
|
|
88
58
|
type: NgModule,
|
|
89
59
|
args: [{
|
|
90
60
|
imports: [BidiModule],
|
|
91
61
|
exports: [BidiModule],
|
|
92
62
|
}]
|
|
93
|
-
}], ctorParameters: () => [
|
|
94
|
-
type: Optional
|
|
95
|
-
}, {
|
|
96
|
-
type: Inject,
|
|
97
|
-
args: [MATERIAL_SANITY_CHECKS]
|
|
98
|
-
}] }, { type: Document, decorators: [{
|
|
99
|
-
type: Inject,
|
|
100
|
-
args: [DOCUMENT]
|
|
101
|
-
}] }] });
|
|
102
|
-
/** Checks that the page has a doctype. */
|
|
103
|
-
function _checkDoctypeIsDefined(doc) {
|
|
104
|
-
if (!doc.doctype) {
|
|
105
|
-
console.warn('Current document does not have a doctype. This may cause ' +
|
|
106
|
-
'some Angular Material components not to behave as expected.');
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
/** Checks that a theme has been included. */
|
|
110
|
-
function _checkThemeIsPresent(doc, isBrowser) {
|
|
111
|
-
// We need to assert that the `body` is defined, because these checks run very early
|
|
112
|
-
// and the `body` won't be defined if the consumer put their scripts in the `head`.
|
|
113
|
-
if (!doc.body || !isBrowser) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
const testElement = doc.createElement('div');
|
|
117
|
-
testElement.classList.add('mat-theme-loaded-marker');
|
|
118
|
-
doc.body.appendChild(testElement);
|
|
119
|
-
const computedStyle = getComputedStyle(testElement);
|
|
120
|
-
// In some situations the computed style of the test element can be null. For example in
|
|
121
|
-
// Firefox, the computed style is null if an application is running inside of a hidden iframe.
|
|
122
|
-
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397
|
|
123
|
-
if (computedStyle && computedStyle.display !== 'none') {
|
|
124
|
-
console.warn('Could not find Angular Material core theme. Most Material ' +
|
|
125
|
-
'components may not work as expected. For more info refer ' +
|
|
126
|
-
'to the theming guide: https://material.angular.io/guide/theming');
|
|
127
|
-
}
|
|
128
|
-
testElement.remove();
|
|
129
|
-
}
|
|
130
|
-
/** Checks whether the Material version matches the CDK version. */
|
|
131
|
-
function _checkCdkVersionMatch() {
|
|
132
|
-
if (VERSION.full !== VERSION$1.full) {
|
|
133
|
-
console.warn('The Angular Material version (' +
|
|
134
|
-
VERSION.full +
|
|
135
|
-
') does not match ' +
|
|
136
|
-
'the Angular CDK version (' +
|
|
137
|
-
VERSION$1.full +
|
|
138
|
-
').\n' +
|
|
139
|
-
'Please ensure the versions of these two packages exactly match.');
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
function mixinDisabled(base) {
|
|
144
|
-
return class extends base {
|
|
145
|
-
get disabled() {
|
|
146
|
-
return this._disabled;
|
|
147
|
-
}
|
|
148
|
-
set disabled(value) {
|
|
149
|
-
this._disabled = coerceBooleanProperty(value);
|
|
150
|
-
}
|
|
151
|
-
constructor(...args) {
|
|
152
|
-
super(...args);
|
|
153
|
-
this._disabled = false;
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function mixinColor(base, defaultColor) {
|
|
159
|
-
return class extends base {
|
|
160
|
-
get color() {
|
|
161
|
-
return this._color;
|
|
162
|
-
}
|
|
163
|
-
set color(value) {
|
|
164
|
-
const colorPalette = value || this.defaultColor;
|
|
165
|
-
if (colorPalette !== this._color) {
|
|
166
|
-
if (this._color) {
|
|
167
|
-
this._elementRef.nativeElement.classList.remove(`mat-${this._color}`);
|
|
168
|
-
}
|
|
169
|
-
if (colorPalette) {
|
|
170
|
-
this._elementRef.nativeElement.classList.add(`mat-${colorPalette}`);
|
|
171
|
-
}
|
|
172
|
-
this._color = colorPalette;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
constructor(...args) {
|
|
176
|
-
super(...args);
|
|
177
|
-
this.defaultColor = defaultColor;
|
|
178
|
-
// Set the default color that can be specified from the mixin.
|
|
179
|
-
this.color = defaultColor;
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
function mixinDisableRipple(base) {
|
|
185
|
-
return class extends base {
|
|
186
|
-
/** Whether the ripple effect is disabled or not. */
|
|
187
|
-
get disableRipple() {
|
|
188
|
-
return this._disableRipple;
|
|
189
|
-
}
|
|
190
|
-
set disableRipple(value) {
|
|
191
|
-
this._disableRipple = coerceBooleanProperty(value);
|
|
192
|
-
}
|
|
193
|
-
constructor(...args) {
|
|
194
|
-
super(...args);
|
|
195
|
-
this._disableRipple = false;
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
function mixinTabIndex(base, defaultTabIndex = 0) {
|
|
201
|
-
return class extends base {
|
|
202
|
-
get tabIndex() {
|
|
203
|
-
return this.disabled ? -1 : this._tabIndex;
|
|
204
|
-
}
|
|
205
|
-
set tabIndex(value) {
|
|
206
|
-
// If the specified tabIndex value is null or undefined, fall back to the default value.
|
|
207
|
-
this._tabIndex = value != null ? coerceNumberProperty(value) : this.defaultTabIndex;
|
|
208
|
-
}
|
|
209
|
-
constructor(...args) {
|
|
210
|
-
super(...args);
|
|
211
|
-
this._tabIndex = defaultTabIndex;
|
|
212
|
-
this.defaultTabIndex = defaultTabIndex;
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
}
|
|
63
|
+
}], ctorParameters: () => [] });
|
|
216
64
|
|
|
217
65
|
/**
|
|
218
66
|
* Class that tracks the error state of a component.
|
|
@@ -241,91 +89,6 @@ class _ErrorStateTracker {
|
|
|
241
89
|
}
|
|
242
90
|
}
|
|
243
91
|
}
|
|
244
|
-
function mixinErrorState(base) {
|
|
245
|
-
return class extends base {
|
|
246
|
-
/** Whether the component is in an error state. */
|
|
247
|
-
get errorState() {
|
|
248
|
-
return this._getTracker().errorState;
|
|
249
|
-
}
|
|
250
|
-
set errorState(value) {
|
|
251
|
-
this._getTracker().errorState = value;
|
|
252
|
-
}
|
|
253
|
-
/** An object used to control the error state of the component. */
|
|
254
|
-
get errorStateMatcher() {
|
|
255
|
-
return this._getTracker().matcher;
|
|
256
|
-
}
|
|
257
|
-
set errorStateMatcher(value) {
|
|
258
|
-
this._getTracker().matcher = value;
|
|
259
|
-
}
|
|
260
|
-
/** Updates the error state based on the provided error state matcher. */
|
|
261
|
-
updateErrorState() {
|
|
262
|
-
this._getTracker().updateErrorState();
|
|
263
|
-
}
|
|
264
|
-
_getTracker() {
|
|
265
|
-
if (!this._tracker) {
|
|
266
|
-
this._tracker = new _ErrorStateTracker(this._defaultErrorStateMatcher, this.ngControl, this._parentFormGroup, this._parentForm, this.stateChanges);
|
|
267
|
-
}
|
|
268
|
-
return this._tracker;
|
|
269
|
-
}
|
|
270
|
-
constructor(...args) {
|
|
271
|
-
super(...args);
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Mixin to augment a directive with an initialized property that will emits when ngOnInit ends.
|
|
278
|
-
* @deprecated Track the initialized state manually.
|
|
279
|
-
* @breaking-change 19.0.0
|
|
280
|
-
*/
|
|
281
|
-
function mixinInitialized(base) {
|
|
282
|
-
return class extends base {
|
|
283
|
-
constructor(...args) {
|
|
284
|
-
super(...args);
|
|
285
|
-
/** Whether this directive has been marked as initialized. */
|
|
286
|
-
this._isInitialized = false;
|
|
287
|
-
/**
|
|
288
|
-
* List of subscribers that subscribed before the directive was initialized. Should be notified
|
|
289
|
-
* during _markInitialized. Set to null after pending subscribers are notified, and should
|
|
290
|
-
* not expect to be populated after.
|
|
291
|
-
*/
|
|
292
|
-
this._pendingSubscribers = [];
|
|
293
|
-
/**
|
|
294
|
-
* Observable stream that emits when the directive initializes. If already initialized, the
|
|
295
|
-
* subscriber is stored to be notified once _markInitialized is called.
|
|
296
|
-
*/
|
|
297
|
-
this.initialized = new Observable(subscriber => {
|
|
298
|
-
// If initialized, immediately notify the subscriber. Otherwise store the subscriber to notify
|
|
299
|
-
// when _markInitialized is called.
|
|
300
|
-
if (this._isInitialized) {
|
|
301
|
-
this._notifySubscriber(subscriber);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
this._pendingSubscribers.push(subscriber);
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Marks the state as initialized and notifies pending subscribers. Should be called at the end
|
|
310
|
-
* of ngOnInit.
|
|
311
|
-
* @docs-private
|
|
312
|
-
*/
|
|
313
|
-
_markInitialized() {
|
|
314
|
-
if (this._isInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
315
|
-
throw Error('This directive has already been marked as initialized and ' +
|
|
316
|
-
'should not be called twice.');
|
|
317
|
-
}
|
|
318
|
-
this._isInitialized = true;
|
|
319
|
-
this._pendingSubscribers.forEach(this._notifySubscriber);
|
|
320
|
-
this._pendingSubscribers = null;
|
|
321
|
-
}
|
|
322
|
-
/** Emits and completes the subscriber stream (should only emit once). */
|
|
323
|
-
_notifySubscriber(subscriber) {
|
|
324
|
-
subscriber.next();
|
|
325
|
-
subscriber.complete();
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
92
|
|
|
330
93
|
/** InjectionToken for datepicker that can be used to override default locale code. */
|
|
331
94
|
const MAT_DATE_LOCALE = new InjectionToken('MAT_DATE_LOCALE', {
|
|
@@ -336,6 +99,7 @@ const MAT_DATE_LOCALE = new InjectionToken('MAT_DATE_LOCALE', {
|
|
|
336
99
|
function MAT_DATE_LOCALE_FACTORY() {
|
|
337
100
|
return inject(LOCALE_ID);
|
|
338
101
|
}
|
|
102
|
+
const NOT_IMPLEMENTED = 'Method not implemented';
|
|
339
103
|
/** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */
|
|
340
104
|
class DateAdapter {
|
|
341
105
|
constructor() {
|
|
@@ -343,6 +107,54 @@ class DateAdapter {
|
|
|
343
107
|
/** A stream that emits when the locale changes. */
|
|
344
108
|
this.localeChanges = this._localeChanges;
|
|
345
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Sets the time of one date to the time of another.
|
|
112
|
+
* @param target Date whose time will be set.
|
|
113
|
+
* @param hours New hours to set on the date object.
|
|
114
|
+
* @param minutes New minutes to set on the date object.
|
|
115
|
+
* @param seconds New seconds to set on the date object.
|
|
116
|
+
*/
|
|
117
|
+
setTime(target, hours, minutes, seconds) {
|
|
118
|
+
throw new Error(NOT_IMPLEMENTED);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Gets the hours component of the given date.
|
|
122
|
+
* @param date The date to extract the hours from.
|
|
123
|
+
*/
|
|
124
|
+
getHours(date) {
|
|
125
|
+
throw new Error(NOT_IMPLEMENTED);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Gets the minutes component of the given date.
|
|
129
|
+
* @param date The date to extract the minutes from.
|
|
130
|
+
*/
|
|
131
|
+
getMinutes(date) {
|
|
132
|
+
throw new Error(NOT_IMPLEMENTED);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Gets the seconds component of the given date.
|
|
136
|
+
* @param date The date to extract the seconds from.
|
|
137
|
+
*/
|
|
138
|
+
getSeconds(date) {
|
|
139
|
+
throw new Error(NOT_IMPLEMENTED);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Parses a date with a specific time from a user-provided value.
|
|
143
|
+
* @param value The value to parse.
|
|
144
|
+
* @param parseFormat The expected format of the value being parsed
|
|
145
|
+
* (type is implementation-dependent).
|
|
146
|
+
*/
|
|
147
|
+
parseTime(value, parseFormat) {
|
|
148
|
+
throw new Error(NOT_IMPLEMENTED);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Adds an amount of seconds to the specified date.
|
|
152
|
+
* @param date Date to which to add the seconds.
|
|
153
|
+
* @param amount Amount of seconds to add to the date.
|
|
154
|
+
*/
|
|
155
|
+
addSeconds(date, amount) {
|
|
156
|
+
throw new Error(NOT_IMPLEMENTED);
|
|
157
|
+
}
|
|
346
158
|
/**
|
|
347
159
|
* Given a potential date object, returns that same date object if it is
|
|
348
160
|
* a valid date, or `null` if it's not a valid date.
|
|
@@ -390,6 +202,18 @@ class DateAdapter {
|
|
|
390
202
|
this.getMonth(first) - this.getMonth(second) ||
|
|
391
203
|
this.getDate(first) - this.getDate(second));
|
|
392
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Compares the time values of two dates.
|
|
207
|
+
* @param first First date to compare.
|
|
208
|
+
* @param second Second date to compare.
|
|
209
|
+
* @returns 0 if the times are equal, a number less than 0 if the first time is earlier,
|
|
210
|
+
* a number greater than 0 if the first time is later.
|
|
211
|
+
*/
|
|
212
|
+
compareTime(first, second) {
|
|
213
|
+
return (this.getHours(first) - this.getHours(second) ||
|
|
214
|
+
this.getMinutes(first) - this.getMinutes(second) ||
|
|
215
|
+
this.getSeconds(first) - this.getSeconds(second));
|
|
216
|
+
}
|
|
393
217
|
/**
|
|
394
218
|
* Checks if two dates are equal.
|
|
395
219
|
* @param first The first date to check.
|
|
@@ -408,6 +232,24 @@ class DateAdapter {
|
|
|
408
232
|
}
|
|
409
233
|
return first == second;
|
|
410
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* Checks if the times of two dates are equal.
|
|
237
|
+
* @param first The first date to check.
|
|
238
|
+
* @param second The second date to check.
|
|
239
|
+
* @returns Whether the times of the two dates are equal.
|
|
240
|
+
* Null dates are considered equal to other null dates.
|
|
241
|
+
*/
|
|
242
|
+
sameTime(first, second) {
|
|
243
|
+
if (first && second) {
|
|
244
|
+
const firstValid = this.isValid(first);
|
|
245
|
+
const secondValid = this.isValid(second);
|
|
246
|
+
if (firstValid && secondValid) {
|
|
247
|
+
return !this.compareTime(first, second);
|
|
248
|
+
}
|
|
249
|
+
return firstValid == secondValid;
|
|
250
|
+
}
|
|
251
|
+
return first == second;
|
|
252
|
+
}
|
|
411
253
|
/**
|
|
412
254
|
* Clamp the given date between min and max dates.
|
|
413
255
|
* @param date The date to clamp.
|
|
@@ -435,6 +277,18 @@ const MAT_DATE_FORMATS = new InjectionToken('mat-date-formats');
|
|
|
435
277
|
* because the regex will match strings with an out of bounds month, date, etc.
|
|
436
278
|
*/
|
|
437
279
|
const ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
|
|
280
|
+
/**
|
|
281
|
+
* Matches a time string. Supported formats:
|
|
282
|
+
* - {{hours}}:{{minutes}}
|
|
283
|
+
* - {{hours}}:{{minutes}}:{{seconds}}
|
|
284
|
+
* - {{hours}}:{{minutes}} AM/PM
|
|
285
|
+
* - {{hours}}:{{minutes}}:{{seconds}} AM/PM
|
|
286
|
+
* - {{hours}}.{{minutes}}
|
|
287
|
+
* - {{hours}}.{{minutes}}.{{seconds}}
|
|
288
|
+
* - {{hours}}.{{minutes}} AM/PM
|
|
289
|
+
* - {{hours}}.{{minutes}}.{{seconds}} AM/PM
|
|
290
|
+
*/
|
|
291
|
+
const TIME_REGEX = /^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;
|
|
438
292
|
/** Creates an array and fills it with values. */
|
|
439
293
|
function range(length, valueFunction) {
|
|
440
294
|
const valuesArray = Array(length);
|
|
@@ -445,12 +299,7 @@ function range(length, valueFunction) {
|
|
|
445
299
|
}
|
|
446
300
|
/** Adapts the native JS Date for use with cdk-based components that work with dates. */
|
|
447
301
|
class NativeDateAdapter extends DateAdapter {
|
|
448
|
-
constructor(
|
|
449
|
-
/**
|
|
450
|
-
* @deprecated Now injected via inject(), param to be removed.
|
|
451
|
-
* @breaking-change 18.0.0
|
|
452
|
-
*/
|
|
453
|
-
matDateLocale) {
|
|
302
|
+
constructor() {
|
|
454
303
|
super();
|
|
455
304
|
/**
|
|
456
305
|
* @deprecated No longer being used. To be removed.
|
|
@@ -459,6 +308,7 @@ class NativeDateAdapter extends DateAdapter {
|
|
|
459
308
|
this.useUtcForDisplay = false;
|
|
460
309
|
/** The injected locale. */
|
|
461
310
|
this._matDateLocale = inject(MAT_DATE_LOCALE, { optional: true });
|
|
311
|
+
const matDateLocale = inject(MAT_DATE_LOCALE, { optional: true });
|
|
462
312
|
if (matDateLocale !== undefined) {
|
|
463
313
|
this._matDateLocale = matDateLocale;
|
|
464
314
|
}
|
|
@@ -493,7 +343,18 @@ class NativeDateAdapter extends DateAdapter {
|
|
|
493
343
|
return this._format(dtf, date);
|
|
494
344
|
}
|
|
495
345
|
getFirstDayOfWeek() {
|
|
496
|
-
//
|
|
346
|
+
// At the time of writing `Intl.Locale` isn't available
|
|
347
|
+
// in the internal types so we need to cast to `any`.
|
|
348
|
+
if (typeof Intl !== 'undefined' && Intl.Locale) {
|
|
349
|
+
const locale = new Intl.Locale(this.locale);
|
|
350
|
+
// Some browsers implement a `getWeekInfo` method while others have a `weekInfo` getter.
|
|
351
|
+
// Note that this isn't supported in all browsers so we need to null check it.
|
|
352
|
+
const firstDay = (locale.getWeekInfo?.() || locale.weekInfo)?.firstDay ?? 0;
|
|
353
|
+
// `weekInfo.firstDay` is a number between 1 and 7 where, starting from Monday,
|
|
354
|
+
// whereas our representation is 0 to 6 where 0 is Sunday so we need to normalize it.
|
|
355
|
+
return firstDay === 7 ? 0 : firstDay;
|
|
356
|
+
}
|
|
357
|
+
// Default to Sunday if the browser doesn't provide the week information.
|
|
497
358
|
return 0;
|
|
498
359
|
}
|
|
499
360
|
getNumDaysInMonth(date) {
|
|
@@ -592,6 +453,54 @@ class NativeDateAdapter extends DateAdapter {
|
|
|
592
453
|
invalid() {
|
|
593
454
|
return new Date(NaN);
|
|
594
455
|
}
|
|
456
|
+
setTime(target, hours, minutes, seconds) {
|
|
457
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
458
|
+
if (!inRange(hours, 0, 23)) {
|
|
459
|
+
throw Error(`Invalid hours "${hours}". Hours value must be between 0 and 23.`);
|
|
460
|
+
}
|
|
461
|
+
if (!inRange(minutes, 0, 59)) {
|
|
462
|
+
throw Error(`Invalid minutes "${minutes}". Minutes value must be between 0 and 59.`);
|
|
463
|
+
}
|
|
464
|
+
if (!inRange(seconds, 0, 59)) {
|
|
465
|
+
throw Error(`Invalid seconds "${seconds}". Seconds value must be between 0 and 59.`);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
const clone = this.clone(target);
|
|
469
|
+
clone.setHours(hours, minutes, seconds, 0);
|
|
470
|
+
return clone;
|
|
471
|
+
}
|
|
472
|
+
getHours(date) {
|
|
473
|
+
return date.getHours();
|
|
474
|
+
}
|
|
475
|
+
getMinutes(date) {
|
|
476
|
+
return date.getMinutes();
|
|
477
|
+
}
|
|
478
|
+
getSeconds(date) {
|
|
479
|
+
return date.getSeconds();
|
|
480
|
+
}
|
|
481
|
+
parseTime(userValue, parseFormat) {
|
|
482
|
+
if (typeof userValue !== 'string') {
|
|
483
|
+
return userValue instanceof Date ? new Date(userValue.getTime()) : null;
|
|
484
|
+
}
|
|
485
|
+
const value = userValue.trim();
|
|
486
|
+
if (value.length === 0) {
|
|
487
|
+
return null;
|
|
488
|
+
}
|
|
489
|
+
// Attempt to parse the value directly.
|
|
490
|
+
let result = this._parseTimeString(value);
|
|
491
|
+
// Some locales add extra characters around the time, but are otherwise parseable
|
|
492
|
+
// (e.g. `00:05 ч.` in bg-BG). Try replacing all non-number and non-colon characters.
|
|
493
|
+
if (result === null) {
|
|
494
|
+
const withoutExtras = value.replace(/[^0-9:(AM|PM)]/gi, '').trim();
|
|
495
|
+
if (withoutExtras.length > 0) {
|
|
496
|
+
result = this._parseTimeString(withoutExtras);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return result || this.invalid();
|
|
500
|
+
}
|
|
501
|
+
addSeconds(date, amount) {
|
|
502
|
+
return new Date(date.getTime() + amount * 1000);
|
|
503
|
+
}
|
|
595
504
|
/** Creates a date but allows the month and date to overflow. */
|
|
596
505
|
_createDateWithOverflow(year, month, date) {
|
|
597
506
|
// Passing the year to the constructor causes year numbers <100 to be converted to 19xx.
|
|
@@ -628,47 +537,81 @@ class NativeDateAdapter extends DateAdapter {
|
|
|
628
537
|
d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
629
538
|
return dtf.format(d);
|
|
630
539
|
}
|
|
631
|
-
|
|
632
|
-
|
|
540
|
+
/**
|
|
541
|
+
* Attempts to parse a time string into a date object. Returns null if it cannot be parsed.
|
|
542
|
+
* @param value Time string to parse.
|
|
543
|
+
*/
|
|
544
|
+
_parseTimeString(value) {
|
|
545
|
+
// Note: we can technically rely on the browser for the time parsing by generating
|
|
546
|
+
// an ISO string and appending the string to the end of it. We don't do it, because
|
|
547
|
+
// browsers aren't consistent in what they support. Some examples:
|
|
548
|
+
// - Safari doesn't support AM/PM.
|
|
549
|
+
// - Firefox produces a valid date object if the time string has overflows (e.g. 12:75) while
|
|
550
|
+
// other browsers produce an invalid date.
|
|
551
|
+
// - Safari doesn't allow padded numbers.
|
|
552
|
+
const parsed = value.toUpperCase().match(TIME_REGEX);
|
|
553
|
+
if (parsed) {
|
|
554
|
+
let hours = parseInt(parsed[1]);
|
|
555
|
+
const minutes = parseInt(parsed[2]);
|
|
556
|
+
let seconds = parsed[3] == null ? undefined : parseInt(parsed[3]);
|
|
557
|
+
const amPm = parsed[4];
|
|
558
|
+
if (hours === 12) {
|
|
559
|
+
hours = amPm === 'AM' ? 0 : hours;
|
|
560
|
+
}
|
|
561
|
+
else if (amPm === 'PM') {
|
|
562
|
+
hours += 12;
|
|
563
|
+
}
|
|
564
|
+
if (inRange(hours, 0, 23) &&
|
|
565
|
+
inRange(minutes, 0, 59) &&
|
|
566
|
+
(seconds == null || inRange(seconds, 0, 59))) {
|
|
567
|
+
return this.setTime(this.today(), hours, minutes, seconds || 0);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
return null;
|
|
571
|
+
}
|
|
572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: NativeDateAdapter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
573
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: NativeDateAdapter }); }
|
|
633
574
|
}
|
|
634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: NativeDateAdapter, decorators: [{
|
|
635
576
|
type: Injectable
|
|
636
|
-
}], ctorParameters: () => [
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}] }] });
|
|
577
|
+
}], ctorParameters: () => [] });
|
|
578
|
+
/** Checks whether a number is within a certain range. */
|
|
579
|
+
function inRange(value, min, max) {
|
|
580
|
+
return !isNaN(value) && value >= min && value <= max;
|
|
581
|
+
}
|
|
642
582
|
|
|
643
583
|
const MAT_NATIVE_DATE_FORMATS = {
|
|
644
584
|
parse: {
|
|
645
585
|
dateInput: null,
|
|
586
|
+
timeInput: null,
|
|
646
587
|
},
|
|
647
588
|
display: {
|
|
648
589
|
dateInput: { year: 'numeric', month: 'numeric', day: 'numeric' },
|
|
590
|
+
timeInput: { hour: 'numeric', minute: 'numeric' },
|
|
649
591
|
monthYearLabel: { year: 'numeric', month: 'short' },
|
|
650
592
|
dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },
|
|
651
593
|
monthYearA11yLabel: { year: 'numeric', month: 'long' },
|
|
594
|
+
timeOptionLabel: { hour: 'numeric', minute: 'numeric' },
|
|
652
595
|
},
|
|
653
596
|
};
|
|
654
597
|
|
|
655
598
|
class NativeDateModule {
|
|
656
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
657
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
658
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
599
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: NativeDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
600
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.10", ngImport: i0, type: NativeDateModule }); }
|
|
601
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: NativeDateModule, providers: [{ provide: DateAdapter, useClass: NativeDateAdapter }] }); }
|
|
659
602
|
}
|
|
660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: NativeDateModule, decorators: [{
|
|
661
604
|
type: NgModule,
|
|
662
605
|
args: [{
|
|
663
606
|
providers: [{ provide: DateAdapter, useClass: NativeDateAdapter }],
|
|
664
607
|
}]
|
|
665
608
|
}] });
|
|
666
609
|
class MatNativeDateModule {
|
|
667
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
668
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
669
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
610
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatNativeDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
611
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatNativeDateModule }); }
|
|
612
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatNativeDateModule, providers: [provideNativeDateAdapter()] }); }
|
|
670
613
|
}
|
|
671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatNativeDateModule, decorators: [{
|
|
672
615
|
type: NgModule,
|
|
673
616
|
args: [{
|
|
674
617
|
providers: [provideNativeDateAdapter()],
|
|
@@ -686,10 +629,10 @@ class ShowOnDirtyErrorStateMatcher {
|
|
|
686
629
|
isErrorState(control, form) {
|
|
687
630
|
return !!(control && control.invalid && (control.dirty || (form && form.submitted)));
|
|
688
631
|
}
|
|
689
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
690
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
632
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
633
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: ShowOnDirtyErrorStateMatcher }); }
|
|
691
634
|
}
|
|
692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, decorators: [{
|
|
693
636
|
type: Injectable
|
|
694
637
|
}] });
|
|
695
638
|
/** Provider that defines how form controls behave with regards to displaying error messages. */
|
|
@@ -697,29 +640,41 @@ class ErrorStateMatcher {
|
|
|
697
640
|
isErrorState(control, form) {
|
|
698
641
|
return !!(control && control.invalid && (control.touched || (form && form.submitted)));
|
|
699
642
|
}
|
|
700
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
701
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
643
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: ErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
644
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: ErrorStateMatcher, providedIn: 'root' }); }
|
|
702
645
|
}
|
|
703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: ErrorStateMatcher, decorators: [{
|
|
704
647
|
type: Injectable,
|
|
705
648
|
args: [{ providedIn: 'root' }]
|
|
706
649
|
}] });
|
|
707
650
|
|
|
651
|
+
/**
|
|
652
|
+
* Component used to load structural styles for focus indicators.
|
|
653
|
+
* @docs-private
|
|
654
|
+
*/
|
|
655
|
+
class _StructuralStylesLoader {
|
|
656
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: _StructuralStylesLoader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
657
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.10", type: _StructuralStylesLoader, isStandalone: true, selector: "structural-styles", ngImport: i0, template: '', isInline: true, styles: [".mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:\"\"}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
658
|
+
}
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: _StructuralStylesLoader, decorators: [{
|
|
660
|
+
type: Component,
|
|
661
|
+
args: [{ selector: 'structural-styles', encapsulation: ViewEncapsulation.None, template: '', changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:\"\"}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}"] }]
|
|
662
|
+
}] });
|
|
663
|
+
|
|
708
664
|
/**
|
|
709
665
|
* Shared directive to count lines inside a text area, such as a list item.
|
|
710
666
|
* Line elements can be extracted with a @ContentChildren(MatLine) query, then
|
|
711
667
|
* counted by checking the query list's length.
|
|
712
668
|
*/
|
|
713
669
|
class MatLine {
|
|
714
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
715
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
670
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatLine, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
671
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MatLine, isStandalone: true, selector: "[mat-line], [matLine]", host: { classAttribute: "mat-line" }, ngImport: i0 }); }
|
|
716
672
|
}
|
|
717
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatLine, decorators: [{
|
|
718
674
|
type: Directive,
|
|
719
675
|
args: [{
|
|
720
676
|
selector: '[mat-line], [matLine]',
|
|
721
677
|
host: { 'class': 'mat-line' },
|
|
722
|
-
standalone: true,
|
|
723
678
|
}]
|
|
724
679
|
}] });
|
|
725
680
|
/**
|
|
@@ -746,11 +701,11 @@ function setClass(element, className, isAdd) {
|
|
|
746
701
|
element.nativeElement.classList.toggle(className, isAdd);
|
|
747
702
|
}
|
|
748
703
|
class MatLineModule {
|
|
749
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
750
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
751
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
704
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
705
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatLineModule, imports: [MatCommonModule, MatLine], exports: [MatLine, MatCommonModule] }); }
|
|
706
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatLineModule, imports: [MatCommonModule, MatCommonModule] }); }
|
|
752
707
|
}
|
|
753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatLineModule, decorators: [{
|
|
754
709
|
type: NgModule,
|
|
755
710
|
args: [{
|
|
756
711
|
imports: [MatCommonModule, MatLine],
|
|
@@ -873,6 +828,14 @@ const passiveCapturingEventOptions = normalizePassiveListenerOptions({
|
|
|
873
828
|
const pointerDownEvents = ['mousedown', 'touchstart'];
|
|
874
829
|
/** Events that signal that the pointer is up. */
|
|
875
830
|
const pointerUpEvents = ['mouseup', 'mouseleave', 'touchend', 'touchcancel'];
|
|
831
|
+
class _MatRippleStylesLoader {
|
|
832
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: _MatRippleStylesLoader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
833
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.10", type: _MatRippleStylesLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "mat-ripple-style-loader": "" } }, ngImport: i0, template: '', isInline: true, styles: [".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
834
|
+
}
|
|
835
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: _MatRippleStylesLoader, decorators: [{
|
|
836
|
+
type: Component,
|
|
837
|
+
args: [{ template: '', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { 'mat-ripple-style-loader': '' }, styles: [".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"] }]
|
|
838
|
+
}] });
|
|
876
839
|
/**
|
|
877
840
|
* Helper service that performs DOM manipulations. Not intended to be used outside this module.
|
|
878
841
|
* The constructor takes a reference to the ripple directive's host element and a map of DOM
|
|
@@ -882,7 +845,7 @@ const pointerUpEvents = ['mouseup', 'mouseleave', 'touchend', 'touchcancel'];
|
|
|
882
845
|
*/
|
|
883
846
|
class RippleRenderer {
|
|
884
847
|
static { this._eventManager = new RippleEventManager(); }
|
|
885
|
-
constructor(_target, _ngZone, elementOrElementRef, _platform) {
|
|
848
|
+
constructor(_target, _ngZone, elementOrElementRef, _platform, injector) {
|
|
886
849
|
this._target = _target;
|
|
887
850
|
this._ngZone = _ngZone;
|
|
888
851
|
this._platform = _platform;
|
|
@@ -901,6 +864,9 @@ class RippleRenderer {
|
|
|
901
864
|
if (_platform.isBrowser) {
|
|
902
865
|
this._containerElement = coerceElement(elementOrElementRef);
|
|
903
866
|
}
|
|
867
|
+
if (injector) {
|
|
868
|
+
injector.get(_CdkPrivateStyleLoader).load(_MatRippleStylesLoader);
|
|
869
|
+
}
|
|
904
870
|
}
|
|
905
871
|
/**
|
|
906
872
|
* Fades in a ripple at the given coordinates.
|
|
@@ -1228,9 +1194,9 @@ class MatRipple {
|
|
|
1228
1194
|
this._trigger = trigger;
|
|
1229
1195
|
this._setupTriggerEventsIfEnabled();
|
|
1230
1196
|
}
|
|
1231
|
-
constructor(
|
|
1232
|
-
this._elementRef =
|
|
1233
|
-
this._animationMode =
|
|
1197
|
+
constructor() {
|
|
1198
|
+
this._elementRef = inject(ElementRef);
|
|
1199
|
+
this._animationMode = inject(ANIMATION_MODULE_TYPE, { optional: true });
|
|
1234
1200
|
/**
|
|
1235
1201
|
* If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
|
|
1236
1202
|
* will be the distance from the center of the ripple to the furthest corner of the host element's
|
|
@@ -1240,8 +1206,14 @@ class MatRipple {
|
|
|
1240
1206
|
this._disabled = false;
|
|
1241
1207
|
/** @docs-private Whether ripple directive is initialized and the input bindings are set. */
|
|
1242
1208
|
this._isInitialized = false;
|
|
1209
|
+
const ngZone = inject(NgZone);
|
|
1210
|
+
const platform = inject(Platform);
|
|
1211
|
+
const globalOptions = inject(MAT_RIPPLE_GLOBAL_OPTIONS, { optional: true });
|
|
1212
|
+
const injector = inject(Injector);
|
|
1213
|
+
// Note: cannot use `inject()` here, because this class
|
|
1214
|
+
// gets instantiated manually in the ripple loader.
|
|
1243
1215
|
this._globalOptions = globalOptions || {};
|
|
1244
|
-
this._rippleRenderer = new RippleRenderer(this, ngZone, _elementRef, platform);
|
|
1216
|
+
this._rippleRenderer = new RippleRenderer(this, ngZone, this._elementRef, platform, injector);
|
|
1245
1217
|
}
|
|
1246
1218
|
ngOnInit() {
|
|
1247
1219
|
this._isInitialized = true;
|
|
@@ -1297,10 +1269,10 @@ class MatRipple {
|
|
|
1297
1269
|
return this._rippleRenderer.fadeInRipple(0, 0, { ...this.rippleConfig, ...configOrX });
|
|
1298
1270
|
}
|
|
1299
1271
|
}
|
|
1300
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1301
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatRipple, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1273
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MatRipple, isStandalone: true, selector: "[mat-ripple], [matRipple]", inputs: { color: ["matRippleColor", "color"], unbounded: ["matRippleUnbounded", "unbounded"], centered: ["matRippleCentered", "centered"], radius: ["matRippleRadius", "radius"], animation: ["matRippleAnimation", "animation"], disabled: ["matRippleDisabled", "disabled"], trigger: ["matRippleTrigger", "trigger"] }, host: { properties: { "class.mat-ripple-unbounded": "unbounded" }, classAttribute: "mat-ripple" }, exportAs: ["matRipple"], ngImport: i0 }); }
|
|
1302
1274
|
}
|
|
1303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatRipple, decorators: [{
|
|
1304
1276
|
type: Directive,
|
|
1305
1277
|
args: [{
|
|
1306
1278
|
selector: '[mat-ripple], [matRipple]',
|
|
@@ -1309,19 +1281,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.2",
|
|
|
1309
1281
|
'class': 'mat-ripple',
|
|
1310
1282
|
'[class.mat-ripple-unbounded]': 'unbounded',
|
|
1311
1283
|
},
|
|
1312
|
-
standalone: true,
|
|
1313
1284
|
}]
|
|
1314
|
-
}], ctorParameters: () => [
|
|
1315
|
-
type: Optional
|
|
1316
|
-
}, {
|
|
1317
|
-
type: Inject,
|
|
1318
|
-
args: [MAT_RIPPLE_GLOBAL_OPTIONS]
|
|
1319
|
-
}] }, { type: undefined, decorators: [{
|
|
1320
|
-
type: Optional
|
|
1321
|
-
}, {
|
|
1322
|
-
type: Inject,
|
|
1323
|
-
args: [ANIMATION_MODULE_TYPE]
|
|
1324
|
-
}] }], propDecorators: { color: [{
|
|
1285
|
+
}], ctorParameters: () => [], propDecorators: { color: [{
|
|
1325
1286
|
type: Input,
|
|
1326
1287
|
args: ['matRippleColor']
|
|
1327
1288
|
}], unbounded: [{
|
|
@@ -1345,11 +1306,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.2",
|
|
|
1345
1306
|
}] } });
|
|
1346
1307
|
|
|
1347
1308
|
class MatRippleModule {
|
|
1348
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1349
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1350
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatRippleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1310
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatRippleModule, imports: [MatCommonModule, MatRipple], exports: [MatRipple, MatCommonModule] }); }
|
|
1311
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatRippleModule, imports: [MatCommonModule, MatCommonModule] }); }
|
|
1351
1312
|
}
|
|
1352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatRippleModule, decorators: [{
|
|
1353
1314
|
type: NgModule,
|
|
1354
1315
|
args: [{
|
|
1355
1316
|
imports: [MatCommonModule, MatRipple],
|
|
@@ -1371,8 +1332,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.2",
|
|
|
1371
1332
|
* @docs-private
|
|
1372
1333
|
*/
|
|
1373
1334
|
class MatPseudoCheckbox {
|
|
1374
|
-
constructor(
|
|
1375
|
-
this._animationMode =
|
|
1335
|
+
constructor() {
|
|
1336
|
+
this._animationMode = inject(ANIMATION_MODULE_TYPE, { optional: true });
|
|
1376
1337
|
/** Display state of the checkbox. */
|
|
1377
1338
|
this.state = 'unchecked';
|
|
1378
1339
|
/** Whether the checkbox is disabled. */
|
|
@@ -1383,10 +1344,10 @@ class MatPseudoCheckbox {
|
|
|
1383
1344
|
*/
|
|
1384
1345
|
this.appearance = 'full';
|
|
1385
1346
|
}
|
|
1386
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1387
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1347
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatPseudoCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1348
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.10", type: MatPseudoCheckbox, isStandalone: true, selector: "mat-pseudo-checkbox", inputs: { state: "state", disabled: "disabled", appearance: "appearance" }, host: { properties: { "class.mat-pseudo-checkbox-indeterminate": "state === \"indeterminate\"", "class.mat-pseudo-checkbox-checked": "state === \"checked\"", "class.mat-pseudo-checkbox-disabled": "disabled", "class.mat-pseudo-checkbox-minimal": "appearance === \"minimal\"", "class.mat-pseudo-checkbox-full": "appearance === \"full\"", "class._mat-animation-noopable": "_animationMode === \"NoopAnimations\"" }, classAttribute: "mat-pseudo-checkbox" }, ngImport: i0, template: '', isInline: true, styles: [".mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1388
1349
|
}
|
|
1389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatPseudoCheckbox, decorators: [{
|
|
1390
1351
|
type: Component,
|
|
1391
1352
|
args: [{ encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, selector: 'mat-pseudo-checkbox', template: '', host: {
|
|
1392
1353
|
'class': 'mat-pseudo-checkbox',
|
|
@@ -1396,13 +1357,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.2",
|
|
|
1396
1357
|
'[class.mat-pseudo-checkbox-minimal]': 'appearance === "minimal"',
|
|
1397
1358
|
'[class.mat-pseudo-checkbox-full]': 'appearance === "full"',
|
|
1398
1359
|
'[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
|
|
1399
|
-
},
|
|
1400
|
-
}], ctorParameters: () => [
|
|
1401
|
-
type: Optional
|
|
1402
|
-
}, {
|
|
1403
|
-
type: Inject,
|
|
1404
|
-
args: [ANIMATION_MODULE_TYPE]
|
|
1405
|
-
}] }], propDecorators: { state: [{
|
|
1360
|
+
}, styles: [".mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}"] }]
|
|
1361
|
+
}], ctorParameters: () => [], propDecorators: { state: [{
|
|
1406
1362
|
type: Input
|
|
1407
1363
|
}], disabled: [{
|
|
1408
1364
|
type: Input
|
|
@@ -1411,11 +1367,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.2",
|
|
|
1411
1367
|
}] } });
|
|
1412
1368
|
|
|
1413
1369
|
class MatPseudoCheckboxModule {
|
|
1414
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1415
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1416
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatPseudoCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1371
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatPseudoCheckboxModule, imports: [MatCommonModule, MatPseudoCheckbox], exports: [MatPseudoCheckbox] }); }
|
|
1372
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatPseudoCheckboxModule, imports: [MatCommonModule] }); }
|
|
1417
1373
|
}
|
|
1418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatPseudoCheckboxModule, decorators: [{
|
|
1419
1375
|
type: NgModule,
|
|
1420
1376
|
args: [{
|
|
1421
1377
|
imports: [MatCommonModule, MatPseudoCheckbox],
|
|
@@ -1459,30 +1415,26 @@ const MAT_OPTGROUP = new InjectionToken('MatOptgroup');
|
|
|
1459
1415
|
* Component that is used to group instances of `mat-option`.
|
|
1460
1416
|
*/
|
|
1461
1417
|
class MatOptgroup {
|
|
1462
|
-
constructor(
|
|
1418
|
+
constructor() {
|
|
1463
1419
|
/** whether the option group is disabled. */
|
|
1464
1420
|
this.disabled = false;
|
|
1465
1421
|
/** Unique id for the underlying label. */
|
|
1466
1422
|
this._labelId = `mat-optgroup-label-${_uniqueOptgroupIdCounter++}`;
|
|
1423
|
+
const parent = inject(MAT_OPTION_PARENT_COMPONENT, { optional: true });
|
|
1467
1424
|
this._inert = parent?.inertGroups ?? false;
|
|
1468
1425
|
}
|
|
1469
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1470
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
1426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatOptgroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1427
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.0.0-next.10", type: MatOptgroup, isStandalone: true, selector: "mat-optgroup", inputs: { label: "label", disabled: ["disabled", "disabled", booleanAttribute] }, host: { properties: { "attr.role": "_inert ? null : \"group\"", "attr.aria-disabled": "_inert ? null : disabled.toString()", "attr.aria-labelledby": "_inert ? null : _labelId" }, classAttribute: "mat-mdc-optgroup" }, providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }], exportAs: ["matOptgroup"], ngImport: i0, template: "<span\n class=\"mat-mdc-optgroup-label\"\n role=\"presentation\"\n [class.mdc-list-item--disabled]=\"disabled\"\n [id]=\"_labelId\">\n <span class=\"mdc-list-item__primary-text\">{{ label }} <ng-content></ng-content></span>\n</span>\n\n<ng-content select=\"mat-option, ng-container\"></ng-content>\n", styles: [".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-optgroup-label-text-font, var(--mat-sys-title-small-font));line-height:var(--mat-optgroup-label-text-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1471
1428
|
}
|
|
1472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatOptgroup, decorators: [{
|
|
1473
1430
|
type: Component,
|
|
1474
1431
|
args: [{ selector: 'mat-optgroup', exportAs: 'matOptgroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
1475
1432
|
'class': 'mat-mdc-optgroup',
|
|
1476
1433
|
'[attr.role]': '_inert ? null : "group"',
|
|
1477
1434
|
'[attr.aria-disabled]': '_inert ? null : disabled.toString()',
|
|
1478
1435
|
'[attr.aria-labelledby]': '_inert ? null : _labelId',
|
|
1479
|
-
}, providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }],
|
|
1480
|
-
}], ctorParameters: () => [
|
|
1481
|
-
type: Inject,
|
|
1482
|
-
args: [MAT_OPTION_PARENT_COMPONENT]
|
|
1483
|
-
}, {
|
|
1484
|
-
type: Optional
|
|
1485
|
-
}] }], propDecorators: { label: [{
|
|
1436
|
+
}, providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }], template: "<span\n class=\"mat-mdc-optgroup-label\"\n role=\"presentation\"\n [class.mdc-list-item--disabled]=\"disabled\"\n [id]=\"_labelId\">\n <span class=\"mdc-list-item__primary-text\">{{ label }} <ng-content></ng-content></span>\n</span>\n\n<ng-content select=\"mat-option, ng-container\"></ng-content>\n", styles: [".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-optgroup-label-text-font, var(--mat-sys-title-small-font));line-height:var(--mat-optgroup-label-text-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"] }]
|
|
1437
|
+
}], ctorParameters: () => [], propDecorators: { label: [{
|
|
1486
1438
|
type: Input
|
|
1487
1439
|
}], disabled: [{
|
|
1488
1440
|
type: Input,
|
|
@@ -1526,17 +1478,20 @@ class MatOption {
|
|
|
1526
1478
|
}
|
|
1527
1479
|
/** Whether ripples for the option are disabled. */
|
|
1528
1480
|
get disableRipple() {
|
|
1529
|
-
return
|
|
1481
|
+
return this._signalDisableRipple
|
|
1482
|
+
? this._parent.disableRipple()
|
|
1483
|
+
: !!this._parent?.disableRipple;
|
|
1530
1484
|
}
|
|
1531
1485
|
/** Whether to display checkmark for single-selection. */
|
|
1532
1486
|
get hideSingleSelectionIndicator() {
|
|
1533
1487
|
return !!(this._parent && this._parent.hideSingleSelectionIndicator);
|
|
1534
1488
|
}
|
|
1535
|
-
constructor(
|
|
1536
|
-
this._element =
|
|
1537
|
-
this._changeDetectorRef =
|
|
1538
|
-
this._parent =
|
|
1539
|
-
this.group =
|
|
1489
|
+
constructor() {
|
|
1490
|
+
this._element = inject(ElementRef);
|
|
1491
|
+
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
1492
|
+
this._parent = inject(MAT_OPTION_PARENT_COMPONENT, { optional: true });
|
|
1493
|
+
this.group = inject(MAT_OPTGROUP, { optional: true });
|
|
1494
|
+
this._signalDisableRipple = false;
|
|
1540
1495
|
this._selected = false;
|
|
1541
1496
|
this._active = false;
|
|
1542
1497
|
this._disabled = false;
|
|
@@ -1548,6 +1503,9 @@ class MatOption {
|
|
|
1548
1503
|
this.onSelectionChange = new EventEmitter();
|
|
1549
1504
|
/** Emits when the state of the option changes and any parents have to be notified. */
|
|
1550
1505
|
this._stateChanges = new Subject();
|
|
1506
|
+
inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader);
|
|
1507
|
+
inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);
|
|
1508
|
+
this._signalDisableRipple = !!this._parent && isSignal(this._parent.disableRipple);
|
|
1551
1509
|
}
|
|
1552
1510
|
/**
|
|
1553
1511
|
* Whether or not the option is currently active and ready to be selected.
|
|
@@ -1674,10 +1632,10 @@ class MatOption {
|
|
|
1674
1632
|
_emitSelectionChangeEvent(isUserInput = false) {
|
|
1675
1633
|
this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));
|
|
1676
1634
|
}
|
|
1677
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1678
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1635
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1636
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.0-next.10", type: MatOption, isStandalone: true, selector: "mat-option", inputs: { value: "value", id: "id", disabled: ["disabled", "disabled", booleanAttribute] }, outputs: { onSelectionChange: "onSelectionChange" }, host: { attributes: { "role": "option" }, listeners: { "click": "_selectViaInteraction()", "keydown": "_handleKeydown($event)" }, properties: { "class.mdc-list-item--selected": "selected", "class.mat-mdc-option-multiple": "multiple", "class.mat-mdc-option-active": "active", "class.mdc-list-item--disabled": "disabled", "id": "id", "attr.aria-selected": "selected", "attr.aria-disabled": "disabled.toString()" }, classAttribute: "mat-mdc-option mdc-list-item" }, viewQueries: [{ propertyName: "_text", first: true, predicate: ["text"], descendants: true, static: true }], exportAs: ["matOption"], ngImport: i0, template: "<!-- Set aria-hidden=\"true\" to this DOM node and other decorative nodes in this file. This might\n be contributing to issue where sometimes VoiceOver focuses on a TextNode in the a11y tree instead\n of the Option node (#23202). Most assistive technology will generally ignore non-role,\n non-text-content elements. Adding aria-hidden seems to make VoiceOver behave more consistently. -->\n@if (multiple) {\n <mat-pseudo-checkbox\n class=\"mat-mdc-option-pseudo-checkbox\"\n [disabled]=\"disabled\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n aria-hidden=\"true\"></mat-pseudo-checkbox>\n}\n\n<ng-content select=\"mat-icon\"></ng-content>\n\n<span class=\"mdc-list-item__primary-text\" #text><ng-content></ng-content></span>\n\n<!-- Render checkmark at the end for single-selection. -->\n@if (!multiple && selected && !hideSingleSelectionIndicator) {\n <mat-pseudo-checkbox\n class=\"mat-mdc-option-pseudo-checkbox\"\n [disabled]=\"disabled\"\n state=\"checked\"\n aria-hidden=\"true\"\n appearance=\"minimal\"></mat-pseudo-checkbox>\n}\n\n<!-- See a11y notes inside optgroup.ts for context behind this element. -->\n@if (group && group._inert) {\n <span class=\"cdk-visually-hidden\">({{ group.label }})</span>\n}\n\n<div class=\"mat-mdc-option-ripple mat-focus-indicator\" aria-hidden=\"true\" mat-ripple\n [matRippleTrigger]=\"_getHostElement()\" [matRippleDisabled]=\"disabled || disableRipple\">\n</div>\n", styles: [".mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:\"\"}"], dependencies: [{ kind: "component", type: MatPseudoCheckbox, selector: "mat-pseudo-checkbox", inputs: ["state", "disabled", "appearance"] }, { kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1679
1637
|
}
|
|
1680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatOption, decorators: [{
|
|
1681
1639
|
type: Component,
|
|
1682
1640
|
args: [{ selector: 'mat-option', exportAs: 'matOption', host: {
|
|
1683
1641
|
'role': 'option',
|
|
@@ -1700,18 +1658,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.2",
|
|
|
1700
1658
|
'(click)': '_selectViaInteraction()',
|
|
1701
1659
|
'(keydown)': '_handleKeydown($event)',
|
|
1702
1660
|
'class': 'mat-mdc-option mdc-list-item',
|
|
1703
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1704
|
-
}], ctorParameters: () => [
|
|
1705
|
-
type: Optional
|
|
1706
|
-
}, {
|
|
1707
|
-
type: Inject,
|
|
1708
|
-
args: [MAT_OPTION_PARENT_COMPONENT]
|
|
1709
|
-
}] }, { type: MatOptgroup, decorators: [{
|
|
1710
|
-
type: Optional
|
|
1711
|
-
}, {
|
|
1712
|
-
type: Inject,
|
|
1713
|
-
args: [MAT_OPTGROUP]
|
|
1714
|
-
}] }], propDecorators: { value: [{
|
|
1661
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatPseudoCheckbox, MatRipple], template: "<!-- Set aria-hidden=\"true\" to this DOM node and other decorative nodes in this file. This might\n be contributing to issue where sometimes VoiceOver focuses on a TextNode in the a11y tree instead\n of the Option node (#23202). Most assistive technology will generally ignore non-role,\n non-text-content elements. Adding aria-hidden seems to make VoiceOver behave more consistently. -->\n@if (multiple) {\n <mat-pseudo-checkbox\n class=\"mat-mdc-option-pseudo-checkbox\"\n [disabled]=\"disabled\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n aria-hidden=\"true\"></mat-pseudo-checkbox>\n}\n\n<ng-content select=\"mat-icon\"></ng-content>\n\n<span class=\"mdc-list-item__primary-text\" #text><ng-content></ng-content></span>\n\n<!-- Render checkmark at the end for single-selection. -->\n@if (!multiple && selected && !hideSingleSelectionIndicator) {\n <mat-pseudo-checkbox\n class=\"mat-mdc-option-pseudo-checkbox\"\n [disabled]=\"disabled\"\n state=\"checked\"\n aria-hidden=\"true\"\n appearance=\"minimal\"></mat-pseudo-checkbox>\n}\n\n<!-- See a11y notes inside optgroup.ts for context behind this element. -->\n@if (group && group._inert) {\n <span class=\"cdk-visually-hidden\">({{ group.label }})</span>\n}\n\n<div class=\"mat-mdc-option-ripple mat-focus-indicator\" aria-hidden=\"true\" mat-ripple\n [matRippleTrigger]=\"_getHostElement()\" [matRippleDisabled]=\"disabled || disableRipple\">\n</div>\n", styles: [".mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:\"\"}"] }]
|
|
1662
|
+
}], ctorParameters: () => [], propDecorators: { value: [{
|
|
1715
1663
|
type: Input
|
|
1716
1664
|
}], id: [{
|
|
1717
1665
|
type: Input
|
|
@@ -1764,11 +1712,11 @@ function _getOptionScrollPosition(optionOffset, optionHeight, currentScrollPosit
|
|
|
1764
1712
|
}
|
|
1765
1713
|
|
|
1766
1714
|
class MatOptionModule {
|
|
1767
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1768
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1769
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1715
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1716
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatOptionModule, imports: [MatRippleModule, MatCommonModule, MatPseudoCheckboxModule, MatOption, MatOptgroup], exports: [MatOption, MatOptgroup] }); }
|
|
1717
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatOptionModule, imports: [MatRippleModule, MatCommonModule, MatPseudoCheckboxModule] }); }
|
|
1770
1718
|
}
|
|
1771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatOptionModule, decorators: [{
|
|
1772
1720
|
type: NgModule,
|
|
1773
1721
|
args: [{
|
|
1774
1722
|
imports: [MatRippleModule, MatCommonModule, MatPseudoCheckboxModule, MatOption, MatOptgroup],
|
|
@@ -1807,6 +1755,7 @@ class MatRippleLoader {
|
|
|
1807
1755
|
this._globalRippleOptions = inject(MAT_RIPPLE_GLOBAL_OPTIONS, { optional: true });
|
|
1808
1756
|
this._platform = inject(Platform);
|
|
1809
1757
|
this._ngZone = inject(NgZone);
|
|
1758
|
+
this._injector = inject(Injector);
|
|
1810
1759
|
this._hosts = new Map();
|
|
1811
1760
|
/**
|
|
1812
1761
|
* Handles creating and attaching component internals
|
|
@@ -1858,22 +1807,20 @@ class MatRippleLoader {
|
|
|
1858
1807
|
host.setAttribute(matRippleDisabled, '');
|
|
1859
1808
|
}
|
|
1860
1809
|
}
|
|
1861
|
-
/** Returns the ripple instance for the given host element. */
|
|
1862
|
-
getRipple(host) {
|
|
1863
|
-
const ripple = this._hosts.get(host);
|
|
1864
|
-
return ripple || this._createRipple(host);
|
|
1865
|
-
}
|
|
1866
1810
|
/** Sets the disabled state on the ripple instance corresponding to the given host element. */
|
|
1867
1811
|
setDisabled(host, disabled) {
|
|
1868
1812
|
const ripple = this._hosts.get(host);
|
|
1869
1813
|
// If the ripple has already been instantiated, just disable it.
|
|
1870
1814
|
if (ripple) {
|
|
1871
|
-
ripple.
|
|
1872
|
-
|
|
1815
|
+
ripple.target.rippleDisabled = disabled;
|
|
1816
|
+
if (!disabled && !ripple.hasSetUpEvents) {
|
|
1817
|
+
ripple.hasSetUpEvents = true;
|
|
1818
|
+
ripple.renderer.setupTriggerEvents(host);
|
|
1819
|
+
}
|
|
1873
1820
|
}
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1821
|
+
else if (disabled) {
|
|
1822
|
+
// Otherwise, set an attribute so we know what the
|
|
1823
|
+
// disabled state should be when the ripple is initialized.
|
|
1877
1824
|
host.setAttribute(matRippleDisabled, '');
|
|
1878
1825
|
}
|
|
1879
1826
|
else {
|
|
@@ -1882,44 +1829,56 @@ class MatRippleLoader {
|
|
|
1882
1829
|
}
|
|
1883
1830
|
/** Creates a MatRipple and appends it to the given element. */
|
|
1884
1831
|
_createRipple(host) {
|
|
1885
|
-
if (!this._document) {
|
|
1832
|
+
if (!this._document || this._hosts.has(host)) {
|
|
1886
1833
|
return;
|
|
1887
1834
|
}
|
|
1888
|
-
const existingRipple = this._hosts.get(host);
|
|
1889
|
-
if (existingRipple) {
|
|
1890
|
-
return existingRipple;
|
|
1891
|
-
}
|
|
1892
1835
|
// Create the ripple element.
|
|
1893
1836
|
host.querySelector('.mat-ripple')?.remove();
|
|
1894
1837
|
const rippleEl = this._document.createElement('span');
|
|
1895
1838
|
rippleEl.classList.add('mat-ripple', host.getAttribute(matRippleClassName));
|
|
1896
1839
|
host.append(rippleEl);
|
|
1897
|
-
|
|
1898
|
-
const
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1840
|
+
const isNoopAnimations = this._animationMode === 'NoopAnimations';
|
|
1841
|
+
const globalOptions = this._globalRippleOptions;
|
|
1842
|
+
const enterDuration = isNoopAnimations
|
|
1843
|
+
? 0
|
|
1844
|
+
: globalOptions?.animation?.enterDuration ?? defaultRippleAnimationConfig.enterDuration;
|
|
1845
|
+
const exitDuration = isNoopAnimations
|
|
1846
|
+
? 0
|
|
1847
|
+
: globalOptions?.animation?.exitDuration ?? defaultRippleAnimationConfig.exitDuration;
|
|
1848
|
+
const target = {
|
|
1849
|
+
rippleDisabled: isNoopAnimations || globalOptions?.disabled || host.hasAttribute(matRippleDisabled),
|
|
1850
|
+
rippleConfig: {
|
|
1851
|
+
centered: host.hasAttribute(matRippleCentered),
|
|
1852
|
+
terminateOnPointerUp: globalOptions?.terminateOnPointerUp,
|
|
1853
|
+
animation: {
|
|
1854
|
+
enterDuration,
|
|
1855
|
+
exitDuration,
|
|
1856
|
+
},
|
|
1857
|
+
},
|
|
1858
|
+
};
|
|
1859
|
+
const renderer = new RippleRenderer(target, this._ngZone, rippleEl, this._platform, this._injector);
|
|
1860
|
+
const hasSetUpEvents = !target.rippleDisabled;
|
|
1861
|
+
if (hasSetUpEvents) {
|
|
1862
|
+
renderer.setupTriggerEvents(host);
|
|
1863
|
+
}
|
|
1864
|
+
this._hosts.set(host, {
|
|
1865
|
+
target,
|
|
1866
|
+
renderer,
|
|
1867
|
+
hasSetUpEvents,
|
|
1868
|
+
});
|
|
1907
1869
|
host.removeAttribute(matRippleUninitialized);
|
|
1908
|
-
this._hosts.set(host, ripple);
|
|
1909
1870
|
}
|
|
1910
1871
|
destroyRipple(host) {
|
|
1911
1872
|
const ripple = this._hosts.get(host);
|
|
1912
1873
|
if (ripple) {
|
|
1913
|
-
|
|
1914
|
-
// tslint:disable-next-line:no-lifecycle-invocation
|
|
1915
|
-
ripple.ngOnDestroy();
|
|
1874
|
+
ripple.renderer._removeTriggerEvents();
|
|
1916
1875
|
this._hosts.delete(host);
|
|
1917
1876
|
}
|
|
1918
1877
|
}
|
|
1919
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1920
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1878
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatRippleLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1879
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatRippleLoader, providedIn: 'root' }); }
|
|
1921
1880
|
}
|
|
1922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: MatRippleLoader, decorators: [{
|
|
1923
1882
|
type: Injectable,
|
|
1924
1883
|
args: [{ providedIn: 'root' }]
|
|
1925
1884
|
}], ctorParameters: () => [] });
|
|
@@ -1930,12 +1889,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.2",
|
|
|
1930
1889
|
* @docs-private
|
|
1931
1890
|
*/
|
|
1932
1891
|
class _MatInternalFormField {
|
|
1933
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1934
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1892
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: _MatInternalFormField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1893
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.10", type: _MatInternalFormField, isStandalone: true, selector: "div[mat-internal-form-field]", inputs: { labelPosition: "labelPosition" }, host: { properties: { "class.mdc-form-field--align-end": "labelPosition === \"before\"" }, classAttribute: "mdc-form-field mat-internal-form-field" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1935
1894
|
}
|
|
1936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.10", ngImport: i0, type: _MatInternalFormField, decorators: [{
|
|
1937
1896
|
type: Component,
|
|
1938
|
-
args: [{ selector: 'div[mat-internal-form-field]',
|
|
1897
|
+
args: [{ selector: 'div[mat-internal-form-field]', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
1939
1898
|
'class': 'mdc-form-field mat-internal-form-field',
|
|
1940
1899
|
'[class.mdc-form-field--align-end]': 'labelPosition === "before"',
|
|
1941
1900
|
}, styles: [".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"] }]
|
|
@@ -1948,5 +1907,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0-next.2",
|
|
|
1948
1907
|
* Generated bundle index. Do not edit.
|
|
1949
1908
|
*/
|
|
1950
1909
|
|
|
1951
|
-
export { AnimationCurves, AnimationDurations, DateAdapter, ErrorStateMatcher, MATERIAL_SANITY_CHECKS, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_NATIVE_DATE_FORMATS, MAT_OPTGROUP, MAT_OPTION_PARENT_COMPONENT, MAT_RIPPLE_GLOBAL_OPTIONS, MatCommonModule, MatLine, MatLineModule, MatNativeDateModule, MatOptgroup, MatOption, MatOptionModule, MatOptionSelectionChange, MatPseudoCheckbox, MatPseudoCheckboxModule, MatRipple, MatRippleLoader, MatRippleModule, NativeDateAdapter, NativeDateModule, RippleRef, RippleRenderer, RippleState, ShowOnDirtyErrorStateMatcher, VERSION, _ErrorStateTracker, _MatInternalFormField, _countGroupLabelsBeforeOption, _getOptionScrollPosition, defaultRippleAnimationConfig,
|
|
1910
|
+
export { AnimationCurves, AnimationDurations, DateAdapter, ErrorStateMatcher, MATERIAL_SANITY_CHECKS, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_NATIVE_DATE_FORMATS, MAT_OPTGROUP, MAT_OPTION_PARENT_COMPONENT, MAT_RIPPLE_GLOBAL_OPTIONS, MatCommonModule, MatLine, MatLineModule, MatNativeDateModule, MatOptgroup, MatOption, MatOptionModule, MatOptionSelectionChange, MatPseudoCheckbox, MatPseudoCheckboxModule, MatRipple, MatRippleLoader, MatRippleModule, NativeDateAdapter, NativeDateModule, RippleRef, RippleRenderer, RippleState, ShowOnDirtyErrorStateMatcher, VERSION, _ErrorStateTracker, _MatInternalFormField, _StructuralStylesLoader, _countGroupLabelsBeforeOption, _getOptionScrollPosition, defaultRippleAnimationConfig, provideNativeDateAdapter, setLines };
|
|
1952
1911
|
//# sourceMappingURL=core.mjs.map
|