@angular/material 13.0.0-rc.0 → 13.0.0
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/autocomplete/autocomplete_public_index.d.ts +4 -0
- package/autocomplete/index.d.ts +5 -1
- package/autocomplete/package.json +2 -2
- package/autocomplete/testing/autocomplete-harness.d.ts +4 -4
- package/badge/badge_public_index.d.ts +4 -0
- package/badge/index.d.ts +5 -1
- package/badge/package.json +2 -2
- package/bottom-sheet/bottom-sheet_public_index.d.ts +4 -0
- package/bottom-sheet/index.d.ts +5 -1
- package/bottom-sheet/package.json +2 -2
- package/button/button_public_index.d.ts +4 -0
- package/button/index.d.ts +5 -1
- package/button/package.json +2 -2
- package/button-toggle/button-toggle_public_index.d.ts +4 -0
- package/button-toggle/index.d.ts +5 -1
- package/button-toggle/package.json +2 -2
- package/card/card_public_index.d.ts +4 -0
- package/card/index.d.ts +5 -1
- package/card/package.json +2 -2
- package/checkbox/checkbox_public_index.d.ts +4 -0
- package/checkbox/index.d.ts +5 -1
- package/checkbox/package.json +2 -2
- package/chips/chips_public_index.d.ts +4 -0
- package/chips/index.d.ts +5 -1
- package/chips/package.json +2 -2
- package/core/common-behaviors/index.d.ts +1 -1
- package/core/core_public_index.d.ts +4 -0
- package/core/index.d.ts +5 -1
- package/core/package.json +2 -2
- package/datepicker/datepicker_public_index.d.ts +4 -0
- package/datepicker/index.d.ts +5 -1
- package/datepicker/package.json +2 -2
- package/dialog/dialog_public_index.d.ts +4 -0
- package/dialog/index.d.ts +5 -1
- package/dialog/package.json +2 -2
- package/divider/divider_public_index.d.ts +4 -0
- package/divider/index.d.ts +5 -1
- package/divider/package.json +2 -2
- package/esm2020/autocomplete/autocomplete-module.mjs +6 -19
- package/esm2020/autocomplete/autocomplete-origin.mjs +7 -7
- package/esm2020/autocomplete/autocomplete-trigger.mjs +36 -31
- package/esm2020/autocomplete/autocomplete.mjs +15 -15
- package/esm2020/autocomplete/autocomplete_public_index.mjs +5 -0
- package/esm2020/autocomplete/index.mjs +6 -2
- package/esm2020/autocomplete/testing/autocomplete-harness.mjs +7 -8
- package/esm2020/badge/badge-module.mjs +6 -13
- package/esm2020/badge/badge.mjs +16 -8
- package/esm2020/badge/badge_public_index.mjs +5 -0
- package/esm2020/badge/index.mjs +6 -2
- package/esm2020/badge/testing/badge-harness.mjs +2 -3
- package/esm2020/bottom-sheet/bottom-sheet-animations.mjs +2 -2
- package/esm2020/bottom-sheet/bottom-sheet-container.mjs +8 -6
- package/esm2020/bottom-sheet/bottom-sheet-module.mjs +6 -16
- package/esm2020/bottom-sheet/bottom-sheet-ref.mjs +10 -4
- package/esm2020/bottom-sheet/bottom-sheet.mjs +12 -11
- package/esm2020/bottom-sheet/bottom-sheet_public_index.mjs +5 -0
- package/esm2020/bottom-sheet/index.mjs +6 -2
- package/esm2020/bottom-sheet/testing/bottom-sheet-harness.mjs +1 -1
- package/esm2020/button/button-module.mjs +8 -25
- package/esm2020/button/button.mjs +7 -7
- package/esm2020/button/button_public_index.mjs +5 -0
- package/esm2020/button/index.mjs +6 -2
- package/esm2020/button/public-api.mjs +1 -1
- package/esm2020/button/testing/button-harness.mjs +2 -3
- package/esm2020/button-toggle/button-toggle-module.mjs +5 -5
- package/esm2020/button-toggle/button-toggle.mjs +31 -19
- package/esm2020/button-toggle/button-toggle_public_index.mjs +5 -0
- package/esm2020/button-toggle/index.mjs +6 -2
- package/esm2020/button-toggle/public-api.mjs +1 -1
- package/esm2020/button-toggle/testing/button-toggle-group-harness-filters.mjs +1 -1
- package/esm2020/button-toggle/testing/button-toggle-group-harness.mjs +3 -3
- package/esm2020/button-toggle/testing/button-toggle-harness.mjs +2 -2
- package/esm2020/card/card-module.mjs +32 -10
- package/esm2020/card/card.mjs +56 -56
- package/esm2020/card/card_public_index.mjs +5 -0
- package/esm2020/card/index.mjs +6 -2
- package/esm2020/card/public-api.mjs +1 -1
- package/esm2020/card/testing/card-harness.mjs +1 -1
- package/esm2020/checkbox/checkbox-config.mjs +2 -2
- package/esm2020/checkbox/checkbox-module.mjs +10 -16
- package/esm2020/checkbox/checkbox-required-validator.mjs +7 -7
- package/esm2020/checkbox/checkbox.mjs +35 -17
- package/esm2020/checkbox/checkbox_public_index.mjs +5 -0
- package/esm2020/checkbox/index.mjs +6 -2
- package/esm2020/checkbox/public-api.mjs +1 -1
- package/esm2020/checkbox/testing/checkbox-harness.mjs +3 -3
- package/esm2020/chips/chip-default-options.mjs +1 -1
- package/esm2020/chips/chip-input.mjs +21 -11
- package/esm2020/chips/chip-list.mjs +32 -17
- package/esm2020/chips/chip-text-control.mjs +1 -1
- package/esm2020/chips/chip.mjs +40 -31
- package/esm2020/chips/chips-module.mjs +12 -12
- package/esm2020/chips/chips_public_index.mjs +5 -0
- package/esm2020/chips/index.mjs +6 -2
- package/esm2020/chips/testing/chip-harness.mjs +2 -2
- package/esm2020/chips/testing/chip-input-harness.mjs +2 -2
- package/esm2020/chips/testing/chip-list-harness.mjs +5 -5
- package/esm2020/chips/testing/chip-listbox-harness.mjs +1 -1
- package/esm2020/chips/testing/chip-option-harness.mjs +1 -1
- package/esm2020/core/animation/animation.mjs +1 -1
- package/esm2020/core/common-behaviors/color.mjs +4 -2
- package/esm2020/core/common-behaviors/common-module.mjs +14 -9
- package/esm2020/core/common-behaviors/constructor.mjs +1 -1
- package/esm2020/core/common-behaviors/disable-ripple.mjs +7 -3
- package/esm2020/core/common-behaviors/disabled.mjs +7 -3
- package/esm2020/core/common-behaviors/error-state.mjs +1 -1
- package/esm2020/core/common-behaviors/index.mjs +1 -1
- package/esm2020/core/common-behaviors/initialized.mjs +1 -1
- package/esm2020/core/common-behaviors/tabindex.mjs +4 -2
- package/esm2020/core/core_public_index.mjs +5 -0
- package/esm2020/core/datetime/date-adapter.mjs +4 -4
- package/esm2020/core/datetime/date-formats.mjs +1 -1
- package/esm2020/core/datetime/index.mjs +10 -14
- package/esm2020/core/datetime/native-date-adapter.mjs +6 -6
- package/esm2020/core/datetime/native-date-formats.mjs +2 -2
- package/esm2020/core/error/error-options.mjs +7 -7
- package/esm2020/core/index.mjs +6 -2
- package/esm2020/core/line/line.mjs +10 -10
- package/esm2020/core/option/index.mjs +6 -6
- package/esm2020/core/option/optgroup.mjs +8 -8
- package/esm2020/core/option/option-parent.mjs +1 -1
- package/esm2020/core/option/option.mjs +22 -12
- package/esm2020/core/ripple/index.mjs +5 -5
- package/esm2020/core/ripple/ripple-ref.mjs +1 -1
- package/esm2020/core/ripple/ripple-renderer.mjs +8 -8
- package/esm2020/core/ripple/ripple.mjs +13 -9
- package/esm2020/core/selection/index.mjs +6 -6
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
- package/esm2020/core/testing/optgroup-harness.mjs +2 -3
- package/esm2020/core/testing/option-harness.mjs +2 -2
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +11 -7
- package/esm2020/datepicker/calendar.mjs +46 -32
- package/esm2020/datepicker/date-range-input-parts.mjs +31 -28
- package/esm2020/datepicker/date-range-input.mjs +26 -15
- package/esm2020/datepicker/date-range-picker.mjs +5 -5
- package/esm2020/datepicker/date-range-selection-strategy.mjs +4 -4
- package/esm2020/datepicker/date-selection-model.mjs +15 -14
- package/esm2020/datepicker/datepicker-actions.mjs +13 -13
- package/esm2020/datepicker/datepicker-animations.mjs +6 -6
- package/esm2020/datepicker/datepicker-base.mjs +42 -39
- package/esm2020/datepicker/datepicker-errors.mjs +1 -1
- package/esm2020/datepicker/datepicker-input-base.mjs +23 -18
- package/esm2020/datepicker/datepicker-input.mjs +18 -12
- package/esm2020/datepicker/datepicker-intl.mjs +4 -4
- package/esm2020/datepicker/datepicker-module.mjs +9 -18
- package/esm2020/datepicker/datepicker-toggle.mjs +15 -14
- package/esm2020/datepicker/datepicker.mjs +5 -5
- package/esm2020/datepicker/datepicker_public_index.mjs +5 -0
- package/esm2020/datepicker/index.mjs +6 -2
- package/esm2020/datepicker/month-view.mjs +40 -26
- package/esm2020/datepicker/multi-year-view.mjs +29 -19
- package/esm2020/datepicker/testing/calendar-cell-harness.mjs +1 -1
- package/esm2020/datepicker/testing/calendar-harness.mjs +1 -1
- package/esm2020/datepicker/testing/date-range-input-harness.mjs +4 -5
- package/esm2020/datepicker/testing/datepicker-input-harness-base.mjs +4 -4
- package/esm2020/datepicker/testing/datepicker-input-harness.mjs +1 -1
- package/esm2020/datepicker/testing/datepicker-toggle-harness.mjs +1 -1
- package/esm2020/datepicker/testing/datepicker-trigger-harness-base.mjs +2 -2
- package/esm2020/datepicker/year-view.mjs +32 -19
- package/esm2020/dialog/dialog-animations.mjs +2 -2
- package/esm2020/dialog/dialog-config.mjs +1 -1
- package/esm2020/dialog/dialog-container.mjs +14 -11
- package/esm2020/dialog/dialog-content-directives.mjs +16 -16
- package/esm2020/dialog/dialog-module.mjs +8 -24
- package/esm2020/dialog/dialog-ref.mjs +10 -5
- package/esm2020/dialog/dialog.mjs +25 -22
- package/esm2020/dialog/dialog_public_index.mjs +5 -0
- package/esm2020/dialog/index.mjs +6 -2
- package/esm2020/dialog/testing/dialog-harness.mjs +3 -3
- package/esm2020/divider/divider-module.mjs +5 -5
- package/esm2020/divider/divider.mjs +17 -9
- package/esm2020/divider/divider_public_index.mjs +5 -0
- package/esm2020/divider/index.mjs +6 -2
- package/esm2020/divider/testing/divider-harness-filters.mjs +1 -1
- package/esm2020/divider/testing/divider-harness.mjs +1 -1
- package/esm2020/expansion/accordion-base.mjs +1 -1
- package/esm2020/expansion/accordion.mjs +21 -13
- package/esm2020/expansion/expansion-animations.mjs +2 -2
- package/esm2020/expansion/expansion-module.mjs +5 -5
- package/esm2020/expansion/expansion-panel-content.mjs +5 -5
- package/esm2020/expansion/expansion-panel-header.mjs +21 -29
- package/esm2020/expansion/expansion-panel.mjs +16 -12
- package/esm2020/expansion/expansion_public_index.mjs +5 -0
- package/esm2020/expansion/index.mjs +6 -2
- package/esm2020/expansion/testing/accordion-harness.mjs +1 -1
- package/esm2020/expansion/testing/expansion-harness-filters.mjs +1 -1
- package/esm2020/expansion/testing/expansion-harness.mjs +3 -3
- package/esm2020/form-field/error.mjs +4 -4
- package/esm2020/form-field/form-field-animations.mjs +2 -2
- package/esm2020/form-field/form-field-control.mjs +4 -4
- package/esm2020/form-field/form-field-module.mjs +7 -31
- package/esm2020/form-field/form-field.mjs +47 -35
- package/esm2020/form-field/form-field_public_index.mjs +5 -0
- package/esm2020/form-field/hint.mjs +4 -4
- package/esm2020/form-field/index.mjs +6 -2
- package/esm2020/form-field/label.mjs +5 -5
- package/esm2020/form-field/placeholder.mjs +5 -5
- package/esm2020/form-field/prefix.mjs +4 -4
- package/esm2020/form-field/suffix.mjs +4 -4
- package/esm2020/form-field/testing/form-field-harness.mjs +12 -9
- package/esm2020/grid-list/grid-list-module.mjs +8 -8
- package/esm2020/grid-list/grid-list.mjs +26 -15
- package/esm2020/grid-list/grid-list_public_index.mjs +5 -0
- package/esm2020/grid-list/grid-tile.mjs +32 -24
- package/esm2020/grid-list/index.mjs +6 -2
- package/esm2020/grid-list/testing/grid-list-harness-filters.mjs +1 -1
- package/esm2020/grid-list/testing/grid-list-harness.mjs +9 -5
- package/esm2020/grid-list/testing/grid-tile-harness.mjs +1 -1
- package/esm2020/grid-list/tile-coordinator.mjs +5 -3
- package/esm2020/grid-list/tile-styler.mjs +7 -6
- package/esm2020/icon/fake-svgs.mjs +2 -2
- package/esm2020/icon/icon-module.mjs +5 -5
- package/esm2020/icon/icon-registry.mjs +9 -9
- package/esm2020/icon/icon.mjs +30 -20
- package/esm2020/icon/icon_public_index.mjs +5 -0
- package/esm2020/icon/index.mjs +6 -2
- package/esm2020/icon/public-api.mjs +1 -1
- package/esm2020/icon/testing/fake-icon-registry.mjs +9 -9
- package/esm2020/icon/testing/icon-harness-filters.mjs +1 -1
- package/esm2020/icon/testing/icon-harness.mjs +2 -2
- package/esm2020/icon/testing/index.mjs +6 -2
- package/esm2020/icon/testing/testing_public_index.mjs +5 -0
- package/esm2020/icon/trusted-types.mjs +1 -1
- package/esm2020/input/index.mjs +6 -2
- package/esm2020/input/input-module.mjs +6 -16
- package/esm2020/input/input-value-accessor.mjs +1 -1
- package/esm2020/input/input.mjs +48 -22
- package/esm2020/input/input_public_index.mjs +5 -0
- package/esm2020/input/public-api.mjs +1 -1
- package/esm2020/input/testing/input-harness.mjs +6 -6
- package/esm2020/input/testing/native-option-harness.mjs +3 -3
- package/esm2020/input/testing/native-select-harness.mjs +4 -4
- package/esm2020/list/index.mjs +6 -2
- package/esm2020/list/list-module.mjs +7 -7
- package/esm2020/list/list.mjs +28 -27
- package/esm2020/list/list_public_index.mjs +5 -0
- package/esm2020/list/public-api.mjs +1 -1
- package/esm2020/list/selection-list.mjs +40 -21
- package/esm2020/list/testing/action-list-harness.mjs +1 -1
- package/esm2020/list/testing/list-harness-base.mjs +12 -5
- package/esm2020/list/testing/list-harness.mjs +1 -1
- package/esm2020/list/testing/list-item-harness-base.mjs +5 -7
- package/esm2020/list/testing/nav-list-harness.mjs +2 -3
- package/esm2020/list/testing/selection-list-harness.mjs +9 -9
- package/esm2020/menu/index.mjs +6 -2
- package/esm2020/menu/menu-animations.mjs +7 -7
- package/esm2020/menu/menu-content.mjs +7 -7
- package/esm2020/menu/menu-errors.mjs +1 -1
- package/esm2020/menu/menu-item.mjs +4 -4
- package/esm2020/menu/menu-module.mjs +8 -21
- package/esm2020/menu/menu-panel.mjs +1 -1
- package/esm2020/menu/menu-trigger.mjs +31 -22
- package/esm2020/menu/menu.mjs +33 -30
- package/esm2020/menu/menu_public_index.mjs +5 -0
- package/esm2020/menu/public-api.mjs +2 -2
- package/esm2020/menu/testing/menu-harness.mjs +4 -5
- package/esm2020/paginator/index.mjs +6 -2
- package/esm2020/paginator/paginator-intl.mjs +6 -8
- package/esm2020/paginator/paginator-module.mjs +6 -22
- package/esm2020/paginator/paginator.mjs +30 -19
- package/esm2020/paginator/paginator_public_index.mjs +5 -0
- package/esm2020/paginator/public-api.mjs +1 -1
- package/esm2020/paginator/testing/paginator-harness-filters.mjs +1 -1
- package/esm2020/paginator/testing/paginator-harness.mjs +2 -2
- package/esm2020/progress-bar/index.mjs +6 -2
- package/esm2020/progress-bar/progress-bar-module.mjs +5 -5
- package/esm2020/progress-bar/progress-bar.mjs +23 -18
- package/esm2020/progress-bar/progress-bar_public_index.mjs +5 -0
- package/esm2020/progress-bar/public-api.mjs +1 -1
- package/esm2020/progress-bar/testing/progress-bar-harness.mjs +1 -1
- package/esm2020/progress-spinner/index.mjs +6 -2
- package/esm2020/progress-spinner/progress-spinner-module.mjs +7 -17
- package/esm2020/progress-spinner/progress-spinner.mjs +16 -14
- package/esm2020/progress-spinner/progress-spinner_public_index.mjs +5 -0
- package/esm2020/progress-spinner/testing/progress-spinner-harness.mjs +2 -2
- package/esm2020/radio/index.mjs +6 -2
- package/esm2020/radio/public-api.mjs +1 -1
- package/esm2020/radio/radio-module.mjs +5 -5
- package/esm2020/radio/radio.mjs +52 -36
- package/esm2020/radio/radio_public_index.mjs +5 -0
- package/esm2020/radio/testing/radio-harness.mjs +3 -4
- package/esm2020/select/index.mjs +6 -2
- package/esm2020/select/public-api.mjs +2 -2
- package/esm2020/select/select-animations.mjs +7 -7
- package/esm2020/select/select-module.mjs +8 -21
- package/esm2020/select/select.mjs +70 -53
- package/esm2020/select/select_public_index.mjs +5 -0
- package/esm2020/select/testing/select-harness.mjs +9 -6
- package/esm2020/sidenav/drawer-animations.mjs +3 -3
- package/esm2020/sidenav/drawer.mjs +79 -43
- package/esm2020/sidenav/index.mjs +6 -2
- package/esm2020/sidenav/sidenav-module.mjs +7 -20
- package/esm2020/sidenav/sidenav.mjs +39 -23
- package/esm2020/sidenav/sidenav_public_index.mjs +5 -0
- package/esm2020/sidenav/testing/drawer-container-harness.mjs +1 -1
- package/esm2020/sidenav/testing/drawer-content-harness.mjs +1 -1
- package/esm2020/sidenav/testing/drawer-harness.mjs +2 -3
- package/esm2020/sidenav/testing/sidenav-container-harness.mjs +1 -1
- package/esm2020/sidenav/testing/sidenav-content-harness.mjs +1 -1
- package/esm2020/sidenav/testing/sidenav-harness.mjs +2 -3
- package/esm2020/slide-toggle/index.mjs +6 -2
- package/esm2020/slide-toggle/slide-toggle-config.mjs +2 -2
- package/esm2020/slide-toggle/slide-toggle-module.mjs +11 -16
- package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +7 -7
- package/esm2020/slide-toggle/slide-toggle.mjs +19 -13
- package/esm2020/slide-toggle/slide-toggle_public_index.mjs +5 -0
- package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +3 -3
- package/esm2020/slider/index.mjs +6 -2
- package/esm2020/slider/public-api.mjs +1 -1
- package/esm2020/slider/slider-module.mjs +5 -5
- package/esm2020/slider/slider.mjs +52 -33
- package/esm2020/slider/slider_public_index.mjs +5 -0
- package/esm2020/slider/testing/slider-harness.mjs +6 -2
- package/esm2020/snack-bar/index.mjs +6 -2
- package/esm2020/snack-bar/simple-snack-bar.mjs +4 -4
- package/esm2020/snack-bar/snack-bar-animations.mjs +3 -3
- package/esm2020/snack-bar/snack-bar-container.mjs +5 -5
- package/esm2020/snack-bar/snack-bar-module.mjs +6 -22
- package/esm2020/snack-bar/snack-bar-ref.mjs +1 -1
- package/esm2020/snack-bar/snack-bar.mjs +14 -11
- package/esm2020/snack-bar/snack-bar_public_index.mjs +5 -0
- package/esm2020/snack-bar/testing/snack-bar-harness.mjs +5 -6
- package/esm2020/sort/index.mjs +6 -2
- package/esm2020/sort/sort-animations.mjs +11 -26
- package/esm2020/sort/sort-header-intl.mjs +5 -5
- package/esm2020/sort/sort-header.mjs +32 -29
- package/esm2020/sort/sort-module.mjs +6 -6
- package/esm2020/sort/sort.mjs +19 -12
- package/esm2020/sort/sort_public_index.mjs +5 -0
- package/esm2020/sort/testing/sort-harness-filters.mjs +1 -1
- package/esm2020/sort/testing/sort-harness.mjs +1 -1
- package/esm2020/sort/testing/sort-header-harness.mjs +1 -1
- package/esm2020/stepper/index.mjs +6 -2
- package/esm2020/stepper/step-content.mjs +5 -5
- package/esm2020/stepper/step-header.mjs +5 -5
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-animations.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +9 -9
- package/esm2020/stepper/stepper-icon.mjs +4 -4
- package/esm2020/stepper/stepper-intl.mjs +5 -5
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +25 -21
- package/esm2020/stepper/stepper_public_index.mjs +5 -0
- package/esm2020/stepper/testing/step-harness-filters.mjs +1 -1
- package/esm2020/stepper/testing/step-harness.mjs +1 -1
- package/esm2020/stepper/testing/stepper-button-harnesses.mjs +3 -5
- package/esm2020/stepper/testing/stepper-harness.mjs +5 -5
- package/esm2020/table/cell.mjs +33 -29
- package/esm2020/table/index.mjs +6 -2
- package/esm2020/table/row.mjs +23 -23
- package/esm2020/table/table-data-source.mjs +30 -21
- package/esm2020/table/table-module.mjs +8 -15
- package/esm2020/table/table.mjs +10 -14
- package/esm2020/table/table_public_index.mjs +5 -0
- package/esm2020/table/testing/cell-harness.mjs +6 -3
- package/esm2020/table/testing/row-harness.mjs +2 -2
- package/esm2020/table/testing/table-harness-filters.mjs +1 -1
- package/esm2020/table/testing/table-harness.mjs +3 -3
- package/esm2020/table/text-column.mjs +4 -4
- package/esm2020/tabs/index.mjs +6 -2
- package/esm2020/tabs/ink-bar.mjs +5 -5
- package/esm2020/tabs/paginated-tab-header.mjs +19 -12
- package/esm2020/tabs/public-api.mjs +2 -2
- package/esm2020/tabs/tab-body.mjs +16 -16
- package/esm2020/tabs/tab-content.mjs +5 -6
- package/esm2020/tabs/tab-group.mjs +48 -33
- package/esm2020/tabs/tab-header.mjs +13 -9
- package/esm2020/tabs/tab-label-wrapper.mjs +5 -5
- package/esm2020/tabs/tab-label.mjs +4 -4
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +31 -21
- package/esm2020/tabs/tab.mjs +10 -6
- package/esm2020/tabs/tabs-animations.mjs +5 -5
- package/esm2020/tabs/tabs-module.mjs +5 -5
- package/esm2020/tabs/tabs_public_index.mjs +5 -0
- package/esm2020/tabs/testing/tab-group-harness.mjs +2 -3
- package/esm2020/tabs/testing/tab-harness.mjs +2 -3
- package/esm2020/tabs/testing/tab-link-harness.mjs +2 -3
- package/esm2020/toolbar/index.mjs +6 -2
- package/esm2020/toolbar/public-api.mjs +1 -1
- package/esm2020/toolbar/testing/toolbar-harness.mjs +3 -4
- package/esm2020/toolbar/toolbar-module.mjs +5 -5
- package/esm2020/toolbar/toolbar.mjs +7 -7
- package/esm2020/toolbar/toolbar_public_index.mjs +5 -0
- package/esm2020/tooltip/index.mjs +6 -2
- package/esm2020/tooltip/tooltip-animations.mjs +3 -3
- package/esm2020/tooltip/tooltip-module.mjs +7 -20
- package/esm2020/tooltip/tooltip.mjs +67 -42
- package/esm2020/tooltip/tooltip_public_index.mjs +5 -0
- package/esm2020/tree/data-source/flat-data-source.mjs +4 -2
- package/esm2020/tree/data-source/nested-data-source.mjs +8 -5
- package/esm2020/tree/index.mjs +6 -2
- package/esm2020/tree/node.mjs +26 -22
- package/esm2020/tree/outlet.mjs +14 -10
- package/esm2020/tree/padding.mjs +17 -9
- package/esm2020/tree/public-api.mjs +1 -1
- package/esm2020/tree/testing/node-harness.mjs +1 -1
- package/esm2020/tree/testing/tree-harness-filters.mjs +1 -1
- package/esm2020/tree/testing/tree-harness.mjs +2 -2
- package/esm2020/tree/toggle.mjs +8 -6
- package/esm2020/tree/tree-module.mjs +6 -6
- package/esm2020/tree/tree.mjs +4 -4
- package/esm2020/tree/tree_public_index.mjs +5 -0
- package/expansion/expansion_public_index.d.ts +4 -0
- package/expansion/index.d.ts +5 -1
- package/expansion/package.json +2 -2
- package/fesm2015/autocomplete/testing.mjs +2 -3
- package/fesm2015/autocomplete/testing.mjs.map +1 -1
- package/fesm2015/autocomplete.mjs +67 -67
- package/fesm2015/autocomplete.mjs.map +1 -1
- package/fesm2015/badge/testing.mjs +1 -2
- package/fesm2015/badge/testing.mjs.map +1 -1
- package/fesm2015/badge.mjs +28 -19
- package/fesm2015/badge.mjs.map +1 -1
- package/fesm2015/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2015/bottom-sheet.mjs +41 -34
- package/fesm2015/bottom-sheet.mjs.map +1 -1
- package/fesm2015/button/testing.mjs +1 -2
- package/fesm2015/button/testing.mjs.map +1 -1
- package/fesm2015/button-toggle/testing.mjs.map +1 -1
- package/fesm2015/button-toggle.mjs +41 -21
- package/fesm2015/button-toggle.mjs.map +1 -1
- package/fesm2015/button.mjs +21 -30
- package/fesm2015/button.mjs.map +1 -1
- package/fesm2015/card/testing.mjs.map +1 -1
- package/fesm2015/card.mjs +94 -64
- package/fesm2015/card.mjs.map +1 -1
- package/fesm2015/checkbox/testing.mjs +2 -2
- package/fesm2015/checkbox/testing.mjs.map +1 -1
- package/fesm2015/checkbox.mjs +56 -36
- package/fesm2015/checkbox.mjs.map +1 -1
- package/fesm2015/chips/testing.mjs +2 -2
- package/fesm2015/chips/testing.mjs.map +1 -1
- package/fesm2015/chips.mjs +107 -65
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core/testing.mjs +1 -2
- package/fesm2015/core/testing.mjs.map +1 -1
- package/fesm2015/core.mjs +134 -99
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker/testing.mjs +5 -6
- package/fesm2015/datepicker/testing.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +355 -271
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/dialog/testing.mjs +2 -2
- package/fesm2015/dialog/testing.mjs.map +1 -1
- package/fesm2015/dialog.mjs +75 -72
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/divider/testing.mjs.map +1 -1
- package/fesm2015/divider.mjs +28 -12
- package/fesm2015/divider.mjs.map +1 -1
- package/fesm2015/expansion/testing.mjs.map +1 -1
- package/fesm2015/expansion.mjs +71 -59
- package/fesm2015/expansion.mjs.map +1 -1
- package/fesm2015/form-field/testing.mjs +5 -2
- package/fesm2015/form-field/testing.mjs.map +1 -1
- package/fesm2015/form-field.mjs +83 -87
- package/fesm2015/form-field.mjs.map +1 -1
- package/fesm2015/grid-list/testing.mjs +8 -4
- package/fesm2015/grid-list/testing.mjs.map +1 -1
- package/fesm2015/grid-list.mjs +80 -50
- package/fesm2015/grid-list.mjs.map +1 -1
- package/fesm2015/icon/testing.mjs +16 -8
- package/fesm2015/icon/testing.mjs.map +1 -1
- package/fesm2015/icon.mjs +49 -31
- package/fesm2015/icon.mjs.map +1 -1
- package/fesm2015/input/testing.mjs +8 -8
- package/fesm2015/input/testing.mjs.map +1 -1
- package/fesm2015/input.mjs +59 -35
- package/fesm2015/input.mjs.map +1 -1
- package/fesm2015/list/testing.mjs +17 -13
- package/fesm2015/list/testing.mjs.map +1 -1
- package/fesm2015/list.mjs +77 -50
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/menu/testing.mjs +1 -2
- package/fesm2015/menu/testing.mjs.map +1 -1
- package/fesm2015/menu.mjs +92 -85
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/paginator/testing.mjs +1 -1
- package/fesm2015/paginator/testing.mjs.map +1 -1
- package/fesm2015/paginator.mjs +46 -45
- package/fesm2015/paginator.mjs.map +1 -1
- package/fesm2015/progress-bar/testing.mjs.map +1 -1
- package/fesm2015/progress-bar.mjs +34 -21
- package/fesm2015/progress-bar.mjs.map +1 -1
- package/fesm2015/progress-spinner/testing.mjs +1 -1
- package/fesm2015/progress-spinner/testing.mjs.map +1 -1
- package/fesm2015/progress-spinner.mjs +29 -29
- package/fesm2015/progress-spinner.mjs.map +1 -1
- package/fesm2015/radio/testing.mjs +1 -2
- package/fesm2015/radio/testing.mjs.map +1 -1
- package/fesm2015/radio.mjs +63 -39
- package/fesm2015/radio.mjs.map +1 -1
- package/fesm2015/select/testing.mjs +4 -1
- package/fesm2015/select/testing.mjs.map +1 -1
- package/fesm2015/select.mjs +89 -77
- package/fesm2015/select.mjs.map +1 -1
- package/fesm2015/sidenav/testing.mjs +2 -4
- package/fesm2015/sidenav/testing.mjs.map +1 -1
- package/fesm2015/sidenav.mjs +130 -83
- package/fesm2015/sidenav.mjs.map +1 -1
- package/fesm2015/slide-toggle/testing.mjs +2 -2
- package/fesm2015/slide-toggle/testing.mjs.map +1 -1
- package/fesm2015/slide-toggle.mjs +40 -31
- package/fesm2015/slide-toggle.mjs.map +1 -1
- package/fesm2015/slider/testing.mjs +5 -1
- package/fesm2015/slider/testing.mjs.map +1 -1
- package/fesm2015/slider.mjs +62 -35
- package/fesm2015/slider.mjs.map +1 -1
- package/fesm2015/snack-bar/testing.mjs +1 -2
- package/fesm2015/snack-bar/testing.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +35 -40
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2015/sort/testing.mjs.map +1 -1
- package/fesm2015/sort.mjs +74 -70
- package/fesm2015/sort.mjs.map +1 -1
- package/fesm2015/stepper/testing.mjs +6 -8
- package/fesm2015/stepper/testing.mjs.map +1 -1
- package/fesm2015/stepper.mjs +65 -53
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table/testing.mjs +7 -4
- package/fesm2015/table/testing.mjs.map +1 -1
- package/fesm2015/table.mjs +106 -96
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/tabs/testing.mjs +3 -6
- package/fesm2015/tabs/testing.mjs.map +1 -1
- package/fesm2015/tabs.mjs +161 -114
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2015/toolbar/testing.mjs +2 -3
- package/fesm2015/toolbar/testing.mjs.map +1 -1
- package/fesm2015/toolbar.mjs +18 -10
- package/fesm2015/toolbar.mjs.map +1 -1
- package/fesm2015/tooltip.mjs +82 -62
- package/fesm2015/tooltip.mjs.map +1 -1
- package/fesm2015/tree/testing.mjs +1 -1
- package/fesm2015/tree/testing.mjs.map +1 -1
- package/fesm2015/tree.mjs +85 -54
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/autocomplete/testing.mjs +5 -6
- package/fesm2020/autocomplete/testing.mjs.map +1 -1
- package/fesm2020/autocomplete.mjs +67 -67
- package/fesm2020/autocomplete.mjs.map +1 -1
- package/fesm2020/badge/testing.mjs +1 -2
- package/fesm2020/badge/testing.mjs.map +1 -1
- package/fesm2020/badge.mjs +28 -19
- package/fesm2020/badge.mjs.map +1 -1
- package/fesm2020/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2020/bottom-sheet.mjs +41 -34
- package/fesm2020/bottom-sheet.mjs.map +1 -1
- package/fesm2020/button/testing.mjs +1 -2
- package/fesm2020/button/testing.mjs.map +1 -1
- package/fesm2020/button-toggle/testing.mjs +3 -3
- package/fesm2020/button-toggle/testing.mjs.map +1 -1
- package/fesm2020/button-toggle.mjs +41 -21
- package/fesm2020/button-toggle.mjs.map +1 -1
- package/fesm2020/button.mjs +21 -30
- package/fesm2020/button.mjs.map +1 -1
- package/fesm2020/card/testing.mjs.map +1 -1
- package/fesm2020/card.mjs +94 -64
- package/fesm2020/card.mjs.map +1 -1
- package/fesm2020/checkbox/testing.mjs +2 -2
- package/fesm2020/checkbox/testing.mjs.map +1 -1
- package/fesm2020/checkbox.mjs +56 -36
- package/fesm2020/checkbox.mjs.map +1 -1
- package/fesm2020/chips/testing.mjs +6 -6
- package/fesm2020/chips/testing.mjs.map +1 -1
- package/fesm2020/chips.mjs +107 -65
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core/testing.mjs +2 -3
- package/fesm2020/core/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +135 -100
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker/testing.mjs +6 -7
- package/fesm2020/datepicker/testing.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +355 -271
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/dialog/testing.mjs +2 -2
- package/fesm2020/dialog/testing.mjs.map +1 -1
- package/fesm2020/dialog.mjs +75 -72
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/divider/testing.mjs.map +1 -1
- package/fesm2020/divider.mjs +28 -12
- package/fesm2020/divider.mjs.map +1 -1
- package/fesm2020/expansion/testing.mjs +2 -2
- package/fesm2020/expansion/testing.mjs.map +1 -1
- package/fesm2020/expansion.mjs +71 -59
- package/fesm2020/expansion.mjs.map +1 -1
- package/fesm2020/form-field/testing.mjs +10 -7
- package/fesm2020/form-field/testing.mjs.map +1 -1
- package/fesm2020/form-field.mjs +83 -87
- package/fesm2020/form-field.mjs.map +1 -1
- package/fesm2020/grid-list/testing.mjs +8 -4
- package/fesm2020/grid-list/testing.mjs.map +1 -1
- package/fesm2020/grid-list.mjs +80 -50
- package/fesm2020/grid-list.mjs.map +1 -1
- package/fesm2020/icon/testing.mjs +17 -9
- package/fesm2020/icon/testing.mjs.map +1 -1
- package/fesm2020/icon.mjs +49 -31
- package/fesm2020/icon.mjs.map +1 -1
- package/fesm2020/input/testing.mjs +10 -10
- package/fesm2020/input/testing.mjs.map +1 -1
- package/fesm2020/input.mjs +59 -35
- package/fesm2020/input.mjs.map +1 -1
- package/fesm2020/list/testing.mjs +23 -19
- package/fesm2020/list/testing.mjs.map +1 -1
- package/fesm2020/list.mjs +79 -51
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/menu/testing.mjs +3 -4
- package/fesm2020/menu/testing.mjs.map +1 -1
- package/fesm2020/menu.mjs +92 -85
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/paginator/testing.mjs +1 -1
- package/fesm2020/paginator/testing.mjs.map +1 -1
- package/fesm2020/paginator.mjs +46 -45
- package/fesm2020/paginator.mjs.map +1 -1
- package/fesm2020/progress-bar/testing.mjs.map +1 -1
- package/fesm2020/progress-bar.mjs +34 -21
- package/fesm2020/progress-bar.mjs.map +1 -1
- package/fesm2020/progress-spinner/testing.mjs +1 -1
- package/fesm2020/progress-spinner/testing.mjs.map +1 -1
- package/fesm2020/progress-spinner.mjs +29 -29
- package/fesm2020/progress-spinner.mjs.map +1 -1
- package/fesm2020/radio/testing.mjs +2 -3
- package/fesm2020/radio/testing.mjs.map +1 -1
- package/fesm2020/radio.mjs +63 -39
- package/fesm2020/radio.mjs.map +1 -1
- package/fesm2020/select/testing.mjs +8 -5
- package/fesm2020/select/testing.mjs.map +1 -1
- package/fesm2020/select.mjs +89 -77
- package/fesm2020/select.mjs.map +1 -1
- package/fesm2020/sidenav/testing.mjs +2 -4
- package/fesm2020/sidenav/testing.mjs.map +1 -1
- package/fesm2020/sidenav.mjs +130 -83
- package/fesm2020/sidenav.mjs.map +1 -1
- package/fesm2020/slide-toggle/testing.mjs +2 -2
- package/fesm2020/slide-toggle/testing.mjs.map +1 -1
- package/fesm2020/slide-toggle.mjs +40 -31
- package/fesm2020/slide-toggle.mjs.map +1 -1
- package/fesm2020/slider/testing.mjs +5 -1
- package/fesm2020/slider/testing.mjs.map +1 -1
- package/fesm2020/slider.mjs +62 -35
- package/fesm2020/slider.mjs.map +1 -1
- package/fesm2020/snack-bar/testing.mjs +4 -5
- package/fesm2020/snack-bar/testing.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +35 -40
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/fesm2020/sort/testing.mjs.map +1 -1
- package/fesm2020/sort.mjs +75 -72
- package/fesm2020/sort.mjs.map +1 -1
- package/fesm2020/stepper/testing.mjs +6 -8
- package/fesm2020/stepper/testing.mjs.map +1 -1
- package/fesm2020/stepper.mjs +65 -53
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table/testing.mjs +7 -4
- package/fesm2020/table/testing.mjs.map +1 -1
- package/fesm2020/table.mjs +106 -96
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/tabs/testing.mjs +3 -6
- package/fesm2020/tabs/testing.mjs.map +1 -1
- package/fesm2020/tabs.mjs +161 -114
- package/fesm2020/tabs.mjs.map +1 -1
- package/fesm2020/toolbar/testing.mjs +2 -3
- package/fesm2020/toolbar/testing.mjs.map +1 -1
- package/fesm2020/toolbar.mjs +18 -10
- package/fesm2020/toolbar.mjs.map +1 -1
- package/fesm2020/tooltip.mjs +82 -62
- package/fesm2020/tooltip.mjs.map +1 -1
- package/fesm2020/tree/testing.mjs +1 -1
- package/fesm2020/tree/testing.mjs.map +1 -1
- package/fesm2020/tree.mjs +85 -54
- package/fesm2020/tree.mjs.map +1 -1
- package/form-field/form-field_public_index.d.ts +4 -0
- package/form-field/index.d.ts +5 -1
- package/form-field/package.json +2 -2
- package/grid-list/grid-list_public_index.d.ts +4 -0
- package/grid-list/index.d.ts +5 -1
- package/grid-list/package.json +2 -2
- package/grid-list/testing/grid-list-harness.d.ts +1 -1
- package/icon/icon-registry.d.ts +1 -1
- package/icon/icon_public_index.d.ts +4 -0
- package/icon/index.d.ts +5 -1
- package/icon/package.json +2 -2
- package/icon/testing/index.d.ts +5 -1
- package/icon/testing/package.json +2 -2
- package/icon/testing/testing_public_index.d.ts +4 -0
- package/input/_input-theme.scss +8 -6
- package/input/index.d.ts +5 -1
- package/input/input.d.ts +2 -0
- package/input/input_public_index.d.ts +4 -0
- package/input/package.json +2 -2
- package/list/index.d.ts +5 -1
- package/list/list_public_index.d.ts +4 -0
- package/list/package.json +2 -2
- package/list/testing/list-harness-base.d.ts +2 -2
- package/menu/index.d.ts +5 -1
- package/menu/menu_public_index.d.ts +4 -0
- package/menu/package.json +2 -2
- package/menu/public-api.d.ts +1 -1
- package/menu/testing/menu-harness.d.ts +2 -2
- package/package.json +79 -79
- package/paginator/index.d.ts +5 -1
- package/paginator/package.json +2 -2
- package/paginator/paginator_public_index.d.ts +4 -0
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/index.d.ts +5 -1
- package/progress-bar/package.json +2 -2
- package/progress-bar/progress-bar_public_index.d.ts +4 -0
- package/progress-spinner/index.d.ts +5 -1
- package/progress-spinner/package.json +2 -2
- package/progress-spinner/progress-spinner_public_index.d.ts +4 -0
- package/radio/index.d.ts +5 -1
- package/radio/package.json +2 -2
- package/radio/radio_public_index.d.ts +4 -0
- package/radio/testing/radio-harness.d.ts +2 -2
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/index.mjs +3 -3
- package/schematics/ng-add/package-config.js +4 -2
- package/schematics/ng-add/package-config.mjs +4 -2
- package/schematics/ng-add/setup-project.js +2 -3
- package/schematics/ng-add/setup-project.mjs +2 -3
- package/schematics/ng-add/theming/create-custom-theme.js +1 -1
- package/schematics/ng-add/theming/create-custom-theme.mjs +1 -1
- package/schematics/ng-add/theming/theming.js +6 -6
- package/schematics/ng-add/theming/theming.mjs +6 -6
- package/schematics/ng-generate/address-form/index.js +2 -2
- package/schematics/ng-generate/address-form/index.mjs +2 -2
- package/schematics/ng-generate/dashboard/index.js +2 -2
- package/schematics/ng-generate/dashboard/index.mjs +2 -2
- package/schematics/ng-generate/navigation/index.js +2 -2
- package/schematics/ng-generate/navigation/index.mjs +2 -2
- package/schematics/ng-generate/table/index.js +3 -3
- package/schematics/ng-generate/table/index.mjs +3 -3
- package/schematics/ng-generate/tree/index.js +2 -2
- package/schematics/ng-generate/tree/index.mjs +2 -2
- package/schematics/ng-update/data/class-names.js +6 -8
- package/schematics/ng-update/data/class-names.mjs +6 -8
- package/schematics/ng-update/data/constructor-checks.js +33 -32
- package/schematics/ng-update/data/constructor-checks.mjs +33 -32
- package/schematics/ng-update/data/css-selectors.js +11 -9
- package/schematics/ng-update/data/css-selectors.mjs +11 -9
- package/schematics/ng-update/data/element-selectors.js +6 -4
- package/schematics/ng-update/data/element-selectors.mjs +6 -4
- package/schematics/ng-update/data/input-names.js +31 -23
- package/schematics/ng-update/data/input-names.mjs +31 -23
- package/schematics/ng-update/data/method-call-checks.js +10 -6
- package/schematics/ng-update/data/method-call-checks.mjs +10 -6
- package/schematics/ng-update/data/property-names.js +62 -50
- package/schematics/ng-update/data/property-names.mjs +62 -50
- package/schematics/ng-update/data/symbol-removal.js +6 -6
- package/schematics/ng-update/data/symbol-removal.mjs +6 -6
- package/schematics/ng-update/index.js +1 -1
- package/schematics/ng-update/index.mjs +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module.js +5 -3
- package/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module.mjs +5 -3
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.d.ts +4 -2
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +68 -33
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +68 -33
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-template-check.js +38 -7
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-template-check.mjs +38 -7
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +28 -14
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +28 -14
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-array-element.js +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-array-element.mjs +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-element-from-html.js +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-element-from-html.mjs +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js +3 -2
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.mjs +3 -2
- package/schematics/ng-update/migrations/misc-checks/misc-class-names.js +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-class-names.mjs +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-imports.js +6 -3
- package/schematics/ng-update/migrations/misc-checks/misc-imports.mjs +6 -3
- package/schematics/ng-update/migrations/misc-checks/misc-property-names.js +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-property-names.mjs +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-template.js +7 -13
- package/schematics/ng-update/migrations/misc-checks/misc-template.mjs +7 -13
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +1 -1
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.mjs +1 -1
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +3 -2
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.mjs +3 -2
- package/schematics/ng-update/migrations/theming-api-v12/config.js +59 -10
- package/schematics/ng-update/migrations/theming-api-v12/config.mjs +59 -10
- package/schematics/ng-update/migrations/theming-api-v12/migration.js +19 -11
- package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +19 -11
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.d.ts +2 -2
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js +7 -4
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.mjs +7 -4
- package/schematics/ng-update/typescript/module-specifiers.js +3 -3
- package/schematics/ng-update/typescript/module-specifiers.mjs +3 -3
- package/select/index.d.ts +5 -1
- package/select/package.json +2 -2
- package/select/public-api.d.ts +1 -1
- package/select/select_public_index.d.ts +4 -0
- package/select/testing/select-harness.d.ts +4 -4
- package/sidenav/index.d.ts +5 -1
- package/sidenav/package.json +2 -2
- package/sidenav/sidenav_public_index.d.ts +4 -0
- package/slide-toggle/index.d.ts +5 -1
- package/slide-toggle/package.json +2 -2
- package/slide-toggle/slide-toggle_public_index.d.ts +4 -0
- package/slider/index.d.ts +5 -1
- package/slider/package.json +2 -2
- package/slider/slider_public_index.d.ts +4 -0
- package/snack-bar/index.d.ts +5 -1
- package/snack-bar/package.json +2 -2
- package/snack-bar/snack-bar_public_index.d.ts +4 -0
- package/sort/index.d.ts +5 -1
- package/sort/package.json +2 -2
- package/sort/sort_public_index.d.ts +4 -0
- package/stepper/index.d.ts +5 -1
- package/stepper/package.json +2 -2
- package/stepper/stepper_public_index.d.ts +4 -0
- package/table/index.d.ts +5 -1
- package/table/package.json +2 -2
- package/table/table-data-source.d.ts +3 -3
- package/table/table_public_index.d.ts +4 -0
- package/table/testing/row-harness.d.ts +2 -2
- package/table/testing/table-harness.d.ts +4 -4
- package/tabs/_tabs-theme.scss +6 -2
- package/tabs/index.d.ts +5 -1
- package/tabs/package.json +2 -2
- package/tabs/public-api.d.ts +1 -1
- package/tabs/tab-content.d.ts +2 -3
- package/tabs/tabs_public_index.d.ts +4 -0
- package/toolbar/index.d.ts +5 -1
- package/toolbar/package.json +2 -2
- package/toolbar/toolbar_public_index.d.ts +4 -0
- package/tooltip/index.d.ts +5 -1
- package/tooltip/package.json +2 -2
- package/tooltip/tooltip_public_index.d.ts +4 -0
- package/tree/index.d.ts +5 -1
- package/tree/package.json +2 -2
- package/tree/tree_public_index.d.ts +4 -0
package/fesm2015/datepicker.mjs
CHANGED
|
@@ -146,7 +146,7 @@ class MatCalendarBody {
|
|
|
146
146
|
this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - rows[0].length : 0;
|
|
147
147
|
}
|
|
148
148
|
if (changes['cellAspectRatio'] || columnChanges || !this._cellPadding) {
|
|
149
|
-
this._cellPadding = `${50 * this.cellAspectRatio / numCols}%`;
|
|
149
|
+
this._cellPadding = `${(50 * this.cellAspectRatio) / numCols}%`;
|
|
150
150
|
}
|
|
151
151
|
if (columnChanges || !this._cellWidth) {
|
|
152
152
|
this._cellWidth = `${100 / numCols}%`;
|
|
@@ -276,9 +276,9 @@ class MatCalendarBody {
|
|
|
276
276
|
return null;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
MatCalendarBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
280
|
-
MatCalendarBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: { label: "label", rows: "rows", todayValue: "todayValue", startValue: "startValue", endValue: "endValue", labelMinRequiredCells: "labelMinRequiredCells", numCols: "numCols", activeCell: "activeCell", isRange: "isRange", cellAspectRatio: "cellAspectRatio", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd", previewStart: "previewStart", previewEnd: "previewEnd" }, outputs: { selectedValueChange: "selectedValueChange", previewChange: "previewChange" }, host: { classAttribute: "mat-calendar-body" }, exportAs: ["matCalendarBody"], usesOnChanges: true, ngImport: i0, template: "<!--\n If there's not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\n-->\n<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\">\n <td class=\"mat-calendar-body-label\"\n [attr.colspan]=\"numCols\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{label}}\n </td>\n</tr>\n\n<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\">\n <!--\n This cell is purely decorative, but we can't put `aria-hidden` or `role=\"presentation\"` on it,\n because it throws off the week days for the rest of the row on NVDA. The aspect ratio of the\n table cells is maintained by setting the top and bottom padding as a percentage of the width\n (a variant of the trick described here: https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\n class=\"mat-calendar-body-label\"\n [attr.colspan]=\"_firstRowOffset\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\n </td>\n <td *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mat-calendar-body-cell\"\n [ngClass]=\"item.cssClasses\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [class.mat-calendar-body-disabled]=\"!item.enabled\"\n [class.mat-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mat-calendar-body-range-start]=\"_isRangeStart(item.compareValue)\"\n [class.mat-calendar-body-range-end]=\"_isRangeEnd(item.compareValue)\"\n [class.mat-calendar-body-in-range]=\"_isInRange(item.compareValue)\"\n [class.mat-calendar-body-comparison-bridge-start]=\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-bridge-end]=\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-start]=\"_isComparisonStart(item.compareValue)\"\n [class.mat-calendar-body-comparison-end]=\"_isComparisonEnd(item.compareValue)\"\n [class.mat-calendar-body-in-comparison-range]=\"_isInComparisonRange(item.compareValue)\"\n [class.mat-calendar-body-preview-start]=\"_isPreviewStart(item.compareValue)\"\n [class.mat-calendar-body-preview-end]=\"_isPreviewEnd(item.compareValue)\"\n [class.mat-calendar-body-in-preview]=\"_isInPreview(item.compareValue)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n [attr.aria-selected]=\"_isSelected(item.compareValue)\"\n (click)=\"_cellClicked(item, $event)\"\n [style.width]=\"_cellWidth\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n <div class=\"mat-calendar-body-cell-content mat-focus-indicator\"\n [class.mat-calendar-body-selected]=\"_isSelected(item.compareValue)\"\n [class.mat-calendar-body-comparison-identical]=\"_isComparisonIdentical(item.compareValue)\"\n [class.mat-calendar-body-today]=\"todayValue === item.compareValue\">\n {{item.displayValue}}\n </div>\n <div class=\"mat-calendar-body-cell-preview\"></div>\n </td>\n</tr>\n", styles: [".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:\"\";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
279
|
+
MatCalendarBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatCalendarBody, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
280
|
+
MatCalendarBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: { label: "label", rows: "rows", todayValue: "todayValue", startValue: "startValue", endValue: "endValue", labelMinRequiredCells: "labelMinRequiredCells", numCols: "numCols", activeCell: "activeCell", isRange: "isRange", cellAspectRatio: "cellAspectRatio", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd", previewStart: "previewStart", previewEnd: "previewEnd" }, outputs: { selectedValueChange: "selectedValueChange", previewChange: "previewChange" }, host: { classAttribute: "mat-calendar-body" }, exportAs: ["matCalendarBody"], usesOnChanges: true, ngImport: i0, template: "<!--\n If there's not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\n-->\n<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\">\n <td class=\"mat-calendar-body-label\"\n [attr.colspan]=\"numCols\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{label}}\n </td>\n</tr>\n\n<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\">\n <!--\n This cell is purely decorative, but we can't put `aria-hidden` or `role=\"presentation\"` on it,\n because it throws off the week days for the rest of the row on NVDA. The aspect ratio of the\n table cells is maintained by setting the top and bottom padding as a percentage of the width\n (a variant of the trick described here: https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\n class=\"mat-calendar-body-label\"\n [attr.colspan]=\"_firstRowOffset\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\n </td>\n <td *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mat-calendar-body-cell\"\n [ngClass]=\"item.cssClasses\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [class.mat-calendar-body-disabled]=\"!item.enabled\"\n [class.mat-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mat-calendar-body-range-start]=\"_isRangeStart(item.compareValue)\"\n [class.mat-calendar-body-range-end]=\"_isRangeEnd(item.compareValue)\"\n [class.mat-calendar-body-in-range]=\"_isInRange(item.compareValue)\"\n [class.mat-calendar-body-comparison-bridge-start]=\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-bridge-end]=\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-start]=\"_isComparisonStart(item.compareValue)\"\n [class.mat-calendar-body-comparison-end]=\"_isComparisonEnd(item.compareValue)\"\n [class.mat-calendar-body-in-comparison-range]=\"_isInComparisonRange(item.compareValue)\"\n [class.mat-calendar-body-preview-start]=\"_isPreviewStart(item.compareValue)\"\n [class.mat-calendar-body-preview-end]=\"_isPreviewEnd(item.compareValue)\"\n [class.mat-calendar-body-in-preview]=\"_isInPreview(item.compareValue)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n [attr.aria-selected]=\"_isSelected(item.compareValue)\"\n (click)=\"_cellClicked(item, $event)\"\n [style.width]=\"_cellWidth\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n <div class=\"mat-calendar-body-cell-content mat-focus-indicator\"\n [class.mat-calendar-body-selected]=\"_isSelected(item.compareValue)\"\n [class.mat-calendar-body-comparison-identical]=\"_isComparisonIdentical(item.compareValue)\"\n [class.mat-calendar-body-today]=\"todayValue === item.compareValue\">\n {{item.displayValue}}\n </div>\n <div class=\"mat-calendar-body-cell-preview\"></div>\n </td>\n</tr>\n", styles: [".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:\"\";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatCalendarBody, decorators: [{
|
|
282
282
|
type: Component,
|
|
283
283
|
args: [{ selector: '[mat-calendar-body]', host: {
|
|
284
284
|
'class': 'mat-calendar-body',
|
|
@@ -330,8 +330,12 @@ function isEnd(value, start, end) {
|
|
|
330
330
|
}
|
|
331
331
|
/** Checks whether a value is inside of a range. */
|
|
332
332
|
function isInRange(value, start, end, rangeEnabled) {
|
|
333
|
-
return rangeEnabled &&
|
|
334
|
-
|
|
333
|
+
return (rangeEnabled &&
|
|
334
|
+
start !== null &&
|
|
335
|
+
end !== null &&
|
|
336
|
+
start !== end &&
|
|
337
|
+
value >= start &&
|
|
338
|
+
value <= end);
|
|
335
339
|
}
|
|
336
340
|
|
|
337
341
|
/**
|
|
@@ -384,9 +388,9 @@ class MatDateSelectionModel {
|
|
|
384
388
|
return this._adapter.isDateInstance(date) && this._adapter.isValid(date);
|
|
385
389
|
}
|
|
386
390
|
}
|
|
387
|
-
MatDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
388
|
-
MatDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
391
|
+
MatDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDateSelectionModel, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
392
|
+
MatDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDateSelectionModel });
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDateSelectionModel, decorators: [{
|
|
390
394
|
type: Injectable
|
|
391
395
|
}], ctorParameters: function () { return [{ type: undefined }, { type: i1$1.DateAdapter }]; } });
|
|
392
396
|
/**
|
|
@@ -422,9 +426,9 @@ class MatSingleDateSelectionModel extends MatDateSelectionModel {
|
|
|
422
426
|
return clone;
|
|
423
427
|
}
|
|
424
428
|
}
|
|
425
|
-
MatSingleDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
426
|
-
MatSingleDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
429
|
+
MatSingleDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatSingleDateSelectionModel, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
430
|
+
MatSingleDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatSingleDateSelectionModel });
|
|
431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatSingleDateSelectionModel, decorators: [{
|
|
428
432
|
type: Injectable
|
|
429
433
|
}], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
|
|
430
434
|
/**
|
|
@@ -463,12 +467,13 @@ class MatRangeDateSelectionModel extends MatDateSelectionModel {
|
|
|
463
467
|
}
|
|
464
468
|
// Complete ranges are only valid if both dates are valid and the start is before the end.
|
|
465
469
|
if (start != null && end != null) {
|
|
466
|
-
return this._isValidDateInstance(start) &&
|
|
467
|
-
this.
|
|
470
|
+
return (this._isValidDateInstance(start) &&
|
|
471
|
+
this._isValidDateInstance(end) &&
|
|
472
|
+
this._adapter.compareDate(start, end) <= 0);
|
|
468
473
|
}
|
|
469
474
|
// Partial ranges are valid if the start/end is valid.
|
|
470
|
-
return (start == null || this._isValidDateInstance(start)) &&
|
|
471
|
-
(end == null || this._isValidDateInstance(end));
|
|
475
|
+
return ((start == null || this._isValidDateInstance(start)) &&
|
|
476
|
+
(end == null || this._isValidDateInstance(end)));
|
|
472
477
|
}
|
|
473
478
|
/**
|
|
474
479
|
* Checks whether the current selection is complete. In the case of a date range selection, this
|
|
@@ -484,9 +489,9 @@ class MatRangeDateSelectionModel extends MatDateSelectionModel {
|
|
|
484
489
|
return clone;
|
|
485
490
|
}
|
|
486
491
|
}
|
|
487
|
-
MatRangeDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
488
|
-
MatRangeDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
492
|
+
MatRangeDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatRangeDateSelectionModel, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
493
|
+
MatRangeDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatRangeDateSelectionModel });
|
|
494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatRangeDateSelectionModel, decorators: [{
|
|
490
495
|
type: Injectable
|
|
491
496
|
}], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
|
|
492
497
|
/** @docs-private */
|
|
@@ -554,9 +559,9 @@ class DefaultMatCalendarRangeStrategy {
|
|
|
554
559
|
return new DateRange(start, end);
|
|
555
560
|
}
|
|
556
561
|
}
|
|
557
|
-
DefaultMatCalendarRangeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
558
|
-
DefaultMatCalendarRangeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
562
|
+
DefaultMatCalendarRangeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DefaultMatCalendarRangeStrategy, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
563
|
+
DefaultMatCalendarRangeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DefaultMatCalendarRangeStrategy });
|
|
564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: DefaultMatCalendarRangeStrategy, decorators: [{
|
|
560
565
|
type: Injectable
|
|
561
566
|
}], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
|
|
562
567
|
/** @docs-private */
|
|
@@ -609,17 +614,22 @@ class MatMonthView {
|
|
|
609
614
|
/**
|
|
610
615
|
* The date to display in this month view (everything other than the month and year is ignored).
|
|
611
616
|
*/
|
|
612
|
-
get activeDate() {
|
|
617
|
+
get activeDate() {
|
|
618
|
+
return this._activeDate;
|
|
619
|
+
}
|
|
613
620
|
set activeDate(value) {
|
|
614
621
|
const oldActiveDate = this._activeDate;
|
|
615
|
-
const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) ||
|
|
622
|
+
const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) ||
|
|
623
|
+
this._dateAdapter.today();
|
|
616
624
|
this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);
|
|
617
625
|
if (!this._hasSameMonthAndYear(oldActiveDate, this._activeDate)) {
|
|
618
626
|
this._init();
|
|
619
627
|
}
|
|
620
628
|
}
|
|
621
629
|
/** The currently selected date. */
|
|
622
|
-
get selected() {
|
|
630
|
+
get selected() {
|
|
631
|
+
return this._selected;
|
|
632
|
+
}
|
|
623
633
|
set selected(value) {
|
|
624
634
|
if (value instanceof DateRange) {
|
|
625
635
|
this._selected = value;
|
|
@@ -630,12 +640,16 @@ class MatMonthView {
|
|
|
630
640
|
this._setRanges(this._selected);
|
|
631
641
|
}
|
|
632
642
|
/** The minimum selectable date. */
|
|
633
|
-
get minDate() {
|
|
643
|
+
get minDate() {
|
|
644
|
+
return this._minDate;
|
|
645
|
+
}
|
|
634
646
|
set minDate(value) {
|
|
635
647
|
this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
636
648
|
}
|
|
637
649
|
/** The maximum selectable date. */
|
|
638
|
-
get maxDate() {
|
|
650
|
+
get maxDate() {
|
|
651
|
+
return this._maxDate;
|
|
652
|
+
}
|
|
639
653
|
set maxDate(value) {
|
|
640
654
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
641
655
|
}
|
|
@@ -699,18 +713,18 @@ class MatMonthView {
|
|
|
699
713
|
this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 1 - this._dateAdapter.getDate(this._activeDate));
|
|
700
714
|
break;
|
|
701
715
|
case END:
|
|
702
|
-
this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate,
|
|
703
|
-
this._dateAdapter.getDate(this._activeDate))
|
|
716
|
+
this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, this._dateAdapter.getNumDaysInMonth(this._activeDate) -
|
|
717
|
+
this._dateAdapter.getDate(this._activeDate));
|
|
704
718
|
break;
|
|
705
719
|
case PAGE_UP:
|
|
706
|
-
this.activeDate = event.altKey
|
|
707
|
-
this._dateAdapter.addCalendarYears(this._activeDate, -1)
|
|
708
|
-
this._dateAdapter.addCalendarMonths(this._activeDate, -1);
|
|
720
|
+
this.activeDate = event.altKey
|
|
721
|
+
? this._dateAdapter.addCalendarYears(this._activeDate, -1)
|
|
722
|
+
: this._dateAdapter.addCalendarMonths(this._activeDate, -1);
|
|
709
723
|
break;
|
|
710
724
|
case PAGE_DOWN:
|
|
711
|
-
this.activeDate = event.altKey
|
|
712
|
-
this._dateAdapter.addCalendarYears(this._activeDate, 1)
|
|
713
|
-
this._dateAdapter.addCalendarMonths(this._activeDate, 1);
|
|
725
|
+
this.activeDate = event.altKey
|
|
726
|
+
? this._dateAdapter.addCalendarYears(this._activeDate, 1)
|
|
727
|
+
: this._dateAdapter.addCalendarMonths(this._activeDate, 1);
|
|
714
728
|
break;
|
|
715
729
|
case ENTER:
|
|
716
730
|
case SPACE:
|
|
@@ -760,12 +774,14 @@ class MatMonthView {
|
|
|
760
774
|
this._todayDate = this._getCellCompareValue(this._dateAdapter.today());
|
|
761
775
|
this._monthLabel = this._dateFormats.display.monthLabel
|
|
762
776
|
? this._dateAdapter.format(this.activeDate, this._dateFormats.display.monthLabel)
|
|
763
|
-
: this._dateAdapter
|
|
764
|
-
.toLocaleUpperCase();
|
|
777
|
+
: this._dateAdapter
|
|
778
|
+
.getMonthNames('short')[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();
|
|
765
779
|
let firstOfMonth = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), 1);
|
|
766
780
|
this._firstWeekOffset =
|
|
767
|
-
(DAYS_PER_WEEK +
|
|
768
|
-
this._dateAdapter.
|
|
781
|
+
(DAYS_PER_WEEK +
|
|
782
|
+
this._dateAdapter.getDayOfWeek(firstOfMonth) -
|
|
783
|
+
this._dateAdapter.getFirstDayOfWeek()) %
|
|
784
|
+
DAYS_PER_WEEK;
|
|
769
785
|
this._initWeekdays();
|
|
770
786
|
this._createWeekCells();
|
|
771
787
|
this._changeDetectorRef.markForCheck();
|
|
@@ -820,22 +836,25 @@ class MatMonthView {
|
|
|
820
836
|
}
|
|
821
837
|
/** Date filter for the month */
|
|
822
838
|
_shouldEnableDate(date) {
|
|
823
|
-
return !!date &&
|
|
839
|
+
return (!!date &&
|
|
824
840
|
(!this.minDate || this._dateAdapter.compareDate(date, this.minDate) >= 0) &&
|
|
825
841
|
(!this.maxDate || this._dateAdapter.compareDate(date, this.maxDate) <= 0) &&
|
|
826
|
-
(!this.dateFilter || this.dateFilter(date));
|
|
842
|
+
(!this.dateFilter || this.dateFilter(date)));
|
|
827
843
|
}
|
|
828
844
|
/**
|
|
829
845
|
* Gets the date in this month that the given Date falls on.
|
|
830
846
|
* Returns null if the given Date is in another month.
|
|
831
847
|
*/
|
|
832
848
|
_getDateInCurrentMonth(date) {
|
|
833
|
-
return date && this._hasSameMonthAndYear(date, this.activeDate)
|
|
834
|
-
this._dateAdapter.getDate(date)
|
|
849
|
+
return date && this._hasSameMonthAndYear(date, this.activeDate)
|
|
850
|
+
? this._dateAdapter.getDate(date)
|
|
851
|
+
: null;
|
|
835
852
|
}
|
|
836
853
|
/** Checks whether the 2 dates are non-null and fall within the same month of the same year. */
|
|
837
854
|
_hasSameMonthAndYear(d1, d2) {
|
|
838
|
-
return !!(d1 &&
|
|
855
|
+
return !!(d1 &&
|
|
856
|
+
d2 &&
|
|
857
|
+
this._dateAdapter.getMonth(d1) == this._dateAdapter.getMonth(d2) &&
|
|
839
858
|
this._dateAdapter.getYear(d1) == this._dateAdapter.getYear(d2));
|
|
840
859
|
}
|
|
841
860
|
/** Gets the value that will be used to one cell to another. */
|
|
@@ -873,9 +892,9 @@ class MatMonthView {
|
|
|
873
892
|
return !this.dateFilter || this.dateFilter(date);
|
|
874
893
|
}
|
|
875
894
|
}
|
|
876
|
-
MatMonthView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
877
|
-
MatMonthView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
895
|
+
MatMonthView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatMonthView, deps: [{ token: i0.ChangeDetectorRef }, { token: MAT_DATE_FORMATS, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }, { token: MAT_DATE_RANGE_SELECTION_STRATEGY, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
896
|
+
MatMonthView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatMonthView, selector: "mat-month-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd" }, outputs: { selectedChange: "selectedChange", _userSelection: "_userSelection", 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 the day-of-the-week column header, we use an `<abbr>` element because VoiceOver\n ignores the `aria-label`. ChromeVox, however, does not read the full name\n for the `<abbr>`, so we still set `aria-label` on the header element. -->\n <th scope=\"col\" *ngFor=\"let day of _weekdays\" [attr.aria-label]=\"day.long\">\n <abbr class=\"mat-calendar-abbr\" [attr.title]=\"day.long\">{{day.narrow}}</abbr>\n </th>\n </tr>\n <tr><th aria-hidden=\"true\" 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 (selectedValueChange)=\"_dateSelected($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", components: [{ type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd"], outputs: ["selectedValueChange", "previewChange"], exportAs: ["matCalendarBody"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatMonthView, decorators: [{
|
|
879
898
|
type: Component,
|
|
880
899
|
args: [{ selector: 'mat-month-view', exportAs: 'matMonthView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead class=\"mat-calendar-table-header\">\n <tr>\n <!-- For the day-of-the-week column header, we use an `<abbr>` element because VoiceOver\n ignores the `aria-label`. ChromeVox, however, does not read the full name\n for the `<abbr>`, so we still set `aria-label` on the header element. -->\n <th scope=\"col\" *ngFor=\"let day of _weekdays\" [attr.aria-label]=\"day.long\">\n <abbr class=\"mat-calendar-abbr\" [attr.title]=\"day.long\">{{day.narrow}}</abbr>\n </th>\n </tr>\n <tr><th aria-hidden=\"true\" 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 (selectedValueChange)=\"_dateSelected($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
881
900
|
}], ctorParameters: function () {
|
|
@@ -952,17 +971,22 @@ class MatMultiYearView {
|
|
|
952
971
|
this._activeDate = this._dateAdapter.today();
|
|
953
972
|
}
|
|
954
973
|
/** The date to display in this multi-year view (everything other than the year is ignored). */
|
|
955
|
-
get activeDate() {
|
|
974
|
+
get activeDate() {
|
|
975
|
+
return this._activeDate;
|
|
976
|
+
}
|
|
956
977
|
set activeDate(value) {
|
|
957
978
|
let oldActiveDate = this._activeDate;
|
|
958
|
-
const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) ||
|
|
979
|
+
const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) ||
|
|
980
|
+
this._dateAdapter.today();
|
|
959
981
|
this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);
|
|
960
982
|
if (!isSameMultiYearView(this._dateAdapter, oldActiveDate, this._activeDate, this.minDate, this.maxDate)) {
|
|
961
983
|
this._init();
|
|
962
984
|
}
|
|
963
985
|
}
|
|
964
986
|
/** The currently selected date. */
|
|
965
|
-
get selected() {
|
|
987
|
+
get selected() {
|
|
988
|
+
return this._selected;
|
|
989
|
+
}
|
|
966
990
|
set selected(value) {
|
|
967
991
|
if (value instanceof DateRange) {
|
|
968
992
|
this._selected = value;
|
|
@@ -973,12 +997,16 @@ class MatMultiYearView {
|
|
|
973
997
|
this._setSelectedYear(value);
|
|
974
998
|
}
|
|
975
999
|
/** The minimum selectable date. */
|
|
976
|
-
get minDate() {
|
|
1000
|
+
get minDate() {
|
|
1001
|
+
return this._minDate;
|
|
1002
|
+
}
|
|
977
1003
|
set minDate(value) {
|
|
978
1004
|
this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
979
1005
|
}
|
|
980
1006
|
/** The maximum selectable date. */
|
|
981
|
-
get maxDate() {
|
|
1007
|
+
get maxDate() {
|
|
1008
|
+
return this._maxDate;
|
|
1009
|
+
}
|
|
982
1010
|
set maxDate(value) {
|
|
983
1011
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
984
1012
|
}
|
|
@@ -1039,15 +1067,15 @@ class MatMultiYearView {
|
|
|
1039
1067
|
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate));
|
|
1040
1068
|
break;
|
|
1041
1069
|
case END:
|
|
1042
|
-
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerPage -
|
|
1070
|
+
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerPage -
|
|
1071
|
+
getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate) -
|
|
1072
|
+
1);
|
|
1043
1073
|
break;
|
|
1044
1074
|
case PAGE_UP:
|
|
1045
|
-
this.activeDate =
|
|
1046
|
-
this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -yearsPerPage * 10 : -yearsPerPage);
|
|
1075
|
+
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -yearsPerPage * 10 : -yearsPerPage);
|
|
1047
1076
|
break;
|
|
1048
1077
|
case PAGE_DOWN:
|
|
1049
|
-
this.activeDate =
|
|
1050
|
-
this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? yearsPerPage * 10 : yearsPerPage);
|
|
1078
|
+
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? yearsPerPage * 10 : yearsPerPage);
|
|
1051
1079
|
break;
|
|
1052
1080
|
case ENTER:
|
|
1053
1081
|
case SPACE:
|
|
@@ -1094,7 +1122,8 @@ class MatMultiYearView {
|
|
|
1094
1122
|
/** Whether the given year is enabled. */
|
|
1095
1123
|
_shouldEnableYear(year) {
|
|
1096
1124
|
// disable if the year is greater than maxDate lower than minDate
|
|
1097
|
-
if (year === undefined ||
|
|
1125
|
+
if (year === undefined ||
|
|
1126
|
+
year === null ||
|
|
1098
1127
|
(this.maxDate && year > this._dateAdapter.getYear(this.maxDate)) ||
|
|
1099
1128
|
(this.minDate && year < this._dateAdapter.getYear(this.minDate))) {
|
|
1100
1129
|
return false;
|
|
@@ -1130,9 +1159,9 @@ class MatMultiYearView {
|
|
|
1130
1159
|
}
|
|
1131
1160
|
}
|
|
1132
1161
|
}
|
|
1133
|
-
MatMultiYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1134
|
-
MatMultiYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
1135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1162
|
+
MatMultiYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatMultiYearView, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1163
|
+
MatMultiYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatMultiYearView, 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 (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", components: [{ type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd"], outputs: ["selectedValueChange", "previewChange"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatMultiYearView, decorators: [{
|
|
1136
1165
|
type: Component,
|
|
1137
1166
|
args: [{ selector: 'mat-multi-year-view', exportAs: 'matMultiYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, 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 (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
1138
1167
|
}], ctorParameters: function () {
|
|
@@ -1167,8 +1196,8 @@ function isSameMultiYearView(dateAdapter, date1, date2, minDate, maxDate) {
|
|
|
1167
1196
|
const year1 = dateAdapter.getYear(date1);
|
|
1168
1197
|
const year2 = dateAdapter.getYear(date2);
|
|
1169
1198
|
const startingYear = getStartingYear(dateAdapter, minDate, maxDate);
|
|
1170
|
-
return Math.floor((year1 - startingYear) / yearsPerPage) ===
|
|
1171
|
-
Math.floor((year2 - startingYear) / yearsPerPage);
|
|
1199
|
+
return (Math.floor((year1 - startingYear) / yearsPerPage) ===
|
|
1200
|
+
Math.floor((year2 - startingYear) / yearsPerPage));
|
|
1172
1201
|
}
|
|
1173
1202
|
/**
|
|
1174
1203
|
* When the multi-year view is first opened, the active year will be in view.
|
|
@@ -1177,7 +1206,7 @@ function isSameMultiYearView(dateAdapter, date1, date2, minDate, maxDate) {
|
|
|
1177
1206
|
*/
|
|
1178
1207
|
function getActiveOffset(dateAdapter, activeDate, minDate, maxDate) {
|
|
1179
1208
|
const activeYear = dateAdapter.getYear(activeDate);
|
|
1180
|
-
return euclideanModulo(
|
|
1209
|
+
return euclideanModulo(activeYear - getStartingYear(dateAdapter, minDate, maxDate), yearsPerPage);
|
|
1181
1210
|
}
|
|
1182
1211
|
/**
|
|
1183
1212
|
* We pick a "starting" year such that either the maximum year would be at the end
|
|
@@ -1196,7 +1225,7 @@ function getStartingYear(dateAdapter, minDate, maxDate) {
|
|
|
1196
1225
|
}
|
|
1197
1226
|
/** Gets remainder that is non-negative, even if first number is negative */
|
|
1198
1227
|
function euclideanModulo(a, b) {
|
|
1199
|
-
return (a % b + b) % b;
|
|
1228
|
+
return ((a % b) + b) % b;
|
|
1200
1229
|
}
|
|
1201
1230
|
|
|
1202
1231
|
/**
|
|
@@ -1234,17 +1263,22 @@ class MatYearView {
|
|
|
1234
1263
|
this._activeDate = this._dateAdapter.today();
|
|
1235
1264
|
}
|
|
1236
1265
|
/** The date to display in this year view (everything other than the year is ignored). */
|
|
1237
|
-
get activeDate() {
|
|
1266
|
+
get activeDate() {
|
|
1267
|
+
return this._activeDate;
|
|
1268
|
+
}
|
|
1238
1269
|
set activeDate(value) {
|
|
1239
1270
|
let oldActiveDate = this._activeDate;
|
|
1240
|
-
const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) ||
|
|
1271
|
+
const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) ||
|
|
1272
|
+
this._dateAdapter.today();
|
|
1241
1273
|
this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);
|
|
1242
1274
|
if (this._dateAdapter.getYear(oldActiveDate) !== this._dateAdapter.getYear(this._activeDate)) {
|
|
1243
1275
|
this._init();
|
|
1244
1276
|
}
|
|
1245
1277
|
}
|
|
1246
1278
|
/** The currently selected date. */
|
|
1247
|
-
get selected() {
|
|
1279
|
+
get selected() {
|
|
1280
|
+
return this._selected;
|
|
1281
|
+
}
|
|
1248
1282
|
set selected(value) {
|
|
1249
1283
|
if (value instanceof DateRange) {
|
|
1250
1284
|
this._selected = value;
|
|
@@ -1255,12 +1289,16 @@ class MatYearView {
|
|
|
1255
1289
|
this._setSelectedMonth(value);
|
|
1256
1290
|
}
|
|
1257
1291
|
/** The minimum selectable date. */
|
|
1258
|
-
get minDate() {
|
|
1292
|
+
get minDate() {
|
|
1293
|
+
return this._minDate;
|
|
1294
|
+
}
|
|
1259
1295
|
set minDate(value) {
|
|
1260
1296
|
this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
1261
1297
|
}
|
|
1262
1298
|
/** The maximum selectable date. */
|
|
1263
|
-
get maxDate() {
|
|
1299
|
+
get maxDate() {
|
|
1300
|
+
return this._maxDate;
|
|
1301
|
+
}
|
|
1264
1302
|
set maxDate(value) {
|
|
1265
1303
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
1266
1304
|
}
|
|
@@ -1307,12 +1345,10 @@ class MatYearView {
|
|
|
1307
1345
|
this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 11 - this._dateAdapter.getMonth(this._activeDate));
|
|
1308
1346
|
break;
|
|
1309
1347
|
case PAGE_UP:
|
|
1310
|
-
this.activeDate =
|
|
1311
|
-
this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -10 : -1);
|
|
1348
|
+
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -10 : -1);
|
|
1312
1349
|
break;
|
|
1313
1350
|
case PAGE_DOWN:
|
|
1314
|
-
this.activeDate =
|
|
1315
|
-
this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? 10 : 1);
|
|
1351
|
+
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? 10 : 1);
|
|
1316
1352
|
break;
|
|
1317
1353
|
case ENTER:
|
|
1318
1354
|
case SPACE:
|
|
@@ -1349,7 +1385,11 @@ class MatYearView {
|
|
|
1349
1385
|
this._yearLabel = this._dateAdapter.getYearName(this.activeDate);
|
|
1350
1386
|
let monthNames = this._dateAdapter.getMonthNames('short');
|
|
1351
1387
|
// First row of months only contains 5 elements so we can fit the year label on the same row.
|
|
1352
|
-
this._months = [
|
|
1388
|
+
this._months = [
|
|
1389
|
+
[0, 1, 2, 3],
|
|
1390
|
+
[4, 5, 6, 7],
|
|
1391
|
+
[8, 9, 10, 11],
|
|
1392
|
+
].map(row => row.map(month => this._createCellForMonth(month, monthNames[month])));
|
|
1353
1393
|
this._changeDetectorRef.markForCheck();
|
|
1354
1394
|
}
|
|
1355
1395
|
/** Focuses the active cell after the microtask queue is empty. */
|
|
@@ -1361,8 +1401,9 @@ class MatYearView {
|
|
|
1361
1401
|
* Returns null if the given Date is in another year.
|
|
1362
1402
|
*/
|
|
1363
1403
|
_getMonthInCurrentYear(date) {
|
|
1364
|
-
return date && this._dateAdapter.getYear(date) == this._dateAdapter.getYear(this.activeDate)
|
|
1365
|
-
this._dateAdapter.getMonth(date)
|
|
1404
|
+
return date && this._dateAdapter.getYear(date) == this._dateAdapter.getYear(this.activeDate)
|
|
1405
|
+
? this._dateAdapter.getMonth(date)
|
|
1406
|
+
: null;
|
|
1366
1407
|
}
|
|
1367
1408
|
/** Creates an MatCalendarCell for the given month. */
|
|
1368
1409
|
_createCellForMonth(month, monthName) {
|
|
@@ -1374,7 +1415,8 @@ class MatYearView {
|
|
|
1374
1415
|
/** Whether the given month is enabled. */
|
|
1375
1416
|
_shouldEnableMonth(month) {
|
|
1376
1417
|
const activeYear = this._dateAdapter.getYear(this.activeDate);
|
|
1377
|
-
if (month === undefined ||
|
|
1418
|
+
if (month === undefined ||
|
|
1419
|
+
month === null ||
|
|
1378
1420
|
this._isYearAndMonthAfterMaxDate(activeYear, month) ||
|
|
1379
1421
|
this._isYearAndMonthBeforeMinDate(activeYear, month)) {
|
|
1380
1422
|
return false;
|
|
@@ -1422,17 +1464,17 @@ class MatYearView {
|
|
|
1422
1464
|
/** Sets the currently-selected month based on a model value. */
|
|
1423
1465
|
_setSelectedMonth(value) {
|
|
1424
1466
|
if (value instanceof DateRange) {
|
|
1425
|
-
this._selectedMonth =
|
|
1426
|
-
this._getMonthInCurrentYear(value.end);
|
|
1467
|
+
this._selectedMonth =
|
|
1468
|
+
this._getMonthInCurrentYear(value.start) || this._getMonthInCurrentYear(value.end);
|
|
1427
1469
|
}
|
|
1428
1470
|
else {
|
|
1429
1471
|
this._selectedMonth = this._getMonthInCurrentYear(value);
|
|
1430
1472
|
}
|
|
1431
1473
|
}
|
|
1432
1474
|
}
|
|
1433
|
-
MatYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1434
|
-
MatYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
1435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1475
|
+
MatYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatYearView, deps: [{ token: i0.ChangeDetectorRef }, { token: MAT_DATE_FORMATS, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1476
|
+
MatYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatYearView, 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 (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", components: [{ type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd"], outputs: ["selectedValueChange", "previewChange"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatYearView, decorators: [{
|
|
1436
1478
|
type: Component,
|
|
1437
1479
|
args: [{ selector: 'mat-year-view', exportAs: 'matYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, 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 (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
1438
1480
|
}], ctorParameters: function () {
|
|
@@ -1512,9 +1554,9 @@ class MatDatepickerIntl {
|
|
|
1512
1554
|
return `${start} \u2013 ${end}`;
|
|
1513
1555
|
}
|
|
1514
1556
|
}
|
|
1515
|
-
MatDatepickerIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1516
|
-
MatDatepickerIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-
|
|
1517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1557
|
+
MatDatepickerIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1558
|
+
MatDatepickerIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerIntl, providedIn: 'root' });
|
|
1559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerIntl, decorators: [{
|
|
1518
1560
|
type: Injectable,
|
|
1519
1561
|
args: [{ providedIn: 'root' }]
|
|
1520
1562
|
}] });
|
|
@@ -1552,22 +1594,24 @@ class MatCalendarHeader {
|
|
|
1552
1594
|
// *actual* first rendered year in the multi-year view, and the last year is
|
|
1553
1595
|
// just yearsPerPage - 1 away.
|
|
1554
1596
|
const activeYear = this._dateAdapter.getYear(this.calendar.activeDate);
|
|
1555
|
-
const minYearOfPage = activeYear -
|
|
1597
|
+
const minYearOfPage = activeYear -
|
|
1598
|
+
getActiveOffset(this._dateAdapter, this.calendar.activeDate, this.calendar.minDate, this.calendar.maxDate);
|
|
1556
1599
|
const maxYearOfPage = minYearOfPage + yearsPerPage - 1;
|
|
1557
1600
|
const minYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(minYearOfPage, 0, 1));
|
|
1558
1601
|
const maxYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(maxYearOfPage, 0, 1));
|
|
1559
1602
|
return this._intl.formatYearRange(minYearName, maxYearName);
|
|
1560
1603
|
}
|
|
1561
1604
|
get periodButtonLabel() {
|
|
1562
|
-
return this.calendar.currentView == 'month'
|
|
1563
|
-
this._intl.switchToMultiYearViewLabel
|
|
1605
|
+
return this.calendar.currentView == 'month'
|
|
1606
|
+
? this._intl.switchToMultiYearViewLabel
|
|
1607
|
+
: this._intl.switchToMonthViewLabel;
|
|
1564
1608
|
}
|
|
1565
1609
|
/** The label for the previous button. */
|
|
1566
1610
|
get prevButtonLabel() {
|
|
1567
1611
|
return {
|
|
1568
1612
|
'month': this._intl.prevMonthLabel,
|
|
1569
1613
|
'year': this._intl.prevYearLabel,
|
|
1570
|
-
'multi-year': this._intl.prevMultiYearLabel
|
|
1614
|
+
'multi-year': this._intl.prevMultiYearLabel,
|
|
1571
1615
|
}[this.calendar.currentView];
|
|
1572
1616
|
}
|
|
1573
1617
|
/** The label for the next button. */
|
|
@@ -1575,7 +1619,7 @@ class MatCalendarHeader {
|
|
|
1575
1619
|
return {
|
|
1576
1620
|
'month': this._intl.nextMonthLabel,
|
|
1577
1621
|
'year': this._intl.nextYearLabel,
|
|
1578
|
-
'multi-year': this._intl.nextMultiYearLabel
|
|
1622
|
+
'multi-year': this._intl.nextMultiYearLabel,
|
|
1579
1623
|
}[this.calendar.currentView];
|
|
1580
1624
|
}
|
|
1581
1625
|
/** Handles user clicks on the period label. */
|
|
@@ -1584,34 +1628,34 @@ class MatCalendarHeader {
|
|
|
1584
1628
|
}
|
|
1585
1629
|
/** Handles user clicks on the previous button. */
|
|
1586
1630
|
previousClicked() {
|
|
1587
|
-
this.calendar.activeDate =
|
|
1588
|
-
this.
|
|
1589
|
-
|
|
1631
|
+
this.calendar.activeDate =
|
|
1632
|
+
this.calendar.currentView == 'month'
|
|
1633
|
+
? this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1)
|
|
1634
|
+
: this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? -1 : -yearsPerPage);
|
|
1590
1635
|
}
|
|
1591
1636
|
/** Handles user clicks on the next button. */
|
|
1592
1637
|
nextClicked() {
|
|
1593
|
-
this.calendar.activeDate =
|
|
1594
|
-
this.
|
|
1595
|
-
|
|
1638
|
+
this.calendar.activeDate =
|
|
1639
|
+
this.calendar.currentView == 'month'
|
|
1640
|
+
? this._dateAdapter.addCalendarMonths(this.calendar.activeDate, 1)
|
|
1641
|
+
: this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? 1 : yearsPerPage);
|
|
1596
1642
|
}
|
|
1597
1643
|
/** Whether the previous period button is enabled. */
|
|
1598
1644
|
previousEnabled() {
|
|
1599
1645
|
if (!this.calendar.minDate) {
|
|
1600
1646
|
return true;
|
|
1601
1647
|
}
|
|
1602
|
-
return !this.calendar.minDate ||
|
|
1603
|
-
!this._isSameView(this.calendar.activeDate, this.calendar.minDate);
|
|
1648
|
+
return (!this.calendar.minDate || !this._isSameView(this.calendar.activeDate, this.calendar.minDate));
|
|
1604
1649
|
}
|
|
1605
1650
|
/** Whether the next period button is enabled. */
|
|
1606
1651
|
nextEnabled() {
|
|
1607
|
-
return !this.calendar.maxDate ||
|
|
1608
|
-
!this._isSameView(this.calendar.activeDate, this.calendar.maxDate);
|
|
1652
|
+
return (!this.calendar.maxDate || !this._isSameView(this.calendar.activeDate, this.calendar.maxDate));
|
|
1609
1653
|
}
|
|
1610
1654
|
/** Whether the two dates represent the same view in the current view mode (month or year). */
|
|
1611
1655
|
_isSameView(date1, date2) {
|
|
1612
1656
|
if (this.calendar.currentView == 'month') {
|
|
1613
|
-
return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&
|
|
1614
|
-
this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2);
|
|
1657
|
+
return (this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&
|
|
1658
|
+
this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2));
|
|
1615
1659
|
}
|
|
1616
1660
|
if (this.calendar.currentView == 'year') {
|
|
1617
1661
|
return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2);
|
|
@@ -1620,9 +1664,9 @@ class MatCalendarHeader {
|
|
|
1620
1664
|
return isSameMultiYearView(this._dateAdapter, date1, date2, this.calendar.minDate, this.calendar.maxDate);
|
|
1621
1665
|
}
|
|
1622
1666
|
}
|
|
1623
|
-
MatCalendarHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1624
|
-
MatCalendarHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
1625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1667
|
+
MatCalendarHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatCalendarHeader, deps: [{ token: MatDatepickerIntl }, { token: forwardRef(() => MatCalendar) }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1668
|
+
MatCalendarHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatCalendarHeader, selector: "mat-calendar-header", exportAs: ["matCalendarHeader"], ngImport: i0, template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_buttonDescriptionId\"\n cdkAriaLive=\"polite\">\n <span [attr.id]=\"_buttonDescriptionId\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\">\n <polygon points=\"0,0 5,5 10,0\"/>\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n", components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.CdkAriaLive, selector: "[cdkAriaLive]", inputs: ["cdkAriaLive"], exportAs: ["cdkAriaLive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatCalendarHeader, decorators: [{
|
|
1626
1670
|
type: Component,
|
|
1627
1671
|
args: [{ selector: 'mat-calendar-header', exportAs: 'matCalendarHeader', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_buttonDescriptionId\"\n cdkAriaLive=\"polite\">\n <span [attr.id]=\"_buttonDescriptionId\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\">\n <polygon points=\"0,0 5,5 10,0\"/>\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n" }]
|
|
1628
1672
|
}], ctorParameters: function () {
|
|
@@ -1688,12 +1732,16 @@ class MatCalendar {
|
|
|
1688
1732
|
});
|
|
1689
1733
|
}
|
|
1690
1734
|
/** A date representing the period (month or year) to start the calendar in. */
|
|
1691
|
-
get startAt() {
|
|
1735
|
+
get startAt() {
|
|
1736
|
+
return this._startAt;
|
|
1737
|
+
}
|
|
1692
1738
|
set startAt(value) {
|
|
1693
1739
|
this._startAt = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
1694
1740
|
}
|
|
1695
1741
|
/** The currently selected date. */
|
|
1696
|
-
get selected() {
|
|
1742
|
+
get selected() {
|
|
1743
|
+
return this._selected;
|
|
1744
|
+
}
|
|
1697
1745
|
set selected(value) {
|
|
1698
1746
|
if (value instanceof DateRange) {
|
|
1699
1747
|
this._selected = value;
|
|
@@ -1703,12 +1751,16 @@ class MatCalendar {
|
|
|
1703
1751
|
}
|
|
1704
1752
|
}
|
|
1705
1753
|
/** The minimum selectable date. */
|
|
1706
|
-
get minDate() {
|
|
1754
|
+
get minDate() {
|
|
1755
|
+
return this._minDate;
|
|
1756
|
+
}
|
|
1707
1757
|
set minDate(value) {
|
|
1708
1758
|
this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
1709
1759
|
}
|
|
1710
1760
|
/** The maximum selectable date. */
|
|
1711
|
-
get maxDate() {
|
|
1761
|
+
get maxDate() {
|
|
1762
|
+
return this._maxDate;
|
|
1763
|
+
}
|
|
1712
1764
|
set maxDate(value) {
|
|
1713
1765
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
1714
1766
|
}
|
|
@@ -1716,14 +1768,18 @@ class MatCalendar {
|
|
|
1716
1768
|
* The current active date. This determines which time period is shown and which date is
|
|
1717
1769
|
* highlighted when using keyboard navigation.
|
|
1718
1770
|
*/
|
|
1719
|
-
get activeDate() {
|
|
1771
|
+
get activeDate() {
|
|
1772
|
+
return this._clampedActiveDate;
|
|
1773
|
+
}
|
|
1720
1774
|
set activeDate(value) {
|
|
1721
1775
|
this._clampedActiveDate = this._dateAdapter.clampDate(value, this.minDate, this.maxDate);
|
|
1722
1776
|
this.stateChanges.next();
|
|
1723
1777
|
this._changeDetectorRef.markForCheck();
|
|
1724
1778
|
}
|
|
1725
1779
|
/** Whether the calendar is in month view. */
|
|
1726
|
-
get currentView() {
|
|
1780
|
+
get currentView() {
|
|
1781
|
+
return this._currentView;
|
|
1782
|
+
}
|
|
1727
1783
|
set currentView(value) {
|
|
1728
1784
|
const viewChangedResult = this._currentView !== value ? value : null;
|
|
1729
1785
|
this._currentView = value;
|
|
@@ -1800,9 +1856,9 @@ class MatCalendar {
|
|
|
1800
1856
|
return this.monthView || this.yearView || this.multiYearView;
|
|
1801
1857
|
}
|
|
1802
1858
|
}
|
|
1803
|
-
MatCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1804
|
-
MatCalendar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
1805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
1859
|
+
MatCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatCalendar, deps: [{ token: MatDatepickerIntl }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1860
|
+
MatCalendar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatCalendar, selector: "mat-calendar", inputs: { headerComponent: "headerComponent", startAt: "startAt", startView: "startView", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", monthSelected: "monthSelected", viewChanged: "viewChanged", _userSelection: "_userSelection" }, host: { classAttribute: "mat-calendar" }, providers: [MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER], viewQueries: [{ propertyName: "monthView", first: true, predicate: MatMonthView, descendants: true }, { propertyName: "yearView", first: true, predicate: MatYearView, descendants: true }, { propertyName: "multiYearView", first: true, predicate: MatMultiYearView, descendants: true }], exportAs: ["matCalendar"], usesOnChanges: true, ngImport: i0, template: "<ng-template [cdkPortalOutlet]=\"_calendarHeaderPortal\"></ng-template>\n\n<div class=\"mat-calendar-content\" [ngSwitch]=\"currentView\" cdkMonitorSubtreeFocus tabindex=\"-1\">\n <mat-month-view\n *ngSwitchCase=\"'month'\"\n [(activeDate)]=\"activeDate\"\n [selected]=\"selected\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [dateClass]=\"dateClass\"\n [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n (_userSelection)=\"_dateSelected($event)\">\n </mat-month-view>\n\n <mat-year-view\n *ngSwitchCase=\"'year'\"\n [(activeDate)]=\"activeDate\"\n [selected]=\"selected\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [dateClass]=\"dateClass\"\n (monthSelected)=\"_monthSelectedInYearView($event)\"\n (selectedChange)=\"_goToDateInView($event, 'month')\">\n </mat-year-view>\n\n <mat-multi-year-view\n *ngSwitchCase=\"'multi-year'\"\n [(activeDate)]=\"activeDate\"\n [selected]=\"selected\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [dateClass]=\"dateClass\"\n (yearSelected)=\"_yearSelectedInMultiYearView($event)\"\n (selectedChange)=\"_goToDateInView($event, 'year')\">\n </mat-multi-year-view>\n</div>\n", styles: [".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:\"\";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:\"\";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n"], components: [{ type: MatMonthView, selector: "mat-month-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd"], outputs: ["selectedChange", "_userSelection", "activeDateChange"], exportAs: ["matMonthView"] }, { type: MatYearView, selector: "mat-year-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass"], outputs: ["selectedChange", "monthSelected", "activeDateChange"], exportAs: ["matYearView"] }, { type: MatMultiYearView, selector: "mat-multi-year-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass"], outputs: ["selectedChange", "yearSelected", "activeDateChange"], exportAs: ["matMultiYearView"] }], directives: [{ type: i8.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i4.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatCalendar, decorators: [{
|
|
1806
1862
|
type: Component,
|
|
1807
1863
|
args: [{ selector: 'mat-calendar', host: {
|
|
1808
1864
|
'class': 'mat-calendar',
|
|
@@ -1873,13 +1929,13 @@ const matDatepickerAnimations = {
|
|
|
1873
1929
|
transformPanel: trigger('transformPanel', [
|
|
1874
1930
|
transition('void => enter-dropdown', animate('120ms cubic-bezier(0, 0, 0.2, 1)', keyframes([
|
|
1875
1931
|
style({ opacity: 0, transform: 'scale(1, 0.8)' }),
|
|
1876
|
-
style({ opacity: 1, transform: 'scale(1, 1)' })
|
|
1932
|
+
style({ opacity: 1, transform: 'scale(1, 1)' }),
|
|
1877
1933
|
]))),
|
|
1878
1934
|
transition('void => enter-dialog', animate('150ms cubic-bezier(0, 0, 0.2, 1)', keyframes([
|
|
1879
1935
|
style({ opacity: 0, transform: 'scale(0.7)' }),
|
|
1880
|
-
style({ transform: 'none', opacity: 1 })
|
|
1936
|
+
style({ transform: 'none', opacity: 1 }),
|
|
1881
1937
|
]))),
|
|
1882
|
-
transition('* => void', animate('100ms linear', style({ opacity: 0 })))
|
|
1938
|
+
transition('* => void', animate('100ms linear', style({ opacity: 0 }))),
|
|
1883
1939
|
]),
|
|
1884
1940
|
/** Fades in the content of the calendar. */
|
|
1885
1941
|
fadeInCalendar: trigger('fadeInCalendar', [
|
|
@@ -1887,8 +1943,8 @@ const matDatepickerAnimations = {
|
|
|
1887
1943
|
state('enter', style({ opacity: 1 })),
|
|
1888
1944
|
// TODO(crisbeto): this animation should be removed since it isn't quite on spec, but we
|
|
1889
1945
|
// need to keep it until #12440 gets in, otherwise the exit animation will look glitchy.
|
|
1890
|
-
transition('void => *', animate('120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)'))
|
|
1891
|
-
])
|
|
1946
|
+
transition('void => *', animate('120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)')),
|
|
1947
|
+
]),
|
|
1892
1948
|
};
|
|
1893
1949
|
|
|
1894
1950
|
/** Used to generate a unique ID for each datepicker instance. */
|
|
@@ -1963,8 +2019,8 @@ class MatDatepickerContent extends _MatDatepickerContentBase {
|
|
|
1963
2019
|
const newSelection = this._rangeSelectionStrategy.selectionFinished(value, selection, event.event);
|
|
1964
2020
|
this._model.updateSelection(newSelection, this);
|
|
1965
2021
|
}
|
|
1966
|
-
else if (value &&
|
|
1967
|
-
!this._dateAdapter.sameDate(value, selection))) {
|
|
2022
|
+
else if (value &&
|
|
2023
|
+
(isRange || !this._dateAdapter.sameDate(value, selection))) {
|
|
1968
2024
|
this._model.add(value);
|
|
1969
2025
|
}
|
|
1970
2026
|
// Delegate closing the overlay to the actions.
|
|
@@ -1986,22 +2042,16 @@ class MatDatepickerContent extends _MatDatepickerContentBase {
|
|
|
1986
2042
|
}
|
|
1987
2043
|
}
|
|
1988
2044
|
}
|
|
1989
|
-
MatDatepickerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
1990
|
-
MatDatepickerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
1991
|
-
|
|
1992
|
-
matDatepickerAnimations.fadeInCalendar,
|
|
1993
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDatepickerContent, decorators: [{
|
|
2045
|
+
MatDatepickerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerContent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MatDateSelectionModel }, { token: i1$1.DateAdapter }, { token: MAT_DATE_RANGE_SELECTION_STRATEGY, optional: true }, { token: MatDatepickerIntl }], target: i0.ɵɵFactoryTarget.Component });
|
|
2046
|
+
MatDatepickerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepickerContent, selector: "mat-datepicker-content", inputs: { color: "color" }, host: { listeners: { "@transformPanel.done": "_animationDone.next()" }, properties: { "@transformPanel": "_animationState", "class.mat-datepicker-content-touch": "datepicker.touchUi" }, classAttribute: "mat-datepicker-content" }, viewQueries: [{ propertyName: "_calendar", first: true, predicate: MatCalendar, descendants: true }], exportAs: ["matDatepickerContent"], usesInheritance: true, ngImport: i0, template: "<div\n cdkTrapFocus\n class=\"mat-datepicker-content-container\"\n [class.mat-datepicker-content-container-with-actions]=\"_actionsPortal\">\n <mat-calendar\n [id]=\"datepicker.id\"\n [ngClass]=\"datepicker.panelClass\"\n [startAt]=\"datepicker.startAt\"\n [startView]=\"datepicker.startView\"\n [minDate]=\"datepicker._getMinDate()\"\n [maxDate]=\"datepicker._getMaxDate()\"\n [dateFilter]=\"datepicker._getDateFilter()\"\n [headerComponent]=\"datepicker.calendarHeaderComponent\"\n [selected]=\"_getSelected()\"\n [dateClass]=\"datepicker.dateClass\"\n [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n [@fadeInCalendar]=\"'enter'\"\n (yearSelected)=\"datepicker._selectYear($event)\"\n (monthSelected)=\"datepicker._selectMonth($event)\"\n (viewChanged)=\"datepicker._viewChanged($event)\"\n (_userSelection)=\"_handleUserSelection($event)\"></mat-calendar>\n\n <ng-template [cdkPortalOutlet]=\"_actionsPortal\"></ng-template>\n\n <!-- Invisible close button for screen reader users. -->\n <button\n type=\"button\"\n mat-raised-button\n [color]=\"color || 'primary'\"\n class=\"mat-datepicker-close-button\"\n [class.cdk-visually-hidden]=\"!_closeButtonFocused\"\n (focus)=\"_closeButtonFocused = true\"\n (blur)=\"_closeButtonFocused = false\"\n (click)=\"datepicker.close()\">{{ _closeButtonText }}</button>\n</div>\n", styles: [".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"], components: [{ type: MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection"], exportAs: ["matCalendar"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [matDatepickerAnimations.transformPanel, matDatepickerAnimations.fadeInCalendar], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerContent, decorators: [{
|
|
1995
2048
|
type: Component,
|
|
1996
2049
|
args: [{ selector: 'mat-datepicker-content', host: {
|
|
1997
2050
|
'class': 'mat-datepicker-content',
|
|
1998
2051
|
'[@transformPanel]': '_animationState',
|
|
1999
2052
|
'(@transformPanel.done)': '_animationDone.next()',
|
|
2000
2053
|
'[class.mat-datepicker-content-touch]': 'datepicker.touchUi',
|
|
2001
|
-
}, animations: [
|
|
2002
|
-
matDatepickerAnimations.transformPanel,
|
|
2003
|
-
matDatepickerAnimations.fadeInCalendar,
|
|
2004
|
-
], exportAs: 'matDatepickerContent', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['color'], template: "<div\n cdkTrapFocus\n class=\"mat-datepicker-content-container\"\n [class.mat-datepicker-content-container-with-actions]=\"_actionsPortal\">\n <mat-calendar\n [id]=\"datepicker.id\"\n [ngClass]=\"datepicker.panelClass\"\n [startAt]=\"datepicker.startAt\"\n [startView]=\"datepicker.startView\"\n [minDate]=\"datepicker._getMinDate()\"\n [maxDate]=\"datepicker._getMaxDate()\"\n [dateFilter]=\"datepicker._getDateFilter()\"\n [headerComponent]=\"datepicker.calendarHeaderComponent\"\n [selected]=\"_getSelected()\"\n [dateClass]=\"datepicker.dateClass\"\n [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n [@fadeInCalendar]=\"'enter'\"\n (yearSelected)=\"datepicker._selectYear($event)\"\n (monthSelected)=\"datepicker._selectMonth($event)\"\n (viewChanged)=\"datepicker._viewChanged($event)\"\n (_userSelection)=\"_handleUserSelection($event)\"></mat-calendar>\n\n <ng-template [cdkPortalOutlet]=\"_actionsPortal\"></ng-template>\n\n <!-- Invisible close button for screen reader users. -->\n <button\n type=\"button\"\n mat-raised-button\n [color]=\"color || 'primary'\"\n class=\"mat-datepicker-close-button\"\n [class.cdk-visually-hidden]=\"!_closeButtonFocused\"\n (focus)=\"_closeButtonFocused = true\"\n (blur)=\"_closeButtonFocused = false\"\n (click)=\"datepicker.close()\">{{ _closeButtonText }}</button>\n</div>\n", styles: [".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"] }]
|
|
2054
|
+
}, animations: [matDatepickerAnimations.transformPanel, matDatepickerAnimations.fadeInCalendar], exportAs: 'matDatepickerContent', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['color'], template: "<div\n cdkTrapFocus\n class=\"mat-datepicker-content-container\"\n [class.mat-datepicker-content-container-with-actions]=\"_actionsPortal\">\n <mat-calendar\n [id]=\"datepicker.id\"\n [ngClass]=\"datepicker.panelClass\"\n [startAt]=\"datepicker.startAt\"\n [startView]=\"datepicker.startView\"\n [minDate]=\"datepicker._getMinDate()\"\n [maxDate]=\"datepicker._getMaxDate()\"\n [dateFilter]=\"datepicker._getDateFilter()\"\n [headerComponent]=\"datepicker.calendarHeaderComponent\"\n [selected]=\"_getSelected()\"\n [dateClass]=\"datepicker.dateClass\"\n [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n [@fadeInCalendar]=\"'enter'\"\n (yearSelected)=\"datepicker._selectYear($event)\"\n (monthSelected)=\"datepicker._selectMonth($event)\"\n (viewChanged)=\"datepicker._viewChanged($event)\"\n (_userSelection)=\"_handleUserSelection($event)\"></mat-calendar>\n\n <ng-template [cdkPortalOutlet]=\"_actionsPortal\"></ng-template>\n\n <!-- Invisible close button for screen reader users. -->\n <button\n type=\"button\"\n mat-raised-button\n [color]=\"color || 'primary'\"\n class=\"mat-datepicker-close-button\"\n [class.cdk-visually-hidden]=\"!_closeButtonFocused\"\n (focus)=\"_closeButtonFocused = true\"\n (blur)=\"_closeButtonFocused = false\"\n (click)=\"datepicker.close()\">{{ _closeButtonText }}</button>\n</div>\n", styles: [".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"] }]
|
|
2005
2055
|
}], ctorParameters: function () {
|
|
2006
2056
|
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: MatDateSelectionModel }, { type: i1$1.DateAdapter }, { type: undefined, decorators: [{
|
|
2007
2057
|
type: Optional
|
|
@@ -2074,8 +2124,7 @@ class MatDatepickerBase {
|
|
|
2074
2124
|
}
|
|
2075
2125
|
/** Color palette to use on the datepicker's calendar. */
|
|
2076
2126
|
get color() {
|
|
2077
|
-
return this._color ||
|
|
2078
|
-
(this.datepickerInput ? this.datepickerInput.getThemePalette() : undefined);
|
|
2127
|
+
return (this._color || (this.datepickerInput ? this.datepickerInput.getThemePalette() : undefined));
|
|
2079
2128
|
}
|
|
2080
2129
|
set color(value) {
|
|
2081
2130
|
this._color = value;
|
|
@@ -2084,14 +2133,17 @@ class MatDatepickerBase {
|
|
|
2084
2133
|
* Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather
|
|
2085
2134
|
* than a dropdown and elements have more padding to allow for bigger touch targets.
|
|
2086
2135
|
*/
|
|
2087
|
-
get touchUi() {
|
|
2136
|
+
get touchUi() {
|
|
2137
|
+
return this._touchUi;
|
|
2138
|
+
}
|
|
2088
2139
|
set touchUi(value) {
|
|
2089
2140
|
this._touchUi = coerceBooleanProperty(value);
|
|
2090
2141
|
}
|
|
2091
2142
|
/** Whether the datepicker pop-up should be disabled. */
|
|
2092
2143
|
get disabled() {
|
|
2093
|
-
return this._disabled === undefined && this.datepickerInput
|
|
2094
|
-
this.datepickerInput.disabled
|
|
2144
|
+
return this._disabled === undefined && this.datepickerInput
|
|
2145
|
+
? this.datepickerInput.disabled
|
|
2146
|
+
: !!this._disabled;
|
|
2095
2147
|
}
|
|
2096
2148
|
set disabled(value) {
|
|
2097
2149
|
const newValue = coerceBooleanProperty(value);
|
|
@@ -2105,7 +2157,9 @@ class MatDatepickerBase {
|
|
|
2105
2157
|
* Note that automatic focus restoration is an accessibility feature and it is recommended that
|
|
2106
2158
|
* you provide your own equivalent, if you decide to turn it off.
|
|
2107
2159
|
*/
|
|
2108
|
-
get restoreFocus() {
|
|
2160
|
+
get restoreFocus() {
|
|
2161
|
+
return this._restoreFocus;
|
|
2162
|
+
}
|
|
2109
2163
|
set restoreFocus(value) {
|
|
2110
2164
|
this._restoreFocus = coerceBooleanProperty(value);
|
|
2111
2165
|
}
|
|
@@ -2113,12 +2167,16 @@ class MatDatepickerBase {
|
|
|
2113
2167
|
* Classes to be passed to the date picker panel.
|
|
2114
2168
|
* Supports string and string array values, similar to `ngClass`.
|
|
2115
2169
|
*/
|
|
2116
|
-
get panelClass() {
|
|
2170
|
+
get panelClass() {
|
|
2171
|
+
return this._panelClass;
|
|
2172
|
+
}
|
|
2117
2173
|
set panelClass(value) {
|
|
2118
2174
|
this._panelClass = coerceStringArray(value);
|
|
2119
2175
|
}
|
|
2120
2176
|
/** Whether the calendar is open. */
|
|
2121
|
-
get opened() {
|
|
2177
|
+
get opened() {
|
|
2178
|
+
return this._opened;
|
|
2179
|
+
}
|
|
2122
2180
|
set opened(value) {
|
|
2123
2181
|
coerceBooleanProperty(value) ? this.open() : this.close();
|
|
2124
2182
|
}
|
|
@@ -2179,8 +2237,7 @@ class MatDatepickerBase {
|
|
|
2179
2237
|
}
|
|
2180
2238
|
this._inputStateChanges.unsubscribe();
|
|
2181
2239
|
this.datepickerInput = input;
|
|
2182
|
-
this._inputStateChanges =
|
|
2183
|
-
input.stateChanges.subscribe(() => this.stateChanges.next(undefined));
|
|
2240
|
+
this._inputStateChanges = input.stateChanges.subscribe(() => this.stateChanges.next(undefined));
|
|
2184
2241
|
return this._model;
|
|
2185
2242
|
}
|
|
2186
2243
|
/**
|
|
@@ -2234,7 +2291,8 @@ class MatDatepickerBase {
|
|
|
2234
2291
|
this._focusedElementBeforeOpen = null;
|
|
2235
2292
|
}
|
|
2236
2293
|
};
|
|
2237
|
-
if (this._restoreFocus &&
|
|
2294
|
+
if (this._restoreFocus &&
|
|
2295
|
+
this._focusedElementBeforeOpen &&
|
|
2238
2296
|
typeof this._focusedElementBeforeOpen.focus === 'function') {
|
|
2239
2297
|
// Because IE moves focus asynchronously, we can't count on it being restored before we've
|
|
2240
2298
|
// marked the datepicker as closed. If the event fires out of sequence and the element that
|
|
@@ -2265,17 +2323,17 @@ class MatDatepickerBase {
|
|
|
2265
2323
|
const isDialog = this.touchUi;
|
|
2266
2324
|
const labelId = this.datepickerInput.getOverlayLabelId();
|
|
2267
2325
|
const portal = new ComponentPortal(MatDatepickerContent, this._viewContainerRef);
|
|
2268
|
-
const overlayRef = this._overlayRef = this._overlay.create(new OverlayConfig({
|
|
2326
|
+
const overlayRef = (this._overlayRef = this._overlay.create(new OverlayConfig({
|
|
2269
2327
|
positionStrategy: isDialog ? this._getDialogStrategy() : this._getDropdownStrategy(),
|
|
2270
2328
|
hasBackdrop: true,
|
|
2271
2329
|
backdropClass: [
|
|
2272
2330
|
isDialog ? 'cdk-overlay-dark-backdrop' : 'mat-overlay-transparent-backdrop',
|
|
2273
|
-
this._backdropHarnessClass
|
|
2331
|
+
this._backdropHarnessClass,
|
|
2274
2332
|
],
|
|
2275
2333
|
direction: this._dir,
|
|
2276
2334
|
scrollStrategy: isDialog ? this._overlay.scrollStrategies.block() : this._scrollStrategy(),
|
|
2277
2335
|
panelClass: `mat-datepicker-${isDialog ? 'dialog' : 'popup'}`,
|
|
2278
|
-
}));
|
|
2336
|
+
})));
|
|
2279
2337
|
const overlayElement = overlayRef.overlayElement;
|
|
2280
2338
|
overlayElement.setAttribute('role', 'dialog');
|
|
2281
2339
|
if (labelId) {
|
|
@@ -2310,7 +2368,8 @@ class MatDatepickerBase {
|
|
|
2310
2368
|
}
|
|
2311
2369
|
/** Gets a position strategy that will open the calendar as a dropdown. */
|
|
2312
2370
|
_getDropdownStrategy() {
|
|
2313
|
-
const strategy = this._overlay
|
|
2371
|
+
const strategy = this._overlay
|
|
2372
|
+
.position()
|
|
2314
2373
|
.flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin())
|
|
2315
2374
|
.withTransformOriginOn('.mat-datepicker-content')
|
|
2316
2375
|
.withFlexibleDimensions(false)
|
|
@@ -2329,40 +2388,40 @@ class MatDatepickerBase {
|
|
|
2329
2388
|
originX: primaryX,
|
|
2330
2389
|
originY: secondaryY,
|
|
2331
2390
|
overlayX: primaryX,
|
|
2332
|
-
overlayY: primaryY
|
|
2391
|
+
overlayY: primaryY,
|
|
2333
2392
|
},
|
|
2334
2393
|
{
|
|
2335
2394
|
originX: primaryX,
|
|
2336
2395
|
originY: primaryY,
|
|
2337
2396
|
overlayX: primaryX,
|
|
2338
|
-
overlayY: secondaryY
|
|
2397
|
+
overlayY: secondaryY,
|
|
2339
2398
|
},
|
|
2340
2399
|
{
|
|
2341
2400
|
originX: secondaryX,
|
|
2342
2401
|
originY: secondaryY,
|
|
2343
2402
|
overlayX: secondaryX,
|
|
2344
|
-
overlayY: primaryY
|
|
2403
|
+
overlayY: primaryY,
|
|
2345
2404
|
},
|
|
2346
2405
|
{
|
|
2347
2406
|
originX: secondaryX,
|
|
2348
2407
|
originY: primaryY,
|
|
2349
2408
|
overlayX: secondaryX,
|
|
2350
|
-
overlayY: secondaryY
|
|
2351
|
-
}
|
|
2409
|
+
overlayY: secondaryY,
|
|
2410
|
+
},
|
|
2352
2411
|
]);
|
|
2353
2412
|
}
|
|
2354
2413
|
/** Gets an observable that will emit when the overlay is supposed to be closed. */
|
|
2355
2414
|
_getCloseStream(overlayRef) {
|
|
2356
2415
|
return merge(overlayRef.backdropClick(), overlayRef.detachments(), overlayRef.keydownEvents().pipe(filter(event => {
|
|
2357
2416
|
// Closing on alt + up is only valid when there's an input associated with the datepicker.
|
|
2358
|
-
return (event.keyCode === ESCAPE && !hasModifierKey(event)) ||
|
|
2359
|
-
hasModifierKey(event, 'altKey') && event.keyCode === UP_ARROW);
|
|
2417
|
+
return ((event.keyCode === ESCAPE && !hasModifierKey(event)) ||
|
|
2418
|
+
(this.datepickerInput && hasModifierKey(event, 'altKey') && event.keyCode === UP_ARROW));
|
|
2360
2419
|
})));
|
|
2361
2420
|
}
|
|
2362
2421
|
}
|
|
2363
|
-
MatDatepickerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2364
|
-
MatDatepickerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2422
|
+
MatDatepickerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerBase, deps: [{ token: i9.Overlay }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: MAT_DATEPICKER_SCROLL_STRATEGY }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }, { token: MatDateSelectionModel }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2423
|
+
MatDatepickerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepickerBase, inputs: { calendarHeaderComponent: "calendarHeaderComponent", startAt: "startAt", startView: "startView", color: "color", touchUi: "touchUi", disabled: "disabled", xPosition: "xPosition", yPosition: "yPosition", restoreFocus: "restoreFocus", dateClass: "dateClass", panelClass: "panelClass", opened: "opened" }, outputs: { yearSelected: "yearSelected", monthSelected: "monthSelected", viewChanged: "viewChanged", openedStream: "opened", closedStream: "closed" }, usesOnChanges: true, ngImport: i0 });
|
|
2424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerBase, decorators: [{
|
|
2366
2425
|
type: Directive
|
|
2367
2426
|
}], ctorParameters: function () {
|
|
2368
2427
|
return [{ type: i9.Overlay }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
@@ -2424,12 +2483,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2424
2483
|
/** Component responsible for managing the datepicker popup/dialog. */
|
|
2425
2484
|
class MatDatepicker extends MatDatepickerBase {
|
|
2426
2485
|
}
|
|
2427
|
-
MatDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2428
|
-
MatDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
2486
|
+
MatDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2487
|
+
MatDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepicker, selector: "mat-datepicker", providers: [
|
|
2429
2488
|
MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER,
|
|
2430
2489
|
{ provide: MatDatepickerBase, useExisting: MatDatepicker },
|
|
2431
2490
|
], exportAs: ["matDatepicker"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepicker, decorators: [{
|
|
2433
2492
|
type: Component,
|
|
2434
2493
|
args: [{
|
|
2435
2494
|
selector: 'mat-datepicker',
|
|
@@ -2440,7 +2499,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2440
2499
|
providers: [
|
|
2441
2500
|
MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER,
|
|
2442
2501
|
{ provide: MatDatepickerBase, useExisting: MatDatepicker },
|
|
2443
|
-
]
|
|
2502
|
+
],
|
|
2444
2503
|
}]
|
|
2445
2504
|
}] });
|
|
2446
2505
|
|
|
@@ -2486,30 +2545,32 @@ class MatDatepickerInputBase {
|
|
|
2486
2545
|
this._localeSubscription = Subscription.EMPTY;
|
|
2487
2546
|
/** The form control validator for whether the input parses. */
|
|
2488
2547
|
this._parseValidator = () => {
|
|
2489
|
-
return this._lastValueValid
|
|
2490
|
-
null
|
|
2548
|
+
return this._lastValueValid
|
|
2549
|
+
? null
|
|
2550
|
+
: { 'matDatepickerParse': { 'text': this._elementRef.nativeElement.value } };
|
|
2491
2551
|
};
|
|
2492
2552
|
/** The form control validator for the date filter. */
|
|
2493
2553
|
this._filterValidator = (control) => {
|
|
2494
2554
|
const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
|
|
2495
|
-
return !controlValue || this._matchesFilter(controlValue)
|
|
2496
|
-
null
|
|
2555
|
+
return !controlValue || this._matchesFilter(controlValue)
|
|
2556
|
+
? null
|
|
2557
|
+
: { 'matDatepickerFilter': true };
|
|
2497
2558
|
};
|
|
2498
2559
|
/** The form control validator for the min date. */
|
|
2499
2560
|
this._minValidator = (control) => {
|
|
2500
2561
|
const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
|
|
2501
2562
|
const min = this._getMinDate();
|
|
2502
|
-
return
|
|
2503
|
-
|
|
2504
|
-
|
|
2563
|
+
return !min || !controlValue || this._dateAdapter.compareDate(min, controlValue) <= 0
|
|
2564
|
+
? null
|
|
2565
|
+
: { 'matDatepickerMin': { 'min': min, 'actual': controlValue } };
|
|
2505
2566
|
};
|
|
2506
2567
|
/** The form control validator for the max date. */
|
|
2507
2568
|
this._maxValidator = (control) => {
|
|
2508
2569
|
const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
|
|
2509
2570
|
const max = this._getMaxDate();
|
|
2510
|
-
return
|
|
2511
|
-
|
|
2512
|
-
|
|
2571
|
+
return !max || !controlValue || this._dateAdapter.compareDate(max, controlValue) >= 0
|
|
2572
|
+
? null
|
|
2573
|
+
: { 'matDatepickerMax': { 'max': max, 'actual': controlValue } };
|
|
2513
2574
|
};
|
|
2514
2575
|
/** Whether the last value set on the input was valid. */
|
|
2515
2576
|
this._lastValueValid = false;
|
|
@@ -2534,7 +2595,9 @@ class MatDatepickerInputBase {
|
|
|
2534
2595
|
this._assignValueProgrammatically(value);
|
|
2535
2596
|
}
|
|
2536
2597
|
/** Whether the datepicker-input is disabled. */
|
|
2537
|
-
get disabled() {
|
|
2598
|
+
get disabled() {
|
|
2599
|
+
return !!this._disabled || this._parentDisabled();
|
|
2600
|
+
}
|
|
2538
2601
|
set disabled(value) {
|
|
2539
2602
|
const newValue = coerceBooleanProperty(value);
|
|
2540
2603
|
const element = this._elementRef.nativeElement;
|
|
@@ -2654,8 +2717,9 @@ class MatDatepickerInputBase {
|
|
|
2654
2717
|
}
|
|
2655
2718
|
/** Formats a value and sets it on the input element. */
|
|
2656
2719
|
_formatValue(value) {
|
|
2657
|
-
this._elementRef.nativeElement.value =
|
|
2658
|
-
|
|
2720
|
+
this._elementRef.nativeElement.value = value
|
|
2721
|
+
? this._dateAdapter.format(value, this._dateFormats.display.dateInput)
|
|
2722
|
+
: '';
|
|
2659
2723
|
}
|
|
2660
2724
|
/** Assigns a value to the model. */
|
|
2661
2725
|
_assignValue(value) {
|
|
@@ -2694,9 +2758,9 @@ class MatDatepickerInputBase {
|
|
|
2694
2758
|
return !filter || filter(value);
|
|
2695
2759
|
}
|
|
2696
2760
|
}
|
|
2697
|
-
MatDatepickerInputBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2698
|
-
MatDatepickerInputBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2761
|
+
MatDatepickerInputBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerInputBase, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2762
|
+
MatDatepickerInputBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepickerInputBase, inputs: { value: "value", disabled: "disabled" }, outputs: { dateChange: "dateChange", dateInput: "dateInput" }, usesOnChanges: true, ngImport: i0 });
|
|
2763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerInputBase, decorators: [{
|
|
2700
2764
|
type: Directive
|
|
2701
2765
|
}], ctorParameters: function () {
|
|
2702
2766
|
return [{ type: i0.ElementRef }, { type: i1$1.DateAdapter, decorators: [{
|
|
@@ -2747,13 +2811,13 @@ function dateInputsHaveChanged(changes, adapter) {
|
|
|
2747
2811
|
const MAT_DATEPICKER_VALUE_ACCESSOR = {
|
|
2748
2812
|
provide: NG_VALUE_ACCESSOR,
|
|
2749
2813
|
useExisting: forwardRef(() => MatDatepickerInput),
|
|
2750
|
-
multi: true
|
|
2814
|
+
multi: true,
|
|
2751
2815
|
};
|
|
2752
2816
|
/** @docs-private */
|
|
2753
2817
|
const MAT_DATEPICKER_VALIDATORS = {
|
|
2754
2818
|
provide: NG_VALIDATORS,
|
|
2755
2819
|
useExisting: forwardRef(() => MatDatepickerInput),
|
|
2756
|
-
multi: true
|
|
2820
|
+
multi: true,
|
|
2757
2821
|
};
|
|
2758
2822
|
/** Directive used to connect an input to a MatDatepicker. */
|
|
2759
2823
|
class MatDatepickerInput extends MatDatepickerInputBase {
|
|
@@ -2772,7 +2836,9 @@ class MatDatepickerInput extends MatDatepickerInputBase {
|
|
|
2772
2836
|
}
|
|
2773
2837
|
}
|
|
2774
2838
|
/** The minimum valid date. */
|
|
2775
|
-
get min() {
|
|
2839
|
+
get min() {
|
|
2840
|
+
return this._min;
|
|
2841
|
+
}
|
|
2776
2842
|
set min(value) {
|
|
2777
2843
|
const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
2778
2844
|
if (!this._dateAdapter.sameDate(validValue, this._min)) {
|
|
@@ -2781,7 +2847,9 @@ class MatDatepickerInput extends MatDatepickerInputBase {
|
|
|
2781
2847
|
}
|
|
2782
2848
|
}
|
|
2783
2849
|
/** The maximum valid date. */
|
|
2784
|
-
get max() {
|
|
2850
|
+
get max() {
|
|
2851
|
+
return this._max;
|
|
2852
|
+
}
|
|
2785
2853
|
set max(value) {
|
|
2786
2854
|
const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
2787
2855
|
if (!this._dateAdapter.sameDate(validValue, this._max)) {
|
|
@@ -2790,7 +2858,9 @@ class MatDatepickerInput extends MatDatepickerInputBase {
|
|
|
2790
2858
|
}
|
|
2791
2859
|
}
|
|
2792
2860
|
/** Function that can be used to filter out dates within the datepicker. */
|
|
2793
|
-
get dateFilter() {
|
|
2861
|
+
get dateFilter() {
|
|
2862
|
+
return this._dateFilter;
|
|
2863
|
+
}
|
|
2794
2864
|
set dateFilter(value) {
|
|
2795
2865
|
const wasMatchingValue = this._matchesFilter(this.value);
|
|
2796
2866
|
this._dateFilter = value;
|
|
@@ -2854,13 +2924,13 @@ class MatDatepickerInput extends MatDatepickerInputBase {
|
|
|
2854
2924
|
return event.source !== this;
|
|
2855
2925
|
}
|
|
2856
2926
|
}
|
|
2857
|
-
MatDatepickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2858
|
-
MatDatepickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2927
|
+
MatDatepickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerInput, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2928
|
+
MatDatepickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepickerInput, selector: "input[matDatepicker]", inputs: { matDatepicker: "matDatepicker", min: "min", max: "max", dateFilter: ["matDatepickerFilter", "dateFilter"] }, host: { listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "blur": "_onBlur()", "keydown": "_onKeydown($event)" }, properties: { "attr.aria-haspopup": "_datepicker ? \"dialog\" : null", "attr.aria-owns": "(_datepicker?.opened && _datepicker.id) || null", "attr.min": "min ? _dateAdapter.toIso8601(min) : null", "attr.max": "max ? _dateAdapter.toIso8601(max) : null", "attr.data-mat-calendar": "_datepicker ? _datepicker.id : null", "disabled": "disabled" }, classAttribute: "mat-datepicker-input" }, providers: [
|
|
2859
2929
|
MAT_DATEPICKER_VALUE_ACCESSOR,
|
|
2860
2930
|
MAT_DATEPICKER_VALIDATORS,
|
|
2861
2931
|
{ provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput },
|
|
2862
2932
|
], exportAs: ["matDatepickerInput"], usesInheritance: true, ngImport: i0 });
|
|
2863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerInput, decorators: [{
|
|
2864
2934
|
type: Directive,
|
|
2865
2935
|
args: [{
|
|
2866
2936
|
selector: 'input[matDatepicker]',
|
|
@@ -2921,12 +2991,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
2921
2991
|
/** Can be used to override the icon of a `matDatepickerToggle`. */
|
|
2922
2992
|
class MatDatepickerToggleIcon {
|
|
2923
2993
|
}
|
|
2924
|
-
MatDatepickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2925
|
-
MatDatepickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
2926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
2994
|
+
MatDatepickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2995
|
+
MatDatepickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepickerToggleIcon, selector: "[matDatepickerToggleIcon]", ngImport: i0 });
|
|
2996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerToggleIcon, decorators: [{
|
|
2927
2997
|
type: Directive,
|
|
2928
2998
|
args: [{
|
|
2929
|
-
selector: '[matDatepickerToggleIcon]'
|
|
2999
|
+
selector: '[matDatepickerToggleIcon]',
|
|
2930
3000
|
}]
|
|
2931
3001
|
}] });
|
|
2932
3002
|
class MatDatepickerToggle {
|
|
@@ -2935,7 +3005,7 @@ class MatDatepickerToggle {
|
|
|
2935
3005
|
this._changeDetectorRef = _changeDetectorRef;
|
|
2936
3006
|
this._stateChanges = Subscription.EMPTY;
|
|
2937
3007
|
const parsedTabIndex = Number(defaultTabIndex);
|
|
2938
|
-
this.tabIndex =
|
|
3008
|
+
this.tabIndex = parsedTabIndex || parsedTabIndex === 0 ? parsedTabIndex : null;
|
|
2939
3009
|
}
|
|
2940
3010
|
/** Whether the toggle button is disabled. */
|
|
2941
3011
|
get disabled() {
|
|
@@ -2966,18 +3036,19 @@ class MatDatepickerToggle {
|
|
|
2966
3036
|
}
|
|
2967
3037
|
_watchStateChanges() {
|
|
2968
3038
|
const datepickerStateChanged = this.datepicker ? this.datepicker.stateChanges : of();
|
|
2969
|
-
const inputStateChanged = this.datepicker && this.datepicker.datepickerInput
|
|
2970
|
-
this.datepicker.datepickerInput.stateChanges
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
3039
|
+
const inputStateChanged = this.datepicker && this.datepicker.datepickerInput
|
|
3040
|
+
? this.datepicker.datepickerInput.stateChanges
|
|
3041
|
+
: of();
|
|
3042
|
+
const datepickerToggled = this.datepicker
|
|
3043
|
+
? merge(this.datepicker.openedStream, this.datepicker.closedStream)
|
|
3044
|
+
: of();
|
|
2974
3045
|
this._stateChanges.unsubscribe();
|
|
2975
3046
|
this._stateChanges = merge(this._intl.changes, datepickerStateChanged, inputStateChanged, datepickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());
|
|
2976
3047
|
}
|
|
2977
3048
|
}
|
|
2978
|
-
MatDatepickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
2979
|
-
MatDatepickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
2980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3049
|
+
MatDatepickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerToggle, deps: [{ token: MatDatepickerIntl }, { token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
3050
|
+
MatDatepickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: { datepicker: ["for", "datepicker"], tabIndex: "tabIndex", ariaLabel: ["aria-label", "ariaLabel"], disabled: "disabled", disableRipple: "disableRipple" }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null", "class.mat-datepicker-toggle-active": "datepicker && datepicker.opened", "class.mat-accent": "datepicker && datepicker.color === \"accent\"", "class.mat-warn": "datepicker && datepicker.color === \"warn\"", "attr.data-mat-calendar": "datepicker ? datepicker.id : null" }, classAttribute: "mat-datepicker-toggle" }, queries: [{ propertyName: "_customIcon", first: true, predicate: MatDatepickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "_button", first: true, predicate: ["button"], descendants: true }], exportAs: ["matDatepickerToggle"], usesOnChanges: true, ngImport: i0, template: "<button\n #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"datepicker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel || _intl.openCalendarLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\n\n <svg\n *ngIf=\"!_customIcon\"\n class=\"mat-datepicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path d=\"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z\"/>\n </svg>\n\n <ng-content select=\"[matDatepickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"], components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerToggle, decorators: [{
|
|
2981
3052
|
type: Component,
|
|
2982
3053
|
args: [{ selector: 'mat-datepicker-toggle', host: {
|
|
2983
3054
|
'class': 'mat-datepicker-toggle',
|
|
@@ -3103,14 +3174,15 @@ class MatDateRangeInputPartBase extends MatDatepickerInputBase {
|
|
|
3103
3174
|
}
|
|
3104
3175
|
_assignValueProgrammatically(value) {
|
|
3105
3176
|
super._assignValueProgrammatically(value);
|
|
3106
|
-
const opposite = (this === this._rangeInput._startInput
|
|
3107
|
-
this._rangeInput.
|
|
3177
|
+
const opposite = (this === this._rangeInput._startInput
|
|
3178
|
+
? this._rangeInput._endInput
|
|
3179
|
+
: this._rangeInput._startInput);
|
|
3108
3180
|
opposite === null || opposite === void 0 ? void 0 : opposite._validatorOnChange();
|
|
3109
3181
|
}
|
|
3110
3182
|
}
|
|
3111
|
-
MatDateRangeInputPartBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3112
|
-
MatDateRangeInputPartBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3183
|
+
MatDateRangeInputPartBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDateRangeInputPartBase, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$2.NgForm, optional: true }, { token: i2$2.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3184
|
+
MatDateRangeInputPartBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDateRangeInputPartBase, usesInheritance: true, ngImport: i0 });
|
|
3185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDateRangeInputPartBase, decorators: [{
|
|
3114
3186
|
type: Directive
|
|
3115
3187
|
}], ctorParameters: function () {
|
|
3116
3188
|
return [{ type: undefined, decorators: [{
|
|
@@ -3141,9 +3213,9 @@ class MatStartDate extends _MatDateRangeInputBase {
|
|
|
3141
3213
|
this._startValidator = (control) => {
|
|
3142
3214
|
const start = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
|
|
3143
3215
|
const end = this._model ? this._model.selection.end : null;
|
|
3144
|
-
return
|
|
3145
|
-
|
|
3146
|
-
|
|
3216
|
+
return !start || !end || this._dateAdapter.compareDate(start, end) <= 0
|
|
3217
|
+
? null
|
|
3218
|
+
: { 'matStartDateInvalid': { 'end': end, 'actual': start } };
|
|
3147
3219
|
};
|
|
3148
3220
|
this._validator = Validators.compose([...super._getValidators(), this._startValidator]);
|
|
3149
3221
|
}
|
|
@@ -3174,8 +3246,9 @@ class MatStartDate extends _MatDateRangeInputBase {
|
|
|
3174
3246
|
return false;
|
|
3175
3247
|
}
|
|
3176
3248
|
else {
|
|
3177
|
-
return !((_a = change.oldValue) === null || _a === void 0 ? void 0 : _a.start)
|
|
3178
|
-
|
|
3249
|
+
return !((_a = change.oldValue) === null || _a === void 0 ? void 0 : _a.start)
|
|
3250
|
+
? !!change.selection.start
|
|
3251
|
+
: !change.selection.start ||
|
|
3179
3252
|
!!this._dateAdapter.compareDate(change.oldValue.start, change.selection.start);
|
|
3180
3253
|
}
|
|
3181
3254
|
}
|
|
@@ -3197,12 +3270,12 @@ class MatStartDate extends _MatDateRangeInputBase {
|
|
|
3197
3270
|
return value.length > 0 ? value : element.placeholder;
|
|
3198
3271
|
}
|
|
3199
3272
|
}
|
|
3200
|
-
MatStartDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3201
|
-
MatStartDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3273
|
+
MatStartDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatStartDate, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$2.NgForm, optional: true }, { token: i2$2.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3274
|
+
MatStartDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatStartDate, selector: "input[matStartDate]", inputs: { errorStateMatcher: "errorStateMatcher" }, outputs: { dateChange: "dateChange", dateInput: "dateInput" }, host: { attributes: { "type": "text" }, listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "keydown": "_onKeydown($event)", "blur": "_onBlur()" }, properties: { "disabled": "disabled", "attr.id": "_rangeInput.id", "attr.aria-haspopup": "_rangeInput.rangePicker ? \"dialog\" : null", "attr.aria-owns": "(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null", "attr.min": "_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null", "attr.max": "_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null" }, classAttribute: "mat-start-date mat-date-range-input-inner" }, providers: [
|
|
3202
3275
|
{ provide: NG_VALUE_ACCESSOR, useExisting: MatStartDate, multi: true },
|
|
3203
|
-
{ provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true }
|
|
3276
|
+
{ provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true },
|
|
3204
3277
|
], usesInheritance: true, ngImport: i0 });
|
|
3205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatStartDate, decorators: [{
|
|
3206
3279
|
type: Directive,
|
|
3207
3280
|
args: [{
|
|
3208
3281
|
selector: 'input[matStartDate]',
|
|
@@ -3222,12 +3295,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3222
3295
|
},
|
|
3223
3296
|
providers: [
|
|
3224
3297
|
{ provide: NG_VALUE_ACCESSOR, useExisting: MatStartDate, multi: true },
|
|
3225
|
-
{ provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true }
|
|
3298
|
+
{ provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true },
|
|
3226
3299
|
],
|
|
3227
3300
|
// These need to be specified explicitly, because some tooling doesn't
|
|
3228
3301
|
// seem to pick them up from the base class. See #20932.
|
|
3229
3302
|
outputs: ['dateChange', 'dateInput'],
|
|
3230
|
-
inputs: ['errorStateMatcher']
|
|
3303
|
+
inputs: ['errorStateMatcher'],
|
|
3231
3304
|
}]
|
|
3232
3305
|
}], ctorParameters: function () {
|
|
3233
3306
|
return [{ type: undefined, decorators: [{
|
|
@@ -3257,9 +3330,9 @@ class MatEndDate extends _MatDateRangeInputBase {
|
|
|
3257
3330
|
this._endValidator = (control) => {
|
|
3258
3331
|
const end = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));
|
|
3259
3332
|
const start = this._model ? this._model.selection.start : null;
|
|
3260
|
-
return
|
|
3261
|
-
|
|
3262
|
-
|
|
3333
|
+
return !end || !start || this._dateAdapter.compareDate(end, start) >= 0
|
|
3334
|
+
? null
|
|
3335
|
+
: { 'matEndDateInvalid': { 'start': start, 'actual': end } };
|
|
3263
3336
|
};
|
|
3264
3337
|
this._validator = Validators.compose([...super._getValidators(), this._endValidator]);
|
|
3265
3338
|
}
|
|
@@ -3290,8 +3363,9 @@ class MatEndDate extends _MatDateRangeInputBase {
|
|
|
3290
3363
|
return false;
|
|
3291
3364
|
}
|
|
3292
3365
|
else {
|
|
3293
|
-
return !((_a = change.oldValue) === null || _a === void 0 ? void 0 : _a.end)
|
|
3294
|
-
|
|
3366
|
+
return !((_a = change.oldValue) === null || _a === void 0 ? void 0 : _a.end)
|
|
3367
|
+
? !!change.selection.end
|
|
3368
|
+
: !change.selection.end ||
|
|
3295
3369
|
!!this._dateAdapter.compareDate(change.oldValue.end, change.selection.end);
|
|
3296
3370
|
}
|
|
3297
3371
|
}
|
|
@@ -3309,12 +3383,12 @@ class MatEndDate extends _MatDateRangeInputBase {
|
|
|
3309
3383
|
super._onKeydown(event);
|
|
3310
3384
|
}
|
|
3311
3385
|
}
|
|
3312
|
-
MatEndDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3313
|
-
MatEndDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3386
|
+
MatEndDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatEndDate, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$2.NgForm, optional: true }, { token: i2$2.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3387
|
+
MatEndDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatEndDate, selector: "input[matEndDate]", inputs: { errorStateMatcher: "errorStateMatcher" }, outputs: { dateChange: "dateChange", dateInput: "dateInput" }, host: { attributes: { "type": "text" }, listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "keydown": "_onKeydown($event)", "blur": "_onBlur()" }, properties: { "disabled": "disabled", "attr.aria-haspopup": "_rangeInput.rangePicker ? \"dialog\" : null", "attr.aria-owns": "(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null", "attr.min": "_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null", "attr.max": "_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null" }, classAttribute: "mat-end-date mat-date-range-input-inner" }, providers: [
|
|
3314
3388
|
{ provide: NG_VALUE_ACCESSOR, useExisting: MatEndDate, multi: true },
|
|
3315
|
-
{ provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true }
|
|
3389
|
+
{ provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true },
|
|
3316
3390
|
], usesInheritance: true, ngImport: i0 });
|
|
3317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatEndDate, decorators: [{
|
|
3318
3392
|
type: Directive,
|
|
3319
3393
|
args: [{
|
|
3320
3394
|
selector: 'input[matEndDate]',
|
|
@@ -3333,12 +3407,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3333
3407
|
},
|
|
3334
3408
|
providers: [
|
|
3335
3409
|
{ provide: NG_VALUE_ACCESSOR, useExisting: MatEndDate, multi: true },
|
|
3336
|
-
{ provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true }
|
|
3410
|
+
{ provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true },
|
|
3337
3411
|
],
|
|
3338
3412
|
// These need to be specified explicitly, because some tooling doesn't
|
|
3339
3413
|
// seem to pick them up from the base class. See #20932.
|
|
3340
3414
|
outputs: ['dateChange', 'dateInput'],
|
|
3341
|
-
inputs: ['errorStateMatcher']
|
|
3415
|
+
inputs: ['errorStateMatcher'],
|
|
3342
3416
|
}]
|
|
3343
3417
|
}], ctorParameters: function () {
|
|
3344
3418
|
return [{ type: undefined, decorators: [{
|
|
@@ -3420,10 +3494,12 @@ class MatDateRangeInput {
|
|
|
3420
3494
|
var _a, _b;
|
|
3421
3495
|
const start = ((_a = this._startInput) === null || _a === void 0 ? void 0 : _a._getPlaceholder()) || '';
|
|
3422
3496
|
const end = ((_b = this._endInput) === null || _b === void 0 ? void 0 : _b._getPlaceholder()) || '';
|
|
3423
|
-
return
|
|
3497
|
+
return start || end ? `${start} ${this.separator} ${end}` : '';
|
|
3424
3498
|
}
|
|
3425
3499
|
/** The range picker that this input is associated with. */
|
|
3426
|
-
get rangePicker() {
|
|
3500
|
+
get rangePicker() {
|
|
3501
|
+
return this._rangePicker;
|
|
3502
|
+
}
|
|
3427
3503
|
set rangePicker(rangePicker) {
|
|
3428
3504
|
if (rangePicker) {
|
|
3429
3505
|
this._model = rangePicker.registerInput(this);
|
|
@@ -3438,12 +3514,16 @@ class MatDateRangeInput {
|
|
|
3438
3514
|
}
|
|
3439
3515
|
}
|
|
3440
3516
|
/** Whether the input is required. */
|
|
3441
|
-
get required() {
|
|
3517
|
+
get required() {
|
|
3518
|
+
return !!this._required;
|
|
3519
|
+
}
|
|
3442
3520
|
set required(value) {
|
|
3443
3521
|
this._required = coerceBooleanProperty(value);
|
|
3444
3522
|
}
|
|
3445
3523
|
/** Function that can be used to filter out dates within the date range picker. */
|
|
3446
|
-
get dateFilter() {
|
|
3524
|
+
get dateFilter() {
|
|
3525
|
+
return this._dateFilter;
|
|
3526
|
+
}
|
|
3447
3527
|
set dateFilter(value) {
|
|
3448
3528
|
const start = this._startInput;
|
|
3449
3529
|
const end = this._endInput;
|
|
@@ -3458,7 +3538,9 @@ class MatDateRangeInput {
|
|
|
3458
3538
|
}
|
|
3459
3539
|
}
|
|
3460
3540
|
/** The minimum valid date. */
|
|
3461
|
-
get min() {
|
|
3541
|
+
get min() {
|
|
3542
|
+
return this._min;
|
|
3543
|
+
}
|
|
3462
3544
|
set min(value) {
|
|
3463
3545
|
const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
3464
3546
|
if (!this._dateAdapter.sameDate(validValue, this._min)) {
|
|
@@ -3467,7 +3549,9 @@ class MatDateRangeInput {
|
|
|
3467
3549
|
}
|
|
3468
3550
|
}
|
|
3469
3551
|
/** The maximum valid date. */
|
|
3470
|
-
get max() {
|
|
3552
|
+
get max() {
|
|
3553
|
+
return this._max;
|
|
3554
|
+
}
|
|
3471
3555
|
set max(value) {
|
|
3472
3556
|
const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
3473
3557
|
if (!this._dateAdapter.sameDate(validValue, this._max)) {
|
|
@@ -3477,9 +3561,9 @@ class MatDateRangeInput {
|
|
|
3477
3561
|
}
|
|
3478
3562
|
/** Whether the input is disabled. */
|
|
3479
3563
|
get disabled() {
|
|
3480
|
-
return
|
|
3481
|
-
|
|
3482
|
-
this._groupDisabled;
|
|
3564
|
+
return this._startInput && this._endInput
|
|
3565
|
+
? this._startInput.disabled && this._endInput.disabled
|
|
3566
|
+
: this._groupDisabled;
|
|
3483
3567
|
}
|
|
3484
3568
|
set disabled(value) {
|
|
3485
3569
|
const newValue = coerceBooleanProperty(value);
|
|
@@ -3586,8 +3670,9 @@ class MatDateRangeInput {
|
|
|
3586
3670
|
}
|
|
3587
3671
|
/** Whether the separate text should be hidden. */
|
|
3588
3672
|
_shouldHideSeparator() {
|
|
3589
|
-
return (!this._formField ||
|
|
3590
|
-
!this._formField._shouldLabelFloat())) &&
|
|
3673
|
+
return ((!this._formField ||
|
|
3674
|
+
(this._formField.getLabelId() && !this._formField._shouldLabelFloat())) &&
|
|
3675
|
+
this.empty);
|
|
3591
3676
|
}
|
|
3592
3677
|
/** Gets the value for the `aria-labelledby` attribute of the inputs. */
|
|
3593
3678
|
_getAriaLabelledby() {
|
|
@@ -3618,12 +3703,12 @@ class MatDateRangeInput {
|
|
|
3618
3703
|
}
|
|
3619
3704
|
}
|
|
3620
3705
|
}
|
|
3621
|
-
MatDateRangeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3622
|
-
MatDateRangeInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
3706
|
+
MatDateRangeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDateRangeInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2$2.ControlContainer, optional: true, self: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
3707
|
+
MatDateRangeInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDateRangeInput, selector: "mat-date-range-input", inputs: { rangePicker: "rangePicker", required: "required", dateFilter: "dateFilter", min: "min", max: "max", disabled: "disabled", separator: "separator", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd" }, host: { attributes: { "role": "group" }, properties: { "class.mat-date-range-input-hide-placeholders": "_shouldHidePlaceholders()", "class.mat-date-range-input-required": "required", "attr.id": "null", "attr.aria-labelledby": "_getAriaLabelledby()", "attr.aria-describedby": "_ariaDescribedBy", "attr.data-mat-calendar": "rangePicker ? rangePicker.id : null" }, classAttribute: "mat-date-range-input" }, providers: [
|
|
3623
3708
|
{ provide: MatFormFieldControl, useExisting: MatDateRangeInput },
|
|
3624
3709
|
{ provide: MAT_DATE_RANGE_INPUT_PARENT, useExisting: MatDateRangeInput },
|
|
3625
3710
|
], queries: [{ propertyName: "_startInput", first: true, predicate: MatStartDate, descendants: true }, { propertyName: "_endInput", first: true, predicate: MatEndDate, descendants: true }], exportAs: ["matDateRangeInput"], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"mat-date-range-input-container\"\n cdkMonitorSubtreeFocus\n (cdkFocusChange)=\"_updateFocus($event)\">\n <div class=\"mat-date-range-input-start-wrapper\">\n <ng-content select=\"input[matStartDate]\"></ng-content>\n <span\n class=\"mat-date-range-input-mirror\"\n aria-hidden=\"true\">{{_getInputMirrorValue()}}</span>\n </div>\n\n <span\n class=\"mat-date-range-input-separator\"\n [class.mat-date-range-input-separator-hidden]=\"_shouldHideSeparator()\">{{separator}}</span>\n\n <div class=\"mat-date-range-input-end-wrapper\">\n <ng-content select=\"input[matEndDate]\"></ng-content>\n </div>\n</div>\n\n", styles: [".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"], directives: [{ type: i4.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDateRangeInput, decorators: [{
|
|
3627
3712
|
type: Component,
|
|
3628
3713
|
args: [{ selector: 'mat-date-range-input', exportAs: 'matDateRangeInput', host: {
|
|
3629
3714
|
'class': 'mat-date-range-input',
|
|
@@ -3700,13 +3785,13 @@ class MatDateRangePicker extends MatDatepickerBase {
|
|
|
3700
3785
|
}
|
|
3701
3786
|
}
|
|
3702
3787
|
}
|
|
3703
|
-
MatDateRangePicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3704
|
-
MatDateRangePicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
3788
|
+
MatDateRangePicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDateRangePicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3789
|
+
MatDateRangePicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDateRangePicker, selector: "mat-date-range-picker", providers: [
|
|
3705
3790
|
MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER,
|
|
3706
3791
|
MAT_CALENDAR_RANGE_STRATEGY_PROVIDER,
|
|
3707
3792
|
{ provide: MatDatepickerBase, useExisting: MatDateRangePicker },
|
|
3708
3793
|
], exportAs: ["matDateRangePicker"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDateRangePicker, decorators: [{
|
|
3710
3795
|
type: Component,
|
|
3711
3796
|
args: [{
|
|
3712
3797
|
selector: 'mat-date-range-picker',
|
|
@@ -3718,7 +3803,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3718
3803
|
MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER,
|
|
3719
3804
|
MAT_CALENDAR_RANGE_STRATEGY_PROVIDER,
|
|
3720
3805
|
{ provide: MatDatepickerBase, useExisting: MatDateRangePicker },
|
|
3721
|
-
]
|
|
3806
|
+
],
|
|
3722
3807
|
}]
|
|
3723
3808
|
}] });
|
|
3724
3809
|
|
|
@@ -3739,13 +3824,13 @@ class MatDatepickerApply {
|
|
|
3739
3824
|
this._datepicker.close();
|
|
3740
3825
|
}
|
|
3741
3826
|
}
|
|
3742
|
-
MatDatepickerApply.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3743
|
-
MatDatepickerApply.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3827
|
+
MatDatepickerApply.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerApply, deps: [{ token: MatDatepickerBase }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3828
|
+
MatDatepickerApply.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepickerApply, selector: "[matDatepickerApply], [matDateRangePickerApply]", host: { listeners: { "click": "_applySelection()" } }, ngImport: i0 });
|
|
3829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerApply, decorators: [{
|
|
3745
3830
|
type: Directive,
|
|
3746
3831
|
args: [{
|
|
3747
3832
|
selector: '[matDatepickerApply], [matDateRangePickerApply]',
|
|
3748
|
-
host: { '(click)': '_applySelection()' }
|
|
3833
|
+
host: { '(click)': '_applySelection()' },
|
|
3749
3834
|
}]
|
|
3750
3835
|
}], ctorParameters: function () { return [{ type: MatDatepickerBase }]; } });
|
|
3751
3836
|
/** Button that will close the datepicker and discard the current selection. */
|
|
@@ -3754,13 +3839,13 @@ class MatDatepickerCancel {
|
|
|
3754
3839
|
this._datepicker = _datepicker;
|
|
3755
3840
|
}
|
|
3756
3841
|
}
|
|
3757
|
-
MatDatepickerCancel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3758
|
-
MatDatepickerCancel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-
|
|
3759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3842
|
+
MatDatepickerCancel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerCancel, deps: [{ token: MatDatepickerBase }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3843
|
+
MatDatepickerCancel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepickerCancel, selector: "[matDatepickerCancel], [matDateRangePickerCancel]", host: { listeners: { "click": "_datepicker.close()" } }, ngImport: i0 });
|
|
3844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerCancel, decorators: [{
|
|
3760
3845
|
type: Directive,
|
|
3761
3846
|
args: [{
|
|
3762
3847
|
selector: '[matDatepickerCancel], [matDateRangePickerCancel]',
|
|
3763
|
-
host: { '(click)': '_datepicker.close()' }
|
|
3848
|
+
host: { '(click)': '_datepicker.close()' },
|
|
3764
3849
|
}]
|
|
3765
3850
|
}], ctorParameters: function () { return [{ type: MatDatepickerBase }]; } });
|
|
3766
3851
|
/**
|
|
@@ -3785,15 +3870,15 @@ class MatDatepickerActions {
|
|
|
3785
3870
|
}
|
|
3786
3871
|
}
|
|
3787
3872
|
}
|
|
3788
|
-
MatDatepickerActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3789
|
-
MatDatepickerActions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-
|
|
3873
|
+
MatDatepickerActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerActions, deps: [{ token: MatDatepickerBase }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3874
|
+
MatDatepickerActions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: MatDatepickerActions, selector: "mat-datepicker-actions, mat-date-range-picker-actions", viewQueries: [{ propertyName: "_template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `
|
|
3790
3875
|
<ng-template>
|
|
3791
3876
|
<div class="mat-datepicker-actions">
|
|
3792
3877
|
<ng-content></ng-content>
|
|
3793
3878
|
</div>
|
|
3794
3879
|
</ng-template>
|
|
3795
3880
|
`, isInline: true, styles: [".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerActions, decorators: [{
|
|
3797
3882
|
type: Component,
|
|
3798
3883
|
args: [{ selector: 'mat-datepicker-actions, mat-date-range-picker-actions', template: `
|
|
3799
3884
|
<ng-template>
|
|
@@ -3816,8 +3901,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3816
3901
|
*/
|
|
3817
3902
|
class MatDatepickerModule {
|
|
3818
3903
|
}
|
|
3819
|
-
MatDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-
|
|
3820
|
-
MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-
|
|
3904
|
+
MatDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3905
|
+
MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerModule, declarations: [MatCalendar,
|
|
3821
3906
|
MatCalendarBody,
|
|
3822
3907
|
MatDatepicker,
|
|
3823
3908
|
MatDatepickerContent,
|
|
@@ -3858,10 +3943,7 @@ MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
3858
3943
|
MatDatepickerActions,
|
|
3859
3944
|
MatDatepickerCancel,
|
|
3860
3945
|
MatDatepickerApply] });
|
|
3861
|
-
MatDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-
|
|
3862
|
-
MatDatepickerIntl,
|
|
3863
|
-
MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER
|
|
3864
|
-
], imports: [[
|
|
3946
|
+
MatDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerModule, providers: [MatDatepickerIntl, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[
|
|
3865
3947
|
CommonModule,
|
|
3866
3948
|
MatButtonModule,
|
|
3867
3949
|
OverlayModule,
|
|
@@ -3869,7 +3951,7 @@ MatDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
3869
3951
|
PortalModule,
|
|
3870
3952
|
MatCommonModule,
|
|
3871
3953
|
], CdkScrollableModule] });
|
|
3872
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-
|
|
3954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: MatDatepickerModule, decorators: [{
|
|
3873
3955
|
type: NgModule,
|
|
3874
3956
|
args: [{
|
|
3875
3957
|
imports: [
|
|
@@ -3899,7 +3981,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3899
3981
|
MatDateRangePicker,
|
|
3900
3982
|
MatDatepickerActions,
|
|
3901
3983
|
MatDatepickerCancel,
|
|
3902
|
-
MatDatepickerApply
|
|
3984
|
+
MatDatepickerApply,
|
|
3903
3985
|
],
|
|
3904
3986
|
declarations: [
|
|
3905
3987
|
MatCalendar,
|
|
@@ -3919,16 +4001,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3919
4001
|
MatDateRangePicker,
|
|
3920
4002
|
MatDatepickerActions,
|
|
3921
4003
|
MatDatepickerCancel,
|
|
3922
|
-
MatDatepickerApply
|
|
3923
|
-
],
|
|
3924
|
-
providers: [
|
|
3925
|
-
MatDatepickerIntl,
|
|
3926
|
-
MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER
|
|
4004
|
+
MatDatepickerApply,
|
|
3927
4005
|
],
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
MatCalendarHeader,
|
|
3931
|
-
]
|
|
4006
|
+
providers: [MatDatepickerIntl, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER],
|
|
4007
|
+
entryComponents: [MatDatepickerContent, MatCalendarHeader],
|
|
3932
4008
|
}]
|
|
3933
4009
|
}] });
|
|
3934
4010
|
|
|
@@ -3940,6 +4016,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
3940
4016
|
* found in the LICENSE file at https://angular.io/license
|
|
3941
4017
|
*/
|
|
3942
4018
|
|
|
4019
|
+
/**
|
|
4020
|
+
* @license
|
|
4021
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4022
|
+
*
|
|
4023
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
4024
|
+
* found in the LICENSE file at https://angular.io/license
|
|
4025
|
+
*/
|
|
4026
|
+
|
|
3943
4027
|
/**
|
|
3944
4028
|
* Generated bundle index. Do not edit.
|
|
3945
4029
|
*/
|