@angular/material 21.0.0-next.5 → 21.0.0-next.8
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/fesm2022/{animation.mjs → _animation-chunk.mjs} +2 -23
- package/fesm2022/_animation-chunk.mjs.map +1 -0
- package/fesm2022/{date-formats.mjs → _date-formats-chunk.mjs} +1 -1
- package/fesm2022/_date-formats-chunk.mjs.map +1 -0
- package/fesm2022/{date-range-input-harness.mjs → _date-range-input-harness-chunk.mjs} +1 -1
- package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -0
- package/fesm2022/{error-options.mjs → _error-options-chunk.mjs} +1 -1
- package/fesm2022/_error-options-chunk.mjs.map +1 -0
- package/fesm2022/{error-state.mjs → _error-state-chunk.mjs} +1 -1
- package/fesm2022/_error-state-chunk.mjs.map +1 -0
- package/fesm2022/{form-field2.mjs → _form-field-chunk.mjs} +2 -2
- package/fesm2022/_form-field-chunk.mjs.map +1 -0
- package/fesm2022/{icon-button.mjs → _icon-button-chunk.mjs} +4 -4
- package/fesm2022/_icon-button-chunk.mjs.map +1 -0
- package/fesm2022/{icon-registry.mjs → _icon-registry-chunk.mjs} +1 -1
- package/fesm2022/_icon-registry-chunk.mjs.map +1 -0
- package/fesm2022/{input-harness.mjs → _input-harness-chunk.mjs} +1 -1
- package/fesm2022/_input-harness-chunk.mjs.map +1 -0
- package/fesm2022/{input-value-accessor.mjs → _input-value-accessor-chunk.mjs} +1 -1
- package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -0
- package/fesm2022/{internal-form-field.mjs → _internal-form-field-chunk.mjs} +1 -1
- package/fesm2022/_internal-form-field-chunk.mjs.map +1 -0
- package/fesm2022/{line.mjs → _line-chunk.mjs} +1 -1
- package/fesm2022/_line-chunk.mjs.map +1 -0
- package/fesm2022/{option.mjs → _option-chunk.mjs} +4 -4
- package/fesm2022/_option-chunk.mjs.map +1 -0
- package/fesm2022/{option-harness.mjs → _option-harness-chunk.mjs} +1 -1
- package/fesm2022/_option-harness-chunk.mjs.map +1 -0
- package/fesm2022/{option-module.mjs → _option-module-chunk.mjs} +4 -4
- package/fesm2022/_option-module-chunk.mjs.map +1 -0
- package/fesm2022/{pseudo-checkbox.mjs → _pseudo-checkbox-chunk.mjs} +2 -2
- package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -0
- package/fesm2022/{pseudo-checkbox-module.mjs → _pseudo-checkbox-module-chunk.mjs} +2 -2
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -0
- package/fesm2022/{public-api.mjs → _public-api-chunk.mjs} +1 -1
- package/fesm2022/_public-api-chunk.mjs.map +1 -0
- package/fesm2022/{ripple.mjs → _ripple-chunk.mjs} +2 -2
- package/fesm2022/_ripple-chunk.mjs.map +1 -0
- package/fesm2022/{ripple-loader.mjs → _ripple-loader-chunk.mjs} +3 -3
- package/fesm2022/_ripple-loader-chunk.mjs.map +1 -0
- package/fesm2022/{ripple-module.mjs → _ripple-module-chunk.mjs} +2 -2
- package/fesm2022/_ripple-module-chunk.mjs.map +1 -0
- package/fesm2022/{structural-styles.mjs → _structural-styles-chunk.mjs} +1 -1
- package/fesm2022/_structural-styles-chunk.mjs.map +1 -0
- package/fesm2022/{tooltip2.mjs → _tooltip-chunk.mjs} +2 -2
- package/fesm2022/_tooltip-chunk.mjs.map +1 -0
- package/fesm2022/{autocomplete/testing.mjs → autocomplete-testing.mjs} +3 -3
- package/fesm2022/autocomplete-testing.mjs.map +1 -0
- package/fesm2022/autocomplete.mjs +10 -10
- package/fesm2022/{badge/testing.mjs → badge-testing.mjs} +1 -1
- package/fesm2022/badge-testing.mjs.map +1 -0
- package/fesm2022/badge.mjs +1 -1
- package/fesm2022/{bottom-sheet/testing.mjs → bottom-sheet-testing.mjs} +1 -1
- package/fesm2022/bottom-sheet-testing.mjs.map +1 -0
- package/fesm2022/bottom-sheet.mjs +6 -1
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/{button/testing.mjs → button-testing.mjs} +1 -1
- package/fesm2022/button-testing.mjs.map +1 -0
- package/fesm2022/{button-toggle/testing.mjs → button-toggle-testing.mjs} +1 -1
- package/fesm2022/button-toggle-testing.mjs.map +1 -0
- package/fesm2022/button-toggle.mjs +5 -5
- package/fesm2022/button.mjs +7 -7
- package/fesm2022/{card/testing.mjs → card-testing.mjs} +1 -1
- package/fesm2022/card-testing.mjs.map +1 -0
- package/fesm2022/{checkbox/testing.mjs → checkbox-testing.mjs} +1 -1
- package/fesm2022/checkbox-testing.mjs.map +1 -0
- package/fesm2022/checkbox.mjs +4 -4
- package/fesm2022/{chips/testing.mjs → chips-testing.mjs} +1 -1
- package/fesm2022/chips-testing.mjs.map +1 -0
- package/fesm2022/chips.mjs +30 -9
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/{core/testing.mjs → core-testing.mjs} +2 -2
- package/fesm2022/core-testing.mjs.map +1 -0
- package/fesm2022/core.mjs +15 -20
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{datepicker/testing.mjs → datepicker-testing.mjs} +3 -3
- package/fesm2022/datepicker-testing.mjs.map +1 -0
- package/fesm2022/datepicker.mjs +83 -84
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/{dialog/testing.mjs → dialog-testing.mjs} +3 -3
- package/fesm2022/dialog-testing.mjs.map +1 -0
- package/fesm2022/dialog.mjs +1 -1
- package/fesm2022/{divider/testing.mjs → divider-testing.mjs} +1 -1
- package/fesm2022/divider-testing.mjs.map +1 -0
- package/fesm2022/{expansion/testing.mjs → expansion-testing.mjs} +1 -1
- package/fesm2022/expansion-testing.mjs.map +1 -0
- package/fesm2022/expansion.mjs +2 -2
- package/fesm2022/{form-field/testing/control.mjs → form-field-testing-control.mjs} +1 -1
- package/fesm2022/form-field-testing-control.mjs.map +1 -0
- package/fesm2022/{form-field/testing.mjs → form-field-testing.mjs} +5 -5
- package/fesm2022/form-field-testing.mjs.map +1 -0
- package/fesm2022/form-field.mjs +3 -3
- package/fesm2022/{grid-list/testing.mjs → grid-list-testing.mjs} +2 -2
- package/fesm2022/grid-list-testing.mjs.map +1 -0
- package/fesm2022/grid-list.mjs +3 -3
- package/fesm2022/{icon/testing.mjs → icon-testing.mjs} +2 -2
- package/fesm2022/icon-testing.mjs.map +1 -0
- package/fesm2022/icon.mjs +2 -2
- package/fesm2022/{input/testing.mjs → input-testing.mjs} +3 -3
- package/fesm2022/{input/testing.mjs.map → input-testing.mjs.map} +1 -1
- package/fesm2022/input.mjs +6 -6
- package/fesm2022/{list/testing.mjs → list-testing.mjs} +2 -2
- package/fesm2022/list-testing.mjs.map +1 -0
- package/fesm2022/list.mjs +6 -6
- package/fesm2022/{menu/testing.mjs → menu-testing.mjs} +1 -1
- package/fesm2022/menu-testing.mjs.map +1 -0
- package/fesm2022/menu.mjs +14 -11
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{paginator/testing.mjs → paginator-testing.mjs} +2 -2
- package/fesm2022/paginator-testing.mjs.map +1 -0
- package/fesm2022/paginator.mjs +16 -16
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/{progress-bar/testing.mjs → progress-bar-testing.mjs} +1 -1
- package/fesm2022/progress-bar-testing.mjs.map +1 -0
- package/fesm2022/progress-bar.mjs +1 -1
- package/fesm2022/{progress-spinner/testing.mjs → progress-spinner-testing.mjs} +1 -1
- package/fesm2022/progress-spinner-testing.mjs.map +1 -0
- package/fesm2022/progress-spinner.mjs +1 -1
- package/fesm2022/{radio/testing.mjs → radio-testing.mjs} +1 -1
- package/fesm2022/radio-testing.mjs.map +1 -0
- package/fesm2022/radio.mjs +5 -5
- package/fesm2022/{select/testing.mjs → select-testing.mjs} +1 -1
- package/fesm2022/select-testing.mjs.map +1 -0
- package/fesm2022/select.mjs +17 -16
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/{sidenav/testing.mjs → sidenav-testing.mjs} +1 -1
- package/fesm2022/sidenav-testing.mjs.map +1 -0
- package/fesm2022/sidenav.mjs +1 -1
- package/fesm2022/{slide-toggle/testing.mjs → slide-toggle-testing.mjs} +1 -1
- package/fesm2022/slide-toggle-testing.mjs.map +1 -0
- package/fesm2022/slide-toggle.mjs +4 -4
- package/fesm2022/{slider/testing.mjs → slider-testing.mjs} +1 -1
- package/fesm2022/slider-testing.mjs.map +1 -0
- package/fesm2022/slider.mjs +4 -4
- package/fesm2022/{snack-bar/testing.mjs → snack-bar-testing.mjs} +1 -1
- package/fesm2022/snack-bar-testing.mjs.map +1 -0
- package/fesm2022/snack-bar.mjs +6 -6
- package/fesm2022/{sort/testing.mjs → sort-testing.mjs} +1 -1
- package/fesm2022/sort-testing.mjs.map +1 -0
- package/fesm2022/sort.mjs +2 -2
- package/fesm2022/{stepper/testing.mjs → stepper-testing.mjs} +1 -1
- package/fesm2022/stepper-testing.mjs.map +1 -0
- package/fesm2022/stepper.mjs +6 -6
- package/fesm2022/{table/testing.mjs → table-testing.mjs} +1 -1
- package/fesm2022/table-testing.mjs.map +1 -0
- package/fesm2022/{tabs/testing.mjs → tabs-testing.mjs} +1 -1
- package/fesm2022/tabs-testing.mjs.map +1 -0
- package/fesm2022/tabs.mjs +3 -3
- package/fesm2022/{timepicker/testing.mjs → timepicker-testing.mjs} +2 -2
- package/fesm2022/timepicker-testing.mjs.map +1 -0
- package/fesm2022/timepicker.mjs +25 -19
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/{toolbar/testing.mjs → toolbar-testing.mjs} +1 -1
- package/fesm2022/toolbar-testing.mjs.map +1 -0
- package/fesm2022/{tooltip/testing.mjs → tooltip-testing.mjs} +1 -1
- package/fesm2022/tooltip-testing.mjs.map +1 -0
- package/fesm2022/tooltip.mjs +3 -3
- package/fesm2022/{tree/testing.mjs → tree-testing.mjs} +1 -1
- package/fesm2022/tree-testing.mjs.map +1 -0
- package/package.json +115 -114
- package/schematics/ng-add/index.js +1 -1
- package/{badge.d.d.ts → types/_badge-chunk.d.ts} +1 -1
- package/{form-field.d.d.ts → types/_form-field-chunk.d.ts} +2 -2
- package/{form-field-module.d.d.ts → types/_form-field-module-chunk.d.ts} +1 -1
- package/{icon-module.d.d.ts → types/_icon-module-chunk.d.ts} +1 -1
- package/{option-module.d.d.ts → types/_option-module-chunk.d.ts} +3 -3
- package/{paginator.d.d.ts → types/_paginator-chunk.d.ts} +2 -2
- package/{progress-spinner.d.d.ts → types/_progress-spinner-chunk.d.ts} +1 -1
- package/{ripple-module.d.d.ts → types/_ripple-module-chunk.d.ts} +1 -1
- package/{sort.d.d.ts → types/_sort-chunk.d.ts} +1 -1
- package/{autocomplete/testing/index.d.ts → types/autocomplete-testing.d.ts} +2 -2
- package/{autocomplete/index.d.ts → types/autocomplete.d.ts} +6 -6
- package/{badge/testing/index.d.ts → types/badge-testing.d.ts} +2 -2
- package/{badge/index.d.ts → types/badge.d.ts} +3 -3
- package/{bottom-sheet/index.d.ts → types/bottom-sheet.d.ts} +6 -1
- package/{button-toggle/testing/index.d.ts → types/button-toggle-testing.d.ts} +1 -1
- package/{button-toggle/index.d.ts → types/button-toggle.d.ts} +4 -4
- package/{button/index.d.ts → types/button.d.ts} +4 -4
- package/{checkbox/index.d.ts → types/checkbox.d.ts} +1 -1
- package/{chips/index.d.ts → types/chips.d.ts} +53 -47
- package/{core/testing/index.d.ts → types/core-testing.d.ts} +1 -1
- package/{core/index.d.ts → types/core.d.ts} +14 -40
- package/{datepicker/testing/index.d.ts → types/datepicker-testing.d.ts} +2 -2
- package/{datepicker/index.d.ts → types/datepicker.d.ts} +42 -42
- package/{dialog/testing/index.d.ts → types/dialog-testing.d.ts} +1 -1
- package/{dialog/index.d.ts → types/dialog.d.ts} +2 -2
- package/{form-field/testing/control/index.d.ts → types/form-field-testing-control.d.ts} +1 -1
- package/{form-field/testing/index.d.ts → types/form-field-testing.d.ts} +4 -4
- package/{form-field/index.d.ts → types/form-field.d.ts} +4 -4
- package/{grid-list/index.d.ts → types/grid-list.d.ts} +1 -1
- package/{icon/testing/index.d.ts → types/icon-testing.d.ts} +1 -1
- package/{icon/index.d.ts → types/icon.d.ts} +3 -3
- package/{input/testing/index.d.ts → types/input-testing.d.ts} +2 -2
- package/{input/index.d.ts → types/input.d.ts} +7 -7
- package/{list/testing/index.d.ts → types/list-testing.d.ts} +2 -2
- package/{list/index.d.ts → types/list.d.ts} +7 -7
- package/{menu/index.d.ts → types/menu.d.ts} +3 -3
- package/{paginator/testing/index.d.ts → types/paginator-testing.d.ts} +1 -1
- package/{paginator/index.d.ts → types/paginator.d.ts} +16 -16
- package/{progress-bar/index.d.ts → types/progress-bar.d.ts} +1 -1
- package/{progress-spinner/testing/index.d.ts → types/progress-spinner-testing.d.ts} +2 -2
- package/{progress-spinner/index.d.ts → types/progress-spinner.d.ts} +3 -3
- package/{radio/index.d.ts → types/radio.d.ts} +3 -3
- package/{select/index.d.ts → types/select.d.ts} +12 -12
- package/{slide-toggle/index.d.ts → types/slide-toggle.d.ts} +1 -1
- package/{slider/index.d.ts → types/slider.d.ts} +3 -3
- package/{snack-bar/index.d.ts → types/snack-bar.d.ts} +5 -5
- package/{sort/testing/index.d.ts → types/sort-testing.d.ts} +1 -1
- package/{sort/index.d.ts → types/sort.d.ts} +3 -3
- package/{stepper/index.d.ts → types/stepper.d.ts} +5 -5
- package/{table/index.d.ts → types/table.d.ts} +6 -6
- package/{tabs/index.d.ts → types/tabs.d.ts} +2 -2
- package/{timepicker/testing/index.d.ts → types/timepicker-testing.d.ts} +1 -1
- package/{timepicker/index.d.ts → types/timepicker.d.ts} +4 -2
- package/fesm2022/animation.mjs.map +0 -1
- package/fesm2022/autocomplete/testing.mjs.map +0 -1
- package/fesm2022/badge/testing.mjs.map +0 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +0 -1
- package/fesm2022/button/testing.mjs.map +0 -1
- package/fesm2022/button-toggle/testing.mjs.map +0 -1
- package/fesm2022/card/testing.mjs.map +0 -1
- package/fesm2022/checkbox/testing.mjs.map +0 -1
- package/fesm2022/chips/testing.mjs.map +0 -1
- package/fesm2022/core/testing.mjs.map +0 -1
- package/fesm2022/date-formats.mjs.map +0 -1
- package/fesm2022/date-range-input-harness.mjs.map +0 -1
- package/fesm2022/datepicker/testing.mjs.map +0 -1
- package/fesm2022/dialog/testing.mjs.map +0 -1
- package/fesm2022/divider/testing.mjs.map +0 -1
- package/fesm2022/error-options.mjs.map +0 -1
- package/fesm2022/error-state.mjs.map +0 -1
- package/fesm2022/expansion/testing.mjs.map +0 -1
- package/fesm2022/form-field/testing/control.mjs.map +0 -1
- package/fesm2022/form-field/testing.mjs.map +0 -1
- package/fesm2022/form-field2.mjs.map +0 -1
- package/fesm2022/grid-list/testing.mjs.map +0 -1
- package/fesm2022/icon/testing.mjs.map +0 -1
- package/fesm2022/icon-button.mjs.map +0 -1
- package/fesm2022/icon-registry.mjs.map +0 -1
- package/fesm2022/input-harness.mjs.map +0 -1
- package/fesm2022/input-value-accessor.mjs.map +0 -1
- package/fesm2022/internal-form-field.mjs.map +0 -1
- package/fesm2022/line.mjs.map +0 -1
- package/fesm2022/list/testing.mjs.map +0 -1
- package/fesm2022/menu/testing.mjs.map +0 -1
- package/fesm2022/option-harness.mjs.map +0 -1
- package/fesm2022/option-module.mjs.map +0 -1
- package/fesm2022/option.mjs.map +0 -1
- package/fesm2022/paginator/testing.mjs.map +0 -1
- package/fesm2022/progress-bar/testing.mjs.map +0 -1
- package/fesm2022/progress-spinner/testing.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-module.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox.mjs.map +0 -1
- package/fesm2022/public-api.mjs.map +0 -1
- package/fesm2022/radio/testing.mjs.map +0 -1
- package/fesm2022/ripple-loader.mjs.map +0 -1
- package/fesm2022/ripple-module.mjs.map +0 -1
- package/fesm2022/ripple.mjs.map +0 -1
- package/fesm2022/select/testing.mjs.map +0 -1
- package/fesm2022/sidenav/testing.mjs.map +0 -1
- package/fesm2022/slide-toggle/testing.mjs.map +0 -1
- package/fesm2022/slider/testing.mjs.map +0 -1
- package/fesm2022/snack-bar/testing.mjs.map +0 -1
- package/fesm2022/sort/testing.mjs.map +0 -1
- package/fesm2022/stepper/testing.mjs.map +0 -1
- package/fesm2022/structural-styles.mjs.map +0 -1
- package/fesm2022/table/testing.mjs.map +0 -1
- package/fesm2022/tabs/testing.mjs.map +0 -1
- package/fesm2022/timepicker/testing.mjs.map +0 -1
- package/fesm2022/toolbar/testing.mjs.map +0 -1
- package/fesm2022/tooltip/testing.mjs.map +0 -1
- package/fesm2022/tooltip2.mjs.map +0 -1
- package/fesm2022/tree/testing.mjs.map +0 -1
- /package/{button-toggle.d.d.ts → types/_button-toggle-chunk.d.ts} +0 -0
- /package/{date-adapter.d.d.ts → types/_date-adapter-chunk.d.ts} +0 -0
- /package/{date-range-input-harness.d.d.ts → types/_date-range-input-harness-chunk.d.ts} +0 -0
- /package/{dialog.d.d.ts → types/_dialog-chunk.d.ts} +0 -0
- /package/{error-options.d.d.ts → types/_error-options-chunk.d.ts} +0 -0
- /package/{form-field-control.d.d.ts → types/_form-field-control-chunk.d.ts} +0 -0
- /package/{form-field-control-harness.d.d.ts → types/_form-field-control-harness-chunk.d.ts} +0 -0
- /package/{icon-registry.d.d.ts → types/_icon-registry-chunk.d.ts} +0 -0
- /package/{input-harness.d.d.ts → types/_input-harness-chunk.d.ts} +0 -0
- /package/{line.d.d.ts → types/_line-chunk.d.ts} +0 -0
- /package/{list-option-types.d.d.ts → types/_list-option-types-chunk.d.ts} +0 -0
- /package/{option.d.d.ts → types/_option-chunk.d.ts} +0 -0
- /package/{option-harness.d.d.ts → types/_option-harness-chunk.d.ts} +0 -0
- /package/{option-parent.d.d.ts → types/_option-parent-chunk.d.ts} +0 -0
- /package/{palette.d.d.ts → types/_palette-chunk.d.ts} +0 -0
- /package/{pseudo-checkbox-module.d.d.ts → types/_pseudo-checkbox-module-chunk.d.ts} +0 -0
- /package/{ripple.d.d.ts → types/_ripple-chunk.d.ts} +0 -0
- /package/{ripple-loader.d.d.ts → types/_ripple-loader-chunk.d.ts} +0 -0
- /package/{sort-direction.d.d.ts → types/_sort-direction-chunk.d.ts} +0 -0
- /package/{bottom-sheet/testing/index.d.ts → types/bottom-sheet-testing.d.ts} +0 -0
- /package/{button/testing/index.d.ts → types/button-testing.d.ts} +0 -0
- /package/{card/testing/index.d.ts → types/card-testing.d.ts} +0 -0
- /package/{card/index.d.ts → types/card.d.ts} +0 -0
- /package/{checkbox/testing/index.d.ts → types/checkbox-testing.d.ts} +0 -0
- /package/{chips/testing/index.d.ts → types/chips-testing.d.ts} +0 -0
- /package/{divider/testing/index.d.ts → types/divider-testing.d.ts} +0 -0
- /package/{divider/index.d.ts → types/divider.d.ts} +0 -0
- /package/{expansion/testing/index.d.ts → types/expansion-testing.d.ts} +0 -0
- /package/{expansion/index.d.ts → types/expansion.d.ts} +0 -0
- /package/{grid-list/testing/index.d.ts → types/grid-list-testing.d.ts} +0 -0
- /package/{index.d.ts → types/material.d.ts} +0 -0
- /package/{menu/testing/index.d.ts → types/menu-testing.d.ts} +0 -0
- /package/{progress-bar/testing/index.d.ts → types/progress-bar-testing.d.ts} +0 -0
- /package/{radio/testing/index.d.ts → types/radio-testing.d.ts} +0 -0
- /package/{select/testing/index.d.ts → types/select-testing.d.ts} +0 -0
- /package/{sidenav/testing/index.d.ts → types/sidenav-testing.d.ts} +0 -0
- /package/{sidenav/index.d.ts → types/sidenav.d.ts} +0 -0
- /package/{slide-toggle/testing/index.d.ts → types/slide-toggle-testing.d.ts} +0 -0
- /package/{slider/testing/index.d.ts → types/slider-testing.d.ts} +0 -0
- /package/{snack-bar/testing/index.d.ts → types/snack-bar-testing.d.ts} +0 -0
- /package/{stepper/testing/index.d.ts → types/stepper-testing.d.ts} +0 -0
- /package/{table/testing/index.d.ts → types/table-testing.d.ts} +0 -0
- /package/{tabs/testing/index.d.ts → types/tabs-testing.d.ts} +0 -0
- /package/{toolbar/testing/index.d.ts → types/toolbar-testing.d.ts} +0 -0
- /package/{toolbar/index.d.ts → types/toolbar.d.ts} +0 -0
- /package/{tooltip/testing/index.d.ts → types/tooltip-testing.d.ts} +0 -0
- /package/{tooltip/index.d.ts → types/tooltip.d.ts} +0 -0
- /package/{tree/testing/index.d.ts → types/tree-testing.d.ts} +0 -0
- /package/{tree/index.d.ts → types/tree.d.ts} +0 -0
package/fesm2022/datepicker.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject, ElementRef, NgZone, EventEmitter, Injector, Renderer2, afterNextRender, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, InjectionToken, ChangeDetectorRef, ViewChild, ViewContainerRef, DOCUMENT, booleanAttribute, Directive, forwardRef,
|
|
2
|
+
import { Injectable, inject, ElementRef, NgZone, EventEmitter, Injector, Renderer2, afterNextRender, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, InjectionToken, ChangeDetectorRef, signal, ViewChild, ViewContainerRef, DOCUMENT, booleanAttribute, Directive, forwardRef, HostAttributeToken, ContentChild, TemplateRef, NgModule } from '@angular/core';
|
|
3
3
|
import { Subject, Subscription, merge, of } from 'rxjs';
|
|
4
|
-
import { DateAdapter, MAT_DATE_FORMATS } from './
|
|
4
|
+
import { DateAdapter, MAT_DATE_FORMATS } from './_date-formats-chunk.mjs';
|
|
5
5
|
import { _IdGenerator, CdkMonitorFocus, CdkTrapFocus, A11yModule } from '@angular/cdk/a11y';
|
|
6
6
|
import { Directionality, BidiModule } from '@angular/cdk/bidi';
|
|
7
7
|
import { coerceStringArray } from '@angular/cdk/coercion';
|
|
@@ -12,20 +12,20 @@ import { ComponentPortal, CdkPortalOutlet, TemplatePortal, PortalModule } from '
|
|
|
12
12
|
import { startWith, take, filter } from 'rxjs/operators';
|
|
13
13
|
import { NgClass } from '@angular/common';
|
|
14
14
|
import { _CdkPrivateStyleLoader, _VisuallyHiddenLoader } from '@angular/cdk/private';
|
|
15
|
-
import { _StructuralStylesLoader } from './
|
|
15
|
+
import { _StructuralStylesLoader } from './_structural-styles-chunk.mjs';
|
|
16
16
|
import { MatButton, MatButtonModule } from './button.mjs';
|
|
17
|
-
import { MatIconButton } from './
|
|
18
|
-
import { MatTooltip } from './
|
|
19
|
-
import { _animationsDisabled } from './
|
|
17
|
+
import { MatIconButton } from './_icon-button-chunk.mjs';
|
|
18
|
+
import { MatTooltip } from './_tooltip-chunk.mjs';
|
|
19
|
+
import { _animationsDisabled } from './_animation-chunk.mjs';
|
|
20
20
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators, ControlContainer, NgForm, FormGroupDirective, NgControl } from '@angular/forms';
|
|
21
|
-
import { MAT_INPUT_VALUE_ACCESSOR } from './
|
|
22
|
-
import { MAT_FORM_FIELD, MatFormFieldControl } from './
|
|
23
|
-
import { ErrorStateMatcher } from './
|
|
24
|
-
import { _ErrorStateTracker } from './
|
|
21
|
+
import { MAT_INPUT_VALUE_ACCESSOR } from './_input-value-accessor-chunk.mjs';
|
|
22
|
+
import { MAT_FORM_FIELD, MatFormFieldControl } from './_form-field-chunk.mjs';
|
|
23
|
+
import { ErrorStateMatcher } from './_error-options-chunk.mjs';
|
|
24
|
+
import { _ErrorStateTracker } from './_error-state-chunk.mjs';
|
|
25
25
|
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
26
|
+
import './_ripple-module-chunk.mjs';
|
|
27
|
+
import './_ripple-chunk.mjs';
|
|
28
|
+
import './_ripple-loader-chunk.mjs';
|
|
29
29
|
import '@angular/cdk/layout';
|
|
30
30
|
import '@angular/cdk/observers/private';
|
|
31
31
|
|
|
@@ -546,7 +546,9 @@ class MatCalendarBody {
|
|
|
546
546
|
const row = cell.getAttribute('data-mat-row');
|
|
547
547
|
const col = cell.getAttribute('data-mat-col');
|
|
548
548
|
if (row && col) {
|
|
549
|
-
|
|
549
|
+
// We need the optional read here, because this can
|
|
550
|
+
// fire too late when the user is navigating quickly.
|
|
551
|
+
return this.rows[parseInt(row)]?.[parseInt(col)] || null;
|
|
550
552
|
}
|
|
551
553
|
}
|
|
552
554
|
return null;
|
|
@@ -998,29 +1000,29 @@ class MatMonthView {
|
|
|
998
1000
|
/** The body of calendar table */
|
|
999
1001
|
_matCalendarBody;
|
|
1000
1002
|
/** The label for this month (e.g. "January 2017"). */
|
|
1001
|
-
_monthLabel;
|
|
1003
|
+
_monthLabel = signal('', ...(ngDevMode ? [{ debugName: "_monthLabel" }] : []));
|
|
1002
1004
|
/** Grid of calendar cells representing the dates of the month. */
|
|
1003
|
-
_weeks;
|
|
1005
|
+
_weeks = signal([], ...(ngDevMode ? [{ debugName: "_weeks" }] : []));
|
|
1004
1006
|
/** The number of blank cells in the first row before the 1st of the month. */
|
|
1005
|
-
_firstWeekOffset;
|
|
1007
|
+
_firstWeekOffset = signal(0, ...(ngDevMode ? [{ debugName: "_firstWeekOffset" }] : []));
|
|
1006
1008
|
/** Start value of the currently-shown date range. */
|
|
1007
|
-
_rangeStart;
|
|
1009
|
+
_rangeStart = signal(null, ...(ngDevMode ? [{ debugName: "_rangeStart" }] : []));
|
|
1008
1010
|
/** End value of the currently-shown date range. */
|
|
1009
|
-
_rangeEnd;
|
|
1011
|
+
_rangeEnd = signal(null, ...(ngDevMode ? [{ debugName: "_rangeEnd" }] : []));
|
|
1010
1012
|
/** Start value of the currently-shown comparison date range. */
|
|
1011
|
-
_comparisonRangeStart;
|
|
1013
|
+
_comparisonRangeStart = signal(null, ...(ngDevMode ? [{ debugName: "_comparisonRangeStart" }] : []));
|
|
1012
1014
|
/** End value of the currently-shown comparison date range. */
|
|
1013
|
-
_comparisonRangeEnd;
|
|
1015
|
+
_comparisonRangeEnd = signal(null, ...(ngDevMode ? [{ debugName: "_comparisonRangeEnd" }] : []));
|
|
1014
1016
|
/** Start of the preview range. */
|
|
1015
|
-
_previewStart;
|
|
1017
|
+
_previewStart = signal(null, ...(ngDevMode ? [{ debugName: "_previewStart" }] : []));
|
|
1016
1018
|
/** End of the preview range. */
|
|
1017
|
-
_previewEnd;
|
|
1019
|
+
_previewEnd = signal(null, ...(ngDevMode ? [{ debugName: "_previewEnd" }] : []));
|
|
1018
1020
|
/** Whether the user is currently selecting a range of dates. */
|
|
1019
|
-
_isRange;
|
|
1021
|
+
_isRange = signal(false, ...(ngDevMode ? [{ debugName: "_isRange" }] : []));
|
|
1020
1022
|
/** The date of the month that today falls on. Null if today is in another month. */
|
|
1021
|
-
_todayDate;
|
|
1023
|
+
_todayDate = signal(null, ...(ngDevMode ? [{ debugName: "_todayDate" }] : []));
|
|
1022
1024
|
/** The names of the weekdays. */
|
|
1023
|
-
_weekdays;
|
|
1025
|
+
_weekdays = signal([], ...(ngDevMode ? [{ debugName: "_weekdays" }] : []));
|
|
1024
1026
|
constructor() {
|
|
1025
1027
|
inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);
|
|
1026
1028
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
@@ -1139,7 +1141,7 @@ class MatMonthView {
|
|
|
1139
1141
|
return;
|
|
1140
1142
|
case ESCAPE:
|
|
1141
1143
|
// Abort the current range selection if the user presses escape mid-selection.
|
|
1142
|
-
if (this._previewEnd != null && !hasModifierKey(event)) {
|
|
1144
|
+
if (this._previewEnd() != null && !hasModifierKey(event)) {
|
|
1143
1145
|
this._clearPreview();
|
|
1144
1146
|
// If a drag is in progress, cancel the drag without changing the
|
|
1145
1147
|
// current selection.
|
|
@@ -1177,17 +1179,16 @@ class MatMonthView {
|
|
|
1177
1179
|
/** Initializes this month view. */
|
|
1178
1180
|
_init() {
|
|
1179
1181
|
this._setRanges(this.selected);
|
|
1180
|
-
this._todayDate
|
|
1181
|
-
this._monthLabel
|
|
1182
|
+
this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today()));
|
|
1183
|
+
this._monthLabel.set(this._dateFormats.display.monthLabel
|
|
1182
1184
|
? this._dateAdapter.format(this.activeDate, this._dateFormats.display.monthLabel)
|
|
1183
1185
|
: this._dateAdapter
|
|
1184
|
-
.getMonthNames('short')[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();
|
|
1186
|
+
.getMonthNames('short')[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());
|
|
1185
1187
|
let firstOfMonth = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), 1);
|
|
1186
|
-
this._firstWeekOffset
|
|
1187
|
-
(
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
DAYS_PER_WEEK;
|
|
1188
|
+
this._firstWeekOffset.set((DAYS_PER_WEEK +
|
|
1189
|
+
this._dateAdapter.getDayOfWeek(firstOfMonth) -
|
|
1190
|
+
this._dateAdapter.getFirstDayOfWeek()) %
|
|
1191
|
+
DAYS_PER_WEEK);
|
|
1191
1192
|
this._initWeekdays();
|
|
1192
1193
|
this._createWeekCells();
|
|
1193
1194
|
this._changeDetectorRef.markForCheck();
|
|
@@ -1207,20 +1208,15 @@ class MatMonthView {
|
|
|
1207
1208
|
// events aren't fired for single date selections.
|
|
1208
1209
|
const value = cell ? cell.rawValue : null;
|
|
1209
1210
|
const previewRange = this._rangeStrategy.createPreview(value, this.selected, event);
|
|
1210
|
-
this._previewStart
|
|
1211
|
-
this._previewEnd
|
|
1211
|
+
this._previewStart.set(this._getCellCompareValue(previewRange.start));
|
|
1212
|
+
this._previewEnd.set(this._getCellCompareValue(previewRange.end));
|
|
1212
1213
|
if (this.activeDrag && value) {
|
|
1213
1214
|
const dragRange = this._rangeStrategy.createDrag?.(this.activeDrag.value, this.selected, value, event);
|
|
1214
1215
|
if (dragRange) {
|
|
1215
|
-
this._previewStart
|
|
1216
|
-
this._previewEnd
|
|
1216
|
+
this._previewStart.set(this._getCellCompareValue(dragRange.start));
|
|
1217
|
+
this._previewEnd.set(this._getCellCompareValue(dragRange.end));
|
|
1217
1218
|
}
|
|
1218
1219
|
}
|
|
1219
|
-
// Note that here we need to use `detectChanges`, rather than `markForCheck`, because
|
|
1220
|
-
// the way `_focusActiveCell` is set up at the moment makes it fire at the wrong time
|
|
1221
|
-
// when navigating one month back using the keyboard which will cause this handler
|
|
1222
|
-
// to throw a "changed after checked" error when updating the preview state.
|
|
1223
|
-
this._changeDetectorRef.detectChanges();
|
|
1224
1220
|
}
|
|
1225
1221
|
}
|
|
1226
1222
|
/**
|
|
@@ -1252,27 +1248,28 @@ class MatMonthView {
|
|
|
1252
1248
|
const narrowWeekdays = this._dateAdapter.getDayOfWeekNames('narrow');
|
|
1253
1249
|
const longWeekdays = this._dateAdapter.getDayOfWeekNames('long');
|
|
1254
1250
|
// Rotate the labels for days of the week based on the configured first day of the week.
|
|
1255
|
-
|
|
1251
|
+
const weekdays = longWeekdays.map((long, i) => {
|
|
1256
1252
|
return { long, narrow: narrowWeekdays[i], id: uniqueIdCounter++ };
|
|
1257
1253
|
});
|
|
1258
|
-
this._weekdays
|
|
1254
|
+
this._weekdays.set(weekdays.slice(firstDayOfWeek).concat(weekdays.slice(0, firstDayOfWeek)));
|
|
1259
1255
|
}
|
|
1260
1256
|
/** Creates MatCalendarCells for the dates in this month. */
|
|
1261
1257
|
_createWeekCells() {
|
|
1262
1258
|
const daysInMonth = this._dateAdapter.getNumDaysInMonth(this.activeDate);
|
|
1263
1259
|
const dateNames = this._dateAdapter.getDateNames();
|
|
1264
|
-
|
|
1265
|
-
for (let i = 0, cell = this._firstWeekOffset; i < daysInMonth; i++, cell++) {
|
|
1260
|
+
const weeks = [[]];
|
|
1261
|
+
for (let i = 0, cell = this._firstWeekOffset(); i < daysInMonth; i++, cell++) {
|
|
1266
1262
|
if (cell == DAYS_PER_WEEK) {
|
|
1267
|
-
|
|
1263
|
+
weeks.push([]);
|
|
1268
1264
|
cell = 0;
|
|
1269
1265
|
}
|
|
1270
1266
|
const date = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), i + 1);
|
|
1271
1267
|
const enabled = this._shouldEnableDate(date);
|
|
1272
1268
|
const ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.dateA11yLabel);
|
|
1273
1269
|
const cellClasses = this.dateClass ? this.dateClass(date, 'month') : undefined;
|
|
1274
|
-
|
|
1270
|
+
weeks[weeks.length - 1].push(new MatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled, cellClasses, this._getCellCompareValue(date), date));
|
|
1275
1271
|
}
|
|
1272
|
+
this._weeks.set(weeks);
|
|
1276
1273
|
}
|
|
1277
1274
|
/** Date filter for the month */
|
|
1278
1275
|
_shouldEnableDate(date) {
|
|
@@ -1316,16 +1313,17 @@ class MatMonthView {
|
|
|
1316
1313
|
/** Sets the current range based on a model value. */
|
|
1317
1314
|
_setRanges(selectedValue) {
|
|
1318
1315
|
if (selectedValue instanceof DateRange) {
|
|
1319
|
-
this._rangeStart
|
|
1320
|
-
this._rangeEnd
|
|
1321
|
-
this._isRange
|
|
1316
|
+
this._rangeStart.set(this._getCellCompareValue(selectedValue.start));
|
|
1317
|
+
this._rangeEnd.set(this._getCellCompareValue(selectedValue.end));
|
|
1318
|
+
this._isRange.set(true);
|
|
1322
1319
|
}
|
|
1323
1320
|
else {
|
|
1324
|
-
this._rangeStart
|
|
1325
|
-
this.
|
|
1321
|
+
this._rangeStart.set(this._getCellCompareValue(selectedValue));
|
|
1322
|
+
this._rangeEnd.set(this._rangeStart());
|
|
1323
|
+
this._isRange.set(false);
|
|
1326
1324
|
}
|
|
1327
|
-
this._comparisonRangeStart
|
|
1328
|
-
this._comparisonRangeEnd
|
|
1325
|
+
this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart));
|
|
1326
|
+
this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd));
|
|
1329
1327
|
}
|
|
1330
1328
|
/** Gets whether a date can be selected in the month view. */
|
|
1331
1329
|
_canSelect(date) {
|
|
@@ -1333,14 +1331,15 @@ class MatMonthView {
|
|
|
1333
1331
|
}
|
|
1334
1332
|
/** Clears out preview state. */
|
|
1335
1333
|
_clearPreview() {
|
|
1336
|
-
this._previewStart
|
|
1334
|
+
this._previewStart.set(null);
|
|
1335
|
+
this._previewEnd.set(null);
|
|
1337
1336
|
}
|
|
1338
1337
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatMonthView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1339
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.0-next.2", type: MatMonthView, isStandalone: true, selector: "mat-month-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd", startDateAccessibleName: "startDateAccessibleName", endDateAccessibleName: "endDateAccessibleName", activeDrag: "activeDrag" }, outputs: { selectedChange: "selectedChange", _userSelection: "_userSelection", dragStarted: "dragStarted", dragEnded: "dragEnded", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matMonthView"], usesOnChanges: true, ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead class=\"mat-calendar-table-header\">\n <tr>\n @for (day of _weekdays; track day.id) {\n <th scope=\"col\">\n <span class=\"cdk-visually-hidden\">{{day.long}}</span>\n <span aria-hidden=\"true\">{{day.narrow}}</span>\n </th>\n }\n </tr>\n <tr aria-hidden=\"true\"><th class=\"mat-calendar-table-header-divider\" colspan=\"7\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_monthLabel\"\n [rows]=\"_weeks\"\n [todayValue]=\"_todayDate!\"\n [startValue]=\"_rangeStart!\"\n [endValue]=\"_rangeEnd!\"\n [comparisonStart]=\"_comparisonRangeStart\"\n [comparisonEnd]=\"_comparisonRangeEnd\"\n [previewStart]=\"_previewStart\"\n [previewEnd]=\"_previewEnd\"\n [isRange]=\"_isRange\"\n [labelMinRequiredCells]=\"3\"\n [activeCell]=\"_dateAdapter.getDate(activeDate) - 1\"\n [startDateAccessibleName]=\"startDateAccessibleName\"\n [endDateAccessibleName]=\"endDateAccessibleName\"\n (selectedValueChange)=\"_dateSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (dragStarted)=\"dragStarted.emit($event)\"\n (dragEnded)=\"_dragEnded($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedValueChange", "previewChange", "activeDateChange", "dragStarted", "dragEnded"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1338
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.0-next.2", type: MatMonthView, isStandalone: true, selector: "mat-month-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd", startDateAccessibleName: "startDateAccessibleName", endDateAccessibleName: "endDateAccessibleName", activeDrag: "activeDrag" }, outputs: { selectedChange: "selectedChange", _userSelection: "_userSelection", dragStarted: "dragStarted", dragEnded: "dragEnded", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matMonthView"], usesOnChanges: true, ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead class=\"mat-calendar-table-header\">\n <tr>\n @for (day of _weekdays(); track day.id) {\n <th scope=\"col\">\n <span class=\"cdk-visually-hidden\">{{day.long}}</span>\n <span aria-hidden=\"true\">{{day.narrow}}</span>\n </th>\n }\n </tr>\n <tr aria-hidden=\"true\"><th class=\"mat-calendar-table-header-divider\" colspan=\"7\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_monthLabel()\"\n [rows]=\"_weeks()\"\n [todayValue]=\"_todayDate()!\"\n [startValue]=\"_rangeStart()!\"\n [endValue]=\"_rangeEnd()!\"\n [comparisonStart]=\"_comparisonRangeStart()\"\n [comparisonEnd]=\"_comparisonRangeEnd()\"\n [previewStart]=\"_previewStart()\"\n [previewEnd]=\"_previewEnd()\"\n [isRange]=\"_isRange()\"\n [labelMinRequiredCells]=\"3\"\n [activeCell]=\"_dateAdapter.getDate(activeDate) - 1\"\n [startDateAccessibleName]=\"startDateAccessibleName\"\n [endDateAccessibleName]=\"endDateAccessibleName\"\n (selectedValueChange)=\"_dateSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (dragStarted)=\"dragStarted.emit($event)\"\n (dragEnded)=\"_dragEnded($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedValueChange", "previewChange", "activeDateChange", "dragStarted", "dragEnded"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1340
1339
|
}
|
|
1341
1340
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatMonthView, decorators: [{
|
|
1342
1341
|
type: Component,
|
|
1343
|
-
args: [{ selector: 'mat-month-view', exportAs: 'matMonthView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatCalendarBody], template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead class=\"mat-calendar-table-header\">\n <tr>\n @for (day of _weekdays; track day.id) {\n <th scope=\"col\">\n <span class=\"cdk-visually-hidden\">{{day.long}}</span>\n <span aria-hidden=\"true\">{{day.narrow}}</span>\n </th>\n }\n </tr>\n <tr aria-hidden=\"true\"><th class=\"mat-calendar-table-header-divider\" colspan=\"7\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_monthLabel\"\n [rows]=\"_weeks\"\n [todayValue]=\"_todayDate!\"\n [startValue]=\"_rangeStart!\"\n [endValue]=\"_rangeEnd!\"\n [comparisonStart]=\"_comparisonRangeStart\"\n [comparisonEnd]=\"_comparisonRangeEnd\"\n [previewStart]=\"_previewStart\"\n [previewEnd]=\"_previewEnd\"\n [isRange]=\"_isRange\"\n [labelMinRequiredCells]=\"3\"\n [activeCell]=\"_dateAdapter.getDate(activeDate) - 1\"\n [startDateAccessibleName]=\"startDateAccessibleName\"\n [endDateAccessibleName]=\"endDateAccessibleName\"\n (selectedValueChange)=\"_dateSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (dragStarted)=\"dragStarted.emit($event)\"\n (dragEnded)=\"_dragEnded($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
1342
|
+
args: [{ selector: 'mat-month-view', exportAs: 'matMonthView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatCalendarBody], template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead class=\"mat-calendar-table-header\">\n <tr>\n @for (day of _weekdays(); track day.id) {\n <th scope=\"col\">\n <span class=\"cdk-visually-hidden\">{{day.long}}</span>\n <span aria-hidden=\"true\">{{day.narrow}}</span>\n </th>\n }\n </tr>\n <tr aria-hidden=\"true\"><th class=\"mat-calendar-table-header-divider\" colspan=\"7\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_monthLabel()\"\n [rows]=\"_weeks()\"\n [todayValue]=\"_todayDate()!\"\n [startValue]=\"_rangeStart()!\"\n [endValue]=\"_rangeEnd()!\"\n [comparisonStart]=\"_comparisonRangeStart()\"\n [comparisonEnd]=\"_comparisonRangeEnd()\"\n [previewStart]=\"_previewStart()\"\n [previewEnd]=\"_previewEnd()\"\n [isRange]=\"_isRange()\"\n [labelMinRequiredCells]=\"3\"\n [activeCell]=\"_dateAdapter.getDate(activeDate) - 1\"\n [startDateAccessibleName]=\"startDateAccessibleName\"\n [endDateAccessibleName]=\"endDateAccessibleName\"\n (selectedValueChange)=\"_dateSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (dragStarted)=\"dragStarted.emit($event)\"\n (dragEnded)=\"_dragEnded($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
1344
1343
|
}], ctorParameters: () => [], propDecorators: { activeDate: [{
|
|
1345
1344
|
type: Input
|
|
1346
1345
|
}], selected: [{
|
|
@@ -1448,11 +1447,11 @@ class MatMultiYearView {
|
|
|
1448
1447
|
/** The body of calendar table */
|
|
1449
1448
|
_matCalendarBody;
|
|
1450
1449
|
/** Grid of calendar cells representing the currently displayed years. */
|
|
1451
|
-
_years;
|
|
1450
|
+
_years = signal([], ...(ngDevMode ? [{ debugName: "_years" }] : []));
|
|
1452
1451
|
/** The year that today falls on. */
|
|
1453
|
-
_todayYear;
|
|
1452
|
+
_todayYear = signal(0, ...(ngDevMode ? [{ debugName: "_todayYear" }] : []));
|
|
1454
1453
|
/** The year of the selected date. Null if the selected date is null. */
|
|
1455
|
-
_selectedYear;
|
|
1454
|
+
_selectedYear = signal(null, ...(ngDevMode ? [{ debugName: "_selectedYear" }] : []));
|
|
1456
1455
|
constructor() {
|
|
1457
1456
|
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1458
1457
|
throw createMissingDateImplError('DateAdapter');
|
|
@@ -1469,7 +1468,7 @@ class MatMultiYearView {
|
|
|
1469
1468
|
}
|
|
1470
1469
|
/** Initializes this multi-year view. */
|
|
1471
1470
|
_init() {
|
|
1472
|
-
this._todayYear
|
|
1471
|
+
this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));
|
|
1473
1472
|
// We want a range years such that we maximize the number of
|
|
1474
1473
|
// enabled dates visible at once. This prevents issues where the minimum year
|
|
1475
1474
|
// is the last item of a page OR the maximum year is the first item of a page.
|
|
@@ -1477,14 +1476,15 @@ class MatMultiYearView {
|
|
|
1477
1476
|
// *actual* first rendered year in the multi-year view.
|
|
1478
1477
|
const activeYear = this._dateAdapter.getYear(this._activeDate);
|
|
1479
1478
|
const minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);
|
|
1480
|
-
|
|
1479
|
+
const years = [];
|
|
1481
1480
|
for (let i = 0, row = []; i < yearsPerPage; i++) {
|
|
1482
1481
|
row.push(minYearOfPage + i);
|
|
1483
1482
|
if (row.length == yearsPerRow) {
|
|
1484
|
-
|
|
1483
|
+
years.push(row.map(year => this._createCellForYear(year)));
|
|
1485
1484
|
row = [];
|
|
1486
1485
|
}
|
|
1487
1486
|
}
|
|
1487
|
+
this._years.set(years);
|
|
1488
1488
|
this._changeDetectorRef.markForCheck();
|
|
1489
1489
|
}
|
|
1490
1490
|
/** Handles when a new year is selected. */
|
|
@@ -1628,23 +1628,23 @@ class MatMultiYearView {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
/** Sets the currently-highlighted year based on a model value. */
|
|
1630
1630
|
_setSelectedYear(value) {
|
|
1631
|
-
this._selectedYear
|
|
1631
|
+
this._selectedYear.set(null);
|
|
1632
1632
|
if (value instanceof DateRange) {
|
|
1633
1633
|
const displayValue = value.start || value.end;
|
|
1634
1634
|
if (displayValue) {
|
|
1635
|
-
this._selectedYear
|
|
1635
|
+
this._selectedYear.set(this._dateAdapter.getYear(displayValue));
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
else if (value) {
|
|
1639
|
-
this._selectedYear
|
|
1639
|
+
this._selectedYear.set(this._dateAdapter.getYear(value));
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
1642
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatMultiYearView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1643
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatMultiYearView, isStandalone: true, selector: "mat-multi-year-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matMultiYearView"], ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" class=\"mat-calendar-table-header\">\n <tr><th class=\"mat-calendar-table-header-divider\" colspan=\"4\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [rows]=\"_years\"\n [todayValue]=\"_todayYear\"\n [startValue]=\"_selectedYear!\"\n [endValue]=\"_selectedYear!\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_getActiveCell()\"\n (selectedValueChange)=\"_yearSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedValueChange", "previewChange", "activeDateChange", "dragStarted", "dragEnded"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1643
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatMultiYearView, isStandalone: true, selector: "mat-multi-year-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matMultiYearView"], ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" class=\"mat-calendar-table-header\">\n <tr><th class=\"mat-calendar-table-header-divider\" colspan=\"4\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [rows]=\"_years()\"\n [todayValue]=\"_todayYear()\"\n [startValue]=\"_selectedYear()!\"\n [endValue]=\"_selectedYear()!\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_getActiveCell()\"\n (selectedValueChange)=\"_yearSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedValueChange", "previewChange", "activeDateChange", "dragStarted", "dragEnded"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1644
1644
|
}
|
|
1645
1645
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatMultiYearView, decorators: [{
|
|
1646
1646
|
type: Component,
|
|
1647
|
-
args: [{ selector: 'mat-multi-year-view', exportAs: 'matMultiYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatCalendarBody], template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" class=\"mat-calendar-table-header\">\n <tr><th class=\"mat-calendar-table-header-divider\" colspan=\"4\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [rows]=\"_years\"\n [todayValue]=\"_todayYear\"\n [startValue]=\"_selectedYear!\"\n [endValue]=\"_selectedYear!\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_getActiveCell()\"\n (selectedValueChange)=\"_yearSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
1647
|
+
args: [{ selector: 'mat-multi-year-view', exportAs: 'matMultiYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatCalendarBody], template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" class=\"mat-calendar-table-header\">\n <tr><th class=\"mat-calendar-table-header-divider\" colspan=\"4\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [rows]=\"_years()\"\n [todayValue]=\"_todayYear()\"\n [startValue]=\"_selectedYear()!\"\n [endValue]=\"_selectedYear()!\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_getActiveCell()\"\n (selectedValueChange)=\"_yearSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
1648
1648
|
}], ctorParameters: () => [], propDecorators: { activeDate: [{
|
|
1649
1649
|
type: Input
|
|
1650
1650
|
}], selected: [{
|
|
@@ -1772,16 +1772,16 @@ class MatYearView {
|
|
|
1772
1772
|
/** The body of calendar table */
|
|
1773
1773
|
_matCalendarBody;
|
|
1774
1774
|
/** Grid of calendar cells representing the months of the year. */
|
|
1775
|
-
_months;
|
|
1775
|
+
_months = signal([], ...(ngDevMode ? [{ debugName: "_months" }] : []));
|
|
1776
1776
|
/** The label for this year (e.g. "2017"). */
|
|
1777
|
-
_yearLabel;
|
|
1777
|
+
_yearLabel = signal('', ...(ngDevMode ? [{ debugName: "_yearLabel" }] : []));
|
|
1778
1778
|
/** The month in this year that today falls on. Null if today is in a different year. */
|
|
1779
|
-
_todayMonth;
|
|
1779
|
+
_todayMonth = signal(null, ...(ngDevMode ? [{ debugName: "_todayMonth" }] : []));
|
|
1780
1780
|
/**
|
|
1781
1781
|
* The month in this year that the selected Date falls on.
|
|
1782
1782
|
* Null if the selected Date is in a different year.
|
|
1783
1783
|
*/
|
|
1784
|
-
_selectedMonth;
|
|
1784
|
+
_selectedMonth = signal(null, ...(ngDevMode ? [{ debugName: "_selectedMonth" }] : []));
|
|
1785
1785
|
constructor() {
|
|
1786
1786
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1787
1787
|
if (!this._dateAdapter) {
|
|
@@ -1890,15 +1890,15 @@ class MatYearView {
|
|
|
1890
1890
|
/** Initializes this year view. */
|
|
1891
1891
|
_init() {
|
|
1892
1892
|
this._setSelectedMonth(this.selected);
|
|
1893
|
-
this._todayMonth
|
|
1894
|
-
this._yearLabel
|
|
1893
|
+
this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today()));
|
|
1894
|
+
this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));
|
|
1895
1895
|
let monthNames = this._dateAdapter.getMonthNames('short');
|
|
1896
1896
|
// First row of months only contains 5 elements so we can fit the year label on the same row.
|
|
1897
|
-
this._months
|
|
1897
|
+
this._months.set([
|
|
1898
1898
|
[0, 1, 2, 3],
|
|
1899
1899
|
[4, 5, 6, 7],
|
|
1900
1900
|
[8, 9, 10, 11],
|
|
1901
|
-
].map(row => row.map(month => this._createCellForMonth(month, monthNames[month])));
|
|
1901
|
+
].map(row => row.map(month => this._createCellForMonth(month, monthNames[month]))));
|
|
1902
1902
|
this._changeDetectorRef.markForCheck();
|
|
1903
1903
|
}
|
|
1904
1904
|
/** Focuses the active cell after the microtask queue is empty. */
|
|
@@ -1986,19 +1986,18 @@ class MatYearView {
|
|
|
1986
1986
|
/** Sets the currently-selected month based on a model value. */
|
|
1987
1987
|
_setSelectedMonth(value) {
|
|
1988
1988
|
if (value instanceof DateRange) {
|
|
1989
|
-
this._selectedMonth
|
|
1990
|
-
this._getMonthInCurrentYear(value.start) || this._getMonthInCurrentYear(value.end);
|
|
1989
|
+
this._selectedMonth.set(this._getMonthInCurrentYear(value.start) || this._getMonthInCurrentYear(value.end));
|
|
1991
1990
|
}
|
|
1992
1991
|
else {
|
|
1993
|
-
this._selectedMonth
|
|
1992
|
+
this._selectedMonth.set(this._getMonthInCurrentYear(value));
|
|
1994
1993
|
}
|
|
1995
1994
|
}
|
|
1996
1995
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatYearView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1997
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatYearView, isStandalone: true, selector: "mat-year-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", monthSelected: "monthSelected", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matYearView"], ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" class=\"mat-calendar-table-header\">\n <tr><th class=\"mat-calendar-table-header-divider\" colspan=\"4\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_yearLabel\"\n [rows]=\"_months\"\n [todayValue]=\"_todayMonth!\"\n [startValue]=\"_selectedMonth!\"\n [endValue]=\"_selectedMonth!\"\n [labelMinRequiredCells]=\"2\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_dateAdapter.getMonth(activeDate)\"\n (selectedValueChange)=\"_monthSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedValueChange", "previewChange", "activeDateChange", "dragStarted", "dragEnded"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1996
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0-next.2", type: MatYearView, isStandalone: true, selector: "mat-year-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", monthSelected: "monthSelected", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matYearView"], ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" class=\"mat-calendar-table-header\">\n <tr><th class=\"mat-calendar-table-header-divider\" colspan=\"4\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_yearLabel()\"\n [rows]=\"_months()\"\n [todayValue]=\"_todayMonth()!\"\n [startValue]=\"_selectedMonth()!\"\n [endValue]=\"_selectedMonth()!\"\n [labelMinRequiredCells]=\"2\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_dateAdapter.getMonth(activeDate)\"\n (selectedValueChange)=\"_monthSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedValueChange", "previewChange", "activeDateChange", "dragStarted", "dragEnded"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1998
1997
|
}
|
|
1999
1998
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: MatYearView, decorators: [{
|
|
2000
1999
|
type: Component,
|
|
2001
|
-
args: [{ selector: 'mat-year-view', exportAs: 'matYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatCalendarBody], template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" class=\"mat-calendar-table-header\">\n <tr><th class=\"mat-calendar-table-header-divider\" colspan=\"4\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_yearLabel\"\n [rows]=\"_months\"\n [todayValue]=\"_todayMonth!\"\n [startValue]=\"_selectedMonth!\"\n [endValue]=\"_selectedMonth!\"\n [labelMinRequiredCells]=\"2\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_dateAdapter.getMonth(activeDate)\"\n (selectedValueChange)=\"_monthSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
2000
|
+
args: [{ selector: 'mat-year-view', exportAs: 'matYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatCalendarBody], template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead aria-hidden=\"true\" class=\"mat-calendar-table-header\">\n <tr><th class=\"mat-calendar-table-header-divider\" colspan=\"4\"></th></tr>\n </thead>\n <tbody mat-calendar-body\n [label]=\"_yearLabel()\"\n [rows]=\"_months()\"\n [todayValue]=\"_todayMonth()!\"\n [startValue]=\"_selectedMonth()!\"\n [endValue]=\"_selectedMonth()!\"\n [labelMinRequiredCells]=\"2\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"_dateAdapter.getMonth(activeDate)\"\n (selectedValueChange)=\"_monthSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
2002
2001
|
}], ctorParameters: () => [], propDecorators: { activeDate: [{
|
|
2003
2002
|
type: Input
|
|
2004
2003
|
}], selected: [{
|