@angular/material 7.0.4 → 7.2.1
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/LICENSE +1 -1
- package/_theming.scss +61 -44
- package/autocomplete/typings/index.d.ts +1 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-config.d.ts +5 -0
- package/bottom-sheet/typings/bottom-sheet-container.d.ts +1 -1
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +126 -32
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +38 -5
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +68 -21
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +36 -13
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +1 -1
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +21 -14
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card.umd.js +3 -3
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js +1 -1
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +56 -15
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +124 -34
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +189 -126
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -1
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +231 -53
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +2 -2
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +138 -40
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider.umd.js +2 -2
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +53 -27
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +121 -32
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +1 -1
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +66 -15
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +277 -78
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +50 -22
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +69 -21
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -6
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +171 -66
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +1 -1
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +52 -10
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +31 -12
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +1 -1
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +29 -13
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +38 -40
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +189 -51
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +1 -1
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +104 -25
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +1 -1
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +30 -14
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +1 -1
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +91 -21
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +71 -19
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +46 -24
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +37 -35
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +1 -1
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +29 -9
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +170 -68
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +2 -2
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +14 -4
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +53 -26
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +25 -16
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/bundles/material.umd.js +2853 -1010
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +19 -21
- package/bundles/material.umd.min.js.map +1 -1
- package/button/typings/button.d.ts +0 -5
- package/button/typings/index.metadata.json +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/card/typings/index.metadata.json +1 -1
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-list.d.ts +1 -1
- package/chips/typings/chip.d.ts +2 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/core/typings/public-api.d.ts +1 -1
- package/datepicker/typings/calendar-body.d.ts +21 -5
- package/datepicker/typings/calendar.d.ts +4 -1
- package/datepicker/typings/datepicker.d.ts +3 -0
- package/datepicker/typings/index.metadata.json +1 -1
- package/datepicker/typings/month-view.d.ts +4 -2
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +60 -29
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +29 -6
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +45 -22
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +20 -11
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +20 -15
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +5 -5
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +30 -12
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +64 -28
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +148 -129
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +124 -41
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +77 -40
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +58 -31
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +94 -34
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +45 -17
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +136 -67
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +44 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +47 -22
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +109 -63
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +35 -12
- package/esm2015/paginator.js.map +1 -1
- package/esm2015/progress-bar.js +26 -13
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/progress-spinner.js +24 -14
- package/esm2015/progress-spinner.js.map +1 -1
- package/esm2015/radio.js +22 -21
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +116 -53
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +75 -28
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +23 -15
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +54 -24
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +41 -21
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +47 -24
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +35 -32
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +31 -11
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +113 -53
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +43 -28
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -17
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +128 -34
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +40 -7
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +70 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +38 -15
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +23 -16
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +5 -5
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +58 -17
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +127 -37
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +192 -129
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +233 -55
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +140 -42
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/divider.es5.js +4 -4
- package/esm5/divider.es5.js.map +1 -1
- package/esm5/expansion.es5.js +56 -31
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +125 -36
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +68 -17
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +279 -80
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +52 -24
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +72 -24
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +13 -12
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +170 -65
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +55 -13
- package/esm5/paginator.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +33 -14
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/progress-spinner.es5.js +31 -15
- package/esm5/progress-spinner.es5.js.map +1 -1
- package/esm5/radio.es5.js +42 -42
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +193 -55
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +107 -28
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +32 -16
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +94 -24
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +73 -21
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +53 -26
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +40 -38
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +31 -11
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +162 -61
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +16 -6
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +55 -28
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -18
- package/esm5/tree.es5.js.map +1 -1
- package/expansion/typings/expansion-panel-header.d.ts +2 -2
- package/expansion/typings/expansion-panel.d.ts +19 -2
- package/expansion/typings/index.metadata.json +1 -1
- package/form-field/typings/form-field.d.ts +15 -4
- package/form-field/typings/index.metadata.json +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/material.d.ts +1 -1
- package/material.metadata.json +3 -3
- package/menu/typings/index.d.ts +4 -4
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-directive.d.ts +1 -0
- package/menu/typings/menu-item.d.ts +2 -0
- package/package.json +5 -5
- package/paginator/typings/index.metadata.json +1 -1
- package/paginator/typings/paginator.d.ts +7 -3
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/typings/index.metadata.json +1 -1
- package/radio/typings/index.metadata.json +1 -1
- package/radio/typings/radio.d.ts +2 -6
- package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +35 -19
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/select/typings/index.metadata.json +1 -1
- package/select/typings/select.d.ts +12 -2
- package/sidenav/typings/drawer.d.ts +9 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/slider/typings/index.metadata.json +1 -1
- package/snack-bar/typings/index.metadata.json +1 -1
- package/sort/typings/index.metadata.json +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/step-header.d.ts +3 -5
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-body.d.ts +2 -0
- package/tabs/typings/tab-group.d.ts +11 -2
- package/tabs/typings/tab-header.d.ts +9 -3
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tree/typings/data-source/flat-data-source.d.ts +2 -2
- package/tree/typings/index.metadata.json +1 -1
- package/typings/autocomplete/index.d.ts +1 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button/button.d.ts +0 -5
- package/typings/button/index.metadata.json +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/card/index.metadata.json +1 -1
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-list.d.ts +1 -1
- package/typings/chips/chip.d.ts +2 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/core/public-api.d.ts +1 -1
- package/typings/datepicker/calendar-body.d.ts +21 -5
- package/typings/datepicker/calendar.d.ts +4 -1
- package/typings/datepicker/datepicker.d.ts +3 -0
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/datepicker/month-view.d.ts +4 -2
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +1 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/esm5/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
- package/typings/esm5/button/button.d.ts +0 -5
- package/typings/esm5/button/index.metadata.json +1 -1
- package/typings/esm5/button-toggle/index.metadata.json +1 -1
- package/typings/esm5/card/index.metadata.json +1 -1
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-list.d.ts +1 -1
- package/typings/esm5/chips/chip.d.ts +2 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/esm5/core/public-api.d.ts +1 -1
- package/typings/esm5/datepicker/calendar-body.d.ts +21 -5
- package/typings/esm5/datepicker/calendar.d.ts +4 -1
- package/typings/esm5/datepicker/datepicker.d.ts +3 -0
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/datepicker/month-view.d.ts +4 -2
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/esm5/expansion/expansion-panel.d.ts +19 -2
- package/typings/esm5/expansion/index.metadata.json +1 -1
- package/typings/esm5/form-field/form-field.d.ts +15 -4
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/menu/index.d.ts +4 -4
- package/typings/esm5/menu/index.metadata.json +1 -1
- package/typings/esm5/menu/menu-directive.d.ts +1 -0
- package/typings/esm5/menu/menu-item.d.ts +2 -0
- package/typings/esm5/paginator/index.metadata.json +1 -1
- package/typings/esm5/paginator/paginator.d.ts +7 -3
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/radio/index.metadata.json +1 -1
- package/typings/esm5/radio/radio.d.ts +2 -6
- package/typings/esm5/select/index.metadata.json +1 -1
- package/typings/esm5/select/select.d.ts +12 -2
- package/typings/esm5/sidenav/drawer.d.ts +9 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/slider/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/index.metadata.json +1 -1
- package/typings/esm5/sort/index.metadata.json +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/step-header.d.ts +3 -5
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-body.d.ts +2 -0
- package/typings/esm5/tabs/tab-group.d.ts +11 -2
- package/typings/esm5/tabs/tab-header.d.ts +9 -3
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/expansion/expansion-panel.d.ts +19 -2
- package/typings/expansion/index.metadata.json +1 -1
- package/typings/form-field/form-field.d.ts +15 -4
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/list/index.metadata.json +1 -1
- package/typings/menu/index.d.ts +4 -4
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-directive.d.ts +1 -0
- package/typings/menu/menu-item.d.ts +2 -0
- package/typings/paginator/index.metadata.json +1 -1
- package/typings/paginator/paginator.d.ts +7 -3
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/radio/index.metadata.json +1 -1
- package/typings/radio/radio.d.ts +2 -6
- package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/typings/select/index.metadata.json +1 -1
- package/typings/select/select.d.ts +12 -2
- package/typings/sidenav/drawer.d.ts +9 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/slider/index.metadata.json +1 -1
- package/typings/snack-bar/index.metadata.json +1 -1
- package/typings/sort/index.metadata.json +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/step-header.d.ts +3 -5
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-body.d.ts +2 -0
- package/typings/tabs/tab-group.d.ts +11 -2
- package/typings/tabs/tab-header.d.ts +9 -3
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
- package/schematics/ng-add/theming/custom-theme.js.map +0 -1
package/esm2015/datepicker.js
CHANGED
|
@@ -25,7 +25,7 @@ import { A11yModule } from '@angular/cdk/a11y';
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @fileoverview added by tsickle
|
|
28
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
28
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -41,7 +41,7 @@ function createMissingDateImplError(provider) {
|
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* @fileoverview added by tsickle
|
|
44
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
44
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
45
45
|
*/
|
|
46
46
|
/**
|
|
47
47
|
* Datepicker data that requires internationalization.
|
|
@@ -102,7 +102,7 @@ MatDatepickerIntl.decorators = [
|
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* @fileoverview added by tsickle
|
|
105
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
105
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
106
106
|
*/
|
|
107
107
|
/**
|
|
108
108
|
* An internal class that represents the data corresponding to a single calendar cell.
|
|
@@ -114,12 +114,14 @@ class MatCalendarCell {
|
|
|
114
114
|
* @param {?} displayValue
|
|
115
115
|
* @param {?} ariaLabel
|
|
116
116
|
* @param {?} enabled
|
|
117
|
+
* @param {?=} cssClasses
|
|
117
118
|
*/
|
|
118
|
-
constructor(value, displayValue, ariaLabel, enabled) {
|
|
119
|
+
constructor(value, displayValue, ariaLabel, enabled, cssClasses) {
|
|
119
120
|
this.value = value;
|
|
120
121
|
this.displayValue = displayValue;
|
|
121
122
|
this.ariaLabel = ariaLabel;
|
|
122
123
|
this.enabled = enabled;
|
|
124
|
+
this.cssClasses = cssClasses;
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
/**
|
|
@@ -162,12 +164,22 @@ class MatCalendarBody {
|
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
/**
|
|
165
|
-
*
|
|
167
|
+
* @param {?} changes
|
|
166
168
|
* @return {?}
|
|
167
169
|
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
ngOnChanges(changes) {
|
|
171
|
+
/** @type {?} */
|
|
172
|
+
const columnChanges = changes.numCols;
|
|
173
|
+
const { rows, numCols } = this;
|
|
174
|
+
if (changes.rows || columnChanges) {
|
|
175
|
+
this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - rows[0].length : 0;
|
|
176
|
+
}
|
|
177
|
+
if (changes.cellAspectRatio || columnChanges || !this._cellPadding) {
|
|
178
|
+
this._cellPadding = `${50 * this.cellAspectRatio / numCols}%`;
|
|
179
|
+
}
|
|
180
|
+
if (columnChanges || !this._cellWidth) {
|
|
181
|
+
this._cellWidth = `${100 / numCols}%`;
|
|
182
|
+
}
|
|
171
183
|
}
|
|
172
184
|
/**
|
|
173
185
|
* @param {?} rowIndex
|
|
@@ -201,8 +213,8 @@ class MatCalendarBody {
|
|
|
201
213
|
}
|
|
202
214
|
MatCalendarBody.decorators = [
|
|
203
215
|
{ type: Component, args: [{selector: '[mat-calendar-body]',
|
|
204
|
-
template: "<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\"><td class=\"mat-calendar-body-label\" [attr.colspan]=\"numCols\" [style.paddingTop
|
|
205
|
-
styles: [".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;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}@media
|
|
216
|
+
template: "<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\"><td class=\"mat-calendar-body-label\" [attr.colspan]=\"numCols\" [style.paddingTop]=\"_cellPadding\" [style.paddingBottom]=\"_cellPadding\">{{label}}</td></tr><tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\"><td *ngIf=\"rowIndex === 0 && _firstRowOffset\" aria-hidden=\"true\" class=\"mat-calendar-body-label\" [attr.colspan]=\"_firstRowOffset\" [style.paddingTop]=\"_cellPadding\" [style.paddingBottom]=\"_cellPadding\">{{_firstRowOffset >= labelMinRequiredCells ? label : ''}}</td><td *ngFor=\"let item of row; let colIndex = index\" role=\"gridcell\" class=\"mat-calendar-body-cell\" [ngClass]=\"item.cssClasses\" [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\" [class.mat-calendar-body-disabled]=\"!item.enabled\" [class.mat-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\" [attr.aria-label]=\"item.ariaLabel\" [attr.aria-disabled]=\"!item.enabled || null\" [attr.aria-selected]=\"selectedValue === item.value\" (click)=\"_cellClicked(item)\" [style.width]=\"_cellWidth\" [style.paddingTop]=\"_cellPadding\" [style.paddingBottom]=\"_cellPadding\"><div class=\"mat-calendar-body-cell-content\" [class.mat-calendar-body-selected]=\"selectedValue === item.value\" [class.mat-calendar-body-today]=\"todayValue === item.value\">{{item.displayValue}}</div></td></tr>",
|
|
217
|
+
styles: [".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;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}@media (-ms-high-contrast:active){.mat-calendar-body-cell-content{border:none}}@media (-ms-high-contrast:active){.mat-calendar-body-selected,.mat-datepicker-popup:not(:empty){outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}}[dir=rtl] .mat-calendar-body-label{text-align:right}"],
|
|
206
218
|
host: {
|
|
207
219
|
'class': 'mat-calendar-body',
|
|
208
220
|
'role': 'grid',
|
|
@@ -232,7 +244,7 @@ MatCalendarBody.propDecorators = {
|
|
|
232
244
|
|
|
233
245
|
/**
|
|
234
246
|
* @fileoverview added by tsickle
|
|
235
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
247
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
236
248
|
*/
|
|
237
249
|
/** @type {?} */
|
|
238
250
|
const DAYS_PER_WEEK = 7;
|
|
@@ -277,6 +289,7 @@ class MatMonthView {
|
|
|
277
289
|
const narrowWeekdays = this._dateAdapter.getDayOfWeekNames('narrow');
|
|
278
290
|
/** @type {?} */
|
|
279
291
|
const longWeekdays = this._dateAdapter.getDayOfWeekNames('long');
|
|
292
|
+
// Rotate the labels for days of the week based on the configured first day of the week.
|
|
280
293
|
/** @type {?} */
|
|
281
294
|
let weekdays = longWeekdays.map((long, i) => {
|
|
282
295
|
return { long, narrow: narrowWeekdays[i] };
|
|
@@ -369,6 +382,12 @@ class MatMonthView {
|
|
|
369
382
|
* @return {?}
|
|
370
383
|
*/
|
|
371
384
|
_handleCalendarBodyKeydown(event) {
|
|
385
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
386
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
387
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
388
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
389
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
390
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
372
391
|
/** @type {?} */
|
|
373
392
|
const oldActiveDate = this._activeDate;
|
|
374
393
|
/** @type {?} */
|
|
@@ -450,6 +469,7 @@ class MatMonthView {
|
|
|
450
469
|
}
|
|
451
470
|
/**
|
|
452
471
|
* Creates MatCalendarCells for the dates in this month.
|
|
472
|
+
* @private
|
|
453
473
|
* @return {?}
|
|
454
474
|
*/
|
|
455
475
|
_createWeekCells() {
|
|
@@ -469,12 +489,15 @@ class MatMonthView {
|
|
|
469
489
|
const enabled = this._shouldEnableDate(date);
|
|
470
490
|
/** @type {?} */
|
|
471
491
|
const ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.dateA11yLabel);
|
|
492
|
+
/** @type {?} */
|
|
493
|
+
const cellClasses = this.dateClass ? this.dateClass(date) : undefined;
|
|
472
494
|
this._weeks[this._weeks.length - 1]
|
|
473
|
-
.push(new MatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled));
|
|
495
|
+
.push(new MatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled, cellClasses));
|
|
474
496
|
}
|
|
475
497
|
}
|
|
476
498
|
/**
|
|
477
499
|
* Date filter for the month
|
|
500
|
+
* @private
|
|
478
501
|
* @param {?} date
|
|
479
502
|
* @return {?}
|
|
480
503
|
*/
|
|
@@ -487,6 +510,7 @@ class MatMonthView {
|
|
|
487
510
|
/**
|
|
488
511
|
* Gets the date in this month that the given Date falls on.
|
|
489
512
|
* Returns null if the given Date is in another month.
|
|
513
|
+
* @private
|
|
490
514
|
* @param {?} date
|
|
491
515
|
* @return {?}
|
|
492
516
|
*/
|
|
@@ -496,6 +520,7 @@ class MatMonthView {
|
|
|
496
520
|
}
|
|
497
521
|
/**
|
|
498
522
|
* Checks whether the 2 dates are non-null and fall within the same month of the same year.
|
|
523
|
+
* @private
|
|
499
524
|
* @param {?} d1
|
|
500
525
|
* @param {?} d2
|
|
501
526
|
* @return {?}
|
|
@@ -505,6 +530,7 @@ class MatMonthView {
|
|
|
505
530
|
this._dateAdapter.getYear(d1) == this._dateAdapter.getYear(d2));
|
|
506
531
|
}
|
|
507
532
|
/**
|
|
533
|
+
* @private
|
|
508
534
|
* @param {?} obj The object to check.
|
|
509
535
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
510
536
|
*/
|
|
@@ -513,6 +539,7 @@ class MatMonthView {
|
|
|
513
539
|
}
|
|
514
540
|
/**
|
|
515
541
|
* Determines whether the user has the RTL layout direction.
|
|
542
|
+
* @private
|
|
516
543
|
* @return {?}
|
|
517
544
|
*/
|
|
518
545
|
_isRtl() {
|
|
@@ -540,6 +567,7 @@ MatMonthView.propDecorators = {
|
|
|
540
567
|
minDate: [{ type: Input }],
|
|
541
568
|
maxDate: [{ type: Input }],
|
|
542
569
|
dateFilter: [{ type: Input }],
|
|
570
|
+
dateClass: [{ type: Input }],
|
|
543
571
|
selectedChange: [{ type: Output }],
|
|
544
572
|
_userSelection: [{ type: Output }],
|
|
545
573
|
activeDateChange: [{ type: Output }],
|
|
@@ -548,7 +576,7 @@ MatMonthView.propDecorators = {
|
|
|
548
576
|
|
|
549
577
|
/**
|
|
550
578
|
* @fileoverview added by tsickle
|
|
551
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
579
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
552
580
|
*/
|
|
553
581
|
/** @type {?} */
|
|
554
582
|
const yearsPerPage = 24;
|
|
@@ -688,6 +716,12 @@ class MatMultiYearView {
|
|
|
688
716
|
* @return {?}
|
|
689
717
|
*/
|
|
690
718
|
_handleCalendarBodyKeydown(event) {
|
|
719
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
720
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
721
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
722
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
723
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
724
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
691
725
|
/** @type {?} */
|
|
692
726
|
const oldActiveDate = this._activeDate;
|
|
693
727
|
/** @type {?} */
|
|
@@ -749,6 +783,7 @@ class MatMultiYearView {
|
|
|
749
783
|
}
|
|
750
784
|
/**
|
|
751
785
|
* Creates an MatCalendarCell for the given year.
|
|
786
|
+
* @private
|
|
752
787
|
* @param {?} year
|
|
753
788
|
* @return {?}
|
|
754
789
|
*/
|
|
@@ -759,6 +794,7 @@ class MatMultiYearView {
|
|
|
759
794
|
}
|
|
760
795
|
/**
|
|
761
796
|
* Whether the given year is enabled.
|
|
797
|
+
* @private
|
|
762
798
|
* @param {?} year
|
|
763
799
|
* @return {?}
|
|
764
800
|
*/
|
|
@@ -784,6 +820,7 @@ class MatMultiYearView {
|
|
|
784
820
|
return false;
|
|
785
821
|
}
|
|
786
822
|
/**
|
|
823
|
+
* @private
|
|
787
824
|
* @param {?} obj The object to check.
|
|
788
825
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
789
826
|
*/
|
|
@@ -792,6 +829,7 @@ class MatMultiYearView {
|
|
|
792
829
|
}
|
|
793
830
|
/**
|
|
794
831
|
* Determines whether the user has the RTL layout direction.
|
|
832
|
+
* @private
|
|
795
833
|
* @return {?}
|
|
796
834
|
*/
|
|
797
835
|
_isRtl() {
|
|
@@ -826,7 +864,7 @@ MatMultiYearView.propDecorators = {
|
|
|
826
864
|
|
|
827
865
|
/**
|
|
828
866
|
* @fileoverview added by tsickle
|
|
829
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
867
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
830
868
|
*/
|
|
831
869
|
/**
|
|
832
870
|
* An internal component used to display a single year in the datepicker.
|
|
@@ -946,6 +984,12 @@ class MatYearView {
|
|
|
946
984
|
* @return {?}
|
|
947
985
|
*/
|
|
948
986
|
_handleCalendarBodyKeydown(event) {
|
|
987
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
988
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
989
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
990
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
991
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
992
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
949
993
|
/** @type {?} */
|
|
950
994
|
const oldActiveDate = this._activeDate;
|
|
951
995
|
/** @type {?} */
|
|
@@ -1016,6 +1060,7 @@ class MatYearView {
|
|
|
1016
1060
|
/**
|
|
1017
1061
|
* Gets the month in this year that the given Date falls on.
|
|
1018
1062
|
* Returns null if the given Date is in another year.
|
|
1063
|
+
* @private
|
|
1019
1064
|
* @param {?} date
|
|
1020
1065
|
* @return {?}
|
|
1021
1066
|
*/
|
|
@@ -1025,6 +1070,7 @@ class MatYearView {
|
|
|
1025
1070
|
}
|
|
1026
1071
|
/**
|
|
1027
1072
|
* Creates an MatCalendarCell for the given month.
|
|
1073
|
+
* @private
|
|
1028
1074
|
* @param {?} month
|
|
1029
1075
|
* @param {?} monthName
|
|
1030
1076
|
* @return {?}
|
|
@@ -1036,6 +1082,7 @@ class MatYearView {
|
|
|
1036
1082
|
}
|
|
1037
1083
|
/**
|
|
1038
1084
|
* Whether the given month is enabled.
|
|
1085
|
+
* @private
|
|
1039
1086
|
* @param {?} month
|
|
1040
1087
|
* @return {?}
|
|
1041
1088
|
*/
|
|
@@ -1063,6 +1110,7 @@ class MatYearView {
|
|
|
1063
1110
|
/**
|
|
1064
1111
|
* Tests whether the combination month/year is after this.maxDate, considering
|
|
1065
1112
|
* just the month and year of this.maxDate
|
|
1113
|
+
* @private
|
|
1066
1114
|
* @param {?} year
|
|
1067
1115
|
* @param {?} month
|
|
1068
1116
|
* @return {?}
|
|
@@ -1080,6 +1128,7 @@ class MatYearView {
|
|
|
1080
1128
|
/**
|
|
1081
1129
|
* Tests whether the combination month/year is before this.minDate, considering
|
|
1082
1130
|
* just the month and year of this.minDate
|
|
1131
|
+
* @private
|
|
1083
1132
|
* @param {?} year
|
|
1084
1133
|
* @param {?} month
|
|
1085
1134
|
* @return {?}
|
|
@@ -1095,6 +1144,7 @@ class MatYearView {
|
|
|
1095
1144
|
return false;
|
|
1096
1145
|
}
|
|
1097
1146
|
/**
|
|
1147
|
+
* @private
|
|
1098
1148
|
* @param {?} obj The object to check.
|
|
1099
1149
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
1100
1150
|
*/
|
|
@@ -1103,6 +1153,7 @@ class MatYearView {
|
|
|
1103
1153
|
}
|
|
1104
1154
|
/**
|
|
1105
1155
|
* Determines whether the user has the RTL layout direction.
|
|
1156
|
+
* @private
|
|
1106
1157
|
* @return {?}
|
|
1107
1158
|
*/
|
|
1108
1159
|
_isRtl() {
|
|
@@ -1138,7 +1189,7 @@ MatYearView.propDecorators = {
|
|
|
1138
1189
|
|
|
1139
1190
|
/**
|
|
1140
1191
|
* @fileoverview added by tsickle
|
|
1141
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1192
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1142
1193
|
*/
|
|
1143
1194
|
/**
|
|
1144
1195
|
* Default header for MatCalendar
|
|
@@ -1255,6 +1306,7 @@ class MatCalendarHeader {
|
|
|
1255
1306
|
}
|
|
1256
1307
|
/**
|
|
1257
1308
|
* Whether the two dates represent the same view in the current view mode (month or year).
|
|
1309
|
+
* @private
|
|
1258
1310
|
* @param {?} date1
|
|
1259
1311
|
* @param {?} date2
|
|
1260
1312
|
* @return {?}
|
|
@@ -1453,7 +1505,7 @@ class MatCalendar {
|
|
|
1453
1505
|
*/
|
|
1454
1506
|
ngOnChanges(changes) {
|
|
1455
1507
|
/** @type {?} */
|
|
1456
|
-
const change = changes
|
|
1508
|
+
const change = changes.minDate || changes.maxDate || changes.dateFilter;
|
|
1457
1509
|
if (change && !change.firstChange) {
|
|
1458
1510
|
/** @type {?} */
|
|
1459
1511
|
const view = this._getCurrentViewComponent();
|
|
@@ -1525,6 +1577,7 @@ class MatCalendar {
|
|
|
1525
1577
|
this.currentView = view;
|
|
1526
1578
|
}
|
|
1527
1579
|
/**
|
|
1580
|
+
* @private
|
|
1528
1581
|
* @param {?} obj The object to check.
|
|
1529
1582
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
1530
1583
|
*/
|
|
@@ -1533,6 +1586,7 @@ class MatCalendar {
|
|
|
1533
1586
|
}
|
|
1534
1587
|
/**
|
|
1535
1588
|
* Returns the component instance that corresponds to the current calendar view.
|
|
1589
|
+
* @private
|
|
1536
1590
|
* @return {?}
|
|
1537
1591
|
*/
|
|
1538
1592
|
_getCurrentViewComponent() {
|
|
@@ -1541,7 +1595,7 @@ class MatCalendar {
|
|
|
1541
1595
|
}
|
|
1542
1596
|
MatCalendar.decorators = [
|
|
1543
1597
|
{ type: Component, args: [{selector: 'mat-calendar',
|
|
1544
|
-
template: "<ng-template [cdkPortalOutlet]=\"_calendarHeaderPortal\"></ng-template><div class=\"mat-calendar-content\" [ngSwitch]=\"currentView\" cdkMonitorSubtreeFocus tabindex=\"-1\"><mat-month-view *ngSwitchCase=\"'month'\" [(activeDate)]=\"activeDate\" [selected]=\"selected\" [dateFilter]=\"dateFilter\" [maxDate]=\"maxDate\" [minDate]=\"minDate\" (selectedChange)=\"_dateSelected($event)\" (_userSelection)=\"_userSelected()\"></mat-month-view><mat-year-view *ngSwitchCase=\"'year'\" [(activeDate)]=\"activeDate\" [selected]=\"selected\" [dateFilter]=\"dateFilter\" [maxDate]=\"maxDate\" [minDate]=\"minDate\" (monthSelected)=\"_monthSelectedInYearView($event)\" (selectedChange)=\"_goToDateInView($event, 'month')\"></mat-year-view><mat-multi-year-view *ngSwitchCase=\"'multi-year'\" [(activeDate)]=\"activeDate\" [selected]=\"selected\" [dateFilter]=\"dateFilter\" [maxDate]=\"maxDate\" [minDate]=\"minDate\" (yearSelected)=\"_yearSelectedInMultiYearView($event)\" (selectedChange)=\"_goToDateInView($event, 'year')\"></mat-multi-year-view></div>",
|
|
1598
|
+
template: "<ng-template [cdkPortalOutlet]=\"_calendarHeaderPortal\"></ng-template><div class=\"mat-calendar-content\" [ngSwitch]=\"currentView\" cdkMonitorSubtreeFocus tabindex=\"-1\"><mat-month-view *ngSwitchCase=\"'month'\" [(activeDate)]=\"activeDate\" [selected]=\"selected\" [dateFilter]=\"dateFilter\" [maxDate]=\"maxDate\" [minDate]=\"minDate\" [dateClass]=\"dateClass\" (selectedChange)=\"_dateSelected($event)\" (_userSelection)=\"_userSelected()\"></mat-month-view><mat-year-view *ngSwitchCase=\"'year'\" [(activeDate)]=\"activeDate\" [selected]=\"selected\" [dateFilter]=\"dateFilter\" [maxDate]=\"maxDate\" [minDate]=\"minDate\" (monthSelected)=\"_monthSelectedInYearView($event)\" (selectedChange)=\"_goToDateInView($event, 'month')\"></mat-year-view><mat-multi-year-view *ngSwitchCase=\"'multi-year'\" [(activeDate)]=\"activeDate\" [selected]=\"selected\" [dateFilter]=\"dateFilter\" [maxDate]=\"maxDate\" [minDate]=\"minDate\" (yearSelected)=\"_yearSelectedInMultiYearView($event)\" (selectedChange)=\"_goToDateInView($event, 'year')\"></mat-multi-year-view></div>",
|
|
1545
1599
|
styles: [".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:0}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;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}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-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-next-button,[dir=rtl] .mat-calendar-previous-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}"],
|
|
1546
1600
|
host: {
|
|
1547
1601
|
'class': 'mat-calendar',
|
|
@@ -1566,6 +1620,7 @@ MatCalendar.propDecorators = {
|
|
|
1566
1620
|
minDate: [{ type: Input }],
|
|
1567
1621
|
maxDate: [{ type: Input }],
|
|
1568
1622
|
dateFilter: [{ type: Input }],
|
|
1623
|
+
dateClass: [{ type: Input }],
|
|
1569
1624
|
selectedChange: [{ type: Output }],
|
|
1570
1625
|
yearSelected: [{ type: Output }],
|
|
1571
1626
|
monthSelected: [{ type: Output }],
|
|
@@ -1577,14 +1632,17 @@ MatCalendar.propDecorators = {
|
|
|
1577
1632
|
|
|
1578
1633
|
/**
|
|
1579
1634
|
* @fileoverview added by tsickle
|
|
1580
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1635
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1581
1636
|
*/
|
|
1582
|
-
/**
|
|
1637
|
+
/**
|
|
1583
1638
|
* Animations used by the Material datepicker.
|
|
1584
1639
|
* \@docs-private
|
|
1585
|
-
|
|
1640
|
+
* @type {?}
|
|
1641
|
+
*/
|
|
1586
1642
|
const matDatepickerAnimations = {
|
|
1587
|
-
/**
|
|
1643
|
+
/**
|
|
1644
|
+
* Transforms the height of the datepicker's calendar.
|
|
1645
|
+
*/
|
|
1588
1646
|
transformPanel: trigger('transformPanel', [
|
|
1589
1647
|
state('void', style({
|
|
1590
1648
|
opacity: 0,
|
|
@@ -1596,7 +1654,9 @@ const matDatepickerAnimations = {
|
|
|
1596
1654
|
}))),
|
|
1597
1655
|
transition('* => void', animate('100ms linear', style({ opacity: 0 })))
|
|
1598
1656
|
]),
|
|
1599
|
-
/**
|
|
1657
|
+
/**
|
|
1658
|
+
* Fades in the content of the calendar.
|
|
1659
|
+
*/
|
|
1600
1660
|
fadeInCalendar: trigger('fadeInCalendar', [
|
|
1601
1661
|
state('void', style({ opacity: 0 })),
|
|
1602
1662
|
state('enter', style({ opacity: 1 })),
|
|
@@ -1608,15 +1668,17 @@ const matDatepickerAnimations = {
|
|
|
1608
1668
|
|
|
1609
1669
|
/**
|
|
1610
1670
|
* @fileoverview added by tsickle
|
|
1611
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1671
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1612
1672
|
*/
|
|
1613
|
-
/**
|
|
1673
|
+
/**
|
|
1614
1674
|
* Used to generate a unique ID for each datepicker instance.
|
|
1615
|
-
|
|
1675
|
+
* @type {?}
|
|
1676
|
+
*/
|
|
1616
1677
|
let datepickerUid = 0;
|
|
1617
|
-
/**
|
|
1678
|
+
/**
|
|
1618
1679
|
* Injection token that determines the scroll handling while the calendar is open.
|
|
1619
|
-
|
|
1680
|
+
* @type {?}
|
|
1681
|
+
*/
|
|
1620
1682
|
const MAT_DATEPICKER_SCROLL_STRATEGY = new InjectionToken('mat-datepicker-scroll-strategy');
|
|
1621
1683
|
/**
|
|
1622
1684
|
* \@docs-private
|
|
@@ -1626,14 +1688,16 @@ const MAT_DATEPICKER_SCROLL_STRATEGY = new InjectionToken('mat-datepicker-scroll
|
|
|
1626
1688
|
function MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
1627
1689
|
return () => overlay.scrollStrategies.reposition();
|
|
1628
1690
|
}
|
|
1629
|
-
/**
|
|
1691
|
+
/**
|
|
1630
1692
|
* \@docs-private
|
|
1631
|
-
|
|
1693
|
+
* @type {?}
|
|
1694
|
+
*/
|
|
1632
1695
|
const MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
1633
1696
|
provide: MAT_DATEPICKER_SCROLL_STRATEGY,
|
|
1634
1697
|
deps: [Overlay],
|
|
1635
1698
|
useFactory: MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
|
|
1636
1699
|
};
|
|
1700
|
+
// Boilerplate for applying mixins to MatDatepickerContent.
|
|
1637
1701
|
/**
|
|
1638
1702
|
* \@docs-private
|
|
1639
1703
|
*/
|
|
@@ -1671,7 +1735,7 @@ class MatDatepickerContent extends _MatDatepickerContentMixinBase {
|
|
|
1671
1735
|
}
|
|
1672
1736
|
MatDatepickerContent.decorators = [
|
|
1673
1737
|
{ type: Component, args: [{selector: 'mat-datepicker-content',
|
|
1674
|
-
template: "<mat-calendar cdkTrapFocus [id]=\"datepicker.id\" [ngClass]=\"datepicker.panelClass\" [startAt]=\"datepicker.startAt\" [startView]=\"datepicker.startView\" [minDate]=\"datepicker._minDate\" [maxDate]=\"datepicker._maxDate\" [dateFilter]=\"datepicker._dateFilter\" [headerComponent]=\"datepicker.calendarHeaderComponent\" [selected]=\"datepicker._selected\" [@fadeInCalendar]=\"'enter'\" (selectedChange)=\"datepicker.select($event)\" (yearSelected)=\"datepicker._selectYear($event)\" (monthSelected)=\"datepicker._selectMonth($event)\" (_userSelection)=\"datepicker.close()\"></mat-calendar>",
|
|
1738
|
+
template: "<mat-calendar cdkTrapFocus [id]=\"datepicker.id\" [ngClass]=\"datepicker.panelClass\" [startAt]=\"datepicker.startAt\" [startView]=\"datepicker.startView\" [minDate]=\"datepicker._minDate\" [maxDate]=\"datepicker._maxDate\" [dateFilter]=\"datepicker._dateFilter\" [headerComponent]=\"datepicker.calendarHeaderComponent\" [selected]=\"datepicker._selected\" [dateClass]=\"datepicker.dateClass\" [@fadeInCalendar]=\"'enter'\" (selectedChange)=\"datepicker.select($event)\" (yearSelected)=\"datepicker._selectYear($event)\" (monthSelected)=\"datepicker._selectMonth($event)\" (_userSelection)=\"datepicker.close()\"></mat-calendar>",
|
|
1675
1739
|
styles: [".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"],
|
|
1676
1740
|
host: {
|
|
1677
1741
|
'class': 'mat-datepicker-content',
|
|
@@ -1695,6 +1759,9 @@ MatDatepickerContent.ctorParameters = () => [
|
|
|
1695
1759
|
MatDatepickerContent.propDecorators = {
|
|
1696
1760
|
_calendar: [{ type: ViewChild, args: [MatCalendar,] }]
|
|
1697
1761
|
};
|
|
1762
|
+
// TODO(mmalerba): We use a component instead of a directive here so the user can use implicit
|
|
1763
|
+
// template reference variables (e.g. #d vs #d="matDatepicker"). We can change this to a directive
|
|
1764
|
+
// if angular adds support for `exportAs: '$implicit'` on directives.
|
|
1698
1765
|
/**
|
|
1699
1766
|
* Component responsible for managing the datepicker popup/dialog.
|
|
1700
1767
|
* @template D
|
|
@@ -1988,6 +2055,7 @@ class MatDatepicker {
|
|
|
1988
2055
|
}
|
|
1989
2056
|
/**
|
|
1990
2057
|
* Open the calendar as a dialog.
|
|
2058
|
+
* @private
|
|
1991
2059
|
* @return {?}
|
|
1992
2060
|
*/
|
|
1993
2061
|
_openAsDialog() {
|
|
@@ -2009,6 +2077,7 @@ class MatDatepicker {
|
|
|
2009
2077
|
}
|
|
2010
2078
|
/**
|
|
2011
2079
|
* Open the calendar as a popup.
|
|
2080
|
+
* @private
|
|
2012
2081
|
* @return {?}
|
|
2013
2082
|
*/
|
|
2014
2083
|
_openAsPopup() {
|
|
@@ -2030,6 +2099,7 @@ class MatDatepicker {
|
|
|
2030
2099
|
}
|
|
2031
2100
|
/**
|
|
2032
2101
|
* Create the popup.
|
|
2102
|
+
* @private
|
|
2033
2103
|
* @return {?}
|
|
2034
2104
|
*/
|
|
2035
2105
|
_createPopup() {
|
|
@@ -2052,6 +2122,7 @@ class MatDatepicker {
|
|
|
2052
2122
|
}
|
|
2053
2123
|
/**
|
|
2054
2124
|
* Create the popup PositionStrategy.
|
|
2125
|
+
* @private
|
|
2055
2126
|
* @return {?}
|
|
2056
2127
|
*/
|
|
2057
2128
|
_createPopupPositionStrategy() {
|
|
@@ -2089,6 +2160,7 @@ class MatDatepicker {
|
|
|
2089
2160
|
]);
|
|
2090
2161
|
}
|
|
2091
2162
|
/**
|
|
2163
|
+
* @private
|
|
2092
2164
|
* @param {?} obj The object to check.
|
|
2093
2165
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
2094
2166
|
*/
|
|
@@ -2097,6 +2169,7 @@ class MatDatepicker {
|
|
|
2097
2169
|
}
|
|
2098
2170
|
/**
|
|
2099
2171
|
* Passes the current theme color along to the calendar overlay.
|
|
2172
|
+
* @private
|
|
2100
2173
|
* @return {?}
|
|
2101
2174
|
*/
|
|
2102
2175
|
_setColor() {
|
|
@@ -2139,6 +2212,7 @@ MatDatepicker.propDecorators = {
|
|
|
2139
2212
|
yearSelected: [{ type: Output }],
|
|
2140
2213
|
monthSelected: [{ type: Output }],
|
|
2141
2214
|
panelClass: [{ type: Input }],
|
|
2215
|
+
dateClass: [{ type: Input }],
|
|
2142
2216
|
openedStream: [{ type: Output, args: ['opened',] }],
|
|
2143
2217
|
closedStream: [{ type: Output, args: ['closed',] }],
|
|
2144
2218
|
opened: [{ type: Input }]
|
|
@@ -2146,19 +2220,21 @@ MatDatepicker.propDecorators = {
|
|
|
2146
2220
|
|
|
2147
2221
|
/**
|
|
2148
2222
|
* @fileoverview added by tsickle
|
|
2149
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2223
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2150
2224
|
*/
|
|
2151
|
-
/**
|
|
2225
|
+
/**
|
|
2152
2226
|
* \@docs-private
|
|
2153
|
-
|
|
2227
|
+
* @type {?}
|
|
2228
|
+
*/
|
|
2154
2229
|
const MAT_DATEPICKER_VALUE_ACCESSOR = {
|
|
2155
2230
|
provide: NG_VALUE_ACCESSOR,
|
|
2156
2231
|
useExisting: forwardRef(() => MatDatepickerInput),
|
|
2157
2232
|
multi: true
|
|
2158
2233
|
};
|
|
2159
|
-
/**
|
|
2234
|
+
/**
|
|
2160
2235
|
* \@docs-private
|
|
2161
|
-
|
|
2236
|
+
* @type {?}
|
|
2237
|
+
*/
|
|
2162
2238
|
const MAT_DATEPICKER_VALIDATORS = {
|
|
2163
2239
|
provide: NG_VALIDATORS,
|
|
2164
2240
|
useExisting: forwardRef(() => MatDatepickerInput),
|
|
@@ -2415,6 +2491,7 @@ class MatDatepickerInput {
|
|
|
2415
2491
|
getConnectedOverlayOrigin() {
|
|
2416
2492
|
return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;
|
|
2417
2493
|
}
|
|
2494
|
+
// Implemented as part of ControlValueAccessor.
|
|
2418
2495
|
/**
|
|
2419
2496
|
* @param {?} value
|
|
2420
2497
|
* @return {?}
|
|
@@ -2422,6 +2499,7 @@ class MatDatepickerInput {
|
|
|
2422
2499
|
writeValue(value) {
|
|
2423
2500
|
this.value = value;
|
|
2424
2501
|
}
|
|
2502
|
+
// Implemented as part of ControlValueAccessor.
|
|
2425
2503
|
/**
|
|
2426
2504
|
* @param {?} fn
|
|
2427
2505
|
* @return {?}
|
|
@@ -2429,6 +2507,7 @@ class MatDatepickerInput {
|
|
|
2429
2507
|
registerOnChange(fn) {
|
|
2430
2508
|
this._cvaOnChange = fn;
|
|
2431
2509
|
}
|
|
2510
|
+
// Implemented as part of ControlValueAccessor.
|
|
2432
2511
|
/**
|
|
2433
2512
|
* @param {?} fn
|
|
2434
2513
|
* @return {?}
|
|
@@ -2436,6 +2515,7 @@ class MatDatepickerInput {
|
|
|
2436
2515
|
registerOnTouched(fn) {
|
|
2437
2516
|
this._onTouched = fn;
|
|
2438
2517
|
}
|
|
2518
|
+
// Implemented as part of ControlValueAccessor.
|
|
2439
2519
|
/**
|
|
2440
2520
|
* @param {?} isDisabled
|
|
2441
2521
|
* @return {?}
|
|
@@ -2497,6 +2577,7 @@ class MatDatepickerInput {
|
|
|
2497
2577
|
}
|
|
2498
2578
|
/**
|
|
2499
2579
|
* Formats a value and sets it on the input element.
|
|
2580
|
+
* @private
|
|
2500
2581
|
* @param {?} value
|
|
2501
2582
|
* @return {?}
|
|
2502
2583
|
*/
|
|
@@ -2505,6 +2586,7 @@ class MatDatepickerInput {
|
|
|
2505
2586
|
value ? this._dateAdapter.format(value, this._dateFormats.display.dateInput) : '';
|
|
2506
2587
|
}
|
|
2507
2588
|
/**
|
|
2589
|
+
* @private
|
|
2508
2590
|
* @param {?} obj The object to check.
|
|
2509
2591
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
2510
2592
|
*/
|
|
@@ -2554,7 +2636,7 @@ MatDatepickerInput.propDecorators = {
|
|
|
2554
2636
|
|
|
2555
2637
|
/**
|
|
2556
2638
|
* @fileoverview added by tsickle
|
|
2557
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2639
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2558
2640
|
*/
|
|
2559
2641
|
/**
|
|
2560
2642
|
* Can be used to override the icon of a `matDatepickerToggle`.
|
|
@@ -2602,7 +2684,7 @@ class MatDatepickerToggle {
|
|
|
2602
2684
|
* @return {?}
|
|
2603
2685
|
*/
|
|
2604
2686
|
ngOnChanges(changes) {
|
|
2605
|
-
if (changes
|
|
2687
|
+
if (changes.datepicker) {
|
|
2606
2688
|
this._watchStateChanges();
|
|
2607
2689
|
}
|
|
2608
2690
|
}
|
|
@@ -2629,6 +2711,7 @@ class MatDatepickerToggle {
|
|
|
2629
2711
|
}
|
|
2630
2712
|
}
|
|
2631
2713
|
/**
|
|
2714
|
+
* @private
|
|
2632
2715
|
* @return {?}
|
|
2633
2716
|
*/
|
|
2634
2717
|
_watchStateChanges() {
|
|
@@ -2647,7 +2730,7 @@ class MatDatepickerToggle {
|
|
|
2647
2730
|
}
|
|
2648
2731
|
MatDatepickerToggle.decorators = [
|
|
2649
2732
|
{ type: Component, args: [{selector: 'mat-datepicker-toggle',
|
|
2650
|
-
template: "<button #button mat-icon-button type=\"button\" aria-haspopup=\"true\" [attr.aria-label]=\"_intl.openCalendarLabel\" [attr.tabindex]=\"disabled ? -1 : tabIndex\" [disabled]=\"disabled\" [disableRipple]=\"disableRipple\" (click)=\"_open($event)\"><svg *ngIf=\"!_customIcon\" class=\"mat-datepicker-toggle-default-icon\" viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\"><path d=\"
|
|
2733
|
+
template: "<button #button mat-icon-button type=\"button\" aria-haspopup=\"true\" [attr.aria-label]=\"_intl.openCalendarLabel\" [attr.tabindex]=\"disabled ? -1 : tabIndex\" [disabled]=\"disabled\" [disableRipple]=\"disableRipple\" (click)=\"_open($event)\"><svg *ngIf=\"!_customIcon\" class=\"mat-datepicker-toggle-default-icon\" viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" fill=\"currentColor\" focusable=\"false\"><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\"/></svg><ng-content select=\"[matDatepickerToggleIcon]\"></ng-content></button>",
|
|
2651
2734
|
styles: [".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}"],
|
|
2652
2735
|
host: {
|
|
2653
2736
|
'class': 'mat-datepicker-toggle',
|
|
@@ -2681,7 +2764,7 @@ MatDatepickerToggle.propDecorators = {
|
|
|
2681
2764
|
|
|
2682
2765
|
/**
|
|
2683
2766
|
* @fileoverview added by tsickle
|
|
2684
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2767
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2685
2768
|
*/
|
|
2686
2769
|
class MatDatepickerModule {
|
|
2687
2770
|
}
|
|
@@ -2734,12 +2817,12 @@ MatDatepickerModule.decorators = [
|
|
|
2734
2817
|
|
|
2735
2818
|
/**
|
|
2736
2819
|
* @fileoverview added by tsickle
|
|
2737
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2820
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2738
2821
|
*/
|
|
2739
2822
|
|
|
2740
2823
|
/**
|
|
2741
2824
|
* @fileoverview added by tsickle
|
|
2742
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2825
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2743
2826
|
*/
|
|
2744
2827
|
|
|
2745
2828
|
export { MatDatepickerModule, MatCalendarHeader, MatCalendar, MatCalendarCell, MatCalendarBody, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MatDatepickerContentBase, _MatDatepickerContentMixinBase, MatDatepickerContent, MatDatepicker, matDatepickerAnimations, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATEPICKER_VALIDATORS, MatDatepickerInputEvent, MatDatepickerInput, MatDatepickerIntl, MatDatepickerToggleIcon, MatDatepickerToggle, MatMonthView, MatYearView, MatMultiYearView as ɵa34 };
|