@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/fesm2015/datepicker.mjs
CHANGED
|
@@ -68,6 +68,12 @@ let calendarBodyId = 1;
|
|
|
68
68
|
* @docs-private
|
|
69
69
|
*/
|
|
70
70
|
class MatCalendarBody {
|
|
71
|
+
ngAfterViewChecked() {
|
|
72
|
+
if (this._focusActiveCellAfterViewChecked) {
|
|
73
|
+
this._focusActiveCell();
|
|
74
|
+
this._focusActiveCellAfterViewChecked = false;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
71
77
|
constructor(_elementRef, _ngZone) {
|
|
72
78
|
this._elementRef = _elementRef;
|
|
73
79
|
this._ngZone = _ngZone;
|
|
@@ -219,12 +225,6 @@ class MatCalendarBody {
|
|
|
219
225
|
window.addEventListener('touchend', this._touchendHandler);
|
|
220
226
|
});
|
|
221
227
|
}
|
|
222
|
-
ngAfterViewChecked() {
|
|
223
|
-
if (this._focusActiveCellAfterViewChecked) {
|
|
224
|
-
this._focusActiveCell();
|
|
225
|
-
this._focusActiveCellAfterViewChecked = false;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
228
|
/** Called when a cell is clicked. */
|
|
229
229
|
_cellClicked(cell, event) {
|
|
230
230
|
// Ignore "clicks" that are actually canceled drags (eg the user dragged
|
|
@@ -424,9 +424,9 @@ class MatCalendarBody {
|
|
|
424
424
|
return null;
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
MatCalendarBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
428
|
-
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 });
|
|
429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
427
|
+
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 });
|
|
428
|
+
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 });
|
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatCalendarBody, decorators: [{
|
|
430
430
|
type: Component,
|
|
431
431
|
args: [{ selector: '[mat-calendar-body]', host: {
|
|
432
432
|
'class': 'mat-calendar-body',
|
|
@@ -572,9 +572,9 @@ class MatDateSelectionModel {
|
|
|
572
572
|
return this._adapter.isDateInstance(date) && this._adapter.isValid(date);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
MatDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
576
|
-
MatDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
575
|
+
MatDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateSelectionModel, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
576
|
+
MatDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateSelectionModel });
|
|
577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateSelectionModel, decorators: [{
|
|
578
578
|
type: Injectable
|
|
579
579
|
}], ctorParameters: function () { return [{ type: undefined }, { type: i1$1.DateAdapter }]; } });
|
|
580
580
|
/**
|
|
@@ -610,9 +610,9 @@ class MatSingleDateSelectionModel extends MatDateSelectionModel {
|
|
|
610
610
|
return clone;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
MatSingleDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
614
|
-
MatSingleDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
613
|
+
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 });
|
|
614
|
+
MatSingleDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatSingleDateSelectionModel });
|
|
615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatSingleDateSelectionModel, decorators: [{
|
|
616
616
|
type: Injectable
|
|
617
617
|
}], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
|
|
618
618
|
/**
|
|
@@ -673,9 +673,9 @@ class MatRangeDateSelectionModel extends MatDateSelectionModel {
|
|
|
673
673
|
return clone;
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
MatRangeDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
677
|
-
MatRangeDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
676
|
+
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 });
|
|
677
|
+
MatRangeDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatRangeDateSelectionModel });
|
|
678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatRangeDateSelectionModel, decorators: [{
|
|
679
679
|
type: Injectable
|
|
680
680
|
}], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
|
|
681
681
|
/** @docs-private */
|
|
@@ -781,9 +781,9 @@ class DefaultMatCalendarRangeStrategy {
|
|
|
781
781
|
return new DateRange(start, end);
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
|
-
DefaultMatCalendarRangeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
785
|
-
DefaultMatCalendarRangeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
784
|
+
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 });
|
|
785
|
+
DefaultMatCalendarRangeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: DefaultMatCalendarRangeStrategy });
|
|
786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: DefaultMatCalendarRangeStrategy, decorators: [{
|
|
787
787
|
type: Injectable
|
|
788
788
|
}], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });
|
|
789
789
|
/** @docs-private */
|
|
@@ -810,38 +810,6 @@ const DAYS_PER_WEEK = 7;
|
|
|
810
810
|
* @docs-private
|
|
811
811
|
*/
|
|
812
812
|
class MatMonthView {
|
|
813
|
-
constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir, _rangeStrategy) {
|
|
814
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
815
|
-
this._dateFormats = _dateFormats;
|
|
816
|
-
this._dateAdapter = _dateAdapter;
|
|
817
|
-
this._dir = _dir;
|
|
818
|
-
this._rangeStrategy = _rangeStrategy;
|
|
819
|
-
this._rerenderSubscription = Subscription.EMPTY;
|
|
820
|
-
/** Origin of active drag, or null when dragging is not active. */
|
|
821
|
-
this.activeDrag = null;
|
|
822
|
-
/** Emits when a new date is selected. */
|
|
823
|
-
this.selectedChange = new EventEmitter();
|
|
824
|
-
/** Emits when any date is selected. */
|
|
825
|
-
this._userSelection = new EventEmitter();
|
|
826
|
-
/** Emits when the user initiates a date range drag via mouse or touch. */
|
|
827
|
-
this.dragStarted = new EventEmitter();
|
|
828
|
-
/**
|
|
829
|
-
* Emits when the user completes or cancels a date range drag.
|
|
830
|
-
* Emits null when the drag was canceled or the newly selected date range if completed.
|
|
831
|
-
*/
|
|
832
|
-
this.dragEnded = new EventEmitter();
|
|
833
|
-
/** Emits when any date is activated. */
|
|
834
|
-
this.activeDateChange = new EventEmitter();
|
|
835
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
836
|
-
if (!this._dateAdapter) {
|
|
837
|
-
throw createMissingDateImplError('DateAdapter');
|
|
838
|
-
}
|
|
839
|
-
if (!this._dateFormats) {
|
|
840
|
-
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
this._activeDate = this._dateAdapter.today();
|
|
844
|
-
}
|
|
845
813
|
/**
|
|
846
814
|
* The date to display in this month view (everything other than the month and year is ignored).
|
|
847
815
|
*/
|
|
@@ -884,6 +852,38 @@ class MatMonthView {
|
|
|
884
852
|
set maxDate(value) {
|
|
885
853
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
886
854
|
}
|
|
855
|
+
constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir, _rangeStrategy) {
|
|
856
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
857
|
+
this._dateFormats = _dateFormats;
|
|
858
|
+
this._dateAdapter = _dateAdapter;
|
|
859
|
+
this._dir = _dir;
|
|
860
|
+
this._rangeStrategy = _rangeStrategy;
|
|
861
|
+
this._rerenderSubscription = Subscription.EMPTY;
|
|
862
|
+
/** Origin of active drag, or null when dragging is not active. */
|
|
863
|
+
this.activeDrag = null;
|
|
864
|
+
/** Emits when a new date is selected. */
|
|
865
|
+
this.selectedChange = new EventEmitter();
|
|
866
|
+
/** Emits when any date is selected. */
|
|
867
|
+
this._userSelection = new EventEmitter();
|
|
868
|
+
/** Emits when the user initiates a date range drag via mouse or touch. */
|
|
869
|
+
this.dragStarted = new EventEmitter();
|
|
870
|
+
/**
|
|
871
|
+
* Emits when the user completes or cancels a date range drag.
|
|
872
|
+
* Emits null when the drag was canceled or the newly selected date range if completed.
|
|
873
|
+
*/
|
|
874
|
+
this.dragEnded = new EventEmitter();
|
|
875
|
+
/** Emits when any date is activated. */
|
|
876
|
+
this.activeDateChange = new EventEmitter();
|
|
877
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
878
|
+
if (!this._dateAdapter) {
|
|
879
|
+
throw createMissingDateImplError('DateAdapter');
|
|
880
|
+
}
|
|
881
|
+
if (!this._dateFormats) {
|
|
882
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
this._activeDate = this._dateAdapter.today();
|
|
886
|
+
}
|
|
887
887
|
ngAfterContentInit() {
|
|
888
888
|
this._rerenderSubscription = this._dateAdapter.localeChanges
|
|
889
889
|
.pipe(startWith(null))
|
|
@@ -1189,9 +1189,9 @@ class MatMonthView {
|
|
|
1189
1189
|
this._previewStart = this._previewEnd = null;
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
MatMonthView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1193
|
-
MatMonthView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
1194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1192
|
+
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 });
|
|
1193
|
+
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 });
|
|
1194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatMonthView, decorators: [{
|
|
1195
1195
|
type: Component,
|
|
1196
1196
|
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" }]
|
|
1197
1197
|
}], ctorParameters: function () {
|
|
@@ -1261,22 +1261,6 @@ const yearsPerRow = 4;
|
|
|
1261
1261
|
* @docs-private
|
|
1262
1262
|
*/
|
|
1263
1263
|
class MatMultiYearView {
|
|
1264
|
-
constructor(_changeDetectorRef, _dateAdapter, _dir) {
|
|
1265
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
1266
|
-
this._dateAdapter = _dateAdapter;
|
|
1267
|
-
this._dir = _dir;
|
|
1268
|
-
this._rerenderSubscription = Subscription.EMPTY;
|
|
1269
|
-
/** Emits when a new year is selected. */
|
|
1270
|
-
this.selectedChange = new EventEmitter();
|
|
1271
|
-
/** Emits the selected year. This doesn't imply a change on the selected date */
|
|
1272
|
-
this.yearSelected = new EventEmitter();
|
|
1273
|
-
/** Emits when any date is activated. */
|
|
1274
|
-
this.activeDateChange = new EventEmitter();
|
|
1275
|
-
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1276
|
-
throw createMissingDateImplError('DateAdapter');
|
|
1277
|
-
}
|
|
1278
|
-
this._activeDate = this._dateAdapter.today();
|
|
1279
|
-
}
|
|
1280
1264
|
/** The date to display in this multi-year view (everything other than the year is ignored). */
|
|
1281
1265
|
get activeDate() {
|
|
1282
1266
|
return this._activeDate;
|
|
@@ -1317,6 +1301,22 @@ class MatMultiYearView {
|
|
|
1317
1301
|
set maxDate(value) {
|
|
1318
1302
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
1319
1303
|
}
|
|
1304
|
+
constructor(_changeDetectorRef, _dateAdapter, _dir) {
|
|
1305
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
1306
|
+
this._dateAdapter = _dateAdapter;
|
|
1307
|
+
this._dir = _dir;
|
|
1308
|
+
this._rerenderSubscription = Subscription.EMPTY;
|
|
1309
|
+
/** Emits when a new year is selected. */
|
|
1310
|
+
this.selectedChange = new EventEmitter();
|
|
1311
|
+
/** Emits the selected year. This doesn't imply a change on the selected date */
|
|
1312
|
+
this.yearSelected = new EventEmitter();
|
|
1313
|
+
/** Emits when any date is activated. */
|
|
1314
|
+
this.activeDateChange = new EventEmitter();
|
|
1315
|
+
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1316
|
+
throw createMissingDateImplError('DateAdapter');
|
|
1317
|
+
}
|
|
1318
|
+
this._activeDate = this._dateAdapter.today();
|
|
1319
|
+
}
|
|
1320
1320
|
ngAfterContentInit() {
|
|
1321
1321
|
this._rerenderSubscription = this._dateAdapter.localeChanges
|
|
1322
1322
|
.pipe(startWith(null))
|
|
@@ -1498,9 +1498,9 @@ class MatMultiYearView {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
|
-
MatMultiYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1502
|
-
MatMultiYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
1503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1501
|
+
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 });
|
|
1502
|
+
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 });
|
|
1503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatMultiYearView, decorators: [{
|
|
1504
1504
|
type: Component,
|
|
1505
1505
|
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" }]
|
|
1506
1506
|
}], ctorParameters: function () {
|
|
@@ -1579,28 +1579,6 @@ function euclideanModulo(a, b) {
|
|
|
1579
1579
|
* @docs-private
|
|
1580
1580
|
*/
|
|
1581
1581
|
class MatYearView {
|
|
1582
|
-
constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {
|
|
1583
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
1584
|
-
this._dateFormats = _dateFormats;
|
|
1585
|
-
this._dateAdapter = _dateAdapter;
|
|
1586
|
-
this._dir = _dir;
|
|
1587
|
-
this._rerenderSubscription = Subscription.EMPTY;
|
|
1588
|
-
/** Emits when a new month is selected. */
|
|
1589
|
-
this.selectedChange = new EventEmitter();
|
|
1590
|
-
/** Emits the selected month. This doesn't imply a change on the selected date */
|
|
1591
|
-
this.monthSelected = new EventEmitter();
|
|
1592
|
-
/** Emits when any date is activated. */
|
|
1593
|
-
this.activeDateChange = new EventEmitter();
|
|
1594
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1595
|
-
if (!this._dateAdapter) {
|
|
1596
|
-
throw createMissingDateImplError('DateAdapter');
|
|
1597
|
-
}
|
|
1598
|
-
if (!this._dateFormats) {
|
|
1599
|
-
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
this._activeDate = this._dateAdapter.today();
|
|
1603
|
-
}
|
|
1604
1582
|
/** The date to display in this year view (everything other than the year is ignored). */
|
|
1605
1583
|
get activeDate() {
|
|
1606
1584
|
return this._activeDate;
|
|
@@ -1641,6 +1619,28 @@ class MatYearView {
|
|
|
1641
1619
|
set maxDate(value) {
|
|
1642
1620
|
this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
|
1643
1621
|
}
|
|
1622
|
+
constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {
|
|
1623
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
1624
|
+
this._dateFormats = _dateFormats;
|
|
1625
|
+
this._dateAdapter = _dateAdapter;
|
|
1626
|
+
this._dir = _dir;
|
|
1627
|
+
this._rerenderSubscription = Subscription.EMPTY;
|
|
1628
|
+
/** Emits when a new month is selected. */
|
|
1629
|
+
this.selectedChange = new EventEmitter();
|
|
1630
|
+
/** Emits the selected month. This doesn't imply a change on the selected date */
|
|
1631
|
+
this.monthSelected = new EventEmitter();
|
|
1632
|
+
/** Emits when any date is activated. */
|
|
1633
|
+
this.activeDateChange = new EventEmitter();
|
|
1634
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1635
|
+
if (!this._dateAdapter) {
|
|
1636
|
+
throw createMissingDateImplError('DateAdapter');
|
|
1637
|
+
}
|
|
1638
|
+
if (!this._dateFormats) {
|
|
1639
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
this._activeDate = this._dateAdapter.today();
|
|
1643
|
+
}
|
|
1644
1644
|
ngAfterContentInit() {
|
|
1645
1645
|
this._rerenderSubscription = this._dateAdapter.localeChanges
|
|
1646
1646
|
.pipe(startWith(null))
|
|
@@ -1842,9 +1842,9 @@ class MatYearView {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
|
-
MatYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1846
|
-
MatYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
1847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1845
|
+
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 });
|
|
1846
|
+
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 });
|
|
1847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatYearView, decorators: [{
|
|
1848
1848
|
type: Component,
|
|
1849
1849
|
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" }]
|
|
1850
1850
|
}], ctorParameters: function () {
|
|
@@ -1940,9 +1940,9 @@ class MatDatepickerIntl {
|
|
|
1940
1940
|
return `${start} to ${end}`;
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
MatDatepickerIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1944
|
-
MatDatepickerIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
1945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1943
|
+
MatDatepickerIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1944
|
+
MatDatepickerIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerIntl, providedIn: 'root' });
|
|
1945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerIntl, decorators: [{
|
|
1946
1946
|
type: Injectable,
|
|
1947
1947
|
args: [{ providedIn: 'root' }]
|
|
1948
1948
|
}] });
|
|
@@ -2073,9 +2073,9 @@ class MatCalendarHeader {
|
|
|
2073
2073
|
return [minYearLabel, maxYearLabel];
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
|
-
MatCalendarHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2077
|
-
MatCalendarHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
2078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2076
|
+
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 });
|
|
2077
|
+
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 });
|
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatCalendarHeader, decorators: [{
|
|
2079
2079
|
type: Component,
|
|
2080
2080
|
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" }]
|
|
2081
2081
|
}], ctorParameters: function () {
|
|
@@ -2093,57 +2093,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
2093
2093
|
} });
|
|
2094
2094
|
/** A calendar that is used as part of the datepicker. */
|
|
2095
2095
|
class MatCalendar {
|
|
2096
|
-
constructor(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {
|
|
2097
|
-
this._dateAdapter = _dateAdapter;
|
|
2098
|
-
this._dateFormats = _dateFormats;
|
|
2099
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
2100
|
-
/**
|
|
2101
|
-
* Used for scheduling that focus should be moved to the active cell on the next tick.
|
|
2102
|
-
* We need to schedule it, rather than do it immediately, because we have to wait
|
|
2103
|
-
* for Angular to re-evaluate the view children.
|
|
2104
|
-
*/
|
|
2105
|
-
this._moveFocusOnNextTick = false;
|
|
2106
|
-
/** Whether the calendar should be started in month or year view. */
|
|
2107
|
-
this.startView = 'month';
|
|
2108
|
-
/** Emits when the currently selected date changes. */
|
|
2109
|
-
this.selectedChange = new EventEmitter();
|
|
2110
|
-
/**
|
|
2111
|
-
* Emits the year chosen in multiyear view.
|
|
2112
|
-
* This doesn't imply a change on the selected date.
|
|
2113
|
-
*/
|
|
2114
|
-
this.yearSelected = new EventEmitter();
|
|
2115
|
-
/**
|
|
2116
|
-
* Emits the month chosen in year view.
|
|
2117
|
-
* This doesn't imply a change on the selected date.
|
|
2118
|
-
*/
|
|
2119
|
-
this.monthSelected = new EventEmitter();
|
|
2120
|
-
/**
|
|
2121
|
-
* Emits when the current view changes.
|
|
2122
|
-
*/
|
|
2123
|
-
this.viewChanged = new EventEmitter(true);
|
|
2124
|
-
/** Emits when any date is selected. */
|
|
2125
|
-
this._userSelection = new EventEmitter();
|
|
2126
|
-
/** Emits a new date range value when the user completes a drag drop operation. */
|
|
2127
|
-
this._userDragDrop = new EventEmitter();
|
|
2128
|
-
/** Origin of active drag, or null when dragging is not active. */
|
|
2129
|
-
this._activeDrag = null;
|
|
2130
|
-
/**
|
|
2131
|
-
* Emits whenever there is a state change that the header may need to respond to.
|
|
2132
|
-
*/
|
|
2133
|
-
this.stateChanges = new Subject();
|
|
2134
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
2135
|
-
if (!this._dateAdapter) {
|
|
2136
|
-
throw createMissingDateImplError('DateAdapter');
|
|
2137
|
-
}
|
|
2138
|
-
if (!this._dateFormats) {
|
|
2139
|
-
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
2140
|
-
}
|
|
2141
|
-
}
|
|
2142
|
-
this._intlChanges = _intl.changes.subscribe(() => {
|
|
2143
|
-
_changeDetectorRef.markForCheck();
|
|
2144
|
-
this.stateChanges.next();
|
|
2145
|
-
});
|
|
2146
|
-
}
|
|
2147
2096
|
/** A date representing the period (month or year) to start the calendar in. */
|
|
2148
2097
|
get startAt() {
|
|
2149
2098
|
return this._startAt;
|
|
@@ -2202,6 +2151,57 @@ class MatCalendar {
|
|
|
2202
2151
|
this.viewChanged.emit(viewChangedResult);
|
|
2203
2152
|
}
|
|
2204
2153
|
}
|
|
2154
|
+
constructor(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {
|
|
2155
|
+
this._dateAdapter = _dateAdapter;
|
|
2156
|
+
this._dateFormats = _dateFormats;
|
|
2157
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
2158
|
+
/**
|
|
2159
|
+
* Used for scheduling that focus should be moved to the active cell on the next tick.
|
|
2160
|
+
* We need to schedule it, rather than do it immediately, because we have to wait
|
|
2161
|
+
* for Angular to re-evaluate the view children.
|
|
2162
|
+
*/
|
|
2163
|
+
this._moveFocusOnNextTick = false;
|
|
2164
|
+
/** Whether the calendar should be started in month or year view. */
|
|
2165
|
+
this.startView = 'month';
|
|
2166
|
+
/** Emits when the currently selected date changes. */
|
|
2167
|
+
this.selectedChange = new EventEmitter();
|
|
2168
|
+
/**
|
|
2169
|
+
* Emits the year chosen in multiyear view.
|
|
2170
|
+
* This doesn't imply a change on the selected date.
|
|
2171
|
+
*/
|
|
2172
|
+
this.yearSelected = new EventEmitter();
|
|
2173
|
+
/**
|
|
2174
|
+
* Emits the month chosen in year view.
|
|
2175
|
+
* This doesn't imply a change on the selected date.
|
|
2176
|
+
*/
|
|
2177
|
+
this.monthSelected = new EventEmitter();
|
|
2178
|
+
/**
|
|
2179
|
+
* Emits when the current view changes.
|
|
2180
|
+
*/
|
|
2181
|
+
this.viewChanged = new EventEmitter(true);
|
|
2182
|
+
/** Emits when any date is selected. */
|
|
2183
|
+
this._userSelection = new EventEmitter();
|
|
2184
|
+
/** Emits a new date range value when the user completes a drag drop operation. */
|
|
2185
|
+
this._userDragDrop = new EventEmitter();
|
|
2186
|
+
/** Origin of active drag, or null when dragging is not active. */
|
|
2187
|
+
this._activeDrag = null;
|
|
2188
|
+
/**
|
|
2189
|
+
* Emits whenever there is a state change that the header may need to respond to.
|
|
2190
|
+
*/
|
|
2191
|
+
this.stateChanges = new Subject();
|
|
2192
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
2193
|
+
if (!this._dateAdapter) {
|
|
2194
|
+
throw createMissingDateImplError('DateAdapter');
|
|
2195
|
+
}
|
|
2196
|
+
if (!this._dateFormats) {
|
|
2197
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
this._intlChanges = _intl.changes.subscribe(() => {
|
|
2201
|
+
_changeDetectorRef.markForCheck();
|
|
2202
|
+
this.stateChanges.next();
|
|
2203
|
+
});
|
|
2204
|
+
}
|
|
2205
2205
|
ngAfterContentInit() {
|
|
2206
2206
|
this._calendarHeaderPortal = new ComponentPortal(this.headerComponent || MatCalendarHeader);
|
|
2207
2207
|
this.activeDate = this.startAt || this._dateAdapter.today();
|
|
@@ -2296,9 +2296,9 @@ class MatCalendar {
|
|
|
2296
2296
|
return this.monthView || this.yearView || this.multiYearView;
|
|
2297
2297
|
}
|
|
2298
2298
|
}
|
|
2299
|
-
MatCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2300
|
-
MatCalendar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
2301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2299
|
+
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 });
|
|
2300
|
+
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 });
|
|
2301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatCalendar, decorators: [{
|
|
2302
2302
|
type: Component,
|
|
2303
2303
|
args: [{ selector: 'mat-calendar', host: {
|
|
2304
2304
|
'class': 'mat-calendar',
|
|
@@ -2512,9 +2512,9 @@ class MatDatepickerContent extends _MatDatepickerContentBase {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
|
-
MatDatepickerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2516
|
-
MatDatepickerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
2517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2515
|
+
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 });
|
|
2516
|
+
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 });
|
|
2517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerContent, decorators: [{
|
|
2518
2518
|
type: Component,
|
|
2519
2519
|
args: [{ selector: 'mat-datepicker-content', host: {
|
|
2520
2520
|
'class': 'mat-datepicker-content',
|
|
@@ -2536,55 +2536,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
2536
2536
|
}] } });
|
|
2537
2537
|
/** Base class for a datepicker. */
|
|
2538
2538
|
class MatDatepickerBase {
|
|
2539
|
-
constructor(_overlay, _ngZone, _viewContainerRef, scrollStrategy, _dateAdapter, _dir, _model) {
|
|
2540
|
-
this._overlay = _overlay;
|
|
2541
|
-
this._ngZone = _ngZone;
|
|
2542
|
-
this._viewContainerRef = _viewContainerRef;
|
|
2543
|
-
this._dateAdapter = _dateAdapter;
|
|
2544
|
-
this._dir = _dir;
|
|
2545
|
-
this._model = _model;
|
|
2546
|
-
this._inputStateChanges = Subscription.EMPTY;
|
|
2547
|
-
this._document = inject(DOCUMENT);
|
|
2548
|
-
/** The view that the calendar should start in. */
|
|
2549
|
-
this.startView = 'month';
|
|
2550
|
-
this._touchUi = false;
|
|
2551
|
-
/** Preferred position of the datepicker in the X axis. */
|
|
2552
|
-
this.xPosition = 'start';
|
|
2553
|
-
/** Preferred position of the datepicker in the Y axis. */
|
|
2554
|
-
this.yPosition = 'below';
|
|
2555
|
-
this._restoreFocus = true;
|
|
2556
|
-
/**
|
|
2557
|
-
* Emits selected year in multiyear view.
|
|
2558
|
-
* This doesn't imply a change on the selected date.
|
|
2559
|
-
*/
|
|
2560
|
-
this.yearSelected = new EventEmitter();
|
|
2561
|
-
/**
|
|
2562
|
-
* Emits selected month in year view.
|
|
2563
|
-
* This doesn't imply a change on the selected date.
|
|
2564
|
-
*/
|
|
2565
|
-
this.monthSelected = new EventEmitter();
|
|
2566
|
-
/**
|
|
2567
|
-
* Emits when the current view changes.
|
|
2568
|
-
*/
|
|
2569
|
-
this.viewChanged = new EventEmitter(true);
|
|
2570
|
-
/** Emits when the datepicker has been opened. */
|
|
2571
|
-
this.openedStream = new EventEmitter();
|
|
2572
|
-
/** Emits when the datepicker has been closed. */
|
|
2573
|
-
this.closedStream = new EventEmitter();
|
|
2574
|
-
this._opened = false;
|
|
2575
|
-
/** The id for the datepicker calendar. */
|
|
2576
|
-
this.id = `mat-datepicker-${datepickerUid++}`;
|
|
2577
|
-
/** The element that was focused before the datepicker was opened. */
|
|
2578
|
-
this._focusedElementBeforeOpen = null;
|
|
2579
|
-
/** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
|
|
2580
|
-
this._backdropHarnessClass = `${this.id}-backdrop`;
|
|
2581
|
-
/** Emits when the datepicker's state changes. */
|
|
2582
|
-
this.stateChanges = new Subject();
|
|
2583
|
-
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
2584
|
-
throw createMissingDateImplError('DateAdapter');
|
|
2585
|
-
}
|
|
2586
|
-
this._scrollStrategy = scrollStrategy;
|
|
2587
|
-
}
|
|
2588
2539
|
/** The date to open the calendar to initially. */
|
|
2589
2540
|
get startAt() {
|
|
2590
2541
|
// If an explicit startAt is set we start there, otherwise we start at whatever the currently
|
|
@@ -2663,6 +2614,55 @@ class MatDatepickerBase {
|
|
|
2663
2614
|
_getDateFilter() {
|
|
2664
2615
|
return this.datepickerInput && this.datepickerInput.dateFilter;
|
|
2665
2616
|
}
|
|
2617
|
+
constructor(_overlay, _ngZone, _viewContainerRef, scrollStrategy, _dateAdapter, _dir, _model) {
|
|
2618
|
+
this._overlay = _overlay;
|
|
2619
|
+
this._ngZone = _ngZone;
|
|
2620
|
+
this._viewContainerRef = _viewContainerRef;
|
|
2621
|
+
this._dateAdapter = _dateAdapter;
|
|
2622
|
+
this._dir = _dir;
|
|
2623
|
+
this._model = _model;
|
|
2624
|
+
this._inputStateChanges = Subscription.EMPTY;
|
|
2625
|
+
this._document = inject(DOCUMENT);
|
|
2626
|
+
/** The view that the calendar should start in. */
|
|
2627
|
+
this.startView = 'month';
|
|
2628
|
+
this._touchUi = false;
|
|
2629
|
+
/** Preferred position of the datepicker in the X axis. */
|
|
2630
|
+
this.xPosition = 'start';
|
|
2631
|
+
/** Preferred position of the datepicker in the Y axis. */
|
|
2632
|
+
this.yPosition = 'below';
|
|
2633
|
+
this._restoreFocus = true;
|
|
2634
|
+
/**
|
|
2635
|
+
* Emits selected year in multiyear view.
|
|
2636
|
+
* This doesn't imply a change on the selected date.
|
|
2637
|
+
*/
|
|
2638
|
+
this.yearSelected = new EventEmitter();
|
|
2639
|
+
/**
|
|
2640
|
+
* Emits selected month in year view.
|
|
2641
|
+
* This doesn't imply a change on the selected date.
|
|
2642
|
+
*/
|
|
2643
|
+
this.monthSelected = new EventEmitter();
|
|
2644
|
+
/**
|
|
2645
|
+
* Emits when the current view changes.
|
|
2646
|
+
*/
|
|
2647
|
+
this.viewChanged = new EventEmitter(true);
|
|
2648
|
+
/** Emits when the datepicker has been opened. */
|
|
2649
|
+
this.openedStream = new EventEmitter();
|
|
2650
|
+
/** Emits when the datepicker has been closed. */
|
|
2651
|
+
this.closedStream = new EventEmitter();
|
|
2652
|
+
this._opened = false;
|
|
2653
|
+
/** The id for the datepicker calendar. */
|
|
2654
|
+
this.id = `mat-datepicker-${datepickerUid++}`;
|
|
2655
|
+
/** The element that was focused before the datepicker was opened. */
|
|
2656
|
+
this._focusedElementBeforeOpen = null;
|
|
2657
|
+
/** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
|
|
2658
|
+
this._backdropHarnessClass = `${this.id}-backdrop`;
|
|
2659
|
+
/** Emits when the datepicker's state changes. */
|
|
2660
|
+
this.stateChanges = new Subject();
|
|
2661
|
+
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
2662
|
+
throw createMissingDateImplError('DateAdapter');
|
|
2663
|
+
}
|
|
2664
|
+
this._scrollStrategy = scrollStrategy;
|
|
2665
|
+
}
|
|
2666
2666
|
ngOnChanges(changes) {
|
|
2667
2667
|
const positionChange = changes['xPosition'] || changes['yPosition'];
|
|
2668
2668
|
if (positionChange && !positionChange.firstChange && this._overlayRef) {
|
|
@@ -2923,9 +2923,9 @@ class MatDatepickerBase {
|
|
|
2923
2923
|
})));
|
|
2924
2924
|
}
|
|
2925
2925
|
}
|
|
2926
|
-
MatDatepickerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2927
|
-
MatDatepickerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
2928
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2926
|
+
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 });
|
|
2927
|
+
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 });
|
|
2928
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerBase, decorators: [{
|
|
2929
2929
|
type: Directive
|
|
2930
2930
|
}], ctorParameters: function () {
|
|
2931
2931
|
return [{ type: i9.Overlay }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
@@ -2987,12 +2987,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
2987
2987
|
/** Component responsible for managing the datepicker popup/dialog. */
|
|
2988
2988
|
class MatDatepicker extends MatDatepickerBase {
|
|
2989
2989
|
}
|
|
2990
|
-
MatDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
2991
|
-
MatDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
2990
|
+
MatDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2991
|
+
MatDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDatepicker, selector: "mat-datepicker", providers: [
|
|
2992
2992
|
MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER,
|
|
2993
2993
|
{ provide: MatDatepickerBase, useExisting: MatDatepicker },
|
|
2994
2994
|
], exportAs: ["matDatepicker"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
2995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepicker, decorators: [{
|
|
2996
2996
|
type: Component,
|
|
2997
2997
|
args: [{
|
|
2998
2998
|
selector: 'mat-datepicker',
|
|
@@ -3032,6 +3032,58 @@ class MatDatepickerInputEvent {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
/** Base class for datepicker inputs. */
|
|
3034
3034
|
class MatDatepickerInputBase {
|
|
3035
|
+
/** The value of the input. */
|
|
3036
|
+
get value() {
|
|
3037
|
+
return this._model ? this._getValueFromModel(this._model.selection) : this._pendingValue;
|
|
3038
|
+
}
|
|
3039
|
+
set value(value) {
|
|
3040
|
+
this._assignValueProgrammatically(value);
|
|
3041
|
+
}
|
|
3042
|
+
/** Whether the datepicker-input is disabled. */
|
|
3043
|
+
get disabled() {
|
|
3044
|
+
return !!this._disabled || this._parentDisabled();
|
|
3045
|
+
}
|
|
3046
|
+
set disabled(value) {
|
|
3047
|
+
const newValue = coerceBooleanProperty(value);
|
|
3048
|
+
const element = this._elementRef.nativeElement;
|
|
3049
|
+
if (this._disabled !== newValue) {
|
|
3050
|
+
this._disabled = newValue;
|
|
3051
|
+
this.stateChanges.next(undefined);
|
|
3052
|
+
}
|
|
3053
|
+
// We need to null check the `blur` method, because it's undefined during SSR.
|
|
3054
|
+
// In Ivy static bindings are invoked earlier, before the element is attached to the DOM.
|
|
3055
|
+
// This can cause an error to be thrown in some browsers (IE/Edge) which assert that the
|
|
3056
|
+
// element has been inserted.
|
|
3057
|
+
if (newValue && this._isInitialized && element.blur) {
|
|
3058
|
+
// Normally, native input elements automatically blur if they turn disabled. This behavior
|
|
3059
|
+
// is problematic, because it would mean that it triggers another change detection cycle,
|
|
3060
|
+
// which then causes a changed after checked error if the input element was focused before.
|
|
3061
|
+
element.blur();
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3064
|
+
/** Gets the base validator functions. */
|
|
3065
|
+
_getValidators() {
|
|
3066
|
+
return [this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator];
|
|
3067
|
+
}
|
|
3068
|
+
/** Registers a date selection model with the input. */
|
|
3069
|
+
_registerModel(model) {
|
|
3070
|
+
this._model = model;
|
|
3071
|
+
this._valueChangesSubscription.unsubscribe();
|
|
3072
|
+
if (this._pendingValue) {
|
|
3073
|
+
this._assignValue(this._pendingValue);
|
|
3074
|
+
}
|
|
3075
|
+
this._valueChangesSubscription = this._model.selectionChanged.subscribe(event => {
|
|
3076
|
+
if (this._shouldHandleChangeEvent(event)) {
|
|
3077
|
+
const value = this._getValueFromModel(event.selection);
|
|
3078
|
+
this._lastValueValid = this._isValidValue(value);
|
|
3079
|
+
this._cvaOnChange(value);
|
|
3080
|
+
this._onTouched();
|
|
3081
|
+
this._formatValue(value);
|
|
3082
|
+
this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
3083
|
+
this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
3084
|
+
}
|
|
3085
|
+
});
|
|
3086
|
+
}
|
|
3035
3087
|
constructor(_elementRef, _dateAdapter, _dateFormats) {
|
|
3036
3088
|
this._elementRef = _elementRef;
|
|
3037
3089
|
this._dateAdapter = _dateAdapter;
|
|
@@ -3091,58 +3143,6 @@ class MatDatepickerInputBase {
|
|
|
3091
3143
|
this._assignValueProgrammatically(this.value);
|
|
3092
3144
|
});
|
|
3093
3145
|
}
|
|
3094
|
-
/** The value of the input. */
|
|
3095
|
-
get value() {
|
|
3096
|
-
return this._model ? this._getValueFromModel(this._model.selection) : this._pendingValue;
|
|
3097
|
-
}
|
|
3098
|
-
set value(value) {
|
|
3099
|
-
this._assignValueProgrammatically(value);
|
|
3100
|
-
}
|
|
3101
|
-
/** Whether the datepicker-input is disabled. */
|
|
3102
|
-
get disabled() {
|
|
3103
|
-
return !!this._disabled || this._parentDisabled();
|
|
3104
|
-
}
|
|
3105
|
-
set disabled(value) {
|
|
3106
|
-
const newValue = coerceBooleanProperty(value);
|
|
3107
|
-
const element = this._elementRef.nativeElement;
|
|
3108
|
-
if (this._disabled !== newValue) {
|
|
3109
|
-
this._disabled = newValue;
|
|
3110
|
-
this.stateChanges.next(undefined);
|
|
3111
|
-
}
|
|
3112
|
-
// We need to null check the `blur` method, because it's undefined during SSR.
|
|
3113
|
-
// In Ivy static bindings are invoked earlier, before the element is attached to the DOM.
|
|
3114
|
-
// This can cause an error to be thrown in some browsers (IE/Edge) which assert that the
|
|
3115
|
-
// element has been inserted.
|
|
3116
|
-
if (newValue && this._isInitialized && element.blur) {
|
|
3117
|
-
// Normally, native input elements automatically blur if they turn disabled. This behavior
|
|
3118
|
-
// is problematic, because it would mean that it triggers another change detection cycle,
|
|
3119
|
-
// which then causes a changed after checked error if the input element was focused before.
|
|
3120
|
-
element.blur();
|
|
3121
|
-
}
|
|
3122
|
-
}
|
|
3123
|
-
/** Gets the base validator functions. */
|
|
3124
|
-
_getValidators() {
|
|
3125
|
-
return [this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator];
|
|
3126
|
-
}
|
|
3127
|
-
/** Registers a date selection model with the input. */
|
|
3128
|
-
_registerModel(model) {
|
|
3129
|
-
this._model = model;
|
|
3130
|
-
this._valueChangesSubscription.unsubscribe();
|
|
3131
|
-
if (this._pendingValue) {
|
|
3132
|
-
this._assignValue(this._pendingValue);
|
|
3133
|
-
}
|
|
3134
|
-
this._valueChangesSubscription = this._model.selectionChanged.subscribe(event => {
|
|
3135
|
-
if (this._shouldHandleChangeEvent(event)) {
|
|
3136
|
-
const value = this._getValueFromModel(event.selection);
|
|
3137
|
-
this._lastValueValid = this._isValidValue(value);
|
|
3138
|
-
this._cvaOnChange(value);
|
|
3139
|
-
this._onTouched();
|
|
3140
|
-
this._formatValue(value);
|
|
3141
|
-
this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
3142
|
-
this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
3143
|
-
}
|
|
3144
|
-
});
|
|
3145
|
-
}
|
|
3146
3146
|
ngAfterViewInit() {
|
|
3147
3147
|
this._isInitialized = true;
|
|
3148
3148
|
}
|
|
@@ -3269,9 +3269,9 @@ class MatDatepickerInputBase {
|
|
|
3269
3269
|
return !filter || filter(value);
|
|
3270
3270
|
}
|
|
3271
3271
|
}
|
|
3272
|
-
MatDatepickerInputBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3273
|
-
MatDatepickerInputBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3272
|
+
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 });
|
|
3273
|
+
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 });
|
|
3274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerInputBase, decorators: [{
|
|
3275
3275
|
type: Directive
|
|
3276
3276
|
}], ctorParameters: function () {
|
|
3277
3277
|
return [{ type: i0.ElementRef }, { type: i1$1.DateAdapter, decorators: [{
|
|
@@ -3332,12 +3332,6 @@ const MAT_DATEPICKER_VALIDATORS = {
|
|
|
3332
3332
|
};
|
|
3333
3333
|
/** Directive used to connect an input to a MatDatepicker. */
|
|
3334
3334
|
class MatDatepickerInput extends MatDatepickerInputBase {
|
|
3335
|
-
constructor(elementRef, dateAdapter, dateFormats, _formField) {
|
|
3336
|
-
super(elementRef, dateAdapter, dateFormats);
|
|
3337
|
-
this._formField = _formField;
|
|
3338
|
-
this._closedSubscription = Subscription.EMPTY;
|
|
3339
|
-
this._validator = Validators.compose(super._getValidators());
|
|
3340
|
-
}
|
|
3341
3335
|
/** The datepicker that this input is associated with. */
|
|
3342
3336
|
set matDatepicker(datepicker) {
|
|
3343
3337
|
if (datepicker) {
|
|
@@ -3379,6 +3373,12 @@ class MatDatepickerInput extends MatDatepickerInputBase {
|
|
|
3379
3373
|
this._validatorOnChange();
|
|
3380
3374
|
}
|
|
3381
3375
|
}
|
|
3376
|
+
constructor(elementRef, dateAdapter, dateFormats, _formField) {
|
|
3377
|
+
super(elementRef, dateAdapter, dateFormats);
|
|
3378
|
+
this._formField = _formField;
|
|
3379
|
+
this._closedSubscription = Subscription.EMPTY;
|
|
3380
|
+
this._validator = Validators.compose(super._getValidators());
|
|
3381
|
+
}
|
|
3382
3382
|
/**
|
|
3383
3383
|
* Gets the element that the datepicker popup should be connected to.
|
|
3384
3384
|
* @return The element to connect the popup to.
|
|
@@ -3435,13 +3435,13 @@ class MatDatepickerInput extends MatDatepickerInputBase {
|
|
|
3435
3435
|
return event.source !== this;
|
|
3436
3436
|
}
|
|
3437
3437
|
}
|
|
3438
|
-
MatDatepickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3439
|
-
MatDatepickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3438
|
+
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 });
|
|
3439
|
+
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: [
|
|
3440
3440
|
MAT_DATEPICKER_VALUE_ACCESSOR,
|
|
3441
3441
|
MAT_DATEPICKER_VALIDATORS,
|
|
3442
3442
|
{ provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput },
|
|
3443
3443
|
], exportAs: ["matDatepickerInput"], usesInheritance: true, ngImport: i0 });
|
|
3444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerInput, decorators: [{
|
|
3445
3445
|
type: Directive,
|
|
3446
3446
|
args: [{
|
|
3447
3447
|
selector: 'input[matDatepicker]',
|
|
@@ -3502,22 +3502,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
3502
3502
|
/** Can be used to override the icon of a `matDatepickerToggle`. */
|
|
3503
3503
|
class MatDatepickerToggleIcon {
|
|
3504
3504
|
}
|
|
3505
|
-
MatDatepickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3506
|
-
MatDatepickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3505
|
+
MatDatepickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3506
|
+
MatDatepickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDatepickerToggleIcon, selector: "[matDatepickerToggleIcon]", ngImport: i0 });
|
|
3507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerToggleIcon, decorators: [{
|
|
3508
3508
|
type: Directive,
|
|
3509
3509
|
args: [{
|
|
3510
3510
|
selector: '[matDatepickerToggleIcon]',
|
|
3511
3511
|
}]
|
|
3512
3512
|
}] });
|
|
3513
3513
|
class MatDatepickerToggle {
|
|
3514
|
-
constructor(_intl, _changeDetectorRef, defaultTabIndex) {
|
|
3515
|
-
this._intl = _intl;
|
|
3516
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
3517
|
-
this._stateChanges = Subscription.EMPTY;
|
|
3518
|
-
const parsedTabIndex = Number(defaultTabIndex);
|
|
3519
|
-
this.tabIndex = parsedTabIndex || parsedTabIndex === 0 ? parsedTabIndex : null;
|
|
3520
|
-
}
|
|
3521
3514
|
/** Whether the toggle button is disabled. */
|
|
3522
3515
|
get disabled() {
|
|
3523
3516
|
if (this._disabled === undefined && this.datepicker) {
|
|
@@ -3528,6 +3521,13 @@ class MatDatepickerToggle {
|
|
|
3528
3521
|
set disabled(value) {
|
|
3529
3522
|
this._disabled = coerceBooleanProperty(value);
|
|
3530
3523
|
}
|
|
3524
|
+
constructor(_intl, _changeDetectorRef, defaultTabIndex) {
|
|
3525
|
+
this._intl = _intl;
|
|
3526
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
3527
|
+
this._stateChanges = Subscription.EMPTY;
|
|
3528
|
+
const parsedTabIndex = Number(defaultTabIndex);
|
|
3529
|
+
this.tabIndex = parsedTabIndex || parsedTabIndex === 0 ? parsedTabIndex : null;
|
|
3530
|
+
}
|
|
3531
3531
|
ngOnChanges(changes) {
|
|
3532
3532
|
if (changes['datepicker']) {
|
|
3533
3533
|
this._watchStateChanges();
|
|
@@ -3557,9 +3557,9 @@ class MatDatepickerToggle {
|
|
|
3557
3557
|
this._stateChanges = merge(this._intl.changes, datepickerStateChanged, inputStateChanged, datepickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());
|
|
3558
3558
|
}
|
|
3559
3559
|
}
|
|
3560
|
-
MatDatepickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3561
|
-
MatDatepickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
3562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3560
|
+
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 });
|
|
3561
|
+
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 });
|
|
3562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerToggle, decorators: [{
|
|
3563
3563
|
type: Component,
|
|
3564
3564
|
args: [{ selector: 'mat-datepicker-toggle', host: {
|
|
3565
3565
|
'class': 'mat-datepicker-toggle',
|
|
@@ -3863,9 +3863,9 @@ class MatDateRangeInputPartBase extends MatDatepickerInputBase {
|
|
|
3863
3863
|
return _computeAriaAccessibleName(this._elementRef.nativeElement);
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
3866
|
-
MatDateRangeInputPartBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3867
|
-
MatDateRangeInputPartBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3866
|
+
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 });
|
|
3867
|
+
MatDateRangeInputPartBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDateRangeInputPartBase, usesInheritance: true, ngImport: i0 });
|
|
3868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangeInputPartBase, decorators: [{
|
|
3869
3869
|
type: Directive
|
|
3870
3870
|
}], ctorParameters: function () {
|
|
3871
3871
|
return [{ type: undefined, decorators: [{
|
|
@@ -3944,12 +3944,12 @@ class MatStartDate extends _MatDateRangeInputBase {
|
|
|
3944
3944
|
}
|
|
3945
3945
|
}
|
|
3946
3946
|
}
|
|
3947
|
-
MatStartDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3948
|
-
MatStartDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3947
|
+
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 });
|
|
3948
|
+
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: [
|
|
3949
3949
|
{ provide: NG_VALUE_ACCESSOR, useExisting: MatStartDate, multi: true },
|
|
3950
3950
|
{ provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true },
|
|
3951
3951
|
], usesInheritance: true, ngImport: i0 });
|
|
3952
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatStartDate, decorators: [{
|
|
3953
3953
|
type: Directive,
|
|
3954
3954
|
args: [{
|
|
3955
3955
|
selector: 'input[matStartDate]',
|
|
@@ -4051,12 +4051,12 @@ class MatEndDate extends _MatDateRangeInputBase {
|
|
|
4051
4051
|
}
|
|
4052
4052
|
}
|
|
4053
4053
|
}
|
|
4054
|
-
MatEndDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4055
|
-
MatEndDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4054
|
+
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 });
|
|
4055
|
+
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: [
|
|
4056
4056
|
{ provide: NG_VALUE_ACCESSOR, useExisting: MatEndDate, multi: true },
|
|
4057
4057
|
{ provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true },
|
|
4058
4058
|
], usesInheritance: true, ngImport: i0 });
|
|
4059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatEndDate, decorators: [{
|
|
4060
4060
|
type: Directive,
|
|
4061
4061
|
args: [{
|
|
4062
4062
|
selector: 'input[matEndDate]',
|
|
@@ -4109,42 +4109,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
4109
4109
|
*/
|
|
4110
4110
|
let nextUniqueId = 0;
|
|
4111
4111
|
class MatDateRangeInput {
|
|
4112
|
-
constructor(_changeDetectorRef, _elementRef, control, _dateAdapter, _formField) {
|
|
4113
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
4114
|
-
this._elementRef = _elementRef;
|
|
4115
|
-
this._dateAdapter = _dateAdapter;
|
|
4116
|
-
this._formField = _formField;
|
|
4117
|
-
this._closedSubscription = Subscription.EMPTY;
|
|
4118
|
-
/** Unique ID for the group. */
|
|
4119
|
-
this.id = `mat-date-range-input-${nextUniqueId++}`;
|
|
4120
|
-
/** Whether the control is focused. */
|
|
4121
|
-
this.focused = false;
|
|
4122
|
-
/** Name of the form control. */
|
|
4123
|
-
this.controlType = 'mat-date-range-input';
|
|
4124
|
-
this._groupDisabled = false;
|
|
4125
|
-
/** Value for the `aria-describedby` attribute of the inputs. */
|
|
4126
|
-
this._ariaDescribedBy = null;
|
|
4127
|
-
/** Separator text to be shown between the inputs. */
|
|
4128
|
-
this.separator = '–';
|
|
4129
|
-
/** Start of the comparison range that should be shown in the calendar. */
|
|
4130
|
-
this.comparisonStart = null;
|
|
4131
|
-
/** End of the comparison range that should be shown in the calendar. */
|
|
4132
|
-
this.comparisonEnd = null;
|
|
4133
|
-
/** Emits when the input's state has changed. */
|
|
4134
|
-
this.stateChanges = new Subject();
|
|
4135
|
-
if (!_dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
4136
|
-
throw createMissingDateImplError('DateAdapter');
|
|
4137
|
-
}
|
|
4138
|
-
// The datepicker module can be used both with MDC and non-MDC form fields. We have
|
|
4139
|
-
// to conditionally add the MDC input class so that the range picker looks correctly.
|
|
4140
|
-
if (_formField === null || _formField === void 0 ? void 0 : _formField._elementRef.nativeElement.classList.contains('mat-mdc-form-field')) {
|
|
4141
|
-
const classList = _elementRef.nativeElement.classList;
|
|
4142
|
-
classList.add('mat-mdc-input-element');
|
|
4143
|
-
classList.add('mat-mdc-form-field-input-control');
|
|
4144
|
-
}
|
|
4145
|
-
// TODO(crisbeto): remove `as any` after #18206 lands.
|
|
4146
|
-
this.ngControl = control;
|
|
4147
|
-
}
|
|
4148
4112
|
/** Current value of the range input. */
|
|
4149
4113
|
get value() {
|
|
4150
4114
|
return this._model ? this._model.selection : null;
|
|
@@ -4253,6 +4217,42 @@ class MatDateRangeInput {
|
|
|
4253
4217
|
const endEmpty = this._endInput ? this._endInput.isEmpty() : false;
|
|
4254
4218
|
return startEmpty && endEmpty;
|
|
4255
4219
|
}
|
|
4220
|
+
constructor(_changeDetectorRef, _elementRef, control, _dateAdapter, _formField) {
|
|
4221
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
4222
|
+
this._elementRef = _elementRef;
|
|
4223
|
+
this._dateAdapter = _dateAdapter;
|
|
4224
|
+
this._formField = _formField;
|
|
4225
|
+
this._closedSubscription = Subscription.EMPTY;
|
|
4226
|
+
/** Unique ID for the group. */
|
|
4227
|
+
this.id = `mat-date-range-input-${nextUniqueId++}`;
|
|
4228
|
+
/** Whether the control is focused. */
|
|
4229
|
+
this.focused = false;
|
|
4230
|
+
/** Name of the form control. */
|
|
4231
|
+
this.controlType = 'mat-date-range-input';
|
|
4232
|
+
this._groupDisabled = false;
|
|
4233
|
+
/** Value for the `aria-describedby` attribute of the inputs. */
|
|
4234
|
+
this._ariaDescribedBy = null;
|
|
4235
|
+
/** Separator text to be shown between the inputs. */
|
|
4236
|
+
this.separator = '–';
|
|
4237
|
+
/** Start of the comparison range that should be shown in the calendar. */
|
|
4238
|
+
this.comparisonStart = null;
|
|
4239
|
+
/** End of the comparison range that should be shown in the calendar. */
|
|
4240
|
+
this.comparisonEnd = null;
|
|
4241
|
+
/** Emits when the input's state has changed. */
|
|
4242
|
+
this.stateChanges = new Subject();
|
|
4243
|
+
if (!_dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
4244
|
+
throw createMissingDateImplError('DateAdapter');
|
|
4245
|
+
}
|
|
4246
|
+
// The datepicker module can be used both with MDC and non-MDC form fields. We have
|
|
4247
|
+
// to conditionally add the MDC input class so that the range picker looks correctly.
|
|
4248
|
+
if (_formField === null || _formField === void 0 ? void 0 : _formField._elementRef.nativeElement.classList.contains('mat-mdc-form-field')) {
|
|
4249
|
+
const classList = _elementRef.nativeElement.classList;
|
|
4250
|
+
classList.add('mat-mdc-input-element');
|
|
4251
|
+
classList.add('mat-mdc-form-field-input-control');
|
|
4252
|
+
}
|
|
4253
|
+
// TODO(crisbeto): remove `as any` after #18206 lands.
|
|
4254
|
+
this.ngControl = control;
|
|
4255
|
+
}
|
|
4256
4256
|
/**
|
|
4257
4257
|
* Implemented as a part of `MatFormFieldControl`.
|
|
4258
4258
|
* @docs-private
|
|
@@ -4378,12 +4378,12 @@ class MatDateRangeInput {
|
|
|
4378
4378
|
}
|
|
4379
4379
|
}
|
|
4380
4380
|
}
|
|
4381
|
-
MatDateRangeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4382
|
-
MatDateRangeInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
4381
|
+
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 });
|
|
4382
|
+
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: [
|
|
4383
4383
|
{ provide: MatFormFieldControl, useExisting: MatDateRangeInput },
|
|
4384
4384
|
{ provide: MAT_DATE_RANGE_INPUT_PARENT, useExisting: MatDateRangeInput },
|
|
4385
4385
|
], 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 });
|
|
4386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangeInput, decorators: [{
|
|
4387
4387
|
type: Component,
|
|
4388
4388
|
args: [{ selector: 'mat-date-range-input', exportAs: 'matDateRangeInput', host: {
|
|
4389
4389
|
'class': 'mat-date-range-input',
|
|
@@ -4462,13 +4462,13 @@ class MatDateRangePicker extends MatDatepickerBase {
|
|
|
4462
4462
|
}
|
|
4463
4463
|
}
|
|
4464
4464
|
}
|
|
4465
|
-
MatDateRangePicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4466
|
-
MatDateRangePicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
4465
|
+
MatDateRangePicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangePicker, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4466
|
+
MatDateRangePicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MatDateRangePicker, selector: "mat-date-range-picker", providers: [
|
|
4467
4467
|
MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER,
|
|
4468
4468
|
MAT_CALENDAR_RANGE_STRATEGY_PROVIDER,
|
|
4469
4469
|
{ provide: MatDatepickerBase, useExisting: MatDateRangePicker },
|
|
4470
4470
|
], exportAs: ["matDateRangePicker"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDateRangePicker, decorators: [{
|
|
4472
4472
|
type: Component,
|
|
4473
4473
|
args: [{
|
|
4474
4474
|
selector: 'mat-date-range-picker',
|
|
@@ -4501,9 +4501,9 @@ class MatDatepickerApply {
|
|
|
4501
4501
|
this._datepicker.close();
|
|
4502
4502
|
}
|
|
4503
4503
|
}
|
|
4504
|
-
MatDatepickerApply.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4505
|
-
MatDatepickerApply.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4504
|
+
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 });
|
|
4505
|
+
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 });
|
|
4506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerApply, decorators: [{
|
|
4507
4507
|
type: Directive,
|
|
4508
4508
|
args: [{
|
|
4509
4509
|
selector: '[matDatepickerApply], [matDateRangePickerApply]',
|
|
@@ -4516,9 +4516,9 @@ class MatDatepickerCancel {
|
|
|
4516
4516
|
this._datepicker = _datepicker;
|
|
4517
4517
|
}
|
|
4518
4518
|
}
|
|
4519
|
-
MatDatepickerCancel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4520
|
-
MatDatepickerCancel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4519
|
+
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 });
|
|
4520
|
+
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 });
|
|
4521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerCancel, decorators: [{
|
|
4522
4522
|
type: Directive,
|
|
4523
4523
|
args: [{
|
|
4524
4524
|
selector: '[matDatepickerCancel], [matDateRangePickerCancel]',
|
|
@@ -4547,15 +4547,15 @@ class MatDatepickerActions {
|
|
|
4547
4547
|
}
|
|
4548
4548
|
}
|
|
4549
4549
|
}
|
|
4550
|
-
MatDatepickerActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4551
|
-
MatDatepickerActions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-
|
|
4550
|
+
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 });
|
|
4551
|
+
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: `
|
|
4552
4552
|
<ng-template>
|
|
4553
4553
|
<div class="mat-datepicker-actions">
|
|
4554
4554
|
<ng-content></ng-content>
|
|
4555
4555
|
</div>
|
|
4556
4556
|
</ng-template>
|
|
4557
4557
|
`, 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 });
|
|
4558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerActions, decorators: [{
|
|
4559
4559
|
type: Component,
|
|
4560
4560
|
args: [{ selector: 'mat-datepicker-actions, mat-date-range-picker-actions', template: `
|
|
4561
4561
|
<ng-template>
|
|
@@ -4578,8 +4578,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3",
|
|
|
4578
4578
|
*/
|
|
4579
4579
|
class MatDatepickerModule {
|
|
4580
4580
|
}
|
|
4581
|
-
MatDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4582
|
-
MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
4581
|
+
MatDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4582
|
+
MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerModule, declarations: [MatCalendar,
|
|
4583
4583
|
MatCalendarBody,
|
|
4584
4584
|
MatDatepicker,
|
|
4585
4585
|
MatDatepickerContent,
|
|
@@ -4620,13 +4620,13 @@ MatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ver
|
|
|
4620
4620
|
MatDatepickerActions,
|
|
4621
4621
|
MatDatepickerCancel,
|
|
4622
4622
|
MatDatepickerApply] });
|
|
4623
|
-
MatDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
4623
|
+
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,
|
|
4624
4624
|
MatButtonModule,
|
|
4625
4625
|
OverlayModule,
|
|
4626
4626
|
A11yModule,
|
|
4627
4627
|
PortalModule,
|
|
4628
4628
|
MatCommonModule, CdkScrollableModule] });
|
|
4629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MatDatepickerModule, decorators: [{
|
|
4630
4630
|
type: NgModule,
|
|
4631
4631
|
args: [{
|
|
4632
4632
|
imports: [
|