@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
package/esm5/tabs.es5.js
ADDED
|
@@ -0,0 +1,1591 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { ObserversModule } from '@angular/cdk/observers';
|
|
9
|
+
import { PortalHostDirective, PortalModule, TemplatePortal, TemplatePortalDirective } from '@angular/cdk/portal';
|
|
10
|
+
import { ScrollDispatchModule, VIEWPORT_RULER_PROVIDER, ViewportRuler } from '@angular/cdk/scrolling';
|
|
11
|
+
import { CommonModule } from '@angular/common';
|
|
12
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, Directive, ElementRef, EventEmitter, Inject, Input, NgModule, NgZone, Optional, Output, Renderer2, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation, forwardRef } from '@angular/core';
|
|
13
|
+
import { MAT_RIPPLE_GLOBAL_OPTIONS, MatCommonModule, MatRipple, MatRippleModule, mixinColor, mixinDisableRipple, mixinDisabled } from '@angular/material/core';
|
|
14
|
+
import { __extends } from 'tslib';
|
|
15
|
+
import * as tslib_1 from 'tslib';
|
|
16
|
+
import { Subject } from 'rxjs/Subject';
|
|
17
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
18
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
19
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
20
|
+
import { Subscription } from 'rxjs/Subscription';
|
|
21
|
+
import { merge } from 'rxjs/observable/merge';
|
|
22
|
+
import { ENTER, LEFT_ARROW, RIGHT_ARROW, SPACE } from '@angular/cdk/keycodes';
|
|
23
|
+
import { startWith, takeUntil } from '@angular/cdk/rxjs';
|
|
24
|
+
import { of } from 'rxjs/observable/of';
|
|
25
|
+
import { Platform } from '@angular/cdk/platform';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The ink-bar is used to display and animate the line underneath the current active tab label.
|
|
29
|
+
* \@docs-private
|
|
30
|
+
*/
|
|
31
|
+
var MatInkBar = (function () {
|
|
32
|
+
/**
|
|
33
|
+
* @param {?} _renderer
|
|
34
|
+
* @param {?} _elementRef
|
|
35
|
+
* @param {?} _ngZone
|
|
36
|
+
*/
|
|
37
|
+
function MatInkBar(_renderer, _elementRef, _ngZone) {
|
|
38
|
+
this._renderer = _renderer;
|
|
39
|
+
this._elementRef = _elementRef;
|
|
40
|
+
this._ngZone = _ngZone;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Calculates the styles from the provided element in order to align the ink-bar to that element.
|
|
44
|
+
* Shows the ink bar if previously set as hidden.
|
|
45
|
+
* @param {?} element
|
|
46
|
+
* @return {?}
|
|
47
|
+
*/
|
|
48
|
+
MatInkBar.prototype.alignToElement = function (element) {
|
|
49
|
+
var _this = this;
|
|
50
|
+
this.show();
|
|
51
|
+
if (typeof requestAnimationFrame !== 'undefined') {
|
|
52
|
+
this._ngZone.runOutsideAngular(function () {
|
|
53
|
+
requestAnimationFrame(function () { return _this._setStyles(element); });
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this._setStyles(element);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Shows the ink bar.
|
|
62
|
+
* @return {?}
|
|
63
|
+
*/
|
|
64
|
+
MatInkBar.prototype.show = function () {
|
|
65
|
+
this._renderer.setStyle(this._elementRef.nativeElement, 'visibility', 'visible');
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Hides the ink bar.
|
|
69
|
+
* @return {?}
|
|
70
|
+
*/
|
|
71
|
+
MatInkBar.prototype.hide = function () {
|
|
72
|
+
this._renderer.setStyle(this._elementRef.nativeElement, 'visibility', 'hidden');
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Sets the proper styles to the ink bar element.
|
|
76
|
+
* @param {?} element
|
|
77
|
+
* @return {?}
|
|
78
|
+
*/
|
|
79
|
+
MatInkBar.prototype._setStyles = function (element) {
|
|
80
|
+
var /** @type {?} */ left = element ? (element.offsetLeft || 0) + 'px' : '0';
|
|
81
|
+
var /** @type {?} */ width = element ? (element.offsetWidth || 0) + 'px' : '0';
|
|
82
|
+
this._renderer.setStyle(this._elementRef.nativeElement, 'left', left);
|
|
83
|
+
this._renderer.setStyle(this._elementRef.nativeElement, 'width', width);
|
|
84
|
+
};
|
|
85
|
+
MatInkBar.decorators = [
|
|
86
|
+
{ type: Directive, args: [{
|
|
87
|
+
selector: 'mat-ink-bar',
|
|
88
|
+
host: {
|
|
89
|
+
'class': 'mat-ink-bar',
|
|
90
|
+
},
|
|
91
|
+
},] },
|
|
92
|
+
];
|
|
93
|
+
/**
|
|
94
|
+
* @nocollapse
|
|
95
|
+
*/
|
|
96
|
+
MatInkBar.ctorParameters = function () { return [
|
|
97
|
+
{ type: Renderer2, },
|
|
98
|
+
{ type: ElementRef, },
|
|
99
|
+
{ type: NgZone, },
|
|
100
|
+
]; };
|
|
101
|
+
return MatInkBar;
|
|
102
|
+
}());
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Workaround for https://github.com/angular/angular/issues/17849
|
|
106
|
+
*/
|
|
107
|
+
var _MatTabLabelBaseClass = TemplatePortalDirective;
|
|
108
|
+
/**
|
|
109
|
+
* Used to flag tab labels for use with the portal directive
|
|
110
|
+
*/
|
|
111
|
+
var MatTabLabel = (function (_super) {
|
|
112
|
+
__extends(MatTabLabel, _super);
|
|
113
|
+
/**
|
|
114
|
+
* @param {?} templateRef
|
|
115
|
+
* @param {?} viewContainerRef
|
|
116
|
+
*/
|
|
117
|
+
function MatTabLabel(templateRef, viewContainerRef) {
|
|
118
|
+
return _super.call(this, templateRef, viewContainerRef) || this;
|
|
119
|
+
}
|
|
120
|
+
MatTabLabel.decorators = [
|
|
121
|
+
{ type: Directive, args: [{
|
|
122
|
+
selector: '[mat-tab-label], [matTabLabel]',
|
|
123
|
+
},] },
|
|
124
|
+
];
|
|
125
|
+
/**
|
|
126
|
+
* @nocollapse
|
|
127
|
+
*/
|
|
128
|
+
MatTabLabel.ctorParameters = function () { return [
|
|
129
|
+
{ type: TemplateRef, },
|
|
130
|
+
{ type: ViewContainerRef, },
|
|
131
|
+
]; };
|
|
132
|
+
return MatTabLabel;
|
|
133
|
+
}(_MatTabLabelBaseClass));
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* \@docs-private
|
|
137
|
+
*/
|
|
138
|
+
var MatTabBase = (function () {
|
|
139
|
+
function MatTabBase() {
|
|
140
|
+
}
|
|
141
|
+
return MatTabBase;
|
|
142
|
+
}());
|
|
143
|
+
var _MatTabMixinBase = mixinDisabled(MatTabBase);
|
|
144
|
+
var MatTab = (function (_super) {
|
|
145
|
+
__extends(MatTab, _super);
|
|
146
|
+
/**
|
|
147
|
+
* @param {?} _viewContainerRef
|
|
148
|
+
*/
|
|
149
|
+
function MatTab(_viewContainerRef) {
|
|
150
|
+
var _this = _super.call(this) || this;
|
|
151
|
+
_this._viewContainerRef = _viewContainerRef;
|
|
152
|
+
/**
|
|
153
|
+
* The plain text label for the tab, used when there is no template label.
|
|
154
|
+
*/
|
|
155
|
+
_this.textLabel = '';
|
|
156
|
+
/**
|
|
157
|
+
* The portal that will be the hosted content of the tab
|
|
158
|
+
*/
|
|
159
|
+
_this._contentPortal = null;
|
|
160
|
+
/**
|
|
161
|
+
* Emits whenever the label changes.
|
|
162
|
+
*/
|
|
163
|
+
_this._labelChange = new Subject();
|
|
164
|
+
/**
|
|
165
|
+
* Emits whenevfer the disable changes
|
|
166
|
+
*/
|
|
167
|
+
_this._disableChange = new Subject();
|
|
168
|
+
/**
|
|
169
|
+
* The relatively indexed position where 0 represents the center, negative is left, and positive
|
|
170
|
+
* represents the right.
|
|
171
|
+
*/
|
|
172
|
+
_this.position = null;
|
|
173
|
+
/**
|
|
174
|
+
* The initial relatively index origin of the tab if it was created and selected after there
|
|
175
|
+
* was already a selected tab. Provides context of what position the tab should originate from.
|
|
176
|
+
*/
|
|
177
|
+
_this.origin = null;
|
|
178
|
+
/**
|
|
179
|
+
* Whether the tab is currently active.
|
|
180
|
+
*/
|
|
181
|
+
_this.isActive = false;
|
|
182
|
+
return _this;
|
|
183
|
+
}
|
|
184
|
+
Object.defineProperty(MatTab.prototype, "content", {
|
|
185
|
+
/**
|
|
186
|
+
* @return {?}
|
|
187
|
+
*/
|
|
188
|
+
get: function () { return this._contentPortal; },
|
|
189
|
+
enumerable: true,
|
|
190
|
+
configurable: true
|
|
191
|
+
});
|
|
192
|
+
/**
|
|
193
|
+
* @param {?} changes
|
|
194
|
+
* @return {?}
|
|
195
|
+
*/
|
|
196
|
+
MatTab.prototype.ngOnChanges = function (changes) {
|
|
197
|
+
if (changes.hasOwnProperty('textLabel')) {
|
|
198
|
+
this._labelChange.next();
|
|
199
|
+
}
|
|
200
|
+
if (changes.hasOwnProperty('disabled')) {
|
|
201
|
+
this._disableChange.next();
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* @return {?}
|
|
206
|
+
*/
|
|
207
|
+
MatTab.prototype.ngOnDestroy = function () {
|
|
208
|
+
this._disableChange.complete();
|
|
209
|
+
this._labelChange.complete();
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* @return {?}
|
|
213
|
+
*/
|
|
214
|
+
MatTab.prototype.ngOnInit = function () {
|
|
215
|
+
this._contentPortal = new TemplatePortal(this._content, this._viewContainerRef);
|
|
216
|
+
};
|
|
217
|
+
MatTab.decorators = [
|
|
218
|
+
{ type: Component, args: [{selector: 'mat-tab',
|
|
219
|
+
template: "<ng-template><ng-content></ng-content></ng-template>",
|
|
220
|
+
inputs: ['disabled'],
|
|
221
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
222
|
+
encapsulation: ViewEncapsulation.None,
|
|
223
|
+
preserveWhitespaces: false,
|
|
224
|
+
exportAs: 'matTab',
|
|
225
|
+
},] },
|
|
226
|
+
];
|
|
227
|
+
/**
|
|
228
|
+
* @nocollapse
|
|
229
|
+
*/
|
|
230
|
+
MatTab.ctorParameters = function () { return [
|
|
231
|
+
{ type: ViewContainerRef, },
|
|
232
|
+
]; };
|
|
233
|
+
MatTab.propDecorators = {
|
|
234
|
+
'templateLabel': [{ type: ContentChild, args: [MatTabLabel,] },],
|
|
235
|
+
'_content': [{ type: ViewChild, args: [TemplateRef,] },],
|
|
236
|
+
'textLabel': [{ type: Input, args: ['label',] },],
|
|
237
|
+
};
|
|
238
|
+
return MatTab;
|
|
239
|
+
}(_MatTabMixinBase));
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Wrapper for the contents of a tab.
|
|
243
|
+
* \@docs-private
|
|
244
|
+
*/
|
|
245
|
+
var MatTabBody = (function () {
|
|
246
|
+
/**
|
|
247
|
+
* @param {?} _elementRef
|
|
248
|
+
* @param {?} _dir
|
|
249
|
+
*/
|
|
250
|
+
function MatTabBody(_elementRef, _dir) {
|
|
251
|
+
this._elementRef = _elementRef;
|
|
252
|
+
this._dir = _dir;
|
|
253
|
+
/**
|
|
254
|
+
* Event emitted when the tab begins to animate towards the center as the active tab.
|
|
255
|
+
*/
|
|
256
|
+
this._onCentering = new EventEmitter();
|
|
257
|
+
/**
|
|
258
|
+
* Event emitted when the tab completes its animation towards the center.
|
|
259
|
+
*/
|
|
260
|
+
this._onCentered = new EventEmitter(true);
|
|
261
|
+
}
|
|
262
|
+
Object.defineProperty(MatTabBody.prototype, "position", {
|
|
263
|
+
/**
|
|
264
|
+
* @param {?} position
|
|
265
|
+
* @return {?}
|
|
266
|
+
*/
|
|
267
|
+
set: function (position) {
|
|
268
|
+
if (position < 0) {
|
|
269
|
+
this._position = this._getLayoutDirection() == 'ltr' ? 'left' : 'right';
|
|
270
|
+
}
|
|
271
|
+
else if (position > 0) {
|
|
272
|
+
this._position = this._getLayoutDirection() == 'ltr' ? 'right' : 'left';
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
this._position = 'center';
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
enumerable: true,
|
|
279
|
+
configurable: true
|
|
280
|
+
});
|
|
281
|
+
Object.defineProperty(MatTabBody.prototype, "origin", {
|
|
282
|
+
/**
|
|
283
|
+
* The origin position from which this tab should appear when it is centered into view.
|
|
284
|
+
* @param {?} origin
|
|
285
|
+
* @return {?}
|
|
286
|
+
*/
|
|
287
|
+
set: function (origin) {
|
|
288
|
+
if (origin == null) {
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
var /** @type {?} */ dir = this._getLayoutDirection();
|
|
292
|
+
if ((dir == 'ltr' && origin <= 0) || (dir == 'rtl' && origin > 0)) {
|
|
293
|
+
this._origin = 'left';
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
this._origin = 'right';
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
enumerable: true,
|
|
300
|
+
configurable: true
|
|
301
|
+
});
|
|
302
|
+
/**
|
|
303
|
+
* After initialized, check if the content is centered and has an origin. If so, set the
|
|
304
|
+
* special position states that transition the tab from the left or right before centering.
|
|
305
|
+
* @return {?}
|
|
306
|
+
*/
|
|
307
|
+
MatTabBody.prototype.ngOnInit = function () {
|
|
308
|
+
if (this._position == 'center' && this._origin) {
|
|
309
|
+
this._position = this._origin == 'left' ? 'left-origin-center' : 'right-origin-center';
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* After the view has been set, check if the tab content is set to the center and attach the
|
|
314
|
+
* content if it is not already attached.
|
|
315
|
+
* @return {?}
|
|
316
|
+
*/
|
|
317
|
+
MatTabBody.prototype.ngAfterViewChecked = function () {
|
|
318
|
+
if (this._isCenterPosition(this._position) && !this._portalHost.hasAttached()) {
|
|
319
|
+
this._portalHost.attach(this._content);
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* @param {?} e
|
|
324
|
+
* @return {?}
|
|
325
|
+
*/
|
|
326
|
+
MatTabBody.prototype._onTranslateTabStarted = function (e) {
|
|
327
|
+
if (this._isCenterPosition(e.toState)) {
|
|
328
|
+
this._onCentering.emit(this._elementRef.nativeElement.clientHeight);
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* @param {?} e
|
|
333
|
+
* @return {?}
|
|
334
|
+
*/
|
|
335
|
+
MatTabBody.prototype._onTranslateTabComplete = function (e) {
|
|
336
|
+
// If the end state is that the tab is not centered, then detach the content.
|
|
337
|
+
if (!this._isCenterPosition(e.toState) && !this._isCenterPosition(this._position)) {
|
|
338
|
+
this._portalHost.detach();
|
|
339
|
+
}
|
|
340
|
+
// If the transition to the center is complete, emit an event.
|
|
341
|
+
if (this._isCenterPosition(e.toState) && this._isCenterPosition(this._position)) {
|
|
342
|
+
this._onCentered.emit();
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* The text direction of the containing app.
|
|
347
|
+
* @return {?}
|
|
348
|
+
*/
|
|
349
|
+
MatTabBody.prototype._getLayoutDirection = function () {
|
|
350
|
+
return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Whether the provided position state is considered center, regardless of origin.
|
|
354
|
+
* @param {?} position
|
|
355
|
+
* @return {?}
|
|
356
|
+
*/
|
|
357
|
+
MatTabBody.prototype._isCenterPosition = function (position) {
|
|
358
|
+
return position == 'center' ||
|
|
359
|
+
position == 'left-origin-center' ||
|
|
360
|
+
position == 'right-origin-center';
|
|
361
|
+
};
|
|
362
|
+
MatTabBody.decorators = [
|
|
363
|
+
{ type: Component, args: [{selector: 'mat-tab-body',
|
|
364
|
+
template: "<div class=\"mat-tab-body-content\" #content [@translateTab]=\"_position\" (@translateTab.start)=\"_onTranslateTabStarted($event)\" (@translateTab.done)=\"_onTranslateTabComplete($event)\"><ng-template cdkPortalHost></ng-template></div>",
|
|
365
|
+
styles: [".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}"],
|
|
366
|
+
encapsulation: ViewEncapsulation.None,
|
|
367
|
+
preserveWhitespaces: false,
|
|
368
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
369
|
+
host: {
|
|
370
|
+
'class': 'mat-tab-body',
|
|
371
|
+
},
|
|
372
|
+
animations: [
|
|
373
|
+
trigger('translateTab', [
|
|
374
|
+
// Note: transitions to `none` instead of 0, because some browsers might blur the content.
|
|
375
|
+
state('center, void, left-origin-center, right-origin-center', style({ transform: 'none' })),
|
|
376
|
+
state('left', style({ transform: 'translate3d(-100%, 0, 0)' })),
|
|
377
|
+
state('right', style({ transform: 'translate3d(100%, 0, 0)' })),
|
|
378
|
+
transition('* => left, * => right, left => center, right => center', animate('500ms cubic-bezier(0.35, 0, 0.25, 1)')),
|
|
379
|
+
transition('void => left-origin-center', [
|
|
380
|
+
style({ transform: 'translate3d(-100%, 0, 0)' }),
|
|
381
|
+
animate('500ms cubic-bezier(0.35, 0, 0.25, 1)')
|
|
382
|
+
]),
|
|
383
|
+
transition('void => right-origin-center', [
|
|
384
|
+
style({ transform: 'translate3d(100%, 0, 0)' }),
|
|
385
|
+
animate('500ms cubic-bezier(0.35, 0, 0.25, 1)')
|
|
386
|
+
])
|
|
387
|
+
])
|
|
388
|
+
]
|
|
389
|
+
},] },
|
|
390
|
+
];
|
|
391
|
+
/**
|
|
392
|
+
* @nocollapse
|
|
393
|
+
*/
|
|
394
|
+
MatTabBody.ctorParameters = function () { return [
|
|
395
|
+
{ type: ElementRef, },
|
|
396
|
+
{ type: Directionality, decorators: [{ type: Optional },] },
|
|
397
|
+
]; };
|
|
398
|
+
MatTabBody.propDecorators = {
|
|
399
|
+
'_portalHost': [{ type: ViewChild, args: [PortalHostDirective,] },],
|
|
400
|
+
'_onCentering': [{ type: Output },],
|
|
401
|
+
'_onCentered': [{ type: Output },],
|
|
402
|
+
'_content': [{ type: Input, args: ['content',] },],
|
|
403
|
+
'position': [{ type: Input, args: ['position',] },],
|
|
404
|
+
'origin': [{ type: Input, args: ['origin',] },],
|
|
405
|
+
};
|
|
406
|
+
return MatTabBody;
|
|
407
|
+
}());
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Used to generate unique ID's for each tab component
|
|
411
|
+
*/
|
|
412
|
+
var nextId = 0;
|
|
413
|
+
/**
|
|
414
|
+
* A simple change event emitted on focus or selection changes.
|
|
415
|
+
*/
|
|
416
|
+
var MatTabChangeEvent = (function () {
|
|
417
|
+
function MatTabChangeEvent() {
|
|
418
|
+
}
|
|
419
|
+
return MatTabChangeEvent;
|
|
420
|
+
}());
|
|
421
|
+
/**
|
|
422
|
+
* \@docs-private
|
|
423
|
+
*/
|
|
424
|
+
var MatTabGroupBase = (function () {
|
|
425
|
+
/**
|
|
426
|
+
* @param {?} _renderer
|
|
427
|
+
* @param {?} _elementRef
|
|
428
|
+
*/
|
|
429
|
+
function MatTabGroupBase(_renderer, _elementRef) {
|
|
430
|
+
this._renderer = _renderer;
|
|
431
|
+
this._elementRef = _elementRef;
|
|
432
|
+
}
|
|
433
|
+
return MatTabGroupBase;
|
|
434
|
+
}());
|
|
435
|
+
var _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(MatTabGroupBase), 'primary');
|
|
436
|
+
/**
|
|
437
|
+
* Material design tab-group component. Supports basic tab pairs (label + content) and includes
|
|
438
|
+
* animated ink-bar, keyboard navigation, and screen reader.
|
|
439
|
+
* See: https://www.google.com/design/spec/components/tabs.html
|
|
440
|
+
*/
|
|
441
|
+
var MatTabGroup = (function (_super) {
|
|
442
|
+
__extends(MatTabGroup, _super);
|
|
443
|
+
/**
|
|
444
|
+
* @param {?} _renderer
|
|
445
|
+
* @param {?} elementRef
|
|
446
|
+
* @param {?} _changeDetectorRef
|
|
447
|
+
*/
|
|
448
|
+
function MatTabGroup(_renderer, elementRef, _changeDetectorRef) {
|
|
449
|
+
var _this = _super.call(this, _renderer, elementRef) || this;
|
|
450
|
+
_this._changeDetectorRef = _changeDetectorRef;
|
|
451
|
+
/**
|
|
452
|
+
* Whether this component has been initialized.
|
|
453
|
+
*/
|
|
454
|
+
_this._isInitialized = false;
|
|
455
|
+
/**
|
|
456
|
+
* The tab index that should be selected after the content has been checked.
|
|
457
|
+
*/
|
|
458
|
+
_this._indexToSelect = 0;
|
|
459
|
+
/**
|
|
460
|
+
* Snapshot of the height of the tab body wrapper before another tab is activated.
|
|
461
|
+
*/
|
|
462
|
+
_this._tabBodyWrapperHeight = 0;
|
|
463
|
+
/**
|
|
464
|
+
* Subscription to tabs being added/removed.
|
|
465
|
+
*/
|
|
466
|
+
_this._tabsSubscription = Subscription.EMPTY;
|
|
467
|
+
/**
|
|
468
|
+
* Subscription to changes in the tab labels.
|
|
469
|
+
*/
|
|
470
|
+
_this._tabLabelSubscription = Subscription.EMPTY;
|
|
471
|
+
_this._dynamicHeight = false;
|
|
472
|
+
_this._selectedIndex = null;
|
|
473
|
+
/**
|
|
474
|
+
* Position of the tab header.
|
|
475
|
+
*/
|
|
476
|
+
_this.headerPosition = 'above';
|
|
477
|
+
/**
|
|
478
|
+
* Output to enable support for two-way binding on `[(selectedIndex)]`
|
|
479
|
+
*/
|
|
480
|
+
_this.selectedIndexChange = new EventEmitter();
|
|
481
|
+
/**
|
|
482
|
+
* Event emitted when focus has changed within a tab group.
|
|
483
|
+
*/
|
|
484
|
+
_this.focusChange = new EventEmitter();
|
|
485
|
+
/**
|
|
486
|
+
* Event emitted when the tab selection has changed.
|
|
487
|
+
*/
|
|
488
|
+
_this.selectedTabChange = new EventEmitter(true);
|
|
489
|
+
/**
|
|
490
|
+
* Event emitted when the tab selection has changed.
|
|
491
|
+
* @deprecated Use `selectedTabChange` instead.
|
|
492
|
+
*/
|
|
493
|
+
_this.selectChange = _this.selectedTabChange;
|
|
494
|
+
_this._groupId = nextId++;
|
|
495
|
+
return _this;
|
|
496
|
+
}
|
|
497
|
+
Object.defineProperty(MatTabGroup.prototype, "dynamicHeight", {
|
|
498
|
+
/**
|
|
499
|
+
* Whether the tab group should grow to the size of the active tab.
|
|
500
|
+
* @return {?}
|
|
501
|
+
*/
|
|
502
|
+
get: function () { return this._dynamicHeight; },
|
|
503
|
+
/**
|
|
504
|
+
* @param {?} value
|
|
505
|
+
* @return {?}
|
|
506
|
+
*/
|
|
507
|
+
set: function (value) { this._dynamicHeight = coerceBooleanProperty(value); },
|
|
508
|
+
enumerable: true,
|
|
509
|
+
configurable: true
|
|
510
|
+
});
|
|
511
|
+
Object.defineProperty(MatTabGroup.prototype, "_dynamicHeightDeprecated", {
|
|
512
|
+
/**
|
|
513
|
+
* @deprecated
|
|
514
|
+
* @return {?}
|
|
515
|
+
*/
|
|
516
|
+
get: function () { return this._dynamicHeight; },
|
|
517
|
+
/**
|
|
518
|
+
* @param {?} value
|
|
519
|
+
* @return {?}
|
|
520
|
+
*/
|
|
521
|
+
set: function (value) { this._dynamicHeight = value; },
|
|
522
|
+
enumerable: true,
|
|
523
|
+
configurable: true
|
|
524
|
+
});
|
|
525
|
+
Object.defineProperty(MatTabGroup.prototype, "selectedIndex", {
|
|
526
|
+
/**
|
|
527
|
+
* @return {?}
|
|
528
|
+
*/
|
|
529
|
+
get: function () { return this._selectedIndex; },
|
|
530
|
+
/**
|
|
531
|
+
* The index of the active tab.
|
|
532
|
+
* @param {?} value
|
|
533
|
+
* @return {?}
|
|
534
|
+
*/
|
|
535
|
+
set: function (value) { this._indexToSelect = value; },
|
|
536
|
+
enumerable: true,
|
|
537
|
+
configurable: true
|
|
538
|
+
});
|
|
539
|
+
Object.defineProperty(MatTabGroup.prototype, "backgroundColor", {
|
|
540
|
+
/**
|
|
541
|
+
* Background color of the tab group.
|
|
542
|
+
* @return {?}
|
|
543
|
+
*/
|
|
544
|
+
get: function () { return this._backgroundColor; },
|
|
545
|
+
/**
|
|
546
|
+
* @param {?} value
|
|
547
|
+
* @return {?}
|
|
548
|
+
*/
|
|
549
|
+
set: function (value) {
|
|
550
|
+
var /** @type {?} */ nativeElement = this._elementRef.nativeElement;
|
|
551
|
+
this._renderer.removeClass(nativeElement, "mat-background-" + this.backgroundColor);
|
|
552
|
+
if (value) {
|
|
553
|
+
this._renderer.addClass(nativeElement, "mat-background-" + value);
|
|
554
|
+
}
|
|
555
|
+
this._backgroundColor = value;
|
|
556
|
+
},
|
|
557
|
+
enumerable: true,
|
|
558
|
+
configurable: true
|
|
559
|
+
});
|
|
560
|
+
/**
|
|
561
|
+
* After the content is checked, this component knows what tabs have been defined
|
|
562
|
+
* and what the selected index should be. This is where we can know exactly what position
|
|
563
|
+
* each tab should be in according to the new selected index, and additionally we know how
|
|
564
|
+
* a new selected tab should transition in (from the left or right).
|
|
565
|
+
* @return {?}
|
|
566
|
+
*/
|
|
567
|
+
MatTabGroup.prototype.ngAfterContentChecked = function () {
|
|
568
|
+
var _this = this;
|
|
569
|
+
// Clamp the next selected index to the boundsof 0 and the tabs length.
|
|
570
|
+
// Note the `|| 0`, which ensures that values like NaN can't get through
|
|
571
|
+
// and which would otherwise throw the component into an infinite loop
|
|
572
|
+
// (since Math.max(NaN, 0) === NaN).
|
|
573
|
+
var /** @type {?} */ indexToSelect = this._indexToSelect =
|
|
574
|
+
Math.min(this._tabs.length - 1, Math.max(this._indexToSelect || 0, 0));
|
|
575
|
+
// If there is a change in selected index, emit a change event. Should not trigger if
|
|
576
|
+
// the selected index has not yet been initialized.
|
|
577
|
+
if (this._selectedIndex != indexToSelect && this._selectedIndex != null) {
|
|
578
|
+
var /** @type {?} */ tabChangeEvent = this._createChangeEvent(indexToSelect);
|
|
579
|
+
this.selectedTabChange.emit(tabChangeEvent);
|
|
580
|
+
// Emitting this value after change detection has run
|
|
581
|
+
// since the checked content may contain this variable'
|
|
582
|
+
Promise.resolve().then(function () { return _this.selectedIndexChange.emit(indexToSelect); });
|
|
583
|
+
}
|
|
584
|
+
// Setup the position for each tab and optionally setup an origin on the next selected tab.
|
|
585
|
+
this._tabs.forEach(function (tab, index) {
|
|
586
|
+
tab.position = index - indexToSelect;
|
|
587
|
+
tab.isActive = index === indexToSelect;
|
|
588
|
+
// If there is already a selected tab, then set up an origin for the next selected tab
|
|
589
|
+
// if it doesn't have one already.
|
|
590
|
+
if (_this._selectedIndex != null && tab.position == 0 && !tab.origin) {
|
|
591
|
+
tab.origin = indexToSelect - _this._selectedIndex;
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
if (this._selectedIndex !== indexToSelect) {
|
|
595
|
+
this._selectedIndex = indexToSelect;
|
|
596
|
+
this._changeDetectorRef.markForCheck();
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* @return {?}
|
|
601
|
+
*/
|
|
602
|
+
MatTabGroup.prototype.ngAfterContentInit = function () {
|
|
603
|
+
var _this = this;
|
|
604
|
+
this._subscribeToTabLabels();
|
|
605
|
+
// Subscribe to changes in the amount of tabs, in order to be
|
|
606
|
+
// able to re-render the content as new tabs are added or removed.
|
|
607
|
+
this._tabsSubscription = this._tabs.changes.subscribe(function () {
|
|
608
|
+
_this._subscribeToTabLabels();
|
|
609
|
+
_this._changeDetectorRef.markForCheck();
|
|
610
|
+
});
|
|
611
|
+
};
|
|
612
|
+
/**
|
|
613
|
+
* @return {?}
|
|
614
|
+
*/
|
|
615
|
+
MatTabGroup.prototype.ngOnDestroy = function () {
|
|
616
|
+
this._tabsSubscription.unsubscribe();
|
|
617
|
+
this._tabLabelSubscription.unsubscribe();
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* Waits one frame for the view to update, then updates the ink bar
|
|
621
|
+
* Note: This must be run outside of the zone or it will create an infinite change detection loop.
|
|
622
|
+
* @return {?}
|
|
623
|
+
*/
|
|
624
|
+
MatTabGroup.prototype.ngAfterViewChecked = function () {
|
|
625
|
+
this._isInitialized = true;
|
|
626
|
+
};
|
|
627
|
+
/**
|
|
628
|
+
* @param {?} index
|
|
629
|
+
* @return {?}
|
|
630
|
+
*/
|
|
631
|
+
MatTabGroup.prototype._focusChanged = function (index) {
|
|
632
|
+
this.focusChange.emit(this._createChangeEvent(index));
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
* @param {?} index
|
|
636
|
+
* @return {?}
|
|
637
|
+
*/
|
|
638
|
+
MatTabGroup.prototype._createChangeEvent = function (index) {
|
|
639
|
+
var /** @type {?} */ event = new MatTabChangeEvent;
|
|
640
|
+
event.index = index;
|
|
641
|
+
if (this._tabs && this._tabs.length) {
|
|
642
|
+
event.tab = this._tabs.toArray()[index];
|
|
643
|
+
}
|
|
644
|
+
return event;
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* Subscribes to changes in the tab labels. This is needed, because the \@Input for the label is
|
|
648
|
+
* on the MatTab component, whereas the data binding is inside the MatTabGroup. In order for the
|
|
649
|
+
* binding to be updated, we need to subscribe to changes in it and trigger change detection
|
|
650
|
+
* manually.
|
|
651
|
+
* @return {?}
|
|
652
|
+
*/
|
|
653
|
+
MatTabGroup.prototype._subscribeToTabLabels = function () {
|
|
654
|
+
var _this = this;
|
|
655
|
+
if (this._tabLabelSubscription) {
|
|
656
|
+
this._tabLabelSubscription.unsubscribe();
|
|
657
|
+
}
|
|
658
|
+
this._tabLabelSubscription = merge.apply(void 0, this._tabs.map(function (tab) { return tab._disableChange; }).concat(this._tabs.map(function (tab) { return tab._labelChange; }))).subscribe(function () {
|
|
659
|
+
_this._changeDetectorRef.markForCheck();
|
|
660
|
+
});
|
|
661
|
+
};
|
|
662
|
+
/**
|
|
663
|
+
* Returns a unique id for each tab label element
|
|
664
|
+
* @param {?} i
|
|
665
|
+
* @return {?}
|
|
666
|
+
*/
|
|
667
|
+
MatTabGroup.prototype._getTabLabelId = function (i) {
|
|
668
|
+
return "mat-tab-label-" + this._groupId + "-" + i;
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* Returns a unique id for each tab content element
|
|
672
|
+
* @param {?} i
|
|
673
|
+
* @return {?}
|
|
674
|
+
*/
|
|
675
|
+
MatTabGroup.prototype._getTabContentId = function (i) {
|
|
676
|
+
return "mat-tab-content-" + this._groupId + "-" + i;
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* Sets the height of the body wrapper to the height of the activating tab if dynamic
|
|
680
|
+
* height property is true.
|
|
681
|
+
* @param {?} tabHeight
|
|
682
|
+
* @return {?}
|
|
683
|
+
*/
|
|
684
|
+
MatTabGroup.prototype._setTabBodyWrapperHeight = function (tabHeight) {
|
|
685
|
+
if (!this._dynamicHeight || !this._tabBodyWrapperHeight) {
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
this._renderer.setStyle(this._tabBodyWrapper.nativeElement, 'height', this._tabBodyWrapperHeight + 'px');
|
|
689
|
+
// This conditional forces the browser to paint the height so that
|
|
690
|
+
// the animation to the new height can have an origin.
|
|
691
|
+
if (this._tabBodyWrapper.nativeElement.offsetHeight) {
|
|
692
|
+
this._renderer.setStyle(this._tabBodyWrapper.nativeElement, 'height', tabHeight + 'px');
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
/**
|
|
696
|
+
* Removes the height of the tab body wrapper.
|
|
697
|
+
* @return {?}
|
|
698
|
+
*/
|
|
699
|
+
MatTabGroup.prototype._removeTabBodyWrapperHeight = function () {
|
|
700
|
+
this._tabBodyWrapperHeight = this._tabBodyWrapper.nativeElement.clientHeight;
|
|
701
|
+
this._renderer.setStyle(this._tabBodyWrapper.nativeElement, 'height', '');
|
|
702
|
+
};
|
|
703
|
+
MatTabGroup.decorators = [
|
|
704
|
+
{ type: Component, args: [{selector: 'mat-tab-group',
|
|
705
|
+
exportAs: 'matTabGroup',
|
|
706
|
+
template: "<mat-tab-header #tabHeader [selectedIndex]=\"selectedIndex\" [disableRipple]=\"disableRipple\" (indexFocused)=\"_focusChanged($event)\" (selectFocusedIndex)=\"selectedIndex = $event\"><div class=\"mat-tab-label\" role=\"tab\" matTabLabelWrapper mat-ripple *ngFor=\"let tab of _tabs; let i = index\" [id]=\"_getTabLabelId(i)\" [tabIndex]=\"selectedIndex == i ? 0 : -1\" [attr.aria-controls]=\"_getTabContentId(i)\" [attr.aria-selected]=\"selectedIndex == i\" [class.mat-tab-label-active]=\"selectedIndex == i\" [disabled]=\"tab.disabled\" [matRippleDisabled]=\"disableRipple\" (click)=\"tabHeader.focusIndex = selectedIndex = i\"><ng-template [ngIf]=\"tab.templateLabel\"><ng-template [cdkPortalHost]=\"tab.templateLabel\"></ng-template></ng-template><ng-template [ngIf]=\"!tab.templateLabel\">{{tab.textLabel}}</ng-template></div></mat-tab-header><div class=\"mat-tab-body-wrapper\" #tabBodyWrapper><mat-tab-body role=\"tabpanel\" *ngFor=\"let tab of _tabs; let i = index\" [id]=\"_getTabContentId(i)\" [attr.aria-labelledby]=\"_getTabLabelId(i)\" [class.mat-tab-body-active]=\"selectedIndex == i\" [content]=\"tab.content\" [position]=\"tab.position\" [origin]=\"tab.origin\" (_onCentered)=\"_removeTabBodyWrapperHeight()\" (_onCentering)=\"_setTabBodyWrapperHeight($event)\"></mat-tab-body></div>",
|
|
707
|
+
styles: [".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0;opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default;pointer-events:none}@media (max-width:600px){.mat-tab-label{padding:0 12px}}@media (max-width:960px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs] .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height .5s cubic-bezier(.35,0,.25,1)}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],
|
|
708
|
+
encapsulation: ViewEncapsulation.None,
|
|
709
|
+
preserveWhitespaces: false,
|
|
710
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
711
|
+
inputs: ['color', 'disableRipple'],
|
|
712
|
+
host: {
|
|
713
|
+
'class': 'mat-tab-group',
|
|
714
|
+
'[class.mat-tab-group-dynamic-height]': 'dynamicHeight',
|
|
715
|
+
'[class.mat-tab-group-inverted-header]': 'headerPosition === "below"',
|
|
716
|
+
},
|
|
717
|
+
},] },
|
|
718
|
+
];
|
|
719
|
+
/**
|
|
720
|
+
* @nocollapse
|
|
721
|
+
*/
|
|
722
|
+
MatTabGroup.ctorParameters = function () { return [
|
|
723
|
+
{ type: Renderer2, },
|
|
724
|
+
{ type: ElementRef, },
|
|
725
|
+
{ type: ChangeDetectorRef, },
|
|
726
|
+
]; };
|
|
727
|
+
MatTabGroup.propDecorators = {
|
|
728
|
+
'_tabs': [{ type: ContentChildren, args: [MatTab,] },],
|
|
729
|
+
'_tabBodyWrapper': [{ type: ViewChild, args: ['tabBodyWrapper',] },],
|
|
730
|
+
'dynamicHeight': [{ type: Input },],
|
|
731
|
+
'_dynamicHeightDeprecated': [{ type: Input, args: ['mat-dynamic-height',] },],
|
|
732
|
+
'selectedIndex': [{ type: Input },],
|
|
733
|
+
'headerPosition': [{ type: Input },],
|
|
734
|
+
'backgroundColor': [{ type: Input },],
|
|
735
|
+
'selectedIndexChange': [{ type: Output },],
|
|
736
|
+
'focusChange': [{ type: Output },],
|
|
737
|
+
'selectedTabChange': [{ type: Output },],
|
|
738
|
+
'selectChange': [{ type: Output },],
|
|
739
|
+
};
|
|
740
|
+
return MatTabGroup;
|
|
741
|
+
}(_MatTabGroupMixinBase));
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* \@docs-private
|
|
745
|
+
*/
|
|
746
|
+
var MatTabLabelWrapperBase = (function () {
|
|
747
|
+
function MatTabLabelWrapperBase() {
|
|
748
|
+
}
|
|
749
|
+
return MatTabLabelWrapperBase;
|
|
750
|
+
}());
|
|
751
|
+
var _MatTabLabelWrapperMixinBase = mixinDisabled(MatTabLabelWrapperBase);
|
|
752
|
+
/**
|
|
753
|
+
* Used in the `mat-tab-group` view to display tab labels.
|
|
754
|
+
* \@docs-private
|
|
755
|
+
*/
|
|
756
|
+
var MatTabLabelWrapper = (function (_super) {
|
|
757
|
+
__extends(MatTabLabelWrapper, _super);
|
|
758
|
+
/**
|
|
759
|
+
* @param {?} elementRef
|
|
760
|
+
*/
|
|
761
|
+
function MatTabLabelWrapper(elementRef) {
|
|
762
|
+
var _this = _super.call(this) || this;
|
|
763
|
+
_this.elementRef = elementRef;
|
|
764
|
+
return _this;
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Sets focus on the wrapper element
|
|
768
|
+
* @return {?}
|
|
769
|
+
*/
|
|
770
|
+
MatTabLabelWrapper.prototype.focus = function () {
|
|
771
|
+
this.elementRef.nativeElement.focus();
|
|
772
|
+
};
|
|
773
|
+
/**
|
|
774
|
+
* @return {?}
|
|
775
|
+
*/
|
|
776
|
+
MatTabLabelWrapper.prototype.getOffsetLeft = function () {
|
|
777
|
+
return this.elementRef.nativeElement.offsetLeft;
|
|
778
|
+
};
|
|
779
|
+
/**
|
|
780
|
+
* @return {?}
|
|
781
|
+
*/
|
|
782
|
+
MatTabLabelWrapper.prototype.getOffsetWidth = function () {
|
|
783
|
+
return this.elementRef.nativeElement.offsetWidth;
|
|
784
|
+
};
|
|
785
|
+
MatTabLabelWrapper.decorators = [
|
|
786
|
+
{ type: Directive, args: [{
|
|
787
|
+
selector: '[matTabLabelWrapper]',
|
|
788
|
+
inputs: ['disabled'],
|
|
789
|
+
host: {
|
|
790
|
+
'[class.mat-tab-disabled]': 'disabled'
|
|
791
|
+
}
|
|
792
|
+
},] },
|
|
793
|
+
];
|
|
794
|
+
/**
|
|
795
|
+
* @nocollapse
|
|
796
|
+
*/
|
|
797
|
+
MatTabLabelWrapper.ctorParameters = function () { return [
|
|
798
|
+
{ type: ElementRef, },
|
|
799
|
+
]; };
|
|
800
|
+
return MatTabLabelWrapper;
|
|
801
|
+
}(_MatTabLabelWrapperMixinBase));
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* The distance in pixels that will be overshot when scrolling a tab label into view. This helps
|
|
805
|
+
* provide a small affordance to the label next to it.
|
|
806
|
+
*/
|
|
807
|
+
var EXAGGERATED_OVERSCROLL = 60;
|
|
808
|
+
/**
|
|
809
|
+
* \@docs-private
|
|
810
|
+
*/
|
|
811
|
+
var MatTabHeaderBase = (function () {
|
|
812
|
+
function MatTabHeaderBase() {
|
|
813
|
+
}
|
|
814
|
+
return MatTabHeaderBase;
|
|
815
|
+
}());
|
|
816
|
+
var _MatTabHeaderMixinBase = mixinDisableRipple(MatTabHeaderBase);
|
|
817
|
+
/**
|
|
818
|
+
* The header of the tab group which displays a list of all the tabs in the tab group. Includes
|
|
819
|
+
* an ink bar that follows the currently selected tab. When the tabs list's width exceeds the
|
|
820
|
+
* width of the header container, then arrows will be displayed to allow the user to scroll
|
|
821
|
+
* left and right across the header.
|
|
822
|
+
* \@docs-private
|
|
823
|
+
*/
|
|
824
|
+
var MatTabHeader = (function (_super) {
|
|
825
|
+
__extends(MatTabHeader, _super);
|
|
826
|
+
/**
|
|
827
|
+
* @param {?} _elementRef
|
|
828
|
+
* @param {?} _renderer
|
|
829
|
+
* @param {?} _changeDetectorRef
|
|
830
|
+
* @param {?} _viewportRuler
|
|
831
|
+
* @param {?} _dir
|
|
832
|
+
*/
|
|
833
|
+
function MatTabHeader(_elementRef, _renderer, _changeDetectorRef, _viewportRuler, _dir) {
|
|
834
|
+
var _this = _super.call(this) || this;
|
|
835
|
+
_this._elementRef = _elementRef;
|
|
836
|
+
_this._renderer = _renderer;
|
|
837
|
+
_this._changeDetectorRef = _changeDetectorRef;
|
|
838
|
+
_this._viewportRuler = _viewportRuler;
|
|
839
|
+
_this._dir = _dir;
|
|
840
|
+
/**
|
|
841
|
+
* The tab index that is focused.
|
|
842
|
+
*/
|
|
843
|
+
_this._focusIndex = 0;
|
|
844
|
+
/**
|
|
845
|
+
* The distance in pixels that the tab labels should be translated to the left.
|
|
846
|
+
*/
|
|
847
|
+
_this._scrollDistance = 0;
|
|
848
|
+
/**
|
|
849
|
+
* Whether the header should scroll to the selected index after the view has been checked.
|
|
850
|
+
*/
|
|
851
|
+
_this._selectedIndexChanged = false;
|
|
852
|
+
/**
|
|
853
|
+
* Combines listeners that will re-align the ink bar whenever they're invoked.
|
|
854
|
+
*/
|
|
855
|
+
_this._realignInkBar = Subscription.EMPTY;
|
|
856
|
+
/**
|
|
857
|
+
* Whether the controls for pagination should be displayed
|
|
858
|
+
*/
|
|
859
|
+
_this._showPaginationControls = false;
|
|
860
|
+
/**
|
|
861
|
+
* Whether the tab list can be scrolled more towards the end of the tab label list.
|
|
862
|
+
*/
|
|
863
|
+
_this._disableScrollAfter = true;
|
|
864
|
+
/**
|
|
865
|
+
* Whether the tab list can be scrolled more towards the beginning of the tab label list.
|
|
866
|
+
*/
|
|
867
|
+
_this._disableScrollBefore = true;
|
|
868
|
+
_this._selectedIndex = 0;
|
|
869
|
+
/**
|
|
870
|
+
* Event emitted when the option is selected.
|
|
871
|
+
*/
|
|
872
|
+
_this.selectFocusedIndex = new EventEmitter();
|
|
873
|
+
/**
|
|
874
|
+
* Event emitted when a label is focused.
|
|
875
|
+
*/
|
|
876
|
+
_this.indexFocused = new EventEmitter();
|
|
877
|
+
return _this;
|
|
878
|
+
}
|
|
879
|
+
Object.defineProperty(MatTabHeader.prototype, "selectedIndex", {
|
|
880
|
+
/**
|
|
881
|
+
* The index of the active tab.
|
|
882
|
+
* @return {?}
|
|
883
|
+
*/
|
|
884
|
+
get: function () { return this._selectedIndex; },
|
|
885
|
+
/**
|
|
886
|
+
* @param {?} value
|
|
887
|
+
* @return {?}
|
|
888
|
+
*/
|
|
889
|
+
set: function (value) {
|
|
890
|
+
this._selectedIndexChanged = this._selectedIndex != value;
|
|
891
|
+
this._selectedIndex = value;
|
|
892
|
+
this._focusIndex = value;
|
|
893
|
+
},
|
|
894
|
+
enumerable: true,
|
|
895
|
+
configurable: true
|
|
896
|
+
});
|
|
897
|
+
/**
|
|
898
|
+
* @return {?}
|
|
899
|
+
*/
|
|
900
|
+
MatTabHeader.prototype.ngAfterContentChecked = function () {
|
|
901
|
+
// If the number of tab labels have changed, check if scrolling should be enabled
|
|
902
|
+
if (this._tabLabelCount != this._labelWrappers.length) {
|
|
903
|
+
this._updatePagination();
|
|
904
|
+
this._tabLabelCount = this._labelWrappers.length;
|
|
905
|
+
this._changeDetectorRef.markForCheck();
|
|
906
|
+
}
|
|
907
|
+
// If the selected index has changed, scroll to the label and check if the scrolling controls
|
|
908
|
+
// should be disabled.
|
|
909
|
+
if (this._selectedIndexChanged) {
|
|
910
|
+
this._scrollToLabel(this._selectedIndex);
|
|
911
|
+
this._checkScrollingControls();
|
|
912
|
+
this._alignInkBarToSelectedTab();
|
|
913
|
+
this._selectedIndexChanged = false;
|
|
914
|
+
this._changeDetectorRef.markForCheck();
|
|
915
|
+
}
|
|
916
|
+
// If the scroll distance has been changed (tab selected, focused, scroll controls activated),
|
|
917
|
+
// then translate the header to reflect this.
|
|
918
|
+
if (this._scrollDistanceChanged) {
|
|
919
|
+
this._updateTabScrollPosition();
|
|
920
|
+
this._scrollDistanceChanged = false;
|
|
921
|
+
this._changeDetectorRef.markForCheck();
|
|
922
|
+
}
|
|
923
|
+
};
|
|
924
|
+
/**
|
|
925
|
+
* @param {?} event
|
|
926
|
+
* @return {?}
|
|
927
|
+
*/
|
|
928
|
+
MatTabHeader.prototype._handleKeydown = function (event) {
|
|
929
|
+
switch (event.keyCode) {
|
|
930
|
+
case RIGHT_ARROW:
|
|
931
|
+
this._focusNextTab();
|
|
932
|
+
break;
|
|
933
|
+
case LEFT_ARROW:
|
|
934
|
+
this._focusPreviousTab();
|
|
935
|
+
break;
|
|
936
|
+
case ENTER:
|
|
937
|
+
case SPACE:
|
|
938
|
+
this.selectFocusedIndex.emit(this.focusIndex);
|
|
939
|
+
event.preventDefault();
|
|
940
|
+
break;
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
/**
|
|
944
|
+
* Aligns the ink bar to the selected tab on load.
|
|
945
|
+
* @return {?}
|
|
946
|
+
*/
|
|
947
|
+
MatTabHeader.prototype.ngAfterContentInit = function () {
|
|
948
|
+
var _this = this;
|
|
949
|
+
var /** @type {?} */ dirChange = this._dir ? this._dir.change : of(null);
|
|
950
|
+
var /** @type {?} */ resize = this._viewportRuler.change(150);
|
|
951
|
+
this._realignInkBar = startWith.call(merge(dirChange, resize), null).subscribe(function () {
|
|
952
|
+
_this._updatePagination();
|
|
953
|
+
_this._alignInkBarToSelectedTab();
|
|
954
|
+
});
|
|
955
|
+
};
|
|
956
|
+
/**
|
|
957
|
+
* @return {?}
|
|
958
|
+
*/
|
|
959
|
+
MatTabHeader.prototype.ngOnDestroy = function () {
|
|
960
|
+
this._realignInkBar.unsubscribe();
|
|
961
|
+
};
|
|
962
|
+
/**
|
|
963
|
+
* Callback for when the MutationObserver detects that the content has changed.
|
|
964
|
+
* @return {?}
|
|
965
|
+
*/
|
|
966
|
+
MatTabHeader.prototype._onContentChanges = function () {
|
|
967
|
+
this._updatePagination();
|
|
968
|
+
this._alignInkBarToSelectedTab();
|
|
969
|
+
this._changeDetectorRef.markForCheck();
|
|
970
|
+
};
|
|
971
|
+
/**
|
|
972
|
+
* Updating the view whether pagination should be enabled or not
|
|
973
|
+
* @return {?}
|
|
974
|
+
*/
|
|
975
|
+
MatTabHeader.prototype._updatePagination = function () {
|
|
976
|
+
this._checkPaginationEnabled();
|
|
977
|
+
this._checkScrollingControls();
|
|
978
|
+
this._updateTabScrollPosition();
|
|
979
|
+
};
|
|
980
|
+
Object.defineProperty(MatTabHeader.prototype, "focusIndex", {
|
|
981
|
+
/**
|
|
982
|
+
* Tracks which element has focus; used for keyboard navigation
|
|
983
|
+
* @return {?}
|
|
984
|
+
*/
|
|
985
|
+
get: function () { return this._focusIndex; },
|
|
986
|
+
/**
|
|
987
|
+
* When the focus index is set, we must manually send focus to the correct label
|
|
988
|
+
* @param {?} value
|
|
989
|
+
* @return {?}
|
|
990
|
+
*/
|
|
991
|
+
set: function (value) {
|
|
992
|
+
if (!this._isValidIndex(value) || this._focusIndex == value) {
|
|
993
|
+
return;
|
|
994
|
+
}
|
|
995
|
+
this._focusIndex = value;
|
|
996
|
+
this.indexFocused.emit(value);
|
|
997
|
+
this._setTabFocus(value);
|
|
998
|
+
},
|
|
999
|
+
enumerable: true,
|
|
1000
|
+
configurable: true
|
|
1001
|
+
});
|
|
1002
|
+
/**
|
|
1003
|
+
* Determines if an index is valid. If the tabs are not ready yet, we assume that the user is
|
|
1004
|
+
* providing a valid index and return true.
|
|
1005
|
+
* @param {?} index
|
|
1006
|
+
* @return {?}
|
|
1007
|
+
*/
|
|
1008
|
+
MatTabHeader.prototype._isValidIndex = function (index) {
|
|
1009
|
+
if (!this._labelWrappers) {
|
|
1010
|
+
return true;
|
|
1011
|
+
}
|
|
1012
|
+
var /** @type {?} */ tab = this._labelWrappers ? this._labelWrappers.toArray()[index] : null;
|
|
1013
|
+
return !!tab && !tab.disabled;
|
|
1014
|
+
};
|
|
1015
|
+
/**
|
|
1016
|
+
* Sets focus on the HTML element for the label wrapper and scrolls it into the view if
|
|
1017
|
+
* scrolling is enabled.
|
|
1018
|
+
* @param {?} tabIndex
|
|
1019
|
+
* @return {?}
|
|
1020
|
+
*/
|
|
1021
|
+
MatTabHeader.prototype._setTabFocus = function (tabIndex) {
|
|
1022
|
+
if (this._showPaginationControls) {
|
|
1023
|
+
this._scrollToLabel(tabIndex);
|
|
1024
|
+
}
|
|
1025
|
+
if (this._labelWrappers && this._labelWrappers.length) {
|
|
1026
|
+
this._labelWrappers.toArray()[tabIndex].focus();
|
|
1027
|
+
// Do not let the browser manage scrolling to focus the element, this will be handled
|
|
1028
|
+
// by using translation. In LTR, the scroll left should be 0. In RTL, the scroll width
|
|
1029
|
+
// should be the full width minus the offset width.
|
|
1030
|
+
var /** @type {?} */ containerEl = this._tabListContainer.nativeElement;
|
|
1031
|
+
var /** @type {?} */ dir = this._getLayoutDirection();
|
|
1032
|
+
if (dir == 'ltr') {
|
|
1033
|
+
containerEl.scrollLeft = 0;
|
|
1034
|
+
}
|
|
1035
|
+
else {
|
|
1036
|
+
containerEl.scrollLeft = containerEl.scrollWidth - containerEl.offsetWidth;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
/**
|
|
1041
|
+
* Moves the focus towards the beginning or the end of the list depending on the offset provided.
|
|
1042
|
+
* Valid offsets are 1 and -1.
|
|
1043
|
+
* @param {?} offset
|
|
1044
|
+
* @return {?}
|
|
1045
|
+
*/
|
|
1046
|
+
MatTabHeader.prototype._moveFocus = function (offset) {
|
|
1047
|
+
if (this._labelWrappers) {
|
|
1048
|
+
var /** @type {?} */ tabs = this._labelWrappers.toArray();
|
|
1049
|
+
for (var /** @type {?} */ i = this.focusIndex + offset; i < tabs.length && i >= 0; i += offset) {
|
|
1050
|
+
if (this._isValidIndex(i)) {
|
|
1051
|
+
this.focusIndex = i;
|
|
1052
|
+
return;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
/**
|
|
1058
|
+
* Increment the focus index by 1 until a valid tab is found.
|
|
1059
|
+
* @return {?}
|
|
1060
|
+
*/
|
|
1061
|
+
MatTabHeader.prototype._focusNextTab = function () {
|
|
1062
|
+
this._moveFocus(this._getLayoutDirection() == 'ltr' ? 1 : -1);
|
|
1063
|
+
};
|
|
1064
|
+
/**
|
|
1065
|
+
* Decrement the focus index by 1 until a valid tab is found.
|
|
1066
|
+
* @return {?}
|
|
1067
|
+
*/
|
|
1068
|
+
MatTabHeader.prototype._focusPreviousTab = function () {
|
|
1069
|
+
this._moveFocus(this._getLayoutDirection() == 'ltr' ? -1 : 1);
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* The layout direction of the containing app.
|
|
1073
|
+
* @return {?}
|
|
1074
|
+
*/
|
|
1075
|
+
MatTabHeader.prototype._getLayoutDirection = function () {
|
|
1076
|
+
return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
|
|
1077
|
+
};
|
|
1078
|
+
/**
|
|
1079
|
+
* Performs the CSS transformation on the tab list that will cause the list to scroll.
|
|
1080
|
+
* @return {?}
|
|
1081
|
+
*/
|
|
1082
|
+
MatTabHeader.prototype._updateTabScrollPosition = function () {
|
|
1083
|
+
var /** @type {?} */ scrollDistance = this.scrollDistance;
|
|
1084
|
+
var /** @type {?} */ translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;
|
|
1085
|
+
this._renderer.setStyle(this._tabList.nativeElement, 'transform', "translate3d(" + translateX + "px, 0, 0)");
|
|
1086
|
+
};
|
|
1087
|
+
Object.defineProperty(MatTabHeader.prototype, "scrollDistance", {
|
|
1088
|
+
/**
|
|
1089
|
+
* @return {?}
|
|
1090
|
+
*/
|
|
1091
|
+
get: function () { return this._scrollDistance; },
|
|
1092
|
+
/**
|
|
1093
|
+
* Sets the distance in pixels that the tab header should be transformed in the X-axis.
|
|
1094
|
+
* @param {?} v
|
|
1095
|
+
* @return {?}
|
|
1096
|
+
*/
|
|
1097
|
+
set: function (v) {
|
|
1098
|
+
this._scrollDistance = Math.max(0, Math.min(this._getMaxScrollDistance(), v));
|
|
1099
|
+
// Mark that the scroll distance has changed so that after the view is checked, the CSS
|
|
1100
|
+
// transformation can move the header.
|
|
1101
|
+
this._scrollDistanceChanged = true;
|
|
1102
|
+
this._checkScrollingControls();
|
|
1103
|
+
},
|
|
1104
|
+
enumerable: true,
|
|
1105
|
+
configurable: true
|
|
1106
|
+
});
|
|
1107
|
+
/**
|
|
1108
|
+
* Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or
|
|
1109
|
+
* the end of the list, respectively). The distance to scroll is computed to be a third of the
|
|
1110
|
+
* length of the tab list view window.
|
|
1111
|
+
*
|
|
1112
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
1113
|
+
* should be called sparingly.
|
|
1114
|
+
* @param {?} scrollDir
|
|
1115
|
+
* @return {?}
|
|
1116
|
+
*/
|
|
1117
|
+
MatTabHeader.prototype._scrollHeader = function (scrollDir) {
|
|
1118
|
+
var /** @type {?} */ viewLength = this._tabListContainer.nativeElement.offsetWidth;
|
|
1119
|
+
// Move the scroll distance one-third the length of the tab list's viewport.
|
|
1120
|
+
this.scrollDistance += (scrollDir == 'before' ? -1 : 1) * viewLength / 3;
|
|
1121
|
+
};
|
|
1122
|
+
/**
|
|
1123
|
+
* Moves the tab list such that the desired tab label (marked by index) is moved into view.
|
|
1124
|
+
*
|
|
1125
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
1126
|
+
* should be called sparingly.
|
|
1127
|
+
* @param {?} labelIndex
|
|
1128
|
+
* @return {?}
|
|
1129
|
+
*/
|
|
1130
|
+
MatTabHeader.prototype._scrollToLabel = function (labelIndex) {
|
|
1131
|
+
var /** @type {?} */ selectedLabel = this._labelWrappers ? this._labelWrappers.toArray()[labelIndex] : null;
|
|
1132
|
+
if (!selectedLabel) {
|
|
1133
|
+
return;
|
|
1134
|
+
}
|
|
1135
|
+
// The view length is the visible width of the tab labels.
|
|
1136
|
+
var /** @type {?} */ viewLength = this._tabListContainer.nativeElement.offsetWidth;
|
|
1137
|
+
var /** @type {?} */ labelBeforePos, /** @type {?} */ labelAfterPos;
|
|
1138
|
+
if (this._getLayoutDirection() == 'ltr') {
|
|
1139
|
+
labelBeforePos = selectedLabel.getOffsetLeft();
|
|
1140
|
+
labelAfterPos = labelBeforePos + selectedLabel.getOffsetWidth();
|
|
1141
|
+
}
|
|
1142
|
+
else {
|
|
1143
|
+
labelAfterPos = this._tabList.nativeElement.offsetWidth - selectedLabel.getOffsetLeft();
|
|
1144
|
+
labelBeforePos = labelAfterPos - selectedLabel.getOffsetWidth();
|
|
1145
|
+
}
|
|
1146
|
+
var /** @type {?} */ beforeVisiblePos = this.scrollDistance;
|
|
1147
|
+
var /** @type {?} */ afterVisiblePos = this.scrollDistance + viewLength;
|
|
1148
|
+
if (labelBeforePos < beforeVisiblePos) {
|
|
1149
|
+
// Scroll header to move label to the before direction
|
|
1150
|
+
this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;
|
|
1151
|
+
}
|
|
1152
|
+
else if (labelAfterPos > afterVisiblePos) {
|
|
1153
|
+
// Scroll header to move label to the after direction
|
|
1154
|
+
this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
/**
|
|
1158
|
+
* Evaluate whether the pagination controls should be displayed. If the scroll width of the
|
|
1159
|
+
* tab list is wider than the size of the header container, then the pagination controls should
|
|
1160
|
+
* be shown.
|
|
1161
|
+
*
|
|
1162
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
1163
|
+
* should be called sparingly.
|
|
1164
|
+
* @return {?}
|
|
1165
|
+
*/
|
|
1166
|
+
MatTabHeader.prototype._checkPaginationEnabled = function () {
|
|
1167
|
+
var /** @type {?} */ isEnabled = this._tabList.nativeElement.scrollWidth > this._elementRef.nativeElement.offsetWidth;
|
|
1168
|
+
if (!isEnabled) {
|
|
1169
|
+
this.scrollDistance = 0;
|
|
1170
|
+
}
|
|
1171
|
+
if (isEnabled !== this._showPaginationControls) {
|
|
1172
|
+
this._changeDetectorRef.markForCheck();
|
|
1173
|
+
}
|
|
1174
|
+
this._showPaginationControls = isEnabled;
|
|
1175
|
+
};
|
|
1176
|
+
/**
|
|
1177
|
+
* Evaluate whether the before and after controls should be enabled or disabled.
|
|
1178
|
+
* If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
|
|
1179
|
+
* before button. If the header is at the end of the list (scroll distance is equal to the
|
|
1180
|
+
* maximum distance we can scroll), then disable the after button.
|
|
1181
|
+
*
|
|
1182
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
1183
|
+
* should be called sparingly.
|
|
1184
|
+
* @return {?}
|
|
1185
|
+
*/
|
|
1186
|
+
MatTabHeader.prototype._checkScrollingControls = function () {
|
|
1187
|
+
// Check if the pagination arrows should be activated.
|
|
1188
|
+
this._disableScrollBefore = this.scrollDistance == 0;
|
|
1189
|
+
this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();
|
|
1190
|
+
this._changeDetectorRef.markForCheck();
|
|
1191
|
+
};
|
|
1192
|
+
/**
|
|
1193
|
+
* Determines what is the maximum length in pixels that can be set for the scroll distance. This
|
|
1194
|
+
* is equal to the difference in width between the tab list container and tab header container.
|
|
1195
|
+
*
|
|
1196
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
1197
|
+
* should be called sparingly.
|
|
1198
|
+
* @return {?}
|
|
1199
|
+
*/
|
|
1200
|
+
MatTabHeader.prototype._getMaxScrollDistance = function () {
|
|
1201
|
+
var /** @type {?} */ lengthOfTabList = this._tabList.nativeElement.scrollWidth;
|
|
1202
|
+
var /** @type {?} */ viewLength = this._tabListContainer.nativeElement.offsetWidth;
|
|
1203
|
+
return (lengthOfTabList - viewLength) || 0;
|
|
1204
|
+
};
|
|
1205
|
+
/**
|
|
1206
|
+
* Tells the ink-bar to align itself to the current label wrapper
|
|
1207
|
+
* @return {?}
|
|
1208
|
+
*/
|
|
1209
|
+
MatTabHeader.prototype._alignInkBarToSelectedTab = function () {
|
|
1210
|
+
var /** @type {?} */ selectedLabelWrapper = this._labelWrappers && this._labelWrappers.length ?
|
|
1211
|
+
this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement :
|
|
1212
|
+
null;
|
|
1213
|
+
this._inkBar.alignToElement(selectedLabelWrapper);
|
|
1214
|
+
};
|
|
1215
|
+
MatTabHeader.decorators = [
|
|
1216
|
+
{ type: Component, args: [{selector: 'mat-tab-header',
|
|
1217
|
+
template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\" aria-hidden=\"true\" mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\" [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\" (click)=\"_scrollHeader('before')\"><div class=\"mat-tab-header-pagination-chevron\"></div></div><div class=\"mat-tab-label-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\"><div class=\"mat-tab-list\" #tabList role=\"tablist\" (cdkObserveContent)=\"_onContentChanges()\"><div class=\"mat-tab-labels\"><ng-content></ng-content></div><mat-ink-bar></mat-ink-bar></div></div><div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\" aria-hidden=\"true\" mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\" [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\" (click)=\"_scrollHeader('after')\"><div class=\"mat-tab-header-pagination-chevron\"></div></div>",
|
|
1218
|
+
styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0;opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default;pointer-events:none}@media (max-width:600px){.mat-tab-label{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.mat-tab-header-pagination{position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-pagination-after,.mat-tab-header-rtl .mat-tab-header-pagination-before{padding-right:4px}.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:'';height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list{flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mat-tab-labels{display:flex}"],
|
|
1219
|
+
inputs: ['disableRipple'],
|
|
1220
|
+
encapsulation: ViewEncapsulation.None,
|
|
1221
|
+
preserveWhitespaces: false,
|
|
1222
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1223
|
+
host: {
|
|
1224
|
+
'class': 'mat-tab-header',
|
|
1225
|
+
'[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
|
|
1226
|
+
'[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
|
|
1227
|
+
},
|
|
1228
|
+
},] },
|
|
1229
|
+
];
|
|
1230
|
+
/**
|
|
1231
|
+
* @nocollapse
|
|
1232
|
+
*/
|
|
1233
|
+
MatTabHeader.ctorParameters = function () { return [
|
|
1234
|
+
{ type: ElementRef, },
|
|
1235
|
+
{ type: Renderer2, },
|
|
1236
|
+
{ type: ChangeDetectorRef, },
|
|
1237
|
+
{ type: ViewportRuler, },
|
|
1238
|
+
{ type: Directionality, decorators: [{ type: Optional },] },
|
|
1239
|
+
]; };
|
|
1240
|
+
MatTabHeader.propDecorators = {
|
|
1241
|
+
'_labelWrappers': [{ type: ContentChildren, args: [MatTabLabelWrapper,] },],
|
|
1242
|
+
'_inkBar': [{ type: ViewChild, args: [MatInkBar,] },],
|
|
1243
|
+
'_tabListContainer': [{ type: ViewChild, args: ['tabListContainer',] },],
|
|
1244
|
+
'_tabList': [{ type: ViewChild, args: ['tabList',] },],
|
|
1245
|
+
'selectedIndex': [{ type: Input },],
|
|
1246
|
+
'selectFocusedIndex': [{ type: Output },],
|
|
1247
|
+
'indexFocused': [{ type: Output },],
|
|
1248
|
+
};
|
|
1249
|
+
return MatTabHeader;
|
|
1250
|
+
}(_MatTabHeaderMixinBase));
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* \@docs-private
|
|
1254
|
+
*/
|
|
1255
|
+
var MatTabNavBase = (function () {
|
|
1256
|
+
/**
|
|
1257
|
+
* @param {?} _renderer
|
|
1258
|
+
* @param {?} _elementRef
|
|
1259
|
+
*/
|
|
1260
|
+
function MatTabNavBase(_renderer, _elementRef) {
|
|
1261
|
+
this._renderer = _renderer;
|
|
1262
|
+
this._elementRef = _elementRef;
|
|
1263
|
+
}
|
|
1264
|
+
return MatTabNavBase;
|
|
1265
|
+
}());
|
|
1266
|
+
var _MatTabNavMixinBase = mixinDisableRipple(mixinColor(MatTabNavBase, 'primary'));
|
|
1267
|
+
/**
|
|
1268
|
+
* Navigation component matching the styles of the tab group header.
|
|
1269
|
+
* Provides anchored navigation with animated ink bar.
|
|
1270
|
+
*/
|
|
1271
|
+
var MatTabNav = (function (_super) {
|
|
1272
|
+
__extends(MatTabNav, _super);
|
|
1273
|
+
/**
|
|
1274
|
+
* @param {?} renderer
|
|
1275
|
+
* @param {?} elementRef
|
|
1276
|
+
* @param {?} _dir
|
|
1277
|
+
* @param {?} _ngZone
|
|
1278
|
+
* @param {?} _changeDetectorRef
|
|
1279
|
+
* @param {?} _viewportRuler
|
|
1280
|
+
*/
|
|
1281
|
+
function MatTabNav(renderer, elementRef, _dir, _ngZone, _changeDetectorRef, _viewportRuler) {
|
|
1282
|
+
var _this = _super.call(this, renderer, elementRef) || this;
|
|
1283
|
+
_this._dir = _dir;
|
|
1284
|
+
_this._ngZone = _ngZone;
|
|
1285
|
+
_this._changeDetectorRef = _changeDetectorRef;
|
|
1286
|
+
_this._viewportRuler = _viewportRuler;
|
|
1287
|
+
/**
|
|
1288
|
+
* Subject that emits when the component has been destroyed.
|
|
1289
|
+
*/
|
|
1290
|
+
_this._onDestroy = new Subject();
|
|
1291
|
+
_this._disableRipple = false;
|
|
1292
|
+
return _this;
|
|
1293
|
+
}
|
|
1294
|
+
Object.defineProperty(MatTabNav.prototype, "backgroundColor", {
|
|
1295
|
+
/**
|
|
1296
|
+
* Background color of the tab nav.
|
|
1297
|
+
* @return {?}
|
|
1298
|
+
*/
|
|
1299
|
+
get: function () { return this._backgroundColor; },
|
|
1300
|
+
/**
|
|
1301
|
+
* @param {?} value
|
|
1302
|
+
* @return {?}
|
|
1303
|
+
*/
|
|
1304
|
+
set: function (value) {
|
|
1305
|
+
var /** @type {?} */ nativeElement = this._elementRef.nativeElement;
|
|
1306
|
+
this._renderer.removeClass(nativeElement, "mat-background-" + this.backgroundColor);
|
|
1307
|
+
if (value) {
|
|
1308
|
+
this._renderer.addClass(nativeElement, "mat-background-" + value);
|
|
1309
|
+
}
|
|
1310
|
+
this._backgroundColor = value;
|
|
1311
|
+
},
|
|
1312
|
+
enumerable: true,
|
|
1313
|
+
configurable: true
|
|
1314
|
+
});
|
|
1315
|
+
Object.defineProperty(MatTabNav.prototype, "disableRipple", {
|
|
1316
|
+
/**
|
|
1317
|
+
* Whether ripples should be disabled for all links or not.
|
|
1318
|
+
* @return {?}
|
|
1319
|
+
*/
|
|
1320
|
+
get: function () { return this._disableRipple; },
|
|
1321
|
+
/**
|
|
1322
|
+
* @param {?} value
|
|
1323
|
+
* @return {?}
|
|
1324
|
+
*/
|
|
1325
|
+
set: function (value) {
|
|
1326
|
+
this._disableRipple = coerceBooleanProperty(value);
|
|
1327
|
+
this._setLinkDisableRipple();
|
|
1328
|
+
},
|
|
1329
|
+
enumerable: true,
|
|
1330
|
+
configurable: true
|
|
1331
|
+
});
|
|
1332
|
+
/**
|
|
1333
|
+
* Notifies the component that the active link has been changed.
|
|
1334
|
+
* @param {?} element
|
|
1335
|
+
* @return {?}
|
|
1336
|
+
*/
|
|
1337
|
+
MatTabNav.prototype.updateActiveLink = function (element) {
|
|
1338
|
+
this._activeLinkChanged = this._activeLinkElement != element;
|
|
1339
|
+
this._activeLinkElement = element;
|
|
1340
|
+
if (this._activeLinkChanged) {
|
|
1341
|
+
this._changeDetectorRef.markForCheck();
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
/**
|
|
1345
|
+
* @return {?}
|
|
1346
|
+
*/
|
|
1347
|
+
MatTabNav.prototype.ngAfterContentInit = function () {
|
|
1348
|
+
var _this = this;
|
|
1349
|
+
this._ngZone.runOutsideAngular(function () {
|
|
1350
|
+
var /** @type {?} */ dirChange = _this._dir ? _this._dir.change : of(null);
|
|
1351
|
+
return takeUntil.call(merge(dirChange, _this._viewportRuler.change(10)), _this._onDestroy)
|
|
1352
|
+
.subscribe(function () { return _this._alignInkBar(); });
|
|
1353
|
+
});
|
|
1354
|
+
this._setLinkDisableRipple();
|
|
1355
|
+
};
|
|
1356
|
+
/**
|
|
1357
|
+
* Checks if the active link has been changed and, if so, will update the ink bar.
|
|
1358
|
+
* @return {?}
|
|
1359
|
+
*/
|
|
1360
|
+
MatTabNav.prototype.ngAfterContentChecked = function () {
|
|
1361
|
+
if (this._activeLinkChanged) {
|
|
1362
|
+
this._alignInkBar();
|
|
1363
|
+
this._activeLinkChanged = false;
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
/**
|
|
1367
|
+
* @return {?}
|
|
1368
|
+
*/
|
|
1369
|
+
MatTabNav.prototype.ngOnDestroy = function () {
|
|
1370
|
+
this._onDestroy.next();
|
|
1371
|
+
this._onDestroy.complete();
|
|
1372
|
+
};
|
|
1373
|
+
/**
|
|
1374
|
+
* Aligns the ink bar to the active link.
|
|
1375
|
+
* @return {?}
|
|
1376
|
+
*/
|
|
1377
|
+
MatTabNav.prototype._alignInkBar = function () {
|
|
1378
|
+
if (this._activeLinkElement) {
|
|
1379
|
+
this._inkBar.alignToElement(this._activeLinkElement.nativeElement);
|
|
1380
|
+
}
|
|
1381
|
+
};
|
|
1382
|
+
/**
|
|
1383
|
+
* Sets the `disableRipple` property on each link of the navigation bar.
|
|
1384
|
+
* @return {?}
|
|
1385
|
+
*/
|
|
1386
|
+
MatTabNav.prototype._setLinkDisableRipple = function () {
|
|
1387
|
+
var _this = this;
|
|
1388
|
+
if (this._tabLinks) {
|
|
1389
|
+
this._tabLinks.forEach(function (link) { return link.disableRipple = _this.disableRipple; });
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
MatTabNav.decorators = [
|
|
1393
|
+
{ type: Component, args: [{selector: '[mat-tab-nav-bar]',
|
|
1394
|
+
exportAs: 'matTabNavBar, matTabNav',
|
|
1395
|
+
inputs: ['color', 'disableRipple'],
|
|
1396
|
+
template: "<div class=\"mat-tab-links\" (cdkObserveContent)=\"_alignInkBar()\"><ng-content></ng-content><mat-ink-bar></mat-ink-bar></div>",
|
|
1397
|
+
styles: [".mat-tab-nav-bar{overflow:hidden;position:relative;flex-shrink:0}.mat-tab-links{position:relative}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden}.mat-tab-link:focus{outline:0;opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default;pointer-events:none}@media (max-width:600px){.mat-tab-link{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}"],
|
|
1398
|
+
host: { 'class': 'mat-tab-nav-bar' },
|
|
1399
|
+
encapsulation: ViewEncapsulation.None,
|
|
1400
|
+
preserveWhitespaces: false,
|
|
1401
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1402
|
+
},] },
|
|
1403
|
+
];
|
|
1404
|
+
/**
|
|
1405
|
+
* @nocollapse
|
|
1406
|
+
*/
|
|
1407
|
+
MatTabNav.ctorParameters = function () { return [
|
|
1408
|
+
{ type: Renderer2, },
|
|
1409
|
+
{ type: ElementRef, },
|
|
1410
|
+
{ type: Directionality, decorators: [{ type: Optional },] },
|
|
1411
|
+
{ type: NgZone, },
|
|
1412
|
+
{ type: ChangeDetectorRef, },
|
|
1413
|
+
{ type: ViewportRuler, },
|
|
1414
|
+
]; };
|
|
1415
|
+
MatTabNav.propDecorators = {
|
|
1416
|
+
'_inkBar': [{ type: ViewChild, args: [MatInkBar,] },],
|
|
1417
|
+
'_tabLinks': [{ type: ContentChildren, args: [forwardRef(function () { return MatTabLink; }), { descendants: true },] },],
|
|
1418
|
+
'backgroundColor': [{ type: Input },],
|
|
1419
|
+
};
|
|
1420
|
+
return MatTabNav;
|
|
1421
|
+
}(_MatTabNavMixinBase));
|
|
1422
|
+
var MatTabLinkBase = (function () {
|
|
1423
|
+
function MatTabLinkBase() {
|
|
1424
|
+
}
|
|
1425
|
+
return MatTabLinkBase;
|
|
1426
|
+
}());
|
|
1427
|
+
var _MatTabLinkMixinBase = mixinDisabled(MatTabLinkBase);
|
|
1428
|
+
/**
|
|
1429
|
+
* Link inside of a `mat-tab-nav-bar`.
|
|
1430
|
+
*/
|
|
1431
|
+
var MatTabLink = (function (_super) {
|
|
1432
|
+
__extends(MatTabLink, _super);
|
|
1433
|
+
/**
|
|
1434
|
+
* @param {?} _tabNavBar
|
|
1435
|
+
* @param {?} _elementRef
|
|
1436
|
+
* @param {?} ngZone
|
|
1437
|
+
* @param {?} platform
|
|
1438
|
+
* @param {?} globalOptions
|
|
1439
|
+
*/
|
|
1440
|
+
function MatTabLink(_tabNavBar, _elementRef, ngZone, platform, globalOptions) {
|
|
1441
|
+
var _this = _super.call(this) || this;
|
|
1442
|
+
_this._tabNavBar = _tabNavBar;
|
|
1443
|
+
_this._elementRef = _elementRef;
|
|
1444
|
+
/**
|
|
1445
|
+
* Whether the tab link is active or not.
|
|
1446
|
+
*/
|
|
1447
|
+
_this._isActive = false;
|
|
1448
|
+
/**
|
|
1449
|
+
* Whether the ripples for this tab should be disabled or not.
|
|
1450
|
+
*/
|
|
1451
|
+
_this._disableRipple = false;
|
|
1452
|
+
// Manually create a ripple instance that uses the tab link element as trigger element.
|
|
1453
|
+
// Notice that the lifecycle hooks for the ripple config won't be called anymore.
|
|
1454
|
+
_this._tabLinkRipple = new MatRipple(_elementRef, ngZone, platform, globalOptions);
|
|
1455
|
+
return _this;
|
|
1456
|
+
}
|
|
1457
|
+
Object.defineProperty(MatTabLink.prototype, "active", {
|
|
1458
|
+
/**
|
|
1459
|
+
* Whether the link is active.
|
|
1460
|
+
* @return {?}
|
|
1461
|
+
*/
|
|
1462
|
+
get: function () { return this._isActive; },
|
|
1463
|
+
/**
|
|
1464
|
+
* @param {?} value
|
|
1465
|
+
* @return {?}
|
|
1466
|
+
*/
|
|
1467
|
+
set: function (value) {
|
|
1468
|
+
this._isActive = value;
|
|
1469
|
+
if (value) {
|
|
1470
|
+
this._tabNavBar.updateActiveLink(this._elementRef);
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
enumerable: true,
|
|
1474
|
+
configurable: true
|
|
1475
|
+
});
|
|
1476
|
+
Object.defineProperty(MatTabLink.prototype, "disableRipple", {
|
|
1477
|
+
/**
|
|
1478
|
+
* Whether ripples should be disabled or not.
|
|
1479
|
+
* @return {?}
|
|
1480
|
+
*/
|
|
1481
|
+
get: function () { return this._disableRipple; },
|
|
1482
|
+
/**
|
|
1483
|
+
* @param {?} value
|
|
1484
|
+
* @return {?}
|
|
1485
|
+
*/
|
|
1486
|
+
set: function (value) {
|
|
1487
|
+
this._disableRipple = value;
|
|
1488
|
+
this._tabLinkRipple.disabled = this.disableRipple;
|
|
1489
|
+
this._tabLinkRipple._updateRippleRenderer();
|
|
1490
|
+
},
|
|
1491
|
+
enumerable: true,
|
|
1492
|
+
configurable: true
|
|
1493
|
+
});
|
|
1494
|
+
Object.defineProperty(MatTabLink.prototype, "tabIndex", {
|
|
1495
|
+
/**
|
|
1496
|
+
* \@docs-private
|
|
1497
|
+
* @return {?}
|
|
1498
|
+
*/
|
|
1499
|
+
get: function () {
|
|
1500
|
+
return this.disabled ? -1 : 0;
|
|
1501
|
+
},
|
|
1502
|
+
enumerable: true,
|
|
1503
|
+
configurable: true
|
|
1504
|
+
});
|
|
1505
|
+
/**
|
|
1506
|
+
* @return {?}
|
|
1507
|
+
*/
|
|
1508
|
+
MatTabLink.prototype.ngOnDestroy = function () {
|
|
1509
|
+
// Manually call the ngOnDestroy lifecycle hook of the ripple instance because it won't be
|
|
1510
|
+
// called automatically since its instance is not created by Angular.
|
|
1511
|
+
this._tabLinkRipple.ngOnDestroy();
|
|
1512
|
+
};
|
|
1513
|
+
MatTabLink.decorators = [
|
|
1514
|
+
{ type: Directive, args: [{
|
|
1515
|
+
selector: '[mat-tab-link], [matTabLink]',
|
|
1516
|
+
exportAs: 'matTabLink',
|
|
1517
|
+
inputs: ['disabled'],
|
|
1518
|
+
host: {
|
|
1519
|
+
'class': 'mat-tab-link',
|
|
1520
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
1521
|
+
'[attr.tabindex]': 'tabIndex',
|
|
1522
|
+
'[class.mat-tab-disabled]': 'disabled',
|
|
1523
|
+
'[class.mat-tab-label-active]': 'active',
|
|
1524
|
+
}
|
|
1525
|
+
},] },
|
|
1526
|
+
];
|
|
1527
|
+
/**
|
|
1528
|
+
* @nocollapse
|
|
1529
|
+
*/
|
|
1530
|
+
MatTabLink.ctorParameters = function () { return [
|
|
1531
|
+
{ type: MatTabNav, },
|
|
1532
|
+
{ type: ElementRef, },
|
|
1533
|
+
{ type: NgZone, },
|
|
1534
|
+
{ type: Platform, },
|
|
1535
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] },] },
|
|
1536
|
+
]; };
|
|
1537
|
+
MatTabLink.propDecorators = {
|
|
1538
|
+
'active': [{ type: Input },],
|
|
1539
|
+
};
|
|
1540
|
+
return MatTabLink;
|
|
1541
|
+
}(_MatTabLinkMixinBase));
|
|
1542
|
+
|
|
1543
|
+
var MatTabsModule = (function () {
|
|
1544
|
+
function MatTabsModule() {
|
|
1545
|
+
}
|
|
1546
|
+
MatTabsModule.decorators = [
|
|
1547
|
+
{ type: NgModule, args: [{
|
|
1548
|
+
imports: [
|
|
1549
|
+
CommonModule,
|
|
1550
|
+
MatCommonModule,
|
|
1551
|
+
PortalModule,
|
|
1552
|
+
MatRippleModule,
|
|
1553
|
+
ObserversModule,
|
|
1554
|
+
ScrollDispatchModule,
|
|
1555
|
+
],
|
|
1556
|
+
// Don't export all components because some are only to be used internally.
|
|
1557
|
+
exports: [
|
|
1558
|
+
MatCommonModule,
|
|
1559
|
+
MatTabGroup,
|
|
1560
|
+
MatTabLabel,
|
|
1561
|
+
MatTab,
|
|
1562
|
+
MatTabNav,
|
|
1563
|
+
MatTabLink,
|
|
1564
|
+
],
|
|
1565
|
+
declarations: [
|
|
1566
|
+
MatTabGroup,
|
|
1567
|
+
MatTabLabel,
|
|
1568
|
+
MatTab,
|
|
1569
|
+
MatInkBar,
|
|
1570
|
+
MatTabLabelWrapper,
|
|
1571
|
+
MatTabNav,
|
|
1572
|
+
MatTabLink,
|
|
1573
|
+
MatTabBody,
|
|
1574
|
+
MatTabHeader
|
|
1575
|
+
],
|
|
1576
|
+
providers: [VIEWPORT_RULER_PROVIDER],
|
|
1577
|
+
},] },
|
|
1578
|
+
];
|
|
1579
|
+
/**
|
|
1580
|
+
* @nocollapse
|
|
1581
|
+
*/
|
|
1582
|
+
MatTabsModule.ctorParameters = function () { return []; };
|
|
1583
|
+
return MatTabsModule;
|
|
1584
|
+
}());
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Generated bundle index. Do not edit.
|
|
1588
|
+
*/
|
|
1589
|
+
|
|
1590
|
+
export { MatInkBar, MatTabBody, MatTabHeader, MatTabLabelWrapper, MatTab, MatTabLabel, MatTabNav, MatTabLink, MatTabsModule, MatTabChangeEvent, MatTabGroupBase, _MatTabGroupMixinBase, MatTabGroup, MatTabBase as ɵe23, _MatTabMixinBase as ɵf23, MatTabHeaderBase as ɵa23, _MatTabHeaderMixinBase as ɵb23, MatTabLabelWrapperBase as ɵc23, _MatTabLabelWrapperMixinBase as ɵd23, MatTabLinkBase as ɵi23, MatTabNavBase as ɵg23, _MatTabLinkMixinBase as ɵj23, _MatTabNavMixinBase as ɵh23 };
|
|
1591
|
+
//# sourceMappingURL=tabs.es5.js.map
|