@angular/material 15.1.0-rc.0 → 15.1.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/core/mdc-helpers/_mdc-helpers.scss +8 -7
- package/core/typography/_all-typography.scss +47 -51
- package/esm2020/autocomplete/autocomplete-origin.mjs +7 -7
- package/esm2020/autocomplete/autocomplete-trigger.mjs +17 -17
- package/esm2020/autocomplete/autocomplete.mjs +36 -36
- package/esm2020/autocomplete/module.mjs +5 -5
- package/esm2020/badge/badge-module.mjs +5 -5
- package/esm2020/badge/badge.mjs +31 -31
- package/esm2020/bottom-sheet/bottom-sheet-container.mjs +4 -4
- package/esm2020/bottom-sheet/bottom-sheet-module.mjs +5 -5
- package/esm2020/bottom-sheet/bottom-sheet-ref.mjs +5 -5
- package/esm2020/bottom-sheet/bottom-sheet.mjs +11 -11
- package/esm2020/button/button-base.mjs +7 -7
- package/esm2020/button/button.mjs +7 -7
- package/esm2020/button/fab.mjs +25 -25
- package/esm2020/button/icon-button.mjs +7 -7
- package/esm2020/button/module.mjs +5 -5
- package/esm2020/button-toggle/button-toggle-module.mjs +5 -5
- package/esm2020/button-toggle/button-toggle.mjs +50 -50
- package/esm2020/card/card.mjs +43 -43
- package/esm2020/card/module.mjs +5 -5
- package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2020/checkbox/checkbox.mjs +18 -18
- package/esm2020/checkbox/module.mjs +9 -9
- package/esm2020/chips/chip-action.mjs +21 -21
- package/esm2020/chips/chip-edit-input.mjs +4 -4
- package/esm2020/chips/chip-grid.mjs +39 -39
- package/esm2020/chips/chip-icons.mjs +10 -10
- package/esm2020/chips/chip-input.mjs +28 -28
- package/esm2020/chips/chip-listbox.mjs +4 -4
- package/esm2020/chips/chip-option.mjs +4 -4
- package/esm2020/chips/chip-row.mjs +4 -4
- package/esm2020/chips/chip-set.mjs +20 -20
- package/esm2020/chips/chip.mjs +36 -36
- package/esm2020/chips/module.mjs +5 -5
- package/esm2020/core/common-behaviors/color.mjs +7 -7
- package/esm2020/core/common-behaviors/common-module.mjs +5 -5
- package/esm2020/core/common-behaviors/disable-ripple.mjs +5 -5
- package/esm2020/core/common-behaviors/disabled.mjs +5 -5
- package/esm2020/core/common-behaviors/error-state.mjs +6 -6
- package/esm2020/core/common-behaviors/tabindex.mjs +6 -6
- package/esm2020/core/datetime/index.mjs +9 -9
- package/esm2020/core/datetime/native-date-adapter.mjs +4 -4
- package/esm2020/core/error/error-options.mjs +7 -7
- package/esm2020/core/line/line.mjs +8 -8
- package/esm2020/core/option/index.mjs +5 -5
- package/esm2020/core/option/optgroup.mjs +7 -7
- package/esm2020/core/option/option.mjs +24 -24
- package/esm2020/core/ripple/index.mjs +5 -5
- package/esm2020/core/ripple/ripple.mjs +19 -19
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +10 -10
- package/esm2020/datepicker/calendar.mjs +58 -58
- package/esm2020/datepicker/date-range-input-parts.mjs +10 -10
- package/esm2020/datepicker/date-range-input.mjs +40 -40
- package/esm2020/datepicker/date-range-picker.mjs +4 -4
- package/esm2020/datepicker/date-range-selection-strategy.mjs +4 -4
- package/esm2020/datepicker/date-selection-model.mjs +10 -10
- package/esm2020/datepicker/datepicker-actions.mjs +10 -10
- package/esm2020/datepicker/datepicker-base.mjs +56 -56
- package/esm2020/datepicker/datepicker-input-base.mjs +56 -56
- package/esm2020/datepicker/datepicker-input.mjs +10 -10
- package/esm2020/datepicker/datepicker-intl.mjs +4 -4
- package/esm2020/datepicker/datepicker-module.mjs +5 -5
- package/esm2020/datepicker/datepicker-toggle.mjs +14 -14
- package/esm2020/datepicker/datepicker.mjs +4 -4
- package/esm2020/datepicker/month-view.mjs +36 -36
- package/esm2020/datepicker/multi-year-view.mjs +20 -20
- package/esm2020/datepicker/year-view.mjs +26 -26
- package/esm2020/dialog/dialog-container.mjs +7 -7
- package/esm2020/dialog/dialog-content-directives.mjs +13 -13
- package/esm2020/dialog/dialog.mjs +19 -19
- package/esm2020/dialog/module.mjs +5 -5
- package/esm2020/divider/divider-module.mjs +5 -5
- package/esm2020/divider/divider.mjs +4 -4
- package/esm2020/expansion/accordion.mjs +4 -4
- package/esm2020/expansion/expansion-module.mjs +5 -5
- package/esm2020/expansion/expansion-panel-content.mjs +4 -4
- package/esm2020/expansion/expansion-panel-header.mjs +10 -10
- package/esm2020/expansion/expansion-panel.mjs +21 -21
- package/esm2020/form-field/directives/error.mjs +4 -4
- package/esm2020/form-field/directives/floating-label.mjs +4 -4
- package/esm2020/form-field/directives/hint.mjs +4 -4
- package/esm2020/form-field/directives/label.mjs +4 -4
- package/esm2020/form-field/directives/line-ripple.mjs +4 -4
- package/esm2020/form-field/directives/notched-outline.mjs +4 -4
- package/esm2020/form-field/directives/prefix.mjs +4 -4
- package/esm2020/form-field/directives/suffix.mjs +4 -4
- package/esm2020/form-field/form-field-control.mjs +4 -4
- package/esm2020/form-field/form-field.mjs +44 -44
- package/esm2020/form-field/module.mjs +5 -5
- package/esm2020/grid-list/grid-list-module.mjs +5 -5
- package/esm2020/grid-list/grid-list.mjs +4 -4
- package/esm2020/grid-list/grid-tile.mjs +16 -16
- package/esm2020/icon/icon-module.mjs +5 -5
- package/esm2020/icon/icon-registry.mjs +4 -4
- package/esm2020/icon/icon.mjs +27 -27
- package/esm2020/icon/testing/fake-icon-registry.mjs +8 -8
- package/esm2020/input/input.mjs +74 -74
- package/esm2020/input/module.mjs +5 -5
- package/esm2020/legacy-autocomplete/autocomplete-module.mjs +5 -5
- package/esm2020/legacy-autocomplete/autocomplete-origin.mjs +4 -4
- package/esm2020/legacy-autocomplete/autocomplete-trigger.mjs +4 -4
- package/esm2020/legacy-autocomplete/autocomplete.mjs +4 -4
- package/esm2020/legacy-button/button-module.mjs +5 -5
- package/esm2020/legacy-button/button.mjs +7 -7
- package/esm2020/legacy-card/card-module.mjs +5 -5
- package/esm2020/legacy-card/card.mjs +43 -43
- package/esm2020/legacy-checkbox/checkbox-module.mjs +5 -5
- package/esm2020/legacy-checkbox/checkbox.mjs +4 -4
- package/esm2020/legacy-chips/chip-input.mjs +25 -25
- package/esm2020/legacy-chips/chip-list.mjs +53 -53
- package/esm2020/legacy-chips/chip.mjs +54 -54
- package/esm2020/legacy-chips/chips-module.mjs +5 -5
- package/esm2020/legacy-core/option/index.mjs +5 -5
- package/esm2020/legacy-core/option/optgroup.mjs +4 -4
- package/esm2020/legacy-core/option/option.mjs +4 -4
- package/esm2020/legacy-dialog/dialog-container.mjs +10 -10
- package/esm2020/legacy-dialog/dialog-content-directives.mjs +13 -13
- package/esm2020/legacy-dialog/dialog-module.mjs +5 -5
- package/esm2020/legacy-dialog/dialog.mjs +4 -4
- package/esm2020/legacy-form-field/error.mjs +4 -4
- package/esm2020/legacy-form-field/form-field-module.mjs +5 -5
- package/esm2020/legacy-form-field/form-field.mjs +40 -40
- package/esm2020/legacy-form-field/hint.mjs +4 -4
- package/esm2020/legacy-form-field/label.mjs +4 -4
- package/esm2020/legacy-form-field/placeholder.mjs +4 -4
- package/esm2020/legacy-form-field/prefix.mjs +4 -4
- package/esm2020/legacy-form-field/suffix.mjs +4 -4
- package/esm2020/legacy-input/input-module.mjs +5 -5
- package/esm2020/legacy-input/input.mjs +4 -4
- package/esm2020/legacy-list/list-module.mjs +5 -5
- package/esm2020/legacy-list/list.mjs +19 -19
- package/esm2020/legacy-list/selection-list.mjs +57 -57
- package/esm2020/legacy-menu/menu-content.mjs +4 -4
- package/esm2020/legacy-menu/menu-item.mjs +4 -4
- package/esm2020/legacy-menu/menu-module.mjs +5 -5
- package/esm2020/legacy-menu/menu-trigger.mjs +4 -4
- package/esm2020/legacy-menu/menu.mjs +4 -4
- package/esm2020/legacy-paginator/paginator-module.mjs +5 -5
- package/esm2020/legacy-paginator/paginator.mjs +4 -4
- package/esm2020/legacy-progress-bar/progress-bar-module.mjs +5 -5
- package/esm2020/legacy-progress-bar/progress-bar.mjs +4 -4
- package/esm2020/legacy-progress-spinner/progress-spinner-module.mjs +5 -5
- package/esm2020/legacy-progress-spinner/progress-spinner.mjs +30 -30
- package/esm2020/legacy-radio/radio-module.mjs +5 -5
- package/esm2020/legacy-radio/radio.mjs +7 -7
- package/esm2020/legacy-select/select-module.mjs +5 -5
- package/esm2020/legacy-select/select.mjs +7 -7
- package/esm2020/legacy-slide-toggle/slide-toggle-module.mjs +5 -5
- package/esm2020/legacy-slide-toggle/slide-toggle.mjs +4 -4
- package/esm2020/legacy-slider/slider-module.mjs +5 -5
- package/esm2020/legacy-slider/slider.mjs +143 -143
- package/esm2020/legacy-snack-bar/simple-snack-bar.mjs +4 -4
- package/esm2020/legacy-snack-bar/snack-bar-container.mjs +4 -4
- package/esm2020/legacy-snack-bar/snack-bar-module.mjs +5 -5
- package/esm2020/legacy-snack-bar/snack-bar.mjs +4 -4
- package/esm2020/legacy-table/cell.mjs +22 -22
- package/esm2020/legacy-table/row.mjs +22 -22
- package/esm2020/legacy-table/table-module.mjs +5 -5
- package/esm2020/legacy-table/table.mjs +7 -7
- package/esm2020/legacy-table/text-column.mjs +4 -4
- package/esm2020/legacy-tabs/ink-bar.mjs +4 -4
- package/esm2020/legacy-tabs/tab-body.mjs +7 -7
- package/esm2020/legacy-tabs/tab-content.mjs +4 -4
- package/esm2020/legacy-tabs/tab-group.mjs +6 -6
- package/esm2020/legacy-tabs/tab-header.mjs +4 -4
- package/esm2020/legacy-tabs/tab-label-wrapper.mjs +4 -4
- package/esm2020/legacy-tabs/tab-label.mjs +4 -4
- package/esm2020/legacy-tabs/tab-nav-bar/tab-nav-bar.mjs +10 -10
- package/esm2020/legacy-tabs/tab.mjs +4 -4
- package/esm2020/legacy-tabs/tabs-module.mjs +5 -5
- package/esm2020/legacy-tooltip/tooltip-module.mjs +5 -5
- package/esm2020/legacy-tooltip/tooltip.mjs +7 -7
- package/esm2020/list/action-list.mjs +4 -4
- package/esm2020/list/list-base.mjs +33 -33
- package/esm2020/list/list-item-sections.mjs +19 -19
- package/esm2020/list/list-module.mjs +5 -5
- package/esm2020/list/list-option.mjs +23 -23
- package/esm2020/list/list.mjs +11 -11
- package/esm2020/list/nav-list.mjs +4 -4
- package/esm2020/list/selection-list.mjs +25 -25
- package/esm2020/list/subheader.mjs +4 -4
- package/esm2020/menu/menu-content.mjs +7 -7
- package/esm2020/menu/menu-item.mjs +4 -4
- package/esm2020/menu/menu-trigger.mjs +41 -41
- package/esm2020/menu/menu.mjs +40 -40
- package/esm2020/menu/module.mjs +5 -5
- package/esm2020/paginator/module.mjs +5 -5
- package/esm2020/paginator/paginator-intl.mjs +4 -4
- package/esm2020/paginator/paginator.mjs +37 -37
- package/esm2020/progress-bar/module.mjs +5 -5
- package/esm2020/progress-bar/progress-bar.mjs +4 -4
- package/esm2020/progress-spinner/module.mjs +5 -5
- package/esm2020/progress-spinner/progress-spinner.mjs +4 -4
- package/esm2020/radio/module.mjs +5 -5
- package/esm2020/radio/radio.mjs +72 -72
- package/esm2020/select/module.mjs +5 -5
- package/esm2020/select/select.mjs +83 -83
- package/esm2020/sidenav/drawer.mjs +117 -117
- package/esm2020/sidenav/sidenav-module.mjs +5 -5
- package/esm2020/sidenav/sidenav.mjs +10 -10
- package/esm2020/slide-toggle/module.mjs +9 -9
- package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +4 -4
- package/esm2020/slide-toggle/slide-toggle.mjs +30 -30
- package/esm2020/slider/module.mjs +5 -5
- package/esm2020/slider/slider-input.mjs +63 -63
- package/esm2020/slider/slider-thumb.mjs +4 -4
- package/esm2020/slider/slider.mjs +48 -48
- package/esm2020/snack-bar/module.mjs +5 -5
- package/esm2020/snack-bar/simple-snack-bar.mjs +4 -4
- package/esm2020/snack-bar/snack-bar-container.mjs +7 -7
- package/esm2020/snack-bar/snack-bar-content.mjs +10 -10
- package/esm2020/snack-bar/snack-bar.mjs +20 -20
- package/esm2020/sort/sort-header-intl.mjs +4 -4
- package/esm2020/sort/sort-header.mjs +21 -21
- package/esm2020/sort/sort-module.mjs +5 -5
- package/esm2020/sort/sort.mjs +20 -20
- package/esm2020/stepper/step-content.mjs +4 -4
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +7 -7
- package/esm2020/stepper/stepper-icon.mjs +4 -4
- package/esm2020/stepper/stepper-intl.mjs +4 -4
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +14 -14
- package/esm2020/table/cell.mjs +22 -22
- package/esm2020/table/module.mjs +5 -5
- package/esm2020/table/row.mjs +22 -22
- package/esm2020/table/table-data-source.mjs +57 -57
- package/esm2020/table/table.mjs +7 -7
- package/esm2020/table/text-column.mjs +4 -4
- package/esm2020/tabs/module.mjs +5 -5
- package/esm2020/tabs/paginated-tab-header.mjs +37 -36
- package/esm2020/tabs/tab-body.mjs +15 -15
- package/esm2020/tabs/tab-content.mjs +4 -4
- package/esm2020/tabs/tab-group.mjs +63 -65
- package/esm2020/tabs/tab-header.mjs +11 -11
- package/esm2020/tabs/tab-label-wrapper.mjs +7 -7
- package/esm2020/tabs/tab-label.mjs +4 -4
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +51 -51
- package/esm2020/tabs/tab.mjs +11 -11
- package/esm2020/toolbar/toolbar-module.mjs +5 -5
- package/esm2020/toolbar/toolbar.mjs +7 -7
- package/esm2020/tooltip/module.mjs +5 -5
- package/esm2020/tooltip/tooltip.mjs +72 -72
- package/esm2020/tree/data-source/flat-data-source.mjs +9 -9
- package/esm2020/tree/node.mjs +15 -15
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.mjs +4 -4
- package/esm2020/tree/toggle.mjs +4 -4
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +4 -4
- package/fesm2015/autocomplete.mjs +61 -61
- package/fesm2015/autocomplete.mjs.map +1 -1
- package/fesm2015/badge.mjs +34 -34
- package/fesm2015/badge.mjs.map +1 -1
- package/fesm2015/bottom-sheet.mjs +21 -21
- package/fesm2015/bottom-sheet.mjs.map +1 -1
- package/fesm2015/button-toggle.mjs +53 -53
- package/fesm2015/button-toggle.mjs.map +1 -1
- package/fesm2015/button.mjs +46 -46
- package/fesm2015/button.mjs.map +1 -1
- package/fesm2015/card.mjs +46 -46
- package/fesm2015/card.mjs.map +1 -1
- package/fesm2015/checkbox.mjs +28 -28
- package/fesm2015/checkbox.mjs.map +1 -1
- package/fesm2015/chips.mjs +164 -164
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +115 -115
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +359 -359
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/dialog.mjs +40 -40
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/divider.mjs +7 -7
- package/fesm2015/divider.mjs.map +1 -1
- package/fesm2015/expansion.mjs +39 -39
- package/fesm2015/expansion.mjs.map +1 -1
- package/fesm2015/form-field.mjs +74 -74
- package/fesm2015/form-field.mjs.map +1 -1
- package/fesm2015/grid-list.mjs +22 -22
- package/fesm2015/grid-list.mjs.map +1 -1
- package/fesm2015/icon/testing.mjs +7 -7
- package/fesm2015/icon/testing.mjs.map +1 -1
- package/fesm2015/icon.mjs +33 -33
- package/fesm2015/icon.mjs.map +1 -1
- package/fesm2015/input.mjs +78 -78
- package/fesm2015/input.mjs.map +1 -1
- package/fesm2015/legacy-autocomplete.mjs +13 -13
- package/fesm2015/legacy-autocomplete.mjs.map +1 -1
- package/fesm2015/legacy-button.mjs +10 -10
- package/fesm2015/legacy-button.mjs.map +1 -1
- package/fesm2015/legacy-card.mjs +46 -46
- package/fesm2015/legacy-card.mjs.map +1 -1
- package/fesm2015/legacy-checkbox.mjs +7 -7
- package/fesm2015/legacy-checkbox.mjs.map +1 -1
- package/fesm2015/legacy-chips.mjs +133 -133
- package/fesm2015/legacy-chips.mjs.map +1 -1
- package/fesm2015/legacy-core.mjs +10 -10
- package/fesm2015/legacy-core.mjs.map +1 -1
- package/fesm2015/legacy-dialog.mjs +28 -28
- package/fesm2015/legacy-dialog.mjs.map +1 -1
- package/fesm2015/legacy-form-field.mjs +61 -61
- package/fesm2015/legacy-form-field.mjs.map +1 -1
- package/fesm2015/legacy-input.mjs +7 -7
- package/fesm2015/legacy-input.mjs.map +1 -1
- package/fesm2015/legacy-list.mjs +78 -78
- package/fesm2015/legacy-list.mjs.map +1 -1
- package/fesm2015/legacy-menu.mjs +16 -16
- package/fesm2015/legacy-menu.mjs.map +1 -1
- package/fesm2015/legacy-paginator.mjs +7 -7
- package/fesm2015/legacy-paginator.mjs.map +1 -1
- package/fesm2015/legacy-progress-bar.mjs +7 -7
- package/fesm2015/legacy-progress-bar.mjs.map +1 -1
- package/fesm2015/legacy-progress-spinner.mjs +33 -33
- package/fesm2015/legacy-progress-spinner.mjs.map +1 -1
- package/fesm2015/legacy-radio.mjs +10 -10
- package/fesm2015/legacy-radio.mjs.map +1 -1
- package/fesm2015/legacy-select.mjs +10 -10
- package/fesm2015/legacy-select.mjs.map +1 -1
- package/fesm2015/legacy-slide-toggle.mjs +7 -7
- package/fesm2015/legacy-slide-toggle.mjs.map +1 -1
- package/fesm2015/legacy-slider.mjs +146 -146
- package/fesm2015/legacy-slider.mjs.map +1 -1
- package/fesm2015/legacy-snack-bar.mjs +13 -13
- package/fesm2015/legacy-snack-bar.mjs.map +1 -1
- package/fesm2015/legacy-table.mjs +55 -55
- package/fesm2015/legacy-table.mjs.map +1 -1
- package/fesm2015/legacy-tabs.mjs +42 -42
- package/fesm2015/legacy-tabs.mjs.map +1 -1
- package/fesm2015/legacy-tooltip.mjs +10 -10
- package/fesm2015/legacy-tooltip.mjs.map +1 -1
- package/fesm2015/list.mjs +119 -119
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/menu.mjs +93 -93
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/paginator.mjs +43 -43
- package/fesm2015/paginator.mjs.map +1 -1
- package/fesm2015/progress-bar.mjs +7 -7
- package/fesm2015/progress-bar.mjs.map +1 -1
- package/fesm2015/progress-spinner.mjs +7 -7
- package/fesm2015/progress-spinner.mjs.map +1 -1
- package/fesm2015/radio.mjs +75 -75
- package/fesm2015/radio.mjs.map +1 -1
- package/fesm2015/select.mjs +87 -87
- package/fesm2015/select.mjs.map +1 -1
- package/fesm2015/sidenav.mjs +129 -129
- package/fesm2015/sidenav.mjs.map +1 -1
- package/fesm2015/slide-toggle.mjs +40 -40
- package/fesm2015/slide-toggle.mjs.map +1 -1
- package/fesm2015/slider.mjs +116 -116
- package/fesm2015/slider.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +41 -41
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2015/sort.mjs +46 -46
- package/fesm2015/sort.mjs.map +1 -1
- package/fesm2015/stepper.mjs +38 -38
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +111 -111
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/tabs.mjs +199 -200
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2015/toolbar.mjs +10 -10
- package/fesm2015/toolbar.mjs.map +1 -1
- package/fesm2015/tooltip.mjs +75 -75
- package/fesm2015/tooltip.mjs.map +1 -1
- package/fesm2015/tree.mjs +38 -38
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/autocomplete.mjs +61 -61
- package/fesm2020/autocomplete.mjs.map +1 -1
- package/fesm2020/badge.mjs +34 -34
- package/fesm2020/badge.mjs.map +1 -1
- package/fesm2020/bottom-sheet.mjs +21 -21
- package/fesm2020/bottom-sheet.mjs.map +1 -1
- package/fesm2020/button-toggle.mjs +53 -53
- package/fesm2020/button-toggle.mjs.map +1 -1
- package/fesm2020/button.mjs +46 -46
- package/fesm2020/button.mjs.map +1 -1
- package/fesm2020/card.mjs +46 -46
- package/fesm2020/card.mjs.map +1 -1
- package/fesm2020/checkbox.mjs +28 -28
- package/fesm2020/checkbox.mjs.map +1 -1
- package/fesm2020/chips.mjs +164 -164
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +115 -115
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +359 -359
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/dialog.mjs +40 -40
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/divider.mjs +7 -7
- package/fesm2020/divider.mjs.map +1 -1
- package/fesm2020/expansion.mjs +39 -39
- package/fesm2020/expansion.mjs.map +1 -1
- package/fesm2020/form-field.mjs +74 -74
- package/fesm2020/form-field.mjs.map +1 -1
- package/fesm2020/grid-list.mjs +22 -22
- package/fesm2020/grid-list.mjs.map +1 -1
- package/fesm2020/icon/testing.mjs +7 -7
- package/fesm2020/icon/testing.mjs.map +1 -1
- package/fesm2020/icon.mjs +33 -33
- package/fesm2020/icon.mjs.map +1 -1
- package/fesm2020/input.mjs +77 -77
- package/fesm2020/input.mjs.map +1 -1
- package/fesm2020/legacy-autocomplete.mjs +13 -13
- package/fesm2020/legacy-autocomplete.mjs.map +1 -1
- package/fesm2020/legacy-button.mjs +10 -10
- package/fesm2020/legacy-button.mjs.map +1 -1
- package/fesm2020/legacy-card.mjs +46 -46
- package/fesm2020/legacy-card.mjs.map +1 -1
- package/fesm2020/legacy-checkbox.mjs +7 -7
- package/fesm2020/legacy-checkbox.mjs.map +1 -1
- package/fesm2020/legacy-chips.mjs +133 -133
- package/fesm2020/legacy-chips.mjs.map +1 -1
- package/fesm2020/legacy-core.mjs +10 -10
- package/fesm2020/legacy-core.mjs.map +1 -1
- package/fesm2020/legacy-dialog.mjs +28 -28
- package/fesm2020/legacy-dialog.mjs.map +1 -1
- package/fesm2020/legacy-form-field.mjs +61 -61
- package/fesm2020/legacy-form-field.mjs.map +1 -1
- package/fesm2020/legacy-input.mjs +7 -7
- package/fesm2020/legacy-input.mjs.map +1 -1
- package/fesm2020/legacy-list.mjs +78 -78
- package/fesm2020/legacy-list.mjs.map +1 -1
- package/fesm2020/legacy-menu.mjs +16 -16
- package/fesm2020/legacy-menu.mjs.map +1 -1
- package/fesm2020/legacy-paginator.mjs +7 -7
- package/fesm2020/legacy-paginator.mjs.map +1 -1
- package/fesm2020/legacy-progress-bar.mjs +7 -7
- package/fesm2020/legacy-progress-bar.mjs.map +1 -1
- package/fesm2020/legacy-progress-spinner.mjs +33 -33
- package/fesm2020/legacy-progress-spinner.mjs.map +1 -1
- package/fesm2020/legacy-radio.mjs +10 -10
- package/fesm2020/legacy-radio.mjs.map +1 -1
- package/fesm2020/legacy-select.mjs +10 -10
- package/fesm2020/legacy-select.mjs.map +1 -1
- package/fesm2020/legacy-slide-toggle.mjs +7 -7
- package/fesm2020/legacy-slide-toggle.mjs.map +1 -1
- package/fesm2020/legacy-slider.mjs +146 -146
- package/fesm2020/legacy-slider.mjs.map +1 -1
- package/fesm2020/legacy-snack-bar.mjs +13 -13
- package/fesm2020/legacy-snack-bar.mjs.map +1 -1
- package/fesm2020/legacy-table.mjs +55 -55
- package/fesm2020/legacy-table.mjs.map +1 -1
- package/fesm2020/legacy-tabs.mjs +42 -42
- package/fesm2020/legacy-tabs.mjs.map +1 -1
- package/fesm2020/legacy-tooltip.mjs +10 -10
- package/fesm2020/legacy-tooltip.mjs.map +1 -1
- package/fesm2020/list.mjs +119 -119
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/menu.mjs +92 -92
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/paginator.mjs +43 -43
- package/fesm2020/paginator.mjs.map +1 -1
- package/fesm2020/progress-bar.mjs +7 -7
- package/fesm2020/progress-bar.mjs.map +1 -1
- package/fesm2020/progress-spinner.mjs +7 -7
- package/fesm2020/progress-spinner.mjs.map +1 -1
- package/fesm2020/radio.mjs +75 -75
- package/fesm2020/radio.mjs.map +1 -1
- package/fesm2020/select.mjs +86 -86
- package/fesm2020/select.mjs.map +1 -1
- package/fesm2020/sidenav.mjs +129 -129
- package/fesm2020/sidenav.mjs.map +1 -1
- package/fesm2020/slide-toggle.mjs +40 -40
- package/fesm2020/slide-toggle.mjs.map +1 -1
- package/fesm2020/slider.mjs +116 -116
- package/fesm2020/slider.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +41 -41
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/fesm2020/sort.mjs +46 -46
- package/fesm2020/sort.mjs.map +1 -1
- package/fesm2020/stepper.mjs +38 -38
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +111 -111
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/tabs.mjs +198 -199
- package/fesm2020/tabs.mjs.map +1 -1
- package/fesm2020/toolbar.mjs +10 -10
- package/fesm2020/toolbar.mjs.map +1 -1
- package/fesm2020/tooltip.mjs +75 -75
- package/fesm2020/tooltip.mjs.map +1 -1
- package/fesm2020/tree.mjs +38 -38
- package/fesm2020/tree.mjs.map +1 -1
- package/legacy-prebuilt-themes/legacy-deeppurple-amber.css +1 -1
- package/legacy-prebuilt-themes/legacy-indigo-pink.css +1 -1
- package/legacy-prebuilt-themes/legacy-pink-bluegrey.css +1 -1
- package/legacy-prebuilt-themes/legacy-purple-green.css +1 -1
- package/legacy-tabs/_tabs-theme.scss +7 -5
- package/package.json +7 -7
- 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/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-generate/mdc-migration/index_bundled.js +3735 -3742
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +3 -3
- package/schematics/ng-generate/mdc-migration/mdc_migration_bundle_metadata.json +1 -1
- package/tabs/_tabs-theme.scss +8 -0
- package/tabs/index.d.ts +1 -1
package/fesm2020/datepicker.mjs
CHANGED
|
@@ -99,9 +99,9 @@ class MatDatepickerIntl {
|
|
|
99
99
|
return `${start} to ${end}`;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
MatDatepickerIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
103
|
-
MatDatepickerIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
102
|
+
MatDatepickerIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
103
|
+
MatDatepickerIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerIntl, providedIn: 'root' });
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerIntl, decorators: [{
|
|
105
105
|
type: Injectable,
|
|
106
106
|
args: [{ providedIn: 'root' }]
|
|
107
107
|
}] });
|
|
@@ -134,6 +134,12 @@ let calendarBodyId = 1;
|
|
|
134
134
|
* @docs-private
|
|
135
135
|
*/
|
|
136
136
|
class MatCalendarBody {
|
|
137
|
+
ngAfterViewChecked() {
|
|
138
|
+
if (this._focusActiveCellAfterViewChecked) {
|
|
139
|
+
this._focusActiveCell();
|
|
140
|
+
this._focusActiveCellAfterViewChecked = false;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
137
143
|
constructor(_elementRef, _ngZone) {
|
|
138
144
|
this._elementRef = _elementRef;
|
|
139
145
|
this._ngZone = _ngZone;
|
|
@@ -284,12 +290,6 @@ class MatCalendarBody {
|
|
|
284
290
|
window.addEventListener('touchend', this._touchendHandler);
|
|
285
291
|
});
|
|
286
292
|
}
|
|
287
|
-
ngAfterViewChecked() {
|
|
288
|
-
if (this._focusActiveCellAfterViewChecked) {
|
|
289
|
-
this._focusActiveCell();
|
|
290
|
-
this._focusActiveCellAfterViewChecked = false;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
293
|
/** Called when a cell is clicked. */
|
|
294
294
|
_cellClicked(cell, event) {
|
|
295
295
|
// Ignore "clicks" that are actually canceled drags (eg the user dragged
|
|
@@ -489,9 +489,9 @@ class MatCalendarBody {
|
|
|
489
489
|
return null;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
MatCalendarBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
493
|
-
MatCalendarBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-next.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", startDateAccessibleName: "startDateAccessibleName", endDateAccessibleName: "endDateAccessibleName" }, outputs: { selectedValueChange: "selectedValueChange", previewChange: "previewChange", activeDateChange: "activeDateChange", dragStarted: "dragStarted", dragEnded: "dragEnded" }, 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 <!--\n Each gridcell in the calendar contains a button, which signals to assistive technology that the\n cell is interactable, as well as the selection state via `aria-pressed`. See #23476 for\n background.\n -->\n <td\n *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mat-calendar-body-cell-container\"\n [style.width]=\"_cellWidth\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n >\n <button\n type=\"button\"\n class=\"mat-calendar-body-cell\"\n [ngClass]=\"item.cssClasses\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\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-pressed]=\"_isSelected(item.compareValue)\"\n [attr.aria-current]=\"todayValue === item.compareValue ? 'date' : null\"\n [attr.aria-describedby]=\"_getDescribedby(item.compareValue)\"\n (click)=\"_cellClicked(item, $event)\"\n (focus)=\"_emitActiveDateChange(item, $event)\">\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\" aria-hidden=\"true\"></div>\n </button>\n </td>\n</tr>\n\n<label [id]=\"_startDateLabelId\" class=\"mat-calendar-body-hidden-label\">\n {{startDateAccessibleName}}\n</label>\n<label [id]=\"_endDateLabelId\" class=\"mat-calendar-body-hidden-label\">\n {{endDateAccessibleName}}\n</label>\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-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.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 .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}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
492
|
+
MatCalendarBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatCalendarBody, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
493
|
+
MatCalendarBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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", startDateAccessibleName: "startDateAccessibleName", endDateAccessibleName: "endDateAccessibleName" }, outputs: { selectedValueChange: "selectedValueChange", previewChange: "previewChange", activeDateChange: "activeDateChange", dragStarted: "dragStarted", dragEnded: "dragEnded" }, 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 <!--\n Each gridcell in the calendar contains a button, which signals to assistive technology that the\n cell is interactable, as well as the selection state via `aria-pressed`. See #23476 for\n background.\n -->\n <td\n *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mat-calendar-body-cell-container\"\n [style.width]=\"_cellWidth\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n >\n <button\n type=\"button\"\n class=\"mat-calendar-body-cell\"\n [ngClass]=\"item.cssClasses\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\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-pressed]=\"_isSelected(item.compareValue)\"\n [attr.aria-current]=\"todayValue === item.compareValue ? 'date' : null\"\n [attr.aria-describedby]=\"_getDescribedby(item.compareValue)\"\n (click)=\"_cellClicked(item, $event)\"\n (focus)=\"_emitActiveDateChange(item, $event)\">\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\" aria-hidden=\"true\"></div>\n </button>\n </td>\n</tr>\n\n<label [id]=\"_startDateLabelId\" class=\"mat-calendar-body-hidden-label\">\n {{startDateAccessibleName}}\n</label>\n<label [id]=\"_endDateLabelId\" class=\"mat-calendar-body-hidden-label\">\n {{endDateAccessibleName}}\n</label>\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-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.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 .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}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatCalendarBody, decorators: [{
|
|
495
495
|
type: Component,
|
|
496
496
|
args: [{ selector: '[mat-calendar-body]', host: {
|
|
497
497
|
'class': 'mat-calendar-body',
|
|
@@ -636,9 +636,9 @@ class MatDateSelectionModel {
|
|
|
636
636
|
return this._adapter.isDateInstance(date) && this._adapter.isValid(date);
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
MatDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
640
|
-
MatDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
639
|
+
MatDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateSelectionModel, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
640
|
+
MatDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateSelectionModel });
|
|
641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateSelectionModel, decorators: [{
|
|
642
642
|
type: Injectable
|
|
643
643
|
}], ctorParameters: function () { return [{ type: undefined }, { type: i1$1.DateAdapter }]; } });
|
|
644
644
|
/**
|
|
@@ -674,9 +674,9 @@ class MatSingleDateSelectionModel extends MatDateSelectionModel {
|
|
|
674
674
|
return clone;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
MatSingleDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
678
|
-
MatSingleDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
677
|
+
MatSingleDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatSingleDateSelectionModel, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
678
|
+
MatSingleDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatSingleDateSelectionModel });
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatSingleDateSelectionModel, decorators: [{
|
|
680
680
|
type: Injectable
|
|
681
681
|
}], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
|
|
682
682
|
/**
|
|
@@ -737,9 +737,9 @@ class MatRangeDateSelectionModel extends MatDateSelectionModel {
|
|
|
737
737
|
return clone;
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
MatRangeDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
741
|
-
MatRangeDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
740
|
+
MatRangeDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatRangeDateSelectionModel, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
741
|
+
MatRangeDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatRangeDateSelectionModel });
|
|
742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatRangeDateSelectionModel, decorators: [{
|
|
743
743
|
type: Injectable
|
|
744
744
|
}], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
|
|
745
745
|
/** @docs-private */
|
|
@@ -845,9 +845,9 @@ class DefaultMatCalendarRangeStrategy {
|
|
|
845
845
|
return new DateRange(start, end);
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
|
-
DefaultMatCalendarRangeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
849
|
-
DefaultMatCalendarRangeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
848
|
+
DefaultMatCalendarRangeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: DefaultMatCalendarRangeStrategy, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
849
|
+
DefaultMatCalendarRangeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: DefaultMatCalendarRangeStrategy });
|
|
850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: DefaultMatCalendarRangeStrategy, decorators: [{
|
|
851
851
|
type: Injectable
|
|
852
852
|
}], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
|
|
853
853
|
/** @docs-private */
|
|
@@ -874,38 +874,6 @@ const DAYS_PER_WEEK = 7;
|
|
|
874
874
|
* @docs-private
|
|
875
875
|
*/
|
|
876
876
|
class MatMonthView {
|
|
877
|
-
constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir, _rangeStrategy) {
|
|
878
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
879
|
-
this._dateFormats = _dateFormats;
|
|
880
|
-
this._dateAdapter = _dateAdapter;
|
|
881
|
-
this._dir = _dir;
|
|
882
|
-
this._rangeStrategy = _rangeStrategy;
|
|
883
|
-
this._rerenderSubscription = Subscription.EMPTY;
|
|
884
|
-
/** Origin of active drag, or null when dragging is not active. */
|
|
885
|
-
this.activeDrag = null;
|
|
886
|
-
/** Emits when a new date is selected. */
|
|
887
|
-
this.selectedChange = new EventEmitter();
|
|
888
|
-
/** Emits when any date is selected. */
|
|
889
|
-
this._userSelection = new EventEmitter();
|
|
890
|
-
/** Emits when the user initiates a date range drag via mouse or touch. */
|
|
891
|
-
this.dragStarted = new EventEmitter();
|
|
892
|
-
/**
|
|
893
|
-
* Emits when the user completes or cancels a date range drag.
|
|
894
|
-
* Emits null when the drag was canceled or the newly selected date range if completed.
|
|
895
|
-
*/
|
|
896
|
-
this.dragEnded = new EventEmitter();
|
|
897
|
-
/** Emits when any date is activated. */
|
|
898
|
-
this.activeDateChange = new EventEmitter();
|
|
899
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
900
|
-
if (!this._dateAdapter) {
|
|
901
|
-
throw createMissingDateImplError('DateAdapter');
|
|
902
|
-
}
|
|
903
|
-
if (!this._dateFormats) {
|
|
904
|
-
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
this._activeDate = this._dateAdapter.today();
|
|
908
|
-
}
|
|
909
877
|
/**
|
|
910
878
|
* The date to display in this month view (everything other than the month and year is ignored).
|
|
911
879
|
*/
|
|
@@ -948,6 +916,38 @@ class MatMonthView {
|
|
|
948
916
|
set maxDate(value) {
|
|
949
917
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
950
918
|
}
|
|
919
|
+
constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir, _rangeStrategy) {
|
|
920
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
921
|
+
this._dateFormats = _dateFormats;
|
|
922
|
+
this._dateAdapter = _dateAdapter;
|
|
923
|
+
this._dir = _dir;
|
|
924
|
+
this._rangeStrategy = _rangeStrategy;
|
|
925
|
+
this._rerenderSubscription = Subscription.EMPTY;
|
|
926
|
+
/** Origin of active drag, or null when dragging is not active. */
|
|
927
|
+
this.activeDrag = null;
|
|
928
|
+
/** Emits when a new date is selected. */
|
|
929
|
+
this.selectedChange = new EventEmitter();
|
|
930
|
+
/** Emits when any date is selected. */
|
|
931
|
+
this._userSelection = new EventEmitter();
|
|
932
|
+
/** Emits when the user initiates a date range drag via mouse or touch. */
|
|
933
|
+
this.dragStarted = new EventEmitter();
|
|
934
|
+
/**
|
|
935
|
+
* Emits when the user completes or cancels a date range drag.
|
|
936
|
+
* Emits null when the drag was canceled or the newly selected date range if completed.
|
|
937
|
+
*/
|
|
938
|
+
this.dragEnded = new EventEmitter();
|
|
939
|
+
/** Emits when any date is activated. */
|
|
940
|
+
this.activeDateChange = new EventEmitter();
|
|
941
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
942
|
+
if (!this._dateAdapter) {
|
|
943
|
+
throw createMissingDateImplError('DateAdapter');
|
|
944
|
+
}
|
|
945
|
+
if (!this._dateFormats) {
|
|
946
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
this._activeDate = this._dateAdapter.today();
|
|
950
|
+
}
|
|
951
951
|
ngAfterContentInit() {
|
|
952
952
|
this._rerenderSubscription = this._dateAdapter.localeChanges
|
|
953
953
|
.pipe(startWith(null))
|
|
@@ -1251,9 +1251,9 @@ class MatMonthView {
|
|
|
1251
1251
|
this._previewStart = this._previewEnd = null;
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
|
-
MatMonthView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1255
|
-
MatMonthView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
1256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1254
|
+
MatMonthView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", 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 });
|
|
1255
|
+
MatMonthView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatMonthView, selector: "mat-month-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass", comparisonStart: "comparisonStart", comparisonEnd: "comparisonEnd", startDateAccessibleName: "startDateAccessibleName", endDateAccessibleName: "endDateAccessibleName", activeDrag: "activeDrag" }, outputs: { selectedChange: "selectedChange", _userSelection: "_userSelection", dragStarted: "dragStarted", dragEnded: "dragEnded", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "_matCalendarBody", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: ["matMonthView"], usesOnChanges: true, ngImport: i0, template: "<table class=\"mat-calendar-table\" role=\"grid\">\n <thead class=\"mat-calendar-table-header\">\n <tr>\n <th scope=\"col\" *ngFor=\"let day of _weekdays\">\n <span class=\"cdk-visually-hidden\">{{day.long}}</span>\n <span aria-hidden=\"true\">{{day.narrow}}</span>\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 [startDateAccessibleName]=\"startDateAccessibleName\"\n [endDateAccessibleName]=\"endDateAccessibleName\"\n (selectedValueChange)=\"_dateSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (dragStarted)=\"dragStarted.emit($event)\"\n (dragEnded)=\"_dragEnded($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedValueChange", "previewChange", "activeDateChange", "dragStarted", "dragEnded"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatMonthView, decorators: [{
|
|
1257
1257
|
type: Component,
|
|
1258
1258
|
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 <th scope=\"col\" *ngFor=\"let day of _weekdays\">\n <span class=\"cdk-visually-hidden\">{{day.long}}</span>\n <span aria-hidden=\"true\">{{day.narrow}}</span>\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 [startDateAccessibleName]=\"startDateAccessibleName\"\n [endDateAccessibleName]=\"endDateAccessibleName\"\n (selectedValueChange)=\"_dateSelected($event)\"\n (activeDateChange)=\"_updateActiveDate($event)\"\n (previewChange)=\"_previewChanged($event)\"\n (dragStarted)=\"dragStarted.emit($event)\"\n (dragEnded)=\"_dragEnded($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
1259
1259
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
@@ -1321,22 +1321,6 @@ const yearsPerRow = 4;
|
|
|
1321
1321
|
* @docs-private
|
|
1322
1322
|
*/
|
|
1323
1323
|
class MatMultiYearView {
|
|
1324
|
-
constructor(_changeDetectorRef, _dateAdapter, _dir) {
|
|
1325
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
1326
|
-
this._dateAdapter = _dateAdapter;
|
|
1327
|
-
this._dir = _dir;
|
|
1328
|
-
this._rerenderSubscription = Subscription.EMPTY;
|
|
1329
|
-
/** Emits when a new year is selected. */
|
|
1330
|
-
this.selectedChange = new EventEmitter();
|
|
1331
|
-
/** Emits the selected year. This doesn't imply a change on the selected date */
|
|
1332
|
-
this.yearSelected = new EventEmitter();
|
|
1333
|
-
/** Emits when any date is activated. */
|
|
1334
|
-
this.activeDateChange = new EventEmitter();
|
|
1335
|
-
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1336
|
-
throw createMissingDateImplError('DateAdapter');
|
|
1337
|
-
}
|
|
1338
|
-
this._activeDate = this._dateAdapter.today();
|
|
1339
|
-
}
|
|
1340
1324
|
/** The date to display in this multi-year view (everything other than the year is ignored). */
|
|
1341
1325
|
get activeDate() {
|
|
1342
1326
|
return this._activeDate;
|
|
@@ -1377,6 +1361,22 @@ class MatMultiYearView {
|
|
|
1377
1361
|
set maxDate(value) {
|
|
1378
1362
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
1379
1363
|
}
|
|
1364
|
+
constructor(_changeDetectorRef, _dateAdapter, _dir) {
|
|
1365
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
1366
|
+
this._dateAdapter = _dateAdapter;
|
|
1367
|
+
this._dir = _dir;
|
|
1368
|
+
this._rerenderSubscription = Subscription.EMPTY;
|
|
1369
|
+
/** Emits when a new year is selected. */
|
|
1370
|
+
this.selectedChange = new EventEmitter();
|
|
1371
|
+
/** Emits the selected year. This doesn't imply a change on the selected date */
|
|
1372
|
+
this.yearSelected = new EventEmitter();
|
|
1373
|
+
/** Emits when any date is activated. */
|
|
1374
|
+
this.activeDateChange = new EventEmitter();
|
|
1375
|
+
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1376
|
+
throw createMissingDateImplError('DateAdapter');
|
|
1377
|
+
}
|
|
1378
|
+
this._activeDate = this._dateAdapter.today();
|
|
1379
|
+
}
|
|
1380
1380
|
ngAfterContentInit() {
|
|
1381
1381
|
this._rerenderSubscription = this._dateAdapter.localeChanges
|
|
1382
1382
|
.pipe(startWith(null))
|
|
@@ -1558,9 +1558,9 @@ class MatMultiYearView {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
|
-
MatMultiYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1562
|
-
MatMultiYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
1563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1561
|
+
MatMultiYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatMultiYearView, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1562
|
+
MatMultiYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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 (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedValueChange", "previewChange", "activeDateChange", "dragStarted", "dragEnded"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatMultiYearView, decorators: [{
|
|
1564
1564
|
type: Component,
|
|
1565
1565
|
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 (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
1566
1566
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.DateAdapter, decorators: [{
|
|
@@ -1637,28 +1637,6 @@ function euclideanModulo(a, b) {
|
|
|
1637
1637
|
* @docs-private
|
|
1638
1638
|
*/
|
|
1639
1639
|
class MatYearView {
|
|
1640
|
-
constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {
|
|
1641
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
1642
|
-
this._dateFormats = _dateFormats;
|
|
1643
|
-
this._dateAdapter = _dateAdapter;
|
|
1644
|
-
this._dir = _dir;
|
|
1645
|
-
this._rerenderSubscription = Subscription.EMPTY;
|
|
1646
|
-
/** Emits when a new month is selected. */
|
|
1647
|
-
this.selectedChange = new EventEmitter();
|
|
1648
|
-
/** Emits the selected month. This doesn't imply a change on the selected date */
|
|
1649
|
-
this.monthSelected = new EventEmitter();
|
|
1650
|
-
/** Emits when any date is activated. */
|
|
1651
|
-
this.activeDateChange = new EventEmitter();
|
|
1652
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1653
|
-
if (!this._dateAdapter) {
|
|
1654
|
-
throw createMissingDateImplError('DateAdapter');
|
|
1655
|
-
}
|
|
1656
|
-
if (!this._dateFormats) {
|
|
1657
|
-
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
|
-
this._activeDate = this._dateAdapter.today();
|
|
1661
|
-
}
|
|
1662
1640
|
/** The date to display in this year view (everything other than the year is ignored). */
|
|
1663
1641
|
get activeDate() {
|
|
1664
1642
|
return this._activeDate;
|
|
@@ -1699,6 +1677,28 @@ class MatYearView {
|
|
|
1699
1677
|
set maxDate(value) {
|
|
1700
1678
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
1701
1679
|
}
|
|
1680
|
+
constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {
|
|
1681
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
1682
|
+
this._dateFormats = _dateFormats;
|
|
1683
|
+
this._dateAdapter = _dateAdapter;
|
|
1684
|
+
this._dir = _dir;
|
|
1685
|
+
this._rerenderSubscription = Subscription.EMPTY;
|
|
1686
|
+
/** Emits when a new month is selected. */
|
|
1687
|
+
this.selectedChange = new EventEmitter();
|
|
1688
|
+
/** Emits the selected month. This doesn't imply a change on the selected date */
|
|
1689
|
+
this.monthSelected = new EventEmitter();
|
|
1690
|
+
/** Emits when any date is activated. */
|
|
1691
|
+
this.activeDateChange = new EventEmitter();
|
|
1692
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1693
|
+
if (!this._dateAdapter) {
|
|
1694
|
+
throw createMissingDateImplError('DateAdapter');
|
|
1695
|
+
}
|
|
1696
|
+
if (!this._dateFormats) {
|
|
1697
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
this._activeDate = this._dateAdapter.today();
|
|
1701
|
+
}
|
|
1702
1702
|
ngAfterContentInit() {
|
|
1703
1703
|
this._rerenderSubscription = this._dateAdapter.localeChanges
|
|
1704
1704
|
.pipe(startWith(null))
|
|
@@ -1900,9 +1900,9 @@ class MatYearView {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
1902
|
}
|
|
1903
|
-
MatYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1904
|
-
MatYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
1905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1903
|
+
MatYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", 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 });
|
|
1904
|
+
MatYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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 (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: MatCalendarBody, selector: "[mat-calendar-body]", inputs: ["label", "rows", "todayValue", "startValue", "endValue", "labelMinRequiredCells", "numCols", "activeCell", "isRange", "cellAspectRatio", "comparisonStart", "comparisonEnd", "previewStart", "previewEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedValueChange", "previewChange", "activeDateChange", "dragStarted", "dragEnded"], exportAs: ["matCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatYearView, decorators: [{
|
|
1906
1906
|
type: Component,
|
|
1907
1907
|
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 (activeDateChange)=\"_updateActiveDate($event)\"\n (keyup)=\"_handleCalendarBodyKeyup($event)\"\n (keydown)=\"_handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n" }]
|
|
1908
1908
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
@@ -2063,9 +2063,9 @@ class MatCalendarHeader {
|
|
|
2063
2063
|
return [minYearLabel, maxYearLabel];
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
|
-
MatCalendarHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2067
|
-
MatCalendarHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
2068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2066
|
+
MatCalendarHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", 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 });
|
|
2067
|
+
MatCalendarHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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]=\"_periodButtonLabelId\" aria-live=\"polite\">\n <span aria-hidden=\"true\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\" aria-hidden=\"true\">\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<label [id]=\"_periodButtonLabelId\" class=\"mat-calendar-hidden-label\">{{periodButtonDescription}}</label>\n", dependencies: [{ kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatCalendarHeader, decorators: [{
|
|
2069
2069
|
type: Component,
|
|
2070
2070
|
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]=\"_periodButtonLabelId\" aria-live=\"polite\">\n <span aria-hidden=\"true\">{{periodButtonText}}</span>\n <svg class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\" focusable=\"false\" aria-hidden=\"true\">\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<label [id]=\"_periodButtonLabelId\" class=\"mat-calendar-hidden-label\">{{periodButtonDescription}}</label>\n" }]
|
|
2071
2071
|
}], ctorParameters: function () { return [{ type: MatDatepickerIntl }, { type: MatCalendar, decorators: [{
|
|
@@ -2081,57 +2081,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
2081
2081
|
}] }, { type: i0.ChangeDetectorRef }]; } });
|
|
2082
2082
|
/** A calendar that is used as part of the datepicker. */
|
|
2083
2083
|
class MatCalendar {
|
|
2084
|
-
constructor(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {
|
|
2085
|
-
this._dateAdapter = _dateAdapter;
|
|
2086
|
-
this._dateFormats = _dateFormats;
|
|
2087
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
2088
|
-
/**
|
|
2089
|
-
* Used for scheduling that focus should be moved to the active cell on the next tick.
|
|
2090
|
-
* We need to schedule it, rather than do it immediately, because we have to wait
|
|
2091
|
-
* for Angular to re-evaluate the view children.
|
|
2092
|
-
*/
|
|
2093
|
-
this._moveFocusOnNextTick = false;
|
|
2094
|
-
/** Whether the calendar should be started in month or year view. */
|
|
2095
|
-
this.startView = 'month';
|
|
2096
|
-
/** Emits when the currently selected date changes. */
|
|
2097
|
-
this.selectedChange = new EventEmitter();
|
|
2098
|
-
/**
|
|
2099
|
-
* Emits the year chosen in multiyear view.
|
|
2100
|
-
* This doesn't imply a change on the selected date.
|
|
2101
|
-
*/
|
|
2102
|
-
this.yearSelected = new EventEmitter();
|
|
2103
|
-
/**
|
|
2104
|
-
* Emits the month chosen in year view.
|
|
2105
|
-
* This doesn't imply a change on the selected date.
|
|
2106
|
-
*/
|
|
2107
|
-
this.monthSelected = new EventEmitter();
|
|
2108
|
-
/**
|
|
2109
|
-
* Emits when the current view changes.
|
|
2110
|
-
*/
|
|
2111
|
-
this.viewChanged = new EventEmitter(true);
|
|
2112
|
-
/** Emits when any date is selected. */
|
|
2113
|
-
this._userSelection = new EventEmitter();
|
|
2114
|
-
/** Emits a new date range value when the user completes a drag drop operation. */
|
|
2115
|
-
this._userDragDrop = new EventEmitter();
|
|
2116
|
-
/** Origin of active drag, or null when dragging is not active. */
|
|
2117
|
-
this._activeDrag = null;
|
|
2118
|
-
/**
|
|
2119
|
-
* Emits whenever there is a state change that the header may need to respond to.
|
|
2120
|
-
*/
|
|
2121
|
-
this.stateChanges = new Subject();
|
|
2122
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
2123
|
-
if (!this._dateAdapter) {
|
|
2124
|
-
throw createMissingDateImplError('DateAdapter');
|
|
2125
|
-
}
|
|
2126
|
-
if (!this._dateFormats) {
|
|
2127
|
-
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
this._intlChanges = _intl.changes.subscribe(() => {
|
|
2131
|
-
_changeDetectorRef.markForCheck();
|
|
2132
|
-
this.stateChanges.next();
|
|
2133
|
-
});
|
|
2134
|
-
}
|
|
2135
2084
|
/** A date representing the period (month or year) to start the calendar in. */
|
|
2136
2085
|
get startAt() {
|
|
2137
2086
|
return this._startAt;
|
|
@@ -2190,6 +2139,57 @@ class MatCalendar {
|
|
|
2190
2139
|
this.viewChanged.emit(viewChangedResult);
|
|
2191
2140
|
}
|
|
2192
2141
|
}
|
|
2142
|
+
constructor(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {
|
|
2143
|
+
this._dateAdapter = _dateAdapter;
|
|
2144
|
+
this._dateFormats = _dateFormats;
|
|
2145
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
2146
|
+
/**
|
|
2147
|
+
* Used for scheduling that focus should be moved to the active cell on the next tick.
|
|
2148
|
+
* We need to schedule it, rather than do it immediately, because we have to wait
|
|
2149
|
+
* for Angular to re-evaluate the view children.
|
|
2150
|
+
*/
|
|
2151
|
+
this._moveFocusOnNextTick = false;
|
|
2152
|
+
/** Whether the calendar should be started in month or year view. */
|
|
2153
|
+
this.startView = 'month';
|
|
2154
|
+
/** Emits when the currently selected date changes. */
|
|
2155
|
+
this.selectedChange = new EventEmitter();
|
|
2156
|
+
/**
|
|
2157
|
+
* Emits the year chosen in multiyear view.
|
|
2158
|
+
* This doesn't imply a change on the selected date.
|
|
2159
|
+
*/
|
|
2160
|
+
this.yearSelected = new EventEmitter();
|
|
2161
|
+
/**
|
|
2162
|
+
* Emits the month chosen in year view.
|
|
2163
|
+
* This doesn't imply a change on the selected date.
|
|
2164
|
+
*/
|
|
2165
|
+
this.monthSelected = new EventEmitter();
|
|
2166
|
+
/**
|
|
2167
|
+
* Emits when the current view changes.
|
|
2168
|
+
*/
|
|
2169
|
+
this.viewChanged = new EventEmitter(true);
|
|
2170
|
+
/** Emits when any date is selected. */
|
|
2171
|
+
this._userSelection = new EventEmitter();
|
|
2172
|
+
/** Emits a new date range value when the user completes a drag drop operation. */
|
|
2173
|
+
this._userDragDrop = new EventEmitter();
|
|
2174
|
+
/** Origin of active drag, or null when dragging is not active. */
|
|
2175
|
+
this._activeDrag = null;
|
|
2176
|
+
/**
|
|
2177
|
+
* Emits whenever there is a state change that the header may need to respond to.
|
|
2178
|
+
*/
|
|
2179
|
+
this.stateChanges = new Subject();
|
|
2180
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
2181
|
+
if (!this._dateAdapter) {
|
|
2182
|
+
throw createMissingDateImplError('DateAdapter');
|
|
2183
|
+
}
|
|
2184
|
+
if (!this._dateFormats) {
|
|
2185
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
this._intlChanges = _intl.changes.subscribe(() => {
|
|
2189
|
+
_changeDetectorRef.markForCheck();
|
|
2190
|
+
this.stateChanges.next();
|
|
2191
|
+
});
|
|
2192
|
+
}
|
|
2193
2193
|
ngAfterContentInit() {
|
|
2194
2194
|
this._calendarHeaderPortal = new ComponentPortal(this.headerComponent || MatCalendarHeader);
|
|
2195
2195
|
this.activeDate = this.startAt || this._dateAdapter.today();
|
|
@@ -2284,9 +2284,9 @@ class MatCalendar {
|
|
|
2284
2284
|
return this.monthView || this.yearView || this.multiYearView;
|
|
2285
2285
|
}
|
|
2286
2286
|
}
|
|
2287
|
-
MatCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2288
|
-
MatCalendar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
2289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2287
|
+
MatCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", 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 });
|
|
2288
|
+
MatCalendar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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", startDateAccessibleName: "startDateAccessibleName", endDateAccessibleName: "endDateAccessibleName" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", monthSelected: "monthSelected", viewChanged: "viewChanged", _userSelection: "_userSelection", _userDragDrop: "_userDragDrop" }, 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 [startDateAccessibleName]=\"startDateAccessibleName\"\n [endDateAccessibleName]=\"endDateAccessibleName\"\n (_userSelection)=\"_dateSelected($event)\"\n (dragStarted)=\"_dragStarted($event)\"\n (dragEnded)=\"_dragEnded($event)\"\n [activeDrag]=\"_activeDrag\"\n >\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;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.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-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:\"\"}.mat-calendar-hidden-label{display:none}"], dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i5.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"], exportAs: ["cdkMonitorFocus"] }, { kind: "directive", type: i6.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: MatMonthView, selector: "mat-month-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName", "activeDrag"], outputs: ["selectedChange", "_userSelection", "dragStarted", "dragEnded", "activeDateChange"], exportAs: ["matMonthView"] }, { kind: "component", type: MatYearView, selector: "mat-year-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass"], outputs: ["selectedChange", "monthSelected", "activeDateChange"], exportAs: ["matYearView"] }, { kind: "component", type: MatMultiYearView, selector: "mat-multi-year-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass"], outputs: ["selectedChange", "yearSelected", "activeDateChange"], exportAs: ["matMultiYearView"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatCalendar, decorators: [{
|
|
2290
2290
|
type: Component,
|
|
2291
2291
|
args: [{ selector: 'mat-calendar', host: {
|
|
2292
2292
|
'class': 'mat-calendar',
|
|
@@ -2505,9 +2505,9 @@ class MatDatepickerContent extends _MatDatepickerContentBase {
|
|
|
2505
2505
|
}
|
|
2506
2506
|
}
|
|
2507
2507
|
}
|
|
2508
|
-
MatDatepickerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2509
|
-
MatDatepickerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
2510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2508
|
+
MatDatepickerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", 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 });
|
|
2509
|
+
MatDatepickerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDatepickerContent, selector: "mat-datepicker-content", inputs: { color: "color" }, host: { listeners: { "@transformPanel.start": "_handleAnimationEvent($event)", "@transformPanel.done": "_handleAnimationEvent($event)" }, 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 role=\"dialog\"\n [attr.aria-modal]=\"true\"\n [attr.aria-labelledby]=\"_dialogLabelId ?? undefined\"\n class=\"mat-datepicker-content-container\"\n [class.mat-datepicker-content-container-with-custom-header]=\"datepicker.calendarHeaderComponent\"\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 [startDateAccessibleName]=\"startDateAccessibleName\"\n [endDateAccessibleName]=\"endDateAccessibleName\"\n (yearSelected)=\"datepicker._selectYear($event)\"\n (monthSelected)=\"datepicker._selectMonth($event)\"\n (viewChanged)=\"datepicker._viewChanged($event)\"\n (_userSelection)=\"_handleUserSelection($event)\"\n (_userDragDrop)=\"_handleUserDragDrop($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-content-container-with-custom-header .mat-calendar{height:auto}.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}}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i5.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: i6.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }], animations: [matDatepickerAnimations.transformPanel, matDatepickerAnimations.fadeInCalendar], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerContent, decorators: [{
|
|
2511
2511
|
type: Component,
|
|
2512
2512
|
args: [{ selector: 'mat-datepicker-content', host: {
|
|
2513
2513
|
'class': 'mat-datepicker-content',
|
|
@@ -2527,55 +2527,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
2527
2527
|
}] } });
|
|
2528
2528
|
/** Base class for a datepicker. */
|
|
2529
2529
|
class MatDatepickerBase {
|
|
2530
|
-
constructor(_overlay, _ngZone, _viewContainerRef, scrollStrategy, _dateAdapter, _dir, _model) {
|
|
2531
|
-
this._overlay = _overlay;
|
|
2532
|
-
this._ngZone = _ngZone;
|
|
2533
|
-
this._viewContainerRef = _viewContainerRef;
|
|
2534
|
-
this._dateAdapter = _dateAdapter;
|
|
2535
|
-
this._dir = _dir;
|
|
2536
|
-
this._model = _model;
|
|
2537
|
-
this._inputStateChanges = Subscription.EMPTY;
|
|
2538
|
-
this._document = inject(DOCUMENT);
|
|
2539
|
-
/** The view that the calendar should start in. */
|
|
2540
|
-
this.startView = 'month';
|
|
2541
|
-
this._touchUi = false;
|
|
2542
|
-
/** Preferred position of the datepicker in the X axis. */
|
|
2543
|
-
this.xPosition = 'start';
|
|
2544
|
-
/** Preferred position of the datepicker in the Y axis. */
|
|
2545
|
-
this.yPosition = 'below';
|
|
2546
|
-
this._restoreFocus = true;
|
|
2547
|
-
/**
|
|
2548
|
-
* Emits selected year in multiyear view.
|
|
2549
|
-
* This doesn't imply a change on the selected date.
|
|
2550
|
-
*/
|
|
2551
|
-
this.yearSelected = new EventEmitter();
|
|
2552
|
-
/**
|
|
2553
|
-
* Emits selected month in year view.
|
|
2554
|
-
* This doesn't imply a change on the selected date.
|
|
2555
|
-
*/
|
|
2556
|
-
this.monthSelected = new EventEmitter();
|
|
2557
|
-
/**
|
|
2558
|
-
* Emits when the current view changes.
|
|
2559
|
-
*/
|
|
2560
|
-
this.viewChanged = new EventEmitter(true);
|
|
2561
|
-
/** Emits when the datepicker has been opened. */
|
|
2562
|
-
this.openedStream = new EventEmitter();
|
|
2563
|
-
/** Emits when the datepicker has been closed. */
|
|
2564
|
-
this.closedStream = new EventEmitter();
|
|
2565
|
-
this._opened = false;
|
|
2566
|
-
/** The id for the datepicker calendar. */
|
|
2567
|
-
this.id = `mat-datepicker-${datepickerUid++}`;
|
|
2568
|
-
/** The element that was focused before the datepicker was opened. */
|
|
2569
|
-
this._focusedElementBeforeOpen = null;
|
|
2570
|
-
/** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
|
|
2571
|
-
this._backdropHarnessClass = `${this.id}-backdrop`;
|
|
2572
|
-
/** Emits when the datepicker's state changes. */
|
|
2573
|
-
this.stateChanges = new Subject();
|
|
2574
|
-
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
2575
|
-
throw createMissingDateImplError('DateAdapter');
|
|
2576
|
-
}
|
|
2577
|
-
this._scrollStrategy = scrollStrategy;
|
|
2578
|
-
}
|
|
2579
2530
|
/** The date to open the calendar to initially. */
|
|
2580
2531
|
get startAt() {
|
|
2581
2532
|
// If an explicit startAt is set we start there, otherwise we start at whatever the currently
|
|
@@ -2654,6 +2605,55 @@ class MatDatepickerBase {
|
|
|
2654
2605
|
_getDateFilter() {
|
|
2655
2606
|
return this.datepickerInput && this.datepickerInput.dateFilter;
|
|
2656
2607
|
}
|
|
2608
|
+
constructor(_overlay, _ngZone, _viewContainerRef, scrollStrategy, _dateAdapter, _dir, _model) {
|
|
2609
|
+
this._overlay = _overlay;
|
|
2610
|
+
this._ngZone = _ngZone;
|
|
2611
|
+
this._viewContainerRef = _viewContainerRef;
|
|
2612
|
+
this._dateAdapter = _dateAdapter;
|
|
2613
|
+
this._dir = _dir;
|
|
2614
|
+
this._model = _model;
|
|
2615
|
+
this._inputStateChanges = Subscription.EMPTY;
|
|
2616
|
+
this._document = inject(DOCUMENT);
|
|
2617
|
+
/** The view that the calendar should start in. */
|
|
2618
|
+
this.startView = 'month';
|
|
2619
|
+
this._touchUi = false;
|
|
2620
|
+
/** Preferred position of the datepicker in the X axis. */
|
|
2621
|
+
this.xPosition = 'start';
|
|
2622
|
+
/** Preferred position of the datepicker in the Y axis. */
|
|
2623
|
+
this.yPosition = 'below';
|
|
2624
|
+
this._restoreFocus = true;
|
|
2625
|
+
/**
|
|
2626
|
+
* Emits selected year in multiyear view.
|
|
2627
|
+
* This doesn't imply a change on the selected date.
|
|
2628
|
+
*/
|
|
2629
|
+
this.yearSelected = new EventEmitter();
|
|
2630
|
+
/**
|
|
2631
|
+
* Emits selected month in year view.
|
|
2632
|
+
* This doesn't imply a change on the selected date.
|
|
2633
|
+
*/
|
|
2634
|
+
this.monthSelected = new EventEmitter();
|
|
2635
|
+
/**
|
|
2636
|
+
* Emits when the current view changes.
|
|
2637
|
+
*/
|
|
2638
|
+
this.viewChanged = new EventEmitter(true);
|
|
2639
|
+
/** Emits when the datepicker has been opened. */
|
|
2640
|
+
this.openedStream = new EventEmitter();
|
|
2641
|
+
/** Emits when the datepicker has been closed. */
|
|
2642
|
+
this.closedStream = new EventEmitter();
|
|
2643
|
+
this._opened = false;
|
|
2644
|
+
/** The id for the datepicker calendar. */
|
|
2645
|
+
this.id = `mat-datepicker-${datepickerUid++}`;
|
|
2646
|
+
/** The element that was focused before the datepicker was opened. */
|
|
2647
|
+
this._focusedElementBeforeOpen = null;
|
|
2648
|
+
/** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
|
|
2649
|
+
this._backdropHarnessClass = `${this.id}-backdrop`;
|
|
2650
|
+
/** Emits when the datepicker's state changes. */
|
|
2651
|
+
this.stateChanges = new Subject();
|
|
2652
|
+
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
2653
|
+
throw createMissingDateImplError('DateAdapter');
|
|
2654
|
+
}
|
|
2655
|
+
this._scrollStrategy = scrollStrategy;
|
|
2656
|
+
}
|
|
2657
2657
|
ngOnChanges(changes) {
|
|
2658
2658
|
const positionChange = changes['xPosition'] || changes['yPosition'];
|
|
2659
2659
|
if (positionChange && !positionChange.firstChange && this._overlayRef) {
|
|
@@ -2909,9 +2909,9 @@ class MatDatepickerBase {
|
|
|
2909
2909
|
})));
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
|
-
MatDatepickerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2913
|
-
MatDatepickerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
2914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2912
|
+
MatDatepickerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", 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 });
|
|
2913
|
+
MatDatepickerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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 });
|
|
2914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerBase, decorators: [{
|
|
2915
2915
|
type: Directive
|
|
2916
2916
|
}], ctorParameters: function () { return [{ type: i9.Overlay }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
2917
2917
|
type: Inject,
|
|
@@ -2971,12 +2971,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
2971
2971
|
/** Component responsible for managing the datepicker popup/dialog. */
|
|
2972
2972
|
class MatDatepicker extends MatDatepickerBase {
|
|
2973
2973
|
}
|
|
2974
|
-
MatDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2975
|
-
MatDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
2974
|
+
MatDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2975
|
+
MatDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDatepicker, selector: "mat-datepicker", providers: [
|
|
2976
2976
|
MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER,
|
|
2977
2977
|
{ provide: MatDatepickerBase, useExisting: MatDatepicker },
|
|
2978
2978
|
], exportAs: ["matDatepicker"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepicker, decorators: [{
|
|
2980
2980
|
type: Component,
|
|
2981
2981
|
args: [{
|
|
2982
2982
|
selector: 'mat-datepicker',
|
|
@@ -3016,6 +3016,58 @@ class MatDatepickerInputEvent {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
/** Base class for datepicker inputs. */
|
|
3018
3018
|
class MatDatepickerInputBase {
|
|
3019
|
+
/** The value of the input. */
|
|
3020
|
+
get value() {
|
|
3021
|
+
return this._model ? this._getValueFromModel(this._model.selection) : this._pendingValue;
|
|
3022
|
+
}
|
|
3023
|
+
set value(value) {
|
|
3024
|
+
this._assignValueProgrammatically(value);
|
|
3025
|
+
}
|
|
3026
|
+
/** Whether the datepicker-input is disabled. */
|
|
3027
|
+
get disabled() {
|
|
3028
|
+
return !!this._disabled || this._parentDisabled();
|
|
3029
|
+
}
|
|
3030
|
+
set disabled(value) {
|
|
3031
|
+
const newValue = coerceBooleanProperty(value);
|
|
3032
|
+
const element = this._elementRef.nativeElement;
|
|
3033
|
+
if (this._disabled !== newValue) {
|
|
3034
|
+
this._disabled = newValue;
|
|
3035
|
+
this.stateChanges.next(undefined);
|
|
3036
|
+
}
|
|
3037
|
+
// We need to null check the `blur` method, because it's undefined during SSR.
|
|
3038
|
+
// In Ivy static bindings are invoked earlier, before the element is attached to the DOM.
|
|
3039
|
+
// This can cause an error to be thrown in some browsers (IE/Edge) which assert that the
|
|
3040
|
+
// element has been inserted.
|
|
3041
|
+
if (newValue && this._isInitialized && element.blur) {
|
|
3042
|
+
// Normally, native input elements automatically blur if they turn disabled. This behavior
|
|
3043
|
+
// is problematic, because it would mean that it triggers another change detection cycle,
|
|
3044
|
+
// which then causes a changed after checked error if the input element was focused before.
|
|
3045
|
+
element.blur();
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
/** Gets the base validator functions. */
|
|
3049
|
+
_getValidators() {
|
|
3050
|
+
return [this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator];
|
|
3051
|
+
}
|
|
3052
|
+
/** Registers a date selection model with the input. */
|
|
3053
|
+
_registerModel(model) {
|
|
3054
|
+
this._model = model;
|
|
3055
|
+
this._valueChangesSubscription.unsubscribe();
|
|
3056
|
+
if (this._pendingValue) {
|
|
3057
|
+
this._assignValue(this._pendingValue);
|
|
3058
|
+
}
|
|
3059
|
+
this._valueChangesSubscription = this._model.selectionChanged.subscribe(event => {
|
|
3060
|
+
if (this._shouldHandleChangeEvent(event)) {
|
|
3061
|
+
const value = this._getValueFromModel(event.selection);
|
|
3062
|
+
this._lastValueValid = this._isValidValue(value);
|
|
3063
|
+
this._cvaOnChange(value);
|
|
3064
|
+
this._onTouched();
|
|
3065
|
+
this._formatValue(value);
|
|
3066
|
+
this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
3067
|
+
this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
3068
|
+
}
|
|
3069
|
+
});
|
|
3070
|
+
}
|
|
3019
3071
|
constructor(_elementRef, _dateAdapter, _dateFormats) {
|
|
3020
3072
|
this._elementRef = _elementRef;
|
|
3021
3073
|
this._dateAdapter = _dateAdapter;
|
|
@@ -3075,58 +3127,6 @@ class MatDatepickerInputBase {
|
|
|
3075
3127
|
this._assignValueProgrammatically(this.value);
|
|
3076
3128
|
});
|
|
3077
3129
|
}
|
|
3078
|
-
/** The value of the input. */
|
|
3079
|
-
get value() {
|
|
3080
|
-
return this._model ? this._getValueFromModel(this._model.selection) : this._pendingValue;
|
|
3081
|
-
}
|
|
3082
|
-
set value(value) {
|
|
3083
|
-
this._assignValueProgrammatically(value);
|
|
3084
|
-
}
|
|
3085
|
-
/** Whether the datepicker-input is disabled. */
|
|
3086
|
-
get disabled() {
|
|
3087
|
-
return !!this._disabled || this._parentDisabled();
|
|
3088
|
-
}
|
|
3089
|
-
set disabled(value) {
|
|
3090
|
-
const newValue = coerceBooleanProperty(value);
|
|
3091
|
-
const element = this._elementRef.nativeElement;
|
|
3092
|
-
if (this._disabled !== newValue) {
|
|
3093
|
-
this._disabled = newValue;
|
|
3094
|
-
this.stateChanges.next(undefined);
|
|
3095
|
-
}
|
|
3096
|
-
// We need to null check the `blur` method, because it's undefined during SSR.
|
|
3097
|
-
// In Ivy static bindings are invoked earlier, before the element is attached to the DOM.
|
|
3098
|
-
// This can cause an error to be thrown in some browsers (IE/Edge) which assert that the
|
|
3099
|
-
// element has been inserted.
|
|
3100
|
-
if (newValue && this._isInitialized && element.blur) {
|
|
3101
|
-
// Normally, native input elements automatically blur if they turn disabled. This behavior
|
|
3102
|
-
// is problematic, because it would mean that it triggers another change detection cycle,
|
|
3103
|
-
// which then causes a changed after checked error if the input element was focused before.
|
|
3104
|
-
element.blur();
|
|
3105
|
-
}
|
|
3106
|
-
}
|
|
3107
|
-
/** Gets the base validator functions. */
|
|
3108
|
-
_getValidators() {
|
|
3109
|
-
return [this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator];
|
|
3110
|
-
}
|
|
3111
|
-
/** Registers a date selection model with the input. */
|
|
3112
|
-
_registerModel(model) {
|
|
3113
|
-
this._model = model;
|
|
3114
|
-
this._valueChangesSubscription.unsubscribe();
|
|
3115
|
-
if (this._pendingValue) {
|
|
3116
|
-
this._assignValue(this._pendingValue);
|
|
3117
|
-
}
|
|
3118
|
-
this._valueChangesSubscription = this._model.selectionChanged.subscribe(event => {
|
|
3119
|
-
if (this._shouldHandleChangeEvent(event)) {
|
|
3120
|
-
const value = this._getValueFromModel(event.selection);
|
|
3121
|
-
this._lastValueValid = this._isValidValue(value);
|
|
3122
|
-
this._cvaOnChange(value);
|
|
3123
|
-
this._onTouched();
|
|
3124
|
-
this._formatValue(value);
|
|
3125
|
-
this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
3126
|
-
this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
3127
|
-
}
|
|
3128
|
-
});
|
|
3129
|
-
}
|
|
3130
3130
|
ngAfterViewInit() {
|
|
3131
3131
|
this._isInitialized = true;
|
|
3132
3132
|
}
|
|
@@ -3253,9 +3253,9 @@ class MatDatepickerInputBase {
|
|
|
3253
3253
|
return !filter || filter(value);
|
|
3254
3254
|
}
|
|
3255
3255
|
}
|
|
3256
|
-
MatDatepickerInputBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3257
|
-
MatDatepickerInputBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3256
|
+
MatDatepickerInputBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerInputBase, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3257
|
+
MatDatepickerInputBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDatepickerInputBase, inputs: { value: "value", disabled: "disabled" }, outputs: { dateChange: "dateChange", dateInput: "dateInput" }, usesOnChanges: true, ngImport: i0 });
|
|
3258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerInputBase, decorators: [{
|
|
3259
3259
|
type: Directive
|
|
3260
3260
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$1.DateAdapter, decorators: [{
|
|
3261
3261
|
type: Optional
|
|
@@ -3314,12 +3314,6 @@ const MAT_DATEPICKER_VALIDATORS = {
|
|
|
3314
3314
|
};
|
|
3315
3315
|
/** Directive used to connect an input to a MatDatepicker. */
|
|
3316
3316
|
class MatDatepickerInput extends MatDatepickerInputBase {
|
|
3317
|
-
constructor(elementRef, dateAdapter, dateFormats, _formField) {
|
|
3318
|
-
super(elementRef, dateAdapter, dateFormats);
|
|
3319
|
-
this._formField = _formField;
|
|
3320
|
-
this._closedSubscription = Subscription.EMPTY;
|
|
3321
|
-
this._validator = Validators.compose(super._getValidators());
|
|
3322
|
-
}
|
|
3323
3317
|
/** The datepicker that this input is associated with. */
|
|
3324
3318
|
set matDatepicker(datepicker) {
|
|
3325
3319
|
if (datepicker) {
|
|
@@ -3361,6 +3355,12 @@ class MatDatepickerInput extends MatDatepickerInputBase {
|
|
|
3361
3355
|
this._validatorOnChange();
|
|
3362
3356
|
}
|
|
3363
3357
|
}
|
|
3358
|
+
constructor(elementRef, dateAdapter, dateFormats, _formField) {
|
|
3359
|
+
super(elementRef, dateAdapter, dateFormats);
|
|
3360
|
+
this._formField = _formField;
|
|
3361
|
+
this._closedSubscription = Subscription.EMPTY;
|
|
3362
|
+
this._validator = Validators.compose(super._getValidators());
|
|
3363
|
+
}
|
|
3364
3364
|
/**
|
|
3365
3365
|
* Gets the element that the datepicker popup should be connected to.
|
|
3366
3366
|
* @return The element to connect the popup to.
|
|
@@ -3417,13 +3417,13 @@ class MatDatepickerInput extends MatDatepickerInputBase {
|
|
|
3417
3417
|
return event.source !== this;
|
|
3418
3418
|
}
|
|
3419
3419
|
}
|
|
3420
|
-
MatDatepickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3421
|
-
MatDatepickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3420
|
+
MatDatepickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", 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 });
|
|
3421
|
+
MatDatepickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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: [
|
|
3422
3422
|
MAT_DATEPICKER_VALUE_ACCESSOR,
|
|
3423
3423
|
MAT_DATEPICKER_VALIDATORS,
|
|
3424
3424
|
{ provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput },
|
|
3425
3425
|
], exportAs: ["matDatepickerInput"], usesInheritance: true, ngImport: i0 });
|
|
3426
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerInput, decorators: [{
|
|
3427
3427
|
type: Directive,
|
|
3428
3428
|
args: [{
|
|
3429
3429
|
selector: 'input[matDatepicker]',
|
|
@@ -3482,22 +3482,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
3482
3482
|
/** Can be used to override the icon of a `matDatepickerToggle`. */
|
|
3483
3483
|
class MatDatepickerToggleIcon {
|
|
3484
3484
|
}
|
|
3485
|
-
MatDatepickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3486
|
-
MatDatepickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3485
|
+
MatDatepickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3486
|
+
MatDatepickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDatepickerToggleIcon, selector: "[matDatepickerToggleIcon]", ngImport: i0 });
|
|
3487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerToggleIcon, decorators: [{
|
|
3488
3488
|
type: Directive,
|
|
3489
3489
|
args: [{
|
|
3490
3490
|
selector: '[matDatepickerToggleIcon]',
|
|
3491
3491
|
}]
|
|
3492
3492
|
}] });
|
|
3493
3493
|
class MatDatepickerToggle {
|
|
3494
|
-
constructor(_intl, _changeDetectorRef, defaultTabIndex) {
|
|
3495
|
-
this._intl = _intl;
|
|
3496
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
3497
|
-
this._stateChanges = Subscription.EMPTY;
|
|
3498
|
-
const parsedTabIndex = Number(defaultTabIndex);
|
|
3499
|
-
this.tabIndex = parsedTabIndex || parsedTabIndex === 0 ? parsedTabIndex : null;
|
|
3500
|
-
}
|
|
3501
3494
|
/** Whether the toggle button is disabled. */
|
|
3502
3495
|
get disabled() {
|
|
3503
3496
|
if (this._disabled === undefined && this.datepicker) {
|
|
@@ -3508,6 +3501,13 @@ class MatDatepickerToggle {
|
|
|
3508
3501
|
set disabled(value) {
|
|
3509
3502
|
this._disabled = coerceBooleanProperty(value);
|
|
3510
3503
|
}
|
|
3504
|
+
constructor(_intl, _changeDetectorRef, defaultTabIndex) {
|
|
3505
|
+
this._intl = _intl;
|
|
3506
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
3507
|
+
this._stateChanges = Subscription.EMPTY;
|
|
3508
|
+
const parsedTabIndex = Number(defaultTabIndex);
|
|
3509
|
+
this.tabIndex = parsedTabIndex || parsedTabIndex === 0 ? parsedTabIndex : null;
|
|
3510
|
+
}
|
|
3511
3511
|
ngOnChanges(changes) {
|
|
3512
3512
|
if (changes['datepicker']) {
|
|
3513
3513
|
this._watchStateChanges();
|
|
@@ -3537,9 +3537,9 @@ class MatDatepickerToggle {
|
|
|
3537
3537
|
this._stateChanges = merge(this._intl.changes, datepickerStateChanged, inputStateChanged, datepickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());
|
|
3538
3538
|
}
|
|
3539
3539
|
}
|
|
3540
|
-
MatDatepickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3541
|
-
MatDatepickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
3542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3540
|
+
MatDatepickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerToggle, deps: [{ token: MatDatepickerIntl }, { token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
3541
|
+
MatDatepickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerToggle, decorators: [{
|
|
3543
3543
|
type: Component,
|
|
3544
3544
|
args: [{ selector: 'mat-datepicker-toggle', host: {
|
|
3545
3545
|
'class': 'mat-datepicker-toggle',
|
|
@@ -3840,9 +3840,9 @@ class MatDateRangeInputPartBase extends MatDatepickerInputBase {
|
|
|
3840
3840
|
return _computeAriaAccessibleName(this._elementRef.nativeElement);
|
|
3841
3841
|
}
|
|
3842
3842
|
}
|
|
3843
|
-
MatDateRangeInputPartBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3844
|
-
MatDateRangeInputPartBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3843
|
+
MatDateRangeInputPartBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangeInputPartBase, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$1.NgForm, optional: true }, { token: i2$1.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3844
|
+
MatDateRangeInputPartBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDateRangeInputPartBase, usesInheritance: true, ngImport: i0 });
|
|
3845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangeInputPartBase, decorators: [{
|
|
3846
3846
|
type: Directive
|
|
3847
3847
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
3848
3848
|
type: Inject,
|
|
@@ -3917,12 +3917,12 @@ class MatStartDate extends _MatDateRangeInputBase {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
}
|
|
3919
3919
|
}
|
|
3920
|
-
MatStartDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3921
|
-
MatStartDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3920
|
+
MatStartDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatStartDate, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$1.NgForm, optional: true }, { token: i2$1.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3921
|
+
MatStartDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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.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: [
|
|
3922
3922
|
{ provide: NG_VALUE_ACCESSOR, useExisting: MatStartDate, multi: true },
|
|
3923
3923
|
{ provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true },
|
|
3924
3924
|
], usesInheritance: true, ngImport: i0 });
|
|
3925
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatStartDate, decorators: [{
|
|
3926
3926
|
type: Directive,
|
|
3927
3927
|
args: [{
|
|
3928
3928
|
selector: 'input[matStartDate]',
|
|
@@ -4020,12 +4020,12 @@ class MatEndDate extends _MatDateRangeInputBase {
|
|
|
4020
4020
|
}
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
4023
|
-
MatEndDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4024
|
-
MatEndDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4023
|
+
MatEndDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatEndDate, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$1.NgForm, optional: true }, { token: i2$1.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4024
|
+
MatEndDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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: [
|
|
4025
4025
|
{ provide: NG_VALUE_ACCESSOR, useExisting: MatEndDate, multi: true },
|
|
4026
4026
|
{ provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true },
|
|
4027
4027
|
], usesInheritance: true, ngImport: i0 });
|
|
4028
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4028
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatEndDate, decorators: [{
|
|
4029
4029
|
type: Directive,
|
|
4030
4030
|
args: [{
|
|
4031
4031
|
selector: 'input[matEndDate]',
|
|
@@ -4076,42 +4076,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
4076
4076
|
*/
|
|
4077
4077
|
let nextUniqueId = 0;
|
|
4078
4078
|
class MatDateRangeInput {
|
|
4079
|
-
constructor(_changeDetectorRef, _elementRef, control, _dateAdapter, _formField) {
|
|
4080
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
4081
|
-
this._elementRef = _elementRef;
|
|
4082
|
-
this._dateAdapter = _dateAdapter;
|
|
4083
|
-
this._formField = _formField;
|
|
4084
|
-
this._closedSubscription = Subscription.EMPTY;
|
|
4085
|
-
/** Unique ID for the group. */
|
|
4086
|
-
this.id = `mat-date-range-input-${nextUniqueId++}`;
|
|
4087
|
-
/** Whether the control is focused. */
|
|
4088
|
-
this.focused = false;
|
|
4089
|
-
/** Name of the form control. */
|
|
4090
|
-
this.controlType = 'mat-date-range-input';
|
|
4091
|
-
this._groupDisabled = false;
|
|
4092
|
-
/** Value for the `aria-describedby` attribute of the inputs. */
|
|
4093
|
-
this._ariaDescribedBy = null;
|
|
4094
|
-
/** Separator text to be shown between the inputs. */
|
|
4095
|
-
this.separator = '–';
|
|
4096
|
-
/** Start of the comparison range that should be shown in the calendar. */
|
|
4097
|
-
this.comparisonStart = null;
|
|
4098
|
-
/** End of the comparison range that should be shown in the calendar. */
|
|
4099
|
-
this.comparisonEnd = null;
|
|
4100
|
-
/** Emits when the input's state has changed. */
|
|
4101
|
-
this.stateChanges = new Subject();
|
|
4102
|
-
if (!_dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
4103
|
-
throw createMissingDateImplError('DateAdapter');
|
|
4104
|
-
}
|
|
4105
|
-
// The datepicker module can be used both with MDC and non-MDC form fields. We have
|
|
4106
|
-
// to conditionally add the MDC input class so that the range picker looks correctly.
|
|
4107
|
-
if (_formField?._elementRef.nativeElement.classList.contains('mat-mdc-form-field')) {
|
|
4108
|
-
const classList = _elementRef.nativeElement.classList;
|
|
4109
|
-
classList.add('mat-mdc-input-element');
|
|
4110
|
-
classList.add('mat-mdc-form-field-input-control');
|
|
4111
|
-
}
|
|
4112
|
-
// TODO(crisbeto): remove `as any` after #18206 lands.
|
|
4113
|
-
this.ngControl = control;
|
|
4114
|
-
}
|
|
4115
4079
|
/** Current value of the range input. */
|
|
4116
4080
|
get value() {
|
|
4117
4081
|
return this._model ? this._model.selection : null;
|
|
@@ -4218,6 +4182,42 @@ class MatDateRangeInput {
|
|
|
4218
4182
|
const endEmpty = this._endInput ? this._endInput.isEmpty() : false;
|
|
4219
4183
|
return startEmpty && endEmpty;
|
|
4220
4184
|
}
|
|
4185
|
+
constructor(_changeDetectorRef, _elementRef, control, _dateAdapter, _formField) {
|
|
4186
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
4187
|
+
this._elementRef = _elementRef;
|
|
4188
|
+
this._dateAdapter = _dateAdapter;
|
|
4189
|
+
this._formField = _formField;
|
|
4190
|
+
this._closedSubscription = Subscription.EMPTY;
|
|
4191
|
+
/** Unique ID for the group. */
|
|
4192
|
+
this.id = `mat-date-range-input-${nextUniqueId++}`;
|
|
4193
|
+
/** Whether the control is focused. */
|
|
4194
|
+
this.focused = false;
|
|
4195
|
+
/** Name of the form control. */
|
|
4196
|
+
this.controlType = 'mat-date-range-input';
|
|
4197
|
+
this._groupDisabled = false;
|
|
4198
|
+
/** Value for the `aria-describedby` attribute of the inputs. */
|
|
4199
|
+
this._ariaDescribedBy = null;
|
|
4200
|
+
/** Separator text to be shown between the inputs. */
|
|
4201
|
+
this.separator = '–';
|
|
4202
|
+
/** Start of the comparison range that should be shown in the calendar. */
|
|
4203
|
+
this.comparisonStart = null;
|
|
4204
|
+
/** End of the comparison range that should be shown in the calendar. */
|
|
4205
|
+
this.comparisonEnd = null;
|
|
4206
|
+
/** Emits when the input's state has changed. */
|
|
4207
|
+
this.stateChanges = new Subject();
|
|
4208
|
+
if (!_dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
4209
|
+
throw createMissingDateImplError('DateAdapter');
|
|
4210
|
+
}
|
|
4211
|
+
// The datepicker module can be used both with MDC and non-MDC form fields. We have
|
|
4212
|
+
// to conditionally add the MDC input class so that the range picker looks correctly.
|
|
4213
|
+
if (_formField?._elementRef.nativeElement.classList.contains('mat-mdc-form-field')) {
|
|
4214
|
+
const classList = _elementRef.nativeElement.classList;
|
|
4215
|
+
classList.add('mat-mdc-input-element');
|
|
4216
|
+
classList.add('mat-mdc-form-field-input-control');
|
|
4217
|
+
}
|
|
4218
|
+
// TODO(crisbeto): remove `as any` after #18206 lands.
|
|
4219
|
+
this.ngControl = control;
|
|
4220
|
+
}
|
|
4221
4221
|
/**
|
|
4222
4222
|
* Implemented as a part of `MatFormFieldControl`.
|
|
4223
4223
|
* @docs-private
|
|
@@ -4343,12 +4343,12 @@ class MatDateRangeInput {
|
|
|
4343
4343
|
}
|
|
4344
4344
|
}
|
|
4345
4345
|
}
|
|
4346
|
-
MatDateRangeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4347
|
-
MatDateRangeInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
4346
|
+
MatDateRangeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangeInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2$1.ControlContainer, optional: true, self: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4347
|
+
MatDateRangeInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", 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": "id", "attr.aria-labelledby": "_getAriaLabelledby()", "attr.aria-describedby": "_ariaDescribedBy", "attr.data-mat-calendar": "rangePicker ? rangePicker.id : null" }, classAttribute: "mat-date-range-input" }, providers: [
|
|
4348
4348
|
{ provide: MatFormFieldControl, useExisting: MatDateRangeInput },
|
|
4349
4349
|
{ provide: MAT_DATE_RANGE_INPUT_PARENT, useExisting: MatDateRangeInput },
|
|
4350
4350
|
], 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-wrapper\">\n <ng-content select=\"input[matStartDate]\"></ng-content>\n <span\n class=\"mat-date-range-input-mirror\"\n aria-hidden=\"true\">{{_getInputMirrorValue('start')}}</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-wrapper mat-date-range-input-end-wrapper\">\n <ng-content select=\"input[matEndDate]\"></ng-content>\n <span\n class=\"mat-date-range-input-mirror\"\n aria-hidden=\"true\">{{_getInputMirrorValue('end')}}</span>\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-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height: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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);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-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"], dependencies: [{ kind: "directive", type: i5.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"], exportAs: ["cdkMonitorFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangeInput, decorators: [{
|
|
4352
4352
|
type: Component,
|
|
4353
4353
|
args: [{ selector: 'mat-date-range-input', exportAs: 'matDateRangeInput', host: {
|
|
4354
4354
|
'class': 'mat-date-range-input',
|
|
@@ -4425,13 +4425,13 @@ class MatDateRangePicker extends MatDatepickerBase {
|
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
|
-
MatDateRangePicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4429
|
-
MatDateRangePicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
4428
|
+
MatDateRangePicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangePicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4429
|
+
MatDateRangePicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDateRangePicker, selector: "mat-date-range-picker", providers: [
|
|
4430
4430
|
MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER,
|
|
4431
4431
|
MAT_CALENDAR_RANGE_STRATEGY_PROVIDER,
|
|
4432
4432
|
{ provide: MatDatepickerBase, useExisting: MatDateRangePicker },
|
|
4433
4433
|
], exportAs: ["matDateRangePicker"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangePicker, decorators: [{
|
|
4435
4435
|
type: Component,
|
|
4436
4436
|
args: [{
|
|
4437
4437
|
selector: 'mat-date-range-picker',
|
|
@@ -4464,9 +4464,9 @@ class MatDatepickerApply {
|
|
|
4464
4464
|
this._datepicker.close();
|
|
4465
4465
|
}
|
|
4466
4466
|
}
|
|
4467
|
-
MatDatepickerApply.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4468
|
-
MatDatepickerApply.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4467
|
+
MatDatepickerApply.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerApply, deps: [{ token: MatDatepickerBase }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4468
|
+
MatDatepickerApply.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDatepickerApply, selector: "[matDatepickerApply], [matDateRangePickerApply]", host: { listeners: { "click": "_applySelection()" } }, ngImport: i0 });
|
|
4469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerApply, decorators: [{
|
|
4470
4470
|
type: Directive,
|
|
4471
4471
|
args: [{
|
|
4472
4472
|
selector: '[matDatepickerApply], [matDateRangePickerApply]',
|
|
@@ -4479,9 +4479,9 @@ class MatDatepickerCancel {
|
|
|
4479
4479
|
this._datepicker = _datepicker;
|
|
4480
4480
|
}
|
|
4481
4481
|
}
|
|
4482
|
-
MatDatepickerCancel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4483
|
-
MatDatepickerCancel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4482
|
+
MatDatepickerCancel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerCancel, deps: [{ token: MatDatepickerBase }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4483
|
+
MatDatepickerCancel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDatepickerCancel, selector: "[matDatepickerCancel], [matDateRangePickerCancel]", host: { listeners: { "click": "_datepicker.close()" } }, ngImport: i0 });
|
|
4484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerCancel, decorators: [{
|
|
4485
4485
|
type: Directive,
|
|
4486
4486
|
args: [{
|
|
4487
4487
|
selector: '[matDatepickerCancel], [matDateRangePickerCancel]',
|
|
@@ -4509,15 +4509,15 @@ class MatDatepickerActions {
|
|
|
4509
4509
|
}
|
|
4510
4510
|
}
|
|
4511
4511
|
}
|
|
4512
|
-
MatDatepickerActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4513
|
-
MatDatepickerActions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
4512
|
+
MatDatepickerActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerActions, deps: [{ token: MatDatepickerBase }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4513
|
+
MatDatepickerActions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDatepickerActions, selector: "mat-datepicker-actions, mat-date-range-picker-actions", viewQueries: [{ propertyName: "_template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `
|
|
4514
4514
|
<ng-template>
|
|
4515
4515
|
<div class="mat-datepicker-actions">
|
|
4516
4516
|
<ng-content></ng-content>
|
|
4517
4517
|
</div>
|
|
4518
4518
|
</ng-template>
|
|
4519
4519
|
`, isInline: true, styles: [".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerActions, decorators: [{
|
|
4521
4521
|
type: Component,
|
|
4522
4522
|
args: [{ selector: 'mat-datepicker-actions, mat-date-range-picker-actions', template: `
|
|
4523
4523
|
<ng-template>
|
|
@@ -4540,8 +4540,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
4540
4540
|
*/
|
|
4541
4541
|
class MatDatepickerModule {
|
|
4542
4542
|
}
|
|
4543
|
-
MatDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4544
|
-
MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
4543
|
+
MatDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4544
|
+
MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerModule, declarations: [MatCalendar,
|
|
4545
4545
|
MatCalendarBody,
|
|
4546
4546
|
MatDatepicker,
|
|
4547
4547
|
MatDatepickerContent,
|
|
@@ -4582,13 +4582,13 @@ MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ver
|
|
|
4582
4582
|
MatDatepickerActions,
|
|
4583
4583
|
MatDatepickerCancel,
|
|
4584
4584
|
MatDatepickerApply] });
|
|
4585
|
-
MatDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
4585
|
+
MatDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerModule, providers: [MatDatepickerIntl, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [CommonModule,
|
|
4586
4586
|
MatButtonModule,
|
|
4587
4587
|
OverlayModule,
|
|
4588
4588
|
A11yModule,
|
|
4589
4589
|
PortalModule,
|
|
4590
4590
|
MatCommonModule, CdkScrollableModule] });
|
|
4591
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerModule, decorators: [{
|
|
4592
4592
|
type: NgModule,
|
|
4593
4593
|
args: [{
|
|
4594
4594
|
imports: [
|