@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,2621 @@
|
|
|
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
|
+
(function (global, factory) {
|
|
9
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/cdk/bidi'), require('@angular/common'), require('@angular/core'), require('@angular/cdk/coercion'), require('rxjs/Subject'), require('@angular/platform-browser'), require('@angular/cdk/platform'), require('@angular/cdk/keycodes'), require('@angular/forms'), require('rxjs/Subscription')) :
|
|
10
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/cdk/a11y', '@angular/cdk/bidi', '@angular/common', '@angular/core', '@angular/cdk/coercion', 'rxjs/Subject', '@angular/platform-browser', '@angular/cdk/platform', '@angular/cdk/keycodes', '@angular/forms', 'rxjs/Subscription'], factory) :
|
|
11
|
+
(factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.slider = global.ng.material.slider || {}),global.ng.cdk.a11y,global.ng.cdk.bidi,global.ng.common,global.ng.core,global.ng.cdk.coercion,global.Rx,global.ng.platformBrowser,global.ng.cdk.platform,global.ng.cdk.keycodes,global.ng.forms,global.Rx));
|
|
12
|
+
}(this, (function (exports,_angular_cdk_a11y,_angular_cdk_bidi,_angular_common,_angular_core,_angular_cdk_coercion,rxjs_Subject,_angular_platformBrowser,_angular_cdk_platform,_angular_cdk_keycodes,_angular_forms,rxjs_Subscription) { 'use strict';
|
|
13
|
+
|
|
14
|
+
/*! *****************************************************************************
|
|
15
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
17
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
18
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
+
|
|
20
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
21
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
22
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
23
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
24
|
+
|
|
25
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
26
|
+
and limitations under the License.
|
|
27
|
+
***************************************************************************** */
|
|
28
|
+
/* global Reflect, Promise */
|
|
29
|
+
|
|
30
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
31
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
33
|
+
|
|
34
|
+
function __extends(d, b) {
|
|
35
|
+
extendStatics(d, b);
|
|
36
|
+
function __() { this.constructor = d; }
|
|
37
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
var MATERIAL_COMPATIBILITY_MODE = new _angular_core.InjectionToken('md-compatibility-mode');
|
|
41
|
+
/**
|
|
42
|
+
* Selector that matches all elements that may have style collisions with AngularJS Material.
|
|
43
|
+
*/
|
|
44
|
+
var MAT_ELEMENTS_SELECTOR = "\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matCellDef],\n [matColumnDef],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matHeaderCellDef],\n [matHeaderRowDef],\n [matLine],\n [matRowDef],\n [matStepLabel],\n [matStepperNext],\n [matStepperPrevious],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n [matInput],\n [matPrefix],\n [matSuffix],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-cell,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-header-cell,\n mat-header-row,\n mat-hint,\n mat-horizontal-stepper,\n mat-icon,\n mat-input-container,\n mat-form-field,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-row,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-step,\n mat-tab,\n mat-table,\n mat-tab-group,\n mat-toolbar,\n mat-vertical-stepper";
|
|
45
|
+
/**
|
|
46
|
+
* Selector that matches all elements that may have style collisions with AngularJS Material.
|
|
47
|
+
*/
|
|
48
|
+
var MD_ELEMENTS_SELECTOR = "\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdCellDef],\n [mdColumnDef],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdHeaderCellDef],\n [mdHeaderRowDef],\n [mdLine],\n [mdRowDef],\n [mdStepLabel],\n [mdStepperNext],\n [mdStepperPrevious],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n [mdInput],\n [mdPrefix],\n [mdSuffix],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-cell,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-header-cell,\n md-header-row,\n md-hint,\n md-horizontal-stepper,\n md-icon,\n md-input-container,\n md-form-field,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-row,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-step,\n md-tab,\n md-table,\n md-tab-group,\n md-toolbar,\n md-vertical-stepper";
|
|
49
|
+
/**
|
|
50
|
+
* Directive that enforces that the `mat-` prefix cannot be used.
|
|
51
|
+
*/
|
|
52
|
+
var MatPrefixRejector = (function () {
|
|
53
|
+
function MatPrefixRejector() {
|
|
54
|
+
}
|
|
55
|
+
MatPrefixRejector.decorators = [
|
|
56
|
+
{ type: _angular_core.Directive, args: [{ selector: MAT_ELEMENTS_SELECTOR },] },
|
|
57
|
+
];
|
|
58
|
+
/**
|
|
59
|
+
* @nocollapse
|
|
60
|
+
*/
|
|
61
|
+
MatPrefixRejector.ctorParameters = function () { return []; };
|
|
62
|
+
return MatPrefixRejector;
|
|
63
|
+
}());
|
|
64
|
+
/**
|
|
65
|
+
* Directive that enforces that the `md-` prefix cannot be used.
|
|
66
|
+
*/
|
|
67
|
+
var MdPrefixRejector = (function () {
|
|
68
|
+
function MdPrefixRejector() {
|
|
69
|
+
}
|
|
70
|
+
MdPrefixRejector.decorators = [
|
|
71
|
+
{ type: _angular_core.Directive, args: [{ selector: MD_ELEMENTS_SELECTOR },] },
|
|
72
|
+
];
|
|
73
|
+
/**
|
|
74
|
+
* @nocollapse
|
|
75
|
+
*/
|
|
76
|
+
MdPrefixRejector.ctorParameters = function () { return []; };
|
|
77
|
+
return MdPrefixRejector;
|
|
78
|
+
}());
|
|
79
|
+
/**
|
|
80
|
+
* Module that enforces the default compatibility mode settings. When this module is loaded
|
|
81
|
+
* without NoConflictStyleCompatibilityMode also being imported, it will throw an error if
|
|
82
|
+
* there are any uses of the `mat-` prefix.
|
|
83
|
+
*/
|
|
84
|
+
var CompatibilityModule = (function () {
|
|
85
|
+
function CompatibilityModule() {
|
|
86
|
+
}
|
|
87
|
+
CompatibilityModule.decorators = [
|
|
88
|
+
{ type: _angular_core.NgModule, args: [{
|
|
89
|
+
declarations: [MatPrefixRejector, MdPrefixRejector],
|
|
90
|
+
exports: [MatPrefixRejector, MdPrefixRejector],
|
|
91
|
+
},] },
|
|
92
|
+
];
|
|
93
|
+
/**
|
|
94
|
+
* @nocollapse
|
|
95
|
+
*/
|
|
96
|
+
CompatibilityModule.ctorParameters = function () { return []; };
|
|
97
|
+
return CompatibilityModule;
|
|
98
|
+
}());
|
|
99
|
+
/**
|
|
100
|
+
* Injection token that configures whether the Material sanity checks are enabled.
|
|
101
|
+
*/
|
|
102
|
+
var MATERIAL_SANITY_CHECKS = new _angular_core.InjectionToken('mat-sanity-checks');
|
|
103
|
+
/**
|
|
104
|
+
* Module that captures anything that should be loaded and/or run for *all* Angular Material
|
|
105
|
+
* components. This includes Bidi, compatibility mode, etc.
|
|
106
|
+
*
|
|
107
|
+
* This module should be imported to each top-level component module (e.g., MatTabsModule).
|
|
108
|
+
*/
|
|
109
|
+
var MatCommonModule = (function () {
|
|
110
|
+
/**
|
|
111
|
+
* @param {?} sanityChecksEnabled
|
|
112
|
+
*/
|
|
113
|
+
function MatCommonModule(sanityChecksEnabled) {
|
|
114
|
+
/**
|
|
115
|
+
* Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype).
|
|
116
|
+
*/
|
|
117
|
+
this._hasDoneGlobalChecks = false;
|
|
118
|
+
/**
|
|
119
|
+
* Reference to the global `document` object.
|
|
120
|
+
*/
|
|
121
|
+
this._document = typeof document === 'object' && document ? document : null;
|
|
122
|
+
if (sanityChecksEnabled && !this._hasDoneGlobalChecks && _angular_core.isDevMode()) {
|
|
123
|
+
this._checkDoctype();
|
|
124
|
+
this._checkTheme();
|
|
125
|
+
this._hasDoneGlobalChecks = true;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @return {?}
|
|
130
|
+
*/
|
|
131
|
+
MatCommonModule.prototype._checkDoctype = function () {
|
|
132
|
+
if (this._document && !this._document.doctype) {
|
|
133
|
+
console.warn('Current document does not have a doctype. This may cause ' +
|
|
134
|
+
'some Angular Material components not to behave as expected.');
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* @return {?}
|
|
139
|
+
*/
|
|
140
|
+
MatCommonModule.prototype._checkTheme = function () {
|
|
141
|
+
if (this._document && typeof getComputedStyle === 'function') {
|
|
142
|
+
var /** @type {?} */ testElement = this._document.createElement('div');
|
|
143
|
+
testElement.classList.add('mat-theme-loaded-marker');
|
|
144
|
+
this._document.body.appendChild(testElement);
|
|
145
|
+
var /** @type {?} */ computedStyle = getComputedStyle(testElement);
|
|
146
|
+
// In some situations, the computed style of the test element can be null. For example in
|
|
147
|
+
// Firefox, the computed style is null if an application is running inside of a hidden iframe.
|
|
148
|
+
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397
|
|
149
|
+
if (computedStyle && computedStyle.display !== 'none') {
|
|
150
|
+
console.warn('Could not find Angular Material core theme. Most Material ' +
|
|
151
|
+
'components may not work as expected. For more info refer ' +
|
|
152
|
+
'to the theming guide: https://material.angular.io/guide/theming');
|
|
153
|
+
}
|
|
154
|
+
this._document.body.removeChild(testElement);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
MatCommonModule.decorators = [
|
|
158
|
+
{ type: _angular_core.NgModule, args: [{
|
|
159
|
+
imports: [CompatibilityModule, _angular_cdk_bidi.BidiModule],
|
|
160
|
+
exports: [CompatibilityModule, _angular_cdk_bidi.BidiModule],
|
|
161
|
+
providers: [{
|
|
162
|
+
provide: MATERIAL_SANITY_CHECKS, useValue: true,
|
|
163
|
+
}],
|
|
164
|
+
},] },
|
|
165
|
+
];
|
|
166
|
+
/**
|
|
167
|
+
* @nocollapse
|
|
168
|
+
*/
|
|
169
|
+
MatCommonModule.ctorParameters = function () { return [
|
|
170
|
+
{ type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [MATERIAL_SANITY_CHECKS,] },] },
|
|
171
|
+
]; };
|
|
172
|
+
return MatCommonModule;
|
|
173
|
+
}());
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Mixin to augment a directive with a `disabled` property.
|
|
177
|
+
* @template T
|
|
178
|
+
* @param {?} base
|
|
179
|
+
* @return {?}
|
|
180
|
+
*/
|
|
181
|
+
function mixinDisabled(base) {
|
|
182
|
+
return (function (_super) {
|
|
183
|
+
__extends(class_1, _super);
|
|
184
|
+
/**
|
|
185
|
+
* @param {...?} args
|
|
186
|
+
*/
|
|
187
|
+
function class_1() {
|
|
188
|
+
var args = [];
|
|
189
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
190
|
+
args[_i] = arguments[_i];
|
|
191
|
+
}
|
|
192
|
+
var _this = _super.apply(this, args) || this;
|
|
193
|
+
_this._disabled = false;
|
|
194
|
+
return _this;
|
|
195
|
+
}
|
|
196
|
+
Object.defineProperty(class_1.prototype, "disabled", {
|
|
197
|
+
/**
|
|
198
|
+
* @return {?}
|
|
199
|
+
*/
|
|
200
|
+
get: function () { return this._disabled; },
|
|
201
|
+
/**
|
|
202
|
+
* @param {?} value
|
|
203
|
+
* @return {?}
|
|
204
|
+
*/
|
|
205
|
+
set: function (value) { this._disabled = _angular_cdk_coercion.coerceBooleanProperty(value); },
|
|
206
|
+
enumerable: true,
|
|
207
|
+
configurable: true
|
|
208
|
+
});
|
|
209
|
+
return class_1;
|
|
210
|
+
}(base));
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Mixin to augment a directive with a `color` property.
|
|
215
|
+
* @template T
|
|
216
|
+
* @param {?} base
|
|
217
|
+
* @param {?=} defaultColor
|
|
218
|
+
* @return {?}
|
|
219
|
+
*/
|
|
220
|
+
function mixinColor(base, defaultColor) {
|
|
221
|
+
return (function (_super) {
|
|
222
|
+
__extends(class_1, _super);
|
|
223
|
+
/**
|
|
224
|
+
* @param {...?} args
|
|
225
|
+
*/
|
|
226
|
+
function class_1() {
|
|
227
|
+
var args = [];
|
|
228
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
229
|
+
args[_i] = arguments[_i];
|
|
230
|
+
}
|
|
231
|
+
var _this = _super.apply(this, args) || this;
|
|
232
|
+
// Set the default color that can be specified from the mixin.
|
|
233
|
+
_this.color = defaultColor;
|
|
234
|
+
return _this;
|
|
235
|
+
}
|
|
236
|
+
Object.defineProperty(class_1.prototype, "color", {
|
|
237
|
+
/**
|
|
238
|
+
* @return {?}
|
|
239
|
+
*/
|
|
240
|
+
get: function () { return this._color; },
|
|
241
|
+
/**
|
|
242
|
+
* @param {?} value
|
|
243
|
+
* @return {?}
|
|
244
|
+
*/
|
|
245
|
+
set: function (value) {
|
|
246
|
+
var /** @type {?} */ colorPalette = value || defaultColor;
|
|
247
|
+
if (colorPalette !== this._color) {
|
|
248
|
+
if (this._color) {
|
|
249
|
+
this._renderer.removeClass(this._elementRef.nativeElement, "mat-" + this._color);
|
|
250
|
+
}
|
|
251
|
+
if (colorPalette) {
|
|
252
|
+
this._renderer.addClass(this._elementRef.nativeElement, "mat-" + colorPalette);
|
|
253
|
+
}
|
|
254
|
+
this._color = colorPalette;
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
enumerable: true,
|
|
258
|
+
configurable: true
|
|
259
|
+
});
|
|
260
|
+
return class_1;
|
|
261
|
+
}(base));
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* InjectionToken for datepicker that can be used to override default locale code.
|
|
266
|
+
*/
|
|
267
|
+
var MAT_DATE_LOCALE = new _angular_core.InjectionToken('MAT_DATE_LOCALE');
|
|
268
|
+
/**
|
|
269
|
+
* Adapts type `D` to be usable as a date by cdk-based components that work with dates.
|
|
270
|
+
* @abstract
|
|
271
|
+
*/
|
|
272
|
+
var DateAdapter = (function () {
|
|
273
|
+
function DateAdapter() {
|
|
274
|
+
this._localeChanges = new rxjs_Subject.Subject();
|
|
275
|
+
}
|
|
276
|
+
Object.defineProperty(DateAdapter.prototype, "localeChanges", {
|
|
277
|
+
/**
|
|
278
|
+
* A stream that emits when the locale changes.
|
|
279
|
+
* @return {?}
|
|
280
|
+
*/
|
|
281
|
+
get: function () { return this._localeChanges; },
|
|
282
|
+
enumerable: true,
|
|
283
|
+
configurable: true
|
|
284
|
+
});
|
|
285
|
+
/**
|
|
286
|
+
* Gets the year component of the given date.
|
|
287
|
+
* @abstract
|
|
288
|
+
* @param {?} date The date to extract the year from.
|
|
289
|
+
* @return {?} The year component.
|
|
290
|
+
*/
|
|
291
|
+
DateAdapter.prototype.getYear = function (date) { };
|
|
292
|
+
/**
|
|
293
|
+
* Gets the month component of the given date.
|
|
294
|
+
* @abstract
|
|
295
|
+
* @param {?} date The date to extract the month from.
|
|
296
|
+
* @return {?} The month component (0-indexed, 0 = January).
|
|
297
|
+
*/
|
|
298
|
+
DateAdapter.prototype.getMonth = function (date) { };
|
|
299
|
+
/**
|
|
300
|
+
* Gets the date of the month component of the given date.
|
|
301
|
+
* @abstract
|
|
302
|
+
* @param {?} date The date to extract the date of the month from.
|
|
303
|
+
* @return {?} The month component (1-indexed, 1 = first of month).
|
|
304
|
+
*/
|
|
305
|
+
DateAdapter.prototype.getDate = function (date) { };
|
|
306
|
+
/**
|
|
307
|
+
* Gets the day of the week component of the given date.
|
|
308
|
+
* @abstract
|
|
309
|
+
* @param {?} date The date to extract the day of the week from.
|
|
310
|
+
* @return {?} The month component (0-indexed, 0 = Sunday).
|
|
311
|
+
*/
|
|
312
|
+
DateAdapter.prototype.getDayOfWeek = function (date) { };
|
|
313
|
+
/**
|
|
314
|
+
* Gets a list of names for the months.
|
|
315
|
+
* @abstract
|
|
316
|
+
* @param {?} style The naming style (e.g. long = 'January', short = 'Jan', narrow = 'J').
|
|
317
|
+
* @return {?} An ordered list of all month names, starting with January.
|
|
318
|
+
*/
|
|
319
|
+
DateAdapter.prototype.getMonthNames = function (style) { };
|
|
320
|
+
/**
|
|
321
|
+
* Gets a list of names for the dates of the month.
|
|
322
|
+
* @abstract
|
|
323
|
+
* @return {?} An ordered list of all date of the month names, starting with '1'.
|
|
324
|
+
*/
|
|
325
|
+
DateAdapter.prototype.getDateNames = function () { };
|
|
326
|
+
/**
|
|
327
|
+
* Gets a list of names for the days of the week.
|
|
328
|
+
* @abstract
|
|
329
|
+
* @param {?} style The naming style (e.g. long = 'Sunday', short = 'Sun', narrow = 'S').
|
|
330
|
+
* @return {?} An ordered list of all weekday names, starting with Sunday.
|
|
331
|
+
*/
|
|
332
|
+
DateAdapter.prototype.getDayOfWeekNames = function (style) { };
|
|
333
|
+
/**
|
|
334
|
+
* Gets the name for the year of the given date.
|
|
335
|
+
* @abstract
|
|
336
|
+
* @param {?} date The date to get the year name for.
|
|
337
|
+
* @return {?} The name of the given year (e.g. '2017').
|
|
338
|
+
*/
|
|
339
|
+
DateAdapter.prototype.getYearName = function (date) { };
|
|
340
|
+
/**
|
|
341
|
+
* Gets the first day of the week.
|
|
342
|
+
* @abstract
|
|
343
|
+
* @return {?} The first day of the week (0-indexed, 0 = Sunday).
|
|
344
|
+
*/
|
|
345
|
+
DateAdapter.prototype.getFirstDayOfWeek = function () { };
|
|
346
|
+
/**
|
|
347
|
+
* Gets the number of days in the month of the given date.
|
|
348
|
+
* @abstract
|
|
349
|
+
* @param {?} date The date whose month should be checked.
|
|
350
|
+
* @return {?} The number of days in the month of the given date.
|
|
351
|
+
*/
|
|
352
|
+
DateAdapter.prototype.getNumDaysInMonth = function (date) { };
|
|
353
|
+
/**
|
|
354
|
+
* Clones the given date.
|
|
355
|
+
* @abstract
|
|
356
|
+
* @param {?} date The date to clone
|
|
357
|
+
* @return {?} A new date equal to the given date.
|
|
358
|
+
*/
|
|
359
|
+
DateAdapter.prototype.clone = function (date) { };
|
|
360
|
+
/**
|
|
361
|
+
* Creates a date with the given year, month, and date. Does not allow over/under-flow of the
|
|
362
|
+
* month and date.
|
|
363
|
+
* @abstract
|
|
364
|
+
* @param {?} year The full year of the date. (e.g. 89 means the year 89, not the year 1989).
|
|
365
|
+
* @param {?} month The month of the date (0-indexed, 0 = January). Must be an integer 0 - 11.
|
|
366
|
+
* @param {?} date The date of month of the date. Must be an integer 1 - length of the given month.
|
|
367
|
+
* @return {?} The new date, or null if invalid.
|
|
368
|
+
*/
|
|
369
|
+
DateAdapter.prototype.createDate = function (year, month, date) { };
|
|
370
|
+
/**
|
|
371
|
+
* Gets today's date.
|
|
372
|
+
* @abstract
|
|
373
|
+
* @return {?} Today's date.
|
|
374
|
+
*/
|
|
375
|
+
DateAdapter.prototype.today = function () { };
|
|
376
|
+
/**
|
|
377
|
+
* Parses a date from a value.
|
|
378
|
+
* @abstract
|
|
379
|
+
* @param {?} value The value to parse.
|
|
380
|
+
* @param {?} parseFormat The expected format of the value being parsed
|
|
381
|
+
* (type is implementation-dependent).
|
|
382
|
+
* @return {?} The parsed date.
|
|
383
|
+
*/
|
|
384
|
+
DateAdapter.prototype.parse = function (value, parseFormat) { };
|
|
385
|
+
/**
|
|
386
|
+
* Formats a date as a string.
|
|
387
|
+
* @abstract
|
|
388
|
+
* @param {?} date The value to format.
|
|
389
|
+
* @param {?} displayFormat The format to use to display the date as a string.
|
|
390
|
+
* @return {?} The formatted date string.
|
|
391
|
+
*/
|
|
392
|
+
DateAdapter.prototype.format = function (date, displayFormat) { };
|
|
393
|
+
/**
|
|
394
|
+
* Adds the given number of years to the date. Years are counted as if flipping 12 pages on the
|
|
395
|
+
* calendar for each year and then finding the closest date in the new month. For example when
|
|
396
|
+
* adding 1 year to Feb 29, 2016, the resulting date will be Feb 28, 2017.
|
|
397
|
+
* @abstract
|
|
398
|
+
* @param {?} date The date to add years to.
|
|
399
|
+
* @param {?} years The number of years to add (may be negative).
|
|
400
|
+
* @return {?} A new date equal to the given one with the specified number of years added.
|
|
401
|
+
*/
|
|
402
|
+
DateAdapter.prototype.addCalendarYears = function (date, years) { };
|
|
403
|
+
/**
|
|
404
|
+
* Adds the given number of months to the date. Months are counted as if flipping a page on the
|
|
405
|
+
* calendar for each month and then finding the closest date in the new month. For example when
|
|
406
|
+
* adding 1 month to Jan 31, 2017, the resulting date will be Feb 28, 2017.
|
|
407
|
+
* @abstract
|
|
408
|
+
* @param {?} date The date to add months to.
|
|
409
|
+
* @param {?} months The number of months to add (may be negative).
|
|
410
|
+
* @return {?} A new date equal to the given one with the specified number of months added.
|
|
411
|
+
*/
|
|
412
|
+
DateAdapter.prototype.addCalendarMonths = function (date, months) { };
|
|
413
|
+
/**
|
|
414
|
+
* Adds the given number of days to the date. Days are counted as if moving one cell on the
|
|
415
|
+
* calendar for each day.
|
|
416
|
+
* @abstract
|
|
417
|
+
* @param {?} date The date to add days to.
|
|
418
|
+
* @param {?} days The number of days to add (may be negative).
|
|
419
|
+
* @return {?} A new date equal to the given one with the specified number of days added.
|
|
420
|
+
*/
|
|
421
|
+
DateAdapter.prototype.addCalendarDays = function (date, days) { };
|
|
422
|
+
/**
|
|
423
|
+
* Gets the RFC 3339 compatible string (https://tools.ietf.org/html/rfc3339) for the given date.
|
|
424
|
+
* @abstract
|
|
425
|
+
* @param {?} date The date to get the ISO date string for.
|
|
426
|
+
* @return {?} The ISO date string date string.
|
|
427
|
+
*/
|
|
428
|
+
DateAdapter.prototype.toIso8601 = function (date) { };
|
|
429
|
+
/**
|
|
430
|
+
* Creates a date from an RFC 3339 compatible string (https://tools.ietf.org/html/rfc3339).
|
|
431
|
+
* @abstract
|
|
432
|
+
* @param {?} iso8601String The ISO date string to create a date from
|
|
433
|
+
* @return {?} The date created from the ISO date string.
|
|
434
|
+
*/
|
|
435
|
+
DateAdapter.prototype.fromIso8601 = function (iso8601String) { };
|
|
436
|
+
/**
|
|
437
|
+
* Checks whether the given object is considered a date instance by this DateAdapter.
|
|
438
|
+
* @abstract
|
|
439
|
+
* @param {?} obj The object to check
|
|
440
|
+
* @return {?} Whether the object is a date instance.
|
|
441
|
+
*/
|
|
442
|
+
DateAdapter.prototype.isDateInstance = function (obj) { };
|
|
443
|
+
/**
|
|
444
|
+
* Checks whether the given date is valid.
|
|
445
|
+
* @abstract
|
|
446
|
+
* @param {?} date The date to check.
|
|
447
|
+
* @return {?} Whether the date is valid.
|
|
448
|
+
*/
|
|
449
|
+
DateAdapter.prototype.isValid = function (date) { };
|
|
450
|
+
/**
|
|
451
|
+
* Sets the locale used for all dates.
|
|
452
|
+
* @param {?} locale The new locale.
|
|
453
|
+
* @return {?}
|
|
454
|
+
*/
|
|
455
|
+
DateAdapter.prototype.setLocale = function (locale) {
|
|
456
|
+
this.locale = locale;
|
|
457
|
+
this._localeChanges.next();
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Compares two dates.
|
|
461
|
+
* @param {?} first The first date to compare.
|
|
462
|
+
* @param {?} second The second date to compare.
|
|
463
|
+
* @return {?} 0 if the dates are equal, a number less than 0 if the first date is earlier,
|
|
464
|
+
* a number greater than 0 if the first date is later.
|
|
465
|
+
*/
|
|
466
|
+
DateAdapter.prototype.compareDate = function (first, second) {
|
|
467
|
+
return this.getYear(first) - this.getYear(second) ||
|
|
468
|
+
this.getMonth(first) - this.getMonth(second) ||
|
|
469
|
+
this.getDate(first) - this.getDate(second);
|
|
470
|
+
};
|
|
471
|
+
/**
|
|
472
|
+
* Checks if two dates are equal.
|
|
473
|
+
* @param {?} first The first date to check.
|
|
474
|
+
* @param {?} second The second date to check.
|
|
475
|
+
* Null dates are considered equal to other null dates.
|
|
476
|
+
* @return {?}
|
|
477
|
+
*/
|
|
478
|
+
DateAdapter.prototype.sameDate = function (first, second) {
|
|
479
|
+
return first && second ? !this.compareDate(first, second) : first == second;
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Clamp the given date between min and max dates.
|
|
483
|
+
* @param {?} date The date to clamp.
|
|
484
|
+
* @param {?=} min The minimum value to allow. If null or omitted no min is enforced.
|
|
485
|
+
* @param {?=} max The maximum value to allow. If null or omitted no max is enforced.
|
|
486
|
+
* @return {?} `min` if `date` is less than `min`, `max` if date is greater than `max`,
|
|
487
|
+
* otherwise `date`.
|
|
488
|
+
*/
|
|
489
|
+
DateAdapter.prototype.clampDate = function (date, min, max) {
|
|
490
|
+
if (min && this.compareDate(date, min) < 0) {
|
|
491
|
+
return min;
|
|
492
|
+
}
|
|
493
|
+
if (max && this.compareDate(date, max) > 0) {
|
|
494
|
+
return max;
|
|
495
|
+
}
|
|
496
|
+
return date;
|
|
497
|
+
};
|
|
498
|
+
return DateAdapter;
|
|
499
|
+
}());
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Extends an object with the *enumerable* and *own* properties of one or more source objects,
|
|
503
|
+
* similar to Object.assign.
|
|
504
|
+
*
|
|
505
|
+
* @param {?} dest The object which will have properties copied to it.
|
|
506
|
+
* @param {...?} sources The source objects from which properties will be copied.
|
|
507
|
+
* @return {?}
|
|
508
|
+
*/
|
|
509
|
+
function extendObject(dest) {
|
|
510
|
+
var sources = [];
|
|
511
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
512
|
+
sources[_i - 1] = arguments[_i];
|
|
513
|
+
}
|
|
514
|
+
if (dest == null) {
|
|
515
|
+
throw TypeError('Cannot convert undefined or null to object');
|
|
516
|
+
}
|
|
517
|
+
for (var _a = 0, sources_1 = sources; _a < sources_1.length; _a++) {
|
|
518
|
+
var source = sources_1[_a];
|
|
519
|
+
if (source != null) {
|
|
520
|
+
for (var /** @type {?} */ key in source) {
|
|
521
|
+
if (source.hasOwnProperty(key)) {
|
|
522
|
+
dest[key] = source[key];
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
return dest;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Whether the browser supports the Intl API.
|
|
532
|
+
*/
|
|
533
|
+
var SUPPORTS_INTL_API = typeof Intl != 'undefined';
|
|
534
|
+
/**
|
|
535
|
+
* The default month names to use if Intl API is not available.
|
|
536
|
+
*/
|
|
537
|
+
var DEFAULT_MONTH_NAMES = {
|
|
538
|
+
'long': [
|
|
539
|
+
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
|
|
540
|
+
'October', 'November', 'December'
|
|
541
|
+
],
|
|
542
|
+
'short': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
543
|
+
'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']
|
|
544
|
+
};
|
|
545
|
+
/**
|
|
546
|
+
* The default date names to use if Intl API is not available.
|
|
547
|
+
*/
|
|
548
|
+
var DEFAULT_DATE_NAMES = range(31, function (i) { return String(i + 1); });
|
|
549
|
+
/**
|
|
550
|
+
* The default day of the week names to use if Intl API is not available.
|
|
551
|
+
*/
|
|
552
|
+
var DEFAULT_DAY_OF_WEEK_NAMES = {
|
|
553
|
+
'long': ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
554
|
+
'short': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
555
|
+
'narrow': ['S', 'M', 'T', 'W', 'T', 'F', 'S']
|
|
556
|
+
};
|
|
557
|
+
/**
|
|
558
|
+
* Matches strings that have the form of a valid RFC 3339 string
|
|
559
|
+
* (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date
|
|
560
|
+
* because the regex will match strings an with out of bounds month, date, etc.
|
|
561
|
+
*/
|
|
562
|
+
var ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
|
|
563
|
+
/**
|
|
564
|
+
* Creates an array and fills it with values.
|
|
565
|
+
* @template T
|
|
566
|
+
* @param {?} length
|
|
567
|
+
* @param {?} valueFunction
|
|
568
|
+
* @return {?}
|
|
569
|
+
*/
|
|
570
|
+
function range(length, valueFunction) {
|
|
571
|
+
var /** @type {?} */ valuesArray = Array(length);
|
|
572
|
+
for (var /** @type {?} */ i = 0; i < length; i++) {
|
|
573
|
+
valuesArray[i] = valueFunction(i);
|
|
574
|
+
}
|
|
575
|
+
return valuesArray;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Adapts the native JS Date for use with cdk-based components that work with dates.
|
|
579
|
+
*/
|
|
580
|
+
var NativeDateAdapter = (function (_super) {
|
|
581
|
+
__extends(NativeDateAdapter, _super);
|
|
582
|
+
/**
|
|
583
|
+
* @param {?} matDateLocale
|
|
584
|
+
*/
|
|
585
|
+
function NativeDateAdapter(matDateLocale) {
|
|
586
|
+
var _this = _super.call(this) || this;
|
|
587
|
+
/**
|
|
588
|
+
* Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.
|
|
589
|
+
* Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off
|
|
590
|
+
* the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`
|
|
591
|
+
* will produce `'8/13/1800'`.
|
|
592
|
+
*/
|
|
593
|
+
_this.useUtcForDisplay = true;
|
|
594
|
+
_super.prototype.setLocale.call(_this, matDateLocale);
|
|
595
|
+
return _this;
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* @param {?} date
|
|
599
|
+
* @return {?}
|
|
600
|
+
*/
|
|
601
|
+
NativeDateAdapter.prototype.getYear = function (date) {
|
|
602
|
+
return date.getFullYear();
|
|
603
|
+
};
|
|
604
|
+
/**
|
|
605
|
+
* @param {?} date
|
|
606
|
+
* @return {?}
|
|
607
|
+
*/
|
|
608
|
+
NativeDateAdapter.prototype.getMonth = function (date) {
|
|
609
|
+
return date.getMonth();
|
|
610
|
+
};
|
|
611
|
+
/**
|
|
612
|
+
* @param {?} date
|
|
613
|
+
* @return {?}
|
|
614
|
+
*/
|
|
615
|
+
NativeDateAdapter.prototype.getDate = function (date) {
|
|
616
|
+
return date.getDate();
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* @param {?} date
|
|
620
|
+
* @return {?}
|
|
621
|
+
*/
|
|
622
|
+
NativeDateAdapter.prototype.getDayOfWeek = function (date) {
|
|
623
|
+
return date.getDay();
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* @param {?} style
|
|
627
|
+
* @return {?}
|
|
628
|
+
*/
|
|
629
|
+
NativeDateAdapter.prototype.getMonthNames = function (style) {
|
|
630
|
+
var _this = this;
|
|
631
|
+
if (SUPPORTS_INTL_API) {
|
|
632
|
+
var /** @type {?} */ dtf_1 = new Intl.DateTimeFormat(this.locale, { month: style });
|
|
633
|
+
return range(12, function (i) { return _this._stripDirectionalityCharacters(dtf_1.format(new Date(2017, i, 1))); });
|
|
634
|
+
}
|
|
635
|
+
return DEFAULT_MONTH_NAMES[style];
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* @return {?}
|
|
639
|
+
*/
|
|
640
|
+
NativeDateAdapter.prototype.getDateNames = function () {
|
|
641
|
+
var _this = this;
|
|
642
|
+
if (SUPPORTS_INTL_API) {
|
|
643
|
+
var /** @type {?} */ dtf_2 = new Intl.DateTimeFormat(this.locale, { day: 'numeric' });
|
|
644
|
+
return range(31, function (i) { return _this._stripDirectionalityCharacters(dtf_2.format(new Date(2017, 0, i + 1))); });
|
|
645
|
+
}
|
|
646
|
+
return DEFAULT_DATE_NAMES;
|
|
647
|
+
};
|
|
648
|
+
/**
|
|
649
|
+
* @param {?} style
|
|
650
|
+
* @return {?}
|
|
651
|
+
*/
|
|
652
|
+
NativeDateAdapter.prototype.getDayOfWeekNames = function (style) {
|
|
653
|
+
var _this = this;
|
|
654
|
+
if (SUPPORTS_INTL_API) {
|
|
655
|
+
var /** @type {?} */ dtf_3 = new Intl.DateTimeFormat(this.locale, { weekday: style });
|
|
656
|
+
return range(7, function (i) { return _this._stripDirectionalityCharacters(dtf_3.format(new Date(2017, 0, i + 1))); });
|
|
657
|
+
}
|
|
658
|
+
return DEFAULT_DAY_OF_WEEK_NAMES[style];
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* @param {?} date
|
|
662
|
+
* @return {?}
|
|
663
|
+
*/
|
|
664
|
+
NativeDateAdapter.prototype.getYearName = function (date) {
|
|
665
|
+
if (SUPPORTS_INTL_API) {
|
|
666
|
+
var /** @type {?} */ dtf = new Intl.DateTimeFormat(this.locale, { year: 'numeric' });
|
|
667
|
+
return this._stripDirectionalityCharacters(dtf.format(date));
|
|
668
|
+
}
|
|
669
|
+
return String(this.getYear(date));
|
|
670
|
+
};
|
|
671
|
+
/**
|
|
672
|
+
* @return {?}
|
|
673
|
+
*/
|
|
674
|
+
NativeDateAdapter.prototype.getFirstDayOfWeek = function () {
|
|
675
|
+
// We can't tell using native JS Date what the first day of the week is, we default to Sunday.
|
|
676
|
+
return 0;
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* @param {?} date
|
|
680
|
+
* @return {?}
|
|
681
|
+
*/
|
|
682
|
+
NativeDateAdapter.prototype.getNumDaysInMonth = function (date) {
|
|
683
|
+
return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));
|
|
684
|
+
};
|
|
685
|
+
/**
|
|
686
|
+
* @param {?} date
|
|
687
|
+
* @return {?}
|
|
688
|
+
*/
|
|
689
|
+
NativeDateAdapter.prototype.clone = function (date) {
|
|
690
|
+
return this.createDate(this.getYear(date), this.getMonth(date), this.getDate(date));
|
|
691
|
+
};
|
|
692
|
+
/**
|
|
693
|
+
* @param {?} year
|
|
694
|
+
* @param {?} month
|
|
695
|
+
* @param {?} date
|
|
696
|
+
* @return {?}
|
|
697
|
+
*/
|
|
698
|
+
NativeDateAdapter.prototype.createDate = function (year, month, date) {
|
|
699
|
+
// Check for invalid month and date (except upper bound on date which we have to check after
|
|
700
|
+
// creating the Date).
|
|
701
|
+
if (month < 0 || month > 11) {
|
|
702
|
+
throw Error("Invalid month index \"" + month + "\". Month index has to be between 0 and 11.");
|
|
703
|
+
}
|
|
704
|
+
if (date < 1) {
|
|
705
|
+
throw Error("Invalid date \"" + date + "\". Date has to be greater than 0.");
|
|
706
|
+
}
|
|
707
|
+
var /** @type {?} */ result = this._createDateWithOverflow(year, month, date);
|
|
708
|
+
// Check that the date wasn't above the upper bound for the month, causing the month to overflow
|
|
709
|
+
if (result.getMonth() != month) {
|
|
710
|
+
throw Error("Invalid date \"" + date + "\" for month with index \"" + month + "\".");
|
|
711
|
+
}
|
|
712
|
+
return result;
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* @return {?}
|
|
716
|
+
*/
|
|
717
|
+
NativeDateAdapter.prototype.today = function () {
|
|
718
|
+
return new Date();
|
|
719
|
+
};
|
|
720
|
+
/**
|
|
721
|
+
* @param {?} value
|
|
722
|
+
* @return {?}
|
|
723
|
+
*/
|
|
724
|
+
NativeDateAdapter.prototype.parse = function (value) {
|
|
725
|
+
// We have no way using the native JS Date to set the parse format or locale, so we ignore these
|
|
726
|
+
// parameters.
|
|
727
|
+
if (typeof value == 'number') {
|
|
728
|
+
return new Date(value);
|
|
729
|
+
}
|
|
730
|
+
return value ? new Date(Date.parse(value)) : null;
|
|
731
|
+
};
|
|
732
|
+
/**
|
|
733
|
+
* @param {?} date
|
|
734
|
+
* @param {?} displayFormat
|
|
735
|
+
* @return {?}
|
|
736
|
+
*/
|
|
737
|
+
NativeDateAdapter.prototype.format = function (date, displayFormat) {
|
|
738
|
+
if (!this.isValid(date)) {
|
|
739
|
+
throw Error('NativeDateAdapter: Cannot format invalid date.');
|
|
740
|
+
}
|
|
741
|
+
if (SUPPORTS_INTL_API) {
|
|
742
|
+
if (this.useUtcForDisplay) {
|
|
743
|
+
date = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
744
|
+
displayFormat = extendObject({}, displayFormat, { timeZone: 'utc' });
|
|
745
|
+
}
|
|
746
|
+
var /** @type {?} */ dtf = new Intl.DateTimeFormat(this.locale, displayFormat);
|
|
747
|
+
return this._stripDirectionalityCharacters(dtf.format(date));
|
|
748
|
+
}
|
|
749
|
+
return this._stripDirectionalityCharacters(date.toDateString());
|
|
750
|
+
};
|
|
751
|
+
/**
|
|
752
|
+
* @param {?} date
|
|
753
|
+
* @param {?} years
|
|
754
|
+
* @return {?}
|
|
755
|
+
*/
|
|
756
|
+
NativeDateAdapter.prototype.addCalendarYears = function (date, years) {
|
|
757
|
+
return this.addCalendarMonths(date, years * 12);
|
|
758
|
+
};
|
|
759
|
+
/**
|
|
760
|
+
* @param {?} date
|
|
761
|
+
* @param {?} months
|
|
762
|
+
* @return {?}
|
|
763
|
+
*/
|
|
764
|
+
NativeDateAdapter.prototype.addCalendarMonths = function (date, months) {
|
|
765
|
+
var /** @type {?} */ newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));
|
|
766
|
+
// It's possible to wind up in the wrong month if the original month has more days than the new
|
|
767
|
+
// month. In this case we want to go to the last day of the desired month.
|
|
768
|
+
// Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't
|
|
769
|
+
// guarantee this.
|
|
770
|
+
if (this.getMonth(newDate) != ((this.getMonth(date) + months) % 12 + 12) % 12) {
|
|
771
|
+
newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);
|
|
772
|
+
}
|
|
773
|
+
return newDate;
|
|
774
|
+
};
|
|
775
|
+
/**
|
|
776
|
+
* @param {?} date
|
|
777
|
+
* @param {?} days
|
|
778
|
+
* @return {?}
|
|
779
|
+
*/
|
|
780
|
+
NativeDateAdapter.prototype.addCalendarDays = function (date, days) {
|
|
781
|
+
return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);
|
|
782
|
+
};
|
|
783
|
+
/**
|
|
784
|
+
* @param {?} date
|
|
785
|
+
* @return {?}
|
|
786
|
+
*/
|
|
787
|
+
NativeDateAdapter.prototype.toIso8601 = function (date) {
|
|
788
|
+
return [
|
|
789
|
+
date.getUTCFullYear(),
|
|
790
|
+
this._2digit(date.getUTCMonth() + 1),
|
|
791
|
+
this._2digit(date.getUTCDate())
|
|
792
|
+
].join('-');
|
|
793
|
+
};
|
|
794
|
+
/**
|
|
795
|
+
* @param {?} iso8601String
|
|
796
|
+
* @return {?}
|
|
797
|
+
*/
|
|
798
|
+
NativeDateAdapter.prototype.fromIso8601 = function (iso8601String) {
|
|
799
|
+
// The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the
|
|
800
|
+
// string is the right format first.
|
|
801
|
+
if (ISO_8601_REGEX.test(iso8601String)) {
|
|
802
|
+
var /** @type {?} */ d = new Date(iso8601String);
|
|
803
|
+
if (this.isValid(d)) {
|
|
804
|
+
return d;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
return null;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* @param {?} obj
|
|
811
|
+
* @return {?}
|
|
812
|
+
*/
|
|
813
|
+
NativeDateAdapter.prototype.isDateInstance = function (obj) {
|
|
814
|
+
return obj instanceof Date;
|
|
815
|
+
};
|
|
816
|
+
/**
|
|
817
|
+
* @param {?} date
|
|
818
|
+
* @return {?}
|
|
819
|
+
*/
|
|
820
|
+
NativeDateAdapter.prototype.isValid = function (date) {
|
|
821
|
+
return !isNaN(date.getTime());
|
|
822
|
+
};
|
|
823
|
+
/**
|
|
824
|
+
* Creates a date but allows the month and date to overflow.
|
|
825
|
+
* @param {?} year
|
|
826
|
+
* @param {?} month
|
|
827
|
+
* @param {?} date
|
|
828
|
+
* @return {?}
|
|
829
|
+
*/
|
|
830
|
+
NativeDateAdapter.prototype._createDateWithOverflow = function (year, month, date) {
|
|
831
|
+
var /** @type {?} */ result = new Date(year, month, date);
|
|
832
|
+
// We need to correct for the fact that JS native Date treats years in range [0, 99] as
|
|
833
|
+
// abbreviations for 19xx.
|
|
834
|
+
if (year >= 0 && year < 100) {
|
|
835
|
+
result.setFullYear(this.getYear(result) - 1900);
|
|
836
|
+
}
|
|
837
|
+
return result;
|
|
838
|
+
};
|
|
839
|
+
/**
|
|
840
|
+
* Pads a number to make it two digits.
|
|
841
|
+
* @param {?} n The number to pad.
|
|
842
|
+
* @return {?} The padded number.
|
|
843
|
+
*/
|
|
844
|
+
NativeDateAdapter.prototype._2digit = function (n) {
|
|
845
|
+
return ('00' + n).slice(-2);
|
|
846
|
+
};
|
|
847
|
+
/**
|
|
848
|
+
* Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
|
|
849
|
+
* other browsers do not. We remove them to make output consistent and because they interfere with
|
|
850
|
+
* date parsing.
|
|
851
|
+
* @param {?} str The string to strip direction characters from.
|
|
852
|
+
* @return {?} The stripped string.
|
|
853
|
+
*/
|
|
854
|
+
NativeDateAdapter.prototype._stripDirectionalityCharacters = function (str) {
|
|
855
|
+
return str.replace(/[\u200e\u200f]/g, '');
|
|
856
|
+
};
|
|
857
|
+
NativeDateAdapter.decorators = [
|
|
858
|
+
{ type: _angular_core.Injectable },
|
|
859
|
+
];
|
|
860
|
+
/**
|
|
861
|
+
* @nocollapse
|
|
862
|
+
*/
|
|
863
|
+
NativeDateAdapter.ctorParameters = function () { return [
|
|
864
|
+
{ type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [MAT_DATE_LOCALE,] },] },
|
|
865
|
+
]; };
|
|
866
|
+
return NativeDateAdapter;
|
|
867
|
+
}(DateAdapter));
|
|
868
|
+
|
|
869
|
+
var MAT_DATE_FORMATS = new _angular_core.InjectionToken('mat-date-formats');
|
|
870
|
+
|
|
871
|
+
var GestureConfig = (function (_super) {
|
|
872
|
+
__extends(GestureConfig, _super);
|
|
873
|
+
function GestureConfig() {
|
|
874
|
+
var _this = _super.call(this) || this;
|
|
875
|
+
_this._hammer = typeof window !== 'undefined' ? ((window)).Hammer : null;
|
|
876
|
+
/* List of new event names to add to the gesture support list */
|
|
877
|
+
_this.events = _this._hammer ? [
|
|
878
|
+
'longpress',
|
|
879
|
+
'slide',
|
|
880
|
+
'slidestart',
|
|
881
|
+
'slideend',
|
|
882
|
+
'slideright',
|
|
883
|
+
'slideleft'
|
|
884
|
+
] : [];
|
|
885
|
+
if (!_this._hammer && _angular_core.isDevMode()) {
|
|
886
|
+
console.warn('Could not find HammerJS. Certain Angular Material ' +
|
|
887
|
+
'components may not work correctly.');
|
|
888
|
+
}
|
|
889
|
+
return _this;
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* Builds Hammer instance manually to add custom recognizers that match the Material Design spec.
|
|
893
|
+
*
|
|
894
|
+
* Our gesture names come from the Material Design gestures spec:
|
|
895
|
+
* https://www.google.com/design/spec/patterns/gestures.html#gestures-touch-mechanics
|
|
896
|
+
*
|
|
897
|
+
* More information on default recognizers can be found in Hammer docs:
|
|
898
|
+
* http://hammerjs.github.io/recognizer-pan/
|
|
899
|
+
* http://hammerjs.github.io/recognizer-press/
|
|
900
|
+
*
|
|
901
|
+
* @param {?} element Element to which to assign the new HammerJS gestures.
|
|
902
|
+
* @return {?} Newly-created HammerJS instance.
|
|
903
|
+
*/
|
|
904
|
+
GestureConfig.prototype.buildHammer = function (element) {
|
|
905
|
+
var /** @type {?} */ mc = new this._hammer(element);
|
|
906
|
+
// Default Hammer Recognizers.
|
|
907
|
+
var /** @type {?} */ pan = new this._hammer.Pan();
|
|
908
|
+
var /** @type {?} */ swipe = new this._hammer.Swipe();
|
|
909
|
+
var /** @type {?} */ press = new this._hammer.Press();
|
|
910
|
+
// Notice that a HammerJS recognizer can only depend on one other recognizer once.
|
|
911
|
+
// Otherwise the previous `recognizeWith` will be dropped.
|
|
912
|
+
// TODO: Confirm threshold numbers with Material Design UX Team
|
|
913
|
+
var /** @type {?} */ slide = this._createRecognizer(pan, { event: 'slide', threshold: 0 }, swipe);
|
|
914
|
+
var /** @type {?} */ longpress = this._createRecognizer(press, { event: 'longpress', time: 500 });
|
|
915
|
+
// Overwrite the default `pan` event to use the swipe event.
|
|
916
|
+
pan.recognizeWith(swipe);
|
|
917
|
+
// Add customized gestures to Hammer manager
|
|
918
|
+
mc.add([swipe, press, pan, slide, longpress]);
|
|
919
|
+
return (mc);
|
|
920
|
+
};
|
|
921
|
+
/**
|
|
922
|
+
* Creates a new recognizer, without affecting the default recognizers of HammerJS
|
|
923
|
+
* @param {?} base
|
|
924
|
+
* @param {?} options
|
|
925
|
+
* @param {...?} inheritances
|
|
926
|
+
* @return {?}
|
|
927
|
+
*/
|
|
928
|
+
GestureConfig.prototype._createRecognizer = function (base, options) {
|
|
929
|
+
var inheritances = [];
|
|
930
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
931
|
+
inheritances[_i - 2] = arguments[_i];
|
|
932
|
+
}
|
|
933
|
+
var /** @type {?} */ recognizer = new ((base.constructor))(options);
|
|
934
|
+
inheritances.push(base);
|
|
935
|
+
inheritances.forEach(function (item) { return recognizer.recognizeWith(item); });
|
|
936
|
+
return recognizer;
|
|
937
|
+
};
|
|
938
|
+
GestureConfig.decorators = [
|
|
939
|
+
{ type: _angular_core.Injectable },
|
|
940
|
+
];
|
|
941
|
+
/**
|
|
942
|
+
* @nocollapse
|
|
943
|
+
*/
|
|
944
|
+
GestureConfig.ctorParameters = function () { return []; };
|
|
945
|
+
return GestureConfig;
|
|
946
|
+
}(_angular_platformBrowser.HammerGestureConfig));
|
|
947
|
+
|
|
948
|
+
var RippleState = {};
|
|
949
|
+
RippleState.FADING_IN = 0;
|
|
950
|
+
RippleState.VISIBLE = 1;
|
|
951
|
+
RippleState.FADING_OUT = 2;
|
|
952
|
+
RippleState.HIDDEN = 3;
|
|
953
|
+
RippleState[RippleState.FADING_IN] = "FADING_IN";
|
|
954
|
+
RippleState[RippleState.VISIBLE] = "VISIBLE";
|
|
955
|
+
RippleState[RippleState.FADING_OUT] = "FADING_OUT";
|
|
956
|
+
RippleState[RippleState.HIDDEN] = "HIDDEN";
|
|
957
|
+
/**
|
|
958
|
+
* Reference to a previously launched ripple element.
|
|
959
|
+
*/
|
|
960
|
+
var RippleRef = (function () {
|
|
961
|
+
/**
|
|
962
|
+
* @param {?} _renderer
|
|
963
|
+
* @param {?} element
|
|
964
|
+
* @param {?} config
|
|
965
|
+
*/
|
|
966
|
+
function RippleRef(_renderer, element, config) {
|
|
967
|
+
this._renderer = _renderer;
|
|
968
|
+
this.element = element;
|
|
969
|
+
this.config = config;
|
|
970
|
+
/**
|
|
971
|
+
* Current state of the ripple reference.
|
|
972
|
+
*/
|
|
973
|
+
this.state = RippleState.HIDDEN;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* Fades out the ripple element.
|
|
977
|
+
* @return {?}
|
|
978
|
+
*/
|
|
979
|
+
RippleRef.prototype.fadeOut = function () {
|
|
980
|
+
this._renderer.fadeOutRipple(this);
|
|
981
|
+
};
|
|
982
|
+
return RippleRef;
|
|
983
|
+
}());
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Fade-in duration for the ripples. Can be modified with the speedFactor option.
|
|
987
|
+
*/
|
|
988
|
+
var RIPPLE_FADE_IN_DURATION = 450;
|
|
989
|
+
/**
|
|
990
|
+
* Fade-out duration for the ripples in milliseconds. This can't be modified by the speedFactor.
|
|
991
|
+
*/
|
|
992
|
+
var RIPPLE_FADE_OUT_DURATION = 400;
|
|
993
|
+
/**
|
|
994
|
+
* Helper service that performs DOM manipulations. Not intended to be used outside this module.
|
|
995
|
+
* The constructor takes a reference to the ripple directive's host element and a map of DOM
|
|
996
|
+
* event handlers to be installed on the element that triggers ripple animations.
|
|
997
|
+
* This will eventually become a custom renderer once Angular support exists.
|
|
998
|
+
* \@docs-private
|
|
999
|
+
*/
|
|
1000
|
+
var RippleRenderer = (function () {
|
|
1001
|
+
/**
|
|
1002
|
+
* @param {?} elementRef
|
|
1003
|
+
* @param {?} _ngZone
|
|
1004
|
+
* @param {?} platform
|
|
1005
|
+
*/
|
|
1006
|
+
function RippleRenderer(elementRef, _ngZone, platform) {
|
|
1007
|
+
this._ngZone = _ngZone;
|
|
1008
|
+
/**
|
|
1009
|
+
* Whether the pointer is currently being held on the trigger or not.
|
|
1010
|
+
*/
|
|
1011
|
+
this._isPointerDown = false;
|
|
1012
|
+
/**
|
|
1013
|
+
* Events to be registered on the trigger element.
|
|
1014
|
+
*/
|
|
1015
|
+
this._triggerEvents = new Map();
|
|
1016
|
+
/**
|
|
1017
|
+
* Set of currently active ripple references.
|
|
1018
|
+
*/
|
|
1019
|
+
this._activeRipples = new Set();
|
|
1020
|
+
/**
|
|
1021
|
+
* Ripple config for all ripples created by events.
|
|
1022
|
+
*/
|
|
1023
|
+
this.rippleConfig = {};
|
|
1024
|
+
/**
|
|
1025
|
+
* Whether mouse ripples should be created or not.
|
|
1026
|
+
*/
|
|
1027
|
+
this.rippleDisabled = false;
|
|
1028
|
+
// Only do anything if we're on the browser.
|
|
1029
|
+
if (platform.isBrowser) {
|
|
1030
|
+
this._containerElement = elementRef.nativeElement;
|
|
1031
|
+
// Specify events which need to be registered on the trigger.
|
|
1032
|
+
this._triggerEvents.set('mousedown', this.onMousedown.bind(this));
|
|
1033
|
+
this._triggerEvents.set('touchstart', this.onTouchstart.bind(this));
|
|
1034
|
+
this._triggerEvents.set('mouseup', this.onPointerUp.bind(this));
|
|
1035
|
+
this._triggerEvents.set('touchend', this.onPointerUp.bind(this));
|
|
1036
|
+
this._triggerEvents.set('mouseleave', this.onPointerLeave.bind(this));
|
|
1037
|
+
// By default use the host element as trigger element.
|
|
1038
|
+
this.setTriggerElement(this._containerElement);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Fades in a ripple at the given coordinates.
|
|
1043
|
+
* @param {?} x Coordinate within the element, along the X axis at which to start the ripple.
|
|
1044
|
+
* @param {?} y
|
|
1045
|
+
* @param {?=} config Extra ripple options.
|
|
1046
|
+
* @return {?}
|
|
1047
|
+
*/
|
|
1048
|
+
RippleRenderer.prototype.fadeInRipple = function (x, y, config) {
|
|
1049
|
+
var _this = this;
|
|
1050
|
+
if (config === void 0) { config = {}; }
|
|
1051
|
+
var /** @type {?} */ containerRect = this._containerElement.getBoundingClientRect();
|
|
1052
|
+
if (config.centered) {
|
|
1053
|
+
x = containerRect.left + containerRect.width / 2;
|
|
1054
|
+
y = containerRect.top + containerRect.height / 2;
|
|
1055
|
+
}
|
|
1056
|
+
var /** @type {?} */ radius = config.radius || distanceToFurthestCorner(x, y, containerRect);
|
|
1057
|
+
var /** @type {?} */ duration = RIPPLE_FADE_IN_DURATION * (1 / (config.speedFactor || 1));
|
|
1058
|
+
var /** @type {?} */ offsetX = x - containerRect.left;
|
|
1059
|
+
var /** @type {?} */ offsetY = y - containerRect.top;
|
|
1060
|
+
var /** @type {?} */ ripple = document.createElement('div');
|
|
1061
|
+
ripple.classList.add('mat-ripple-element');
|
|
1062
|
+
ripple.style.left = offsetX - radius + "px";
|
|
1063
|
+
ripple.style.top = offsetY - radius + "px";
|
|
1064
|
+
ripple.style.height = radius * 2 + "px";
|
|
1065
|
+
ripple.style.width = radius * 2 + "px";
|
|
1066
|
+
// If the color is not set, the default CSS color will be used.
|
|
1067
|
+
ripple.style.backgroundColor = config.color || null;
|
|
1068
|
+
ripple.style.transitionDuration = duration + "ms";
|
|
1069
|
+
this._containerElement.appendChild(ripple);
|
|
1070
|
+
// By default the browser does not recalculate the styles of dynamically created
|
|
1071
|
+
// ripple elements. This is critical because then the `scale` would not animate properly.
|
|
1072
|
+
enforceStyleRecalculation(ripple);
|
|
1073
|
+
ripple.style.transform = 'scale(1)';
|
|
1074
|
+
// Exposed reference to the ripple that will be returned.
|
|
1075
|
+
var /** @type {?} */ rippleRef = new RippleRef(this, ripple, config);
|
|
1076
|
+
rippleRef.state = RippleState.FADING_IN;
|
|
1077
|
+
// Add the ripple reference to the list of all active ripples.
|
|
1078
|
+
this._activeRipples.add(rippleRef);
|
|
1079
|
+
// Wait for the ripple element to be completely faded in.
|
|
1080
|
+
// Once it's faded in, the ripple can be hidden immediately if the mouse is released.
|
|
1081
|
+
this.runTimeoutOutsideZone(function () {
|
|
1082
|
+
rippleRef.state = RippleState.VISIBLE;
|
|
1083
|
+
if (!config.persistent && !_this._isPointerDown) {
|
|
1084
|
+
rippleRef.fadeOut();
|
|
1085
|
+
}
|
|
1086
|
+
}, duration);
|
|
1087
|
+
return rippleRef;
|
|
1088
|
+
};
|
|
1089
|
+
/**
|
|
1090
|
+
* Fades out a ripple reference.
|
|
1091
|
+
* @param {?} rippleRef
|
|
1092
|
+
* @return {?}
|
|
1093
|
+
*/
|
|
1094
|
+
RippleRenderer.prototype.fadeOutRipple = function (rippleRef) {
|
|
1095
|
+
// For ripples that are not active anymore, don't re-un the fade-out animation.
|
|
1096
|
+
if (!this._activeRipples.delete(rippleRef)) {
|
|
1097
|
+
return;
|
|
1098
|
+
}
|
|
1099
|
+
var /** @type {?} */ rippleEl = rippleRef.element;
|
|
1100
|
+
rippleEl.style.transitionDuration = RIPPLE_FADE_OUT_DURATION + "ms";
|
|
1101
|
+
rippleEl.style.opacity = '0';
|
|
1102
|
+
rippleRef.state = RippleState.FADING_OUT;
|
|
1103
|
+
// Once the ripple faded out, the ripple can be safely removed from the DOM.
|
|
1104
|
+
this.runTimeoutOutsideZone(function () {
|
|
1105
|
+
rippleRef.state = RippleState.HIDDEN; /** @type {?} */
|
|
1106
|
+
((rippleEl.parentNode)).removeChild(rippleEl);
|
|
1107
|
+
}, RIPPLE_FADE_OUT_DURATION);
|
|
1108
|
+
};
|
|
1109
|
+
/**
|
|
1110
|
+
* Fades out all currently active ripples.
|
|
1111
|
+
* @return {?}
|
|
1112
|
+
*/
|
|
1113
|
+
RippleRenderer.prototype.fadeOutAll = function () {
|
|
1114
|
+
this._activeRipples.forEach(function (ripple) { return ripple.fadeOut(); });
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* Sets the trigger element and registers the mouse events.
|
|
1118
|
+
* @param {?} element
|
|
1119
|
+
* @return {?}
|
|
1120
|
+
*/
|
|
1121
|
+
RippleRenderer.prototype.setTriggerElement = function (element) {
|
|
1122
|
+
var _this = this;
|
|
1123
|
+
// Remove all previously register event listeners from the trigger element.
|
|
1124
|
+
if (this._triggerElement) {
|
|
1125
|
+
this._triggerEvents.forEach(function (fn, type) {
|
|
1126
|
+
((_this._triggerElement)).removeEventListener(type, fn);
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
if (element) {
|
|
1130
|
+
// If the element is not null, register all event listeners on the trigger element.
|
|
1131
|
+
this._ngZone.runOutsideAngular(function () {
|
|
1132
|
+
_this._triggerEvents.forEach(function (fn, type) { return element.addEventListener(type, fn); });
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
this._triggerElement = element;
|
|
1136
|
+
};
|
|
1137
|
+
/**
|
|
1138
|
+
* Function being called whenever the trigger is being pressed.
|
|
1139
|
+
* @param {?} event
|
|
1140
|
+
* @return {?}
|
|
1141
|
+
*/
|
|
1142
|
+
RippleRenderer.prototype.onMousedown = function (event) {
|
|
1143
|
+
if (!this.rippleDisabled) {
|
|
1144
|
+
this._isPointerDown = true;
|
|
1145
|
+
this.fadeInRipple(event.clientX, event.clientY, this.rippleConfig);
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
/**
|
|
1149
|
+
* Function being called whenever the pointer is being released.
|
|
1150
|
+
* @return {?}
|
|
1151
|
+
*/
|
|
1152
|
+
RippleRenderer.prototype.onPointerUp = function () {
|
|
1153
|
+
this._isPointerDown = false;
|
|
1154
|
+
// Fade-out all ripples that are completely visible and not persistent.
|
|
1155
|
+
this._activeRipples.forEach(function (ripple) {
|
|
1156
|
+
if (!ripple.config.persistent && ripple.state === RippleState.VISIBLE) {
|
|
1157
|
+
ripple.fadeOut();
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
};
|
|
1161
|
+
/**
|
|
1162
|
+
* Function being called whenever the pointer leaves the trigger.
|
|
1163
|
+
* @return {?}
|
|
1164
|
+
*/
|
|
1165
|
+
RippleRenderer.prototype.onPointerLeave = function () {
|
|
1166
|
+
if (this._isPointerDown) {
|
|
1167
|
+
this.onPointerUp();
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
/**
|
|
1171
|
+
* Function being called whenever the trigger is being touched.
|
|
1172
|
+
* @param {?} event
|
|
1173
|
+
* @return {?}
|
|
1174
|
+
*/
|
|
1175
|
+
RippleRenderer.prototype.onTouchstart = function (event) {
|
|
1176
|
+
if (!this.rippleDisabled) {
|
|
1177
|
+
var _a = event.touches[0], clientX = _a.clientX, clientY = _a.clientY;
|
|
1178
|
+
this._isPointerDown = true;
|
|
1179
|
+
this.fadeInRipple(clientX, clientY, this.rippleConfig);
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
/**
|
|
1183
|
+
* Runs a timeout outside of the Angular zone to avoid triggering the change detection.
|
|
1184
|
+
* @param {?} fn
|
|
1185
|
+
* @param {?=} delay
|
|
1186
|
+
* @return {?}
|
|
1187
|
+
*/
|
|
1188
|
+
RippleRenderer.prototype.runTimeoutOutsideZone = function (fn, delay) {
|
|
1189
|
+
if (delay === void 0) { delay = 0; }
|
|
1190
|
+
this._ngZone.runOutsideAngular(function () { return setTimeout(fn, delay); });
|
|
1191
|
+
};
|
|
1192
|
+
return RippleRenderer;
|
|
1193
|
+
}());
|
|
1194
|
+
/**
|
|
1195
|
+
* @param {?} element
|
|
1196
|
+
* @return {?}
|
|
1197
|
+
*/
|
|
1198
|
+
function enforceStyleRecalculation(element) {
|
|
1199
|
+
// Enforce a style recalculation by calling `getComputedStyle` and accessing any property.
|
|
1200
|
+
// Calling `getPropertyValue` is important to let optimizers know that this is not a noop.
|
|
1201
|
+
// See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a
|
|
1202
|
+
window.getComputedStyle(element).getPropertyValue('opacity');
|
|
1203
|
+
}
|
|
1204
|
+
/**
|
|
1205
|
+
* Returns the distance from the point (x, y) to the furthest corner of a rectangle.
|
|
1206
|
+
* @param {?} x
|
|
1207
|
+
* @param {?} y
|
|
1208
|
+
* @param {?} rect
|
|
1209
|
+
* @return {?}
|
|
1210
|
+
*/
|
|
1211
|
+
function distanceToFurthestCorner(x, y, rect) {
|
|
1212
|
+
var /** @type {?} */ distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));
|
|
1213
|
+
var /** @type {?} */ distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));
|
|
1214
|
+
return Math.sqrt(distX * distX + distY * distY);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Injection token that can be used to specify the global ripple options.
|
|
1219
|
+
*/
|
|
1220
|
+
var MAT_RIPPLE_GLOBAL_OPTIONS = new _angular_core.InjectionToken('mat-ripple-global-options');
|
|
1221
|
+
var MatRipple = (function () {
|
|
1222
|
+
/**
|
|
1223
|
+
* @param {?} elementRef
|
|
1224
|
+
* @param {?} ngZone
|
|
1225
|
+
* @param {?} platform
|
|
1226
|
+
* @param {?} globalOptions
|
|
1227
|
+
*/
|
|
1228
|
+
function MatRipple(elementRef, ngZone, platform, globalOptions) {
|
|
1229
|
+
/**
|
|
1230
|
+
* If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
|
|
1231
|
+
* will be the distance from the center of the ripple to the furthest corner of the host element's
|
|
1232
|
+
* bounding rectangle.
|
|
1233
|
+
*/
|
|
1234
|
+
this.radius = 0;
|
|
1235
|
+
/**
|
|
1236
|
+
* If set, the normal duration of ripple animations is divided by this value. For example,
|
|
1237
|
+
* setting it to 0.5 will cause the animations to take twice as long.
|
|
1238
|
+
* A changed speedFactor will not modify the fade-out duration of the ripples.
|
|
1239
|
+
*/
|
|
1240
|
+
this.speedFactor = 1;
|
|
1241
|
+
this._rippleRenderer = new RippleRenderer(elementRef, ngZone, platform);
|
|
1242
|
+
this._globalOptions = globalOptions ? globalOptions : {};
|
|
1243
|
+
this._updateRippleRenderer();
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* @param {?} changes
|
|
1247
|
+
* @return {?}
|
|
1248
|
+
*/
|
|
1249
|
+
MatRipple.prototype.ngOnChanges = function (changes) {
|
|
1250
|
+
if ((changes['trigger'] || changes['_matRippleTrigger']) && this.trigger) {
|
|
1251
|
+
this._rippleRenderer.setTriggerElement(this.trigger);
|
|
1252
|
+
}
|
|
1253
|
+
this._updateRippleRenderer();
|
|
1254
|
+
};
|
|
1255
|
+
/**
|
|
1256
|
+
* @return {?}
|
|
1257
|
+
*/
|
|
1258
|
+
MatRipple.prototype.ngOnDestroy = function () {
|
|
1259
|
+
// Set the trigger element to null to cleanup all listeners.
|
|
1260
|
+
this._rippleRenderer.setTriggerElement(null);
|
|
1261
|
+
};
|
|
1262
|
+
/**
|
|
1263
|
+
* Launches a manual ripple at the specified position.
|
|
1264
|
+
* @param {?} x
|
|
1265
|
+
* @param {?} y
|
|
1266
|
+
* @param {?=} config
|
|
1267
|
+
* @return {?}
|
|
1268
|
+
*/
|
|
1269
|
+
MatRipple.prototype.launch = function (x, y, config) {
|
|
1270
|
+
if (config === void 0) { config = this.rippleConfig; }
|
|
1271
|
+
return this._rippleRenderer.fadeInRipple(x, y, config);
|
|
1272
|
+
};
|
|
1273
|
+
/**
|
|
1274
|
+
* Fades out all currently showing ripple elements.
|
|
1275
|
+
* @return {?}
|
|
1276
|
+
*/
|
|
1277
|
+
MatRipple.prototype.fadeOutAll = function () {
|
|
1278
|
+
this._rippleRenderer.fadeOutAll();
|
|
1279
|
+
};
|
|
1280
|
+
Object.defineProperty(MatRipple.prototype, "rippleConfig", {
|
|
1281
|
+
/**
|
|
1282
|
+
* Ripple configuration from the directive's input values.
|
|
1283
|
+
* @return {?}
|
|
1284
|
+
*/
|
|
1285
|
+
get: function () {
|
|
1286
|
+
return {
|
|
1287
|
+
centered: this.centered,
|
|
1288
|
+
speedFactor: this.speedFactor * (this._globalOptions.baseSpeedFactor || 1),
|
|
1289
|
+
radius: this.radius,
|
|
1290
|
+
color: this.color
|
|
1291
|
+
};
|
|
1292
|
+
},
|
|
1293
|
+
enumerable: true,
|
|
1294
|
+
configurable: true
|
|
1295
|
+
});
|
|
1296
|
+
/**
|
|
1297
|
+
* Updates the ripple renderer with the latest ripple configuration.
|
|
1298
|
+
* @return {?}
|
|
1299
|
+
*/
|
|
1300
|
+
MatRipple.prototype._updateRippleRenderer = function () {
|
|
1301
|
+
this._rippleRenderer.rippleDisabled = this._globalOptions.disabled || this.disabled;
|
|
1302
|
+
this._rippleRenderer.rippleConfig = this.rippleConfig;
|
|
1303
|
+
};
|
|
1304
|
+
MatRipple.decorators = [
|
|
1305
|
+
{ type: _angular_core.Directive, args: [{
|
|
1306
|
+
selector: '[mat-ripple], [matRipple]',
|
|
1307
|
+
exportAs: 'matRipple',
|
|
1308
|
+
host: {
|
|
1309
|
+
'class': 'mat-ripple',
|
|
1310
|
+
'[class.mat-ripple-unbounded]': 'unbounded'
|
|
1311
|
+
}
|
|
1312
|
+
},] },
|
|
1313
|
+
];
|
|
1314
|
+
/**
|
|
1315
|
+
* @nocollapse
|
|
1316
|
+
*/
|
|
1317
|
+
MatRipple.ctorParameters = function () { return [
|
|
1318
|
+
{ type: _angular_core.ElementRef, },
|
|
1319
|
+
{ type: _angular_core.NgZone, },
|
|
1320
|
+
{ type: _angular_cdk_platform.Platform, },
|
|
1321
|
+
{ type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] },] },
|
|
1322
|
+
]; };
|
|
1323
|
+
MatRipple.propDecorators = {
|
|
1324
|
+
'trigger': [{ type: _angular_core.Input, args: ['matRippleTrigger',] },],
|
|
1325
|
+
'centered': [{ type: _angular_core.Input, args: ['matRippleCentered',] },],
|
|
1326
|
+
'disabled': [{ type: _angular_core.Input, args: ['matRippleDisabled',] },],
|
|
1327
|
+
'radius': [{ type: _angular_core.Input, args: ['matRippleRadius',] },],
|
|
1328
|
+
'speedFactor': [{ type: _angular_core.Input, args: ['matRippleSpeedFactor',] },],
|
|
1329
|
+
'color': [{ type: _angular_core.Input, args: ['matRippleColor',] },],
|
|
1330
|
+
'unbounded': [{ type: _angular_core.Input, args: ['matRippleUnbounded',] },],
|
|
1331
|
+
};
|
|
1332
|
+
return MatRipple;
|
|
1333
|
+
}());
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* \@docs-private
|
|
1337
|
+
*/
|
|
1338
|
+
var MatOptgroupBase = (function () {
|
|
1339
|
+
function MatOptgroupBase() {
|
|
1340
|
+
}
|
|
1341
|
+
return MatOptgroupBase;
|
|
1342
|
+
}());
|
|
1343
|
+
var _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase);
|
|
1344
|
+
// Counter for unique group ids.
|
|
1345
|
+
var _uniqueOptgroupIdCounter = 0;
|
|
1346
|
+
/**
|
|
1347
|
+
* Component that is used to group instances of `mat-option`.
|
|
1348
|
+
*/
|
|
1349
|
+
var MatOptgroup = (function (_super) {
|
|
1350
|
+
__extends(MatOptgroup, _super);
|
|
1351
|
+
function MatOptgroup() {
|
|
1352
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1353
|
+
/**
|
|
1354
|
+
* Unique id for the underlying label.
|
|
1355
|
+
*/
|
|
1356
|
+
_this._labelId = "mat-optgroup-label-" + _uniqueOptgroupIdCounter++;
|
|
1357
|
+
return _this;
|
|
1358
|
+
}
|
|
1359
|
+
MatOptgroup.decorators = [
|
|
1360
|
+
{ type: _angular_core.Component, args: [{selector: 'mat-optgroup',
|
|
1361
|
+
exportAs: 'matOptgroup',
|
|
1362
|
+
template: "<label class=\"mat-optgroup-label\" [id]=\"_labelId\">{{ label }}</label><ng-content select=\"mat-option\"></ng-content>",
|
|
1363
|
+
encapsulation: _angular_core.ViewEncapsulation.None,
|
|
1364
|
+
preserveWhitespaces: false,
|
|
1365
|
+
changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
|
|
1366
|
+
inputs: ['disabled'],
|
|
1367
|
+
host: {
|
|
1368
|
+
'class': 'mat-optgroup',
|
|
1369
|
+
'role': 'group',
|
|
1370
|
+
'[class.mat-optgroup-disabled]': 'disabled',
|
|
1371
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
1372
|
+
'[attr.aria-labelledby]': '_labelId',
|
|
1373
|
+
}
|
|
1374
|
+
},] },
|
|
1375
|
+
];
|
|
1376
|
+
/**
|
|
1377
|
+
* @nocollapse
|
|
1378
|
+
*/
|
|
1379
|
+
MatOptgroup.ctorParameters = function () { return []; };
|
|
1380
|
+
MatOptgroup.propDecorators = {
|
|
1381
|
+
'label': [{ type: _angular_core.Input },],
|
|
1382
|
+
};
|
|
1383
|
+
return MatOptgroup;
|
|
1384
|
+
}(_MatOptgroupMixinBase));
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Option IDs need to be unique across components, so this counter exists outside of
|
|
1388
|
+
* the component definition.
|
|
1389
|
+
*/
|
|
1390
|
+
var _uniqueIdCounter = 0;
|
|
1391
|
+
/**
|
|
1392
|
+
* Event object emitted by MatOption when selected or deselected.
|
|
1393
|
+
*/
|
|
1394
|
+
var MatOptionSelectionChange = (function () {
|
|
1395
|
+
/**
|
|
1396
|
+
* @param {?} source
|
|
1397
|
+
* @param {?=} isUserInput
|
|
1398
|
+
*/
|
|
1399
|
+
function MatOptionSelectionChange(source, isUserInput) {
|
|
1400
|
+
if (isUserInput === void 0) { isUserInput = false; }
|
|
1401
|
+
this.source = source;
|
|
1402
|
+
this.isUserInput = isUserInput;
|
|
1403
|
+
}
|
|
1404
|
+
return MatOptionSelectionChange;
|
|
1405
|
+
}());
|
|
1406
|
+
/**
|
|
1407
|
+
* Single option inside of a `<mat-select>` element.
|
|
1408
|
+
*/
|
|
1409
|
+
var MatOption = (function () {
|
|
1410
|
+
/**
|
|
1411
|
+
* @param {?} _element
|
|
1412
|
+
* @param {?} _changeDetectorRef
|
|
1413
|
+
* @param {?} group
|
|
1414
|
+
*/
|
|
1415
|
+
function MatOption(_element, _changeDetectorRef, group) {
|
|
1416
|
+
this._element = _element;
|
|
1417
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
1418
|
+
this.group = group;
|
|
1419
|
+
this._selected = false;
|
|
1420
|
+
this._active = false;
|
|
1421
|
+
this._multiple = false;
|
|
1422
|
+
this._disableRipple = false;
|
|
1423
|
+
/**
|
|
1424
|
+
* Whether the option is disabled.
|
|
1425
|
+
*/
|
|
1426
|
+
this._disabled = false;
|
|
1427
|
+
this._id = "mat-option-" + _uniqueIdCounter++;
|
|
1428
|
+
/**
|
|
1429
|
+
* Event emitted when the option is selected or deselected.
|
|
1430
|
+
*/
|
|
1431
|
+
this.onSelectionChange = new _angular_core.EventEmitter();
|
|
1432
|
+
}
|
|
1433
|
+
Object.defineProperty(MatOption.prototype, "multiple", {
|
|
1434
|
+
/**
|
|
1435
|
+
* Whether the wrapping component is in multiple selection mode.
|
|
1436
|
+
* @return {?}
|
|
1437
|
+
*/
|
|
1438
|
+
get: function () { return this._multiple; },
|
|
1439
|
+
/**
|
|
1440
|
+
* @param {?} value
|
|
1441
|
+
* @return {?}
|
|
1442
|
+
*/
|
|
1443
|
+
set: function (value) {
|
|
1444
|
+
if (value !== this._multiple) {
|
|
1445
|
+
this._multiple = value;
|
|
1446
|
+
this._changeDetectorRef.markForCheck();
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
enumerable: true,
|
|
1450
|
+
configurable: true
|
|
1451
|
+
});
|
|
1452
|
+
Object.defineProperty(MatOption.prototype, "id", {
|
|
1453
|
+
/**
|
|
1454
|
+
* The unique ID of the option.
|
|
1455
|
+
* @return {?}
|
|
1456
|
+
*/
|
|
1457
|
+
get: function () { return this._id; },
|
|
1458
|
+
enumerable: true,
|
|
1459
|
+
configurable: true
|
|
1460
|
+
});
|
|
1461
|
+
Object.defineProperty(MatOption.prototype, "selected", {
|
|
1462
|
+
/**
|
|
1463
|
+
* Whether or not the option is currently selected.
|
|
1464
|
+
* @return {?}
|
|
1465
|
+
*/
|
|
1466
|
+
get: function () { return this._selected; },
|
|
1467
|
+
enumerable: true,
|
|
1468
|
+
configurable: true
|
|
1469
|
+
});
|
|
1470
|
+
Object.defineProperty(MatOption.prototype, "disabled", {
|
|
1471
|
+
/**
|
|
1472
|
+
* Whether the option is disabled.
|
|
1473
|
+
* @return {?}
|
|
1474
|
+
*/
|
|
1475
|
+
get: function () { return (this.group && this.group.disabled) || this._disabled; },
|
|
1476
|
+
/**
|
|
1477
|
+
* @param {?} value
|
|
1478
|
+
* @return {?}
|
|
1479
|
+
*/
|
|
1480
|
+
set: function (value) { this._disabled = _angular_cdk_coercion.coerceBooleanProperty(value); },
|
|
1481
|
+
enumerable: true,
|
|
1482
|
+
configurable: true
|
|
1483
|
+
});
|
|
1484
|
+
Object.defineProperty(MatOption.prototype, "disableRipple", {
|
|
1485
|
+
/**
|
|
1486
|
+
* Whether ripples for the option are disabled.
|
|
1487
|
+
* @return {?}
|
|
1488
|
+
*/
|
|
1489
|
+
get: function () { return this._disableRipple; },
|
|
1490
|
+
/**
|
|
1491
|
+
* @param {?} value
|
|
1492
|
+
* @return {?}
|
|
1493
|
+
*/
|
|
1494
|
+
set: function (value) {
|
|
1495
|
+
this._disableRipple = value;
|
|
1496
|
+
this._changeDetectorRef.markForCheck();
|
|
1497
|
+
},
|
|
1498
|
+
enumerable: true,
|
|
1499
|
+
configurable: true
|
|
1500
|
+
});
|
|
1501
|
+
Object.defineProperty(MatOption.prototype, "active", {
|
|
1502
|
+
/**
|
|
1503
|
+
* Whether or not the option is currently active and ready to be selected.
|
|
1504
|
+
* An active option displays styles as if it is focused, but the
|
|
1505
|
+
* focus is actually retained somewhere else. This comes in handy
|
|
1506
|
+
* for components like autocomplete where focus must remain on the input.
|
|
1507
|
+
* @return {?}
|
|
1508
|
+
*/
|
|
1509
|
+
get: function () {
|
|
1510
|
+
return this._active;
|
|
1511
|
+
},
|
|
1512
|
+
enumerable: true,
|
|
1513
|
+
configurable: true
|
|
1514
|
+
});
|
|
1515
|
+
Object.defineProperty(MatOption.prototype, "viewValue", {
|
|
1516
|
+
/**
|
|
1517
|
+
* The displayed value of the option. It is necessary to show the selected option in the
|
|
1518
|
+
* select's trigger.
|
|
1519
|
+
* @return {?}
|
|
1520
|
+
*/
|
|
1521
|
+
get: function () {
|
|
1522
|
+
// TODO(kara): Add input property alternative for node envs.
|
|
1523
|
+
return (this._getHostElement().textContent || '').trim();
|
|
1524
|
+
},
|
|
1525
|
+
enumerable: true,
|
|
1526
|
+
configurable: true
|
|
1527
|
+
});
|
|
1528
|
+
/**
|
|
1529
|
+
* Selects the option.
|
|
1530
|
+
* @return {?}
|
|
1531
|
+
*/
|
|
1532
|
+
MatOption.prototype.select = function () {
|
|
1533
|
+
this._selected = true;
|
|
1534
|
+
this._changeDetectorRef.markForCheck();
|
|
1535
|
+
this._emitSelectionChangeEvent();
|
|
1536
|
+
};
|
|
1537
|
+
/**
|
|
1538
|
+
* Deselects the option.
|
|
1539
|
+
* @return {?}
|
|
1540
|
+
*/
|
|
1541
|
+
MatOption.prototype.deselect = function () {
|
|
1542
|
+
this._selected = false;
|
|
1543
|
+
this._changeDetectorRef.markForCheck();
|
|
1544
|
+
this._emitSelectionChangeEvent();
|
|
1545
|
+
};
|
|
1546
|
+
/**
|
|
1547
|
+
* Sets focus onto this option.
|
|
1548
|
+
* @return {?}
|
|
1549
|
+
*/
|
|
1550
|
+
MatOption.prototype.focus = function () {
|
|
1551
|
+
var /** @type {?} */ element = this._getHostElement();
|
|
1552
|
+
if (typeof element.focus === 'function') {
|
|
1553
|
+
element.focus();
|
|
1554
|
+
}
|
|
1555
|
+
};
|
|
1556
|
+
/**
|
|
1557
|
+
* This method sets display styles on the option to make it appear
|
|
1558
|
+
* active. This is used by the ActiveDescendantKeyManager so key
|
|
1559
|
+
* events will display the proper options as active on arrow key events.
|
|
1560
|
+
* @return {?}
|
|
1561
|
+
*/
|
|
1562
|
+
MatOption.prototype.setActiveStyles = function () {
|
|
1563
|
+
if (!this._active) {
|
|
1564
|
+
this._active = true;
|
|
1565
|
+
this._changeDetectorRef.markForCheck();
|
|
1566
|
+
}
|
|
1567
|
+
};
|
|
1568
|
+
/**
|
|
1569
|
+
* This method removes display styles on the option that made it appear
|
|
1570
|
+
* active. This is used by the ActiveDescendantKeyManager so key
|
|
1571
|
+
* events will display the proper options as active on arrow key events.
|
|
1572
|
+
* @return {?}
|
|
1573
|
+
*/
|
|
1574
|
+
MatOption.prototype.setInactiveStyles = function () {
|
|
1575
|
+
if (this._active) {
|
|
1576
|
+
this._active = false;
|
|
1577
|
+
this._changeDetectorRef.markForCheck();
|
|
1578
|
+
}
|
|
1579
|
+
};
|
|
1580
|
+
/**
|
|
1581
|
+
* Gets the label to be used when determining whether the option should be focused.
|
|
1582
|
+
* @return {?}
|
|
1583
|
+
*/
|
|
1584
|
+
MatOption.prototype.getLabel = function () {
|
|
1585
|
+
return this.viewValue;
|
|
1586
|
+
};
|
|
1587
|
+
/**
|
|
1588
|
+
* Ensures the option is selected when activated from the keyboard.
|
|
1589
|
+
* @param {?} event
|
|
1590
|
+
* @return {?}
|
|
1591
|
+
*/
|
|
1592
|
+
MatOption.prototype._handleKeydown = function (event) {
|
|
1593
|
+
if (event.keyCode === _angular_cdk_keycodes.ENTER || event.keyCode === _angular_cdk_keycodes.SPACE) {
|
|
1594
|
+
this._selectViaInteraction();
|
|
1595
|
+
// Prevent the page from scrolling down and form submits.
|
|
1596
|
+
event.preventDefault();
|
|
1597
|
+
}
|
|
1598
|
+
};
|
|
1599
|
+
/**
|
|
1600
|
+
* Selects the option while indicating the selection came from the user. Used to
|
|
1601
|
+
* determine if the select's view -> model callback should be invoked.
|
|
1602
|
+
* @return {?}
|
|
1603
|
+
*/
|
|
1604
|
+
MatOption.prototype._selectViaInteraction = function () {
|
|
1605
|
+
if (!this.disabled) {
|
|
1606
|
+
this._selected = this.multiple ? !this._selected : true;
|
|
1607
|
+
this._changeDetectorRef.markForCheck();
|
|
1608
|
+
this._emitSelectionChangeEvent(true);
|
|
1609
|
+
}
|
|
1610
|
+
};
|
|
1611
|
+
/**
|
|
1612
|
+
* Returns the correct tabindex for the option depending on disabled state.
|
|
1613
|
+
* @return {?}
|
|
1614
|
+
*/
|
|
1615
|
+
MatOption.prototype._getTabIndex = function () {
|
|
1616
|
+
return this.disabled ? '-1' : '0';
|
|
1617
|
+
};
|
|
1618
|
+
/**
|
|
1619
|
+
* Gets the host DOM element.
|
|
1620
|
+
* @return {?}
|
|
1621
|
+
*/
|
|
1622
|
+
MatOption.prototype._getHostElement = function () {
|
|
1623
|
+
return this._element.nativeElement;
|
|
1624
|
+
};
|
|
1625
|
+
/**
|
|
1626
|
+
* Emits the selection change event.
|
|
1627
|
+
* @param {?=} isUserInput
|
|
1628
|
+
* @return {?}
|
|
1629
|
+
*/
|
|
1630
|
+
MatOption.prototype._emitSelectionChangeEvent = function (isUserInput) {
|
|
1631
|
+
if (isUserInput === void 0) { isUserInput = false; }
|
|
1632
|
+
this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));
|
|
1633
|
+
};
|
|
1634
|
+
/**
|
|
1635
|
+
* Counts the amount of option group labels that precede the specified option.
|
|
1636
|
+
* @param {?} optionIndex Index of the option at which to start counting.
|
|
1637
|
+
* @param {?} options Flat list of all of the options.
|
|
1638
|
+
* @param {?} optionGroups Flat list of all of the option groups.
|
|
1639
|
+
* @return {?}
|
|
1640
|
+
*/
|
|
1641
|
+
MatOption.countGroupLabelsBeforeOption = function (optionIndex, options, optionGroups) {
|
|
1642
|
+
if (optionGroups.length) {
|
|
1643
|
+
var /** @type {?} */ optionsArray = options.toArray();
|
|
1644
|
+
var /** @type {?} */ groups = optionGroups.toArray();
|
|
1645
|
+
var /** @type {?} */ groupCounter = 0;
|
|
1646
|
+
for (var /** @type {?} */ i = 0; i < optionIndex + 1; i++) {
|
|
1647
|
+
if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {
|
|
1648
|
+
groupCounter++;
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
return groupCounter;
|
|
1652
|
+
}
|
|
1653
|
+
return 0;
|
|
1654
|
+
};
|
|
1655
|
+
MatOption.decorators = [
|
|
1656
|
+
{ type: _angular_core.Component, args: [{selector: 'mat-option',
|
|
1657
|
+
exportAs: 'matOption',
|
|
1658
|
+
host: {
|
|
1659
|
+
'role': 'option',
|
|
1660
|
+
'[attr.tabindex]': '_getTabIndex()',
|
|
1661
|
+
'[class.mat-selected]': 'selected',
|
|
1662
|
+
'[class.mat-option-multiple]': 'multiple',
|
|
1663
|
+
'[class.mat-active]': 'active',
|
|
1664
|
+
'[id]': 'id',
|
|
1665
|
+
'[attr.aria-selected]': 'selected.toString()',
|
|
1666
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
1667
|
+
'[class.mat-option-disabled]': 'disabled',
|
|
1668
|
+
'(click)': '_selectViaInteraction()',
|
|
1669
|
+
'(keydown)': '_handleKeydown($event)',
|
|
1670
|
+
'class': 'mat-option',
|
|
1671
|
+
},
|
|
1672
|
+
template: "<span *ngIf=\"multiple\"><mat-pseudo-checkbox class=\"mat-option-pseudo-checkbox\" [state]=\"selected ? 'checked' : ''\" [disabled]=\"disabled\"></mat-pseudo-checkbox></span><span class=\"mat-option-text\"><ng-content></ng-content></span><div class=\"mat-option-ripple\" mat-ripple [matRippleTrigger]=\"_getHostElement()\" [matRippleDisabled]=\"disabled || disableRipple\"></div>",
|
|
1673
|
+
encapsulation: _angular_core.ViewEncapsulation.None,
|
|
1674
|
+
preserveWhitespaces: false,
|
|
1675
|
+
changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
|
|
1676
|
+
},] },
|
|
1677
|
+
];
|
|
1678
|
+
/**
|
|
1679
|
+
* @nocollapse
|
|
1680
|
+
*/
|
|
1681
|
+
MatOption.ctorParameters = function () { return [
|
|
1682
|
+
{ type: _angular_core.ElementRef, },
|
|
1683
|
+
{ type: _angular_core.ChangeDetectorRef, },
|
|
1684
|
+
{ type: MatOptgroup, decorators: [{ type: _angular_core.Optional },] },
|
|
1685
|
+
]; };
|
|
1686
|
+
MatOption.propDecorators = {
|
|
1687
|
+
'value': [{ type: _angular_core.Input },],
|
|
1688
|
+
'disabled': [{ type: _angular_core.Input },],
|
|
1689
|
+
'onSelectionChange': [{ type: _angular_core.Output },],
|
|
1690
|
+
};
|
|
1691
|
+
return MatOption;
|
|
1692
|
+
}());
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* InjectionToken that can be used to specify the global placeholder options.
|
|
1696
|
+
*/
|
|
1697
|
+
var MAT_PLACEHOLDER_GLOBAL_OPTIONS = new _angular_core.InjectionToken('mat-placeholder-global-options');
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* Visually, a 30px separation between tick marks looks best. This is very subjective but it is
|
|
1701
|
+
* the default separation we chose.
|
|
1702
|
+
*/
|
|
1703
|
+
var MIN_AUTO_TICK_SEPARATION = 30;
|
|
1704
|
+
/**
|
|
1705
|
+
* The thumb gap size for a disabled slider.
|
|
1706
|
+
*/
|
|
1707
|
+
var DISABLED_THUMB_GAP = 7;
|
|
1708
|
+
/**
|
|
1709
|
+
* The thumb gap size for a non-active slider at its minimum value.
|
|
1710
|
+
*/
|
|
1711
|
+
var MIN_VALUE_NONACTIVE_THUMB_GAP = 7;
|
|
1712
|
+
/**
|
|
1713
|
+
* The thumb gap size for an active slider at its minimum value.
|
|
1714
|
+
*/
|
|
1715
|
+
var MIN_VALUE_ACTIVE_THUMB_GAP = 10;
|
|
1716
|
+
/**
|
|
1717
|
+
* Provider Expression that allows mat-slider to register as a ControlValueAccessor.
|
|
1718
|
+
* This allows it to support [(ngModel)] and [formControl].
|
|
1719
|
+
*/
|
|
1720
|
+
var MAT_SLIDER_VALUE_ACCESSOR = {
|
|
1721
|
+
provide: _angular_forms.NG_VALUE_ACCESSOR,
|
|
1722
|
+
useExisting: _angular_core.forwardRef(function () { return MatSlider; }),
|
|
1723
|
+
multi: true
|
|
1724
|
+
};
|
|
1725
|
+
/**
|
|
1726
|
+
* A simple change event emitted by the MatSlider component.
|
|
1727
|
+
*/
|
|
1728
|
+
var MatSliderChange = (function () {
|
|
1729
|
+
function MatSliderChange() {
|
|
1730
|
+
}
|
|
1731
|
+
return MatSliderChange;
|
|
1732
|
+
}());
|
|
1733
|
+
/**
|
|
1734
|
+
* \@docs-private
|
|
1735
|
+
*/
|
|
1736
|
+
var MatSliderBase = (function () {
|
|
1737
|
+
/**
|
|
1738
|
+
* @param {?} _renderer
|
|
1739
|
+
* @param {?} _elementRef
|
|
1740
|
+
*/
|
|
1741
|
+
function MatSliderBase(_renderer, _elementRef) {
|
|
1742
|
+
this._renderer = _renderer;
|
|
1743
|
+
this._elementRef = _elementRef;
|
|
1744
|
+
}
|
|
1745
|
+
return MatSliderBase;
|
|
1746
|
+
}());
|
|
1747
|
+
var _MatSliderMixinBase = mixinColor(mixinDisabled(MatSliderBase), 'accent');
|
|
1748
|
+
/**
|
|
1749
|
+
* Allows users to select from a range of values by moving the slider thumb. It is similar in
|
|
1750
|
+
* behavior to the native `<input type="range">` element.
|
|
1751
|
+
*/
|
|
1752
|
+
var MatSlider = (function (_super) {
|
|
1753
|
+
__extends(MatSlider, _super);
|
|
1754
|
+
/**
|
|
1755
|
+
* @param {?} renderer
|
|
1756
|
+
* @param {?} elementRef
|
|
1757
|
+
* @param {?} _focusMonitor
|
|
1758
|
+
* @param {?} _changeDetectorRef
|
|
1759
|
+
* @param {?} _dir
|
|
1760
|
+
*/
|
|
1761
|
+
function MatSlider(renderer, elementRef, _focusMonitor, _changeDetectorRef, _dir) {
|
|
1762
|
+
var _this = _super.call(this, renderer, elementRef) || this;
|
|
1763
|
+
_this._focusMonitor = _focusMonitor;
|
|
1764
|
+
_this._changeDetectorRef = _changeDetectorRef;
|
|
1765
|
+
_this._dir = _dir;
|
|
1766
|
+
_this._invert = false;
|
|
1767
|
+
_this._max = 100;
|
|
1768
|
+
_this._min = 0;
|
|
1769
|
+
_this._step = 1;
|
|
1770
|
+
_this._thumbLabel = false;
|
|
1771
|
+
_this._tickInterval = 0;
|
|
1772
|
+
_this._value = null;
|
|
1773
|
+
_this._vertical = false;
|
|
1774
|
+
/**
|
|
1775
|
+
* Event emitted when the slider value has changed.
|
|
1776
|
+
*/
|
|
1777
|
+
_this.change = new _angular_core.EventEmitter();
|
|
1778
|
+
/**
|
|
1779
|
+
* Event emitted when the slider thumb moves.
|
|
1780
|
+
*/
|
|
1781
|
+
_this.input = new _angular_core.EventEmitter();
|
|
1782
|
+
/**
|
|
1783
|
+
* onTouch function registered via registerOnTouch (ControlValueAccessor).
|
|
1784
|
+
*/
|
|
1785
|
+
_this.onTouched = function () { };
|
|
1786
|
+
_this._percent = 0;
|
|
1787
|
+
/**
|
|
1788
|
+
* Whether or not the thumb is sliding.
|
|
1789
|
+
* Used to determine if there should be a transition for the thumb and fill track.
|
|
1790
|
+
*/
|
|
1791
|
+
_this._isSliding = false;
|
|
1792
|
+
/**
|
|
1793
|
+
* Whether or not the slider is active (clicked or sliding).
|
|
1794
|
+
* Used to shrink and grow the thumb as according to the Material Design spec.
|
|
1795
|
+
*/
|
|
1796
|
+
_this._isActive = false;
|
|
1797
|
+
/**
|
|
1798
|
+
* The size of a tick interval as a percentage of the size of the track.
|
|
1799
|
+
*/
|
|
1800
|
+
_this._tickIntervalPercent = 0;
|
|
1801
|
+
/**
|
|
1802
|
+
* The dimensions of the slider.
|
|
1803
|
+
*/
|
|
1804
|
+
_this._sliderDimensions = null;
|
|
1805
|
+
_this._controlValueAccessorChangeFn = function () { };
|
|
1806
|
+
/**
|
|
1807
|
+
* Subscription to the Directionality change EventEmitter.
|
|
1808
|
+
*/
|
|
1809
|
+
_this._dirChangeSubscription = rxjs_Subscription.Subscription.EMPTY;
|
|
1810
|
+
return _this;
|
|
1811
|
+
}
|
|
1812
|
+
Object.defineProperty(MatSlider.prototype, "invert", {
|
|
1813
|
+
/**
|
|
1814
|
+
* Whether the slider is inverted.
|
|
1815
|
+
* @return {?}
|
|
1816
|
+
*/
|
|
1817
|
+
get: function () { return this._invert; },
|
|
1818
|
+
/**
|
|
1819
|
+
* @param {?} value
|
|
1820
|
+
* @return {?}
|
|
1821
|
+
*/
|
|
1822
|
+
set: function (value) {
|
|
1823
|
+
this._invert = _angular_cdk_coercion.coerceBooleanProperty(value);
|
|
1824
|
+
},
|
|
1825
|
+
enumerable: true,
|
|
1826
|
+
configurable: true
|
|
1827
|
+
});
|
|
1828
|
+
Object.defineProperty(MatSlider.prototype, "max", {
|
|
1829
|
+
/**
|
|
1830
|
+
* The maximum value that the slider can have.
|
|
1831
|
+
* @return {?}
|
|
1832
|
+
*/
|
|
1833
|
+
get: function () { return this._max; },
|
|
1834
|
+
/**
|
|
1835
|
+
* @param {?} v
|
|
1836
|
+
* @return {?}
|
|
1837
|
+
*/
|
|
1838
|
+
set: function (v) {
|
|
1839
|
+
this._max = _angular_cdk_coercion.coerceNumberProperty(v, this._max);
|
|
1840
|
+
this._percent = this._calculatePercentage(this._value);
|
|
1841
|
+
// Since this also modifies the percentage, we need to let the change detection know.
|
|
1842
|
+
this._changeDetectorRef.markForCheck();
|
|
1843
|
+
},
|
|
1844
|
+
enumerable: true,
|
|
1845
|
+
configurable: true
|
|
1846
|
+
});
|
|
1847
|
+
Object.defineProperty(MatSlider.prototype, "min", {
|
|
1848
|
+
/**
|
|
1849
|
+
* The minimum value that the slider can have.
|
|
1850
|
+
* @return {?}
|
|
1851
|
+
*/
|
|
1852
|
+
get: function () { return this._min; },
|
|
1853
|
+
/**
|
|
1854
|
+
* @param {?} v
|
|
1855
|
+
* @return {?}
|
|
1856
|
+
*/
|
|
1857
|
+
set: function (v) {
|
|
1858
|
+
this._min = _angular_cdk_coercion.coerceNumberProperty(v, this._min);
|
|
1859
|
+
// If the value wasn't explicitly set by the user, set it to the min.
|
|
1860
|
+
if (this._value === null) {
|
|
1861
|
+
this.value = this._min;
|
|
1862
|
+
}
|
|
1863
|
+
this._percent = this._calculatePercentage(this._value);
|
|
1864
|
+
// Since this also modifies the percentage, we need to let the change detection know.
|
|
1865
|
+
this._changeDetectorRef.markForCheck();
|
|
1866
|
+
},
|
|
1867
|
+
enumerable: true,
|
|
1868
|
+
configurable: true
|
|
1869
|
+
});
|
|
1870
|
+
Object.defineProperty(MatSlider.prototype, "step", {
|
|
1871
|
+
/**
|
|
1872
|
+
* The values at which the thumb will snap.
|
|
1873
|
+
* @return {?}
|
|
1874
|
+
*/
|
|
1875
|
+
get: function () { return this._step; },
|
|
1876
|
+
/**
|
|
1877
|
+
* @param {?} v
|
|
1878
|
+
* @return {?}
|
|
1879
|
+
*/
|
|
1880
|
+
set: function (v) {
|
|
1881
|
+
this._step = _angular_cdk_coercion.coerceNumberProperty(v, this._step);
|
|
1882
|
+
if (this._step % 1 !== 0) {
|
|
1883
|
+
this._roundLabelTo = ((this._step.toString().split('.').pop())).length;
|
|
1884
|
+
}
|
|
1885
|
+
// Since this could modify the label, we need to notify the change detection.
|
|
1886
|
+
this._changeDetectorRef.markForCheck();
|
|
1887
|
+
},
|
|
1888
|
+
enumerable: true,
|
|
1889
|
+
configurable: true
|
|
1890
|
+
});
|
|
1891
|
+
Object.defineProperty(MatSlider.prototype, "thumbLabel", {
|
|
1892
|
+
/**
|
|
1893
|
+
* Whether or not to show the thumb label.
|
|
1894
|
+
* @return {?}
|
|
1895
|
+
*/
|
|
1896
|
+
get: function () { return this._thumbLabel; },
|
|
1897
|
+
/**
|
|
1898
|
+
* @param {?} value
|
|
1899
|
+
* @return {?}
|
|
1900
|
+
*/
|
|
1901
|
+
set: function (value) { this._thumbLabel = _angular_cdk_coercion.coerceBooleanProperty(value); },
|
|
1902
|
+
enumerable: true,
|
|
1903
|
+
configurable: true
|
|
1904
|
+
});
|
|
1905
|
+
Object.defineProperty(MatSlider.prototype, "_thumbLabelDeprecated", {
|
|
1906
|
+
/**
|
|
1907
|
+
* @deprecated
|
|
1908
|
+
* @return {?}
|
|
1909
|
+
*/
|
|
1910
|
+
get: function () { return this._thumbLabel; },
|
|
1911
|
+
/**
|
|
1912
|
+
* @param {?} value
|
|
1913
|
+
* @return {?}
|
|
1914
|
+
*/
|
|
1915
|
+
set: function (value) { this._thumbLabel = value; },
|
|
1916
|
+
enumerable: true,
|
|
1917
|
+
configurable: true
|
|
1918
|
+
});
|
|
1919
|
+
Object.defineProperty(MatSlider.prototype, "tickInterval", {
|
|
1920
|
+
/**
|
|
1921
|
+
* How often to show ticks. Relative to the step so that a tick always appears on a step.
|
|
1922
|
+
* Ex: Tick interval of 4 with a step of 3 will draw a tick every 4 steps (every 12 values).
|
|
1923
|
+
* @return {?}
|
|
1924
|
+
*/
|
|
1925
|
+
get: function () { return this._tickInterval; },
|
|
1926
|
+
/**
|
|
1927
|
+
* @param {?} value
|
|
1928
|
+
* @return {?}
|
|
1929
|
+
*/
|
|
1930
|
+
set: function (value) {
|
|
1931
|
+
if (value === 'auto') {
|
|
1932
|
+
this._tickInterval = 'auto';
|
|
1933
|
+
}
|
|
1934
|
+
else if (typeof value === 'number' || typeof value === 'string') {
|
|
1935
|
+
this._tickInterval = _angular_cdk_coercion.coerceNumberProperty(value, /** @type {?} */ (this._tickInterval));
|
|
1936
|
+
}
|
|
1937
|
+
else {
|
|
1938
|
+
this._tickInterval = 0;
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
enumerable: true,
|
|
1942
|
+
configurable: true
|
|
1943
|
+
});
|
|
1944
|
+
Object.defineProperty(MatSlider.prototype, "_tickIntervalDeprecated", {
|
|
1945
|
+
/**
|
|
1946
|
+
* @deprecated
|
|
1947
|
+
* @return {?}
|
|
1948
|
+
*/
|
|
1949
|
+
get: function () { return this.tickInterval; },
|
|
1950
|
+
/**
|
|
1951
|
+
* @param {?} v
|
|
1952
|
+
* @return {?}
|
|
1953
|
+
*/
|
|
1954
|
+
set: function (v) { this.tickInterval = v; },
|
|
1955
|
+
enumerable: true,
|
|
1956
|
+
configurable: true
|
|
1957
|
+
});
|
|
1958
|
+
Object.defineProperty(MatSlider.prototype, "value", {
|
|
1959
|
+
/**
|
|
1960
|
+
* Value of the slider.
|
|
1961
|
+
* @return {?}
|
|
1962
|
+
*/
|
|
1963
|
+
get: function () {
|
|
1964
|
+
// If the value needs to be read and it is still uninitialized, initialize it to the min.
|
|
1965
|
+
if (this._value === null) {
|
|
1966
|
+
this.value = this._min;
|
|
1967
|
+
}
|
|
1968
|
+
return this._value;
|
|
1969
|
+
},
|
|
1970
|
+
/**
|
|
1971
|
+
* @param {?} v
|
|
1972
|
+
* @return {?}
|
|
1973
|
+
*/
|
|
1974
|
+
set: function (v) {
|
|
1975
|
+
if (v !== this._value) {
|
|
1976
|
+
this._value = _angular_cdk_coercion.coerceNumberProperty(v, this._value || 0);
|
|
1977
|
+
this._percent = this._calculatePercentage(this._value);
|
|
1978
|
+
// Since this also modifies the percentage, we need to let the change detection know.
|
|
1979
|
+
this._changeDetectorRef.markForCheck();
|
|
1980
|
+
}
|
|
1981
|
+
},
|
|
1982
|
+
enumerable: true,
|
|
1983
|
+
configurable: true
|
|
1984
|
+
});
|
|
1985
|
+
Object.defineProperty(MatSlider.prototype, "vertical", {
|
|
1986
|
+
/**
|
|
1987
|
+
* Whether the slider is vertical.
|
|
1988
|
+
* @return {?}
|
|
1989
|
+
*/
|
|
1990
|
+
get: function () { return this._vertical; },
|
|
1991
|
+
/**
|
|
1992
|
+
* @param {?} value
|
|
1993
|
+
* @return {?}
|
|
1994
|
+
*/
|
|
1995
|
+
set: function (value) {
|
|
1996
|
+
this._vertical = _angular_cdk_coercion.coerceBooleanProperty(value);
|
|
1997
|
+
},
|
|
1998
|
+
enumerable: true,
|
|
1999
|
+
configurable: true
|
|
2000
|
+
});
|
|
2001
|
+
Object.defineProperty(MatSlider.prototype, "displayValue", {
|
|
2002
|
+
/**
|
|
2003
|
+
* The value to be used for display purposes.
|
|
2004
|
+
* @return {?}
|
|
2005
|
+
*/
|
|
2006
|
+
get: function () {
|
|
2007
|
+
// Note that this could be improved further by rounding something like 0.999 to 1 or
|
|
2008
|
+
// 0.899 to 0.9, however it is very performance sensitive, because it gets called on
|
|
2009
|
+
// every change detection cycle.
|
|
2010
|
+
if (this._roundLabelTo && this.value && this.value % 1 !== 0) {
|
|
2011
|
+
return this.value.toFixed(this._roundLabelTo);
|
|
2012
|
+
}
|
|
2013
|
+
return this.value || 0;
|
|
2014
|
+
},
|
|
2015
|
+
enumerable: true,
|
|
2016
|
+
configurable: true
|
|
2017
|
+
});
|
|
2018
|
+
Object.defineProperty(MatSlider.prototype, "percent", {
|
|
2019
|
+
/**
|
|
2020
|
+
* The percentage of the slider that coincides with the value.
|
|
2021
|
+
* @return {?}
|
|
2022
|
+
*/
|
|
2023
|
+
get: function () { return this._clamp(this._percent); },
|
|
2024
|
+
enumerable: true,
|
|
2025
|
+
configurable: true
|
|
2026
|
+
});
|
|
2027
|
+
Object.defineProperty(MatSlider.prototype, "_invertAxis", {
|
|
2028
|
+
/**
|
|
2029
|
+
* Whether the axis of the slider is inverted.
|
|
2030
|
+
* (i.e. whether moving the thumb in the positive x or y direction decreases the slider's value).
|
|
2031
|
+
* @return {?}
|
|
2032
|
+
*/
|
|
2033
|
+
get: function () {
|
|
2034
|
+
// Standard non-inverted mode for a vertical slider should be dragging the thumb from bottom to
|
|
2035
|
+
// top. However from a y-axis standpoint this is inverted.
|
|
2036
|
+
return this.vertical ? !this.invert : this.invert;
|
|
2037
|
+
},
|
|
2038
|
+
enumerable: true,
|
|
2039
|
+
configurable: true
|
|
2040
|
+
});
|
|
2041
|
+
Object.defineProperty(MatSlider.prototype, "_isMinValue", {
|
|
2042
|
+
/**
|
|
2043
|
+
* Whether the slider is at its minimum value.
|
|
2044
|
+
* @return {?}
|
|
2045
|
+
*/
|
|
2046
|
+
get: function () {
|
|
2047
|
+
return this.percent === 0;
|
|
2048
|
+
},
|
|
2049
|
+
enumerable: true,
|
|
2050
|
+
configurable: true
|
|
2051
|
+
});
|
|
2052
|
+
Object.defineProperty(MatSlider.prototype, "_thumbGap", {
|
|
2053
|
+
/**
|
|
2054
|
+
* The amount of space to leave between the slider thumb and the track fill & track background
|
|
2055
|
+
* elements.
|
|
2056
|
+
* @return {?}
|
|
2057
|
+
*/
|
|
2058
|
+
get: function () {
|
|
2059
|
+
if (this.disabled) {
|
|
2060
|
+
return DISABLED_THUMB_GAP;
|
|
2061
|
+
}
|
|
2062
|
+
if (this._isMinValue && !this.thumbLabel) {
|
|
2063
|
+
return this._isActive ? MIN_VALUE_ACTIVE_THUMB_GAP : MIN_VALUE_NONACTIVE_THUMB_GAP;
|
|
2064
|
+
}
|
|
2065
|
+
return 0;
|
|
2066
|
+
},
|
|
2067
|
+
enumerable: true,
|
|
2068
|
+
configurable: true
|
|
2069
|
+
});
|
|
2070
|
+
Object.defineProperty(MatSlider.prototype, "_trackBackgroundStyles", {
|
|
2071
|
+
/**
|
|
2072
|
+
* CSS styles for the track background element.
|
|
2073
|
+
* @return {?}
|
|
2074
|
+
*/
|
|
2075
|
+
get: function () {
|
|
2076
|
+
var /** @type {?} */ axis = this.vertical ? 'Y' : 'X';
|
|
2077
|
+
var /** @type {?} */ sign = this._invertMouseCoords ? '-' : '';
|
|
2078
|
+
return {
|
|
2079
|
+
'transform': "translate" + axis + "(" + sign + this._thumbGap + "px) scale" + axis + "(" + (1 - this.percent) + ")"
|
|
2080
|
+
};
|
|
2081
|
+
},
|
|
2082
|
+
enumerable: true,
|
|
2083
|
+
configurable: true
|
|
2084
|
+
});
|
|
2085
|
+
Object.defineProperty(MatSlider.prototype, "_trackFillStyles", {
|
|
2086
|
+
/**
|
|
2087
|
+
* CSS styles for the track fill element.
|
|
2088
|
+
* @return {?}
|
|
2089
|
+
*/
|
|
2090
|
+
get: function () {
|
|
2091
|
+
var /** @type {?} */ axis = this.vertical ? 'Y' : 'X';
|
|
2092
|
+
var /** @type {?} */ sign = this._invertMouseCoords ? '' : '-';
|
|
2093
|
+
return {
|
|
2094
|
+
'transform': "translate" + axis + "(" + sign + this._thumbGap + "px) scale" + axis + "(" + this.percent + ")"
|
|
2095
|
+
};
|
|
2096
|
+
},
|
|
2097
|
+
enumerable: true,
|
|
2098
|
+
configurable: true
|
|
2099
|
+
});
|
|
2100
|
+
Object.defineProperty(MatSlider.prototype, "_ticksContainerStyles", {
|
|
2101
|
+
/**
|
|
2102
|
+
* CSS styles for the ticks container element.
|
|
2103
|
+
* @return {?}
|
|
2104
|
+
*/
|
|
2105
|
+
get: function () {
|
|
2106
|
+
var /** @type {?} */ axis = this.vertical ? 'Y' : 'X';
|
|
2107
|
+
// For a horizontal slider in RTL languages we push the ticks container off the left edge
|
|
2108
|
+
// instead of the right edge to avoid causing a horizontal scrollbar to appear.
|
|
2109
|
+
var /** @type {?} */ sign = !this.vertical && this._direction == 'rtl' ? '' : '-';
|
|
2110
|
+
var /** @type {?} */ offset = this._tickIntervalPercent / 2 * 100;
|
|
2111
|
+
return {
|
|
2112
|
+
'transform': "translate" + axis + "(" + sign + offset + "%)"
|
|
2113
|
+
};
|
|
2114
|
+
},
|
|
2115
|
+
enumerable: true,
|
|
2116
|
+
configurable: true
|
|
2117
|
+
});
|
|
2118
|
+
Object.defineProperty(MatSlider.prototype, "_ticksStyles", {
|
|
2119
|
+
/**
|
|
2120
|
+
* CSS styles for the ticks element.
|
|
2121
|
+
* @return {?}
|
|
2122
|
+
*/
|
|
2123
|
+
get: function () {
|
|
2124
|
+
var /** @type {?} */ tickSize = this._tickIntervalPercent * 100;
|
|
2125
|
+
var /** @type {?} */ backgroundSize = this.vertical ? "2px " + tickSize + "%" : tickSize + "% 2px";
|
|
2126
|
+
var /** @type {?} */ axis = this.vertical ? 'Y' : 'X';
|
|
2127
|
+
// Depending on the direction we pushed the ticks container, push the ticks the opposite
|
|
2128
|
+
// direction to re-center them but clip off the end edge. In RTL languages we need to flip the
|
|
2129
|
+
// ticks 180 degrees so we're really cutting off the end edge abd not the start.
|
|
2130
|
+
var /** @type {?} */ sign = !this.vertical && this._direction == 'rtl' ? '-' : '';
|
|
2131
|
+
var /** @type {?} */ rotate = !this.vertical && this._direction == 'rtl' ? ' rotate(180deg)' : '';
|
|
2132
|
+
var /** @type {?} */ styles = {
|
|
2133
|
+
'backgroundSize': backgroundSize,
|
|
2134
|
+
// Without translateZ ticks sometimes jitter as the slider moves on Chrome & Firefox.
|
|
2135
|
+
'transform': "translateZ(0) translate" + axis + "(" + sign + tickSize / 2 + "%)" + rotate
|
|
2136
|
+
};
|
|
2137
|
+
if (this._isMinValue && this._thumbGap) {
|
|
2138
|
+
var /** @type {?} */ side = this.vertical ?
|
|
2139
|
+
(this._invertAxis ? 'Bottom' : 'Top') :
|
|
2140
|
+
(this._invertAxis ? 'Right' : 'Left');
|
|
2141
|
+
styles["padding" + side] = this._thumbGap + "px";
|
|
2142
|
+
}
|
|
2143
|
+
return styles;
|
|
2144
|
+
},
|
|
2145
|
+
enumerable: true,
|
|
2146
|
+
configurable: true
|
|
2147
|
+
});
|
|
2148
|
+
Object.defineProperty(MatSlider.prototype, "_thumbContainerStyles", {
|
|
2149
|
+
/**
|
|
2150
|
+
* @return {?}
|
|
2151
|
+
*/
|
|
2152
|
+
get: function () {
|
|
2153
|
+
var /** @type {?} */ axis = this.vertical ? 'Y' : 'X';
|
|
2154
|
+
// For a horizontal slider in RTL languages we push the thumb container off the left edge
|
|
2155
|
+
// instead of the right edge to avoid causing a horizontal scrollbar to appear.
|
|
2156
|
+
var /** @type {?} */ invertOffset = (this._direction == 'rtl' && !this.vertical) ? !this._invertAxis : this._invertAxis;
|
|
2157
|
+
var /** @type {?} */ offset = (invertOffset ? this.percent : 1 - this.percent) * 100;
|
|
2158
|
+
return {
|
|
2159
|
+
'transform': "translate" + axis + "(-" + offset + "%)"
|
|
2160
|
+
};
|
|
2161
|
+
},
|
|
2162
|
+
enumerable: true,
|
|
2163
|
+
configurable: true
|
|
2164
|
+
});
|
|
2165
|
+
Object.defineProperty(MatSlider.prototype, "_invertMouseCoords", {
|
|
2166
|
+
/**
|
|
2167
|
+
* Whether mouse events should be converted to a slider position by calculating their distance
|
|
2168
|
+
* from the right or bottom edge of the slider as opposed to the top or left.
|
|
2169
|
+
* @return {?}
|
|
2170
|
+
*/
|
|
2171
|
+
get: function () {
|
|
2172
|
+
return (this._direction == 'rtl' && !this.vertical) ? !this._invertAxis : this._invertAxis;
|
|
2173
|
+
},
|
|
2174
|
+
enumerable: true,
|
|
2175
|
+
configurable: true
|
|
2176
|
+
});
|
|
2177
|
+
Object.defineProperty(MatSlider.prototype, "_direction", {
|
|
2178
|
+
/**
|
|
2179
|
+
* The language direction for this slider element.
|
|
2180
|
+
* @return {?}
|
|
2181
|
+
*/
|
|
2182
|
+
get: function () {
|
|
2183
|
+
return (this._dir && this._dir.value == 'rtl') ? 'rtl' : 'ltr';
|
|
2184
|
+
},
|
|
2185
|
+
enumerable: true,
|
|
2186
|
+
configurable: true
|
|
2187
|
+
});
|
|
2188
|
+
/**
|
|
2189
|
+
* @return {?}
|
|
2190
|
+
*/
|
|
2191
|
+
MatSlider.prototype.ngOnInit = function () {
|
|
2192
|
+
var _this = this;
|
|
2193
|
+
this._focusMonitor
|
|
2194
|
+
.monitor(this._elementRef.nativeElement, this._renderer, true)
|
|
2195
|
+
.subscribe(function (origin) {
|
|
2196
|
+
_this._isActive = !!origin && origin !== 'keyboard';
|
|
2197
|
+
_this._changeDetectorRef.detectChanges();
|
|
2198
|
+
});
|
|
2199
|
+
if (this._dir) {
|
|
2200
|
+
this._dirChangeSubscription = this._dir.change.subscribe(function () {
|
|
2201
|
+
_this._changeDetectorRef.markForCheck();
|
|
2202
|
+
});
|
|
2203
|
+
}
|
|
2204
|
+
};
|
|
2205
|
+
/**
|
|
2206
|
+
* @return {?}
|
|
2207
|
+
*/
|
|
2208
|
+
MatSlider.prototype.ngOnDestroy = function () {
|
|
2209
|
+
this._focusMonitor.stopMonitoring(this._elementRef.nativeElement);
|
|
2210
|
+
this._dirChangeSubscription.unsubscribe();
|
|
2211
|
+
};
|
|
2212
|
+
/**
|
|
2213
|
+
* @return {?}
|
|
2214
|
+
*/
|
|
2215
|
+
MatSlider.prototype._onMouseenter = function () {
|
|
2216
|
+
if (this.disabled) {
|
|
2217
|
+
return;
|
|
2218
|
+
}
|
|
2219
|
+
// We save the dimensions of the slider here so we can use them to update the spacing of the
|
|
2220
|
+
// ticks and determine where on the slider click and slide events happen.
|
|
2221
|
+
this._sliderDimensions = this._getSliderDimensions();
|
|
2222
|
+
this._updateTickIntervalPercent();
|
|
2223
|
+
};
|
|
2224
|
+
/**
|
|
2225
|
+
* @param {?} event
|
|
2226
|
+
* @return {?}
|
|
2227
|
+
*/
|
|
2228
|
+
MatSlider.prototype._onClick = function (event) {
|
|
2229
|
+
if (this.disabled) {
|
|
2230
|
+
return;
|
|
2231
|
+
}
|
|
2232
|
+
var /** @type {?} */ oldValue = this.value;
|
|
2233
|
+
this._isSliding = false;
|
|
2234
|
+
this._focusHostElement();
|
|
2235
|
+
this._updateValueFromPosition({ x: event.clientX, y: event.clientY });
|
|
2236
|
+
/* Emit a change and input event if the value changed. */
|
|
2237
|
+
if (oldValue != this.value) {
|
|
2238
|
+
this._emitInputEvent();
|
|
2239
|
+
this._emitChangeEvent();
|
|
2240
|
+
}
|
|
2241
|
+
};
|
|
2242
|
+
/**
|
|
2243
|
+
* @param {?} event
|
|
2244
|
+
* @return {?}
|
|
2245
|
+
*/
|
|
2246
|
+
MatSlider.prototype._onSlide = function (event) {
|
|
2247
|
+
if (this.disabled) {
|
|
2248
|
+
return;
|
|
2249
|
+
}
|
|
2250
|
+
// The slide start event sometimes fails to fire on iOS, so if we're not already in the sliding
|
|
2251
|
+
// state, call the slide start handler manually.
|
|
2252
|
+
if (!this._isSliding) {
|
|
2253
|
+
this._onSlideStart(null);
|
|
2254
|
+
}
|
|
2255
|
+
// Prevent the slide from selecting anything else.
|
|
2256
|
+
event.preventDefault();
|
|
2257
|
+
var /** @type {?} */ oldValue = this.value;
|
|
2258
|
+
this._updateValueFromPosition({ x: event.center.x, y: event.center.y });
|
|
2259
|
+
// Native range elements always emit `input` events when the value changed while sliding.
|
|
2260
|
+
if (oldValue != this.value) {
|
|
2261
|
+
this._emitInputEvent();
|
|
2262
|
+
}
|
|
2263
|
+
};
|
|
2264
|
+
/**
|
|
2265
|
+
* @param {?} event
|
|
2266
|
+
* @return {?}
|
|
2267
|
+
*/
|
|
2268
|
+
MatSlider.prototype._onSlideStart = function (event) {
|
|
2269
|
+
if (this.disabled || this._isSliding) {
|
|
2270
|
+
return;
|
|
2271
|
+
}
|
|
2272
|
+
// Simulate mouseenter in case this is a mobile device.
|
|
2273
|
+
this._onMouseenter();
|
|
2274
|
+
this._isSliding = true;
|
|
2275
|
+
this._focusHostElement();
|
|
2276
|
+
this._valueOnSlideStart = this.value;
|
|
2277
|
+
if (event) {
|
|
2278
|
+
this._updateValueFromPosition({ x: event.center.x, y: event.center.y });
|
|
2279
|
+
event.preventDefault();
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2282
|
+
/**
|
|
2283
|
+
* @return {?}
|
|
2284
|
+
*/
|
|
2285
|
+
MatSlider.prototype._onSlideEnd = function () {
|
|
2286
|
+
this._isSliding = false;
|
|
2287
|
+
if (this._valueOnSlideStart != this.value) {
|
|
2288
|
+
this._emitChangeEvent();
|
|
2289
|
+
}
|
|
2290
|
+
this._valueOnSlideStart = null;
|
|
2291
|
+
};
|
|
2292
|
+
/**
|
|
2293
|
+
* @return {?}
|
|
2294
|
+
*/
|
|
2295
|
+
MatSlider.prototype._onFocus = function () {
|
|
2296
|
+
// We save the dimensions of the slider here so we can use them to update the spacing of the
|
|
2297
|
+
// ticks and determine where on the slider click and slide events happen.
|
|
2298
|
+
this._sliderDimensions = this._getSliderDimensions();
|
|
2299
|
+
this._updateTickIntervalPercent();
|
|
2300
|
+
};
|
|
2301
|
+
/**
|
|
2302
|
+
* @return {?}
|
|
2303
|
+
*/
|
|
2304
|
+
MatSlider.prototype._onBlur = function () {
|
|
2305
|
+
this.onTouched();
|
|
2306
|
+
};
|
|
2307
|
+
/**
|
|
2308
|
+
* @param {?} event
|
|
2309
|
+
* @return {?}
|
|
2310
|
+
*/
|
|
2311
|
+
MatSlider.prototype._onKeydown = function (event) {
|
|
2312
|
+
if (this.disabled) {
|
|
2313
|
+
return;
|
|
2314
|
+
}
|
|
2315
|
+
var /** @type {?} */ oldValue = this.value;
|
|
2316
|
+
switch (event.keyCode) {
|
|
2317
|
+
case _angular_cdk_keycodes.PAGE_UP:
|
|
2318
|
+
this._increment(10);
|
|
2319
|
+
break;
|
|
2320
|
+
case _angular_cdk_keycodes.PAGE_DOWN:
|
|
2321
|
+
this._increment(-10);
|
|
2322
|
+
break;
|
|
2323
|
+
case _angular_cdk_keycodes.END:
|
|
2324
|
+
this.value = this.max;
|
|
2325
|
+
break;
|
|
2326
|
+
case _angular_cdk_keycodes.HOME:
|
|
2327
|
+
this.value = this.min;
|
|
2328
|
+
break;
|
|
2329
|
+
case _angular_cdk_keycodes.LEFT_ARROW:
|
|
2330
|
+
// NOTE: For a sighted user it would make more sense that when they press an arrow key on an
|
|
2331
|
+
// inverted slider the thumb moves in that direction. However for a blind user, nothing
|
|
2332
|
+
// about the slider indicates that it is inverted. They will expect left to be decrement,
|
|
2333
|
+
// regardless of how it appears on the screen. For speakers ofRTL languages, they probably
|
|
2334
|
+
// expect left to mean increment. Therefore we flip the meaning of the side arrow keys for
|
|
2335
|
+
// RTL. For inverted sliders we prefer a good a11y experience to having it "look right" for
|
|
2336
|
+
// sighted users, therefore we do not swap the meaning.
|
|
2337
|
+
this._increment(this._direction == 'rtl' ? 1 : -1);
|
|
2338
|
+
break;
|
|
2339
|
+
case _angular_cdk_keycodes.UP_ARROW:
|
|
2340
|
+
this._increment(1);
|
|
2341
|
+
break;
|
|
2342
|
+
case _angular_cdk_keycodes.RIGHT_ARROW:
|
|
2343
|
+
// See comment on LEFT_ARROW about the conditions under which we flip the meaning.
|
|
2344
|
+
this._increment(this._direction == 'rtl' ? -1 : 1);
|
|
2345
|
+
break;
|
|
2346
|
+
case _angular_cdk_keycodes.DOWN_ARROW:
|
|
2347
|
+
this._increment(-1);
|
|
2348
|
+
break;
|
|
2349
|
+
default:
|
|
2350
|
+
// Return if the key is not one that we explicitly handle to avoid calling preventDefault on
|
|
2351
|
+
// it.
|
|
2352
|
+
return;
|
|
2353
|
+
}
|
|
2354
|
+
if (oldValue != this.value) {
|
|
2355
|
+
this._emitInputEvent();
|
|
2356
|
+
this._emitChangeEvent();
|
|
2357
|
+
}
|
|
2358
|
+
this._isSliding = true;
|
|
2359
|
+
event.preventDefault();
|
|
2360
|
+
};
|
|
2361
|
+
/**
|
|
2362
|
+
* @return {?}
|
|
2363
|
+
*/
|
|
2364
|
+
MatSlider.prototype._onKeyup = function () {
|
|
2365
|
+
this._isSliding = false;
|
|
2366
|
+
};
|
|
2367
|
+
/**
|
|
2368
|
+
* Increments the slider by the given number of steps (negative number decrements).
|
|
2369
|
+
* @param {?} numSteps
|
|
2370
|
+
* @return {?}
|
|
2371
|
+
*/
|
|
2372
|
+
MatSlider.prototype._increment = function (numSteps) {
|
|
2373
|
+
this.value = this._clamp((this.value || 0) + this.step * numSteps, this.min, this.max);
|
|
2374
|
+
};
|
|
2375
|
+
/**
|
|
2376
|
+
* Calculate the new value from the new physical location. The value will always be snapped.
|
|
2377
|
+
* @param {?} pos
|
|
2378
|
+
* @return {?}
|
|
2379
|
+
*/
|
|
2380
|
+
MatSlider.prototype._updateValueFromPosition = function (pos) {
|
|
2381
|
+
if (!this._sliderDimensions) {
|
|
2382
|
+
return;
|
|
2383
|
+
}
|
|
2384
|
+
var /** @type {?} */ offset = this.vertical ? this._sliderDimensions.top : this._sliderDimensions.left;
|
|
2385
|
+
var /** @type {?} */ size = this.vertical ? this._sliderDimensions.height : this._sliderDimensions.width;
|
|
2386
|
+
var /** @type {?} */ posComponent = this.vertical ? pos.y : pos.x;
|
|
2387
|
+
// The exact value is calculated from the event and used to find the closest snap value.
|
|
2388
|
+
var /** @type {?} */ percent = this._clamp((posComponent - offset) / size);
|
|
2389
|
+
if (this._invertMouseCoords) {
|
|
2390
|
+
percent = 1 - percent;
|
|
2391
|
+
}
|
|
2392
|
+
var /** @type {?} */ exactValue = this._calculateValue(percent);
|
|
2393
|
+
// This calculation finds the closest step by finding the closest whole number divisible by the
|
|
2394
|
+
// step relative to the min.
|
|
2395
|
+
var /** @type {?} */ closestValue = Math.round((exactValue - this.min) / this.step) * this.step + this.min;
|
|
2396
|
+
// The value needs to snap to the min and max.
|
|
2397
|
+
this.value = this._clamp(closestValue, this.min, this.max);
|
|
2398
|
+
};
|
|
2399
|
+
/**
|
|
2400
|
+
* Emits a change event if the current value is different from the last emitted value.
|
|
2401
|
+
* @return {?}
|
|
2402
|
+
*/
|
|
2403
|
+
MatSlider.prototype._emitChangeEvent = function () {
|
|
2404
|
+
this._controlValueAccessorChangeFn(this.value);
|
|
2405
|
+
this.change.emit(this._createChangeEvent());
|
|
2406
|
+
};
|
|
2407
|
+
/**
|
|
2408
|
+
* Emits an input event when the current value is different from the last emitted value.
|
|
2409
|
+
* @return {?}
|
|
2410
|
+
*/
|
|
2411
|
+
MatSlider.prototype._emitInputEvent = function () {
|
|
2412
|
+
this.input.emit(this._createChangeEvent());
|
|
2413
|
+
};
|
|
2414
|
+
/**
|
|
2415
|
+
* Updates the amount of space between ticks as a percentage of the width of the slider.
|
|
2416
|
+
* @return {?}
|
|
2417
|
+
*/
|
|
2418
|
+
MatSlider.prototype._updateTickIntervalPercent = function () {
|
|
2419
|
+
if (!this.tickInterval || !this._sliderDimensions) {
|
|
2420
|
+
return;
|
|
2421
|
+
}
|
|
2422
|
+
if (this.tickInterval == 'auto') {
|
|
2423
|
+
var /** @type {?} */ trackSize = this.vertical ? this._sliderDimensions.height : this._sliderDimensions.width;
|
|
2424
|
+
var /** @type {?} */ pixelsPerStep = trackSize * this.step / (this.max - this.min);
|
|
2425
|
+
var /** @type {?} */ stepsPerTick = Math.ceil(MIN_AUTO_TICK_SEPARATION / pixelsPerStep);
|
|
2426
|
+
var /** @type {?} */ pixelsPerTick = stepsPerTick * this.step;
|
|
2427
|
+
this._tickIntervalPercent = pixelsPerTick / trackSize;
|
|
2428
|
+
}
|
|
2429
|
+
else {
|
|
2430
|
+
this._tickIntervalPercent = this.tickInterval * this.step / (this.max - this.min);
|
|
2431
|
+
}
|
|
2432
|
+
};
|
|
2433
|
+
/**
|
|
2434
|
+
* Creates a slider change object from the specified value.
|
|
2435
|
+
* @param {?=} value
|
|
2436
|
+
* @return {?}
|
|
2437
|
+
*/
|
|
2438
|
+
MatSlider.prototype._createChangeEvent = function (value) {
|
|
2439
|
+
if (value === void 0) { value = this.value; }
|
|
2440
|
+
var /** @type {?} */ event = new MatSliderChange();
|
|
2441
|
+
event.source = this;
|
|
2442
|
+
event.value = value;
|
|
2443
|
+
return event;
|
|
2444
|
+
};
|
|
2445
|
+
/**
|
|
2446
|
+
* Calculates the percentage of the slider that a value is.
|
|
2447
|
+
* @param {?} value
|
|
2448
|
+
* @return {?}
|
|
2449
|
+
*/
|
|
2450
|
+
MatSlider.prototype._calculatePercentage = function (value) {
|
|
2451
|
+
return ((value || 0) - this.min) / (this.max - this.min);
|
|
2452
|
+
};
|
|
2453
|
+
/**
|
|
2454
|
+
* Calculates the value a percentage of the slider corresponds to.
|
|
2455
|
+
* @param {?} percentage
|
|
2456
|
+
* @return {?}
|
|
2457
|
+
*/
|
|
2458
|
+
MatSlider.prototype._calculateValue = function (percentage) {
|
|
2459
|
+
return this.min + percentage * (this.max - this.min);
|
|
2460
|
+
};
|
|
2461
|
+
/**
|
|
2462
|
+
* Return a number between two numbers.
|
|
2463
|
+
* @param {?} value
|
|
2464
|
+
* @param {?=} min
|
|
2465
|
+
* @param {?=} max
|
|
2466
|
+
* @return {?}
|
|
2467
|
+
*/
|
|
2468
|
+
MatSlider.prototype._clamp = function (value, min, max) {
|
|
2469
|
+
if (min === void 0) { min = 0; }
|
|
2470
|
+
if (max === void 0) { max = 1; }
|
|
2471
|
+
return Math.max(min, Math.min(value, max));
|
|
2472
|
+
};
|
|
2473
|
+
/**
|
|
2474
|
+
* Get the bounding client rect of the slider track element.
|
|
2475
|
+
* The track is used rather than the native element to ignore the extra space that the thumb can
|
|
2476
|
+
* take up.
|
|
2477
|
+
* @return {?}
|
|
2478
|
+
*/
|
|
2479
|
+
MatSlider.prototype._getSliderDimensions = function () {
|
|
2480
|
+
return this._sliderWrapper ? this._sliderWrapper.nativeElement.getBoundingClientRect() : null;
|
|
2481
|
+
};
|
|
2482
|
+
/**
|
|
2483
|
+
* Focuses the native element.
|
|
2484
|
+
* Currently only used to allow a blur event to fire but will be used with keyboard input later.
|
|
2485
|
+
* @return {?}
|
|
2486
|
+
*/
|
|
2487
|
+
MatSlider.prototype._focusHostElement = function () {
|
|
2488
|
+
this._elementRef.nativeElement.focus();
|
|
2489
|
+
};
|
|
2490
|
+
/**
|
|
2491
|
+
* Sets the model value. Implemented as part of ControlValueAccessor.
|
|
2492
|
+
* @param {?} value
|
|
2493
|
+
* @return {?}
|
|
2494
|
+
*/
|
|
2495
|
+
MatSlider.prototype.writeValue = function (value) {
|
|
2496
|
+
this.value = value;
|
|
2497
|
+
};
|
|
2498
|
+
/**
|
|
2499
|
+
* Registers a callback to eb triggered when the value has changed.
|
|
2500
|
+
* Implemented as part of ControlValueAccessor.
|
|
2501
|
+
* @param {?} fn Callback to be registered.
|
|
2502
|
+
* @return {?}
|
|
2503
|
+
*/
|
|
2504
|
+
MatSlider.prototype.registerOnChange = function (fn) {
|
|
2505
|
+
this._controlValueAccessorChangeFn = fn;
|
|
2506
|
+
};
|
|
2507
|
+
/**
|
|
2508
|
+
* Registers a callback to be triggered when the component is touched.
|
|
2509
|
+
* Implemented as part of ControlValueAccessor.
|
|
2510
|
+
* @param {?} fn Callback to be registered.
|
|
2511
|
+
* @return {?}
|
|
2512
|
+
*/
|
|
2513
|
+
MatSlider.prototype.registerOnTouched = function (fn) {
|
|
2514
|
+
this.onTouched = fn;
|
|
2515
|
+
};
|
|
2516
|
+
/**
|
|
2517
|
+
* Sets whether the component should be disabled.
|
|
2518
|
+
* Implemented as part of ControlValueAccessor.
|
|
2519
|
+
* @param {?} isDisabled
|
|
2520
|
+
* @return {?}
|
|
2521
|
+
*/
|
|
2522
|
+
MatSlider.prototype.setDisabledState = function (isDisabled) {
|
|
2523
|
+
this.disabled = isDisabled;
|
|
2524
|
+
};
|
|
2525
|
+
MatSlider.decorators = [
|
|
2526
|
+
{ type: _angular_core.Component, args: [{selector: 'mat-slider',
|
|
2527
|
+
exportAs: 'matSlider',
|
|
2528
|
+
providers: [MAT_SLIDER_VALUE_ACCESSOR],
|
|
2529
|
+
host: {
|
|
2530
|
+
'(focus)': '_onFocus()',
|
|
2531
|
+
'(blur)': '_onBlur()',
|
|
2532
|
+
'(click)': '_onClick($event)',
|
|
2533
|
+
'(keydown)': '_onKeydown($event)',
|
|
2534
|
+
'(keyup)': '_onKeyup()',
|
|
2535
|
+
'(mouseenter)': '_onMouseenter()',
|
|
2536
|
+
'(slide)': '_onSlide($event)',
|
|
2537
|
+
'(slideend)': '_onSlideEnd()',
|
|
2538
|
+
'(slidestart)': '_onSlideStart($event)',
|
|
2539
|
+
'class': 'mat-slider',
|
|
2540
|
+
'role': 'slider',
|
|
2541
|
+
'tabindex': '0',
|
|
2542
|
+
'[attr.aria-disabled]': 'disabled',
|
|
2543
|
+
'[attr.aria-valuemax]': 'max',
|
|
2544
|
+
'[attr.aria-valuemin]': 'min',
|
|
2545
|
+
'[attr.aria-valuenow]': 'value',
|
|
2546
|
+
'[attr.aria-orientation]': 'vertical ? "vertical" : "horizontal"',
|
|
2547
|
+
'[class.mat-slider-disabled]': 'disabled',
|
|
2548
|
+
'[class.mat-slider-has-ticks]': 'tickInterval',
|
|
2549
|
+
'[class.mat-slider-horizontal]': '!vertical',
|
|
2550
|
+
'[class.mat-slider-axis-inverted]': '_invertAxis',
|
|
2551
|
+
'[class.mat-slider-sliding]': '_isSliding',
|
|
2552
|
+
'[class.mat-slider-thumb-label-showing]': 'thumbLabel',
|
|
2553
|
+
'[class.mat-slider-vertical]': 'vertical',
|
|
2554
|
+
'[class.mat-slider-min-value]': '_isMinValue',
|
|
2555
|
+
'[class.mat-slider-hide-last-tick]': 'disabled || _isMinValue && _thumbGap && _invertAxis',
|
|
2556
|
+
},
|
|
2557
|
+
template: "<div class=\"mat-slider-wrapper\" #sliderWrapper><div class=\"mat-slider-track-wrapper\"><div class=\"mat-slider-track-background\" [ngStyle]=\"_trackBackgroundStyles\"></div><div class=\"mat-slider-track-fill\" [ngStyle]=\"_trackFillStyles\"></div></div><div class=\"mat-slider-ticks-container\" [ngStyle]=\"_ticksContainerStyles\"><div class=\"mat-slider-ticks\" [ngStyle]=\"_ticksStyles\"></div></div><div class=\"mat-slider-thumb-container\" [ngStyle]=\"_thumbContainerStyles\"><div class=\"mat-slider-focus-ring\"></div><div class=\"mat-slider-thumb\"></div><div class=\"mat-slider-thumb-label\"><span class=\"mat-slider-thumb-label-text\">{{displayValue}}</span></div></div></div>",
|
|
2558
|
+
styles: [".mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:0;vertical-align:middle}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.cdk-keyboard-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label{cursor:-webkit-grab;cursor:grab}.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label:active,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb:active{cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform .4s cubic-bezier(.25,.8,.25,1),border-radius .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-sliding .mat-slider-thumb-container,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-track-fill{transition-duration:0s}.mat-slider-has-ticks .mat-slider-wrapper::after{content:'';position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}"],
|
|
2559
|
+
inputs: ['disabled', 'color'],
|
|
2560
|
+
encapsulation: _angular_core.ViewEncapsulation.None,
|
|
2561
|
+
preserveWhitespaces: false,
|
|
2562
|
+
changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
|
|
2563
|
+
},] },
|
|
2564
|
+
];
|
|
2565
|
+
/**
|
|
2566
|
+
* @nocollapse
|
|
2567
|
+
*/
|
|
2568
|
+
MatSlider.ctorParameters = function () { return [
|
|
2569
|
+
{ type: _angular_core.Renderer2, },
|
|
2570
|
+
{ type: _angular_core.ElementRef, },
|
|
2571
|
+
{ type: _angular_cdk_a11y.FocusMonitor, },
|
|
2572
|
+
{ type: _angular_core.ChangeDetectorRef, },
|
|
2573
|
+
{ type: _angular_cdk_bidi.Directionality, decorators: [{ type: _angular_core.Optional },] },
|
|
2574
|
+
]; };
|
|
2575
|
+
MatSlider.propDecorators = {
|
|
2576
|
+
'invert': [{ type: _angular_core.Input },],
|
|
2577
|
+
'max': [{ type: _angular_core.Input },],
|
|
2578
|
+
'min': [{ type: _angular_core.Input },],
|
|
2579
|
+
'step': [{ type: _angular_core.Input },],
|
|
2580
|
+
'thumbLabel': [{ type: _angular_core.Input },],
|
|
2581
|
+
'_thumbLabelDeprecated': [{ type: _angular_core.Input, args: ['thumb-label',] },],
|
|
2582
|
+
'tickInterval': [{ type: _angular_core.Input },],
|
|
2583
|
+
'_tickIntervalDeprecated': [{ type: _angular_core.Input, args: ['tick-interval',] },],
|
|
2584
|
+
'value': [{ type: _angular_core.Input },],
|
|
2585
|
+
'vertical': [{ type: _angular_core.Input },],
|
|
2586
|
+
'change': [{ type: _angular_core.Output },],
|
|
2587
|
+
'input': [{ type: _angular_core.Output },],
|
|
2588
|
+
'_sliderWrapper': [{ type: _angular_core.ViewChild, args: ['sliderWrapper',] },],
|
|
2589
|
+
};
|
|
2590
|
+
return MatSlider;
|
|
2591
|
+
}(_MatSliderMixinBase));
|
|
2592
|
+
|
|
2593
|
+
var MatSliderModule = (function () {
|
|
2594
|
+
function MatSliderModule() {
|
|
2595
|
+
}
|
|
2596
|
+
MatSliderModule.decorators = [
|
|
2597
|
+
{ type: _angular_core.NgModule, args: [{
|
|
2598
|
+
imports: [_angular_common.CommonModule, MatCommonModule, _angular_cdk_bidi.BidiModule, _angular_cdk_a11y.A11yModule],
|
|
2599
|
+
exports: [MatSlider, MatCommonModule],
|
|
2600
|
+
declarations: [MatSlider],
|
|
2601
|
+
providers: [{ provide: _angular_platformBrowser.HAMMER_GESTURE_CONFIG, useClass: GestureConfig }]
|
|
2602
|
+
},] },
|
|
2603
|
+
];
|
|
2604
|
+
/**
|
|
2605
|
+
* @nocollapse
|
|
2606
|
+
*/
|
|
2607
|
+
MatSliderModule.ctorParameters = function () { return []; };
|
|
2608
|
+
return MatSliderModule;
|
|
2609
|
+
}());
|
|
2610
|
+
|
|
2611
|
+
exports.MatSliderModule = MatSliderModule;
|
|
2612
|
+
exports.MAT_SLIDER_VALUE_ACCESSOR = MAT_SLIDER_VALUE_ACCESSOR;
|
|
2613
|
+
exports.MatSliderChange = MatSliderChange;
|
|
2614
|
+
exports.MatSliderBase = MatSliderBase;
|
|
2615
|
+
exports._MatSliderMixinBase = _MatSliderMixinBase;
|
|
2616
|
+
exports.MatSlider = MatSlider;
|
|
2617
|
+
|
|
2618
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2619
|
+
|
|
2620
|
+
})));
|
|
2621
|
+
//# sourceMappingURL=material-slider.umd.js.map
|