@angular/material 2.0.0-beta.0 → 2.0.0-beta.12
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/README.md +4 -165
- package/_theming.scss +3878 -0
- package/autocomplete/index.d.ts +8 -5
- package/autocomplete/index.metadata.json +12 -1
- package/autocomplete/package.json +7 -0
- package/autocomplete/typings/autocomplete-module.d.ts +2 -0
- package/autocomplete/typings/autocomplete-trigger.d.ts +159 -0
- package/autocomplete/typings/autocomplete.d.ts +62 -0
- package/autocomplete/typings/index.d.ts +4 -0
- package/autocomplete/typings/index.metadata.json +1 -0
- package/autocomplete/typings/public-api.d.ts +10 -0
- package/autocomplete.d.ts +8 -0
- package/autocomplete.metadata.json +12 -0
- package/bundles/material-autocomplete.umd.js +2969 -0
- package/bundles/material-autocomplete.umd.js.map +1 -0
- package/bundles/material-autocomplete.umd.min.js +10 -0
- package/bundles/material-autocomplete.umd.min.js.map +1 -0
- package/bundles/material-button-toggle.umd.js +2284 -0
- package/bundles/material-button-toggle.umd.js.map +1 -0
- package/bundles/material-button-toggle.umd.min.js +10 -0
- package/bundles/material-button-toggle.umd.min.js.map +1 -0
- package/bundles/material-button.umd.js +2092 -0
- package/bundles/material-button.umd.js.map +1 -0
- package/bundles/material-button.umd.min.js +10 -0
- package/bundles/material-button.umd.min.js.map +1 -0
- package/bundles/material-card.umd.js +2006 -0
- package/bundles/material-card.umd.js.map +1 -0
- package/bundles/material-card.umd.min.js +9 -0
- package/bundles/material-card.umd.min.js.map +1 -0
- package/bundles/material-checkbox.umd.js +2327 -0
- package/bundles/material-checkbox.umd.js.map +1 -0
- package/bundles/material-checkbox.umd.min.js +10 -0
- package/bundles/material-checkbox.umd.min.js.map +1 -0
- package/bundles/material-chips.umd.js +3542 -0
- package/bundles/material-chips.umd.js.map +1 -0
- package/bundles/material-chips.umd.min.js +10 -0
- package/bundles/material-chips.umd.min.js.map +1 -0
- package/bundles/material-core.umd.js +2206 -0
- package/bundles/material-core.umd.js.map +1 -0
- package/bundles/material-core.umd.min.js +9 -0
- package/bundles/material-core.umd.min.js.map +1 -0
- package/bundles/material-datepicker.umd.js +6128 -0
- package/bundles/material-datepicker.umd.js.map +1 -0
- package/bundles/material-datepicker.umd.min.js +12 -0
- package/bundles/material-datepicker.umd.min.js.map +1 -0
- package/bundles/material-dialog.umd.js +2530 -0
- package/bundles/material-dialog.umd.js.map +1 -0
- package/bundles/material-dialog.umd.min.js +10 -0
- package/bundles/material-dialog.umd.min.js.map +1 -0
- package/bundles/material-expansion.umd.js +2128 -0
- package/bundles/material-expansion.umd.js.map +1 -0
- package/bundles/material-expansion.umd.min.js +9 -0
- package/bundles/material-expansion.umd.min.js.map +1 -0
- package/bundles/material-form-field.umd.js +2091 -0
- package/bundles/material-form-field.umd.js.map +1 -0
- package/bundles/material-form-field.umd.min.js +10 -0
- package/bundles/material-form-field.umd.min.js.map +1 -0
- package/bundles/material-grid-list.umd.js +2621 -0
- package/bundles/material-grid-list.umd.js.map +1 -0
- package/bundles/material-grid-list.umd.min.js +10 -0
- package/bundles/material-grid-list.umd.min.js.map +1 -0
- package/bundles/material-icon.umd.js +2442 -0
- package/bundles/material-icon.umd.js.map +1 -0
- package/bundles/material-icon.umd.min.js +10 -0
- package/bundles/material-icon.umd.min.js.map +1 -0
- package/bundles/material-input.umd.js +2716 -0
- package/bundles/material-input.umd.js.map +1 -0
- package/bundles/material-input.umd.min.js +10 -0
- package/bundles/material-input.umd.min.js.map +1 -0
- package/bundles/material-list.umd.js +2611 -0
- package/bundles/material-list.umd.js.map +1 -0
- package/bundles/material-list.umd.min.js +11 -0
- package/bundles/material-list.umd.min.js.map +1 -0
- package/bundles/material-menu.umd.js +2613 -0
- package/bundles/material-menu.umd.js.map +1 -0
- package/bundles/material-menu.umd.min.js +10 -0
- package/bundles/material-menu.umd.min.js.map +1 -0
- package/bundles/material-paginator.umd.js +5228 -0
- package/bundles/material-paginator.umd.js.map +1 -0
- package/bundles/material-paginator.umd.min.js +11 -0
- package/bundles/material-paginator.umd.min.js.map +1 -0
- package/bundles/material-progress-bar.umd.js +1784 -0
- package/bundles/material-progress-bar.umd.js.map +1 -0
- package/bundles/material-progress-bar.umd.min.js +9 -0
- package/bundles/material-progress-bar.umd.min.js.map +1 -0
- package/bundles/material-progress-spinner.umd.js +2005 -0
- package/bundles/material-progress-spinner.umd.js.map +1 -0
- package/bundles/material-progress-spinner.umd.min.js +10 -0
- package/bundles/material-progress-spinner.umd.min.js.map +1 -0
- package/bundles/material-radio.umd.js +2530 -0
- package/bundles/material-radio.umd.js.map +1 -0
- package/bundles/material-radio.umd.min.js +10 -0
- package/bundles/material-radio.umd.min.js.map +1 -0
- package/bundles/material-select.umd.js +3843 -0
- package/bundles/material-select.umd.js.map +1 -0
- package/bundles/material-select.umd.min.js +10 -0
- package/bundles/material-select.umd.min.js.map +1 -0
- package/bundles/material-sidenav.umd.js +2577 -0
- package/bundles/material-sidenav.umd.js.map +1 -0
- package/bundles/material-sidenav.umd.min.js +10 -0
- package/bundles/material-sidenav.umd.min.js.map +1 -0
- package/bundles/material-slide-toggle.umd.js +2253 -0
- package/bundles/material-slide-toggle.umd.js.map +1 -0
- package/bundles/material-slide-toggle.umd.min.js +10 -0
- package/bundles/material-slide-toggle.umd.min.js.map +1 -0
- package/bundles/material-slider.umd.js +2621 -0
- package/bundles/material-slider.umd.js.map +1 -0
- package/bundles/material-slider.umd.min.js +10 -0
- package/bundles/material-slider.umd.min.js.map +1 -0
- package/bundles/material-snack-bar.umd.js +2258 -0
- package/bundles/material-snack-bar.umd.js.map +1 -0
- package/bundles/material-snack-bar.umd.min.js +10 -0
- package/bundles/material-snack-bar.umd.min.js.map +1 -0
- package/bundles/material-sort.umd.js +1917 -0
- package/bundles/material-sort.umd.js.map +1 -0
- package/bundles/material-sort.umd.min.js +9 -0
- package/bundles/material-sort.umd.min.js.map +1 -0
- package/bundles/material-stepper.umd.js +3271 -0
- package/bundles/material-stepper.umd.js.map +1 -0
- package/bundles/material-stepper.umd.min.js +10 -0
- package/bundles/material-stepper.umd.min.js.map +1 -0
- package/bundles/material-table.umd.js +1976 -0
- package/bundles/material-table.umd.js.map +1 -0
- package/bundles/material-table.umd.min.js +9 -0
- package/bundles/material-table.umd.min.js.map +1 -0
- package/bundles/material-tabs.umd.js +3341 -0
- package/bundles/material-tabs.umd.js.map +1 -0
- package/bundles/material-tabs.umd.min.js +10 -0
- package/bundles/material-tabs.umd.min.js.map +1 -0
- package/bundles/material-toolbar.umd.js +1790 -0
- package/bundles/material-toolbar.umd.js.map +1 -0
- package/bundles/material-toolbar.umd.min.js +9 -0
- package/bundles/material-toolbar.umd.min.js.map +1 -0
- package/bundles/material-tooltip.umd.js +2339 -0
- package/bundles/material-tooltip.umd.js.map +1 -0
- package/bundles/material-tooltip.umd.min.js +10 -0
- package/bundles/material-tooltip.umd.min.js.map +1 -0
- package/bundles/material.umd.js +21541 -12552
- package/bundles/material.umd.js.map +1 -0
- package/bundles/material.umd.min.js +22 -0
- package/bundles/material.umd.min.js.map +1 -0
- package/button/index.d.ts +8 -1
- package/button/index.metadata.json +12 -1
- package/button/package.json +7 -0
- package/button/typings/button-module.d.ts +2 -0
- package/button/typings/button.d.ts +77 -0
- package/button/typings/index.d.ts +4 -0
- package/button/typings/index.metadata.json +1 -0
- package/button/typings/public-api.d.ts +9 -0
- package/button-toggle/index.d.ts +8 -1
- package/button-toggle/index.metadata.json +12 -1
- package/button-toggle/package.json +7 -0
- package/button-toggle/typings/button-toggle-module.d.ts +2 -0
- package/button-toggle/typings/button-toggle.d.ts +163 -0
- package/button-toggle/typings/index.d.ts +4 -0
- package/button-toggle/typings/index.metadata.json +1 -0
- package/button-toggle/typings/public-api.d.ts +9 -0
- package/button-toggle.d.ts +8 -0
- package/button-toggle.metadata.json +12 -0
- package/button.d.ts +8 -0
- package/button.metadata.json +12 -0
- package/card/index.d.ts +8 -1
- package/card/index.metadata.json +12 -1
- package/card/package.json +7 -0
- package/card/typings/card-module.d.ts +2 -0
- package/card/typings/card.d.ts +95 -0
- package/card/typings/index.d.ts +4 -0
- package/card/typings/index.metadata.json +1 -0
- package/card/typings/public-api.d.ts +9 -0
- package/card.d.ts +8 -0
- package/card.metadata.json +12 -0
- package/checkbox/index.d.ts +8 -1
- package/checkbox/index.metadata.json +12 -1
- package/checkbox/package.json +7 -0
- package/checkbox/typings/checkbox-module.d.ts +2 -0
- package/checkbox/typings/checkbox-required-validator.d.ts +18 -0
- package/checkbox/typings/checkbox.d.ts +157 -0
- package/checkbox/typings/index.d.ts +4 -0
- package/checkbox/typings/index.metadata.json +1 -0
- package/checkbox/typings/public-api.d.ts +10 -0
- package/checkbox.d.ts +8 -0
- package/checkbox.metadata.json +12 -0
- package/chips/index.d.ts +8 -2
- package/chips/index.metadata.json +12 -1
- package/chips/package.json +7 -0
- package/chips/typings/chip-input.d.ts +43 -0
- package/chips/typings/chip-list.d.ts +222 -0
- package/chips/typings/chip.d.ts +123 -0
- package/chips/typings/chips-module.d.ts +2 -0
- package/chips/typings/index.d.ts +4 -0
- package/chips/typings/index.metadata.json +1 -0
- package/chips/typings/public-api.d.ts +11 -0
- package/chips.d.ts +8 -0
- package/chips.metadata.json +12 -0
- package/core/index.d.ts +8 -1
- package/core/index.metadata.json +12 -1
- package/core/package.json +7 -0
- package/core/typings/animation/animation.d.ts +20 -0
- package/core/typings/common-behaviors/color.d.ts +22 -0
- package/core/typings/common-behaviors/common-module.d.ts +25 -0
- package/core/typings/common-behaviors/constructor.d.ts +9 -0
- package/core/typings/common-behaviors/disable-ripple.d.ts +7 -0
- package/core/typings/common-behaviors/disabled.d.ts +7 -0
- package/core/typings/common-behaviors/index.d.ts +12 -0
- package/core/typings/common-behaviors/tabindex.d.ts +15 -0
- package/core/typings/compatibility/compatibility.d.ts +32 -0
- package/core/typings/datetime/date-adapter.d.ts +198 -0
- package/core/typings/datetime/date-formats.d.ts +20 -0
- package/core/typings/datetime/index.d.ts +8 -0
- package/core/typings/datetime/native-date-adapter.d.ts +50 -0
- package/core/typings/datetime/native-date-formats.d.ts +9 -0
- package/core/typings/error/error-options.d.ts +9 -0
- package/core/typings/gestures/gesture-annotations.d.ts +51 -0
- package/core/{gestures → typings/gestures}/gesture-config.d.ts +0 -0
- package/core/typings/index.d.ts +5 -0
- package/core/typings/index.metadata.json +1 -0
- package/core/typings/line/line.d.ts +30 -0
- package/core/typings/option/index.d.ts +4 -0
- package/core/typings/option/optgroup.d.ts +14 -0
- package/core/typings/option/option.d.ts +90 -0
- package/core/typings/placeholder/placeholder-options.d.ts +15 -0
- package/core/typings/public-api.d.ts +22 -0
- package/core/typings/ripple/index.d.ts +5 -0
- package/core/typings/ripple/ripple-ref.d.ts +28 -0
- package/core/typings/ripple/ripple-renderer.d.ts +69 -0
- package/core/typings/ripple/ripple.d.ts +65 -0
- package/core/typings/selection/index.d.ts +3 -0
- package/core/typings/selection/pseudo-checkbox/pseudo-checkbox.d.ts +20 -0
- package/core/typings/style/apply-transform.d.ts +13 -0
- package/core/typings/style/index.d.ts +8 -0
- package/core/typings/testing/month-constants.d.ts +12 -0
- package/core/typings/util/object-extend.d.ts +15 -0
- package/core.d.ts +7 -0
- package/core.metadata.json +12 -1
- package/datepicker/index.d.ts +8 -0
- package/datepicker/index.metadata.json +12 -0
- package/datepicker/package.json +7 -0
- package/datepicker/typings/calendar-body.d.ts +52 -0
- package/datepicker/typings/calendar.d.ts +97 -0
- package/datepicker/typings/coerce-date-property.d.ts +19 -0
- package/datepicker/typings/datepicker-errors.d.ts +9 -0
- package/datepicker/typings/datepicker-input.d.ts +92 -0
- package/datepicker/typings/datepicker-intl.d.ts +25 -0
- package/datepicker/typings/datepicker-module.d.ts +2 -0
- package/datepicker/typings/datepicker-toggle.d.ts +24 -0
- package/datepicker/typings/datepicker.d.ts +117 -0
- package/datepicker/typings/index.d.ts +4 -0
- package/datepicker/typings/index.metadata.json +1 -0
- package/datepicker/typings/month-view.d.ts +66 -0
- package/datepicker/typings/public-api.d.ts +17 -0
- package/datepicker/typings/year-view.d.ts +55 -0
- package/datepicker.d.ts +8 -0
- package/datepicker.metadata.json +12 -0
- package/dialog/index.d.ts +8 -9
- package/dialog/index.metadata.json +12 -1
- package/dialog/package.json +7 -0
- package/dialog/typings/dialog-config.d.ts +54 -0
- package/dialog/typings/dialog-container.d.ts +68 -0
- package/dialog/typings/dialog-content-directives.d.ts +43 -0
- package/dialog/typings/dialog-module.d.ts +2 -0
- package/dialog/typings/dialog-ref.d.ts +68 -0
- package/dialog/typings/dialog.d.ts +108 -0
- package/dialog/typings/index.d.ts +4 -0
- package/dialog/typings/index.metadata.json +1 -0
- package/dialog/typings/public-api.d.ts +13 -0
- package/dialog.d.ts +8 -0
- package/dialog.metadata.json +12 -0
- package/esm2015/autocomplete.js +673 -0
- package/esm2015/autocomplete.js.map +1 -0
- package/esm2015/button-toggle.js +589 -0
- package/esm2015/button-toggle.js.map +1 -0
- package/esm2015/button.js +318 -0
- package/esm2015/button.js.map +1 -0
- package/esm2015/card.js +312 -0
- package/esm2015/card.js.map +1 -0
- package/esm2015/checkbox.js +500 -0
- package/esm2015/checkbox.js.map +1 -0
- package/esm2015/chips.js +1330 -0
- package/esm2015/chips.js.map +1 -0
- package/esm2015/core.js +2117 -0
- package/esm2015/core.js.map +1 -0
- package/esm2015/datepicker.js +1813 -0
- package/esm2015/datepicker.js.map +1 -0
- package/esm2015/dialog.js +854 -0
- package/esm2015/dialog.js.map +1 -0
- package/esm2015/expansion.js +587 -0
- package/esm2015/expansion.js.map +1 -0
- package/esm2015/form-field.js +535 -0
- package/esm2015/form-field.js.map +1 -0
- package/esm2015/grid-list.js +827 -0
- package/esm2015/grid-list.js.map +1 -0
- package/esm2015/icon.js +735 -0
- package/esm2015/icon.js.map +1 -0
- package/esm2015/input.js +585 -0
- package/esm2015/input.js.map +1 -0
- package/esm2015/list.js +640 -0
- package/esm2015/list.js.map +1 -0
- package/esm2015/material.js +51 -0
- package/esm2015/material.js.map +1 -0
- package/esm2015/menu.js +923 -0
- package/esm2015/menu.js.map +1 -0
- package/esm2015/paginator.js +303 -0
- package/esm2015/paginator.js.map +1 -0
- package/esm2015/progress-bar.js +133 -0
- package/esm2015/progress-bar.js.map +1 -0
- package/esm2015/progress-spinner.js +303 -0
- package/esm2015/progress-spinner.js.map +1 -0
- package/esm2015/radio.js +709 -0
- package/esm2015/radio.js.map +1 -0
- package/esm2015/select.js +1394 -0
- package/esm2015/select.js.map +1 -0
- package/esm2015/sidenav.js +866 -0
- package/esm2015/sidenav.js.map +1 -0
- package/esm2015/slide-toggle.js +428 -0
- package/esm2015/slide-toggle.js.map +1 -0
- package/esm2015/slider.js +834 -0
- package/esm2015/slider.js.map +1 -0
- package/esm2015/snack-bar.js +596 -0
- package/esm2015/snack-bar.js.map +1 -0
- package/esm2015/sort.js +371 -0
- package/esm2015/sort.js.map +1 -0
- package/esm2015/stepper.js +395 -0
- package/esm2015/stepper.js.map +1 -0
- package/esm2015/table.js +272 -0
- package/esm2015/table.js.map +1 -0
- package/esm2015/tabs.js +1480 -0
- package/esm2015/tabs.js.map +1 -0
- package/esm2015/toolbar.js +89 -0
- package/esm2015/toolbar.js.map +1 -0
- package/esm2015/tooltip.js +671 -0
- package/esm2015/tooltip.js.map +1 -0
- package/esm5/autocomplete.es5.js +712 -0
- package/esm5/autocomplete.es5.js.map +1 -0
- package/esm5/button-toggle.es5.js +646 -0
- package/esm5/button-toggle.es5.js.map +1 -0
- package/esm5/button.es5.js +344 -0
- package/esm5/button.es5.js.map +1 -0
- package/esm5/card.es5.js +355 -0
- package/esm5/card.es5.js.map +1 -0
- package/esm5/checkbox.es5.js +538 -0
- package/esm5/checkbox.es5.js.map +1 -0
- package/esm5/chips.es5.js +1464 -0
- package/esm5/chips.es5.js.map +1 -0
- package/esm5/core.es5.js +2126 -0
- package/esm5/core.es5.js.map +1 -0
- package/esm5/datepicker.es5.js +1946 -0
- package/esm5/datepicker.es5.js.map +1 -0
- package/esm5/dialog.es5.js +894 -0
- package/esm5/dialog.es5.js.map +1 -0
- package/esm5/expansion.es5.js +622 -0
- package/esm5/expansion.es5.js.map +1 -0
- package/esm5/form-field.es5.js +580 -0
- package/esm5/form-field.es5.js.map +1 -0
- package/esm5/grid-list.es5.js +888 -0
- package/esm5/grid-list.es5.js.map +1 -0
- package/esm5/icon.es5.js +754 -0
- package/esm5/icon.es5.js.map +1 -0
- package/esm5/input.es5.js +630 -0
- package/esm5/input.es5.js.map +1 -0
- package/esm5/list.es5.js +704 -0
- package/esm5/list.es5.js.map +1 -0
- package/esm5/material.es5.js +51 -0
- package/esm5/material.es5.js.map +1 -0
- package/esm5/menu.es5.js +962 -0
- package/esm5/menu.es5.js.map +1 -0
- package/esm5/paginator.es5.js +328 -0
- package/esm5/paginator.es5.js.map +1 -0
- package/esm5/progress-bar.es5.js +147 -0
- package/esm5/progress-bar.es5.js.map +1 -0
- package/esm5/progress-spinner.es5.js +317 -0
- package/esm5/progress-spinner.es5.js.map +1 -0
- package/esm5/radio.es5.js +786 -0
- package/esm5/radio.es5.js.map +1 -0
- package/esm5/select.es5.js +1481 -0
- package/esm5/select.es5.js.map +1 -0
- package/esm5/sidenav.es5.js +946 -0
- package/esm5/sidenav.es5.js.map +1 -0
- package/esm5/slide-toggle.es5.js +455 -0
- package/esm5/slide-toggle.es5.js.map +1 -0
- package/esm5/slider.es5.js +938 -0
- package/esm5/slider.es5.js.map +1 -0
- package/esm5/snack-bar.es5.js +622 -0
- package/esm5/snack-bar.es5.js.map +1 -0
- package/esm5/sort.es5.js +389 -0
- package/esm5/sort.es5.js.map +1 -0
- package/esm5/stepper.es5.js +448 -0
- package/esm5/stepper.es5.js.map +1 -0
- package/esm5/table.es5.js +323 -0
- package/esm5/table.es5.js.map +1 -0
- package/esm5/tabs.es5.js +1591 -0
- package/esm5/tabs.es5.js.map +1 -0
- package/esm5/toolbar.es5.js +100 -0
- package/esm5/toolbar.es5.js.map +1 -0
- package/esm5/tooltip.es5.js +705 -0
- package/esm5/tooltip.es5.js.map +1 -0
- package/expansion/index.d.ts +8 -0
- package/expansion/index.metadata.json +12 -0
- package/expansion/package.json +7 -0
- package/expansion/typings/accordion-item.d.ts +41 -0
- package/expansion/typings/accordion.d.ts +29 -0
- package/expansion/typings/expansion-module.d.ts +2 -0
- package/expansion/typings/expansion-panel-header.d.ts +49 -0
- package/expansion/typings/expansion-panel.d.ts +40 -0
- package/expansion/typings/index.d.ts +5 -0
- package/expansion/typings/index.metadata.json +1 -0
- package/expansion/typings/public-api.d.ts +12 -0
- package/expansion.d.ts +8 -0
- package/expansion.metadata.json +12 -0
- package/form-field/index.d.ts +8 -0
- package/form-field/index.metadata.json +12 -0
- package/form-field/package.json +7 -0
- package/form-field/typings/error.d.ts +4 -0
- package/form-field/typings/form-field-control.d.ts +47 -0
- package/form-field/typings/form-field-errors.d.ts +13 -0
- package/form-field/typings/form-field-module.d.ts +2 -0
- package/form-field/typings/form-field.d.ts +78 -0
- package/form-field/typings/hint.d.ts +7 -0
- package/form-field/typings/index.d.ts +4 -0
- package/form-field/typings/index.metadata.json +1 -0
- package/form-field/typings/placeholder.d.ts +3 -0
- package/form-field/typings/prefix.d.ts +3 -0
- package/form-field/typings/public-api.d.ts +16 -0
- package/form-field/typings/suffix.d.ts +3 -0
- package/form-field.d.ts +8 -0
- package/form-field.metadata.json +12 -0
- package/grid-list/index.d.ts +8 -1
- package/grid-list/index.metadata.json +12 -1
- package/grid-list/package.json +7 -0
- package/grid-list/typings/grid-list-measure.d.ts +17 -0
- package/grid-list/typings/grid-list-module.d.ts +2 -0
- package/grid-list/typings/grid-list.d.ts +53 -0
- package/grid-list/typings/grid-tile.d.ts +55 -0
- package/grid-list/typings/index.d.ts +5 -0
- package/grid-list/typings/index.metadata.json +1 -0
- package/grid-list/typings/public-api.d.ts +10 -0
- package/grid-list/typings/tile-coordinator.d.ts +64 -0
- package/grid-list/typings/tile-styler.d.ts +129 -0
- package/grid-list.d.ts +8 -0
- package/grid-list.metadata.json +12 -0
- package/icon/index.d.ts +8 -1
- package/icon/index.metadata.json +12 -1
- package/icon/package.json +7 -0
- package/icon/typings/icon-module.d.ts +2 -0
- package/icon/typings/icon-registry.d.ts +187 -0
- package/icon/typings/icon.d.ts +69 -0
- package/icon/typings/index.d.ts +4 -0
- package/icon/typings/index.metadata.json +1 -0
- package/icon/typings/public-api.d.ts +10 -0
- package/icon.d.ts +8 -0
- package/icon.metadata.json +12 -0
- package/input/index.d.ts +8 -4
- package/input/index.metadata.json +12 -1
- package/input/package.json +7 -0
- package/input/typings/autosize.d.ts +43 -0
- package/input/typings/index.d.ts +4 -0
- package/input/typings/index.metadata.json +1 -0
- package/input/typings/input-errors.d.ts +9 -0
- package/input/typings/input-module.d.ts +2 -0
- package/input/typings/input.d.ts +85 -0
- package/input/typings/public-api.d.ts +11 -0
- package/input.d.ts +8 -0
- package/input.metadata.json +12 -0
- package/list/index.d.ts +8 -1
- package/list/index.metadata.json +12 -1
- package/list/package.json +7 -0
- package/list/typings/index.d.ts +4 -0
- package/list/typings/index.metadata.json +1 -0
- package/list/typings/list-module.d.ts +2 -0
- package/list/typings/list.d.ts +77 -0
- package/list/typings/public-api.d.ts +10 -0
- package/list/typings/selection-list.d.ts +103 -0
- package/list.d.ts +8 -0
- package/list.metadata.json +12 -0
- package/material.d.ts +39 -0
- package/material.metadata.json +105 -0
- package/menu/index.d.ts +8 -5
- package/menu/index.metadata.json +12 -1
- package/menu/package.json +7 -0
- package/menu/typings/index.d.ts +6 -0
- package/menu/typings/index.metadata.json +1 -0
- package/menu/typings/menu-animations.d.ts +27 -0
- package/menu/typings/menu-directive.d.ts +89 -0
- package/menu/typings/menu-errors.d.ts +24 -0
- package/menu/typings/menu-item.d.ts +42 -0
- package/menu/typings/menu-module.d.ts +2 -0
- package/menu/typings/menu-panel.d.ts +22 -0
- package/menu/typings/menu-positions.d.ts +9 -0
- package/menu/typings/menu-trigger.d.ts +115 -0
- package/menu/typings/menu.d.ts +12 -0
- package/menu/typings/public-api.d.ts +11 -0
- package/menu.d.ts +8 -0
- package/menu.metadata.json +12 -0
- package/package.json +10 -9
- package/paginator/index.d.ts +8 -0
- package/paginator/index.metadata.json +12 -0
- package/paginator/package.json +7 -0
- package/paginator/typings/index.d.ts +4 -0
- package/paginator/typings/index.metadata.json +1 -0
- package/paginator/typings/paginator-intl.d.ts +20 -0
- package/paginator/typings/paginator-module.d.ts +2 -0
- package/paginator/typings/paginator.d.ts +75 -0
- package/paginator/typings/public-api.d.ts +10 -0
- package/paginator.d.ts +8 -0
- package/paginator.metadata.json +12 -0
- package/prebuilt-themes/deeppurple-amber.css +1 -0
- package/prebuilt-themes/indigo-pink.css +1 -0
- package/prebuilt-themes/pink-bluegrey.css +1 -0
- package/prebuilt-themes/purple-green.css +1 -0
- package/progress-bar/index.d.ts +8 -1
- package/progress-bar/index.metadata.json +12 -1
- package/progress-bar/package.json +7 -0
- package/progress-bar/typings/index.d.ts +4 -0
- package/progress-bar/typings/index.metadata.json +1 -0
- package/progress-bar/typings/progress-bar-module.d.ts +2 -0
- package/progress-bar/typings/progress-bar.d.ts +32 -0
- package/progress-bar/typings/public-api.d.ts +9 -0
- package/progress-bar.d.ts +8 -0
- package/progress-bar.metadata.json +12 -0
- package/progress-spinner/index.d.ts +8 -2
- package/progress-spinner/index.metadata.json +12 -1
- package/progress-spinner/package.json +7 -0
- package/progress-spinner/typings/index.d.ts +4 -0
- package/progress-spinner/typings/index.metadata.json +1 -0
- package/progress-spinner/typings/progress-spinner-module.d.ts +3 -0
- package/progress-spinner/typings/progress-spinner.d.ts +69 -0
- package/progress-spinner/typings/public-api.d.ts +9 -0
- package/progress-spinner.d.ts +8 -0
- package/progress-spinner.metadata.json +12 -0
- package/radio/index.d.ts +8 -1
- package/radio/index.metadata.json +12 -1
- package/radio/package.json +7 -0
- package/radio/typings/index.d.ts +4 -0
- package/radio/typings/index.metadata.json +1 -0
- package/radio/typings/public-api.d.ts +9 -0
- package/radio/typings/radio-module.d.ts +2 -0
- package/radio/typings/radio.d.ts +215 -0
- package/radio.d.ts +8 -0
- package/radio.metadata.json +12 -0
- package/select/index.d.ts +8 -7
- package/select/index.metadata.json +12 -1
- package/select/package.json +7 -0
- package/select/typings/index.d.ts +4 -0
- package/select/typings/index.metadata.json +1 -0
- package/select/typings/public-api.d.ts +10 -0
- package/select/typings/select-animations.d.ts +30 -0
- package/select/typings/select-errors.d.ts +26 -0
- package/select/typings/select-module.d.ts +2 -0
- package/select/typings/select.d.ts +393 -0
- package/select.d.ts +8 -0
- package/select.metadata.json +12 -0
- package/sidenav/index.d.ts +8 -1
- package/sidenav/index.metadata.json +12 -1
- package/sidenav/package.json +7 -0
- package/sidenav/typings/drawer.d.ts +190 -0
- package/sidenav/typings/index.d.ts +4 -0
- package/sidenav/typings/index.metadata.json +1 -0
- package/sidenav/typings/public-api.d.ts +10 -0
- package/sidenav/typings/sidenav-module.d.ts +2 -0
- package/sidenav/typings/sidenav.d.ts +33 -0
- package/sidenav.d.ts +8 -0
- package/sidenav.metadata.json +12 -0
- package/slide-toggle/index.d.ts +8 -1
- package/slide-toggle/index.metadata.json +12 -1
- package/slide-toggle/package.json +7 -0
- package/slide-toggle/typings/index.d.ts +4 -0
- package/slide-toggle/typings/index.metadata.json +1 -0
- package/slide-toggle/typings/public-api.d.ts +9 -0
- package/slide-toggle/typings/slide-toggle-module.d.ts +2 -0
- package/slide-toggle/typings/slide-toggle.d.ts +93 -0
- package/slide-toggle.d.ts +8 -0
- package/slide-toggle.metadata.json +12 -0
- package/slider/index.d.ts +8 -1
- package/slider/index.metadata.json +12 -1
- package/slider/package.json +7 -0
- package/slider/typings/index.d.ts +4 -0
- package/slider/typings/index.metadata.json +1 -0
- package/slider/typings/public-api.d.ts +9 -0
- package/slider/typings/slider-module.d.ts +2 -0
- package/slider/typings/slider.d.ts +207 -0
- package/slider.d.ts +8 -0
- package/slider.metadata.json +12 -0
- package/snack-bar/index.d.ts +8 -4
- package/snack-bar/index.metadata.json +12 -1
- package/snack-bar/package.json +7 -0
- package/snack-bar/typings/index.d.ts +4 -0
- package/snack-bar/typings/index.metadata.json +1 -0
- package/snack-bar/typings/public-api.d.ts +13 -0
- package/snack-bar/typings/simple-snack-bar.d.ts +18 -0
- package/snack-bar/typings/snack-bar-config.d.ts +38 -0
- package/snack-bar/typings/snack-bar-container.d.ts +55 -0
- package/snack-bar/typings/snack-bar-module.d.ts +2 -0
- package/snack-bar/typings/snack-bar-ref.d.ts +51 -0
- package/snack-bar/typings/snack-bar.d.ts +70 -0
- package/snack-bar.d.ts +8 -0
- package/snack-bar.metadata.json +12 -0
- package/sort/index.d.ts +8 -0
- package/sort/index.metadata.json +12 -0
- package/sort/package.json +7 -0
- package/sort/typings/index.d.ts +4 -0
- package/sort/typings/index.metadata.json +1 -0
- package/sort/typings/public-api.d.ts +12 -0
- package/sort/typings/sort-direction.d.ts +8 -0
- package/sort/typings/sort-errors.d.ts +15 -0
- package/sort/typings/sort-header-intl.d.ts +17 -0
- package/sort/typings/sort-header.d.ts +43 -0
- package/sort/typings/sort-module.d.ts +2 -0
- package/sort/typings/sort.d.ts +55 -0
- package/sort.d.ts +8 -0
- package/sort.metadata.json +12 -0
- package/stepper/index.d.ts +8 -0
- package/stepper/index.metadata.json +12 -0
- package/stepper/package.json +7 -0
- package/stepper/typings/index.d.ts +4 -0
- package/stepper/typings/index.metadata.json +1 -0
- package/stepper/typings/public-api.d.ts +13 -0
- package/stepper/typings/step-header.d.ts +41 -0
- package/stepper/typings/step-label.d.ts +14 -0
- package/stepper/typings/stepper-button.d.ts +10 -0
- package/stepper/typings/stepper-intl.d.ts +11 -0
- package/stepper/typings/stepper-module.d.ts +2 -0
- package/stepper/typings/stepper.d.ts +26 -0
- package/stepper.d.ts +8 -0
- package/stepper.metadata.json +12 -0
- package/table/index.d.ts +8 -0
- package/table/index.metadata.json +12 -0
- package/table/package.json +7 -0
- package/table/typings/cell.d.ts +43 -0
- package/table/typings/index.d.ts +4 -0
- package/table/typings/index.metadata.json +1 -0
- package/table/typings/public-api.d.ts +11 -0
- package/table/typings/row.d.ts +25 -0
- package/table/typings/table-module.d.ts +2 -0
- package/table/typings/table.d.ts +8 -0
- package/table.d.ts +8 -0
- package/table.metadata.json +12 -0
- package/tabs/index.d.ts +8 -7
- package/tabs/index.metadata.json +12 -1
- package/tabs/package.json +7 -0
- package/tabs/typings/index.d.ts +8 -0
- package/tabs/typings/index.metadata.json +1 -0
- package/tabs/typings/ink-bar.d.ts +33 -0
- package/tabs/typings/public-api.d.ts +16 -0
- package/tabs/typings/tab-body.d.ts +69 -0
- package/tabs/typings/tab-group.d.ts +104 -0
- package/tabs/typings/tab-header.d.ts +158 -0
- package/tabs/typings/tab-label-wrapper.d.ts +25 -0
- package/tabs/typings/tab-label.d.ts +15 -0
- package/tabs/typings/tab-nav-bar/index.d.ts +8 -0
- package/tabs/typings/tab-nav-bar/tab-nav-bar.d.ts +78 -0
- package/tabs/typings/tab.d.ts +50 -0
- package/tabs/typings/tabs-module.d.ts +2 -0
- package/tabs.d.ts +8 -0
- package/tabs.metadata.json +12 -0
- package/toolbar/index.d.ts +8 -1
- package/toolbar/index.metadata.json +12 -1
- package/toolbar/package.json +7 -0
- package/toolbar/typings/index.d.ts +4 -0
- package/toolbar/typings/index.metadata.json +1 -0
- package/toolbar/typings/public-api.d.ts +9 -0
- package/toolbar/typings/toolbar-module.d.ts +2 -0
- package/toolbar/typings/toolbar.d.ts +21 -0
- package/toolbar.d.ts +8 -0
- package/toolbar.metadata.json +12 -0
- package/tooltip/index.d.ts +8 -1
- package/tooltip/index.metadata.json +12 -1
- package/tooltip/package.json +7 -0
- package/tooltip/typings/index.d.ts +4 -0
- package/tooltip/typings/index.metadata.json +1 -0
- package/tooltip/typings/public-api.d.ts +9 -0
- package/tooltip/typings/tooltip-module.d.ts +2 -0
- package/tooltip/typings/tooltip.d.ts +175 -0
- package/tooltip.d.ts +8 -0
- package/tooltip.metadata.json +12 -0
- package/typings/autocomplete/autocomplete-module.d.ts +2 -0
- package/typings/autocomplete/autocomplete-trigger.d.ts +159 -0
- package/typings/autocomplete/autocomplete.d.ts +62 -0
- package/typings/autocomplete/index.d.ts +4 -0
- package/typings/autocomplete/index.metadata.json +1 -0
- package/typings/autocomplete/public-api.d.ts +10 -0
- package/typings/button/button-module.d.ts +2 -0
- package/typings/button/button.d.ts +77 -0
- package/typings/button/index.d.ts +4 -0
- package/typings/button/index.metadata.json +1 -0
- package/typings/button/public-api.d.ts +9 -0
- package/typings/button-toggle/button-toggle-module.d.ts +2 -0
- package/typings/button-toggle/button-toggle.d.ts +163 -0
- package/typings/button-toggle/index.d.ts +4 -0
- package/typings/button-toggle/index.metadata.json +1 -0
- package/typings/button-toggle/public-api.d.ts +9 -0
- package/typings/card/card-module.d.ts +2 -0
- package/typings/card/card.d.ts +95 -0
- package/typings/card/index.d.ts +4 -0
- package/typings/card/index.metadata.json +1 -0
- package/typings/card/public-api.d.ts +9 -0
- package/typings/checkbox/checkbox-module.d.ts +2 -0
- package/typings/checkbox/checkbox-required-validator.d.ts +18 -0
- package/typings/checkbox/checkbox.d.ts +157 -0
- package/typings/checkbox/index.d.ts +4 -0
- package/typings/checkbox/index.metadata.json +1 -0
- package/typings/checkbox/public-api.d.ts +10 -0
- package/typings/chips/chip-input.d.ts +43 -0
- package/typings/chips/chip-list.d.ts +222 -0
- package/typings/chips/chip.d.ts +123 -0
- package/typings/chips/chips-module.d.ts +2 -0
- package/typings/chips/index.d.ts +4 -0
- package/typings/chips/index.metadata.json +1 -0
- package/typings/chips/public-api.d.ts +11 -0
- package/typings/core/animation/animation.d.ts +20 -0
- package/typings/core/common-behaviors/color.d.ts +22 -0
- package/typings/core/common-behaviors/common-module.d.ts +25 -0
- package/typings/core/common-behaviors/constructor.d.ts +9 -0
- package/typings/core/common-behaviors/disable-ripple.d.ts +7 -0
- package/typings/core/common-behaviors/disabled.d.ts +7 -0
- package/typings/core/common-behaviors/index.d.ts +12 -0
- package/typings/core/common-behaviors/tabindex.d.ts +15 -0
- package/typings/core/compatibility/compatibility.d.ts +32 -0
- package/typings/core/datetime/date-adapter.d.ts +198 -0
- package/typings/core/datetime/date-formats.d.ts +20 -0
- package/typings/core/datetime/index.d.ts +8 -0
- package/typings/core/datetime/native-date-adapter.d.ts +50 -0
- package/typings/core/datetime/native-date-formats.d.ts +9 -0
- package/typings/core/error/error-options.d.ts +9 -0
- package/typings/core/gestures/gesture-annotations.d.ts +51 -0
- package/typings/core/gestures/gesture-config.d.ts +23 -0
- package/typings/core/index.d.ts +5 -0
- package/typings/core/index.metadata.json +1 -0
- package/typings/core/line/line.d.ts +30 -0
- package/typings/core/option/index.d.ts +4 -0
- package/typings/core/option/optgroup.d.ts +14 -0
- package/typings/core/option/option.d.ts +90 -0
- package/typings/core/placeholder/placeholder-options.d.ts +15 -0
- package/typings/core/public-api.d.ts +22 -0
- package/typings/core/ripple/index.d.ts +5 -0
- package/typings/core/ripple/ripple-ref.d.ts +28 -0
- package/typings/core/ripple/ripple-renderer.d.ts +69 -0
- package/typings/core/ripple/ripple.d.ts +65 -0
- package/typings/core/selection/index.d.ts +3 -0
- package/typings/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +20 -0
- package/typings/core/style/apply-transform.d.ts +13 -0
- package/typings/core/style/index.d.ts +8 -0
- package/typings/core/testing/month-constants.d.ts +12 -0
- package/typings/core/util/object-extend.d.ts +15 -0
- package/typings/datepicker/calendar-body.d.ts +52 -0
- package/typings/datepicker/calendar.d.ts +97 -0
- package/typings/datepicker/coerce-date-property.d.ts +19 -0
- package/typings/datepicker/datepicker-errors.d.ts +9 -0
- package/typings/datepicker/datepicker-input.d.ts +92 -0
- package/typings/datepicker/datepicker-intl.d.ts +25 -0
- package/typings/datepicker/datepicker-module.d.ts +2 -0
- package/typings/datepicker/datepicker-toggle.d.ts +24 -0
- package/typings/datepicker/datepicker.d.ts +117 -0
- package/typings/datepicker/index.d.ts +4 -0
- package/typings/datepicker/index.metadata.json +1 -0
- package/typings/datepicker/month-view.d.ts +66 -0
- package/typings/datepicker/public-api.d.ts +17 -0
- package/typings/datepicker/year-view.d.ts +55 -0
- package/typings/dialog/dialog-config.d.ts +54 -0
- package/typings/dialog/dialog-container.d.ts +68 -0
- package/typings/dialog/dialog-content-directives.d.ts +43 -0
- package/typings/dialog/dialog-module.d.ts +2 -0
- package/typings/dialog/dialog-ref.d.ts +68 -0
- package/typings/dialog/dialog.d.ts +108 -0
- package/typings/dialog/index.d.ts +4 -0
- package/typings/dialog/index.metadata.json +1 -0
- package/typings/dialog/public-api.d.ts +13 -0
- package/typings/expansion/accordion-item.d.ts +41 -0
- package/typings/expansion/accordion.d.ts +29 -0
- package/typings/expansion/expansion-module.d.ts +2 -0
- package/typings/expansion/expansion-panel-header.d.ts +49 -0
- package/typings/expansion/expansion-panel.d.ts +40 -0
- package/typings/expansion/index.d.ts +5 -0
- package/typings/expansion/index.metadata.json +1 -0
- package/typings/expansion/public-api.d.ts +12 -0
- package/typings/form-field/error.d.ts +4 -0
- package/typings/form-field/form-field-control.d.ts +47 -0
- package/typings/form-field/form-field-errors.d.ts +13 -0
- package/typings/form-field/form-field-module.d.ts +2 -0
- package/typings/form-field/form-field.d.ts +78 -0
- package/typings/form-field/hint.d.ts +7 -0
- package/typings/form-field/index.d.ts +4 -0
- package/typings/form-field/index.metadata.json +1 -0
- package/typings/form-field/placeholder.d.ts +3 -0
- package/typings/form-field/prefix.d.ts +3 -0
- package/typings/form-field/public-api.d.ts +16 -0
- package/typings/form-field/suffix.d.ts +3 -0
- package/typings/grid-list/grid-list-measure.d.ts +17 -0
- package/typings/grid-list/grid-list-module.d.ts +2 -0
- package/typings/grid-list/grid-list.d.ts +53 -0
- package/typings/grid-list/grid-tile.d.ts +55 -0
- package/typings/grid-list/index.d.ts +5 -0
- package/typings/grid-list/index.metadata.json +1 -0
- package/typings/grid-list/public-api.d.ts +10 -0
- package/typings/grid-list/tile-coordinator.d.ts +64 -0
- package/typings/grid-list/tile-styler.d.ts +129 -0
- package/typings/icon/icon-module.d.ts +2 -0
- package/typings/icon/icon-registry.d.ts +187 -0
- package/typings/icon/icon.d.ts +69 -0
- package/typings/icon/index.d.ts +4 -0
- package/typings/icon/index.metadata.json +1 -0
- package/typings/icon/public-api.d.ts +10 -0
- package/typings/index.d.ts +4 -0
- package/typings/index.metadata.json +1 -0
- package/typings/input/autosize.d.ts +43 -0
- package/typings/input/index.d.ts +4 -0
- package/typings/input/index.metadata.json +1 -0
- package/typings/input/input-errors.d.ts +9 -0
- package/typings/input/input-module.d.ts +2 -0
- package/typings/input/input.d.ts +85 -0
- package/typings/input/public-api.d.ts +11 -0
- package/typings/list/index.d.ts +4 -0
- package/typings/list/index.metadata.json +1 -0
- package/typings/list/list-module.d.ts +2 -0
- package/typings/list/list.d.ts +77 -0
- package/typings/list/public-api.d.ts +10 -0
- package/typings/list/selection-list.d.ts +103 -0
- package/typings/menu/index.d.ts +6 -0
- package/typings/menu/index.metadata.json +1 -0
- package/typings/menu/menu-animations.d.ts +27 -0
- package/typings/menu/menu-directive.d.ts +89 -0
- package/typings/menu/menu-errors.d.ts +24 -0
- package/typings/menu/menu-item.d.ts +42 -0
- package/typings/menu/menu-module.d.ts +2 -0
- package/typings/menu/menu-panel.d.ts +22 -0
- package/typings/menu/menu-positions.d.ts +9 -0
- package/typings/menu/menu-trigger.d.ts +115 -0
- package/typings/menu/menu.d.ts +12 -0
- package/typings/menu/public-api.d.ts +11 -0
- package/typings/paginator/index.d.ts +4 -0
- package/typings/paginator/index.metadata.json +1 -0
- package/typings/paginator/paginator-intl.d.ts +20 -0
- package/typings/paginator/paginator-module.d.ts +2 -0
- package/typings/paginator/paginator.d.ts +75 -0
- package/typings/paginator/public-api.d.ts +10 -0
- package/typings/progress-bar/index.d.ts +4 -0
- package/typings/progress-bar/index.metadata.json +1 -0
- package/typings/progress-bar/progress-bar-module.d.ts +2 -0
- package/typings/progress-bar/progress-bar.d.ts +32 -0
- package/typings/progress-bar/public-api.d.ts +9 -0
- package/typings/progress-spinner/index.d.ts +4 -0
- package/typings/progress-spinner/index.metadata.json +1 -0
- package/typings/progress-spinner/progress-spinner-module.d.ts +3 -0
- package/typings/progress-spinner/progress-spinner.d.ts +69 -0
- package/typings/progress-spinner/public-api.d.ts +9 -0
- package/typings/public-api.d.ts +39 -0
- package/typings/radio/index.d.ts +4 -0
- package/typings/radio/index.metadata.json +1 -0
- package/typings/radio/public-api.d.ts +9 -0
- package/typings/radio/radio-module.d.ts +2 -0
- package/typings/radio/radio.d.ts +215 -0
- package/typings/select/index.d.ts +4 -0
- package/typings/select/index.metadata.json +1 -0
- package/typings/select/public-api.d.ts +10 -0
- package/typings/select/select-animations.d.ts +30 -0
- package/typings/select/select-errors.d.ts +26 -0
- package/typings/select/select-module.d.ts +2 -0
- package/typings/select/select.d.ts +393 -0
- package/typings/sidenav/drawer.d.ts +190 -0
- package/typings/sidenav/index.d.ts +4 -0
- package/typings/sidenav/index.metadata.json +1 -0
- package/typings/sidenav/public-api.d.ts +10 -0
- package/typings/sidenav/sidenav-module.d.ts +2 -0
- package/typings/sidenav/sidenav.d.ts +33 -0
- package/typings/slide-toggle/index.d.ts +4 -0
- package/typings/slide-toggle/index.metadata.json +1 -0
- package/typings/slide-toggle/public-api.d.ts +9 -0
- package/typings/slide-toggle/slide-toggle-module.d.ts +2 -0
- package/typings/slide-toggle/slide-toggle.d.ts +93 -0
- package/typings/slider/index.d.ts +4 -0
- package/typings/slider/index.metadata.json +1 -0
- package/typings/slider/public-api.d.ts +9 -0
- package/typings/slider/slider-module.d.ts +2 -0
- package/typings/slider/slider.d.ts +207 -0
- package/typings/snack-bar/index.d.ts +4 -0
- package/typings/snack-bar/index.metadata.json +1 -0
- package/typings/snack-bar/public-api.d.ts +13 -0
- package/typings/snack-bar/simple-snack-bar.d.ts +18 -0
- package/typings/snack-bar/snack-bar-config.d.ts +38 -0
- package/typings/snack-bar/snack-bar-container.d.ts +55 -0
- package/typings/snack-bar/snack-bar-module.d.ts +2 -0
- package/typings/snack-bar/snack-bar-ref.d.ts +51 -0
- package/typings/snack-bar/snack-bar.d.ts +70 -0
- package/typings/sort/index.d.ts +4 -0
- package/typings/sort/index.metadata.json +1 -0
- package/typings/sort/public-api.d.ts +12 -0
- package/typings/sort/sort-direction.d.ts +8 -0
- package/typings/sort/sort-errors.d.ts +15 -0
- package/typings/sort/sort-header-intl.d.ts +17 -0
- package/typings/sort/sort-header.d.ts +43 -0
- package/typings/sort/sort-module.d.ts +2 -0
- package/typings/sort/sort.d.ts +55 -0
- package/typings/stepper/index.d.ts +4 -0
- package/typings/stepper/index.metadata.json +1 -0
- package/typings/stepper/public-api.d.ts +13 -0
- package/typings/stepper/step-header.d.ts +41 -0
- package/typings/stepper/step-label.d.ts +14 -0
- package/typings/stepper/stepper-button.d.ts +10 -0
- package/typings/stepper/stepper-intl.d.ts +11 -0
- package/typings/stepper/stepper-module.d.ts +2 -0
- package/typings/stepper/stepper.d.ts +26 -0
- package/typings/table/cell.d.ts +43 -0
- package/typings/table/index.d.ts +4 -0
- package/typings/table/index.metadata.json +1 -0
- package/typings/table/public-api.d.ts +11 -0
- package/typings/table/row.d.ts +25 -0
- package/typings/table/table-module.d.ts +2 -0
- package/typings/table/table.d.ts +8 -0
- package/typings/tabs/index.d.ts +8 -0
- package/typings/tabs/index.metadata.json +1 -0
- package/typings/tabs/ink-bar.d.ts +33 -0
- package/typings/tabs/public-api.d.ts +16 -0
- package/typings/tabs/tab-body.d.ts +69 -0
- package/typings/tabs/tab-group.d.ts +104 -0
- package/typings/tabs/tab-header.d.ts +158 -0
- package/typings/tabs/tab-label-wrapper.d.ts +25 -0
- package/typings/tabs/tab-label.d.ts +15 -0
- package/typings/tabs/tab-nav-bar/index.d.ts +8 -0
- package/typings/tabs/tab-nav-bar/tab-nav-bar.d.ts +78 -0
- package/typings/tabs/tab.d.ts +50 -0
- package/typings/tabs/tabs-module.d.ts +2 -0
- package/typings/toolbar/index.d.ts +4 -0
- package/typings/toolbar/index.metadata.json +1 -0
- package/typings/toolbar/public-api.d.ts +9 -0
- package/typings/toolbar/toolbar-module.d.ts +2 -0
- package/typings/toolbar/toolbar.d.ts +21 -0
- package/typings/tooltip/index.d.ts +4 -0
- package/typings/tooltip/index.metadata.json +1 -0
- package/typings/tooltip/public-api.d.ts +9 -0
- package/typings/tooltip/tooltip-module.d.ts +2 -0
- package/typings/tooltip/tooltip.d.ts +175 -0
- package/typings/version.d.ts +10 -0
- package/autocomplete/README.md +0 -5
- package/autocomplete/_autocomplete-theme.scss +0 -5
- package/autocomplete/autocomplete.css +0 -0
- package/autocomplete/autocomplete.css.map +0 -1
- package/autocomplete/autocomplete.d.ts +0 -2
- package/autocomplete/autocomplete.html +0 -1
- package/autocomplete/autocomplete.js +0 -25
- package/autocomplete/autocomplete.js.map +0 -1
- package/autocomplete/autocomplete.metadata.json +0 -1
- package/autocomplete/autocomplete.scss +0 -0
- package/autocomplete/index.js +0 -34
- package/autocomplete/index.js.map +0 -1
- package/button/OVERVIEW.md +0 -25
- package/button/README.md +0 -116
- package/button/_button-base.scss +0 -111
- package/button/_button-theme.scss +0 -85
- package/button/button.css +0 -1
- package/button/button.css.map +0 -1
- package/button/button.d.ts +0 -46
- package/button/button.html +0 -1
- package/button/button.js +0 -203
- package/button/button.js.map +0 -1
- package/button/button.metadata.json +0 -1
- package/button/button.scss +0 -105
- package/button/index.js +0 -3
- package/button/index.js.map +0 -1
- package/button-toggle/OVERVIEW.md +0 -22
- package/button-toggle/README.md +0 -139
- package/button-toggle/_button-toggle-theme.scss +0 -14
- package/button-toggle/button-toggle.css +0 -1
- package/button-toggle/button-toggle.css.map +0 -1
- package/button-toggle/button-toggle.d.ts +0 -136
- package/button-toggle/button-toggle.html +0 -1
- package/button-toggle/button-toggle.js +0 -502
- package/button-toggle/button-toggle.js.map +0 -1
- package/button-toggle/button-toggle.metadata.json +0 -1
- package/button-toggle/button-toggle.scss +0 -49
- package/button-toggle/index.js +0 -3
- package/button-toggle/index.js.map +0 -1
- package/card/OVERVIEW.md +0 -45
- package/card/README.md +0 -116
- package/card/_card-theme.scss +0 -17
- package/card/card-header.html +0 -1
- package/card/card-title-group.html +0 -1
- package/card/card.css +0 -1
- package/card/card.css.map +0 -1
- package/card/card.d.ts +0 -54
- package/card/card.html +0 -1
- package/card/card.js +0 -174
- package/card/card.js.map +0 -1
- package/card/card.metadata.json +0 -1
- package/card/card.scss +0 -227
- package/card/index.js +0 -3
- package/card/index.js.map +0 -1
- package/checkbox/OVERVIEW.md +0 -28
- package/checkbox/README.md +0 -93
- package/checkbox/_checkbox-theme.scss +0 -84
- package/checkbox/checkbox.css +0 -1
- package/checkbox/checkbox.css.map +0 -1
- package/checkbox/checkbox.d.ts +0 -155
- package/checkbox/checkbox.html +0 -1
- package/checkbox/checkbox.js +0 -432
- package/checkbox/checkbox.js.map +0 -1
- package/checkbox/checkbox.metadata.json +0 -1
- package/checkbox/checkbox.scss +0 -431
- package/checkbox/index.js +0 -3
- package/checkbox/index.js.map +0 -1
- package/chips/OVERVIEW.md +0 -40
- package/chips/README.md +0 -7
- package/chips/_chips-theme.scss +0 -49
- package/chips/chip-list.d.ts +0 -66
- package/chips/chip-list.js +0 -210
- package/chips/chip-list.js.map +0 -1
- package/chips/chip-list.metadata.json +0 -1
- package/chips/chip.d.ts +0 -53
- package/chips/chip.js +0 -177
- package/chips/chip.js.map +0 -1
- package/chips/chip.metadata.json +0 -1
- package/chips/chips.css +0 -1
- package/chips/chips.css.map +0 -1
- package/chips/chips.scss +0 -80
- package/chips/index.js +0 -4
- package/chips/index.js.map +0 -1
- package/core/README.md +0 -1
- package/core/_core.scss +0 -27
- package/core/a11y/README.md +0 -30
- package/core/a11y/_a11y.scss +0 -24
- package/core/a11y/fake-mousedown.d.ts +0 -8
- package/core/a11y/fake-mousedown.js +0 -12
- package/core/a11y/fake-mousedown.js.map +0 -1
- package/core/a11y/fake-mousedown.metadata.json +0 -1
- package/core/a11y/focus-trap.d.ts +0 -41
- package/core/a11y/focus-trap.html +0 -1
- package/core/a11y/focus-trap.js +0 -129
- package/core/a11y/focus-trap.js.map +0 -1
- package/core/a11y/focus-trap.metadata.json +0 -1
- package/core/a11y/index.d.ts +0 -7
- package/core/a11y/index.js +0 -40
- package/core/a11y/index.js.map +0 -1
- package/core/a11y/index.metadata.json +0 -1
- package/core/a11y/interactivity-checker.d.ts +0 -45
- package/core/a11y/interactivity-checker.js +0 -210
- package/core/a11y/interactivity-checker.js.map +0 -1
- package/core/a11y/interactivity-checker.metadata.json +0 -1
- package/core/a11y/list-key-manager.d.ts +0 -83
- package/core/a11y/list-key-manager.js +0 -157
- package/core/a11y/list-key-manager.js.map +0 -1
- package/core/a11y/list-key-manager.metadata.json +0 -1
- package/core/a11y/live-announcer.d.ts +0 -17
- package/core/a11y/live-announcer.js +0 -63
- package/core/a11y/live-announcer.js.map +0 -1
- package/core/a11y/live-announcer.metadata.json +0 -1
- package/core/animation/animation.d.ts +0 -13
- package/core/animation/animation.js +0 -21
- package/core/animation/animation.js.map +0 -1
- package/core/animation/animation.metadata.json +0 -1
- package/core/async/promise-completer.d.ts +0 -7
- package/core/async/promise-completer.js +0 -13
- package/core/async/promise-completer.js.map +0 -1
- package/core/async/promise-completer.metadata.json +0 -1
- package/core/coercion/boolean-property.d.ts +0 -2
- package/core/coercion/boolean-property.js +0 -6
- package/core/coercion/boolean-property.js.map +0 -1
- package/core/coercion/boolean-property.metadata.json +0 -1
- package/core/coercion/number-property.d.ts +0 -2
- package/core/coercion/number-property.js +0 -10
- package/core/coercion/number-property.js.map +0 -1
- package/core/coercion/number-property.metadata.json +0 -1
- package/core/compatibility/default-mode.d.ts +0 -19
- package/core/compatibility/default-mode.js +0 -61
- package/core/compatibility/default-mode.js.map +0 -1
- package/core/compatibility/default-mode.metadata.json +0 -1
- package/core/compatibility/no-conflict-mode.d.ts +0 -10
- package/core/compatibility/no-conflict-mode.js +0 -47
- package/core/compatibility/no-conflict-mode.js.map +0 -1
- package/core/compatibility/no-conflict-mode.metadata.json +0 -1
- package/core/coordination/unique-selection-dispatcher.d.ts +0 -21
- package/core/coordination/unique-selection-dispatcher.js +0 -46
- package/core/coordination/unique-selection-dispatcher.js.map +0 -1
- package/core/coordination/unique-selection-dispatcher.metadata.json +0 -1
- package/core/core.d.ts +0 -45
- package/core/core.js +0 -110
- package/core/core.js.map +0 -1
- package/core/core.metadata.json +0 -1
- package/core/errors/error.d.ts +0 -7
- package/core/errors/error.js +0 -20
- package/core/errors/error.js.map +0 -1
- package/core/errors/error.metadata.json +0 -1
- package/core/gestures/gesture-annotations.d.ts +0 -44
- package/core/gestures/gesture-annotations.js +0 -7
- package/core/gestures/gesture-annotations.js.map +0 -1
- package/core/gestures/gesture-config.js +0 -85
- package/core/gestures/gesture-config.js.map +0 -1
- package/core/gestures/gesture-config.metadata.json +0 -1
- package/core/index.js +0 -3
- package/core/index.js.map +0 -1
- package/core/keyboard/keycodes.d.ts +0 -14
- package/core/keyboard/keycodes.js +0 -20
- package/core/keyboard/keycodes.js.map +0 -1
- package/core/keyboard/keycodes.metadata.json +0 -1
- package/core/line/line.d.ts +0 -23
- package/core/line/line.js +0 -74
- package/core/line/line.js.map +0 -1
- package/core/line/line.metadata.json +0 -1
- package/core/observe-content/observe-content.d.ts +0 -17
- package/core/observe-content/observe-content.js +0 -66
- package/core/observe-content/observe-content.js.map +0 -1
- package/core/observe-content/observe-content.metadata.json +0 -1
- package/core/overlay/_overlay.scss +0 -68
- package/core/overlay/generic-component-type.d.ts +0 -3
- package/core/overlay/generic-component-type.js +0 -3
- package/core/overlay/generic-component-type.js.map +0 -1
- package/core/overlay/overlay-container.d.ts +0 -19
- package/core/overlay/overlay-container.js +0 -33
- package/core/overlay/overlay-container.js.map +0 -1
- package/core/overlay/overlay-container.metadata.json +0 -1
- package/core/overlay/overlay-directives.d.ts +0 -80
- package/core/overlay/overlay-directives.js +0 -316
- package/core/overlay/overlay-directives.js.map +0 -1
- package/core/overlay/overlay-directives.metadata.json +0 -1
- package/core/overlay/overlay-ref.d.ts +0 -56
- package/core/overlay/overlay-ref.js +0 -155
- package/core/overlay/overlay-ref.js.map +0 -1
- package/core/overlay/overlay-ref.metadata.json +0 -1
- package/core/overlay/overlay-state.d.ts +0 -24
- package/core/overlay/overlay-state.js +0 -17
- package/core/overlay/overlay-state.js.map +0 -1
- package/core/overlay/overlay-state.metadata.json +0 -1
- package/core/overlay/overlay.d.ts +0 -54
- package/core/overlay/overlay.js +0 -97
- package/core/overlay/overlay.js.map +0 -1
- package/core/overlay/overlay.metadata.json +0 -1
- package/core/overlay/position/connected-position-strategy.d.ts +0 -133
- package/core/overlay/position/connected-position-strategy.js +0 -292
- package/core/overlay/position/connected-position-strategy.js.map +0 -1
- package/core/overlay/position/connected-position-strategy.metadata.json +0 -1
- package/core/overlay/position/connected-position.d.ts +0 -56
- package/core/overlay/position/connected-position.js +0 -65
- package/core/overlay/position/connected-position.js.map +0 -1
- package/core/overlay/position/connected-position.metadata.json +0 -1
- package/core/overlay/position/fake-viewport-ruler.d.ts +0 -15
- package/core/overlay/position/fake-viewport-ruler.js +0 -16
- package/core/overlay/position/fake-viewport-ruler.js.map +0 -1
- package/core/overlay/position/fake-viewport-ruler.metadata.json +0 -1
- package/core/overlay/position/global-position-strategy.d.ts +0 -75
- package/core/overlay/position/global-position-strategy.js +0 -148
- package/core/overlay/position/global-position-strategy.js.map +0 -1
- package/core/overlay/position/global-position-strategy.metadata.json +0 -1
- package/core/overlay/position/overlay-position-builder.d.ts +0 -21
- package/core/overlay/position/overlay-position-builder.js +0 -41
- package/core/overlay/position/overlay-position-builder.js.map +0 -1
- package/core/overlay/position/overlay-position-builder.metadata.json +0 -1
- package/core/overlay/position/position-strategy.d.ts +0 -7
- package/core/overlay/position/position-strategy.js +0 -3
- package/core/overlay/position/position-strategy.js.map +0 -1
- package/core/overlay/position/relative-position-strategy.d.ts +0 -9
- package/core/overlay/position/relative-position-strategy.js +0 -16
- package/core/overlay/position/relative-position-strategy.js.map +0 -1
- package/core/overlay/position/relative-position-strategy.metadata.json +0 -1
- package/core/overlay/position/viewport-ruler.d.ts +0 -16
- package/core/overlay/position/viewport-ruler.js +0 -67
- package/core/overlay/position/viewport-ruler.js.map +0 -1
- package/core/overlay/position/viewport-ruler.metadata.json +0 -1
- package/core/overlay/scroll/scroll-dispatcher.d.ts +0 -44
- package/core/overlay/scroll/scroll-dispatcher.js +0 -94
- package/core/overlay/scroll/scroll-dispatcher.js.map +0 -1
- package/core/overlay/scroll/scroll-dispatcher.metadata.json +0 -1
- package/core/overlay/scroll/scrollable.d.ts +0 -21
- package/core/overlay/scroll/scrollable.js +0 -48
- package/core/overlay/scroll/scrollable.js.map +0 -1
- package/core/overlay/scroll/scrollable.metadata.json +0 -1
- package/core/platform/features.d.ts +0 -2
- package/core/platform/features.js +0 -37
- package/core/platform/features.js.map +0 -1
- package/core/platform/features.metadata.json +0 -1
- package/core/platform/index.d.ts +0 -6
- package/core/platform/index.js +0 -30
- package/core/platform/index.js.map +0 -1
- package/core/platform/index.metadata.json +0 -1
- package/core/platform/platform.d.ts +0 -16
- package/core/platform/platform.js +0 -48
- package/core/platform/platform.js.map +0 -1
- package/core/platform/platform.metadata.json +0 -1
- package/core/portal/README.md +0 -72
- package/core/portal/dom-portal-host.d.ts +0 -31
- package/core/portal/dom-portal-host.js +0 -108
- package/core/portal/dom-portal-host.js.map +0 -1
- package/core/portal/dom-portal-host.metadata.json +0 -1
- package/core/portal/portal-directives.d.ts +0 -49
- package/core/portal/portal-directives.js +0 -148
- package/core/portal/portal-directives.js.map +0 -1
- package/core/portal/portal-directives.metadata.json +0 -1
- package/core/portal/portal-errors.d.ts +0 -43
- package/core/portal/portal-errors.js +0 -75
- package/core/portal/portal-errors.js.map +0 -1
- package/core/portal/portal-errors.metadata.json +0 -1
- package/core/portal/portal.d.ts +0 -85
- package/core/portal/portal.js +0 -155
- package/core/portal/portal.js.map +0 -1
- package/core/portal/portal.metadata.json +0 -1
- package/core/projection/projection.d.ts +0 -45
- package/core/projection/projection.js +0 -111
- package/core/projection/projection.js.map +0 -1
- package/core/projection/projection.metadata.json +0 -1
- package/core/ripple/README.md +0 -27
- package/core/ripple/_ripple.scss +0 -106
- package/core/ripple/ripple-renderer.d.ts +0 -76
- package/core/ripple/ripple-renderer.js +0 -177
- package/core/ripple/ripple-renderer.js.map +0 -1
- package/core/ripple/ripple-renderer.metadata.json +0 -1
- package/core/ripple/ripple.d.ts +0 -92
- package/core/ripple/ripple.js +0 -295
- package/core/ripple/ripple.js.map +0 -1
- package/core/ripple/ripple.metadata.json +0 -1
- package/core/rtl/dir.d.ts +0 -21
- package/core/rtl/dir.js +0 -87
- package/core/rtl/dir.js.map +0 -1
- package/core/rtl/dir.metadata.json +0 -1
- package/core/style/_button-common.scss +0 -7
- package/core/style/_elevation.scss +0 -174
- package/core/style/_form-common.scss +0 -12
- package/core/style/_layout-common.scss +0 -8
- package/core/style/_list-common.scss +0 -49
- package/core/style/_menu-common.scss +0 -89
- package/core/style/_variables.scss +0 -64
- package/core/style/apply-transform.d.ts +0 -6
- package/core/style/apply-transform.js +0 -14
- package/core/style/apply-transform.js.map +0 -1
- package/core/style/apply-transform.metadata.json +0 -1
- package/core/theming/_all-theme.scss +0 -52
- package/core/theming/_palette.scss +0 -694
- package/core/theming/_theming.scss +0 -84
- package/core/theming/prebuilt/deeppurple-amber.css +0 -1
- package/core/theming/prebuilt/deeppurple-amber.css.map +0 -1
- package/core/theming/prebuilt/deeppurple-amber.scss +0 -14
- package/core/theming/prebuilt/indigo-pink.css +0 -1
- package/core/theming/prebuilt/indigo-pink.css.map +0 -1
- package/core/theming/prebuilt/indigo-pink.scss +0 -14
- package/core/theming/prebuilt/pink-bluegrey.css +0 -1
- package/core/theming/prebuilt/pink-bluegrey.css.map +0 -1
- package/core/theming/prebuilt/pink-bluegrey.scss +0 -14
- package/core/theming/prebuilt/purple-green.css +0 -1
- package/core/theming/prebuilt/purple-green.css.map +0 -1
- package/core/theming/prebuilt/purple-green.scss +0 -14
- package/core/typography/_typography.scss +0 -6
- package/core/util/object-extend.d.ts +0 -8
- package/core/util/object-extend.js +0 -29
- package/core/util/object-extend.js.map +0 -1
- package/core/util/object-extend.metadata.json +0 -1
- package/core.js +0 -3
- package/core.js.map +0 -1
- package/dialog/OVERVIEW.md +0 -39
- package/dialog/README.md +0 -102
- package/dialog/_dialog-theme.scss +0 -11
- package/dialog/dialog-config.d.ts +0 -26
- package/dialog/dialog-config.js +0 -19
- package/dialog/dialog-config.js.map +0 -1
- package/dialog/dialog-config.metadata.json +0 -1
- package/dialog/dialog-container.d.ts +0 -37
- package/dialog/dialog-container.html +0 -1
- package/dialog/dialog-container.js +0 -97
- package/dialog/dialog-container.js.map +0 -1
- package/dialog/dialog-container.metadata.json +0 -1
- package/dialog/dialog-content-directives.d.ts +0 -26
- package/dialog/dialog-content-directives.js +0 -81
- package/dialog/dialog-content-directives.js.map +0 -1
- package/dialog/dialog-content-directives.metadata.json +0 -1
- package/dialog/dialog-errors.d.ts +0 -8
- package/dialog/dialog-errors.js +0 -19
- package/dialog/dialog-errors.js.map +0 -1
- package/dialog/dialog-errors.metadata.json +0 -1
- package/dialog/dialog-injector.d.ts +0 -9
- package/dialog/dialog-injector.js +0 -17
- package/dialog/dialog-injector.js.map +0 -1
- package/dialog/dialog-injector.metadata.json +0 -1
- package/dialog/dialog-ref.d.ts +0 -22
- package/dialog/dialog-ref.js +0 -31
- package/dialog/dialog-ref.js.map +0 -1
- package/dialog/dialog-ref.metadata.json +0 -1
- package/dialog/dialog.css +0 -1
- package/dialog/dialog.css.map +0 -1
- package/dialog/dialog.d.ts +0 -57
- package/dialog/dialog.js +0 -157
- package/dialog/dialog.js.map +0 -1
- package/dialog/dialog.metadata.json +0 -1
- package/dialog/dialog.scss +0 -54
- package/dialog/index.js +0 -59
- package/dialog/index.js.map +0 -1
- package/grid-list/OVERVIEW.md +0 -43
- package/grid-list/README.md +0 -105
- package/grid-list/_grid-list-theme.scss +0 -6
- package/grid-list/grid-list-errors.d.ts +0 -22
- package/grid-list/grid-list-errors.js +0 -41
- package/grid-list/grid-list-errors.js.map +0 -1
- package/grid-list/grid-list-errors.metadata.json +0 -1
- package/grid-list/grid-list-measure.d.ts +0 -10
- package/grid-list/grid-list-measure.js +0 -16
- package/grid-list/grid-list-measure.js.map +0 -1
- package/grid-list/grid-list-measure.metadata.json +0 -1
- package/grid-list/grid-list.css +0 -1
- package/grid-list/grid-list.css.map +0 -1
- package/grid-list/grid-list.d.ts +0 -49
- package/grid-list/grid-list.html +0 -1
- package/grid-list/grid-list.js +0 -166
- package/grid-list/grid-list.js.map +0 -1
- package/grid-list/grid-list.metadata.json +0 -1
- package/grid-list/grid-list.scss +0 -91
- package/grid-list/grid-tile-text.html +0 -1
- package/grid-list/grid-tile.d.ts +0 -30
- package/grid-list/grid-tile.html +0 -1
- package/grid-list/grid-tile.js +0 -81
- package/grid-list/grid-tile.js.map +0 -1
- package/grid-list/grid-tile.metadata.json +0 -1
- package/grid-list/index.js +0 -3
- package/grid-list/index.js.map +0 -1
- package/grid-list/tile-coordinator.d.ts +0 -56
- package/grid-list/tile-coordinator.js +0 -129
- package/grid-list/tile-coordinator.js.map +0 -1
- package/grid-list/tile-coordinator.metadata.json +0 -1
- package/grid-list/tile-styler.d.ts +0 -112
- package/grid-list/tile-styler.js +0 -211
- package/grid-list/tile-styler.js.map +0 -1
- package/grid-list/tile-styler.metadata.json +0 -1
- package/icon/OVERVIEW.md +0 -88
- package/icon/README.md +0 -129
- package/icon/_icon-theme.scss +0 -25
- package/icon/fake-svgs.d.ts +0 -6
- package/icon/fake-svgs.js +0 -31
- package/icon/fake-svgs.js.map +0 -1
- package/icon/fake-svgs.metadata.json +0 -1
- package/icon/icon-registry.d.ts +0 -180
- package/icon/icon-registry.js +0 -413
- package/icon/icon-registry.js.map +0 -1
- package/icon/icon-registry.metadata.json +0 -1
- package/icon/icon.css +0 -1
- package/icon/icon.css.map +0 -1
- package/icon/icon.d.ts +0 -91
- package/icon/icon.js +0 -264
- package/icon/icon.js.map +0 -1
- package/icon/icon.metadata.json +0 -1
- package/icon/icon.scss +0 -13
- package/icon/index.js +0 -3
- package/icon/index.js.map +0 -1
- package/index.d.ts +0 -25
- package/index.js +0 -27
- package/index.js.map +0 -1
- package/index.metadata.json +0 -1
- package/input/OVERVIEW.md +0 -72
- package/input/README.md +0 -183
- package/input/_input-theme.scss +0 -62
- package/input/autosize.d.ts +0 -29
- package/input/autosize.js +0 -94
- package/input/autosize.js.map +0 -1
- package/input/autosize.metadata.json +0 -1
- package/input/index.js +0 -6
- package/input/index.js.map +0 -1
- package/input/input-container-errors.d.ts +0 -17
- package/input/input-container-errors.js +0 -41
- package/input/input-container-errors.js.map +0 -1
- package/input/input-container-errors.metadata.json +0 -1
- package/input/input-container.css +0 -1
- package/input/input-container.css.map +0 -1
- package/input/input-container.d.ts +0 -95
- package/input/input-container.html +0 -1
- package/input/input-container.js +0 -352
- package/input/input-container.js.map +0 -1
- package/input/input-container.metadata.json +0 -1
- package/input/input-container.scss +0 -32
- package/input/input.css +0 -1
- package/input/input.css.map +0 -1
- package/input/input.d.ts +0 -184
- package/input/input.html +0 -1
- package/input/input.js +0 -564
- package/input/input.js.map +0 -1
- package/input/input.metadata.json +0 -1
- package/input/input.scss +0 -202
- package/list/OVERVIEW.md +0 -124
- package/list/README.md +0 -154
- package/list/_list-theme.scss +0 -28
- package/list/index.js +0 -3
- package/list/index.js.map +0 -1
- package/list/list-item.html +0 -1
- package/list/list.css +0 -1
- package/list/list.css.map +0 -1
- package/list/list.d.ts +0 -23
- package/list/list.js +0 -119
- package/list/list.js.map +0 -1
- package/list/list.metadata.json +0 -1
- package/list/list.scss +0 -181
- package/menu/OVERVIEW.md +0 -62
- package/menu/README.md +0 -171
- package/menu/_menu-theme.scss +0 -29
- package/menu/index.js +0 -7
- package/menu/index.js.map +0 -1
- package/menu/menu-animations.d.ts +0 -19
- package/menu/menu-animations.js +0 -43
- package/menu/menu-animations.js.map +0 -1
- package/menu/menu-animations.metadata.json +0 -1
- package/menu/menu-directive.d.ts +0 -46
- package/menu/menu-directive.js +0 -136
- package/menu/menu-directive.js.map +0 -1
- package/menu/menu-directive.metadata.json +0 -1
- package/menu/menu-errors.d.ts +0 -24
- package/menu/menu-errors.js +0 -43
- package/menu/menu-errors.js.map +0 -1
- package/menu/menu-errors.metadata.json +0 -1
- package/menu/menu-item.d.ts +0 -20
- package/menu/menu-item.html +0 -1
- package/menu/menu-item.js +0 -77
- package/menu/menu-item.js.map +0 -1
- package/menu/menu-item.metadata.json +0 -1
- package/menu/menu-panel.d.ts +0 -10
- package/menu/menu-panel.js +0 -3
- package/menu/menu-panel.js.map +0 -1
- package/menu/menu-positions.d.ts +0 -2
- package/menu/menu-positions.js +0 -3
- package/menu/menu-positions.js.map +0 -1
- package/menu/menu-trigger.d.ts +0 -92
- package/menu/menu-trigger.js +0 -246
- package/menu/menu-trigger.js.map +0 -1
- package/menu/menu-trigger.metadata.json +0 -1
- package/menu/menu.css +0 -1
- package/menu/menu.css.map +0 -1
- package/menu/menu.d.ts +0 -9
- package/menu/menu.html +0 -1
- package/menu/menu.js +0 -40
- package/menu/menu.js.map +0 -1
- package/menu/menu.metadata.json +0 -1
- package/menu/menu.scss +0 -44
- package/module.d.ts +0 -6
- package/module.js +0 -132
- package/module.js.map +0 -1
- package/module.metadata.json +0 -1
- package/progress-bar/OVERVIEW.md +0 -30
- package/progress-bar/README.md +0 -54
- package/progress-bar/_progress-bar-theme.scss +0 -70
- package/progress-bar/index.js +0 -3
- package/progress-bar/index.js.map +0 -1
- package/progress-bar/progress-bar.css +0 -1
- package/progress-bar/progress-bar.css.map +0 -1
- package/progress-bar/progress-bar.d.ts +0 -36
- package/progress-bar/progress-bar.html +0 -1
- package/progress-bar/progress-bar.js +0 -124
- package/progress-bar/progress-bar.js.map +0 -1
- package/progress-bar/progress-bar.metadata.json +0 -1
- package/progress-bar/progress-bar.scss +0 -230
- package/progress-spinner/OVERVIEW.md +0 -23
- package/progress-spinner/README.md +0 -51
- package/progress-spinner/_progress-spinner-theme.scss +0 -23
- package/progress-spinner/index.js +0 -4
- package/progress-spinner/index.js.map +0 -1
- package/progress-spinner/progress-circle.d.ts +0 -4
- package/progress-spinner/progress-circle.js +0 -6
- package/progress-spinner/progress-circle.js.map +0 -1
- package/progress-spinner/progress-circle.metadata.json +0 -1
- package/progress-spinner/progress-spinner.css +0 -1
- package/progress-spinner/progress-spinner.css.map +0 -1
- package/progress-spinner/progress-spinner.d.ts +0 -80
- package/progress-spinner/progress-spinner.html +0 -1
- package/progress-spinner/progress-spinner.js +0 -337
- package/progress-spinner/progress-spinner.js.map +0 -1
- package/progress-spinner/progress-spinner.metadata.json +0 -1
- package/progress-spinner/progress-spinner.scss +0 -68
- package/radio/OVERVIEW.md +0 -29
- package/radio/README.md +0 -55
- package/radio/_radio-theme.scss +0 -39
- package/radio/index.js +0 -3
- package/radio/index.js.map +0 -1
- package/radio/radio.css +0 -1
- package/radio/radio.css.map +0 -1
- package/radio/radio.d.ts +0 -179
- package/radio/radio.html +0 -1
- package/radio/radio.js +0 -552
- package/radio/radio.js.map +0 -1
- package/radio/radio.metadata.json +0 -1
- package/radio/radio.scss +0 -102
- package/select/OVERVIEW.md +0 -8
- package/select/README.md +0 -3
- package/select/_select-theme.scss +0 -64
- package/select/index.js +0 -38
- package/select/index.js.map +0 -1
- package/select/option.d.ts +0 -44
- package/select/option.html +0 -1
- package/select/option.js +0 -135
- package/select/option.js.map +0 -1
- package/select/option.metadata.json +0 -1
- package/select/select-animations.d.ts +0 -29
- package/select/select-animations.js +0 -66
- package/select/select-animations.js.map +0 -1
- package/select/select-animations.metadata.json +0 -1
- package/select/select.css +0 -1
- package/select/select.css.map +0 -1
- package/select/select.d.ts +0 -258
- package/select/select.html +0 -1
- package/select/select.js +0 -604
- package/select/select.js.map +0 -1
- package/select/select.metadata.json +0 -1
- package/select/select.scss +0 -131
- package/sidenav/OVERVIEW.md +0 -70
- package/sidenav/README.md +0 -166
- package/sidenav/_sidenav-theme.scss +0 -37
- package/sidenav/index.js +0 -3
- package/sidenav/index.js.map +0 -1
- package/sidenav/sidenav-container.html +0 -1
- package/sidenav/sidenav-transitions.css +0 -1
- package/sidenav/sidenav-transitions.css.map +0 -1
- package/sidenav/sidenav-transitions.scss +0 -14
- package/sidenav/sidenav.css +0 -1
- package/sidenav/sidenav.css.map +0 -1
- package/sidenav/sidenav.d.ts +0 -182
- package/sidenav/sidenav.html +0 -1
- package/sidenav/sidenav.js +0 -580
- package/sidenav/sidenav.js.map +0 -1
- package/sidenav/sidenav.metadata.json +0 -1
- package/sidenav/sidenav.scss +0 -151
- package/slide-toggle/OVERVIEW.md +0 -24
- package/slide-toggle/README.md +0 -66
- package/slide-toggle/_slide-toggle-theme.scss +0 -89
- package/slide-toggle/index.js +0 -3
- package/slide-toggle/index.js.map +0 -1
- package/slide-toggle/slide-toggle.css +0 -1
- package/slide-toggle/slide-toggle.css.map +0 -1
- package/slide-toggle/slide-toggle.d.ts +0 -84
- package/slide-toggle/slide-toggle.html +0 -1
- package/slide-toggle/slide-toggle.js +0 -347
- package/slide-toggle/slide-toggle.js.map +0 -1
- package/slide-toggle/slide-toggle.metadata.json +0 -1
- package/slide-toggle/slide-toggle.scss +0 -158
- package/slider/OVERVIEW.md +0 -87
- package/slider/README.md +0 -150
- package/slider/_slider-theme.scss +0 -32
- package/slider/index.js +0 -3
- package/slider/index.js.map +0 -1
- package/slider/slider.css +0 -1
- package/slider/slider.css.map +0 -1
- package/slider/slider.d.ts +0 -176
- package/slider/slider.html +0 -1
- package/slider/slider.js +0 -609
- package/slider/slider.js.map +0 -1
- package/slider/slider.metadata.json +0 -1
- package/slider/slider.scss +0 -307
- package/slider/test-gesture-config.d.ts +0 -21
- package/slider/test-gesture-config.js +0 -60
- package/slider/test-gesture-config.js.map +0 -1
- package/slider/test-gesture-config.metadata.json +0 -1
- package/snack-bar/OVERVIEW.md +0 -47
- package/snack-bar/README.md +0 -37
- package/snack-bar/index.js +0 -6
- package/snack-bar/index.js.map +0 -1
- package/snack-bar/simple-snack-bar.css +0 -1
- package/snack-bar/simple-snack-bar.css.map +0 -1
- package/snack-bar/simple-snack-bar.d.ts +0 -17
- package/snack-bar/simple-snack-bar.html +0 -1
- package/snack-bar/simple-snack-bar.js +0 -38
- package/snack-bar/simple-snack-bar.js.map +0 -1
- package/snack-bar/simple-snack-bar.metadata.json +0 -1
- package/snack-bar/simple-snack-bar.scss +0 -28
- package/snack-bar/snack-bar-config.d.ts +0 -15
- package/snack-bar/snack-bar-config.js +0 -18
- package/snack-bar/snack-bar-config.js.map +0 -1
- package/snack-bar/snack-bar-config.metadata.json +0 -1
- package/snack-bar/snack-bar-container.css +0 -1
- package/snack-bar/snack-bar-container.css.map +0 -1
- package/snack-bar/snack-bar-container.d.ts +0 -43
- package/snack-bar/snack-bar-container.html +0 -1
- package/snack-bar/snack-bar-container.js +0 -124
- package/snack-bar/snack-bar-container.js.map +0 -1
- package/snack-bar/snack-bar-container.metadata.json +0 -1
- package/snack-bar/snack-bar-container.scss +0 -27
- package/snack-bar/snack-bar-errors.d.ts +0 -8
- package/snack-bar/snack-bar-errors.js +0 -19
- package/snack-bar/snack-bar-errors.js.map +0 -1
- package/snack-bar/snack-bar-errors.metadata.json +0 -1
- package/snack-bar/snack-bar-ref.d.ts +0 -38
- package/snack-bar/snack-bar-ref.js +0 -70
- package/snack-bar/snack-bar-ref.js.map +0 -1
- package/snack-bar/snack-bar-ref.metadata.json +0 -1
- package/snack-bar/snack-bar.d.ts +0 -45
- package/snack-bar/snack-bar.js +0 -145
- package/snack-bar/snack-bar.js.map +0 -1
- package/snack-bar/snack-bar.metadata.json +0 -1
- package/system-config-spec.d.ts +0 -2
- package/tabs/OVERVIEW.md +0 -81
- package/tabs/README.md +0 -64
- package/tabs/Tabs Pagination.png +0 -0
- package/tabs/_tabs-common.scss +0 -42
- package/tabs/_tabs-theme.scss +0 -24
- package/tabs/index.js +0 -9
- package/tabs/index.js.map +0 -1
- package/tabs/ink-bar.d.ts +0 -27
- package/tabs/ink-bar.js +0 -58
- package/tabs/ink-bar.js.map +0 -1
- package/tabs/ink-bar.metadata.json +0 -1
- package/tabs/tab-body.d.ts +0 -59
- package/tabs/tab-body.html +0 -1
- package/tabs/tab-body.js +0 -157
- package/tabs/tab-body.js.map +0 -1
- package/tabs/tab-body.metadata.json +0 -1
- package/tabs/tab-group.css +0 -1
- package/tabs/tab-group.css.map +0 -1
- package/tabs/tab-group.d.ts +0 -71
- package/tabs/tab-group.html +0 -1
- package/tabs/tab-group.js +0 -236
- package/tabs/tab-group.js.map +0 -1
- package/tabs/tab-group.metadata.json +0 -1
- package/tabs/tab-group.scss +0 -59
- package/tabs/tab-header.css +0 -1
- package/tabs/tab-header.css.map +0 -1
- package/tabs/tab-header.d.ts +0 -137
- package/tabs/tab-header.html +0 -1
- package/tabs/tab-header.js +0 -354
- package/tabs/tab-header.js.map +0 -1
- package/tabs/tab-header.metadata.json +0 -1
- package/tabs/tab-header.scss +0 -85
- package/tabs/tab-label-wrapper.d.ts +0 -15
- package/tabs/tab-label-wrapper.js +0 -53
- package/tabs/tab-label-wrapper.js.map +0 -1
- package/tabs/tab-label-wrapper.metadata.json +0 -1
- package/tabs/tab-label.d.ts +0 -6
- package/tabs/tab-label.js +0 -32
- package/tabs/tab-label.js.map +0 -1
- package/tabs/tab-label.metadata.json +0 -1
- package/tabs/tab-nav-bar/index.d.ts +0 -1
- package/tabs/tab-nav-bar/index.js +0 -3
- package/tabs/tab-nav-bar/index.js.map +0 -1
- package/tabs/tab-nav-bar/index.metadata.json +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.css +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.css.map +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +0 -37
- package/tabs/tab-nav-bar/tab-nav-bar.html +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.js +0 -103
- package/tabs/tab-nav-bar/tab-nav-bar.js.map +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.metadata.json +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.scss +0 -26
- package/tabs/tab.d.ts +0 -30
- package/tabs/tab.html +0 -1
- package/tabs/tab.js +0 -74
- package/tabs/tab.js.map +0 -1
- package/tabs/tab.metadata.json +0 -1
- package/toolbar/OVERVIEW.md +0 -51
- package/toolbar/README.md +0 -68
- package/toolbar/_toolbar-theme.scss +0 -33
- package/toolbar/index.js +0 -3
- package/toolbar/index.js.map +0 -1
- package/toolbar/toolbar.css +0 -1
- package/toolbar/toolbar.css.map +0 -1
- package/toolbar/toolbar.d.ts +0 -16
- package/toolbar/toolbar.html +0 -1
- package/toolbar/toolbar.js +0 -84
- package/toolbar/toolbar.js.map +0 -1
- package/toolbar/toolbar.metadata.json +0 -1
- package/toolbar/toolbar.scss +0 -58
- package/tooltip/OVERVIEW.md +0 -35
- package/tooltip/README.md +0 -28
- package/tooltip/_tooltip-theme.scss +0 -9
- package/tooltip/index.js +0 -3
- package/tooltip/index.js.map +0 -1
- package/tooltip/tooltip-errors.d.ts +0 -8
- package/tooltip/tooltip-errors.js +0 -19
- package/tooltip/tooltip-errors.js.map +0 -1
- package/tooltip/tooltip-errors.metadata.json +0 -1
- package/tooltip/tooltip.css +0 -1
- package/tooltip/tooltip.css.map +0 -1
- package/tooltip/tooltip.d.ts +0 -116
- package/tooltip/tooltip.html +0 -1
- package/tooltip/tooltip.js +0 -387
- package/tooltip/tooltip.js.map +0 -1
- package/tooltip/tooltip.metadata.json +0 -1
- package/tooltip/tooltip.scss +0 -26
- package/tsconfig-srcs.json +0 -31
- package/tsconfig.json +0 -34
- package/typedoc.json +0 -20
- package/typings.d.ts +0 -1
|
@@ -0,0 +1,1813 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
9
|
+
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
10
|
+
import { CommonModule } from '@angular/common';
|
|
11
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Directive, ElementRef, EventEmitter, Inject, Injectable, InjectionToken, Input, NgModule, NgZone, Optional, Output, Renderer2, ViewChild, ViewContainerRef, ViewEncapsulation, forwardRef } from '@angular/core';
|
|
12
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
13
|
+
import { MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
14
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
+
import { DOWN_ARROW, END, ENTER, ESCAPE, HOME, LEFT_ARROW, PAGE_DOWN, PAGE_UP, RIGHT_ARROW, UP_ARROW } from '@angular/cdk/keycodes';
|
|
16
|
+
import { DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
17
|
+
import { first } from 'rxjs/operator/first';
|
|
18
|
+
import { Subject } from 'rxjs/Subject';
|
|
19
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
20
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
21
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
22
|
+
import { first as first$1 } from '@angular/cdk/rxjs';
|
|
23
|
+
import { DOCUMENT } from '@angular/platform-browser';
|
|
24
|
+
import { Subscription } from 'rxjs/Subscription';
|
|
25
|
+
import { NG_VALIDATORS, NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
|
|
26
|
+
import { MatFormField } from '@angular/material/form-field';
|
|
27
|
+
import { merge } from 'rxjs/observable/merge';
|
|
28
|
+
import { of } from 'rxjs/observable/of';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Function that attempts to coerce a value to a date using a DateAdapter. Date instances, null,
|
|
32
|
+
* and undefined will be passed through. Empty strings will be coerced to null. Valid ISO 8601
|
|
33
|
+
* strings (https://www.ietf.org/rfc/rfc3339.txt) will be coerced to dates. All other values will
|
|
34
|
+
* result in an error being thrown.
|
|
35
|
+
* @throws Throws when the value cannot be coerced.
|
|
36
|
+
* @template D
|
|
37
|
+
* @param {?} adapter The date adapter to use for coercion
|
|
38
|
+
* @param {?} value The value to coerce.
|
|
39
|
+
* @return {?} A date object coerced from the value.
|
|
40
|
+
*/
|
|
41
|
+
function coerceDateProperty(adapter, value) {
|
|
42
|
+
if (typeof value === 'string') {
|
|
43
|
+
if (value == '') {
|
|
44
|
+
value = null;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
value = adapter.fromIso8601(value) || value;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (value == null || adapter.isDateInstance(value)) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
throw Error(`Datepicker: Value must be either a date object recognized by the DateAdapter or ` +
|
|
54
|
+
`an ISO 8601 string. Instead got: ${value}`);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* \@docs-private
|
|
59
|
+
* @param {?} provider
|
|
60
|
+
* @return {?}
|
|
61
|
+
*/
|
|
62
|
+
function createMissingDateImplError(provider) {
|
|
63
|
+
return Error(`MatDatepicker: No provider found for ${provider}. You must import one of the following ` +
|
|
64
|
+
`modules at your application root: MatNativeDateModule, or provide a custom implementation.`);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Datepicker data that requires internationalization.
|
|
69
|
+
*/
|
|
70
|
+
class MatDatepickerIntl {
|
|
71
|
+
constructor() {
|
|
72
|
+
/**
|
|
73
|
+
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
74
|
+
* components if the labels have changed after initialization.
|
|
75
|
+
*/
|
|
76
|
+
this.changes = new Subject();
|
|
77
|
+
/**
|
|
78
|
+
* A label for the calendar popup (used by screen readers).
|
|
79
|
+
*/
|
|
80
|
+
this.calendarLabel = 'Calendar';
|
|
81
|
+
/**
|
|
82
|
+
* A label for the button used to open the calendar popup (used by screen readers).
|
|
83
|
+
*/
|
|
84
|
+
this.openCalendarLabel = 'Open calendar';
|
|
85
|
+
/**
|
|
86
|
+
* A label for the previous month button (used by screen readers).
|
|
87
|
+
*/
|
|
88
|
+
this.prevMonthLabel = 'Previous month';
|
|
89
|
+
/**
|
|
90
|
+
* A label for the next month button (used by screen readers).
|
|
91
|
+
*/
|
|
92
|
+
this.nextMonthLabel = 'Next month';
|
|
93
|
+
/**
|
|
94
|
+
* A label for the previous year button (used by screen readers).
|
|
95
|
+
*/
|
|
96
|
+
this.prevYearLabel = 'Previous year';
|
|
97
|
+
/**
|
|
98
|
+
* A label for the next year button (used by screen readers).
|
|
99
|
+
*/
|
|
100
|
+
this.nextYearLabel = 'Next year';
|
|
101
|
+
/**
|
|
102
|
+
* A label for the 'switch to month view' button (used by screen readers).
|
|
103
|
+
*/
|
|
104
|
+
this.switchToMonthViewLabel = 'Change to month view';
|
|
105
|
+
/**
|
|
106
|
+
* A label for the 'switch to year view' button (used by screen readers).
|
|
107
|
+
*/
|
|
108
|
+
this.switchToYearViewLabel = 'Change to year view';
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
MatDatepickerIntl.decorators = [
|
|
112
|
+
{ type: Injectable },
|
|
113
|
+
];
|
|
114
|
+
/**
|
|
115
|
+
* @nocollapse
|
|
116
|
+
*/
|
|
117
|
+
MatDatepickerIntl.ctorParameters = () => [];
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* An internal class that represents the data corresponding to a single calendar cell.
|
|
121
|
+
* \@docs-private
|
|
122
|
+
*/
|
|
123
|
+
class MatCalendarCell {
|
|
124
|
+
/**
|
|
125
|
+
* @param {?} value
|
|
126
|
+
* @param {?} displayValue
|
|
127
|
+
* @param {?} ariaLabel
|
|
128
|
+
* @param {?} enabled
|
|
129
|
+
*/
|
|
130
|
+
constructor(value, displayValue, ariaLabel, enabled) {
|
|
131
|
+
this.value = value;
|
|
132
|
+
this.displayValue = displayValue;
|
|
133
|
+
this.ariaLabel = ariaLabel;
|
|
134
|
+
this.enabled = enabled;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* An internal component used to display calendar data in a table.
|
|
139
|
+
* \@docs-private
|
|
140
|
+
*/
|
|
141
|
+
class MatCalendarBody {
|
|
142
|
+
constructor() {
|
|
143
|
+
/**
|
|
144
|
+
* The number of columns in the table.
|
|
145
|
+
*/
|
|
146
|
+
this.numCols = 7;
|
|
147
|
+
/**
|
|
148
|
+
* Whether to allow selection of disabled cells.
|
|
149
|
+
*/
|
|
150
|
+
this.allowDisabledSelection = false;
|
|
151
|
+
/**
|
|
152
|
+
* The cell number of the active cell in the table.
|
|
153
|
+
*/
|
|
154
|
+
this.activeCell = 0;
|
|
155
|
+
/**
|
|
156
|
+
* The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be
|
|
157
|
+
* maintained even as the table resizes.
|
|
158
|
+
*/
|
|
159
|
+
this.cellAspectRatio = 1;
|
|
160
|
+
/**
|
|
161
|
+
* Emits when a new value is selected.
|
|
162
|
+
*/
|
|
163
|
+
this.selectedValueChange = new EventEmitter();
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @param {?} cell
|
|
167
|
+
* @return {?}
|
|
168
|
+
*/
|
|
169
|
+
_cellClicked(cell) {
|
|
170
|
+
if (!this.allowDisabledSelection && !cell.enabled) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
this.selectedValueChange.emit(cell.value);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The number of blank cells to put at the beginning for the first row.
|
|
177
|
+
* @return {?}
|
|
178
|
+
*/
|
|
179
|
+
get _firstRowOffset() {
|
|
180
|
+
return this.rows && this.rows.length && this.rows[0].length ?
|
|
181
|
+
this.numCols - this.rows[0].length : 0;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @param {?} rowIndex
|
|
185
|
+
* @param {?} colIndex
|
|
186
|
+
* @return {?}
|
|
187
|
+
*/
|
|
188
|
+
_isActiveCell(rowIndex, colIndex) {
|
|
189
|
+
let /** @type {?} */ cellNumber = rowIndex * this.numCols + colIndex;
|
|
190
|
+
// Account for the fact that the first row may not have as many cells.
|
|
191
|
+
if (rowIndex) {
|
|
192
|
+
cellNumber -= this._firstRowOffset;
|
|
193
|
+
}
|
|
194
|
+
return cellNumber == this.activeCell;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
MatCalendarBody.decorators = [
|
|
198
|
+
{ type: Component, args: [{selector: '[mat-calendar-body]',
|
|
199
|
+
template: "<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\"><td class=\"mat-calendar-body-label\" [attr.colspan]=\"numCols\" [style.paddingTop.%]=\"50 * cellAspectRatio / numCols\" [style.paddingBottom.%]=\"50 * cellAspectRatio / numCols\">{{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.%]=\"50 * cellAspectRatio / numCols\" [style.paddingBottom.%]=\"50 * cellAspectRatio / numCols\">{{_firstRowOffset >= labelMinRequiredCells ? label : ''}}</td><td *ngFor=\"let item of row; let colIndex = index\" role=\"gridcell\" class=\"mat-calendar-body-cell\" [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\" (click)=\"_cellClicked(item)\" [style.width.%]=\"100 / numCols\" [style.paddingTop.%]=\"50 * cellAspectRatio / numCols\" [style.paddingBottom.%]=\"50 * cellAspectRatio / numCols\"><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>",
|
|
200
|
+
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}[dir=rtl] .mat-calendar-body-label{text-align:right}"],
|
|
201
|
+
host: {
|
|
202
|
+
'class': 'mat-calendar-body',
|
|
203
|
+
},
|
|
204
|
+
encapsulation: ViewEncapsulation.None,
|
|
205
|
+
preserveWhitespaces: false,
|
|
206
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
207
|
+
},] },
|
|
208
|
+
];
|
|
209
|
+
/**
|
|
210
|
+
* @nocollapse
|
|
211
|
+
*/
|
|
212
|
+
MatCalendarBody.ctorParameters = () => [];
|
|
213
|
+
MatCalendarBody.propDecorators = {
|
|
214
|
+
'label': [{ type: Input },],
|
|
215
|
+
'rows': [{ type: Input },],
|
|
216
|
+
'todayValue': [{ type: Input },],
|
|
217
|
+
'selectedValue': [{ type: Input },],
|
|
218
|
+
'labelMinRequiredCells': [{ type: Input },],
|
|
219
|
+
'numCols': [{ type: Input },],
|
|
220
|
+
'allowDisabledSelection': [{ type: Input },],
|
|
221
|
+
'activeCell': [{ type: Input },],
|
|
222
|
+
'cellAspectRatio': [{ type: Input },],
|
|
223
|
+
'selectedValueChange': [{ type: Output },],
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
const DAYS_PER_WEEK = 7;
|
|
227
|
+
/**
|
|
228
|
+
* An internal component used to display a single month in the datepicker.
|
|
229
|
+
* \@docs-private
|
|
230
|
+
*/
|
|
231
|
+
class MatMonthView {
|
|
232
|
+
/**
|
|
233
|
+
* @param {?} _dateAdapter
|
|
234
|
+
* @param {?} _dateFormats
|
|
235
|
+
* @param {?} _changeDetectorRef
|
|
236
|
+
*/
|
|
237
|
+
constructor(_dateAdapter, _dateFormats, _changeDetectorRef) {
|
|
238
|
+
this._dateAdapter = _dateAdapter;
|
|
239
|
+
this._dateFormats = _dateFormats;
|
|
240
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
241
|
+
/**
|
|
242
|
+
* Emits when a new date is selected.
|
|
243
|
+
*/
|
|
244
|
+
this.selectedChange = new EventEmitter();
|
|
245
|
+
/**
|
|
246
|
+
* Emits when any date is selected.
|
|
247
|
+
*/
|
|
248
|
+
this._userSelection = new EventEmitter();
|
|
249
|
+
if (!this._dateAdapter) {
|
|
250
|
+
throw createMissingDateImplError('DateAdapter');
|
|
251
|
+
}
|
|
252
|
+
if (!this._dateFormats) {
|
|
253
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
254
|
+
}
|
|
255
|
+
const firstDayOfWeek = this._dateAdapter.getFirstDayOfWeek();
|
|
256
|
+
const narrowWeekdays = this._dateAdapter.getDayOfWeekNames('narrow');
|
|
257
|
+
const longWeekdays = this._dateAdapter.getDayOfWeekNames('long');
|
|
258
|
+
// Rotate the labels for days of the week based on the configured first day of the week.
|
|
259
|
+
let weekdays = longWeekdays.map((long, i) => {
|
|
260
|
+
return { long, narrow: narrowWeekdays[i] };
|
|
261
|
+
});
|
|
262
|
+
this._weekdays = weekdays.slice(firstDayOfWeek).concat(weekdays.slice(0, firstDayOfWeek));
|
|
263
|
+
this._activeDate = this._dateAdapter.today();
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* The date to display in this month view (everything other than the month and year is ignored).
|
|
267
|
+
* @return {?}
|
|
268
|
+
*/
|
|
269
|
+
get activeDate() { return this._activeDate; }
|
|
270
|
+
/**
|
|
271
|
+
* @param {?} value
|
|
272
|
+
* @return {?}
|
|
273
|
+
*/
|
|
274
|
+
set activeDate(value) {
|
|
275
|
+
let /** @type {?} */ oldActiveDate = this._activeDate;
|
|
276
|
+
this._activeDate = coerceDateProperty(this._dateAdapter, value) || this._dateAdapter.today();
|
|
277
|
+
if (!this._hasSameMonthAndYear(oldActiveDate, this._activeDate)) {
|
|
278
|
+
this._init();
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* The currently selected date.
|
|
283
|
+
* @return {?}
|
|
284
|
+
*/
|
|
285
|
+
get selected() { return this._selected; }
|
|
286
|
+
/**
|
|
287
|
+
* @param {?} value
|
|
288
|
+
* @return {?}
|
|
289
|
+
*/
|
|
290
|
+
set selected(value) {
|
|
291
|
+
this._selected = coerceDateProperty(this._dateAdapter, value);
|
|
292
|
+
this._selectedDate = this._getDateInCurrentMonth(this._selected);
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* @return {?}
|
|
296
|
+
*/
|
|
297
|
+
ngAfterContentInit() {
|
|
298
|
+
this._init();
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Handles when a new date is selected.
|
|
302
|
+
* @param {?} date
|
|
303
|
+
* @return {?}
|
|
304
|
+
*/
|
|
305
|
+
_dateSelected(date) {
|
|
306
|
+
if (this._selectedDate != date) {
|
|
307
|
+
const /** @type {?} */ selectedYear = this._dateAdapter.getYear(this.activeDate);
|
|
308
|
+
const /** @type {?} */ selectedMonth = this._dateAdapter.getMonth(this.activeDate);
|
|
309
|
+
const /** @type {?} */ selectedDate = this._dateAdapter.createDate(selectedYear, selectedMonth, date);
|
|
310
|
+
this.selectedChange.emit(selectedDate);
|
|
311
|
+
}
|
|
312
|
+
this._userSelection.emit();
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Initializes this month view.
|
|
316
|
+
* @return {?}
|
|
317
|
+
*/
|
|
318
|
+
_init() {
|
|
319
|
+
this._selectedDate = this._getDateInCurrentMonth(this.selected);
|
|
320
|
+
this._todayDate = this._getDateInCurrentMonth(this._dateAdapter.today());
|
|
321
|
+
this._monthLabel =
|
|
322
|
+
this._dateAdapter.getMonthNames('short')[this._dateAdapter.getMonth(this.activeDate)]
|
|
323
|
+
.toLocaleUpperCase();
|
|
324
|
+
let /** @type {?} */ firstOfMonth = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), 1);
|
|
325
|
+
this._firstWeekOffset =
|
|
326
|
+
(DAYS_PER_WEEK + this._dateAdapter.getDayOfWeek(firstOfMonth) -
|
|
327
|
+
this._dateAdapter.getFirstDayOfWeek()) % DAYS_PER_WEEK;
|
|
328
|
+
this._createWeekCells();
|
|
329
|
+
this._changeDetectorRef.markForCheck();
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Creates MatCalendarCells for the dates in this month.
|
|
333
|
+
* @return {?}
|
|
334
|
+
*/
|
|
335
|
+
_createWeekCells() {
|
|
336
|
+
let /** @type {?} */ daysInMonth = this._dateAdapter.getNumDaysInMonth(this.activeDate);
|
|
337
|
+
let /** @type {?} */ dateNames = this._dateAdapter.getDateNames();
|
|
338
|
+
this._weeks = [[]];
|
|
339
|
+
for (let /** @type {?} */ i = 0, /** @type {?} */ cell = this._firstWeekOffset; i < daysInMonth; i++, cell++) {
|
|
340
|
+
if (cell == DAYS_PER_WEEK) {
|
|
341
|
+
this._weeks.push([]);
|
|
342
|
+
cell = 0;
|
|
343
|
+
}
|
|
344
|
+
let /** @type {?} */ date = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), i + 1);
|
|
345
|
+
let /** @type {?} */ enabled = !this.dateFilter ||
|
|
346
|
+
this.dateFilter(date);
|
|
347
|
+
let /** @type {?} */ ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.dateA11yLabel);
|
|
348
|
+
this._weeks[this._weeks.length - 1]
|
|
349
|
+
.push(new MatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled));
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Gets the date in this month that the given Date falls on.
|
|
354
|
+
* Returns null if the given Date is in another month.
|
|
355
|
+
* @param {?} date
|
|
356
|
+
* @return {?}
|
|
357
|
+
*/
|
|
358
|
+
_getDateInCurrentMonth(date) {
|
|
359
|
+
return date && this._hasSameMonthAndYear(date, this.activeDate) ?
|
|
360
|
+
this._dateAdapter.getDate(date) : null;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Checks whether the 2 dates are non-null and fall within the same month of the same year.
|
|
364
|
+
* @param {?} d1
|
|
365
|
+
* @param {?} d2
|
|
366
|
+
* @return {?}
|
|
367
|
+
*/
|
|
368
|
+
_hasSameMonthAndYear(d1, d2) {
|
|
369
|
+
return !!(d1 && d2 && this._dateAdapter.getMonth(d1) == this._dateAdapter.getMonth(d2) &&
|
|
370
|
+
this._dateAdapter.getYear(d1) == this._dateAdapter.getYear(d2));
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
MatMonthView.decorators = [
|
|
374
|
+
{ type: Component, args: [{selector: 'mat-month-view',
|
|
375
|
+
template: "<table class=\"mat-calendar-table\"><thead class=\"mat-calendar-table-header\"><tr><th *ngFor=\"let day of _weekdays\" [attr.aria-label]=\"day.long\">{{day.narrow}}</th></tr><tr><th class=\"mat-calendar-table-header-divider\" colspan=\"7\" aria-hidden=\"true\"></th></tr></thead><tbody mat-calendar-body role=\"grid\" [label]=\"_monthLabel\" [rows]=\"_weeks\" [todayValue]=\"_todayDate\" [selectedValue]=\"_selectedDate\" [labelMinRequiredCells]=\"3\" [activeCell]=\"_dateAdapter.getDate(activeDate) - 1\" (selectedValueChange)=\"_dateSelected($event)\"></tbody></table>",
|
|
376
|
+
encapsulation: ViewEncapsulation.None,
|
|
377
|
+
preserveWhitespaces: false,
|
|
378
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
379
|
+
},] },
|
|
380
|
+
];
|
|
381
|
+
/**
|
|
382
|
+
* @nocollapse
|
|
383
|
+
*/
|
|
384
|
+
MatMonthView.ctorParameters = () => [
|
|
385
|
+
{ type: DateAdapter, decorators: [{ type: Optional },] },
|
|
386
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DATE_FORMATS,] },] },
|
|
387
|
+
{ type: ChangeDetectorRef, },
|
|
388
|
+
];
|
|
389
|
+
MatMonthView.propDecorators = {
|
|
390
|
+
'activeDate': [{ type: Input },],
|
|
391
|
+
'selected': [{ type: Input },],
|
|
392
|
+
'dateFilter': [{ type: Input },],
|
|
393
|
+
'selectedChange': [{ type: Output },],
|
|
394
|
+
'_userSelection': [{ type: Output },],
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* An internal component used to display a single year in the datepicker.
|
|
399
|
+
* \@docs-private
|
|
400
|
+
*/
|
|
401
|
+
class MatYearView {
|
|
402
|
+
/**
|
|
403
|
+
* @param {?} _dateAdapter
|
|
404
|
+
* @param {?} _dateFormats
|
|
405
|
+
* @param {?} _changeDetectorRef
|
|
406
|
+
*/
|
|
407
|
+
constructor(_dateAdapter, _dateFormats, _changeDetectorRef) {
|
|
408
|
+
this._dateAdapter = _dateAdapter;
|
|
409
|
+
this._dateFormats = _dateFormats;
|
|
410
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
411
|
+
/**
|
|
412
|
+
* Emits when a new month is selected.
|
|
413
|
+
*/
|
|
414
|
+
this.selectedChange = new EventEmitter();
|
|
415
|
+
if (!this._dateAdapter) {
|
|
416
|
+
throw createMissingDateImplError('DateAdapter');
|
|
417
|
+
}
|
|
418
|
+
if (!this._dateFormats) {
|
|
419
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
420
|
+
}
|
|
421
|
+
this._activeDate = this._dateAdapter.today();
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* The date to display in this year view (everything other than the year is ignored).
|
|
425
|
+
* @return {?}
|
|
426
|
+
*/
|
|
427
|
+
get activeDate() { return this._activeDate; }
|
|
428
|
+
/**
|
|
429
|
+
* @param {?} value
|
|
430
|
+
* @return {?}
|
|
431
|
+
*/
|
|
432
|
+
set activeDate(value) {
|
|
433
|
+
let /** @type {?} */ oldActiveDate = this._activeDate;
|
|
434
|
+
this._activeDate = coerceDateProperty(this._dateAdapter, value) || this._dateAdapter.today();
|
|
435
|
+
if (this._dateAdapter.getYear(oldActiveDate) != this._dateAdapter.getYear(this._activeDate)) {
|
|
436
|
+
this._init();
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* The currently selected date.
|
|
441
|
+
* @return {?}
|
|
442
|
+
*/
|
|
443
|
+
get selected() { return this._selected; }
|
|
444
|
+
/**
|
|
445
|
+
* @param {?} value
|
|
446
|
+
* @return {?}
|
|
447
|
+
*/
|
|
448
|
+
set selected(value) {
|
|
449
|
+
this._selected = coerceDateProperty(this._dateAdapter, value);
|
|
450
|
+
this._selectedMonth = this._getMonthInCurrentYear(this._selected);
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* @return {?}
|
|
454
|
+
*/
|
|
455
|
+
ngAfterContentInit() {
|
|
456
|
+
this._init();
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Handles when a new month is selected.
|
|
460
|
+
* @param {?} month
|
|
461
|
+
* @return {?}
|
|
462
|
+
*/
|
|
463
|
+
_monthSelected(month) {
|
|
464
|
+
let /** @type {?} */ daysInMonth = this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1));
|
|
465
|
+
this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Initializes this month view.
|
|
469
|
+
* @return {?}
|
|
470
|
+
*/
|
|
471
|
+
_init() {
|
|
472
|
+
this._selectedMonth = this._getMonthInCurrentYear(this.selected);
|
|
473
|
+
this._todayMonth = this._getMonthInCurrentYear(this._dateAdapter.today());
|
|
474
|
+
this._yearLabel = this._dateAdapter.getYearName(this.activeDate);
|
|
475
|
+
let /** @type {?} */ monthNames = this._dateAdapter.getMonthNames('short');
|
|
476
|
+
// First row of months only contains 5 elements so we can fit the year label on the same row.
|
|
477
|
+
this._months = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]].map(row => row.map(month => this._createCellForMonth(month, monthNames[month])));
|
|
478
|
+
this._changeDetectorRef.markForCheck();
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Gets the month in this year that the given Date falls on.
|
|
482
|
+
* Returns null if the given Date is in another year.
|
|
483
|
+
* @param {?} date
|
|
484
|
+
* @return {?}
|
|
485
|
+
*/
|
|
486
|
+
_getMonthInCurrentYear(date) {
|
|
487
|
+
return date && this._dateAdapter.getYear(date) == this._dateAdapter.getYear(this.activeDate) ?
|
|
488
|
+
this._dateAdapter.getMonth(date) : null;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Creates an MatCalendarCell for the given month.
|
|
492
|
+
* @param {?} month
|
|
493
|
+
* @param {?} monthName
|
|
494
|
+
* @return {?}
|
|
495
|
+
*/
|
|
496
|
+
_createCellForMonth(month, monthName) {
|
|
497
|
+
let /** @type {?} */ ariaLabel = this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1), this._dateFormats.display.monthYearA11yLabel);
|
|
498
|
+
return new MatCalendarCell(month, monthName.toLocaleUpperCase(), ariaLabel, this._isMonthEnabled(month));
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Whether the given month is enabled.
|
|
502
|
+
* @param {?} month
|
|
503
|
+
* @return {?}
|
|
504
|
+
*/
|
|
505
|
+
_isMonthEnabled(month) {
|
|
506
|
+
if (!this.dateFilter) {
|
|
507
|
+
return true;
|
|
508
|
+
}
|
|
509
|
+
let /** @type {?} */ firstOfMonth = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1);
|
|
510
|
+
// If any date in the month is enabled count the month as enabled.
|
|
511
|
+
for (let /** @type {?} */ date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {
|
|
512
|
+
if (this.dateFilter(date)) {
|
|
513
|
+
return true;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return false;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
MatYearView.decorators = [
|
|
520
|
+
{ type: Component, args: [{selector: 'mat-year-view',
|
|
521
|
+
template: "<table class=\"mat-calendar-table\"><thead class=\"mat-calendar-table-header\"><tr><th class=\"mat-calendar-table-header-divider\" colspan=\"4\"></th></tr></thead><tbody mat-calendar-body role=\"grid\" allowDisabledSelection=\"true\" [label]=\"_yearLabel\" [rows]=\"_months\" [todayValue]=\"_todayMonth\" [selectedValue]=\"_selectedMonth\" [labelMinRequiredCells]=\"2\" [numCols]=\"4\" [cellAspectRatio]=\"4 / 7\" [activeCell]=\"_dateAdapter.getMonth(activeDate)\" (selectedValueChange)=\"_monthSelected($event)\"></tbody></table>",
|
|
522
|
+
encapsulation: ViewEncapsulation.None,
|
|
523
|
+
preserveWhitespaces: false,
|
|
524
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
525
|
+
},] },
|
|
526
|
+
];
|
|
527
|
+
/**
|
|
528
|
+
* @nocollapse
|
|
529
|
+
*/
|
|
530
|
+
MatYearView.ctorParameters = () => [
|
|
531
|
+
{ type: DateAdapter, decorators: [{ type: Optional },] },
|
|
532
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DATE_FORMATS,] },] },
|
|
533
|
+
{ type: ChangeDetectorRef, },
|
|
534
|
+
];
|
|
535
|
+
MatYearView.propDecorators = {
|
|
536
|
+
'activeDate': [{ type: Input },],
|
|
537
|
+
'selected': [{ type: Input },],
|
|
538
|
+
'dateFilter': [{ type: Input },],
|
|
539
|
+
'selectedChange': [{ type: Output },],
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* A calendar that is used as part of the datepicker.
|
|
544
|
+
* \@docs-private
|
|
545
|
+
*/
|
|
546
|
+
class MatCalendar {
|
|
547
|
+
/**
|
|
548
|
+
* @param {?} _elementRef
|
|
549
|
+
* @param {?} _intl
|
|
550
|
+
* @param {?} _ngZone
|
|
551
|
+
* @param {?} _dateAdapter
|
|
552
|
+
* @param {?} _dateFormats
|
|
553
|
+
* @param {?} changeDetectorRef
|
|
554
|
+
*/
|
|
555
|
+
constructor(_elementRef, _intl, _ngZone, _dateAdapter, _dateFormats, changeDetectorRef) {
|
|
556
|
+
this._elementRef = _elementRef;
|
|
557
|
+
this._intl = _intl;
|
|
558
|
+
this._ngZone = _ngZone;
|
|
559
|
+
this._dateAdapter = _dateAdapter;
|
|
560
|
+
this._dateFormats = _dateFormats;
|
|
561
|
+
/**
|
|
562
|
+
* Whether the calendar should be started in month or year view.
|
|
563
|
+
*/
|
|
564
|
+
this.startView = 'month';
|
|
565
|
+
/**
|
|
566
|
+
* Emits when the currently selected date changes.
|
|
567
|
+
*/
|
|
568
|
+
this.selectedChange = new EventEmitter();
|
|
569
|
+
/**
|
|
570
|
+
* Emits when any date is selected.
|
|
571
|
+
*/
|
|
572
|
+
this._userSelection = new EventEmitter();
|
|
573
|
+
/**
|
|
574
|
+
* Date filter for the month and year views.
|
|
575
|
+
*/
|
|
576
|
+
this._dateFilterForViews = (date) => {
|
|
577
|
+
return !!date &&
|
|
578
|
+
(!this.dateFilter || this.dateFilter(date)) &&
|
|
579
|
+
(!this.minDate || this._dateAdapter.compareDate(date, this.minDate) >= 0) &&
|
|
580
|
+
(!this.maxDate || this._dateAdapter.compareDate(date, this.maxDate) <= 0);
|
|
581
|
+
};
|
|
582
|
+
if (!this._dateAdapter) {
|
|
583
|
+
throw createMissingDateImplError('DateAdapter');
|
|
584
|
+
}
|
|
585
|
+
if (!this._dateFormats) {
|
|
586
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
587
|
+
}
|
|
588
|
+
this._intlChanges = _intl.changes.subscribe(() => changeDetectorRef.markForCheck());
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* A date representing the period (month or year) to start the calendar in.
|
|
592
|
+
* @return {?}
|
|
593
|
+
*/
|
|
594
|
+
get startAt() { return this._startAt; }
|
|
595
|
+
/**
|
|
596
|
+
* @param {?} value
|
|
597
|
+
* @return {?}
|
|
598
|
+
*/
|
|
599
|
+
set startAt(value) { this._startAt = coerceDateProperty(this._dateAdapter, value); }
|
|
600
|
+
/**
|
|
601
|
+
* The currently selected date.
|
|
602
|
+
* @return {?}
|
|
603
|
+
*/
|
|
604
|
+
get selected() { return this._selected; }
|
|
605
|
+
/**
|
|
606
|
+
* @param {?} value
|
|
607
|
+
* @return {?}
|
|
608
|
+
*/
|
|
609
|
+
set selected(value) { this._selected = coerceDateProperty(this._dateAdapter, value); }
|
|
610
|
+
/**
|
|
611
|
+
* The minimum selectable date.
|
|
612
|
+
* @return {?}
|
|
613
|
+
*/
|
|
614
|
+
get minDate() { return this._minDate; }
|
|
615
|
+
/**
|
|
616
|
+
* @param {?} value
|
|
617
|
+
* @return {?}
|
|
618
|
+
*/
|
|
619
|
+
set minDate(value) { this._minDate = coerceDateProperty(this._dateAdapter, value); }
|
|
620
|
+
/**
|
|
621
|
+
* The maximum selectable date.
|
|
622
|
+
* @return {?}
|
|
623
|
+
*/
|
|
624
|
+
get maxDate() { return this._maxDate; }
|
|
625
|
+
/**
|
|
626
|
+
* @param {?} value
|
|
627
|
+
* @return {?}
|
|
628
|
+
*/
|
|
629
|
+
set maxDate(value) { this._maxDate = coerceDateProperty(this._dateAdapter, value); }
|
|
630
|
+
/**
|
|
631
|
+
* The current active date. This determines which time period is shown and which date is
|
|
632
|
+
* highlighted when using keyboard navigation.
|
|
633
|
+
* @return {?}
|
|
634
|
+
*/
|
|
635
|
+
get _activeDate() { return this._clampedActiveDate; }
|
|
636
|
+
/**
|
|
637
|
+
* @param {?} value
|
|
638
|
+
* @return {?}
|
|
639
|
+
*/
|
|
640
|
+
set _activeDate(value) {
|
|
641
|
+
this._clampedActiveDate = this._dateAdapter.clampDate(value, this.minDate, this.maxDate);
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* The label for the current calendar view.
|
|
645
|
+
* @return {?}
|
|
646
|
+
*/
|
|
647
|
+
get _periodButtonText() {
|
|
648
|
+
return this._monthView ?
|
|
649
|
+
this._dateAdapter.format(this._activeDate, this._dateFormats.display.monthYearLabel)
|
|
650
|
+
.toLocaleUpperCase() :
|
|
651
|
+
this._dateAdapter.getYearName(this._activeDate);
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* @return {?}
|
|
655
|
+
*/
|
|
656
|
+
get _periodButtonLabel() {
|
|
657
|
+
return this._monthView ? this._intl.switchToYearViewLabel : this._intl.switchToMonthViewLabel;
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* The label for the the previous button.
|
|
661
|
+
* @return {?}
|
|
662
|
+
*/
|
|
663
|
+
get _prevButtonLabel() {
|
|
664
|
+
return this._monthView ? this._intl.prevMonthLabel : this._intl.prevYearLabel;
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* The label for the the next button.
|
|
668
|
+
* @return {?}
|
|
669
|
+
*/
|
|
670
|
+
get _nextButtonLabel() {
|
|
671
|
+
return this._monthView ? this._intl.nextMonthLabel : this._intl.nextYearLabel;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* @return {?}
|
|
675
|
+
*/
|
|
676
|
+
ngAfterContentInit() {
|
|
677
|
+
this._activeDate = this.startAt || this._dateAdapter.today();
|
|
678
|
+
this._focusActiveCell();
|
|
679
|
+
this._monthView = this.startView != 'year';
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* @return {?}
|
|
683
|
+
*/
|
|
684
|
+
ngOnDestroy() {
|
|
685
|
+
this._intlChanges.unsubscribe();
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* @param {?} changes
|
|
689
|
+
* @return {?}
|
|
690
|
+
*/
|
|
691
|
+
ngOnChanges(changes) {
|
|
692
|
+
const /** @type {?} */ change = changes.minDate || changes.maxDate || changes.dateFilter;
|
|
693
|
+
if (change && !change.firstChange) {
|
|
694
|
+
const /** @type {?} */ view = this.monthView || this.yearView;
|
|
695
|
+
if (view) {
|
|
696
|
+
view._init();
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Handles date selection in the month view.
|
|
702
|
+
* @param {?} date
|
|
703
|
+
* @return {?}
|
|
704
|
+
*/
|
|
705
|
+
_dateSelected(date) {
|
|
706
|
+
if (!this._dateAdapter.sameDate(date, this.selected)) {
|
|
707
|
+
this.selectedChange.emit(date);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* @return {?}
|
|
712
|
+
*/
|
|
713
|
+
_userSelected() {
|
|
714
|
+
this._userSelection.emit();
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Handles month selection in the year view.
|
|
718
|
+
* @param {?} month
|
|
719
|
+
* @return {?}
|
|
720
|
+
*/
|
|
721
|
+
_monthSelected(month) {
|
|
722
|
+
this._activeDate = month;
|
|
723
|
+
this._monthView = true;
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Handles user clicks on the period label.
|
|
727
|
+
* @return {?}
|
|
728
|
+
*/
|
|
729
|
+
_currentPeriodClicked() {
|
|
730
|
+
this._monthView = !this._monthView;
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Handles user clicks on the previous button.
|
|
734
|
+
* @return {?}
|
|
735
|
+
*/
|
|
736
|
+
_previousClicked() {
|
|
737
|
+
this._activeDate = this._monthView ?
|
|
738
|
+
this._dateAdapter.addCalendarMonths(this._activeDate, -1) :
|
|
739
|
+
this._dateAdapter.addCalendarYears(this._activeDate, -1);
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Handles user clicks on the next button.
|
|
743
|
+
* @return {?}
|
|
744
|
+
*/
|
|
745
|
+
_nextClicked() {
|
|
746
|
+
this._activeDate = this._monthView ?
|
|
747
|
+
this._dateAdapter.addCalendarMonths(this._activeDate, 1) :
|
|
748
|
+
this._dateAdapter.addCalendarYears(this._activeDate, 1);
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* Whether the previous period button is enabled.
|
|
752
|
+
* @return {?}
|
|
753
|
+
*/
|
|
754
|
+
_previousEnabled() {
|
|
755
|
+
if (!this.minDate) {
|
|
756
|
+
return true;
|
|
757
|
+
}
|
|
758
|
+
return !this.minDate || !this._isSameView(this._activeDate, this.minDate);
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Whether the next period button is enabled.
|
|
762
|
+
* @return {?}
|
|
763
|
+
*/
|
|
764
|
+
_nextEnabled() {
|
|
765
|
+
return !this.maxDate || !this._isSameView(this._activeDate, this.maxDate);
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Handles keydown events on the calendar body.
|
|
769
|
+
* @param {?} event
|
|
770
|
+
* @return {?}
|
|
771
|
+
*/
|
|
772
|
+
_handleCalendarBodyKeydown(event) {
|
|
773
|
+
// TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent
|
|
774
|
+
// disabled ones from being selected. This may not be ideal, we should look into whether
|
|
775
|
+
// navigation should skip over disabled dates, and if so, how to implement that efficiently.
|
|
776
|
+
if (this._monthView) {
|
|
777
|
+
this._handleCalendarBodyKeydownInMonthView(event);
|
|
778
|
+
}
|
|
779
|
+
else {
|
|
780
|
+
this._handleCalendarBodyKeydownInYearView(event);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Focuses the active cell after the microtask queue is empty.
|
|
785
|
+
* @return {?}
|
|
786
|
+
*/
|
|
787
|
+
_focusActiveCell() {
|
|
788
|
+
this._ngZone.runOutsideAngular(() => {
|
|
789
|
+
first.call(this._ngZone.onStable.asObservable()).subscribe(() => {
|
|
790
|
+
this._elementRef.nativeElement.querySelector('.mat-calendar-body-active').focus();
|
|
791
|
+
});
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Whether the two dates represent the same view in the current view mode (month or year).
|
|
796
|
+
* @param {?} date1
|
|
797
|
+
* @param {?} date2
|
|
798
|
+
* @return {?}
|
|
799
|
+
*/
|
|
800
|
+
_isSameView(date1, date2) {
|
|
801
|
+
return this._monthView ?
|
|
802
|
+
this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&
|
|
803
|
+
this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2) :
|
|
804
|
+
this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2);
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* Handles keydown events on the calendar body when calendar is in month view.
|
|
808
|
+
* @param {?} event
|
|
809
|
+
* @return {?}
|
|
810
|
+
*/
|
|
811
|
+
_handleCalendarBodyKeydownInMonthView(event) {
|
|
812
|
+
switch (event.keyCode) {
|
|
813
|
+
case LEFT_ARROW:
|
|
814
|
+
this._activeDate = this._dateAdapter.addCalendarDays(this._activeDate, -1);
|
|
815
|
+
break;
|
|
816
|
+
case RIGHT_ARROW:
|
|
817
|
+
this._activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 1);
|
|
818
|
+
break;
|
|
819
|
+
case UP_ARROW:
|
|
820
|
+
this._activeDate = this._dateAdapter.addCalendarDays(this._activeDate, -7);
|
|
821
|
+
break;
|
|
822
|
+
case DOWN_ARROW:
|
|
823
|
+
this._activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 7);
|
|
824
|
+
break;
|
|
825
|
+
case HOME:
|
|
826
|
+
this._activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 1 - this._dateAdapter.getDate(this._activeDate));
|
|
827
|
+
break;
|
|
828
|
+
case END:
|
|
829
|
+
this._activeDate = this._dateAdapter.addCalendarDays(this._activeDate, (this._dateAdapter.getNumDaysInMonth(this._activeDate) -
|
|
830
|
+
this._dateAdapter.getDate(this._activeDate)));
|
|
831
|
+
break;
|
|
832
|
+
case PAGE_UP:
|
|
833
|
+
this._activeDate = event.altKey ?
|
|
834
|
+
this._dateAdapter.addCalendarYears(this._activeDate, -1) :
|
|
835
|
+
this._dateAdapter.addCalendarMonths(this._activeDate, -1);
|
|
836
|
+
break;
|
|
837
|
+
case PAGE_DOWN:
|
|
838
|
+
this._activeDate = event.altKey ?
|
|
839
|
+
this._dateAdapter.addCalendarYears(this._activeDate, 1) :
|
|
840
|
+
this._dateAdapter.addCalendarMonths(this._activeDate, 1);
|
|
841
|
+
break;
|
|
842
|
+
case ENTER:
|
|
843
|
+
if (this._dateFilterForViews(this._activeDate)) {
|
|
844
|
+
this._dateSelected(this._activeDate);
|
|
845
|
+
// Prevent unexpected default actions such as form submission.
|
|
846
|
+
event.preventDefault();
|
|
847
|
+
}
|
|
848
|
+
return;
|
|
849
|
+
default:
|
|
850
|
+
// Don't prevent default or focus active cell on keys that we don't explicitly handle.
|
|
851
|
+
return;
|
|
852
|
+
}
|
|
853
|
+
this._focusActiveCell();
|
|
854
|
+
// Prevent unexpected default actions such as form submission.
|
|
855
|
+
event.preventDefault();
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Handles keydown events on the calendar body when calendar is in year view.
|
|
859
|
+
* @param {?} event
|
|
860
|
+
* @return {?}
|
|
861
|
+
*/
|
|
862
|
+
_handleCalendarBodyKeydownInYearView(event) {
|
|
863
|
+
switch (event.keyCode) {
|
|
864
|
+
case LEFT_ARROW:
|
|
865
|
+
this._activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -1);
|
|
866
|
+
break;
|
|
867
|
+
case RIGHT_ARROW:
|
|
868
|
+
this._activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 1);
|
|
869
|
+
break;
|
|
870
|
+
case UP_ARROW:
|
|
871
|
+
this._activeDate = this._prevMonthInSameCol(this._activeDate);
|
|
872
|
+
break;
|
|
873
|
+
case DOWN_ARROW:
|
|
874
|
+
this._activeDate = this._nextMonthInSameCol(this._activeDate);
|
|
875
|
+
break;
|
|
876
|
+
case HOME:
|
|
877
|
+
this._activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -this._dateAdapter.getMonth(this._activeDate));
|
|
878
|
+
break;
|
|
879
|
+
case END:
|
|
880
|
+
this._activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 11 - this._dateAdapter.getMonth(this._activeDate));
|
|
881
|
+
break;
|
|
882
|
+
case PAGE_UP:
|
|
883
|
+
this._activeDate =
|
|
884
|
+
this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -10 : -1);
|
|
885
|
+
break;
|
|
886
|
+
case PAGE_DOWN:
|
|
887
|
+
this._activeDate =
|
|
888
|
+
this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? 10 : 1);
|
|
889
|
+
break;
|
|
890
|
+
case ENTER:
|
|
891
|
+
this._monthSelected(this._activeDate);
|
|
892
|
+
break;
|
|
893
|
+
default:
|
|
894
|
+
// Don't prevent default or focus active cell on keys that we don't explicitly handle.
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
this._focusActiveCell();
|
|
898
|
+
// Prevent unexpected default actions such as form submission.
|
|
899
|
+
event.preventDefault();
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Determine the date for the month that comes before the given month in the same column in the
|
|
903
|
+
* calendar table.
|
|
904
|
+
* @param {?} date
|
|
905
|
+
* @return {?}
|
|
906
|
+
*/
|
|
907
|
+
_prevMonthInSameCol(date) {
|
|
908
|
+
// Determine how many months to jump forward given that there are 2 empty slots at the beginning
|
|
909
|
+
// of each year.
|
|
910
|
+
let /** @type {?} */ increment = this._dateAdapter.getMonth(date) <= 4 ? -5 :
|
|
911
|
+
(this._dateAdapter.getMonth(date) >= 7 ? -7 : -12);
|
|
912
|
+
return this._dateAdapter.addCalendarMonths(date, increment);
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Determine the date for the month that comes after the given month in the same column in the
|
|
916
|
+
* calendar table.
|
|
917
|
+
* @param {?} date
|
|
918
|
+
* @return {?}
|
|
919
|
+
*/
|
|
920
|
+
_nextMonthInSameCol(date) {
|
|
921
|
+
// Determine how many months to jump forward given that there are 2 empty slots at the beginning
|
|
922
|
+
// of each year.
|
|
923
|
+
let /** @type {?} */ increment = this._dateAdapter.getMonth(date) <= 4 ? 7 :
|
|
924
|
+
(this._dateAdapter.getMonth(date) >= 7 ? 5 : 12);
|
|
925
|
+
return this._dateAdapter.addCalendarMonths(date, increment);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
MatCalendar.decorators = [
|
|
929
|
+
{ type: Component, args: [{selector: 'mat-calendar',
|
|
930
|
+
template: "<div class=\"mat-calendar-header\"><div class=\"mat-calendar-controls\"><button mat-button class=\"mat-calendar-period-button\" (click)=\"_currentPeriodClicked()\" [attr.aria-label]=\"_periodButtonLabel\">{{_periodButtonText}}<div class=\"mat-calendar-arrow\" [class.mat-calendar-invert]=\"!_monthView\"></div></button><div class=\"mat-calendar-spacer\"></div><button mat-icon-button class=\"mat-calendar-previous-button\" [disabled]=\"!_previousEnabled()\" (click)=\"_previousClicked()\" [attr.aria-label]=\"_prevButtonLabel\"></button> <button mat-icon-button class=\"mat-calendar-next-button\" [disabled]=\"!_nextEnabled()\" (click)=\"_nextClicked()\" [attr.aria-label]=\"_nextButtonLabel\"></button></div></div><div class=\"mat-calendar-content\" (keydown)=\"_handleCalendarBodyKeydown($event)\" [ngSwitch]=\"_monthView\" cdkMonitorSubtreeFocus><mat-month-view *ngSwitchCase=\"true\" [activeDate]=\"_activeDate\" [selected]=\"selected\" [dateFilter]=\"_dateFilterForViews\" (selectedChange)=\"_dateSelected($event)\" (_userSelection)=\"_userSelected()\"></mat-month-view><mat-year-view *ngSwitchDefault [activeDate]=\"_activeDate\" [selected]=\"selected\" [dateFilter]=\"_dateFilterForViews\" (selectedChange)=\"_monthSelected($event)\"></mat-year-view></div>",
|
|
931
|
+
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}"],
|
|
932
|
+
host: {
|
|
933
|
+
'class': 'mat-calendar',
|
|
934
|
+
},
|
|
935
|
+
encapsulation: ViewEncapsulation.None,
|
|
936
|
+
preserveWhitespaces: false,
|
|
937
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
938
|
+
},] },
|
|
939
|
+
];
|
|
940
|
+
/**
|
|
941
|
+
* @nocollapse
|
|
942
|
+
*/
|
|
943
|
+
MatCalendar.ctorParameters = () => [
|
|
944
|
+
{ type: ElementRef, },
|
|
945
|
+
{ type: MatDatepickerIntl, },
|
|
946
|
+
{ type: NgZone, },
|
|
947
|
+
{ type: DateAdapter, decorators: [{ type: Optional },] },
|
|
948
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DATE_FORMATS,] },] },
|
|
949
|
+
{ type: ChangeDetectorRef, },
|
|
950
|
+
];
|
|
951
|
+
MatCalendar.propDecorators = {
|
|
952
|
+
'startAt': [{ type: Input },],
|
|
953
|
+
'startView': [{ type: Input },],
|
|
954
|
+
'selected': [{ type: Input },],
|
|
955
|
+
'minDate': [{ type: Input },],
|
|
956
|
+
'maxDate': [{ type: Input },],
|
|
957
|
+
'dateFilter': [{ type: Input },],
|
|
958
|
+
'selectedChange': [{ type: Output },],
|
|
959
|
+
'_userSelection': [{ type: Output },],
|
|
960
|
+
'monthView': [{ type: ViewChild, args: [MatMonthView,] },],
|
|
961
|
+
'yearView': [{ type: ViewChild, args: [MatYearView,] },],
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Used to generate a unique ID for each datepicker instance.
|
|
966
|
+
*/
|
|
967
|
+
let datepickerUid = 0;
|
|
968
|
+
/**
|
|
969
|
+
* Injection token that determines the scroll handling while the calendar is open.
|
|
970
|
+
*/
|
|
971
|
+
const MAT_DATEPICKER_SCROLL_STRATEGY = new InjectionToken('mat-datepicker-scroll-strategy');
|
|
972
|
+
/**
|
|
973
|
+
* \@docs-private
|
|
974
|
+
* @param {?} overlay
|
|
975
|
+
* @return {?}
|
|
976
|
+
*/
|
|
977
|
+
function MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
|
|
978
|
+
return () => overlay.scrollStrategies.reposition();
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
* \@docs-private
|
|
982
|
+
*/
|
|
983
|
+
const MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER = {
|
|
984
|
+
provide: MAT_DATEPICKER_SCROLL_STRATEGY,
|
|
985
|
+
deps: [Overlay],
|
|
986
|
+
useFactory: MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY,
|
|
987
|
+
};
|
|
988
|
+
/**
|
|
989
|
+
* Component used as the content for the datepicker dialog and popup. We use this instead of using
|
|
990
|
+
* MatCalendar directly as the content so we can control the initial focus. This also gives us a
|
|
991
|
+
* place to put additional features of the popup that are not part of the calendar itself in the
|
|
992
|
+
* future. (e.g. confirmation buttons).
|
|
993
|
+
* \@docs-private
|
|
994
|
+
*/
|
|
995
|
+
class MatDatepickerContent {
|
|
996
|
+
/**
|
|
997
|
+
* @return {?}
|
|
998
|
+
*/
|
|
999
|
+
ngAfterContentInit() {
|
|
1000
|
+
this._calendar._focusActiveCell();
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* Handles keydown event on datepicker content.
|
|
1004
|
+
* @param {?} event The event.
|
|
1005
|
+
* @return {?}
|
|
1006
|
+
*/
|
|
1007
|
+
_handleKeydown(event) {
|
|
1008
|
+
if (event.keyCode === ESCAPE) {
|
|
1009
|
+
this.datepicker.close();
|
|
1010
|
+
event.preventDefault();
|
|
1011
|
+
event.stopPropagation();
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
MatDatepickerContent.decorators = [
|
|
1016
|
+
{ type: Component, args: [{selector: 'mat-datepicker-content',
|
|
1017
|
+
template: "<mat-calendar cdkTrapFocus [id]=\"datepicker.id\" [startAt]=\"datepicker.startAt\" [startView]=\"datepicker.startView\" [minDate]=\"datepicker._minDate\" [maxDate]=\"datepicker._maxDate\" [dateFilter]=\"datepicker._dateFilter\" [selected]=\"datepicker._selected\" (selectedChange)=\"datepicker._select($event)\" (_userSelection)=\"datepicker.close()\"></mat-calendar>",
|
|
1018
|
+
styles: [".mat-datepicker-content{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:block}.mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);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}}"],
|
|
1019
|
+
host: {
|
|
1020
|
+
'class': 'mat-datepicker-content',
|
|
1021
|
+
'[class.mat-datepicker-content-touch]': 'datepicker.touchUi',
|
|
1022
|
+
'(keydown)': '_handleKeydown($event)',
|
|
1023
|
+
},
|
|
1024
|
+
encapsulation: ViewEncapsulation.None,
|
|
1025
|
+
preserveWhitespaces: false,
|
|
1026
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1027
|
+
},] },
|
|
1028
|
+
];
|
|
1029
|
+
/**
|
|
1030
|
+
* @nocollapse
|
|
1031
|
+
*/
|
|
1032
|
+
MatDatepickerContent.ctorParameters = () => [];
|
|
1033
|
+
MatDatepickerContent.propDecorators = {
|
|
1034
|
+
'_calendar': [{ type: ViewChild, args: [MatCalendar,] },],
|
|
1035
|
+
};
|
|
1036
|
+
/**
|
|
1037
|
+
* Component responsible for managing the datepicker popup/dialog.
|
|
1038
|
+
*/
|
|
1039
|
+
class MatDatepicker {
|
|
1040
|
+
/**
|
|
1041
|
+
* @param {?} _dialog
|
|
1042
|
+
* @param {?} _overlay
|
|
1043
|
+
* @param {?} _ngZone
|
|
1044
|
+
* @param {?} _viewContainerRef
|
|
1045
|
+
* @param {?} _scrollStrategy
|
|
1046
|
+
* @param {?} _dateAdapter
|
|
1047
|
+
* @param {?} _dir
|
|
1048
|
+
* @param {?} _document
|
|
1049
|
+
*/
|
|
1050
|
+
constructor(_dialog, _overlay, _ngZone, _viewContainerRef, _scrollStrategy, _dateAdapter, _dir, _document) {
|
|
1051
|
+
this._dialog = _dialog;
|
|
1052
|
+
this._overlay = _overlay;
|
|
1053
|
+
this._ngZone = _ngZone;
|
|
1054
|
+
this._viewContainerRef = _viewContainerRef;
|
|
1055
|
+
this._scrollStrategy = _scrollStrategy;
|
|
1056
|
+
this._dateAdapter = _dateAdapter;
|
|
1057
|
+
this._dir = _dir;
|
|
1058
|
+
this._document = _document;
|
|
1059
|
+
/**
|
|
1060
|
+
* The view that the calendar should start in.
|
|
1061
|
+
*/
|
|
1062
|
+
this.startView = 'month';
|
|
1063
|
+
/**
|
|
1064
|
+
* Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather
|
|
1065
|
+
* than a popup and elements have more padding to allow for bigger touch targets.
|
|
1066
|
+
*/
|
|
1067
|
+
this.touchUi = false;
|
|
1068
|
+
/**
|
|
1069
|
+
* Emits new selected date when selected date changes.
|
|
1070
|
+
* @deprecated Switch to the `dateChange` and `dateInput` binding on the input element.
|
|
1071
|
+
*/
|
|
1072
|
+
this.selectedChanged = new EventEmitter();
|
|
1073
|
+
/**
|
|
1074
|
+
* Whether the calendar is open.
|
|
1075
|
+
*/
|
|
1076
|
+
this.opened = false;
|
|
1077
|
+
/**
|
|
1078
|
+
* The id for the datepicker calendar.
|
|
1079
|
+
*/
|
|
1080
|
+
this.id = `mat-datepicker-${datepickerUid++}`;
|
|
1081
|
+
this._validSelected = null;
|
|
1082
|
+
/**
|
|
1083
|
+
* The element that was focused before the datepicker was opened.
|
|
1084
|
+
*/
|
|
1085
|
+
this._focusedElementBeforeOpen = null;
|
|
1086
|
+
this._inputSubscription = Subscription.EMPTY;
|
|
1087
|
+
/**
|
|
1088
|
+
* Emits when the datepicker is disabled.
|
|
1089
|
+
*/
|
|
1090
|
+
this._disabledChange = new Subject();
|
|
1091
|
+
if (!this._dateAdapter) {
|
|
1092
|
+
throw createMissingDateImplError('DateAdapter');
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* The date to open the calendar to initially.
|
|
1097
|
+
* @return {?}
|
|
1098
|
+
*/
|
|
1099
|
+
get startAt() {
|
|
1100
|
+
// If an explicit startAt is set we start there, otherwise we start at whatever the currently
|
|
1101
|
+
// selected value is.
|
|
1102
|
+
return this._startAt || (this._datepickerInput ? this._datepickerInput.value : null);
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* @param {?} date
|
|
1106
|
+
* @return {?}
|
|
1107
|
+
*/
|
|
1108
|
+
set startAt(date) { this._startAt = coerceDateProperty(this._dateAdapter, date); }
|
|
1109
|
+
/**
|
|
1110
|
+
* Whether the datepicker pop-up should be disabled.
|
|
1111
|
+
* @return {?}
|
|
1112
|
+
*/
|
|
1113
|
+
get disabled() {
|
|
1114
|
+
return this._disabled === undefined && this._datepickerInput ?
|
|
1115
|
+
this._datepickerInput.disabled : this._disabled;
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* @param {?} value
|
|
1119
|
+
* @return {?}
|
|
1120
|
+
*/
|
|
1121
|
+
set disabled(value) {
|
|
1122
|
+
const /** @type {?} */ newValue = coerceBooleanProperty(value);
|
|
1123
|
+
if (newValue !== this._disabled) {
|
|
1124
|
+
this._disabled = newValue;
|
|
1125
|
+
this._disabledChange.next(newValue);
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* The currently selected date.
|
|
1130
|
+
* @return {?}
|
|
1131
|
+
*/
|
|
1132
|
+
get _selected() { return this._validSelected; }
|
|
1133
|
+
/**
|
|
1134
|
+
* @param {?} value
|
|
1135
|
+
* @return {?}
|
|
1136
|
+
*/
|
|
1137
|
+
set _selected(value) { this._validSelected = value; }
|
|
1138
|
+
/**
|
|
1139
|
+
* The minimum selectable date.
|
|
1140
|
+
* @return {?}
|
|
1141
|
+
*/
|
|
1142
|
+
get _minDate() {
|
|
1143
|
+
return this._datepickerInput && this._datepickerInput.min;
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* The maximum selectable date.
|
|
1147
|
+
* @return {?}
|
|
1148
|
+
*/
|
|
1149
|
+
get _maxDate() {
|
|
1150
|
+
return this._datepickerInput && this._datepickerInput.max;
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* @return {?}
|
|
1154
|
+
*/
|
|
1155
|
+
get _dateFilter() {
|
|
1156
|
+
return this._datepickerInput && this._datepickerInput._dateFilter;
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* @return {?}
|
|
1160
|
+
*/
|
|
1161
|
+
ngOnDestroy() {
|
|
1162
|
+
this.close();
|
|
1163
|
+
this._inputSubscription.unsubscribe();
|
|
1164
|
+
this._disabledChange.complete();
|
|
1165
|
+
if (this._popupRef) {
|
|
1166
|
+
this._popupRef.dispose();
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* Selects the given date
|
|
1171
|
+
* @param {?} date
|
|
1172
|
+
* @return {?}
|
|
1173
|
+
*/
|
|
1174
|
+
_select(date) {
|
|
1175
|
+
let /** @type {?} */ oldValue = this._selected;
|
|
1176
|
+
this._selected = date;
|
|
1177
|
+
if (!this._dateAdapter.sameDate(oldValue, this._selected)) {
|
|
1178
|
+
this.selectedChanged.emit(date);
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* Register an input with this datepicker.
|
|
1183
|
+
* @param {?} input The datepicker input to register with this datepicker.
|
|
1184
|
+
* @return {?}
|
|
1185
|
+
*/
|
|
1186
|
+
_registerInput(input) {
|
|
1187
|
+
if (this._datepickerInput) {
|
|
1188
|
+
throw Error('An MatDatepicker can only be associated with a single input.');
|
|
1189
|
+
}
|
|
1190
|
+
this._datepickerInput = input;
|
|
1191
|
+
this._inputSubscription =
|
|
1192
|
+
this._datepickerInput._valueChange.subscribe((value) => this._selected = value);
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Open the calendar.
|
|
1196
|
+
* @return {?}
|
|
1197
|
+
*/
|
|
1198
|
+
open() {
|
|
1199
|
+
if (this.opened || this.disabled) {
|
|
1200
|
+
return;
|
|
1201
|
+
}
|
|
1202
|
+
if (!this._datepickerInput) {
|
|
1203
|
+
throw Error('Attempted to open an MatDatepicker with no associated input.');
|
|
1204
|
+
}
|
|
1205
|
+
if (this._document) {
|
|
1206
|
+
this._focusedElementBeforeOpen = this._document.activeElement;
|
|
1207
|
+
}
|
|
1208
|
+
this.touchUi ? this._openAsDialog() : this._openAsPopup();
|
|
1209
|
+
this.opened = true;
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Close the calendar.
|
|
1213
|
+
* @return {?}
|
|
1214
|
+
*/
|
|
1215
|
+
close() {
|
|
1216
|
+
if (!this.opened) {
|
|
1217
|
+
return;
|
|
1218
|
+
}
|
|
1219
|
+
if (this._popupRef && this._popupRef.hasAttached()) {
|
|
1220
|
+
this._popupRef.detach();
|
|
1221
|
+
}
|
|
1222
|
+
if (this._dialogRef) {
|
|
1223
|
+
this._dialogRef.close();
|
|
1224
|
+
this._dialogRef = null;
|
|
1225
|
+
}
|
|
1226
|
+
if (this._calendarPortal && this._calendarPortal.isAttached) {
|
|
1227
|
+
this._calendarPortal.detach();
|
|
1228
|
+
}
|
|
1229
|
+
if (this._focusedElementBeforeOpen &&
|
|
1230
|
+
typeof this._focusedElementBeforeOpen.focus === 'function') {
|
|
1231
|
+
this._focusedElementBeforeOpen.focus();
|
|
1232
|
+
this._focusedElementBeforeOpen = null;
|
|
1233
|
+
}
|
|
1234
|
+
this.opened = false;
|
|
1235
|
+
}
|
|
1236
|
+
/**
|
|
1237
|
+
* Open the calendar as a dialog.
|
|
1238
|
+
* @return {?}
|
|
1239
|
+
*/
|
|
1240
|
+
_openAsDialog() {
|
|
1241
|
+
this._dialogRef = this._dialog.open(MatDatepickerContent, {
|
|
1242
|
+
direction: this._dir ? this._dir.value : 'ltr',
|
|
1243
|
+
viewContainerRef: this._viewContainerRef,
|
|
1244
|
+
panelClass: 'mat-datepicker-dialog',
|
|
1245
|
+
});
|
|
1246
|
+
this._dialogRef.afterClosed().subscribe(() => this.close());
|
|
1247
|
+
this._dialogRef.componentInstance.datepicker = this;
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* Open the calendar as a popup.
|
|
1251
|
+
* @return {?}
|
|
1252
|
+
*/
|
|
1253
|
+
_openAsPopup() {
|
|
1254
|
+
if (!this._calendarPortal) {
|
|
1255
|
+
this._calendarPortal = new ComponentPortal(MatDatepickerContent, this._viewContainerRef);
|
|
1256
|
+
}
|
|
1257
|
+
if (!this._popupRef) {
|
|
1258
|
+
this._createPopup();
|
|
1259
|
+
}
|
|
1260
|
+
if (!this._popupRef.hasAttached()) {
|
|
1261
|
+
let /** @type {?} */ componentRef = this._popupRef.attach(this._calendarPortal);
|
|
1262
|
+
componentRef.instance.datepicker = this;
|
|
1263
|
+
// Update the position once the calendar has rendered.
|
|
1264
|
+
first$1.call(this._ngZone.onStable.asObservable()).subscribe(() => {
|
|
1265
|
+
this._popupRef.updatePosition();
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
this._popupRef.backdropClick().subscribe(() => this.close());
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Create the popup.
|
|
1272
|
+
* @return {?}
|
|
1273
|
+
*/
|
|
1274
|
+
_createPopup() {
|
|
1275
|
+
const /** @type {?} */ overlayConfig = new OverlayConfig({
|
|
1276
|
+
positionStrategy: this._createPopupPositionStrategy(),
|
|
1277
|
+
hasBackdrop: true,
|
|
1278
|
+
backdropClass: 'mat-overlay-transparent-backdrop',
|
|
1279
|
+
direction: this._dir ? this._dir.value : 'ltr',
|
|
1280
|
+
scrollStrategy: this._scrollStrategy(),
|
|
1281
|
+
panelClass: 'mat-datepicker-popup',
|
|
1282
|
+
});
|
|
1283
|
+
this._popupRef = this._overlay.create(overlayConfig);
|
|
1284
|
+
}
|
|
1285
|
+
/**
|
|
1286
|
+
* Create the popup PositionStrategy.
|
|
1287
|
+
* @return {?}
|
|
1288
|
+
*/
|
|
1289
|
+
_createPopupPositionStrategy() {
|
|
1290
|
+
return this._overlay.position()
|
|
1291
|
+
.connectedTo(this._datepickerInput.getPopupConnectionElementRef(), { originX: 'start', originY: 'bottom' }, { overlayX: 'start', overlayY: 'top' })
|
|
1292
|
+
.withFallbackPosition({ originX: 'start', originY: 'top' }, { overlayX: 'start', overlayY: 'bottom' })
|
|
1293
|
+
.withFallbackPosition({ originX: 'end', originY: 'bottom' }, { overlayX: 'end', overlayY: 'top' })
|
|
1294
|
+
.withFallbackPosition({ originX: 'end', originY: 'top' }, { overlayX: 'end', overlayY: 'bottom' });
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
MatDatepicker.decorators = [
|
|
1298
|
+
{ type: Component, args: [{selector: 'mat-datepicker',
|
|
1299
|
+
template: '',
|
|
1300
|
+
exportAs: 'matDatepicker',
|
|
1301
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1302
|
+
encapsulation: ViewEncapsulation.None,
|
|
1303
|
+
preserveWhitespaces: false,
|
|
1304
|
+
},] },
|
|
1305
|
+
];
|
|
1306
|
+
/**
|
|
1307
|
+
* @nocollapse
|
|
1308
|
+
*/
|
|
1309
|
+
MatDatepicker.ctorParameters = () => [
|
|
1310
|
+
{ type: MatDialog, },
|
|
1311
|
+
{ type: Overlay, },
|
|
1312
|
+
{ type: NgZone, },
|
|
1313
|
+
{ type: ViewContainerRef, },
|
|
1314
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DATEPICKER_SCROLL_STRATEGY,] },] },
|
|
1315
|
+
{ type: DateAdapter, decorators: [{ type: Optional },] },
|
|
1316
|
+
{ type: Directionality, decorators: [{ type: Optional },] },
|
|
1317
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DOCUMENT,] },] },
|
|
1318
|
+
];
|
|
1319
|
+
MatDatepicker.propDecorators = {
|
|
1320
|
+
'startAt': [{ type: Input },],
|
|
1321
|
+
'startView': [{ type: Input },],
|
|
1322
|
+
'touchUi': [{ type: Input },],
|
|
1323
|
+
'disabled': [{ type: Input },],
|
|
1324
|
+
'selectedChanged': [{ type: Output },],
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
const MAT_DATEPICKER_VALUE_ACCESSOR = {
|
|
1328
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1329
|
+
useExisting: forwardRef(() => MatDatepickerInput),
|
|
1330
|
+
multi: true
|
|
1331
|
+
};
|
|
1332
|
+
const MAT_DATEPICKER_VALIDATORS = {
|
|
1333
|
+
provide: NG_VALIDATORS,
|
|
1334
|
+
useExisting: forwardRef(() => MatDatepickerInput),
|
|
1335
|
+
multi: true
|
|
1336
|
+
};
|
|
1337
|
+
/**
|
|
1338
|
+
* An event used for datepicker input and change events. We don't always have access to a native
|
|
1339
|
+
* input or change event because the event may have been triggered by the user clicking on the
|
|
1340
|
+
* calendar popup. For consistency, we always use MatDatepickerInputEvent instead.
|
|
1341
|
+
*/
|
|
1342
|
+
class MatDatepickerInputEvent {
|
|
1343
|
+
/**
|
|
1344
|
+
* @param {?} target
|
|
1345
|
+
* @param {?} targetElement
|
|
1346
|
+
*/
|
|
1347
|
+
constructor(target, targetElement) {
|
|
1348
|
+
this.target = target;
|
|
1349
|
+
this.targetElement = targetElement;
|
|
1350
|
+
this.value = this.target.value;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Directive used to connect an input to a MatDatepicker.
|
|
1355
|
+
*/
|
|
1356
|
+
class MatDatepickerInput {
|
|
1357
|
+
/**
|
|
1358
|
+
* @param {?} _elementRef
|
|
1359
|
+
* @param {?} _renderer
|
|
1360
|
+
* @param {?} _dateAdapter
|
|
1361
|
+
* @param {?} _dateFormats
|
|
1362
|
+
* @param {?} _formField
|
|
1363
|
+
*/
|
|
1364
|
+
constructor(_elementRef, _renderer, _dateAdapter, _dateFormats, _formField) {
|
|
1365
|
+
this._elementRef = _elementRef;
|
|
1366
|
+
this._renderer = _renderer;
|
|
1367
|
+
this._dateAdapter = _dateAdapter;
|
|
1368
|
+
this._dateFormats = _dateFormats;
|
|
1369
|
+
this._formField = _formField;
|
|
1370
|
+
/**
|
|
1371
|
+
* Emits when a `change` event is fired on this `<input>`.
|
|
1372
|
+
*/
|
|
1373
|
+
this.dateChange = new EventEmitter();
|
|
1374
|
+
/**
|
|
1375
|
+
* Emits when an `input` event is fired on this `<input>`.
|
|
1376
|
+
*/
|
|
1377
|
+
this.dateInput = new EventEmitter();
|
|
1378
|
+
/**
|
|
1379
|
+
* Emits when the value changes (either due to user input or programmatic change).
|
|
1380
|
+
*/
|
|
1381
|
+
this._valueChange = new EventEmitter();
|
|
1382
|
+
/**
|
|
1383
|
+
* Emits when the disabled state has changed
|
|
1384
|
+
*/
|
|
1385
|
+
this._disabledChange = new EventEmitter();
|
|
1386
|
+
this._onTouched = () => { };
|
|
1387
|
+
this._cvaOnChange = () => { };
|
|
1388
|
+
this._validatorOnChange = () => { };
|
|
1389
|
+
this._datepickerSubscription = Subscription.EMPTY;
|
|
1390
|
+
this._localeSubscription = Subscription.EMPTY;
|
|
1391
|
+
/**
|
|
1392
|
+
* The form control validator for whether the input parses.
|
|
1393
|
+
*/
|
|
1394
|
+
this._parseValidator = () => {
|
|
1395
|
+
return this._lastValueValid ?
|
|
1396
|
+
null : { 'matDatepickerParse': { 'text': this._elementRef.nativeElement.value } };
|
|
1397
|
+
};
|
|
1398
|
+
/**
|
|
1399
|
+
* The form control validator for the min date.
|
|
1400
|
+
*/
|
|
1401
|
+
this._minValidator = (control) => {
|
|
1402
|
+
const controlValue = coerceDateProperty(this._dateAdapter, control.value);
|
|
1403
|
+
return (!this.min || !controlValue ||
|
|
1404
|
+
this._dateAdapter.compareDate(this.min, controlValue) <= 0) ?
|
|
1405
|
+
null : { 'matDatepickerMin': { 'min': this.min, 'actual': controlValue } };
|
|
1406
|
+
};
|
|
1407
|
+
/**
|
|
1408
|
+
* The form control validator for the max date.
|
|
1409
|
+
*/
|
|
1410
|
+
this._maxValidator = (control) => {
|
|
1411
|
+
const controlValue = coerceDateProperty(this._dateAdapter, control.value);
|
|
1412
|
+
return (!this.max || !controlValue ||
|
|
1413
|
+
this._dateAdapter.compareDate(this.max, controlValue) >= 0) ?
|
|
1414
|
+
null : { 'matDatepickerMax': { 'max': this.max, 'actual': controlValue } };
|
|
1415
|
+
};
|
|
1416
|
+
/**
|
|
1417
|
+
* The form control validator for the date filter.
|
|
1418
|
+
*/
|
|
1419
|
+
this._filterValidator = (control) => {
|
|
1420
|
+
const controlValue = coerceDateProperty(this._dateAdapter, control.value);
|
|
1421
|
+
return !this._dateFilter || !controlValue || this._dateFilter(controlValue) ?
|
|
1422
|
+
null : { 'matDatepickerFilter': true };
|
|
1423
|
+
};
|
|
1424
|
+
/**
|
|
1425
|
+
* The combined form control validator for this input.
|
|
1426
|
+
*/
|
|
1427
|
+
this._validator = Validators.compose([this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator]);
|
|
1428
|
+
/**
|
|
1429
|
+
* Whether the last value set on the input was valid.
|
|
1430
|
+
*/
|
|
1431
|
+
this._lastValueValid = false;
|
|
1432
|
+
if (!this._dateAdapter) {
|
|
1433
|
+
throw createMissingDateImplError('DateAdapter');
|
|
1434
|
+
}
|
|
1435
|
+
if (!this._dateFormats) {
|
|
1436
|
+
throw createMissingDateImplError('MAT_DATE_FORMATS');
|
|
1437
|
+
}
|
|
1438
|
+
// Update the displayed date when the locale changes.
|
|
1439
|
+
this._localeSubscription = _dateAdapter.localeChanges.subscribe(() => {
|
|
1440
|
+
this.value = this.value;
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* The datepicker that this input is associated with.
|
|
1445
|
+
* @param {?} value
|
|
1446
|
+
* @return {?}
|
|
1447
|
+
*/
|
|
1448
|
+
set matDatepicker(value) {
|
|
1449
|
+
this.registerDatepicker(value);
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* @param {?} value
|
|
1453
|
+
* @return {?}
|
|
1454
|
+
*/
|
|
1455
|
+
registerDatepicker(value) {
|
|
1456
|
+
if (value) {
|
|
1457
|
+
this._datepicker = value;
|
|
1458
|
+
this._datepicker._registerInput(this);
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* @param {?} filter
|
|
1463
|
+
* @return {?}
|
|
1464
|
+
*/
|
|
1465
|
+
set matDatepickerFilter(filter) {
|
|
1466
|
+
this._dateFilter = filter;
|
|
1467
|
+
this._validatorOnChange();
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
* The value of the input.
|
|
1471
|
+
* @return {?}
|
|
1472
|
+
*/
|
|
1473
|
+
get value() {
|
|
1474
|
+
return this._value;
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
* @param {?} value
|
|
1478
|
+
* @return {?}
|
|
1479
|
+
*/
|
|
1480
|
+
set value(value) {
|
|
1481
|
+
value = coerceDateProperty(this._dateAdapter, value);
|
|
1482
|
+
this._lastValueValid = !value || this._dateAdapter.isValid(value);
|
|
1483
|
+
value = this._getValidDateOrNull(value);
|
|
1484
|
+
let /** @type {?} */ oldDate = this.value;
|
|
1485
|
+
this._value = value;
|
|
1486
|
+
this._renderer.setProperty(this._elementRef.nativeElement, 'value', value ? this._dateAdapter.format(value, this._dateFormats.display.dateInput) : '');
|
|
1487
|
+
if (!this._dateAdapter.sameDate(oldDate, value)) {
|
|
1488
|
+
this._valueChange.emit(value);
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* The minimum valid date.
|
|
1493
|
+
* @return {?}
|
|
1494
|
+
*/
|
|
1495
|
+
get min() { return this._min; }
|
|
1496
|
+
/**
|
|
1497
|
+
* @param {?} value
|
|
1498
|
+
* @return {?}
|
|
1499
|
+
*/
|
|
1500
|
+
set min(value) {
|
|
1501
|
+
this._min = coerceDateProperty(this._dateAdapter, value);
|
|
1502
|
+
this._validatorOnChange();
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* The maximum valid date.
|
|
1506
|
+
* @return {?}
|
|
1507
|
+
*/
|
|
1508
|
+
get max() { return this._max; }
|
|
1509
|
+
/**
|
|
1510
|
+
* @param {?} value
|
|
1511
|
+
* @return {?}
|
|
1512
|
+
*/
|
|
1513
|
+
set max(value) {
|
|
1514
|
+
this._max = coerceDateProperty(this._dateAdapter, value);
|
|
1515
|
+
this._validatorOnChange();
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Whether the datepicker-input is disabled.
|
|
1519
|
+
* @return {?}
|
|
1520
|
+
*/
|
|
1521
|
+
get disabled() { return this._disabled; }
|
|
1522
|
+
/**
|
|
1523
|
+
* @param {?} value
|
|
1524
|
+
* @return {?}
|
|
1525
|
+
*/
|
|
1526
|
+
set disabled(value) {
|
|
1527
|
+
const /** @type {?} */ newValue = coerceBooleanProperty(value);
|
|
1528
|
+
if (this._disabled !== newValue) {
|
|
1529
|
+
this._disabled = newValue;
|
|
1530
|
+
this._disabledChange.emit(newValue);
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
/**
|
|
1534
|
+
* @return {?}
|
|
1535
|
+
*/
|
|
1536
|
+
ngAfterContentInit() {
|
|
1537
|
+
if (this._datepicker) {
|
|
1538
|
+
this._datepickerSubscription =
|
|
1539
|
+
this._datepicker.selectedChanged.subscribe((selected) => {
|
|
1540
|
+
this.value = selected;
|
|
1541
|
+
this._cvaOnChange(selected);
|
|
1542
|
+
this._onTouched();
|
|
1543
|
+
this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
1544
|
+
this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* @return {?}
|
|
1550
|
+
*/
|
|
1551
|
+
ngOnDestroy() {
|
|
1552
|
+
this._datepickerSubscription.unsubscribe();
|
|
1553
|
+
this._localeSubscription.unsubscribe();
|
|
1554
|
+
this._valueChange.complete();
|
|
1555
|
+
this._disabledChange.complete();
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* @param {?} fn
|
|
1559
|
+
* @return {?}
|
|
1560
|
+
*/
|
|
1561
|
+
registerOnValidatorChange(fn) {
|
|
1562
|
+
this._validatorOnChange = fn;
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* @param {?} c
|
|
1566
|
+
* @return {?}
|
|
1567
|
+
*/
|
|
1568
|
+
validate(c) {
|
|
1569
|
+
return this._validator ? this._validator(c) : null;
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Gets the element that the datepicker popup should be connected to.
|
|
1573
|
+
* @return {?} The element to connect the popup to.
|
|
1574
|
+
*/
|
|
1575
|
+
getPopupConnectionElementRef() {
|
|
1576
|
+
return this._formField ? this._formField.underlineRef : this._elementRef;
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
* @param {?} value
|
|
1580
|
+
* @return {?}
|
|
1581
|
+
*/
|
|
1582
|
+
writeValue(value) {
|
|
1583
|
+
this.value = value;
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* @param {?} fn
|
|
1587
|
+
* @return {?}
|
|
1588
|
+
*/
|
|
1589
|
+
registerOnChange(fn) {
|
|
1590
|
+
this._cvaOnChange = fn;
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* @param {?} fn
|
|
1594
|
+
* @return {?}
|
|
1595
|
+
*/
|
|
1596
|
+
registerOnTouched(fn) {
|
|
1597
|
+
this._onTouched = fn;
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* @param {?} disabled
|
|
1601
|
+
* @return {?}
|
|
1602
|
+
*/
|
|
1603
|
+
setDisabledState(disabled) {
|
|
1604
|
+
this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', disabled);
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* @param {?} event
|
|
1608
|
+
* @return {?}
|
|
1609
|
+
*/
|
|
1610
|
+
_onKeydown(event) {
|
|
1611
|
+
if (event.altKey && event.keyCode === DOWN_ARROW) {
|
|
1612
|
+
this._datepicker.open();
|
|
1613
|
+
event.preventDefault();
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* @param {?} value
|
|
1618
|
+
* @return {?}
|
|
1619
|
+
*/
|
|
1620
|
+
_onInput(value) {
|
|
1621
|
+
let /** @type {?} */ date = this._dateAdapter.parse(value, this._dateFormats.parse.dateInput);
|
|
1622
|
+
this._lastValueValid = !date || this._dateAdapter.isValid(date);
|
|
1623
|
+
date = this._getValidDateOrNull(date);
|
|
1624
|
+
this._value = date;
|
|
1625
|
+
this._cvaOnChange(date);
|
|
1626
|
+
this._valueChange.emit(date);
|
|
1627
|
+
this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* @return {?}
|
|
1631
|
+
*/
|
|
1632
|
+
_onChange() {
|
|
1633
|
+
this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* @param {?} obj The object to check.
|
|
1637
|
+
* @return {?} The given object if it is both a date instance and valid, otherwise null.
|
|
1638
|
+
*/
|
|
1639
|
+
_getValidDateOrNull(obj) {
|
|
1640
|
+
return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
MatDatepickerInput.decorators = [
|
|
1644
|
+
{ type: Directive, args: [{
|
|
1645
|
+
selector: 'input[matDatepicker]',
|
|
1646
|
+
providers: [MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATEPICKER_VALIDATORS],
|
|
1647
|
+
host: {
|
|
1648
|
+
'[attr.aria-haspopup]': 'true',
|
|
1649
|
+
'[attr.aria-owns]': '(_datepicker?.opened && _datepicker.id) || null',
|
|
1650
|
+
'[attr.min]': 'min ? _dateAdapter.toIso8601(min) : null',
|
|
1651
|
+
'[attr.max]': 'max ? _dateAdapter.toIso8601(max) : null',
|
|
1652
|
+
'[disabled]': 'disabled',
|
|
1653
|
+
'(input)': '_onInput($event.target.value)',
|
|
1654
|
+
'(change)': '_onChange()',
|
|
1655
|
+
'(blur)': '_onTouched()',
|
|
1656
|
+
'(keydown)': '_onKeydown($event)',
|
|
1657
|
+
},
|
|
1658
|
+
exportAs: 'matDatepickerInput',
|
|
1659
|
+
},] },
|
|
1660
|
+
];
|
|
1661
|
+
/**
|
|
1662
|
+
* @nocollapse
|
|
1663
|
+
*/
|
|
1664
|
+
MatDatepickerInput.ctorParameters = () => [
|
|
1665
|
+
{ type: ElementRef, },
|
|
1666
|
+
{ type: Renderer2, },
|
|
1667
|
+
{ type: DateAdapter, decorators: [{ type: Optional },] },
|
|
1668
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DATE_FORMATS,] },] },
|
|
1669
|
+
{ type: MatFormField, decorators: [{ type: Optional },] },
|
|
1670
|
+
];
|
|
1671
|
+
MatDatepickerInput.propDecorators = {
|
|
1672
|
+
'matDatepicker': [{ type: Input },],
|
|
1673
|
+
'matDatepickerFilter': [{ type: Input },],
|
|
1674
|
+
'value': [{ type: Input },],
|
|
1675
|
+
'min': [{ type: Input },],
|
|
1676
|
+
'max': [{ type: Input },],
|
|
1677
|
+
'disabled': [{ type: Input },],
|
|
1678
|
+
'dateChange': [{ type: Output },],
|
|
1679
|
+
'dateInput': [{ type: Output },],
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
class MatDatepickerToggle {
|
|
1683
|
+
/**
|
|
1684
|
+
* @param {?} _intl
|
|
1685
|
+
* @param {?} _changeDetectorRef
|
|
1686
|
+
*/
|
|
1687
|
+
constructor(_intl, _changeDetectorRef) {
|
|
1688
|
+
this._intl = _intl;
|
|
1689
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
1690
|
+
this._stateChanges = Subscription.EMPTY;
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* Whether the toggle button is disabled.
|
|
1694
|
+
* @return {?}
|
|
1695
|
+
*/
|
|
1696
|
+
get disabled() {
|
|
1697
|
+
return this._disabled === undefined ? this.datepicker.disabled : this._disabled;
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
* @param {?} value
|
|
1701
|
+
* @return {?}
|
|
1702
|
+
*/
|
|
1703
|
+
set disabled(value) {
|
|
1704
|
+
this._disabled = coerceBooleanProperty(value);
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* @param {?} changes
|
|
1708
|
+
* @return {?}
|
|
1709
|
+
*/
|
|
1710
|
+
ngOnChanges(changes) {
|
|
1711
|
+
if (changes.datepicker) {
|
|
1712
|
+
const /** @type {?} */ datepicker = changes.datepicker.currentValue;
|
|
1713
|
+
const /** @type {?} */ datepickerDisabled = datepicker ? datepicker._disabledChange : of();
|
|
1714
|
+
const /** @type {?} */ inputDisabled = datepicker && datepicker._datepickerInput ?
|
|
1715
|
+
datepicker._datepickerInput._disabledChange :
|
|
1716
|
+
of();
|
|
1717
|
+
this._stateChanges.unsubscribe();
|
|
1718
|
+
this._stateChanges = merge(this._intl.changes, datepickerDisabled, inputDisabled)
|
|
1719
|
+
.subscribe(() => this._changeDetectorRef.markForCheck());
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* @return {?}
|
|
1724
|
+
*/
|
|
1725
|
+
ngOnDestroy() {
|
|
1726
|
+
this._stateChanges.unsubscribe();
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* @param {?} event
|
|
1730
|
+
* @return {?}
|
|
1731
|
+
*/
|
|
1732
|
+
_open(event) {
|
|
1733
|
+
if (this.datepicker && !this.disabled) {
|
|
1734
|
+
this.datepicker.open();
|
|
1735
|
+
event.stopPropagation();
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
MatDatepickerToggle.decorators = [
|
|
1740
|
+
{ type: Component, args: [{selector: 'mat-datepicker-toggle',
|
|
1741
|
+
template: "<button mat-icon-button type=\"button\" [attr.aria-label]=\"_intl.openCalendarLabel\" [disabled]=\"disabled\" (click)=\"_open($event)\"><mat-icon><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" fill=\"currentColor\" style=\"vertical-align: top\" focusable=\"false\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><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></mat-icon></button>",
|
|
1742
|
+
host: {
|
|
1743
|
+
'class': 'mat-datepicker-toggle',
|
|
1744
|
+
},
|
|
1745
|
+
encapsulation: ViewEncapsulation.None,
|
|
1746
|
+
preserveWhitespaces: false,
|
|
1747
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1748
|
+
},] },
|
|
1749
|
+
];
|
|
1750
|
+
/**
|
|
1751
|
+
* @nocollapse
|
|
1752
|
+
*/
|
|
1753
|
+
MatDatepickerToggle.ctorParameters = () => [
|
|
1754
|
+
{ type: MatDatepickerIntl, },
|
|
1755
|
+
{ type: ChangeDetectorRef, },
|
|
1756
|
+
];
|
|
1757
|
+
MatDatepickerToggle.propDecorators = {
|
|
1758
|
+
'datepicker': [{ type: Input, args: ['for',] },],
|
|
1759
|
+
'disabled': [{ type: Input },],
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
class MatDatepickerModule {
|
|
1763
|
+
}
|
|
1764
|
+
MatDatepickerModule.decorators = [
|
|
1765
|
+
{ type: NgModule, args: [{
|
|
1766
|
+
imports: [
|
|
1767
|
+
CommonModule,
|
|
1768
|
+
MatButtonModule,
|
|
1769
|
+
MatDialogModule,
|
|
1770
|
+
MatIconModule,
|
|
1771
|
+
OverlayModule,
|
|
1772
|
+
A11yModule,
|
|
1773
|
+
],
|
|
1774
|
+
exports: [
|
|
1775
|
+
MatCalendar,
|
|
1776
|
+
MatCalendarBody,
|
|
1777
|
+
MatDatepicker,
|
|
1778
|
+
MatDatepickerContent,
|
|
1779
|
+
MatDatepickerInput,
|
|
1780
|
+
MatDatepickerToggle,
|
|
1781
|
+
MatMonthView,
|
|
1782
|
+
MatYearView,
|
|
1783
|
+
],
|
|
1784
|
+
declarations: [
|
|
1785
|
+
MatCalendar,
|
|
1786
|
+
MatCalendarBody,
|
|
1787
|
+
MatDatepicker,
|
|
1788
|
+
MatDatepickerContent,
|
|
1789
|
+
MatDatepickerInput,
|
|
1790
|
+
MatDatepickerToggle,
|
|
1791
|
+
MatMonthView,
|
|
1792
|
+
MatYearView,
|
|
1793
|
+
],
|
|
1794
|
+
providers: [
|
|
1795
|
+
MatDatepickerIntl,
|
|
1796
|
+
MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER,
|
|
1797
|
+
],
|
|
1798
|
+
entryComponents: [
|
|
1799
|
+
MatDatepickerContent,
|
|
1800
|
+
]
|
|
1801
|
+
},] },
|
|
1802
|
+
];
|
|
1803
|
+
/**
|
|
1804
|
+
* @nocollapse
|
|
1805
|
+
*/
|
|
1806
|
+
MatDatepickerModule.ctorParameters = () => [];
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* Generated bundle index. Do not edit.
|
|
1810
|
+
*/
|
|
1811
|
+
|
|
1812
|
+
export { MatDatepickerModule, MatCalendar, MatCalendarCell, MatCalendarBody, coerceDateProperty, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER_FACTORY, MAT_DATEPICKER_SCROLL_STRATEGY_PROVIDER, MatDatepickerContent, MatDatepicker, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATEPICKER_VALIDATORS, MatDatepickerInputEvent, MatDatepickerInput, MatDatepickerIntl, MatDatepickerToggle, MatMonthView, MatYearView };
|
|
1813
|
+
//# sourceMappingURL=datepicker.js.map
|