@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
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
/** @docs-private */
|
|
2
|
-
export var ForegroundRippleState;
|
|
3
|
-
(function (ForegroundRippleState) {
|
|
4
|
-
ForegroundRippleState[ForegroundRippleState["NEW"] = 0] = "NEW";
|
|
5
|
-
ForegroundRippleState[ForegroundRippleState["EXPANDING"] = 1] = "EXPANDING";
|
|
6
|
-
ForegroundRippleState[ForegroundRippleState["FADING_OUT"] = 2] = "FADING_OUT";
|
|
7
|
-
})(ForegroundRippleState || (ForegroundRippleState = {}));
|
|
8
|
-
/**
|
|
9
|
-
* Wrapper for a foreground ripple DOM element and its animation state.
|
|
10
|
-
* @docs-private
|
|
11
|
-
*/
|
|
12
|
-
export var ForegroundRipple = (function () {
|
|
13
|
-
function ForegroundRipple(rippleElement) {
|
|
14
|
-
this.rippleElement = rippleElement;
|
|
15
|
-
this.state = ForegroundRippleState.NEW;
|
|
16
|
-
}
|
|
17
|
-
return ForegroundRipple;
|
|
18
|
-
}());
|
|
19
|
-
var RIPPLE_SPEED_PX_PER_SECOND = 1000;
|
|
20
|
-
var MIN_RIPPLE_FILL_TIME_SECONDS = 0.1;
|
|
21
|
-
var MAX_RIPPLE_FILL_TIME_SECONDS = 0.3;
|
|
22
|
-
/**
|
|
23
|
-
* Returns the distance from the point (x, y) to the furthest corner of a rectangle.
|
|
24
|
-
*/
|
|
25
|
-
var distanceToFurthestCorner = function (x, y, rect) {
|
|
26
|
-
var distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));
|
|
27
|
-
var distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));
|
|
28
|
-
return Math.sqrt(distX * distX + distY * distY);
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Helper service that performs DOM manipulations. Not intended to be used outside this module.
|
|
32
|
-
* The constructor takes a reference to the ripple directive's host element and a map of DOM
|
|
33
|
-
* event handlers to be installed on the element that triggers ripple animations.
|
|
34
|
-
* This will eventually become a custom renderer once Angular support exists.
|
|
35
|
-
* @docs-private
|
|
36
|
-
*/
|
|
37
|
-
export var RippleRenderer = (function () {
|
|
38
|
-
function RippleRenderer(_elementRef, _eventHandlers, _ngZone) {
|
|
39
|
-
this._eventHandlers = _eventHandlers;
|
|
40
|
-
this._ngZone = _ngZone;
|
|
41
|
-
this._rippleElement = _elementRef.nativeElement;
|
|
42
|
-
// The background div is created in createBackgroundIfNeeded when the ripple becomes enabled.
|
|
43
|
-
// This avoids creating unneeded divs when the ripple is always disabled.
|
|
44
|
-
this._backgroundDiv = null;
|
|
45
|
-
}
|
|
46
|
-
/** Creates the div for the ripple background, if it doesn't already exist. */
|
|
47
|
-
RippleRenderer.prototype.createBackgroundIfNeeded = function () {
|
|
48
|
-
if (!this._backgroundDiv) {
|
|
49
|
-
this._backgroundDiv = document.createElement('div');
|
|
50
|
-
this._backgroundDiv.classList.add('md-ripple-background');
|
|
51
|
-
this._rippleElement.appendChild(this._backgroundDiv);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Installs event handlers on the given trigger element, and removes event handlers from the
|
|
56
|
-
* previous trigger if needed.
|
|
57
|
-
*
|
|
58
|
-
* @param newTrigger New trigger to which to attach the ripple handlers.
|
|
59
|
-
*/
|
|
60
|
-
RippleRenderer.prototype.setTriggerElement = function (newTrigger) {
|
|
61
|
-
var _this = this;
|
|
62
|
-
if (this._triggerElement !== newTrigger) {
|
|
63
|
-
if (this._triggerElement) {
|
|
64
|
-
this._eventHandlers.forEach(function (eventHandler, eventName) {
|
|
65
|
-
_this._triggerElement.removeEventListener(eventName, eventHandler);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
this._triggerElement = newTrigger;
|
|
69
|
-
if (this._triggerElement) {
|
|
70
|
-
this._eventHandlers.forEach(function (eventHandler, eventName) {
|
|
71
|
-
_this._triggerElement.addEventListener(eventName, eventHandler);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
/** Installs event handlers on the host element of the md-ripple directive. */
|
|
77
|
-
RippleRenderer.prototype.setTriggerElementToHost = function () {
|
|
78
|
-
this.setTriggerElement(this._rippleElement);
|
|
79
|
-
};
|
|
80
|
-
/** Removes event handlers from the current trigger element if needed. */
|
|
81
|
-
RippleRenderer.prototype.clearTriggerElement = function () {
|
|
82
|
-
this.setTriggerElement(null);
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Creates a foreground ripple and sets its animation to expand and fade in from the position
|
|
86
|
-
* given by rippleOriginLeft and rippleOriginTop (or from the center of the <md-ripple>
|
|
87
|
-
* bounding rect if centered is true).
|
|
88
|
-
*
|
|
89
|
-
* @param rippleOriginLeft Left origin of the ripple.
|
|
90
|
-
* @param rippleOriginTop Top origin of the ripple.
|
|
91
|
-
* @param color Ripple color.
|
|
92
|
-
* @param centered Whether the ripple should be centered.
|
|
93
|
-
* @param radius Radius of the ripple.
|
|
94
|
-
* @param speedFactor Speed at which the ripple expands towards the edges.
|
|
95
|
-
* @param transitionEndCallback Callback to be triggered when the ripple transition is done.
|
|
96
|
-
*/
|
|
97
|
-
RippleRenderer.prototype.createForegroundRipple = function (rippleOriginLeft, rippleOriginTop, color, centered, radius, speedFactor, transitionEndCallback) {
|
|
98
|
-
var _this = this;
|
|
99
|
-
var parentRect = this._rippleElement.getBoundingClientRect();
|
|
100
|
-
// Create a foreground ripple div with the size and position of the fully expanded ripple.
|
|
101
|
-
// When the div is created, it's given a transform style that causes the ripple to be displayed
|
|
102
|
-
// small and centered on the event location (or the center of the bounding rect if the centered
|
|
103
|
-
// argument is true). Removing that transform causes the ripple to animate to its natural size.
|
|
104
|
-
var startX = centered ? (parentRect.left + parentRect.width / 2) : rippleOriginLeft;
|
|
105
|
-
var startY = centered ? (parentRect.top + parentRect.height / 2) : rippleOriginTop;
|
|
106
|
-
var offsetX = startX - parentRect.left;
|
|
107
|
-
var offsetY = startY - parentRect.top;
|
|
108
|
-
var maxRadius = radius > 0 ? radius : distanceToFurthestCorner(startX, startY, parentRect);
|
|
109
|
-
var rippleDiv = document.createElement('div');
|
|
110
|
-
this._rippleElement.appendChild(rippleDiv);
|
|
111
|
-
rippleDiv.classList.add('md-ripple-foreground');
|
|
112
|
-
rippleDiv.style.left = (offsetX - maxRadius) + "px";
|
|
113
|
-
rippleDiv.style.top = (offsetY - maxRadius) + "px";
|
|
114
|
-
rippleDiv.style.width = 2 * maxRadius + "px";
|
|
115
|
-
rippleDiv.style.height = rippleDiv.style.width;
|
|
116
|
-
// If color input is not set, this will default to the background color defined in CSS.
|
|
117
|
-
rippleDiv.style.backgroundColor = color;
|
|
118
|
-
// Start the ripple tiny.
|
|
119
|
-
rippleDiv.style.transform = "scale(0.001)";
|
|
120
|
-
var fadeInSeconds = (1 / (speedFactor || 1)) * Math.max(MIN_RIPPLE_FILL_TIME_SECONDS, Math.min(MAX_RIPPLE_FILL_TIME_SECONDS, maxRadius / RIPPLE_SPEED_PX_PER_SECOND));
|
|
121
|
-
rippleDiv.style.transitionDuration = fadeInSeconds + "s";
|
|
122
|
-
// https://timtaubert.de/blog/2012/09/css-transitions-for-dynamically-created-dom-elements/
|
|
123
|
-
// Store the opacity to prevent this line as being seen as a no-op by optimizers.
|
|
124
|
-
this._opacity = window.getComputedStyle(rippleDiv).opacity;
|
|
125
|
-
rippleDiv.classList.add('md-ripple-fade-in');
|
|
126
|
-
// Clearing the transform property causes the ripple to animate to its full size.
|
|
127
|
-
rippleDiv.style.transform = '';
|
|
128
|
-
var ripple = new ForegroundRipple(rippleDiv);
|
|
129
|
-
ripple.state = ForegroundRippleState.EXPANDING;
|
|
130
|
-
rippleDiv.addEventListener('transitionend', function (event) { return transitionEndCallback(ripple, event); });
|
|
131
|
-
// Ensure that ripples are always removed, even when transitionend doesn't fire.
|
|
132
|
-
// Run this outside the Angular zone because there's nothing that Angular cares about.
|
|
133
|
-
// If it were to run inside the Angular zone, every test that used ripples would have to be
|
|
134
|
-
// either async or fakeAsync.
|
|
135
|
-
this._ngZone.runOutsideAngular(function () {
|
|
136
|
-
// The ripple lasts a time equal to the sum of fade-in, transform,
|
|
137
|
-
// and fade-out (3 * fade-in time).
|
|
138
|
-
var rippleDuration = fadeInSeconds * 3 * 1000;
|
|
139
|
-
setTimeout(function () { return _this.removeRippleFromDom(ripple.rippleElement); }, rippleDuration);
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* Fades out a foreground ripple after it has fully expanded and faded in.
|
|
144
|
-
* @param ripple Ripple to be faded out.
|
|
145
|
-
*/
|
|
146
|
-
RippleRenderer.prototype.fadeOutForegroundRipple = function (ripple) {
|
|
147
|
-
ripple.classList.remove('md-ripple-fade-in');
|
|
148
|
-
ripple.classList.add('md-ripple-fade-out');
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* Removes a foreground ripple from the DOM after it has faded out.
|
|
152
|
-
* @param ripple Ripple to be removed from the DOM.
|
|
153
|
-
*/
|
|
154
|
-
RippleRenderer.prototype.removeRippleFromDom = function (ripple) {
|
|
155
|
-
if (ripple && ripple.parentElement) {
|
|
156
|
-
ripple.parentElement.removeChild(ripple);
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* Fades in the ripple background.
|
|
161
|
-
* @param color New background color for the ripple.
|
|
162
|
-
*/
|
|
163
|
-
RippleRenderer.prototype.fadeInRippleBackground = function (color) {
|
|
164
|
-
this._backgroundDiv.classList.add('md-ripple-active');
|
|
165
|
-
// If color is not set, this will default to the background color defined in CSS.
|
|
166
|
-
this._backgroundDiv.style.backgroundColor = color;
|
|
167
|
-
};
|
|
168
|
-
/** Fades out the ripple background. */
|
|
169
|
-
RippleRenderer.prototype.fadeOutRippleBackground = function () {
|
|
170
|
-
if (this._backgroundDiv) {
|
|
171
|
-
this._backgroundDiv.classList.remove('md-ripple-active');
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
return RippleRenderer;
|
|
175
|
-
}());
|
|
176
|
-
|
|
177
|
-
//# sourceMappingURL=ripple-renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["core/ripple/ripple-renderer.ts"],"names":[],"mappings":"AAKA,oBAAoB;AACpB,WAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,+DAAG,CAAA;IACH,2EAAS,CAAA;IACT,6EAAU,CAAA;AACZ,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC;AAED;;;GAGG;AACH;IAEE,0BAAm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M,CAAC,mBAAmB,CAAC,CAAC;QAC7C,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACH,4CAAmB,GAAnB,UAAoB,MAAe;QACjC,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;YACnC,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,+CAAsB,GAAtB,UAAuB,KAAa;QAClC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QACtD,iFAAiF;QACjF,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,eAAe,GAAG,KAAK,CAAC;IACpD,CAAC;IAED,uCAAuC;IACvC,gDAAuB,GAAvB;QACE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;YACxB,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IACH,qBAAC;AAAD,CApKA,AAoKC,IAAA","file":"ripple-renderer.js","sourcesContent":["import {\n ElementRef,\n NgZone,\n} from '@angular/core';\n\n/** @docs-private */\nexport enum ForegroundRippleState {\n NEW,\n EXPANDING,\n FADING_OUT,\n}\n\n/**\n * Wrapper for a foreground ripple DOM element and its animation state.\n * @docs-private\n */\nexport class ForegroundRipple {\n state = ForegroundRippleState.NEW;\n constructor(public rippleElement: Element) {}\n}\n\nconst RIPPLE_SPEED_PX_PER_SECOND = 1000;\nconst MIN_RIPPLE_FILL_TIME_SECONDS = 0.1;\nconst MAX_RIPPLE_FILL_TIME_SECONDS = 0.3;\n\n/**\n * Returns the distance from the point (x, y) to the furthest corner of a rectangle.\n */\nconst distanceToFurthestCorner = (x: number, y: number, rect: ClientRect) => {\n const distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));\n const distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));\n return Math.sqrt(distX * distX + distY * distY);\n};\n\n/**\n * Helper service that performs DOM manipulations. Not intended to be used outside this module.\n * The constructor takes a reference to the ripple directive's host element and a map of DOM\n * event handlers to be installed on the element that triggers ripple animations.\n * This will eventually become a custom renderer once Angular support exists.\n * @docs-private\n */\nexport class RippleRenderer {\n private _backgroundDiv: HTMLElement;\n private _rippleElement: HTMLElement;\n private _triggerElement: HTMLElement;\n _opacity: string;\n\n constructor(_elementRef: ElementRef,\n private _eventHandlers: Map<string, (e: Event) => void>,\n private _ngZone: NgZone) {\n this._rippleElement = _elementRef.nativeElement;\n // The background div is created in createBackgroundIfNeeded when the ripple becomes enabled.\n // This avoids creating unneeded divs when the ripple is always disabled.\n this._backgroundDiv = null;\n }\n\n /** Creates the div for the ripple background, if it doesn't already exist. */\n createBackgroundIfNeeded() {\n if (!this._backgroundDiv) {\n this._backgroundDiv = document.createElement('div');\n this._backgroundDiv.classList.add('md-ripple-background');\n this._rippleElement.appendChild(this._backgroundDiv);\n }\n }\n\n /**\n * Installs event handlers on the given trigger element, and removes event handlers from the\n * previous trigger if needed.\n *\n * @param newTrigger New trigger to which to attach the ripple handlers.\n */\n setTriggerElement(newTrigger: HTMLElement) {\n if (this._triggerElement !== newTrigger) {\n if (this._triggerElement) {\n this._eventHandlers.forEach((eventHandler, eventName) => {\n this._triggerElement.removeEventListener(eventName, eventHandler);\n });\n }\n this._triggerElement = newTrigger;\n if (this._triggerElement) {\n this._eventHandlers.forEach((eventHandler, eventName) => {\n this._triggerElement.addEventListener(eventName, eventHandler);\n });\n }\n }\n }\n\n /** Installs event handlers on the host element of the md-ripple directive. */\n setTriggerElementToHost() {\n this.setTriggerElement(this._rippleElement);\n }\n\n /** Removes event handlers from the current trigger element if needed. */\n clearTriggerElement() {\n this.setTriggerElement(null);\n }\n\n /**\n * Creates a foreground ripple and sets its animation to expand and fade in from the position\n * given by rippleOriginLeft and rippleOriginTop (or from the center of the <md-ripple>\n * bounding rect if centered is true).\n *\n * @param rippleOriginLeft Left origin of the ripple.\n * @param rippleOriginTop Top origin of the ripple.\n * @param color Ripple color.\n * @param centered Whether the ripple should be centered.\n * @param radius Radius of the ripple.\n * @param speedFactor Speed at which the ripple expands towards the edges.\n * @param transitionEndCallback Callback to be triggered when the ripple transition is done.\n */\n createForegroundRipple(\n rippleOriginLeft: number,\n rippleOriginTop: number,\n color: string,\n centered: boolean,\n radius: number,\n speedFactor: number,\n transitionEndCallback: (r: ForegroundRipple, e: TransitionEvent) => void) {\n const parentRect = this._rippleElement.getBoundingClientRect();\n // Create a foreground ripple div with the size and position of the fully expanded ripple.\n // When the div is created, it's given a transform style that causes the ripple to be displayed\n // small and centered on the event location (or the center of the bounding rect if the centered\n // argument is true). Removing that transform causes the ripple to animate to its natural size.\n const startX = centered ? (parentRect.left + parentRect.width / 2) : rippleOriginLeft;\n const startY = centered ? (parentRect.top + parentRect.height / 2) : rippleOriginTop;\n const offsetX = startX - parentRect.left;\n const offsetY = startY - parentRect.top;\n const maxRadius = radius > 0 ? radius : distanceToFurthestCorner(startX, startY, parentRect);\n\n const rippleDiv = document.createElement('div');\n this._rippleElement.appendChild(rippleDiv);\n rippleDiv.classList.add('md-ripple-foreground');\n rippleDiv.style.left = `${offsetX - maxRadius}px`;\n rippleDiv.style.top = `${offsetY - maxRadius}px`;\n rippleDiv.style.width = `${2 * maxRadius}px`;\n rippleDiv.style.height = rippleDiv.style.width;\n // If color input is not set, this will default to the background color defined in CSS.\n rippleDiv.style.backgroundColor = color;\n // Start the ripple tiny.\n rippleDiv.style.transform = `scale(0.001)`;\n\n const fadeInSeconds = (1 / (speedFactor || 1)) * Math.max(\n MIN_RIPPLE_FILL_TIME_SECONDS,\n Math.min(MAX_RIPPLE_FILL_TIME_SECONDS, maxRadius / RIPPLE_SPEED_PX_PER_SECOND));\n rippleDiv.style.transitionDuration = `${fadeInSeconds}s`;\n\n // https://timtaubert.de/blog/2012/09/css-transitions-for-dynamically-created-dom-elements/\n // Store the opacity to prevent this line as being seen as a no-op by optimizers.\n this._opacity = window.getComputedStyle(rippleDiv).opacity;\n\n rippleDiv.classList.add('md-ripple-fade-in');\n // Clearing the transform property causes the ripple to animate to its full size.\n rippleDiv.style.transform = '';\n const ripple = new ForegroundRipple(rippleDiv);\n ripple.state = ForegroundRippleState.EXPANDING;\n\n rippleDiv.addEventListener('transitionend',\n (event: TransitionEvent) => transitionEndCallback(ripple, event));\n // Ensure that ripples are always removed, even when transitionend doesn't fire.\n // Run this outside the Angular zone because there's nothing that Angular cares about.\n // If it were to run inside the Angular zone, every test that used ripples would have to be\n // either async or fakeAsync.\n this._ngZone.runOutsideAngular(() => {\n // The ripple lasts a time equal to the sum of fade-in, transform,\n // and fade-out (3 * fade-in time).\n let rippleDuration = fadeInSeconds * 3 * 1000;\n setTimeout(() => this.removeRippleFromDom(ripple.rippleElement), rippleDuration);\n });\n }\n\n /**\n * Fades out a foreground ripple after it has fully expanded and faded in.\n * @param ripple Ripple to be faded out.\n */\n fadeOutForegroundRipple(ripple: Element) {\n ripple.classList.remove('md-ripple-fade-in');\n ripple.classList.add('md-ripple-fade-out');\n }\n\n /**\n * Removes a foreground ripple from the DOM after it has faded out.\n * @param ripple Ripple to be removed from the DOM.\n */\n removeRippleFromDom(ripple: Element) {\n if (ripple && ripple.parentElement) {\n ripple.parentElement.removeChild(ripple);\n }\n }\n\n /**\n * Fades in the ripple background.\n * @param color New background color for the ripple.\n */\n fadeInRippleBackground(color: string) {\n this._backgroundDiv.classList.add('md-ripple-active');\n // If color is not set, this will default to the background color defined in CSS.\n this._backgroundDiv.style.backgroundColor = color;\n }\n\n /** Fades out the ripple background. */\n fadeOutRippleBackground() {\n if (this._backgroundDiv) {\n this._backgroundDiv.classList.remove('md-ripple-active');\n }\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":2,"metadata":{"ForegroundRippleState":{"NEW":0,"EXPANDING":1,"FADING_OUT":2},"ForegroundRipple":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":18,"character":36,"context":{"typeName":"Element"}}]}]}},"RippleRenderer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","name":"Map","arguments":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":48,"character":50}]},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"createBackgroundIfNeeded":[{"__symbolic":"method"}],"setTriggerElement":[{"__symbolic":"method"}],"setTriggerElementToHost":[{"__symbolic":"method"}],"clearTriggerElement":[{"__symbolic":"method"}],"createForegroundRipple":[{"__symbolic":"method"}],"fadeOutForegroundRipple":[{"__symbolic":"method"}],"removeRippleFromDom":[{"__symbolic":"method"}],"fadeInRippleBackground":[{"__symbolic":"method"}],"fadeOutRippleBackground":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","metadata":{"ForegroundRippleState":{"NEW":0,"EXPANDING":1,"FADING_OUT":2},"ForegroundRipple":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":18,"character":36,"context":{"typeName":"Element"}}]}]}},"RippleRenderer":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","name":"Map","arguments":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Expression form not supported","line":48,"character":50}]},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"createBackgroundIfNeeded":[{"__symbolic":"method"}],"setTriggerElement":[{"__symbolic":"method"}],"setTriggerElementToHost":[{"__symbolic":"method"}],"clearTriggerElement":[{"__symbolic":"method"}],"createForegroundRipple":[{"__symbolic":"method"}],"fadeOutForegroundRipple":[{"__symbolic":"method"}],"removeRippleFromDom":[{"__symbolic":"method"}],"fadeInRippleBackground":[{"__symbolic":"method"}],"fadeOutRippleBackground":[{"__symbolic":"method"}]}}},"version":1}]
|
package/core/ripple/ripple.d.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChange } from '@angular/core';
|
|
2
|
-
import { ViewportRuler } from '../overlay/position/viewport-ruler';
|
|
3
|
-
export declare class MdRipple implements OnInit, OnDestroy, OnChanges {
|
|
4
|
-
/**
|
|
5
|
-
* The element that triggers the ripple when click events are received. Defaults to the
|
|
6
|
-
* directive's host element.
|
|
7
|
-
*/
|
|
8
|
-
trigger: HTMLElement | HTMLElement;
|
|
9
|
-
/** @deprecated */
|
|
10
|
-
_triggerDeprecated: HTMLElement | HTMLElement;
|
|
11
|
-
/**
|
|
12
|
-
* Whether the ripple always originates from the center of the host element's bounds, rather
|
|
13
|
-
* than originating from the location of the click event.
|
|
14
|
-
*/
|
|
15
|
-
centered: boolean;
|
|
16
|
-
/** @deprecated */
|
|
17
|
-
_centeredDeprecated: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Whether click events will not trigger the ripple. It can still be triggered by manually
|
|
20
|
-
* calling start() and end().
|
|
21
|
-
*/
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
/** @deprecated */
|
|
24
|
-
_disabledDeprecated: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
|
|
27
|
-
* will be the distance from the center of the ripple to the furthest corner of the host element's
|
|
28
|
-
* bounding rectangle.
|
|
29
|
-
*/
|
|
30
|
-
maxRadius: number;
|
|
31
|
-
/** @deprecated */
|
|
32
|
-
_maxRadiusDeprecated: number;
|
|
33
|
-
/**
|
|
34
|
-
* If set, the normal duration of ripple animations is divided by this value. For example,
|
|
35
|
-
* setting it to 0.5 will cause the animations to take twice as long.
|
|
36
|
-
*/
|
|
37
|
-
speedFactor: number;
|
|
38
|
-
/** @deprecated */
|
|
39
|
-
_speedFactorDeprecated: number;
|
|
40
|
-
/** Custom color for ripples. */
|
|
41
|
-
color: string;
|
|
42
|
-
/** @deprecated */
|
|
43
|
-
_colorDeprecated: string;
|
|
44
|
-
/** Custom color for the ripple background. */
|
|
45
|
-
backgroundColor: string;
|
|
46
|
-
/** @deprecated */
|
|
47
|
-
_backgroundColorDeprecated: string;
|
|
48
|
-
/** Whether the ripple background will be highlighted to indicated a focused state. */
|
|
49
|
-
focused: boolean;
|
|
50
|
-
/** @deprecated */
|
|
51
|
-
_focusedDeprecated: boolean;
|
|
52
|
-
/** Whether foreground ripples should be visible outside the component's bounds. */
|
|
53
|
-
unbounded: boolean;
|
|
54
|
-
/** @deprecated */
|
|
55
|
-
_unboundedDeprecated: boolean;
|
|
56
|
-
private _rippleRenderer;
|
|
57
|
-
_ruler: ViewportRuler;
|
|
58
|
-
constructor(_elementRef: ElementRef, _ngZone: NgZone, _ruler: ViewportRuler);
|
|
59
|
-
ngOnInit(): void;
|
|
60
|
-
ngOnDestroy(): void;
|
|
61
|
-
ngOnChanges(changes: {
|
|
62
|
-
[propertyName: string]: SimpleChange;
|
|
63
|
-
}): void;
|
|
64
|
-
/**
|
|
65
|
-
* Responds to the start of a ripple animation trigger by fading the background in.
|
|
66
|
-
*/
|
|
67
|
-
start(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Responds to the end of a ripple animation trigger by fading the background out, and creating a
|
|
70
|
-
* foreground ripple that expands from the event location (or from the center of the element if
|
|
71
|
-
* the "centered" property is set or forceCenter is true).
|
|
72
|
-
*/
|
|
73
|
-
end(left: number, top: number, forceCenter?: boolean): void;
|
|
74
|
-
private _rippleTransitionEnded(ripple, event);
|
|
75
|
-
/**
|
|
76
|
-
* Called when the trigger element receives a mousedown event. Starts the ripple animation by
|
|
77
|
-
* fading in the background.
|
|
78
|
-
*/
|
|
79
|
-
private _mouseDown(event);
|
|
80
|
-
/**
|
|
81
|
-
* Called when the trigger element receives a click event. Creates a foreground ripple and
|
|
82
|
-
* runs its animation.
|
|
83
|
-
*/
|
|
84
|
-
private _click(event);
|
|
85
|
-
/**
|
|
86
|
-
* Called when the trigger element receives a mouseleave event. Fades out the background.
|
|
87
|
-
*/
|
|
88
|
-
private _mouseLeave(event);
|
|
89
|
-
}
|
|
90
|
-
export declare class MdRippleModule {
|
|
91
|
-
static forRoot(): ModuleWithProviders;
|
|
92
|
-
}
|
package/core/ripple/ripple.js
DELETED
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { NgModule, Directive, ElementRef, HostBinding, Input, NgZone } from '@angular/core';
|
|
11
|
-
import { RippleRenderer, ForegroundRippleState } from './ripple-renderer';
|
|
12
|
-
import { DefaultStyleCompatibilityModeModule } from '../compatibility/default-mode';
|
|
13
|
-
import { ViewportRuler } from '../overlay/position/viewport-ruler';
|
|
14
|
-
export var MdRipple = (function () {
|
|
15
|
-
function MdRipple(_elementRef, _ngZone, _ruler) {
|
|
16
|
-
var _this = this;
|
|
17
|
-
/**
|
|
18
|
-
* If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
|
|
19
|
-
* will be the distance from the center of the ripple to the furthest corner of the host element's
|
|
20
|
-
* bounding rectangle.
|
|
21
|
-
*/
|
|
22
|
-
this.maxRadius = 0;
|
|
23
|
-
/**
|
|
24
|
-
* If set, the normal duration of ripple animations is divided by this value. For example,
|
|
25
|
-
* setting it to 0.5 will cause the animations to take twice as long.
|
|
26
|
-
*/
|
|
27
|
-
this.speedFactor = 1;
|
|
28
|
-
// These event handlers are attached to the element that triggers the ripple animations.
|
|
29
|
-
var eventHandlers = new Map();
|
|
30
|
-
eventHandlers.set('mousedown', function (event) { return _this._mouseDown(event); });
|
|
31
|
-
eventHandlers.set('click', function (event) { return _this._click(event); });
|
|
32
|
-
eventHandlers.set('mouseleave', function (event) { return _this._mouseLeave(event); });
|
|
33
|
-
this._rippleRenderer = new RippleRenderer(_elementRef, eventHandlers, _ngZone);
|
|
34
|
-
this._ruler = _ruler;
|
|
35
|
-
}
|
|
36
|
-
Object.defineProperty(MdRipple.prototype, "_triggerDeprecated", {
|
|
37
|
-
/** @deprecated */
|
|
38
|
-
get: function () { return this.trigger; },
|
|
39
|
-
set: function (value) { this.trigger = value; },
|
|
40
|
-
enumerable: true,
|
|
41
|
-
configurable: true
|
|
42
|
-
});
|
|
43
|
-
;
|
|
44
|
-
Object.defineProperty(MdRipple.prototype, "_centeredDeprecated", {
|
|
45
|
-
/** @deprecated */
|
|
46
|
-
get: function () { return this.centered; },
|
|
47
|
-
set: function (value) { this.centered = value; },
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true
|
|
50
|
-
});
|
|
51
|
-
;
|
|
52
|
-
Object.defineProperty(MdRipple.prototype, "_disabledDeprecated", {
|
|
53
|
-
/** @deprecated */
|
|
54
|
-
get: function () { return this.disabled; },
|
|
55
|
-
set: function (value) { this.disabled = value; },
|
|
56
|
-
enumerable: true,
|
|
57
|
-
configurable: true
|
|
58
|
-
});
|
|
59
|
-
;
|
|
60
|
-
Object.defineProperty(MdRipple.prototype, "_maxRadiusDeprecated", {
|
|
61
|
-
/** @deprecated */
|
|
62
|
-
get: function () { return this.maxRadius; },
|
|
63
|
-
set: function (value) { this.maxRadius = value; },
|
|
64
|
-
enumerable: true,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
|
-
;
|
|
68
|
-
Object.defineProperty(MdRipple.prototype, "_speedFactorDeprecated", {
|
|
69
|
-
/** @deprecated */
|
|
70
|
-
get: function () { return this.speedFactor; },
|
|
71
|
-
set: function (value) { this.speedFactor = value; },
|
|
72
|
-
enumerable: true,
|
|
73
|
-
configurable: true
|
|
74
|
-
});
|
|
75
|
-
;
|
|
76
|
-
Object.defineProperty(MdRipple.prototype, "_colorDeprecated", {
|
|
77
|
-
/** @deprecated */
|
|
78
|
-
get: function () { return this.color; },
|
|
79
|
-
set: function (value) { this.color = value; },
|
|
80
|
-
enumerable: true,
|
|
81
|
-
configurable: true
|
|
82
|
-
});
|
|
83
|
-
;
|
|
84
|
-
Object.defineProperty(MdRipple.prototype, "_backgroundColorDeprecated", {
|
|
85
|
-
/** @deprecated */
|
|
86
|
-
get: function () { return this.backgroundColor; },
|
|
87
|
-
set: function (value) { this.backgroundColor = value; },
|
|
88
|
-
enumerable: true,
|
|
89
|
-
configurable: true
|
|
90
|
-
});
|
|
91
|
-
;
|
|
92
|
-
Object.defineProperty(MdRipple.prototype, "_focusedDeprecated", {
|
|
93
|
-
/** @deprecated */
|
|
94
|
-
get: function () { return this.focused; },
|
|
95
|
-
set: function (value) { this.focused = value; },
|
|
96
|
-
enumerable: true,
|
|
97
|
-
configurable: true
|
|
98
|
-
});
|
|
99
|
-
;
|
|
100
|
-
Object.defineProperty(MdRipple.prototype, "_unboundedDeprecated", {
|
|
101
|
-
/** @deprecated */
|
|
102
|
-
get: function () { return this.unbounded; },
|
|
103
|
-
set: function (value) { this.unbounded = value; },
|
|
104
|
-
enumerable: true,
|
|
105
|
-
configurable: true
|
|
106
|
-
});
|
|
107
|
-
;
|
|
108
|
-
MdRipple.prototype.ngOnInit = function () {
|
|
109
|
-
// If no trigger element was explicity set, use the host element
|
|
110
|
-
if (!this.trigger) {
|
|
111
|
-
this._rippleRenderer.setTriggerElementToHost();
|
|
112
|
-
}
|
|
113
|
-
if (!this.disabled) {
|
|
114
|
-
this._rippleRenderer.createBackgroundIfNeeded();
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
MdRipple.prototype.ngOnDestroy = function () {
|
|
118
|
-
// Remove event listeners on the trigger element.
|
|
119
|
-
this._rippleRenderer.clearTriggerElement();
|
|
120
|
-
};
|
|
121
|
-
MdRipple.prototype.ngOnChanges = function (changes) {
|
|
122
|
-
// If the trigger element changed (or is being initially set), add event listeners to it.
|
|
123
|
-
var changedInputs = Object.keys(changes);
|
|
124
|
-
if (changedInputs.indexOf('trigger') !== -1) {
|
|
125
|
-
this._rippleRenderer.setTriggerElement(this.trigger);
|
|
126
|
-
}
|
|
127
|
-
if (!this.disabled) {
|
|
128
|
-
this._rippleRenderer.createBackgroundIfNeeded();
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Responds to the start of a ripple animation trigger by fading the background in.
|
|
133
|
-
*/
|
|
134
|
-
MdRipple.prototype.start = function () {
|
|
135
|
-
this._rippleRenderer.createBackgroundIfNeeded();
|
|
136
|
-
this._rippleRenderer.fadeInRippleBackground(this.backgroundColor);
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Responds to the end of a ripple animation trigger by fading the background out, and creating a
|
|
140
|
-
* foreground ripple that expands from the event location (or from the center of the element if
|
|
141
|
-
* the "centered" property is set or forceCenter is true).
|
|
142
|
-
*/
|
|
143
|
-
MdRipple.prototype.end = function (left, top, forceCenter) {
|
|
144
|
-
var _this = this;
|
|
145
|
-
if (forceCenter === void 0) { forceCenter = true; }
|
|
146
|
-
this._rippleRenderer.createForegroundRipple(left, top, this.color, this.centered || forceCenter, this.maxRadius, this.speedFactor, function (ripple, e) { return _this._rippleTransitionEnded(ripple, e); });
|
|
147
|
-
this._rippleRenderer.fadeOutRippleBackground();
|
|
148
|
-
};
|
|
149
|
-
MdRipple.prototype._rippleTransitionEnded = function (ripple, event) {
|
|
150
|
-
if (event.propertyName === 'opacity') {
|
|
151
|
-
// If the ripple finished expanding, start fading it out. If it finished fading out,
|
|
152
|
-
// remove it from the DOM.
|
|
153
|
-
switch (ripple.state) {
|
|
154
|
-
case ForegroundRippleState.EXPANDING:
|
|
155
|
-
this._rippleRenderer.fadeOutForegroundRipple(ripple.rippleElement);
|
|
156
|
-
ripple.state = ForegroundRippleState.FADING_OUT;
|
|
157
|
-
break;
|
|
158
|
-
case ForegroundRippleState.FADING_OUT:
|
|
159
|
-
this._rippleRenderer.removeRippleFromDom(ripple.rippleElement);
|
|
160
|
-
break;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Called when the trigger element receives a mousedown event. Starts the ripple animation by
|
|
166
|
-
* fading in the background.
|
|
167
|
-
*/
|
|
168
|
-
MdRipple.prototype._mouseDown = function (event) {
|
|
169
|
-
if (!this.disabled && event.button === 0) {
|
|
170
|
-
this.start();
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* Called when the trigger element receives a click event. Creates a foreground ripple and
|
|
175
|
-
* runs its animation.
|
|
176
|
-
*/
|
|
177
|
-
MdRipple.prototype._click = function (event) {
|
|
178
|
-
if (!this.disabled && event.button === 0) {
|
|
179
|
-
// If screen and page positions are all 0, this was probably triggered by a keypress.
|
|
180
|
-
// In that case, use the center of the bounding rect as the ripple origin.
|
|
181
|
-
// FIXME: This fails on IE11, which still sets pageX/Y and screenX/Y on keyboard clicks.
|
|
182
|
-
var isKeyEvent = (event.screenX === 0 && event.screenY === 0 && event.pageX === 0 && event.pageY === 0);
|
|
183
|
-
this.end(event.pageX - this._ruler.getViewportScrollPosition().left, event.pageY - this._ruler.getViewportScrollPosition().top, isKeyEvent);
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Called when the trigger element receives a mouseleave event. Fades out the background.
|
|
188
|
-
*/
|
|
189
|
-
MdRipple.prototype._mouseLeave = function (event) {
|
|
190
|
-
// We can always fade out the background here; It's a no-op if it was already inactive.
|
|
191
|
-
this._rippleRenderer.fadeOutRippleBackground();
|
|
192
|
-
};
|
|
193
|
-
__decorate([
|
|
194
|
-
Input('mdRippleTrigger'),
|
|
195
|
-
__metadata('design:type', Object)
|
|
196
|
-
], MdRipple.prototype, "trigger", void 0);
|
|
197
|
-
__decorate([
|
|
198
|
-
Input('md-ripple-trigger'),
|
|
199
|
-
__metadata('design:type', Object)
|
|
200
|
-
], MdRipple.prototype, "_triggerDeprecated", null);
|
|
201
|
-
__decorate([
|
|
202
|
-
Input('mdRippleCentered'),
|
|
203
|
-
__metadata('design:type', Boolean)
|
|
204
|
-
], MdRipple.prototype, "centered", void 0);
|
|
205
|
-
__decorate([
|
|
206
|
-
Input('md-ripple-centered'),
|
|
207
|
-
__metadata('design:type', Object)
|
|
208
|
-
], MdRipple.prototype, "_centeredDeprecated", null);
|
|
209
|
-
__decorate([
|
|
210
|
-
Input('mdRippleDisabled'),
|
|
211
|
-
__metadata('design:type', Boolean)
|
|
212
|
-
], MdRipple.prototype, "disabled", void 0);
|
|
213
|
-
__decorate([
|
|
214
|
-
Input('md-ripple-disabled'),
|
|
215
|
-
__metadata('design:type', Object)
|
|
216
|
-
], MdRipple.prototype, "_disabledDeprecated", null);
|
|
217
|
-
__decorate([
|
|
218
|
-
Input('mdRippleMaxRadius'),
|
|
219
|
-
__metadata('design:type', Number)
|
|
220
|
-
], MdRipple.prototype, "maxRadius", void 0);
|
|
221
|
-
__decorate([
|
|
222
|
-
Input('md-ripple-max-radius'),
|
|
223
|
-
__metadata('design:type', Object)
|
|
224
|
-
], MdRipple.prototype, "_maxRadiusDeprecated", null);
|
|
225
|
-
__decorate([
|
|
226
|
-
Input('mdRippleSpeedFactor'),
|
|
227
|
-
__metadata('design:type', Number)
|
|
228
|
-
], MdRipple.prototype, "speedFactor", void 0);
|
|
229
|
-
__decorate([
|
|
230
|
-
Input('md-ripple-speed-factor'),
|
|
231
|
-
__metadata('design:type', Object)
|
|
232
|
-
], MdRipple.prototype, "_speedFactorDeprecated", null);
|
|
233
|
-
__decorate([
|
|
234
|
-
Input('mdRippleColor'),
|
|
235
|
-
__metadata('design:type', String)
|
|
236
|
-
], MdRipple.prototype, "color", void 0);
|
|
237
|
-
__decorate([
|
|
238
|
-
Input('md-ripple-color'),
|
|
239
|
-
__metadata('design:type', Object)
|
|
240
|
-
], MdRipple.prototype, "_colorDeprecated", null);
|
|
241
|
-
__decorate([
|
|
242
|
-
Input('mdRippleBackgroundColor'),
|
|
243
|
-
__metadata('design:type', String)
|
|
244
|
-
], MdRipple.prototype, "backgroundColor", void 0);
|
|
245
|
-
__decorate([
|
|
246
|
-
Input('md-ripple-background-color'),
|
|
247
|
-
__metadata('design:type', Object)
|
|
248
|
-
], MdRipple.prototype, "_backgroundColorDeprecated", null);
|
|
249
|
-
__decorate([
|
|
250
|
-
HostBinding('class.md-ripple-focused'),
|
|
251
|
-
Input('mdRippleFocused'),
|
|
252
|
-
__metadata('design:type', Boolean)
|
|
253
|
-
], MdRipple.prototype, "focused", void 0);
|
|
254
|
-
__decorate([
|
|
255
|
-
Input('md-ripple-focused'),
|
|
256
|
-
__metadata('design:type', Boolean)
|
|
257
|
-
], MdRipple.prototype, "_focusedDeprecated", null);
|
|
258
|
-
__decorate([
|
|
259
|
-
HostBinding('class.md-ripple-unbounded'),
|
|
260
|
-
Input('mdRippleUnbounded'),
|
|
261
|
-
__metadata('design:type', Boolean)
|
|
262
|
-
], MdRipple.prototype, "unbounded", void 0);
|
|
263
|
-
__decorate([
|
|
264
|
-
Input('md-ripple-unbounded'),
|
|
265
|
-
__metadata('design:type', Boolean)
|
|
266
|
-
], MdRipple.prototype, "_unboundedDeprecated", null);
|
|
267
|
-
MdRipple = __decorate([
|
|
268
|
-
Directive({
|
|
269
|
-
selector: '[md-ripple], [mat-ripple]',
|
|
270
|
-
}),
|
|
271
|
-
__metadata('design:paramtypes', [ElementRef, NgZone, ViewportRuler])
|
|
272
|
-
], MdRipple);
|
|
273
|
-
return MdRipple;
|
|
274
|
-
}());
|
|
275
|
-
export var MdRippleModule = (function () {
|
|
276
|
-
function MdRippleModule() {
|
|
277
|
-
}
|
|
278
|
-
MdRippleModule.forRoot = function () {
|
|
279
|
-
return {
|
|
280
|
-
ngModule: MdRippleModule,
|
|
281
|
-
providers: [ViewportRuler]
|
|
282
|
-
};
|
|
283
|
-
};
|
|
284
|
-
MdRippleModule = __decorate([
|
|
285
|
-
NgModule({
|
|
286
|
-
imports: [DefaultStyleCompatibilityModeModule],
|
|
287
|
-
exports: [MdRipple, DefaultStyleCompatibilityModeModule],
|
|
288
|
-
declarations: [MdRipple],
|
|
289
|
-
}),
|
|
290
|
-
__metadata('design:paramtypes', [])
|
|
291
|
-
], MdRippleModule);
|
|
292
|
-
return MdRippleModule;
|
|
293
|
-
}());
|
|
294
|
-
|
|
295
|
-
//# sourceMappingURL=ripple.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["core/ripple/ripple.ts"],"names":[],"mappings":";;;;;;;;;OAAO,EACL,QAAQ,EAER,SAAS,EACT,UAAU,EACV,WAAW,EACX,KAAK,EACL,MAAM,EAKP,MAAM,eAAe;OACf,EACL,cAAc,EAEd,qBAAqB,EACtB,MAAM,mBAAmB;OACnB,EAAC,mCAAmC,EAAC,MAAM,+BAA+B;OAC1E,EAAC,aAAa,EAAC,MAAM,oCAAoC;AAMhE;IA8FE,kBAAY,WAAuB,EAAE,OAAe,EAAE,MAAqB;QA9F7E,iBAgNC;QA5KC;;;;WAIG;QACyB,cAAS,GAAW,CAAC,CAAC;QAOlD;;;WAGG;QAC2B,gBAAW,GAAW,CAAC,CAAC;QA2CpD,wFAAwF;QACxF,IAAM,aAAa,GAAG,IAAI,GAAG,EAA8B,CAAC;QAC5D,aAAa,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,eAAC;AAAD,CAhNA,AAgNC,IAAA;AAQD;IAAA;IAOA,CAAC;IANQ,sBAAO,GAAd;QACE,MAAM,CAAC;YACL,QAAQ,EAAE,cAAc;YACxB,SAAS,EAAE,CAAC,aAAa,CAAC;SAC3B,CAAC;IACJ,CAAC;IAXH;QAAC,QAAQ,CAAC;YACR,OAAO,EAAE,CAAC,mCAAmC,CAAC;YAC9C,OAAO,EAAE,CAAC,QAAQ,EAAE,mCAAmC,CAAC;YACxD,YAAY,EAAE,CAAC,QAAQ,CAAC;SACzB,CAAC;;sBAAA;IAQF,qBAAC;AAAD,CAPA,AAOC,IAAA","file":"ripple.js","sourcesContent":["import {\n NgModule,\n ModuleWithProviders,\n Directive,\n ElementRef,\n HostBinding,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n SimpleChange,\n} from '@angular/core';\nimport {\n RippleRenderer,\n ForegroundRipple,\n ForegroundRippleState,\n} from './ripple-renderer';\nimport {DefaultStyleCompatibilityModeModule} from '../compatibility/default-mode';\nimport {ViewportRuler} from '../overlay/position/viewport-ruler';\n\n\n@Directive({\n selector: '[md-ripple], [mat-ripple]',\n})\nexport class MdRipple implements OnInit, OnDestroy, OnChanges {\n /**\n * The element that triggers the ripple when click events are received. Defaults to the\n * directive's host element.\n */\n // Prevent TS metadata emit from referencing HTMLElement in ripple.js\n // That breaks tests running in node that load material components.\n @Input('mdRippleTrigger') trigger: HTMLElement|HTMLElement;\n\n /** @deprecated */\n @Input('md-ripple-trigger')\n get _triggerDeprecated() { return this.trigger; }\n set _triggerDeprecated(value: HTMLElement|HTMLElement) { this.trigger = value; };\n\n /**\n * Whether the ripple always originates from the center of the host element's bounds, rather\n * than originating from the location of the click event.\n */\n @Input('mdRippleCentered') centered: boolean;\n\n /** @deprecated */\n @Input('md-ripple-centered')\n get _centeredDeprecated() { return this.centered; }\n set _centeredDeprecated(value: boolean) { this.centered = value; };\n\n /**\n * Whether click events will not trigger the ripple. It can still be triggered by manually\n * calling start() and end().\n */\n @Input('mdRippleDisabled') disabled: boolean;\n\n /** @deprecated */\n @Input('md-ripple-disabled')\n get _disabledDeprecated() { return this.disabled; }\n set _disabledDeprecated(value: boolean) { this.disabled = value; };\n\n /**\n * If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius\n * will be the distance from the center of the ripple to the furthest corner of the host element's\n * bounding rectangle.\n */\n @Input('mdRippleMaxRadius') maxRadius: number = 0;\n\n /** @deprecated */\n @Input('md-ripple-max-radius')\n get _maxRadiusDeprecated() { return this.maxRadius; }\n set _maxRadiusDeprecated(value: number) { this.maxRadius = value; };\n\n /**\n * If set, the normal duration of ripple animations is divided by this value. For example,\n * setting it to 0.5 will cause the animations to take twice as long.\n */\n @Input('mdRippleSpeedFactor') speedFactor: number = 1;\n\n /** @deprecated */\n @Input('md-ripple-speed-factor')\n get _speedFactorDeprecated() { return this.speedFactor; }\n set _speedFactorDeprecated(value: number) { this.speedFactor = value; };\n\n /** Custom color for ripples. */\n @Input('mdRippleColor') color: string;\n\n /** @deprecated */\n @Input('md-ripple-color')\n get _colorDeprecated() { return this.color; }\n set _colorDeprecated(value: string) { this.color = value; };\n\n /** Custom color for the ripple background. */\n @Input('mdRippleBackgroundColor') backgroundColor: string;\n\n /** @deprecated */\n @Input('md-ripple-background-color')\n get _backgroundColorDeprecated() { return this.backgroundColor; }\n set _backgroundColorDeprecated(value: string) { this.backgroundColor = value; };\n\n /** Whether the ripple background will be highlighted to indicated a focused state. */\n @HostBinding('class.md-ripple-focused') @Input('mdRippleFocused') focused: boolean;\n\n /** @deprecated */\n @Input('md-ripple-focused')\n get _focusedDeprecated(): boolean { return this.focused; }\n set _focusedDeprecated(value: boolean) { this.focused = value; };\n\n /** Whether foreground ripples should be visible outside the component's bounds. */\n @HostBinding('class.md-ripple-unbounded') @Input('mdRippleUnbounded') unbounded: boolean;\n\n /** @deprecated */\n @Input('md-ripple-unbounded')\n get _unboundedDeprecated(): boolean { return this.unbounded; }\n set _unboundedDeprecated(value: boolean) { this.unbounded = value; };\n\n private _rippleRenderer: RippleRenderer;\n _ruler: ViewportRuler;\n\n constructor(_elementRef: ElementRef, _ngZone: NgZone, _ruler: ViewportRuler) {\n // These event handlers are attached to the element that triggers the ripple animations.\n const eventHandlers = new Map<string, (e: Event) => void>();\n eventHandlers.set('mousedown', (event: MouseEvent) => this._mouseDown(event));\n eventHandlers.set('click', (event: MouseEvent) => this._click(event));\n eventHandlers.set('mouseleave', (event: MouseEvent) => this._mouseLeave(event));\n this._rippleRenderer = new RippleRenderer(_elementRef, eventHandlers, _ngZone);\n this._ruler = _ruler;\n }\n\n ngOnInit() {\n // If no trigger element was explicity set, use the host element\n if (!this.trigger) {\n this._rippleRenderer.setTriggerElementToHost();\n }\n if (!this.disabled) {\n this._rippleRenderer.createBackgroundIfNeeded();\n }\n }\n\n ngOnDestroy() {\n // Remove event listeners on the trigger element.\n this._rippleRenderer.clearTriggerElement();\n }\n\n ngOnChanges(changes: { [propertyName: string]: SimpleChange }) {\n // If the trigger element changed (or is being initially set), add event listeners to it.\n const changedInputs = Object.keys(changes);\n if (changedInputs.indexOf('trigger') !== -1) {\n this._rippleRenderer.setTriggerElement(this.trigger);\n }\n if (!this.disabled) {\n this._rippleRenderer.createBackgroundIfNeeded();\n }\n }\n\n /**\n * Responds to the start of a ripple animation trigger by fading the background in.\n */\n start() {\n this._rippleRenderer.createBackgroundIfNeeded();\n this._rippleRenderer.fadeInRippleBackground(this.backgroundColor);\n }\n\n /**\n * Responds to the end of a ripple animation trigger by fading the background out, and creating a\n * foreground ripple that expands from the event location (or from the center of the element if\n * the \"centered\" property is set or forceCenter is true).\n */\n end(left: number, top: number, forceCenter = true) {\n this._rippleRenderer.createForegroundRipple(\n left,\n top,\n this.color,\n this.centered || forceCenter,\n this.maxRadius,\n this.speedFactor,\n (ripple: ForegroundRipple, e: TransitionEvent) => this._rippleTransitionEnded(ripple, e));\n this._rippleRenderer.fadeOutRippleBackground();\n }\n\n private _rippleTransitionEnded(ripple: ForegroundRipple, event: TransitionEvent) {\n if (event.propertyName === 'opacity') {\n // If the ripple finished expanding, start fading it out. If it finished fading out,\n // remove it from the DOM.\n switch (ripple.state) {\n case ForegroundRippleState.EXPANDING:\n this._rippleRenderer.fadeOutForegroundRipple(ripple.rippleElement);\n ripple.state = ForegroundRippleState.FADING_OUT;\n break;\n case ForegroundRippleState.FADING_OUT:\n this._rippleRenderer.removeRippleFromDom(ripple.rippleElement);\n break;\n }\n }\n }\n\n /**\n * Called when the trigger element receives a mousedown event. Starts the ripple animation by\n * fading in the background.\n */\n private _mouseDown(event: MouseEvent) {\n if (!this.disabled && event.button === 0) {\n this.start();\n }\n }\n\n /**\n * Called when the trigger element receives a click event. Creates a foreground ripple and\n * runs its animation.\n */\n private _click(event: MouseEvent) {\n if (!this.disabled && event.button === 0) {\n // If screen and page positions are all 0, this was probably triggered by a keypress.\n // In that case, use the center of the bounding rect as the ripple origin.\n // FIXME: This fails on IE11, which still sets pageX/Y and screenX/Y on keyboard clicks.\n const isKeyEvent =\n (event.screenX === 0 && event.screenY === 0 && event.pageX === 0 && event.pageY === 0);\n\n this.end(event.pageX - this._ruler.getViewportScrollPosition().left,\n event.pageY - this._ruler.getViewportScrollPosition().top,\n isKeyEvent);\n }\n }\n\n /**\n * Called when the trigger element receives a mouseleave event. Fades out the background.\n */\n private _mouseLeave(event: MouseEvent) {\n // We can always fade out the background here; It's a no-op if it was already inactive.\n this._rippleRenderer.fadeOutRippleBackground();\n }\n\n // TODO: Reactivate the background div if the user drags out and back in.\n}\n\n\n@NgModule({\n imports: [DefaultStyleCompatibilityModeModule],\n exports: [MdRipple, DefaultStyleCompatibilityModeModule],\n declarations: [MdRipple],\n})\nexport class MdRippleModule {\n static forRoot(): ModuleWithProviders {\n return {\n ngModule: MdRippleModule,\n providers: [ViewportRuler]\n };\n }\n}\n"]}
|