@angular/material 7.1.0 → 7.2.2
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 +50 -19
- package/autocomplete/typings/index.d.ts +0 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/autocomplete/typings/public-api.d.ts +1 -0
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-ref.d.ts +2 -0
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +139 -39
- 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 +67 -22
- 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 +45 -14
- 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 +126 -38
- 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 +190 -127
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -2
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +205 -42
- 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 +52 -26
- 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 +123 -34
- 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 +67 -16
- 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 +288 -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 +159 -26
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -2
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +176 -70
- 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 +25 -8
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +32 -13
- 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 +30 -14
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js +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 +186 -49
- 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 +31 -15
- 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 +88 -20
- 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 +69 -20
- 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 +29 -20
- 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 +48 -15
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +162 -61
- 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 +62 -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 +2927 -995
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +18 -18
- 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 +2 -2
- 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/core/typings/ripple/ripple.d.ts +1 -1
- package/datepicker/typings/calendar.d.ts +2 -2
- package/datepicker/typings/index.metadata.json +1 -1
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +73 -36
- 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 +44 -23
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +27 -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 -30
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +147 -128
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +103 -37
- 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 +56 -29
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +95 -35
- 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 +144 -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 +118 -24
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +114 -67
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +17 -9
- 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 +112 -50
- 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 +51 -23
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +38 -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 +32 -23
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +51 -18
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +112 -49
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +49 -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 +141 -41
- 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 +68 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +46 -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 +129 -41
- 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 +207 -44
- 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 +54 -29
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +126 -37
- 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 +290 -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 +161 -27
- 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 +175 -69
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +27 -10
- 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 +189 -52
- 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 +91 -23
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +70 -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 +32 -23
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +51 -18
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +156 -55
- 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 +64 -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/form-field/typings/prefix.d.ts +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/icon-registry.d.ts +3 -2
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/list/typings/list.d.ts +16 -5
- package/list/typings/selection-list.d.ts +1 -0
- 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/menu/typings/menu-trigger.d.ts +1 -1
- package/package.json +5 -5
- 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/table/typings/index.metadata.json +1 -1
- package/table/typings/table-data-source.d.ts +2 -0
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-group.d.ts +2 -1
- package/tabs/typings/tab-header.d.ts +8 -4
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tooltip/typings/tooltip.d.ts +2 -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 +0 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/autocomplete/public-api.d.ts +1 -0
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- 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 +2 -2
- 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/core/ripple/ripple.d.ts +1 -1
- package/typings/datepicker/calendar.d.ts +2 -2
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +0 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/public-api.d.ts +1 -0
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- 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 +2 -2
- 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/core/ripple/ripple.d.ts +1 -1
- package/typings/esm5/datepicker/calendar.d.ts +2 -2
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- 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/form-field/prefix.d.ts +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/icon-registry.d.ts +3 -2
- 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/list/list.d.ts +16 -5
- package/typings/esm5/list/selection-list.d.ts +1 -0
- 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/menu/menu-trigger.d.ts +1 -1
- 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/table/index.metadata.json +1 -1
- package/typings/esm5/table/table-data-source.d.ts +2 -0
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-group.d.ts +2 -1
- package/typings/esm5/tabs/tab-header.d.ts +8 -4
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tooltip/tooltip.d.ts +2 -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/form-field/prefix.d.ts +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/icon-registry.d.ts +3 -2
- 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/list/list.d.ts +16 -5
- package/typings/list/selection-list.d.ts +1 -0
- 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/menu/menu-trigger.d.ts +1 -1
- 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/table/index.metadata.json +1 -1
- package/typings/table/table-data-source.d.ts +2 -0
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-group.d.ts +2 -1
- package/typings/tabs/tab-header.d.ts +8 -4
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tooltip/tooltip.d.ts +2 -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/esm5/datepicker.es5.js
CHANGED
|
@@ -26,7 +26,7 @@ import { A11yModule } from '@angular/cdk/a11y';
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @fileoverview added by tsickle
|
|
29
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
29
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -42,7 +42,7 @@ function createMissingDateImplError(provider) {
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @fileoverview added by tsickle
|
|
45
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
45
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
46
46
|
*/
|
|
47
47
|
/**
|
|
48
48
|
* Datepicker data that requires internationalization.
|
|
@@ -104,7 +104,7 @@ var MatDatepickerIntl = /** @class */ (function () {
|
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* @fileoverview added by tsickle
|
|
107
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
107
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
108
108
|
*/
|
|
109
109
|
/**
|
|
110
110
|
* An internal class that represents the data corresponding to a single calendar cell.
|
|
@@ -173,12 +173,12 @@ var MatCalendarBody = /** @class */ (function () {
|
|
|
173
173
|
*/
|
|
174
174
|
function (changes) {
|
|
175
175
|
/** @type {?} */
|
|
176
|
-
var columnChanges = changes
|
|
176
|
+
var columnChanges = changes.numCols;
|
|
177
177
|
var _a = this, rows = _a.rows, numCols = _a.numCols;
|
|
178
|
-
if (changes
|
|
178
|
+
if (changes.rows || columnChanges) {
|
|
179
179
|
this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - rows[0].length : 0;
|
|
180
180
|
}
|
|
181
|
-
if (changes
|
|
181
|
+
if (changes.cellAspectRatio || columnChanges || !this._cellPadding) {
|
|
182
182
|
this._cellPadding = 50 * this.cellAspectRatio / numCols + "%";
|
|
183
183
|
}
|
|
184
184
|
if (columnChanges || !this._cellWidth) {
|
|
@@ -228,7 +228,7 @@ var MatCalendarBody = /** @class */ (function () {
|
|
|
228
228
|
MatCalendarBody.decorators = [
|
|
229
229
|
{ type: Component, args: [{selector: '[mat-calendar-body]',
|
|
230
230
|
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>",
|
|
231
|
-
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
|
|
231
|
+
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}"],
|
|
232
232
|
host: {
|
|
233
233
|
'class': 'mat-calendar-body',
|
|
234
234
|
'role': 'grid',
|
|
@@ -260,7 +260,7 @@ var MatCalendarBody = /** @class */ (function () {
|
|
|
260
260
|
|
|
261
261
|
/**
|
|
262
262
|
* @fileoverview added by tsickle
|
|
263
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
263
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
264
264
|
*/
|
|
265
265
|
/** @type {?} */
|
|
266
266
|
var DAYS_PER_WEEK = 7;
|
|
@@ -299,6 +299,7 @@ var MatMonthView = /** @class */ (function () {
|
|
|
299
299
|
var narrowWeekdays = this._dateAdapter.getDayOfWeekNames('narrow');
|
|
300
300
|
/** @type {?} */
|
|
301
301
|
var longWeekdays = this._dateAdapter.getDayOfWeekNames('long');
|
|
302
|
+
// Rotate the labels for days of the week based on the configured first day of the week.
|
|
302
303
|
/** @type {?} */
|
|
303
304
|
var weekdays = longWeekdays.map(function (long, i) {
|
|
304
305
|
return { long: long, narrow: narrowWeekdays[i] };
|
|
@@ -428,6 +429,12 @@ var MatMonthView = /** @class */ (function () {
|
|
|
428
429
|
* @return {?}
|
|
429
430
|
*/
|
|
430
431
|
function (event) {
|
|
432
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
433
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
434
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
435
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
436
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
437
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
431
438
|
/** @type {?} */
|
|
432
439
|
var oldActiveDate = this._activeDate;
|
|
433
440
|
/** @type {?} */
|
|
@@ -517,12 +524,15 @@ var MatMonthView = /** @class */ (function () {
|
|
|
517
524
|
function () {
|
|
518
525
|
this._matCalendarBody._focusActiveCell();
|
|
519
526
|
};
|
|
527
|
+
/** Creates MatCalendarCells for the dates in this month. */
|
|
520
528
|
/**
|
|
521
529
|
* Creates MatCalendarCells for the dates in this month.
|
|
530
|
+
* @private
|
|
522
531
|
* @return {?}
|
|
523
532
|
*/
|
|
524
533
|
MatMonthView.prototype._createWeekCells = /**
|
|
525
534
|
* Creates MatCalendarCells for the dates in this month.
|
|
535
|
+
* @private
|
|
526
536
|
* @return {?}
|
|
527
537
|
*/
|
|
528
538
|
function () {
|
|
@@ -548,13 +558,16 @@ var MatMonthView = /** @class */ (function () {
|
|
|
548
558
|
.push(new MatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled, cellClasses));
|
|
549
559
|
}
|
|
550
560
|
};
|
|
561
|
+
/** Date filter for the month */
|
|
551
562
|
/**
|
|
552
563
|
* Date filter for the month
|
|
564
|
+
* @private
|
|
553
565
|
* @param {?} date
|
|
554
566
|
* @return {?}
|
|
555
567
|
*/
|
|
556
568
|
MatMonthView.prototype._shouldEnableDate = /**
|
|
557
569
|
* Date filter for the month
|
|
570
|
+
* @private
|
|
558
571
|
* @param {?} date
|
|
559
572
|
* @return {?}
|
|
560
573
|
*/
|
|
@@ -567,12 +580,18 @@ var MatMonthView = /** @class */ (function () {
|
|
|
567
580
|
/**
|
|
568
581
|
* Gets the date in this month that the given Date falls on.
|
|
569
582
|
* Returns null if the given Date is in another month.
|
|
583
|
+
*/
|
|
584
|
+
/**
|
|
585
|
+
* Gets the date in this month that the given Date falls on.
|
|
586
|
+
* Returns null if the given Date is in another month.
|
|
587
|
+
* @private
|
|
570
588
|
* @param {?} date
|
|
571
589
|
* @return {?}
|
|
572
590
|
*/
|
|
573
591
|
MatMonthView.prototype._getDateInCurrentMonth = /**
|
|
574
592
|
* Gets the date in this month that the given Date falls on.
|
|
575
593
|
* Returns null if the given Date is in another month.
|
|
594
|
+
* @private
|
|
576
595
|
* @param {?} date
|
|
577
596
|
* @return {?}
|
|
578
597
|
*/
|
|
@@ -580,14 +599,17 @@ var MatMonthView = /** @class */ (function () {
|
|
|
580
599
|
return date && this._hasSameMonthAndYear(date, this.activeDate) ?
|
|
581
600
|
this._dateAdapter.getDate(date) : null;
|
|
582
601
|
};
|
|
602
|
+
/** Checks whether the 2 dates are non-null and fall within the same month of the same year. */
|
|
583
603
|
/**
|
|
584
604
|
* Checks whether the 2 dates are non-null and fall within the same month of the same year.
|
|
605
|
+
* @private
|
|
585
606
|
* @param {?} d1
|
|
586
607
|
* @param {?} d2
|
|
587
608
|
* @return {?}
|
|
588
609
|
*/
|
|
589
610
|
MatMonthView.prototype._hasSameMonthAndYear = /**
|
|
590
611
|
* Checks whether the 2 dates are non-null and fall within the same month of the same year.
|
|
612
|
+
* @private
|
|
591
613
|
* @param {?} d1
|
|
592
614
|
* @param {?} d2
|
|
593
615
|
* @return {?}
|
|
@@ -597,22 +619,31 @@ var MatMonthView = /** @class */ (function () {
|
|
|
597
619
|
this._dateAdapter.getYear(d1) == this._dateAdapter.getYear(d2));
|
|
598
620
|
};
|
|
599
621
|
/**
|
|
622
|
+
* @param obj The object to check.
|
|
623
|
+
* @returns The given object if it is both a date instance and valid, otherwise null.
|
|
624
|
+
*/
|
|
625
|
+
/**
|
|
626
|
+
* @private
|
|
600
627
|
* @param {?} obj The object to check.
|
|
601
628
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
602
629
|
*/
|
|
603
630
|
MatMonthView.prototype._getValidDateOrNull = /**
|
|
631
|
+
* @private
|
|
604
632
|
* @param {?} obj The object to check.
|
|
605
633
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
606
634
|
*/
|
|
607
635
|
function (obj) {
|
|
608
636
|
return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;
|
|
609
637
|
};
|
|
638
|
+
/** Determines whether the user has the RTL layout direction. */
|
|
610
639
|
/**
|
|
611
640
|
* Determines whether the user has the RTL layout direction.
|
|
641
|
+
* @private
|
|
612
642
|
* @return {?}
|
|
613
643
|
*/
|
|
614
644
|
MatMonthView.prototype._isRtl = /**
|
|
615
645
|
* Determines whether the user has the RTL layout direction.
|
|
646
|
+
* @private
|
|
616
647
|
* @return {?}
|
|
617
648
|
*/
|
|
618
649
|
function () {
|
|
@@ -650,7 +681,7 @@ var MatMonthView = /** @class */ (function () {
|
|
|
650
681
|
|
|
651
682
|
/**
|
|
652
683
|
* @fileoverview added by tsickle
|
|
653
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
684
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
654
685
|
*/
|
|
655
686
|
/** @type {?} */
|
|
656
687
|
var yearsPerPage = 24;
|
|
@@ -826,6 +857,12 @@ var MatMultiYearView = /** @class */ (function () {
|
|
|
826
857
|
* @return {?}
|
|
827
858
|
*/
|
|
828
859
|
function (event) {
|
|
860
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
861
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
862
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
863
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
864
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
865
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
829
866
|
/** @type {?} */
|
|
830
867
|
var oldActiveDate = this._activeDate;
|
|
831
868
|
/** @type {?} */
|
|
@@ -893,13 +930,16 @@ var MatMultiYearView = /** @class */ (function () {
|
|
|
893
930
|
function () {
|
|
894
931
|
this._matCalendarBody._focusActiveCell();
|
|
895
932
|
};
|
|
933
|
+
/** Creates an MatCalendarCell for the given year. */
|
|
896
934
|
/**
|
|
897
935
|
* Creates an MatCalendarCell for the given year.
|
|
936
|
+
* @private
|
|
898
937
|
* @param {?} year
|
|
899
938
|
* @return {?}
|
|
900
939
|
*/
|
|
901
940
|
MatMultiYearView.prototype._createCellForYear = /**
|
|
902
941
|
* Creates an MatCalendarCell for the given year.
|
|
942
|
+
* @private
|
|
903
943
|
* @param {?} year
|
|
904
944
|
* @return {?}
|
|
905
945
|
*/
|
|
@@ -908,13 +948,16 @@ var MatMultiYearView = /** @class */ (function () {
|
|
|
908
948
|
var yearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(year, 0, 1));
|
|
909
949
|
return new MatCalendarCell(year, yearName, yearName, this._shouldEnableYear(year));
|
|
910
950
|
};
|
|
951
|
+
/** Whether the given year is enabled. */
|
|
911
952
|
/**
|
|
912
953
|
* Whether the given year is enabled.
|
|
954
|
+
* @private
|
|
913
955
|
* @param {?} year
|
|
914
956
|
* @return {?}
|
|
915
957
|
*/
|
|
916
958
|
MatMultiYearView.prototype._shouldEnableYear = /**
|
|
917
959
|
* Whether the given year is enabled.
|
|
960
|
+
* @private
|
|
918
961
|
* @param {?} year
|
|
919
962
|
* @return {?}
|
|
920
963
|
*/
|
|
@@ -940,22 +983,31 @@ var MatMultiYearView = /** @class */ (function () {
|
|
|
940
983
|
return false;
|
|
941
984
|
};
|
|
942
985
|
/**
|
|
986
|
+
* @param obj The object to check.
|
|
987
|
+
* @returns The given object if it is both a date instance and valid, otherwise null.
|
|
988
|
+
*/
|
|
989
|
+
/**
|
|
990
|
+
* @private
|
|
943
991
|
* @param {?} obj The object to check.
|
|
944
992
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
945
993
|
*/
|
|
946
994
|
MatMultiYearView.prototype._getValidDateOrNull = /**
|
|
995
|
+
* @private
|
|
947
996
|
* @param {?} obj The object to check.
|
|
948
997
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
949
998
|
*/
|
|
950
999
|
function (obj) {
|
|
951
1000
|
return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;
|
|
952
1001
|
};
|
|
1002
|
+
/** Determines whether the user has the RTL layout direction. */
|
|
953
1003
|
/**
|
|
954
1004
|
* Determines whether the user has the RTL layout direction.
|
|
1005
|
+
* @private
|
|
955
1006
|
* @return {?}
|
|
956
1007
|
*/
|
|
957
1008
|
MatMultiYearView.prototype._isRtl = /**
|
|
958
1009
|
* Determines whether the user has the RTL layout direction.
|
|
1010
|
+
* @private
|
|
959
1011
|
* @return {?}
|
|
960
1012
|
*/
|
|
961
1013
|
function () {
|
|
@@ -991,7 +1043,7 @@ var MatMultiYearView = /** @class */ (function () {
|
|
|
991
1043
|
|
|
992
1044
|
/**
|
|
993
1045
|
* @fileoverview added by tsickle
|
|
994
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1046
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
995
1047
|
*/
|
|
996
1048
|
/**
|
|
997
1049
|
* An internal component used to display a single year in the datepicker.
|
|
@@ -1140,6 +1192,12 @@ var MatYearView = /** @class */ (function () {
|
|
|
1140
1192
|
* @return {?}
|
|
1141
1193
|
*/
|
|
1142
1194
|
function (event) {
|
|
1195
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
1196
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
1197
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
1198
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
1199
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
1200
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
1143
1201
|
/** @type {?} */
|
|
1144
1202
|
var oldActiveDate = this._activeDate;
|
|
1145
1203
|
/** @type {?} */
|
|
@@ -1221,12 +1279,18 @@ var MatYearView = /** @class */ (function () {
|
|
|
1221
1279
|
/**
|
|
1222
1280
|
* Gets the month in this year that the given Date falls on.
|
|
1223
1281
|
* Returns null if the given Date is in another year.
|
|
1282
|
+
*/
|
|
1283
|
+
/**
|
|
1284
|
+
* Gets the month in this year that the given Date falls on.
|
|
1285
|
+
* Returns null if the given Date is in another year.
|
|
1286
|
+
* @private
|
|
1224
1287
|
* @param {?} date
|
|
1225
1288
|
* @return {?}
|
|
1226
1289
|
*/
|
|
1227
1290
|
MatYearView.prototype._getMonthInCurrentYear = /**
|
|
1228
1291
|
* Gets the month in this year that the given Date falls on.
|
|
1229
1292
|
* Returns null if the given Date is in another year.
|
|
1293
|
+
* @private
|
|
1230
1294
|
* @param {?} date
|
|
1231
1295
|
* @return {?}
|
|
1232
1296
|
*/
|
|
@@ -1234,14 +1298,17 @@ var MatYearView = /** @class */ (function () {
|
|
|
1234
1298
|
return date && this._dateAdapter.getYear(date) == this._dateAdapter.getYear(this.activeDate) ?
|
|
1235
1299
|
this._dateAdapter.getMonth(date) : null;
|
|
1236
1300
|
};
|
|
1301
|
+
/** Creates an MatCalendarCell for the given month. */
|
|
1237
1302
|
/**
|
|
1238
1303
|
* Creates an MatCalendarCell for the given month.
|
|
1304
|
+
* @private
|
|
1239
1305
|
* @param {?} month
|
|
1240
1306
|
* @param {?} monthName
|
|
1241
1307
|
* @return {?}
|
|
1242
1308
|
*/
|
|
1243
1309
|
MatYearView.prototype._createCellForMonth = /**
|
|
1244
1310
|
* Creates an MatCalendarCell for the given month.
|
|
1311
|
+
* @private
|
|
1245
1312
|
* @param {?} month
|
|
1246
1313
|
* @param {?} monthName
|
|
1247
1314
|
* @return {?}
|
|
@@ -1251,13 +1318,16 @@ var MatYearView = /** @class */ (function () {
|
|
|
1251
1318
|
var ariaLabel = this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1), this._dateFormats.display.monthYearA11yLabel);
|
|
1252
1319
|
return new MatCalendarCell(month, monthName.toLocaleUpperCase(), ariaLabel, this._shouldEnableMonth(month));
|
|
1253
1320
|
};
|
|
1321
|
+
/** Whether the given month is enabled. */
|
|
1254
1322
|
/**
|
|
1255
1323
|
* Whether the given month is enabled.
|
|
1324
|
+
* @private
|
|
1256
1325
|
* @param {?} month
|
|
1257
1326
|
* @return {?}
|
|
1258
1327
|
*/
|
|
1259
1328
|
MatYearView.prototype._shouldEnableMonth = /**
|
|
1260
1329
|
* Whether the given month is enabled.
|
|
1330
|
+
* @private
|
|
1261
1331
|
* @param {?} month
|
|
1262
1332
|
* @return {?}
|
|
1263
1333
|
*/
|
|
@@ -1285,6 +1355,11 @@ var MatYearView = /** @class */ (function () {
|
|
|
1285
1355
|
/**
|
|
1286
1356
|
* Tests whether the combination month/year is after this.maxDate, considering
|
|
1287
1357
|
* just the month and year of this.maxDate
|
|
1358
|
+
*/
|
|
1359
|
+
/**
|
|
1360
|
+
* Tests whether the combination month/year is after this.maxDate, considering
|
|
1361
|
+
* just the month and year of this.maxDate
|
|
1362
|
+
* @private
|
|
1288
1363
|
* @param {?} year
|
|
1289
1364
|
* @param {?} month
|
|
1290
1365
|
* @return {?}
|
|
@@ -1292,6 +1367,7 @@ var MatYearView = /** @class */ (function () {
|
|
|
1292
1367
|
MatYearView.prototype._isYearAndMonthAfterMaxDate = /**
|
|
1293
1368
|
* Tests whether the combination month/year is after this.maxDate, considering
|
|
1294
1369
|
* just the month and year of this.maxDate
|
|
1370
|
+
* @private
|
|
1295
1371
|
* @param {?} year
|
|
1296
1372
|
* @param {?} month
|
|
1297
1373
|
* @return {?}
|
|
@@ -1309,6 +1385,11 @@ var MatYearView = /** @class */ (function () {
|
|
|
1309
1385
|
/**
|
|
1310
1386
|
* Tests whether the combination month/year is before this.minDate, considering
|
|
1311
1387
|
* just the month and year of this.minDate
|
|
1388
|
+
*/
|
|
1389
|
+
/**
|
|
1390
|
+
* Tests whether the combination month/year is before this.minDate, considering
|
|
1391
|
+
* just the month and year of this.minDate
|
|
1392
|
+
* @private
|
|
1312
1393
|
* @param {?} year
|
|
1313
1394
|
* @param {?} month
|
|
1314
1395
|
* @return {?}
|
|
@@ -1316,6 +1397,7 @@ var MatYearView = /** @class */ (function () {
|
|
|
1316
1397
|
MatYearView.prototype._isYearAndMonthBeforeMinDate = /**
|
|
1317
1398
|
* Tests whether the combination month/year is before this.minDate, considering
|
|
1318
1399
|
* just the month and year of this.minDate
|
|
1400
|
+
* @private
|
|
1319
1401
|
* @param {?} year
|
|
1320
1402
|
* @param {?} month
|
|
1321
1403
|
* @return {?}
|
|
@@ -1331,22 +1413,31 @@ var MatYearView = /** @class */ (function () {
|
|
|
1331
1413
|
return false;
|
|
1332
1414
|
};
|
|
1333
1415
|
/**
|
|
1416
|
+
* @param obj The object to check.
|
|
1417
|
+
* @returns The given object if it is both a date instance and valid, otherwise null.
|
|
1418
|
+
*/
|
|
1419
|
+
/**
|
|
1420
|
+
* @private
|
|
1334
1421
|
* @param {?} obj The object to check.
|
|
1335
1422
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
1336
1423
|
*/
|
|
1337
1424
|
MatYearView.prototype._getValidDateOrNull = /**
|
|
1425
|
+
* @private
|
|
1338
1426
|
* @param {?} obj The object to check.
|
|
1339
1427
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
1340
1428
|
*/
|
|
1341
1429
|
function (obj) {
|
|
1342
1430
|
return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;
|
|
1343
1431
|
};
|
|
1432
|
+
/** Determines whether the user has the RTL layout direction. */
|
|
1344
1433
|
/**
|
|
1345
1434
|
* Determines whether the user has the RTL layout direction.
|
|
1435
|
+
* @private
|
|
1346
1436
|
* @return {?}
|
|
1347
1437
|
*/
|
|
1348
1438
|
MatYearView.prototype._isRtl = /**
|
|
1349
1439
|
* Determines whether the user has the RTL layout direction.
|
|
1440
|
+
* @private
|
|
1350
1441
|
* @return {?}
|
|
1351
1442
|
*/
|
|
1352
1443
|
function () {
|
|
@@ -1383,7 +1474,7 @@ var MatYearView = /** @class */ (function () {
|
|
|
1383
1474
|
|
|
1384
1475
|
/**
|
|
1385
1476
|
* @fileoverview added by tsickle
|
|
1386
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1477
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1387
1478
|
*/
|
|
1388
1479
|
/**
|
|
1389
1480
|
* Default header for MatCalendar
|
|
@@ -1435,9 +1526,9 @@ var MatCalendarHeader = /** @class */ (function () {
|
|
|
1435
1526
|
configurable: true
|
|
1436
1527
|
});
|
|
1437
1528
|
Object.defineProperty(MatCalendarHeader.prototype, "prevButtonLabel", {
|
|
1438
|
-
/** The label for the
|
|
1529
|
+
/** The label for the previous button. */
|
|
1439
1530
|
get: /**
|
|
1440
|
-
* The label for the
|
|
1531
|
+
* The label for the previous button.
|
|
1441
1532
|
* @return {?}
|
|
1442
1533
|
*/
|
|
1443
1534
|
function () {
|
|
@@ -1451,9 +1542,9 @@ var MatCalendarHeader = /** @class */ (function () {
|
|
|
1451
1542
|
configurable: true
|
|
1452
1543
|
});
|
|
1453
1544
|
Object.defineProperty(MatCalendarHeader.prototype, "nextButtonLabel", {
|
|
1454
|
-
/** The label for the
|
|
1545
|
+
/** The label for the next button. */
|
|
1455
1546
|
get: /**
|
|
1456
|
-
* The label for the
|
|
1547
|
+
* The label for the next button.
|
|
1457
1548
|
* @return {?}
|
|
1458
1549
|
*/
|
|
1459
1550
|
function () {
|
|
@@ -1535,14 +1626,17 @@ var MatCalendarHeader = /** @class */ (function () {
|
|
|
1535
1626
|
return !this.calendar.maxDate ||
|
|
1536
1627
|
!this._isSameView(this.calendar.activeDate, this.calendar.maxDate);
|
|
1537
1628
|
};
|
|
1629
|
+
/** Whether the two dates represent the same view in the current view mode (month or year). */
|
|
1538
1630
|
/**
|
|
1539
1631
|
* Whether the two dates represent the same view in the current view mode (month or year).
|
|
1632
|
+
* @private
|
|
1540
1633
|
* @param {?} date1
|
|
1541
1634
|
* @param {?} date2
|
|
1542
1635
|
* @return {?}
|
|
1543
1636
|
*/
|
|
1544
1637
|
MatCalendarHeader.prototype._isSameView = /**
|
|
1545
1638
|
* Whether the two dates represent the same view in the current view mode (month or year).
|
|
1639
|
+
* @private
|
|
1546
1640
|
* @param {?} date1
|
|
1547
1641
|
* @param {?} date2
|
|
1548
1642
|
* @return {?}
|
|
@@ -1783,7 +1877,7 @@ var MatCalendar = /** @class */ (function () {
|
|
|
1783
1877
|
*/
|
|
1784
1878
|
function (changes) {
|
|
1785
1879
|
/** @type {?} */
|
|
1786
|
-
var change = changes
|
|
1880
|
+
var change = changes.minDate || changes.maxDate || changes.dateFilter;
|
|
1787
1881
|
if (change && !change.firstChange) {
|
|
1788
1882
|
/** @type {?} */
|
|
1789
1883
|
var view = this._getCurrentViewComponent();
|
|
@@ -1891,22 +1985,31 @@ var MatCalendar = /** @class */ (function () {
|
|
|
1891
1985
|
this.currentView = view;
|
|
1892
1986
|
};
|
|
1893
1987
|
/**
|
|
1988
|
+
* @param obj The object to check.
|
|
1989
|
+
* @returns The given object if it is both a date instance and valid, otherwise null.
|
|
1990
|
+
*/
|
|
1991
|
+
/**
|
|
1992
|
+
* @private
|
|
1894
1993
|
* @param {?} obj The object to check.
|
|
1895
1994
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
1896
1995
|
*/
|
|
1897
1996
|
MatCalendar.prototype._getValidDateOrNull = /**
|
|
1997
|
+
* @private
|
|
1898
1998
|
* @param {?} obj The object to check.
|
|
1899
1999
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
1900
2000
|
*/
|
|
1901
2001
|
function (obj) {
|
|
1902
2002
|
return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;
|
|
1903
2003
|
};
|
|
2004
|
+
/** Returns the component instance that corresponds to the current calendar view. */
|
|
1904
2005
|
/**
|
|
1905
2006
|
* Returns the component instance that corresponds to the current calendar view.
|
|
2007
|
+
* @private
|
|
1906
2008
|
* @return {?}
|
|
1907
2009
|
*/
|
|
1908
2010
|
MatCalendar.prototype._getCurrentViewComponent = /**
|
|
1909
2011
|
* Returns the component instance that corresponds to the current calendar view.
|
|
2012
|
+
* @private
|
|
1910
2013
|
* @return {?}
|
|
1911
2014
|
*/
|
|
1912
2015
|
function () {
|
|
@@ -1953,14 +2056,17 @@ var MatCalendar = /** @class */ (function () {
|
|
|
1953
2056
|
|
|
1954
2057
|
/**
|
|
1955
2058
|
* @fileoverview added by tsickle
|
|
1956
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2059
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1957
2060
|
*/
|
|
1958
|
-
/**
|
|
2061
|
+
/**
|
|
1959
2062
|
* Animations used by the Material datepicker.
|
|
1960
2063
|
* \@docs-private
|
|
1961
|
-
|
|
2064
|
+
* @type {?}
|
|
2065
|
+
*/
|
|
1962
2066
|
var matDatepickerAnimations = {
|
|
1963
|
-
/**
|
|
2067
|
+
/**
|
|
2068
|
+
* Transforms the height of the datepicker's calendar.
|
|
2069
|
+
*/
|
|
1964
2070
|
transformPanel: trigger('transformPanel', [
|
|
1965
2071
|
state('void', style({
|
|
1966
2072
|
opacity: 0,
|
|
@@ -1972,7 +2078,9 @@ var matDatepickerAnimations = {
|
|
|
1972
2078
|
}))),
|
|
1973
2079
|
transition('* => void', animate('100ms linear', style({ opacity: 0 })))
|
|
1974
2080
|
]),
|
|
1975
|
-
/**
|
|
2081
|
+
/**
|
|
2082
|
+
* Fades in the content of the calendar.
|
|
2083
|
+
*/
|
|
1976
2084
|
fadeInCalendar: trigger('fadeInCalendar', [
|
|
1977
2085
|
state('void', style({ opacity: 0 })),
|
|
1978
2086
|
state('enter', style({ opacity: 1 })),
|
|
@@ -1984,15 +2092,17 @@ var matDatepickerAnimations = {
|
|
|
1984
2092
|
|
|
1985
2093
|
/**
|
|
1986
2094
|
* @fileoverview added by tsickle
|
|
1987
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2095
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1988
2096
|
*/
|
|
1989
|
-
/**
|
|
2097
|
+
/**
|
|
1990
2098
|
* Used to generate a unique ID for each datepicker instance.
|
|
1991
|
-
|
|
2099
|
+
* @type {?}
|
|
2100
|
+
*/
|
|
1992
2101
|
var datepickerUid = 0;
|
|
1993
|
-
/**
|
|
2102
|
+
/**
|
|
1994
2103
|
* Injection token that determines the scroll handling while the calendar is open.
|
|
1995
|
-
|
|
2104
|
+
* @type {?}
|
|
2105
|
+
*/
|
|
1996
2106
|
var MAT_DATEPICKER_SCROLL_STRATEGY = new InjectionToken('mat-datepicker-scroll-strategy');
|
|
1997
2107
|
/**
|
|
1998
2108
|
* \@docs-private
|
|
@@ -2002,18 +2112,22 @@ var MAT_DATEPICKER_SCROLL_STRATEGY = new InjectionToken('mat-datepicker-scroll-s
|
|
|
2002
2112
|
function MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
2003
2113
|
return function () { return overlay.scrollStrategies.reposition(); };
|
|
2004
2114
|
}
|
|
2005
|
-
/**
|
|
2115
|
+
/**
|
|
2006
2116
|
* \@docs-private
|
|
2007
|
-
|
|
2117
|
+
* @type {?}
|
|
2118
|
+
*/
|
|
2008
2119
|
var MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
2009
2120
|
provide: MAT_DATEPICKER_SCROLL_STRATEGY,
|
|
2010
2121
|
deps: [Overlay],
|
|
2011
2122
|
useFactory: MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
|
|
2012
2123
|
};
|
|
2124
|
+
// Boilerplate for applying mixins to MatDatepickerContent.
|
|
2013
2125
|
/**
|
|
2014
2126
|
* \@docs-private
|
|
2015
2127
|
*/
|
|
2016
|
-
var
|
|
2128
|
+
var
|
|
2129
|
+
// Boilerplate for applying mixins to MatDatepickerContent.
|
|
2130
|
+
/**
|
|
2017
2131
|
* \@docs-private
|
|
2018
2132
|
*/
|
|
2019
2133
|
MatDatepickerContentBase = /** @class */ (function () {
|
|
@@ -2074,6 +2188,9 @@ var MatDatepickerContent = /** @class */ (function (_super) {
|
|
|
2074
2188
|
};
|
|
2075
2189
|
return MatDatepickerContent;
|
|
2076
2190
|
}(_MatDatepickerContentMixinBase));
|
|
2191
|
+
// TODO(mmalerba): We use a component instead of a directive here so the user can use implicit
|
|
2192
|
+
// template reference variables (e.g. #d vs #d="matDatepicker"). We can change this to a directive
|
|
2193
|
+
// if angular adds support for `exportAs: '$implicit'` on directives.
|
|
2077
2194
|
/**
|
|
2078
2195
|
* Component responsible for managing the datepicker popup/dialog.
|
|
2079
2196
|
* @template D
|
|
@@ -2444,12 +2561,15 @@ var MatDatepicker = /** @class */ (function () {
|
|
|
2444
2561
|
completeClose();
|
|
2445
2562
|
}
|
|
2446
2563
|
};
|
|
2564
|
+
/** Open the calendar as a dialog. */
|
|
2447
2565
|
/**
|
|
2448
2566
|
* Open the calendar as a dialog.
|
|
2567
|
+
* @private
|
|
2449
2568
|
* @return {?}
|
|
2450
2569
|
*/
|
|
2451
2570
|
MatDatepicker.prototype._openAsDialog = /**
|
|
2452
2571
|
* Open the calendar as a dialog.
|
|
2572
|
+
* @private
|
|
2453
2573
|
* @return {?}
|
|
2454
2574
|
*/
|
|
2455
2575
|
function () {
|
|
@@ -2470,12 +2590,15 @@ var MatDatepicker = /** @class */ (function () {
|
|
|
2470
2590
|
this._dialogRef.componentInstance.datepicker = this;
|
|
2471
2591
|
this._setColor();
|
|
2472
2592
|
};
|
|
2593
|
+
/** Open the calendar as a popup. */
|
|
2473
2594
|
/**
|
|
2474
2595
|
* Open the calendar as a popup.
|
|
2596
|
+
* @private
|
|
2475
2597
|
* @return {?}
|
|
2476
2598
|
*/
|
|
2477
2599
|
MatDatepicker.prototype._openAsPopup = /**
|
|
2478
2600
|
* Open the calendar as a popup.
|
|
2601
|
+
* @private
|
|
2479
2602
|
* @return {?}
|
|
2480
2603
|
*/
|
|
2481
2604
|
function () {
|
|
@@ -2496,12 +2619,15 @@ var MatDatepicker = /** @class */ (function () {
|
|
|
2496
2619
|
});
|
|
2497
2620
|
}
|
|
2498
2621
|
};
|
|
2622
|
+
/** Create the popup. */
|
|
2499
2623
|
/**
|
|
2500
2624
|
* Create the popup.
|
|
2625
|
+
* @private
|
|
2501
2626
|
* @return {?}
|
|
2502
2627
|
*/
|
|
2503
2628
|
MatDatepicker.prototype._createPopup = /**
|
|
2504
2629
|
* Create the popup.
|
|
2630
|
+
* @private
|
|
2505
2631
|
* @return {?}
|
|
2506
2632
|
*/
|
|
2507
2633
|
function () {
|
|
@@ -2523,12 +2649,15 @@ var MatDatepicker = /** @class */ (function () {
|
|
|
2523
2649
|
(_this._datepickerInput && event.altKey && event.keyCode === UP_ARROW);
|
|
2524
2650
|
}))).subscribe(function () { return _this.close(); });
|
|
2525
2651
|
};
|
|
2652
|
+
/** Create the popup PositionStrategy. */
|
|
2526
2653
|
/**
|
|
2527
2654
|
* Create the popup PositionStrategy.
|
|
2655
|
+
* @private
|
|
2528
2656
|
* @return {?}
|
|
2529
2657
|
*/
|
|
2530
2658
|
MatDatepicker.prototype._createPopupPositionStrategy = /**
|
|
2531
2659
|
* Create the popup PositionStrategy.
|
|
2660
|
+
* @private
|
|
2532
2661
|
* @return {?}
|
|
2533
2662
|
*/
|
|
2534
2663
|
function () {
|
|
@@ -2566,22 +2695,31 @@ var MatDatepicker = /** @class */ (function () {
|
|
|
2566
2695
|
]);
|
|
2567
2696
|
};
|
|
2568
2697
|
/**
|
|
2698
|
+
* @param obj The object to check.
|
|
2699
|
+
* @returns The given object if it is both a date instance and valid, otherwise null.
|
|
2700
|
+
*/
|
|
2701
|
+
/**
|
|
2702
|
+
* @private
|
|
2569
2703
|
* @param {?} obj The object to check.
|
|
2570
2704
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
2571
2705
|
*/
|
|
2572
2706
|
MatDatepicker.prototype._getValidDateOrNull = /**
|
|
2707
|
+
* @private
|
|
2573
2708
|
* @param {?} obj The object to check.
|
|
2574
2709
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
2575
2710
|
*/
|
|
2576
2711
|
function (obj) {
|
|
2577
2712
|
return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;
|
|
2578
2713
|
};
|
|
2714
|
+
/** Passes the current theme color along to the calendar overlay. */
|
|
2579
2715
|
/**
|
|
2580
2716
|
* Passes the current theme color along to the calendar overlay.
|
|
2717
|
+
* @private
|
|
2581
2718
|
* @return {?}
|
|
2582
2719
|
*/
|
|
2583
2720
|
MatDatepicker.prototype._setColor = /**
|
|
2584
2721
|
* Passes the current theme color along to the calendar overlay.
|
|
2722
|
+
* @private
|
|
2585
2723
|
* @return {?}
|
|
2586
2724
|
*/
|
|
2587
2725
|
function () {
|
|
@@ -2633,19 +2771,21 @@ var MatDatepicker = /** @class */ (function () {
|
|
|
2633
2771
|
|
|
2634
2772
|
/**
|
|
2635
2773
|
* @fileoverview added by tsickle
|
|
2636
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2774
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2637
2775
|
*/
|
|
2638
|
-
/**
|
|
2776
|
+
/**
|
|
2639
2777
|
* \@docs-private
|
|
2640
|
-
|
|
2778
|
+
* @type {?}
|
|
2779
|
+
*/
|
|
2641
2780
|
var MAT_DATEPICKER_VALUE_ACCESSOR = {
|
|
2642
2781
|
provide: NG_VALUE_ACCESSOR,
|
|
2643
2782
|
useExisting: forwardRef(function () { return MatDatepickerInput; }),
|
|
2644
2783
|
multi: true
|
|
2645
2784
|
};
|
|
2646
|
-
/**
|
|
2785
|
+
/**
|
|
2647
2786
|
* \@docs-private
|
|
2648
|
-
|
|
2787
|
+
* @type {?}
|
|
2788
|
+
*/
|
|
2649
2789
|
var MAT_DATEPICKER_VALIDATORS = {
|
|
2650
2790
|
provide: NG_VALIDATORS,
|
|
2651
2791
|
useExisting: forwardRef(function () { return MatDatepickerInput; }),
|
|
@@ -2964,11 +3104,14 @@ var MatDatepickerInput = /** @class */ (function () {
|
|
|
2964
3104
|
return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;
|
|
2965
3105
|
};
|
|
2966
3106
|
// Implemented as part of ControlValueAccessor.
|
|
3107
|
+
// Implemented as part of ControlValueAccessor.
|
|
2967
3108
|
/**
|
|
2968
3109
|
* @param {?} value
|
|
2969
3110
|
* @return {?}
|
|
2970
3111
|
*/
|
|
2971
|
-
MatDatepickerInput.prototype.writeValue =
|
|
3112
|
+
MatDatepickerInput.prototype.writeValue =
|
|
3113
|
+
// Implemented as part of ControlValueAccessor.
|
|
3114
|
+
/**
|
|
2972
3115
|
* @param {?} value
|
|
2973
3116
|
* @return {?}
|
|
2974
3117
|
*/
|
|
@@ -2976,11 +3119,14 @@ var MatDatepickerInput = /** @class */ (function () {
|
|
|
2976
3119
|
this.value = value;
|
|
2977
3120
|
};
|
|
2978
3121
|
// Implemented as part of ControlValueAccessor.
|
|
3122
|
+
// Implemented as part of ControlValueAccessor.
|
|
2979
3123
|
/**
|
|
2980
3124
|
* @param {?} fn
|
|
2981
3125
|
* @return {?}
|
|
2982
3126
|
*/
|
|
2983
|
-
MatDatepickerInput.prototype.registerOnChange =
|
|
3127
|
+
MatDatepickerInput.prototype.registerOnChange =
|
|
3128
|
+
// Implemented as part of ControlValueAccessor.
|
|
3129
|
+
/**
|
|
2984
3130
|
* @param {?} fn
|
|
2985
3131
|
* @return {?}
|
|
2986
3132
|
*/
|
|
@@ -2988,11 +3134,14 @@ var MatDatepickerInput = /** @class */ (function () {
|
|
|
2988
3134
|
this._cvaOnChange = fn;
|
|
2989
3135
|
};
|
|
2990
3136
|
// Implemented as part of ControlValueAccessor.
|
|
3137
|
+
// Implemented as part of ControlValueAccessor.
|
|
2991
3138
|
/**
|
|
2992
3139
|
* @param {?} fn
|
|
2993
3140
|
* @return {?}
|
|
2994
3141
|
*/
|
|
2995
|
-
MatDatepickerInput.prototype.registerOnTouched =
|
|
3142
|
+
MatDatepickerInput.prototype.registerOnTouched =
|
|
3143
|
+
// Implemented as part of ControlValueAccessor.
|
|
3144
|
+
/**
|
|
2996
3145
|
* @param {?} fn
|
|
2997
3146
|
* @return {?}
|
|
2998
3147
|
*/
|
|
@@ -3000,11 +3149,14 @@ var MatDatepickerInput = /** @class */ (function () {
|
|
|
3000
3149
|
this._onTouched = fn;
|
|
3001
3150
|
};
|
|
3002
3151
|
// Implemented as part of ControlValueAccessor.
|
|
3152
|
+
// Implemented as part of ControlValueAccessor.
|
|
3003
3153
|
/**
|
|
3004
3154
|
* @param {?} isDisabled
|
|
3005
3155
|
* @return {?}
|
|
3006
3156
|
*/
|
|
3007
|
-
MatDatepickerInput.prototype.setDisabledState =
|
|
3157
|
+
MatDatepickerInput.prototype.setDisabledState =
|
|
3158
|
+
// Implemented as part of ControlValueAccessor.
|
|
3159
|
+
/**
|
|
3008
3160
|
* @param {?} isDisabled
|
|
3009
3161
|
* @return {?}
|
|
3010
3162
|
*/
|
|
@@ -3084,13 +3236,16 @@ var MatDatepickerInput = /** @class */ (function () {
|
|
|
3084
3236
|
}
|
|
3085
3237
|
this._onTouched();
|
|
3086
3238
|
};
|
|
3239
|
+
/** Formats a value and sets it on the input element. */
|
|
3087
3240
|
/**
|
|
3088
3241
|
* Formats a value and sets it on the input element.
|
|
3242
|
+
* @private
|
|
3089
3243
|
* @param {?} value
|
|
3090
3244
|
* @return {?}
|
|
3091
3245
|
*/
|
|
3092
3246
|
MatDatepickerInput.prototype._formatValue = /**
|
|
3093
3247
|
* Formats a value and sets it on the input element.
|
|
3248
|
+
* @private
|
|
3094
3249
|
* @param {?} value
|
|
3095
3250
|
* @return {?}
|
|
3096
3251
|
*/
|
|
@@ -3099,10 +3254,16 @@ var MatDatepickerInput = /** @class */ (function () {
|
|
|
3099
3254
|
value ? this._dateAdapter.format(value, this._dateFormats.display.dateInput) : '';
|
|
3100
3255
|
};
|
|
3101
3256
|
/**
|
|
3257
|
+
* @param obj The object to check.
|
|
3258
|
+
* @returns The given object if it is both a date instance and valid, otherwise null.
|
|
3259
|
+
*/
|
|
3260
|
+
/**
|
|
3261
|
+
* @private
|
|
3102
3262
|
* @param {?} obj The object to check.
|
|
3103
3263
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
3104
3264
|
*/
|
|
3105
3265
|
MatDatepickerInput.prototype._getValidDateOrNull = /**
|
|
3266
|
+
* @private
|
|
3106
3267
|
* @param {?} obj The object to check.
|
|
3107
3268
|
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
3108
3269
|
*/
|
|
@@ -3153,7 +3314,7 @@ var MatDatepickerInput = /** @class */ (function () {
|
|
|
3153
3314
|
|
|
3154
3315
|
/**
|
|
3155
3316
|
* @fileoverview added by tsickle
|
|
3156
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
3317
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3157
3318
|
*/
|
|
3158
3319
|
/**
|
|
3159
3320
|
* Can be used to override the icon of a `matDatepickerToggle`.
|
|
@@ -3208,7 +3369,7 @@ var MatDatepickerToggle = /** @class */ (function () {
|
|
|
3208
3369
|
* @return {?}
|
|
3209
3370
|
*/
|
|
3210
3371
|
function (changes) {
|
|
3211
|
-
if (changes
|
|
3372
|
+
if (changes.datepicker) {
|
|
3212
3373
|
this._watchStateChanges();
|
|
3213
3374
|
}
|
|
3214
3375
|
};
|
|
@@ -3245,9 +3406,11 @@ var MatDatepickerToggle = /** @class */ (function () {
|
|
|
3245
3406
|
}
|
|
3246
3407
|
};
|
|
3247
3408
|
/**
|
|
3409
|
+
* @private
|
|
3248
3410
|
* @return {?}
|
|
3249
3411
|
*/
|
|
3250
3412
|
MatDatepickerToggle.prototype._watchStateChanges = /**
|
|
3413
|
+
* @private
|
|
3251
3414
|
* @return {?}
|
|
3252
3415
|
*/
|
|
3253
3416
|
function () {
|
|
@@ -3266,7 +3429,7 @@ var MatDatepickerToggle = /** @class */ (function () {
|
|
|
3266
3429
|
};
|
|
3267
3430
|
MatDatepickerToggle.decorators = [
|
|
3268
3431
|
{ type: Component, args: [{selector: 'mat-datepicker-toggle',
|
|
3269
|
-
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=\"
|
|
3432
|
+
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>",
|
|
3270
3433
|
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}"],
|
|
3271
3434
|
host: {
|
|
3272
3435
|
'class': 'mat-datepicker-toggle',
|
|
@@ -3302,7 +3465,7 @@ var MatDatepickerToggle = /** @class */ (function () {
|
|
|
3302
3465
|
|
|
3303
3466
|
/**
|
|
3304
3467
|
* @fileoverview added by tsickle
|
|
3305
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
3468
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3306
3469
|
*/
|
|
3307
3470
|
var MatDatepickerModule = /** @class */ (function () {
|
|
3308
3471
|
function MatDatepickerModule() {
|
|
@@ -3358,12 +3521,12 @@ var MatDatepickerModule = /** @class */ (function () {
|
|
|
3358
3521
|
|
|
3359
3522
|
/**
|
|
3360
3523
|
* @fileoverview added by tsickle
|
|
3361
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
3524
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3362
3525
|
*/
|
|
3363
3526
|
|
|
3364
3527
|
/**
|
|
3365
3528
|
* @fileoverview added by tsickle
|
|
3366
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
3529
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3367
3530
|
*/
|
|
3368
3531
|
|
|
3369
3532
|
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 };
|