@angular/material 2.0.0-alpha.9-3 → 2.0.0-beta.11
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 +21 -0
- package/README.md +4 -145
- package/_theming.scss +3872 -0
- package/autocomplete/index.d.ts +8 -0
- package/autocomplete/index.metadata.json +11 -0
- 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 +55 -0
- package/autocomplete/typings/index.d.ts +4 -0
- package/autocomplete/typings/index.metadata.json +1 -0
- package/autocomplete/typings/mat-exports.d.ts +17 -0
- package/autocomplete/typings/public_api.d.ts +11 -0
- package/autocomplete.d.ts +8 -0
- package/autocomplete.metadata.json +11 -0
- package/bundles/material-autocomplete.umd.js +3293 -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 +2689 -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 +2503 -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 +2438 -0
- package/bundles/material-card.umd.js.map +1 -0
- package/bundles/material-card.umd.min.js +10 -0
- package/bundles/material-card.umd.min.js.map +1 -0
- package/bundles/material-checkbox.umd.js +2692 -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 +4121 -0
- package/bundles/material-chips.umd.js.map +1 -0
- package/bundles/material-chips.umd.min.js +11 -0
- package/bundles/material-chips.umd.min.js.map +1 -0
- package/bundles/material-core.umd.js +2505 -0
- package/bundles/material-core.umd.js.map +1 -0
- package/bundles/material-core.umd.min.js +10 -0
- package/bundles/material-core.umd.min.js.map +1 -0
- package/bundles/material-datepicker.umd.js +6568 -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 +2980 -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-examples.umd.js +3627 -0
- package/bundles/material-examples.umd.js.map +1 -0
- package/bundles/material-examples.umd.min.js +12 -0
- package/bundles/material-examples.umd.min.js.map +1 -0
- package/bundles/material-expansion.umd.js +2678 -0
- package/bundles/material-expansion.umd.js.map +1 -0
- package/bundles/material-expansion.umd.min.js +10 -0
- package/bundles/material-expansion.umd.min.js.map +1 -0
- package/bundles/material-form-field.umd.js +2629 -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 +3000 -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 +2862 -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 +3214 -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 +2908 -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 +3016 -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 +4990 -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 +2204 -0
- package/bundles/material-progress-bar.umd.js.map +1 -0
- package/bundles/material-progress-bar.umd.min.js +10 -0
- package/bundles/material-progress-bar.umd.min.js.map +1 -0
- package/bundles/material-progress-spinner.umd.js +2594 -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 +2936 -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 +3611 -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 +2781 -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 +2657 -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 +3043 -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 +2717 -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 +2479 -0
- package/bundles/material-sort.umd.js.map +1 -0
- package/bundles/material-sort.umd.min.js +10 -0
- package/bundles/material-sort.umd.min.js.map +1 -0
- package/bundles/material-stepper.umd.js +3598 -0
- package/bundles/material-stepper.umd.js.map +1 -0
- package/bundles/material-stepper.umd.min.js +11 -0
- package/bundles/material-stepper.umd.min.js.map +1 -0
- package/bundles/material-table.umd.js +2458 -0
- package/bundles/material-table.umd.js.map +1 -0
- package/bundles/material-table.umd.min.js +10 -0
- package/bundles/material-table.umd.min.js.map +1 -0
- package/bundles/material-tabs.umd.js +3742 -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 +2211 -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 +2821 -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 +23785 -0
- package/bundles/material.umd.js.map +1 -0
- package/bundles/material.umd.min.js +23 -0
- package/bundles/material.umd.min.js.map +1 -0
- package/button/index.d.ts +8 -1
- package/button/index.metadata.json +11 -1
- package/button/package.json +7 -0
- package/button/typings/button-module.d.ts +2 -0
- package/button/typings/button.d.ts +80 -0
- package/button/typings/index.d.ts +4 -0
- package/button/typings/index.metadata.json +1 -0
- package/button/typings/mat-exports.d.ts +18 -0
- package/button/typings/public_api.d.ts +10 -0
- package/button-toggle/index.d.ts +8 -1
- package/button-toggle/index.metadata.json +11 -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 +156 -0
- package/button-toggle/typings/index.d.ts +4 -0
- package/button-toggle/typings/index.metadata.json +1 -0
- package/button-toggle/typings/mat-exports.d.ts +16 -0
- package/button-toggle/typings/public_api.d.ts +10 -0
- package/button-toggle.d.ts +8 -0
- package/button-toggle.metadata.json +11 -0
- package/button.d.ts +8 -0
- package/button.metadata.json +11 -0
- package/card/index.d.ts +8 -1
- package/card/index.metadata.json +11 -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/mat-exports.d.ts +24 -0
- package/card/typings/public_api.d.ts +10 -0
- package/card.d.ts +8 -0
- package/card.metadata.json +11 -0
- package/checkbox/index.d.ts +8 -1
- package/checkbox/index.metadata.json +11 -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 +159 -0
- package/checkbox/typings/index.d.ts +4 -0
- package/checkbox/typings/index.metadata.json +1 -0
- package/checkbox/typings/mat-exports.d.ts +17 -0
- package/checkbox/typings/public_api.d.ts +11 -0
- package/checkbox.d.ts +8 -0
- package/checkbox.metadata.json +11 -0
- package/chips/index.d.ts +8 -0
- package/chips/index.metadata.json +11 -0
- package/chips/package.json +7 -0
- package/chips/typings/chip-input.d.ts +54 -0
- package/chips/typings/chip-list.d.ts +219 -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/mat-exports.d.ts +21 -0
- package/chips/typings/public_api.d.ts +12 -0
- package/chips.d.ts +8 -0
- package/chips.metadata.json +11 -0
- package/core/index.d.ts +8 -1
- package/core/index.metadata.json +11 -1
- package/core/package.json +7 -0
- package/core/typings/a11y/index.d.ts +8 -0
- package/core/typings/animation/animation.d.ts +20 -0
- package/core/typings/bidi/index.d.ts +8 -0
- package/core/typings/common-behaviors/color.d.ts +22 -0
- package/core/typings/common-behaviors/common-module.d.ts +24 -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 +40 -0
- package/core/typings/coordination/unique-selection-dispatcher.d.ts +40 -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 +19 -0
- package/core/typings/gestures/gesture-annotations.d.ts +51 -0
- package/core/typings/gestures/gesture-config.d.ts +23 -0
- package/core/typings/index.d.ts +5 -0
- package/core/typings/index.metadata.json +1 -0
- package/core/typings/keyboard/keycodes.d.ts +8 -0
- package/core/typings/line/line.d.ts +30 -0
- package/core/typings/mat-exports.d.ts +36 -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 +97 -0
- package/core/typings/overlay/index.d.ts +8 -0
- package/core/typings/placeholder/placeholder-options.d.ts +15 -0
- package/core/typings/platform/features.d.ts +8 -0
- package/core/typings/platform/index.d.ts +10 -0
- package/core/typings/platform/platform.d.ts +8 -0
- package/core/typings/portal/dom-portal-host.d.ts +8 -0
- package/core/typings/portal/portal-directives.d.ts +8 -0
- package/core/typings/portal/portal-injector.d.ts +19 -0
- package/core/typings/portal/portal.d.ts +8 -0
- package/core/typings/public_api.d.ts +34 -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 +64 -0
- package/core/typings/ripple/ripple.d.ts +73 -0
- package/core/typings/rxjs/index.d.ts +9 -0
- package/core/typings/rxjs/rx-chain.d.ts +8 -0
- package/core/typings/rxjs/rx-operators.d.ts +8 -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 +5 -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 +11 -1
- package/datepicker/index.d.ts +8 -0
- package/datepicker/index.metadata.json +11 -0
- package/datepicker/package.json +7 -0
- package/datepicker/typings/calendar-body.d.ts +52 -0
- package/datepicker/typings/calendar.d.ts +90 -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 +94 -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/mat-exports.d.ts +33 -0
- package/datepicker/typings/month-view.d.ts +65 -0
- package/datepicker/typings/public_api.d.ts +18 -0
- package/datepicker/typings/year-view.d.ts +54 -0
- package/datepicker.d.ts +8 -0
- package/datepicker.metadata.json +11 -0
- package/dialog/index.d.ts +8 -4
- package/dialog/index.metadata.json +11 -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 +45 -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/mat-exports.d.ts +26 -0
- package/dialog/typings/public_api.d.ts +14 -0
- package/dialog.d.ts +8 -0
- package/dialog.metadata.json +11 -0
- package/esm2015/autocomplete.js +661 -0
- package/esm2015/autocomplete.js.map +1 -0
- package/esm2015/button-toggle.js +567 -0
- package/esm2015/button-toggle.js.map +1 -0
- package/esm2015/button.js +323 -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 +504 -0
- package/esm2015/checkbox.js.map +1 -0
- package/esm2015/chips.js +1332 -0
- package/esm2015/chips.js.map +1 -0
- package/esm2015/core.js +2316 -0
- package/esm2015/core.js.map +1 -0
- package/esm2015/datepicker.js +1808 -0
- package/esm2015/datepicker.js.map +1 -0
- package/esm2015/dialog.js +849 -0
- package/esm2015/dialog.js.map +1 -0
- package/esm2015/expansion.js +581 -0
- package/esm2015/expansion.js.map +1 -0
- package/esm2015/form-field.js +522 -0
- package/esm2015/form-field.js.map +1 -0
- package/esm2015/grid-list.js +825 -0
- package/esm2015/grid-list.js.map +1 -0
- package/esm2015/icon.js +733 -0
- package/esm2015/icon.js.map +1 -0
- package/esm2015/input.js +568 -0
- package/esm2015/input.js.map +1 -0
- package/esm2015/list.js +666 -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 +917 -0
- package/esm2015/menu.js.map +1 -0
- package/esm2015/paginator.js +304 -0
- package/esm2015/paginator.js.map +1 -0
- package/esm2015/progress-bar.js +132 -0
- package/esm2015/progress-bar.js.map +1 -0
- package/esm2015/progress-spinner.js +438 -0
- package/esm2015/progress-spinner.js.map +1 -0
- package/esm2015/radio.js +707 -0
- package/esm2015/radio.js.map +1 -0
- package/esm2015/select.js +1378 -0
- package/esm2015/select.js.map +1 -0
- package/esm2015/sidenav.js +666 -0
- package/esm2015/sidenav.js.map +1 -0
- package/esm2015/slide-toggle.js +429 -0
- package/esm2015/slide-toggle.js.map +1 -0
- package/esm2015/slider.js +833 -0
- package/esm2015/slider.js.map +1 -0
- package/esm2015/snack-bar.js +606 -0
- package/esm2015/snack-bar.js.map +1 -0
- package/esm2015/sort.js +387 -0
- package/esm2015/sort.js.map +1 -0
- package/esm2015/stepper.js +330 -0
- package/esm2015/stepper.js.map +1 -0
- package/esm2015/table.js +312 -0
- package/esm2015/table.js.map +1 -0
- package/esm2015/tabs.js +1477 -0
- package/esm2015/tabs.js.map +1 -0
- package/esm2015/toolbar.js +88 -0
- package/esm2015/toolbar.js.map +1 -0
- package/esm2015/tooltip.js +701 -0
- package/esm2015/tooltip.js.map +1 -0
- package/esm5/autocomplete.es5.js +691 -0
- package/esm5/autocomplete.es5.js.map +1 -0
- package/esm5/button-toggle.es5.js +619 -0
- package/esm5/button-toggle.es5.js.map +1 -0
- package/esm5/button.es5.js +341 -0
- package/esm5/button.es5.js.map +1 -0
- package/esm5/card.es5.js +349 -0
- package/esm5/card.es5.js.map +1 -0
- package/esm5/checkbox.es5.js +534 -0
- package/esm5/checkbox.es5.js.map +1 -0
- package/esm5/chips.es5.js +1466 -0
- package/esm5/chips.es5.js.map +1 -0
- package/esm5/core.es5.js +2316 -0
- package/esm5/core.es5.js.map +1 -0
- package/esm5/datepicker.es5.js +1936 -0
- package/esm5/datepicker.es5.js.map +1 -0
- package/esm5/dialog.es5.js +877 -0
- package/esm5/dialog.es5.js.map +1 -0
- package/esm5/expansion.es5.js +608 -0
- package/esm5/expansion.es5.js.map +1 -0
- package/esm5/form-field.es5.js +556 -0
- package/esm5/form-field.es5.js.map +1 -0
- package/esm5/grid-list.es5.js +877 -0
- package/esm5/grid-list.es5.js.map +1 -0
- package/esm5/icon.es5.js +746 -0
- package/esm5/icon.es5.js.map +1 -0
- package/esm5/input.es5.js +606 -0
- package/esm5/input.es5.js.map +1 -0
- package/esm5/list.es5.js +726 -0
- package/esm5/list.es5.js.map +1 -0
- package/esm5/material.es5.js +48 -0
- package/esm5/material.es5.js.map +1 -0
- package/esm5/menu.es5.js +953 -0
- package/esm5/menu.es5.js.map +1 -0
- package/esm5/paginator.es5.js +324 -0
- package/esm5/paginator.es5.js.map +1 -0
- package/esm5/progress-bar.es5.js +142 -0
- package/esm5/progress-bar.es5.js.map +1 -0
- package/esm5/progress-spinner.es5.js +474 -0
- package/esm5/progress-spinner.es5.js.map +1 -0
- package/esm5/radio.es5.js +779 -0
- package/esm5/radio.es5.js.map +1 -0
- package/esm5/select.es5.js +1444 -0
- package/esm5/select.es5.js.map +1 -0
- package/esm5/sidenav.es5.js +719 -0
- package/esm5/sidenav.es5.js.map +1 -0
- package/esm5/slide-toggle.es5.js +451 -0
- package/esm5/slide-toggle.es5.js.map +1 -0
- package/esm5/slider.es5.js +932 -0
- package/esm5/slider.es5.js.map +1 -0
- package/esm5/snack-bar.es5.js +623 -0
- package/esm5/snack-bar.es5.js.map +1 -0
- package/esm5/sort.es5.js +418 -0
- package/esm5/sort.es5.js.map +1 -0
- package/esm5/stepper.es5.js +376 -0
- package/esm5/stepper.es5.js.map +1 -0
- package/esm5/table.es5.js +370 -0
- package/esm5/table.es5.js.map +1 -0
- package/esm5/tabs.es5.js +1576 -0
- package/esm5/tabs.es5.js.map +1 -0
- package/esm5/toolbar.es5.js +94 -0
- package/esm5/toolbar.es5.js.map +1 -0
- package/esm5/tooltip.es5.js +759 -0
- package/esm5/tooltip.es5.js.map +1 -0
- package/expansion/index.d.ts +8 -0
- package/expansion/index.metadata.json +11 -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 +56 -0
- package/expansion/typings/expansion-panel.d.ts +39 -0
- package/expansion/typings/index.d.ts +5 -0
- package/expansion/typings/index.metadata.json +1 -0
- package/expansion/typings/mat-exports.d.ts +20 -0
- package/expansion/typings/public_api.d.ts +13 -0
- package/expansion.d.ts +8 -0
- package/expansion.metadata.json +11 -0
- package/form-field/index.d.ts +8 -0
- package/form-field/index.metadata.json +11 -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 +39 -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 +77 -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/mat-exports.d.ts +23 -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 +17 -0
- package/form-field/typings/suffix.d.ts +3 -0
- package/form-field.d.ts +8 -0
- package/form-field.metadata.json +11 -0
- package/grid-list/index.d.ts +8 -1
- package/grid-list/index.metadata.json +11 -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/mat-exports.d.ts +13 -0
- package/grid-list/typings/public_api.d.ts +11 -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 +11 -0
- package/icon/index.d.ts +8 -1
- package/icon/index.metadata.json +11 -1
- package/icon/package.json +7 -0
- package/icon/typings/icon-module.d.ts +2 -0
- package/icon/typings/icon-registry.d.ts +194 -0
- package/icon/typings/icon.d.ts +76 -0
- package/icon/typings/index.d.ts +4 -0
- package/icon/typings/index.metadata.json +1 -0
- package/icon/typings/mat-exports.d.ts +14 -0
- package/icon/typings/public_api.d.ts +11 -0
- package/icon.d.ts +8 -0
- package/icon.metadata.json +11 -0
- package/input/index.d.ts +8 -1
- package/input/index.metadata.json +11 -1
- package/input/package.json +7 -0
- package/input/typings/autosize.d.ts +45 -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 +78 -0
- package/input/typings/mat-exports.d.ts +13 -0
- package/input/typings/public_api.d.ts +12 -0
- package/input.d.ts +8 -0
- package/input.metadata.json +11 -0
- package/list/index.d.ts +8 -1
- package/list/index.metadata.json +11 -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 +78 -0
- package/list/typings/mat-exports.d.ts +27 -0
- package/list/typings/public_api.d.ts +11 -0
- package/list/typings/selection-list.d.ts +112 -0
- package/list.d.ts +8 -0
- package/list.metadata.json +11 -0
- package/material.d.ts +39 -0
- package/material.metadata.json +102 -0
- package/menu/index.d.ts +8 -1
- package/menu/index.metadata.json +11 -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/mat-exports.d.ts +16 -0
- package/menu/typings/menu-animations.d.ts +27 -0
- package/menu/typings/menu-directive.d.ts +86 -0
- package/menu/typings/menu-errors.d.ts +24 -0
- package/menu/typings/menu-item.d.ts +40 -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 +116 -0
- package/menu/typings/menu.d.ts +12 -0
- package/menu/typings/public_api.d.ts +12 -0
- package/menu.d.ts +8 -0
- package/menu.metadata.json +11 -0
- package/package.json +10 -8
- package/paginator/index.d.ts +8 -0
- package/paginator/index.metadata.json +11 -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/mat-exports.d.ts +13 -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 +11 -0
- package/paginator.d.ts +8 -0
- package/paginator.metadata.json +11 -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 +11 -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/mat-exports.d.ts +11 -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 +10 -0
- package/progress-bar.d.ts +8 -0
- package/progress-bar.metadata.json +11 -0
- package/progress-spinner/index.d.ts +8 -0
- package/progress-spinner/index.metadata.json +11 -0
- 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/mat-exports.d.ts +14 -0
- package/progress-spinner/typings/progress-spinner-module.d.ts +2 -0
- package/progress-spinner/typings/progress-spinner.d.ts +98 -0
- package/progress-spinner/typings/public_api.d.ts +10 -0
- package/progress-spinner.d.ts +8 -0
- package/progress-spinner.metadata.json +11 -0
- package/radio/index.d.ts +8 -1
- package/radio/index.metadata.json +11 -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/mat-exports.d.ts +16 -0
- package/radio/typings/public_api.d.ts +10 -0
- package/radio/typings/radio-module.d.ts +2 -0
- package/radio/typings/radio.d.ts +217 -0
- package/radio.d.ts +8 -0
- package/radio.metadata.json +11 -0
- package/select/index.d.ts +8 -5
- package/select/index.metadata.json +11 -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/mat-exports.d.ts +17 -0
- package/select/typings/public_api.d.ts +11 -0
- package/select/typings/select-animations.d.ts +36 -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 +412 -0
- package/select.d.ts +8 -0
- package/select.metadata.json +11 -0
- package/sidenav/index.d.ts +8 -1
- package/sidenav/index.metadata.json +11 -1
- package/sidenav/package.json +7 -0
- package/sidenav/typings/drawer.d.ts +178 -0
- package/sidenav/typings/index.d.ts +4 -0
- package/sidenav/typings/index.metadata.json +1 -0
- package/sidenav/typings/mat-exports.d.ts +16 -0
- package/sidenav/typings/public_api.d.ts +11 -0
- package/sidenav/typings/sidenav-module.d.ts +2 -0
- package/sidenav/typings/sidenav.d.ts +6 -0
- package/sidenav.d.ts +8 -0
- package/sidenav.metadata.json +11 -0
- package/slide-toggle/index.d.ts +8 -1
- package/slide-toggle/index.metadata.json +11 -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/mat-exports.d.ts +14 -0
- package/slide-toggle/typings/public_api.d.ts +10 -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 +11 -0
- package/slider/index.d.ts +8 -1
- package/slider/index.metadata.json +11 -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/mat-exports.d.ts +14 -0
- package/slider/typings/public_api.d.ts +10 -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 +11 -0
- package/snack-bar/index.d.ts +8 -4
- package/snack-bar/index.metadata.json +11 -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/mat-exports.d.ts +18 -0
- package/snack-bar/typings/public_api.d.ts +14 -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 +61 -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 +11 -0
- package/sort/index.d.ts +8 -0
- package/sort/index.metadata.json +11 -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/mat-exports.d.ts +16 -0
- package/sort/typings/public_api.d.ts +13 -0
- package/sort/typings/sort-direction.d.ts +8 -0
- package/sort/typings/sort-errors.d.ts +13 -0
- package/sort/typings/sort-header-intl.d.ts +17 -0
- package/sort/typings/sort-header.d.ts +44 -0
- package/sort/typings/sort-module.d.ts +2 -0
- package/sort/typings/sort.d.ts +59 -0
- package/sort.d.ts +8 -0
- package/sort.metadata.json +11 -0
- package/stepper/index.d.ts +8 -0
- package/stepper/index.metadata.json +11 -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/mat-exports.d.ts +21 -0
- package/stepper/typings/public_api.d.ts +13 -0
- package/stepper/typings/step-header.d.ts +23 -0
- package/stepper/typings/step-label.d.ts +14 -0
- package/stepper/typings/stepper-button.d.ts +10 -0
- package/stepper/typings/stepper-module.d.ts +2 -0
- package/stepper/typings/stepper.d.ts +27 -0
- package/stepper.d.ts +8 -0
- package/stepper.metadata.json +11 -0
- package/table/index.d.ts +8 -0
- package/table/index.metadata.json +11 -0
- package/table/package.json +7 -0
- package/table/typings/cell.d.ts +44 -0
- package/table/typings/index.d.ts +4 -0
- package/table/typings/index.metadata.json +1 -0
- package/table/typings/mat-exports.d.ts +20 -0
- package/table/typings/public_api.d.ts +12 -0
- package/table/typings/row.d.ts +30 -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 +11 -0
- package/tabs/index.d.ts +8 -1
- package/tabs/index.metadata.json +11 -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/mat-exports.d.ts +31 -0
- package/tabs/typings/public_api.d.ts +17 -0
- package/tabs/typings/tab-body.d.ts +69 -0
- package/tabs/typings/tab-group.d.ts +100 -0
- package/tabs/typings/tab-header.d.ts +156 -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 +77 -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 +11 -0
- package/toolbar/index.d.ts +8 -1
- package/toolbar/index.metadata.json +11 -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/mat-exports.d.ts +13 -0
- package/toolbar/typings/public_api.d.ts +10 -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 +11 -0
- package/tooltip/index.d.ts +8 -1
- package/tooltip/index.metadata.json +11 -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/mat-exports.d.ts +14 -0
- package/tooltip/typings/public_api.d.ts +10 -0
- package/tooltip/typings/tooltip-module.d.ts +2 -0
- package/tooltip/typings/tooltip.d.ts +177 -0
- package/tooltip.d.ts +8 -0
- package/tooltip.metadata.json +11 -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 +55 -0
- package/typings/autocomplete/index.d.ts +4 -0
- package/typings/autocomplete/index.metadata.json +1 -0
- package/typings/autocomplete/mat-exports.d.ts +17 -0
- package/typings/autocomplete/public_api.d.ts +11 -0
- package/typings/button/button-module.d.ts +2 -0
- package/typings/button/button.d.ts +80 -0
- package/typings/button/index.d.ts +4 -0
- package/typings/button/index.metadata.json +1 -0
- package/typings/button/mat-exports.d.ts +18 -0
- package/typings/button/public_api.d.ts +10 -0
- package/typings/button-toggle/button-toggle-module.d.ts +2 -0
- package/typings/button-toggle/button-toggle.d.ts +156 -0
- package/typings/button-toggle/index.d.ts +4 -0
- package/typings/button-toggle/index.metadata.json +1 -0
- package/typings/button-toggle/mat-exports.d.ts +16 -0
- package/typings/button-toggle/public_api.d.ts +10 -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/mat-exports.d.ts +24 -0
- package/typings/card/public_api.d.ts +10 -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 +159 -0
- package/typings/checkbox/index.d.ts +4 -0
- package/typings/checkbox/index.metadata.json +1 -0
- package/typings/checkbox/mat-exports.d.ts +17 -0
- package/typings/checkbox/public_api.d.ts +11 -0
- package/typings/chips/chip-input.d.ts +54 -0
- package/typings/chips/chip-list.d.ts +219 -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/mat-exports.d.ts +21 -0
- package/typings/chips/public_api.d.ts +12 -0
- package/typings/core/a11y/index.d.ts +8 -0
- package/typings/core/animation/animation.d.ts +20 -0
- package/typings/core/bidi/index.d.ts +8 -0
- package/typings/core/common-behaviors/color.d.ts +22 -0
- package/typings/core/common-behaviors/common-module.d.ts +24 -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 +40 -0
- package/typings/core/coordination/unique-selection-dispatcher.d.ts +40 -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 +19 -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/keyboard/keycodes.d.ts +8 -0
- package/typings/core/line/line.d.ts +30 -0
- package/typings/core/mat-exports.d.ts +36 -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 +97 -0
- package/typings/core/overlay/index.d.ts +8 -0
- package/typings/core/placeholder/placeholder-options.d.ts +15 -0
- package/typings/core/platform/features.d.ts +8 -0
- package/typings/core/platform/index.d.ts +10 -0
- package/typings/core/platform/platform.d.ts +8 -0
- package/typings/core/portal/dom-portal-host.d.ts +8 -0
- package/typings/core/portal/portal-directives.d.ts +8 -0
- package/typings/core/portal/portal-injector.d.ts +19 -0
- package/typings/core/portal/portal.d.ts +8 -0
- package/typings/core/public_api.d.ts +34 -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 +64 -0
- package/typings/core/ripple/ripple.d.ts +73 -0
- package/typings/core/rxjs/index.d.ts +9 -0
- package/typings/core/rxjs/rx-chain.d.ts +8 -0
- package/typings/core/rxjs/rx-operators.d.ts +8 -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 +5 -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 +90 -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 +94 -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/mat-exports.d.ts +33 -0
- package/typings/datepicker/month-view.d.ts +65 -0
- package/typings/datepicker/public_api.d.ts +18 -0
- package/typings/datepicker/year-view.d.ts +54 -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 +45 -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/mat-exports.d.ts +26 -0
- package/typings/dialog/public_api.d.ts +14 -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 +56 -0
- package/typings/expansion/expansion-panel.d.ts +39 -0
- package/typings/expansion/index.d.ts +5 -0
- package/typings/expansion/index.metadata.json +1 -0
- package/typings/expansion/mat-exports.d.ts +20 -0
- package/typings/expansion/public_api.d.ts +13 -0
- package/typings/form-field/error.d.ts +4 -0
- package/typings/form-field/form-field-control.d.ts +39 -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 +77 -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/mat-exports.d.ts +23 -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 +17 -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/mat-exports.d.ts +13 -0
- package/typings/grid-list/public_api.d.ts +11 -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 +194 -0
- package/typings/icon/icon.d.ts +76 -0
- package/typings/icon/index.d.ts +4 -0
- package/typings/icon/index.metadata.json +1 -0
- package/typings/icon/mat-exports.d.ts +14 -0
- package/typings/icon/public_api.d.ts +11 -0
- package/typings/index.d.ts +4 -0
- package/typings/index.metadata.json +26 -0
- package/typings/input/autosize.d.ts +45 -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 +78 -0
- package/typings/input/mat-exports.d.ts +13 -0
- package/typings/input/public_api.d.ts +12 -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 +78 -0
- package/typings/list/mat-exports.d.ts +27 -0
- package/typings/list/public_api.d.ts +11 -0
- package/typings/list/selection-list.d.ts +112 -0
- package/typings/menu/index.d.ts +6 -0
- package/typings/menu/index.metadata.json +1 -0
- package/typings/menu/mat-exports.d.ts +16 -0
- package/typings/menu/menu-animations.d.ts +27 -0
- package/typings/menu/menu-directive.d.ts +86 -0
- package/typings/menu/menu-errors.d.ts +24 -0
- package/typings/menu/menu-item.d.ts +40 -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 +116 -0
- package/typings/menu/menu.d.ts +12 -0
- package/typings/menu/public_api.d.ts +12 -0
- package/typings/paginator/index.d.ts +4 -0
- package/typings/paginator/index.metadata.json +1 -0
- package/typings/paginator/mat-exports.d.ts +13 -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 +11 -0
- package/typings/progress-bar/index.d.ts +4 -0
- package/typings/progress-bar/index.metadata.json +1 -0
- package/typings/progress-bar/mat-exports.d.ts +11 -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 +10 -0
- package/typings/progress-spinner/index.d.ts +4 -0
- package/typings/progress-spinner/index.metadata.json +1 -0
- package/typings/progress-spinner/mat-exports.d.ts +14 -0
- package/typings/progress-spinner/progress-spinner-module.d.ts +2 -0
- package/typings/progress-spinner/progress-spinner.d.ts +98 -0
- package/typings/progress-spinner/public_api.d.ts +10 -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/mat-exports.d.ts +16 -0
- package/typings/radio/public_api.d.ts +10 -0
- package/typings/radio/radio-module.d.ts +2 -0
- package/typings/radio/radio.d.ts +217 -0
- package/typings/select/index.d.ts +4 -0
- package/typings/select/index.metadata.json +1 -0
- package/typings/select/mat-exports.d.ts +17 -0
- package/typings/select/public_api.d.ts +11 -0
- package/typings/select/select-animations.d.ts +36 -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 +412 -0
- package/typings/sidenav/drawer.d.ts +178 -0
- package/typings/sidenav/index.d.ts +4 -0
- package/typings/sidenav/index.metadata.json +1 -0
- package/typings/sidenav/mat-exports.d.ts +16 -0
- package/typings/sidenav/public_api.d.ts +11 -0
- package/typings/sidenav/sidenav-module.d.ts +2 -0
- package/typings/sidenav/sidenav.d.ts +6 -0
- package/typings/slide-toggle/index.d.ts +4 -0
- package/typings/slide-toggle/index.metadata.json +1 -0
- package/typings/slide-toggle/mat-exports.d.ts +14 -0
- package/typings/slide-toggle/public_api.d.ts +10 -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/mat-exports.d.ts +14 -0
- package/typings/slider/public_api.d.ts +10 -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/mat-exports.d.ts +18 -0
- package/typings/snack-bar/public_api.d.ts +14 -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 +61 -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/mat-exports.d.ts +16 -0
- package/typings/sort/public_api.d.ts +13 -0
- package/typings/sort/sort-direction.d.ts +8 -0
- package/typings/sort/sort-errors.d.ts +13 -0
- package/typings/sort/sort-header-intl.d.ts +17 -0
- package/typings/sort/sort-header.d.ts +44 -0
- package/typings/sort/sort-module.d.ts +2 -0
- package/typings/sort/sort.d.ts +59 -0
- package/typings/stepper/index.d.ts +4 -0
- package/typings/stepper/index.metadata.json +1 -0
- package/typings/stepper/mat-exports.d.ts +21 -0
- package/typings/stepper/public_api.d.ts +13 -0
- package/typings/stepper/step-header.d.ts +23 -0
- package/typings/stepper/step-label.d.ts +14 -0
- package/typings/stepper/stepper-button.d.ts +10 -0
- package/typings/stepper/stepper-module.d.ts +2 -0
- package/typings/stepper/stepper.d.ts +27 -0
- package/typings/table/cell.d.ts +44 -0
- package/typings/table/index.d.ts +4 -0
- package/typings/table/index.metadata.json +1 -0
- package/typings/table/mat-exports.d.ts +20 -0
- package/typings/table/public_api.d.ts +12 -0
- package/typings/table/row.d.ts +30 -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/mat-exports.d.ts +31 -0
- package/typings/tabs/public_api.d.ts +17 -0
- package/typings/tabs/tab-body.d.ts +69 -0
- package/typings/tabs/tab-group.d.ts +100 -0
- package/typings/tabs/tab-header.d.ts +156 -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 +77 -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/mat-exports.d.ts +13 -0
- package/typings/toolbar/public_api.d.ts +10 -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/mat-exports.d.ts +14 -0
- package/typings/tooltip/public_api.d.ts +10 -0
- package/typings/tooltip/tooltip-module.d.ts +2 -0
- package/typings/tooltip/tooltip.d.ts +177 -0
- package/typings/version.d.ts +10 -0
- package/button/README.md +0 -115
- package/button/_button-base.scss +0 -116
- package/button/_button-theme.scss +0 -85
- package/button/button.css +0 -101
- package/button/button.css.map +0 -1
- package/button/button.d.ts +0 -35
- package/button/button.html +0 -6
- package/button/button.js +0 -196
- package/button/button.js.map +0 -1
- package/button/button.metadata.json +0 -1
- package/button/button.scss +0 -72
- package/button/index.js +0 -3
- package/button/index.js.map +0 -1
- package/button-toggle/README.md +0 -149
- package/button-toggle/_button-toggle-theme.scss +0 -14
- package/button-toggle/button-toggle.css +0 -24
- package/button-toggle/button-toggle.css.map +0 -1
- package/button-toggle/button-toggle.d.ts +0 -110
- package/button-toggle/button-toggle.html +0 -14
- package/button-toggle/button-toggle.js +0 -436
- 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 -34
- package/button-toggle/index.js +0 -3
- package/button-toggle/index.js.map +0 -1
- package/card/README.md +0 -116
- package/card/_card-theme.scss +0 -17
- package/card/card-header.html +0 -5
- package/card/card-title-group.html +0 -5
- package/card/card.css +0 -140
- package/card/card.css.map +0 -1
- package/card/card.d.ts +0 -35
- package/card/card.html +0 -1
- package/card/card.js +0 -187
- package/card/card.js.map +0 -1
- package/card/card.metadata.json +0 -1
- package/card/card.scss +0 -226
- package/card/index.js +0 -3
- package/card/index.js.map +0 -1
- package/checkbox/README.md +0 -79
- package/checkbox/_checkbox-theme.scss +0 -69
- package/checkbox/checkbox.css +0 -241
- package/checkbox/checkbox.css.map +0 -1
- package/checkbox/checkbox.d.ts +0 -127
- package/checkbox/checkbox.html +0 -37
- package/checkbox/checkbox.js +0 -344
- package/checkbox/checkbox.js.map +0 -1
- package/checkbox/checkbox.metadata.json +0 -1
- package/checkbox/checkbox.scss +0 -412
- package/checkbox/index.js +0 -3
- package/checkbox/index.js.map +0 -1
- package/core/README.md +0 -2
- package/core/_core.scss +0 -27
- package/core/a11y/README.md +0 -30
- package/core/a11y/_a11y.scss +0 -13
- package/core/a11y/focus-trap.d.ts +0 -23
- package/core/a11y/focus-trap.js +0 -82
- 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 -10
- package/core/a11y/index.js +0 -37
- package/core/a11y/index.js.map +0 -1
- package/core/a11y/index.metadata.json +0 -1
- package/core/a11y/interactivity-checker.d.ts +0 -31
- package/core/a11y/interactivity-checker.js +0 -122
- package/core/a11y/interactivity-checker.js.map +0 -1
- package/core/a11y/interactivity-checker.metadata.json +0 -1
- package/core/a11y/live-announcer.d.ts +0 -13
- package/core/a11y/live-announcer.js +0 -56
- package/core/a11y/live-announcer.js.map +0 -1
- package/core/a11y/live-announcer.metadata.json +0 -1
- package/core/annotations/field-value.d.ts +0 -16
- package/core/annotations/field-value.js +0 -30
- package/core/annotations/field-value.js.map +0 -1
- package/core/async/promise-completer.d.ts +0 -6
- package/core/async/promise-completer.js +0 -12
- package/core/async/promise-completer.js.map +0 -1
- package/core/coordination/unique-selection-dispatcher.d.ts +0 -17
- package/core/coordination/unique-selection-dispatcher.js +0 -42
- 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 -28
- package/core/core.js +0 -71
- package/core/core.js.map +0 -1
- package/core/core.metadata.json +0 -1
- package/core/errors/error.d.ts +0 -6
- package/core/errors/error.js +0 -19
- package/core/errors/error.js.map +0 -1
- package/core/gestures/MdGestureConfig.d.ts +0 -7
- package/core/gestures/MdGestureConfig.js +0 -84
- package/core/gestures/MdGestureConfig.js.map +0 -1
- package/core/gestures/MdGestureConfig.metadata.json +0 -1
- package/core/index.js +0 -3
- package/core/index.js.map +0 -1
- package/core/keyboard/keycodes.d.ts +0 -6
- package/core/keyboard/keycodes.js +0 -12
- package/core/keyboard/keycodes.js.map +0 -1
- package/core/keyboard/keycodes.metadata.json +0 -1
- package/core/line/line.d.ts +0 -19
- package/core/line/line.js +0 -65
- package/core/line/line.js.map +0 -1
- package/core/line/line.metadata.json +0 -1
- 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-directives.d.ts +0 -36
- package/core/overlay/overlay-directives.js +0 -120
- 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 -28
- package/core/overlay/overlay-ref.js +0 -82
- package/core/overlay/overlay-ref.js.map +0 -1
- package/core/overlay/overlay-state.d.ts +0 -11
- package/core/overlay/overlay-state.js +0 -13
- package/core/overlay/overlay-state.js.map +0 -1
- package/core/overlay/overlay.css +0 -2
- package/core/overlay/overlay.css.map +0 -1
- package/core/overlay/overlay.d.ts +0 -51
- package/core/overlay/overlay.js +0 -93
- package/core/overlay/overlay.js.map +0 -1
- package/core/overlay/overlay.metadata.json +0 -1
- package/core/overlay/overlay.scss +0 -55
- package/core/overlay/position/connected-position-strategy.d.ts +0 -69
- package/core/overlay/position/connected-position-strategy.js +0 -164
- package/core/overlay/position/connected-position-strategy.js.map +0 -1
- package/core/overlay/position/connected-position.d.ts +0 -22
- package/core/overlay/position/connected-position.js +0 -12
- package/core/overlay/position/connected-position.js.map +0 -1
- package/core/overlay/position/global-position-strategy.d.ts +0 -45
- package/core/overlay/position/global-position-strategy.js +0 -102
- package/core/overlay/position/global-position-strategy.js.map +0 -1
- package/core/overlay/position/overlay-position-builder.d.ts +0 -14
- package/core/overlay/position/overlay-position-builder.js +0 -34
- 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 -5
- 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 -7
- package/core/overlay/position/relative-position-strategy.js +0 -12
- package/core/overlay/position/relative-position-strategy.js.map +0 -1
- package/core/overlay/position/viewport-ruler.d.ts +0 -16
- package/core/overlay/position/viewport-ruler.js +0 -71
- package/core/overlay/position/viewport-ruler.js.map +0 -1
- package/core/overlay/position/viewport-ruler.metadata.json +0 -1
- package/core/portal/README.md +0 -72
- package/core/portal/dom-portal-host.d.ts +0 -17
- package/core/portal/dom-portal-host.js +0 -56
- package/core/portal/dom-portal-host.js.map +0 -1
- package/core/portal/portal-directives.d.ts +0 -38
- package/core/portal/portal-directives.js +0 -124
- 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 -29
- package/core/portal/portal-errors.js +0 -66
- package/core/portal/portal-errors.js.map +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/ripple/README.md +0 -27
- package/core/ripple/_ripple.scss +0 -106
- package/core/ripple/ripple-renderer.d.ts +0 -65
- package/core/ripple/ripple-renderer.js +0 -149
- 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 -75
- package/core/ripple/ripple.js +0 -179
- package/core/ripple/ripple.js.map +0 -1
- package/core/ripple/ripple.metadata.json +0 -1
- package/core/rtl/dir.d.ts +0 -17
- package/core/rtl/dir.js +0 -83
- 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/_list-common.scss +0 -49
- package/core/style/_sidenav-common.scss +0 -8
- package/core/style/_variables.scss +0 -55
- 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/theming/_all-theme.scss +0 -46
- package/core/theming/_palette.scss +0 -694
- package/core/theming/_theming.scss +0 -84
- package/core/theming/prebuilt/deeppurple-amber.css +0 -446
- 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 -446
- 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 -446
- 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 -446
- 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.js +0 -3
- package/core.js.map +0 -1
- package/dialog/README.md +0 -0
- package/dialog/_dialog-theme.scss +0 -11
- package/dialog/dialog-config.d.ts +0 -11
- package/dialog/dialog-config.js +0 -12
- package/dialog/dialog-config.js.map +0 -1
- package/dialog/dialog-container.css +0 -7
- package/dialog/dialog-container.css.map +0 -1
- package/dialog/dialog-container.d.ts +0 -29
- package/dialog/dialog-container.html +0 -3
- package/dialog/dialog-container.js +0 -88
- package/dialog/dialog-container.js.map +0 -1
- package/dialog/dialog-container.metadata.json +0 -1
- package/dialog/dialog-container.scss +0 -12
- package/dialog/dialog-errors.d.ts +0 -5
- package/dialog/dialog-errors.js +0 -16
- package/dialog/dialog-errors.js.map +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-ref.d.ts +0 -20
- package/dialog/dialog-ref.js +0 -29
- package/dialog/dialog-ref.js.map +0 -1
- package/dialog/dialog.d.ts +0 -51
- package/dialog/dialog.js +0 -128
- package/dialog/dialog.js.map +0 -1
- package/dialog/dialog.metadata.json +0 -1
- package/dialog/index.js +0 -6
- package/dialog/index.js.map +0 -1
- package/grid-list/README.md +0 -118
- package/grid-list/_grid-list-theme.scss +0 -6
- package/grid-list/grid-list-errors.d.ts +0 -19
- package/grid-list/grid-list-errors.js +0 -38
- package/grid-list/grid-list-errors.js.map +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 -78
- 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 -3
- package/grid-list/grid-list.js +0 -165
- 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 -3
- package/grid-list/grid-tile.d.ts +0 -28
- package/grid-list/grid-tile.html +0 -4
- package/grid-list/grid-tile.js +0 -87
- 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 -51
- package/grid-list/tile-coordinator.js +0 -124
- package/grid-list/tile-coordinator.js.map +0 -1
- package/grid-list/tile-styler.d.ts +0 -88
- package/grid-list/tile-styler.js +0 -190
- package/grid-list/tile-styler.js.map +0 -1
- package/icon/README.md +0 -116
- package/icon/_icon-theme.scss +0 -6
- package/icon/fake-svgs.d.ts +0 -5
- package/icon/fake-svgs.js +0 -29
- package/icon/fake-svgs.js.map +0 -1
- package/icon/icon-registry.d.ts +0 -148
- package/icon/icon-registry.js +0 -375
- package/icon/icon-registry.js.map +0 -1
- package/icon/icon-registry.metadata.json +0 -1
- package/icon/icon.css +0 -8
- package/icon/icon.css.map +0 -1
- package/icon/icon.d.ts +0 -85
- package/icon/icon.js +0 -252
- 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 -23
- package/index.js +0 -25
- package/index.js.map +0 -1
- package/index.metadata.json +0 -1
- package/input/README.md +0 -121
- package/input/_input-theme.scss +0 -64
- package/input/index.js +0 -3
- package/input/index.js.map +0 -1
- package/input/input.css +0 -109
- package/input/input.css.map +0 -1
- package/input/input.d.ts +0 -134
- package/input/input.html +0 -65
- package/input/input.js +0 -471
- package/input/input.js.map +0 -1
- package/input/input.metadata.json +0 -1
- package/input/input.scss +0 -198
- package/list/README.md +0 -167
- 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 -5
- package/list/list.css +0 -139
- package/list/list.css.map +0 -1
- package/list/list.d.ts +0 -24
- package/list/list.js +0 -113
- package/list/list.js.map +0 -1
- package/list/list.metadata.json +0 -1
- package/list/list.scss +0 -168
- package/material.umd.js +0 -9017
- package/material.umd.js.map +0 -1
- package/menu/README.md +0 -164
- package/menu/_menu-theme.scss +0 -25
- package/menu/index.js +0 -3
- package/menu/index.js.map +0 -1
- package/menu/menu-directive.d.ts +0 -54
- package/menu/menu-directive.js +0 -158
- package/menu/menu-directive.js.map +0 -1
- package/menu/menu-directive.metadata.json +0 -1
- package/menu/menu-errors.d.ts +0 -21
- package/menu/menu-errors.js +0 -40
- package/menu/menu-errors.js.map +0 -1
- package/menu/menu-item.d.ts +0 -18
- package/menu/menu-item.js +0 -74
- package/menu/menu-item.js.map +0 -1
- package/menu/menu-item.metadata.json +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 -62
- package/menu/menu-trigger.js +0 -169
- package/menu/menu-trigger.js.map +0 -1
- package/menu/menu-trigger.metadata.json +0 -1
- package/menu/menu.css +0 -41
- package/menu/menu.css.map +0 -1
- package/menu/menu.d.ts +0 -7
- package/menu/menu.html +0 -6
- package/menu/menu.js +0 -39
- package/menu/menu.js.map +0 -1
- package/menu/menu.metadata.json +0 -1
- package/menu/menu.scss +0 -59
- package/module.d.ts +0 -6
- package/module.js +0 -117
- package/module.js.map +0 -1
- package/module.metadata.json +0 -1
- package/progress-bar/README.md +0 -54
- package/progress-bar/_progress-bar-theme.scss +0 -78
- package/progress-bar/index.js +0 -3
- package/progress-bar/index.js.map +0 -1
- package/progress-bar/progress-bar.css +0 -114
- package/progress-bar/progress-bar.css.map +0 -1
- package/progress-bar/progress-bar.d.ts +0 -34
- package/progress-bar/progress-bar.html +0 -5
- package/progress-bar/progress-bar.js +0 -122
- 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 -229
- package/progress-circle/README.md +0 -51
- package/progress-circle/_progress-circle-theme.scss +0 -23
- package/progress-circle/index.d.ts +0 -1
- package/progress-circle/index.js +0 -3
- package/progress-circle/index.js.map +0 -1
- package/progress-circle/index.metadata.json +0 -1
- package/progress-circle/progress-circle.css +0 -43
- package/progress-circle/progress-circle.css.map +0 -1
- package/progress-circle/progress-circle.d.ts +0 -76
- package/progress-circle/progress-circle.html +0 -9
- package/progress-circle/progress-circle.js +0 -315
- package/progress-circle/progress-circle.js.map +0 -1
- package/progress-circle/progress-circle.metadata.json +0 -1
- package/progress-circle/progress-circle.scss +0 -67
- package/radio/README.md +0 -79
- package/radio/_radio-theme.scss +0 -36
- package/radio/index.js +0 -3
- package/radio/index.js.map +0 -1
- package/radio/radio.css +0 -82
- package/radio/radio.css.map +0 -1
- package/radio/radio.d.ts +0 -127
- package/radio/radio.html +0 -27
- package/radio/radio.js +0 -445
- package/radio/radio.js.map +0 -1
- package/radio/radio.metadata.json +0 -1
- package/radio/radio.scss +0 -92
- package/select/index.js +0 -33
- package/select/index.js.map +0 -1
- package/select/select.css +0 -2
- package/select/select.css.map +0 -1
- package/select/select.d.ts +0 -2
- package/select/select.html +0 -1
- package/select/select.js +0 -25
- package/select/select.js.map +0 -1
- package/select/select.metadata.json +0 -1
- package/select/select.scss +0 -0
- package/sidenav/README.md +0 -83
- package/sidenav/_sidenav-theme.scss +0 -37
- package/sidenav/index.js +0 -3
- package/sidenav/index.js.map +0 -1
- package/sidenav/sidenav-transitions.css +0 -10
- package/sidenav/sidenav-transitions.css.map +0 -1
- package/sidenav/sidenav-transitions.scss +0 -14
- package/sidenav/sidenav.css +0 -111
- package/sidenav/sidenav.css.map +0 -1
- package/sidenav/sidenav.d.ts +0 -141
- package/sidenav/sidenav.html +0 -8
- package/sidenav/sidenav.js +0 -479
- package/sidenav/sidenav.js.map +0 -1
- package/sidenav/sidenav.metadata.json +0 -1
- package/sidenav/sidenav.scss +0 -133
- package/slide-toggle/README.md +0 -66
- package/slide-toggle/_slide-toggle-theme.scss +0 -77
- package/slide-toggle/index.js +0 -3
- package/slide-toggle/index.js.map +0 -1
- package/slide-toggle/slide-toggle.css +0 -88
- package/slide-toggle/slide-toggle.css.map +0 -1
- package/slide-toggle/slide-toggle.d.ts +0 -74
- package/slide-toggle/slide-toggle.html +0 -33
- package/slide-toggle/slide-toggle.js +0 -317
- 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 -140
- package/slider/README.md +0 -97
- package/slider/_slider-theme.scss +0 -33
- package/slider/index.js +0 -3
- package/slider/index.js.map +0 -1
- package/slider/slider.css +0 -122
- package/slider/slider.css.map +0 -1
- package/slider/slider.d.ts +0 -155
- package/slider/slider.html +0 -21
- package/slider/slider.js +0 -433
- package/slider/slider.js.map +0 -1
- package/slider/slider.metadata.json +0 -1
- package/slider/slider.scss +0 -186
- package/slider/test-gesture-config.d.ts +0 -21
- package/slider/test-gesture-config.js +0 -59
- package/slider/test-gesture-config.js.map +0 -1
- package/slider/test-gesture-config.metadata.json +0 -1
- package/snack-bar/README.md +0 -38
- package/snack-bar/index.js +0 -6
- package/snack-bar/index.js.map +0 -1
- package/snack-bar/simple-snack-bar.css +0 -27
- 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 -3
- 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 -11
- package/snack-bar/snack-bar-config.js +0 -10
- package/snack-bar/snack-bar-config.js.map +0 -1
- package/snack-bar/snack-bar-container.css +0 -12
- package/snack-bar/snack-bar-container.css.map +0 -1
- package/snack-bar/snack-bar-container.d.ts +0 -15
- package/snack-bar/snack-bar-container.html +0 -1
- package/snack-bar/snack-bar-container.js +0 -53
- 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 -19
- package/snack-bar/snack-bar-errors.d.ts +0 -4
- package/snack-bar/snack-bar-errors.js +0 -15
- package/snack-bar/snack-bar-errors.js.map +0 -1
- package/snack-bar/snack-bar-ref.d.ts +0 -17
- package/snack-bar/snack-bar-ref.js +0 -28
- package/snack-bar/snack-bar-ref.js.map +0 -1
- package/snack-bar/snack-bar.d.ts +0 -41
- package/snack-bar/snack-bar.js +0 -110
- package/snack-bar/snack-bar.js.map +0 -1
- package/snack-bar/snack-bar.metadata.json +0 -1
- package/tabs/README.md +0 -47
- package/tabs/_tabs-theme.scss +0 -23
- package/tabs/index.js +0 -3
- package/tabs/index.js.map +0 -1
- package/tabs/ink-bar.d.ts +0 -24
- package/tabs/ink-bar.js +0 -50
- package/tabs/ink-bar.js.map +0 -1
- package/tabs/ink-bar.metadata.json +0 -1
- package/tabs/tab-content.d.ts +0 -6
- package/tabs/tab-content.js +0 -32
- package/tabs/tab-content.js.map +0 -1
- package/tabs/tab-content.metadata.json +0 -1
- package/tabs/tab-group.css +0 -55
- package/tabs/tab-group.css.map +0 -1
- package/tabs/tab-group.html +0 -27
- package/tabs/tab-group.scss +0 -72
- package/tabs/tab-label-wrapper.d.ts +0 -10
- package/tabs/tab-label-wrapper.js +0 -31
- 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/tabs.d.ts +0 -79
- package/tabs/tabs.js +0 -290
- package/tabs/tabs.js.map +0 -1
- package/tabs/tabs.metadata.json +0 -1
- 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 -19
- package/toolbar/toolbar.css.map +0 -1
- package/toolbar/toolbar.d.ts +0 -17
- package/toolbar/toolbar.html +0 -6
- package/toolbar/toolbar.js +0 -83
- package/toolbar/toolbar.js.map +0 -1
- package/toolbar/toolbar.metadata.json +0 -1
- package/toolbar/toolbar.scss +0 -36
- package/tooltip/README.md +0 -32
- package/tooltip/_tooltip-theme.scss +0 -9
- package/tooltip/index.js +0 -3
- package/tooltip/index.js.map +0 -1
- package/tooltip/tooltip.css +0 -14
- package/tooltip/tooltip.css.map +0 -1
- package/tooltip/tooltip.d.ts +0 -67
- package/tooltip/tooltip.html +0 -0
- package/tooltip/tooltip.js +0 -210
- package/tooltip/tooltip.js.map +0 -1
- package/tooltip/tooltip.metadata.json +0 -1
- package/tooltip/tooltip.scss +0 -21
- package/tsconfig-spec.json +0 -33
- package/tsconfig.json +0 -33
- package/typings.d.ts +0 -1
|
@@ -0,0 +1,849 @@
|
|
|
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 { ChangeDetectorRef, Component, Directive, ElementRef, EventEmitter, Inject, Injectable, InjectionToken, Injector, Input, NgModule, Optional, SkipSelf, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core';
|
|
9
|
+
import { CommonModule, Location } from '@angular/common';
|
|
10
|
+
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
11
|
+
import { BasePortalHost, ComponentPortal, PortalHostDirective, PortalModule, TemplatePortal } from '@angular/cdk/portal';
|
|
12
|
+
import { A11yModule, FocusTrapFactory } from '@angular/cdk/a11y';
|
|
13
|
+
import { MdCommonModule, PortalInjector, extendObject } from '@angular/material/core';
|
|
14
|
+
import { ESCAPE } from '@angular/cdk/keycodes';
|
|
15
|
+
import { RxChain, filter, first, startWith } from '@angular/cdk/rxjs';
|
|
16
|
+
import { defer } from 'rxjs/observable/defer';
|
|
17
|
+
import { Subject } from 'rxjs/Subject';
|
|
18
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
19
|
+
import { DOCUMENT } from '@angular/platform-browser';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Configuration for opening a modal dialog with the MdDialog service.
|
|
23
|
+
*/
|
|
24
|
+
class MdDialogConfig {
|
|
25
|
+
constructor() {
|
|
26
|
+
/**
|
|
27
|
+
* The ARIA role of the dialog element.
|
|
28
|
+
*/
|
|
29
|
+
this.role = 'dialog';
|
|
30
|
+
/**
|
|
31
|
+
* Custom class for the overlay pane.
|
|
32
|
+
*/
|
|
33
|
+
this.panelClass = '';
|
|
34
|
+
/**
|
|
35
|
+
* Whether the dialog has a backdrop.
|
|
36
|
+
*/
|
|
37
|
+
this.hasBackdrop = true;
|
|
38
|
+
/**
|
|
39
|
+
* Custom class for the backdrop,
|
|
40
|
+
*/
|
|
41
|
+
this.backdropClass = '';
|
|
42
|
+
/**
|
|
43
|
+
* Whether the user can use escape or clicking outside to close a modal.
|
|
44
|
+
*/
|
|
45
|
+
this.disableClose = false;
|
|
46
|
+
/**
|
|
47
|
+
* Width of the dialog.
|
|
48
|
+
*/
|
|
49
|
+
this.width = '';
|
|
50
|
+
/**
|
|
51
|
+
* Height of the dialog.
|
|
52
|
+
*/
|
|
53
|
+
this.height = '';
|
|
54
|
+
/**
|
|
55
|
+
* Data being injected into the child component.
|
|
56
|
+
*/
|
|
57
|
+
this.data = null;
|
|
58
|
+
/**
|
|
59
|
+
* Layout direction for the dialog's content.
|
|
60
|
+
*/
|
|
61
|
+
this.direction = 'ltr';
|
|
62
|
+
/**
|
|
63
|
+
* ID of the element that describes the dialog.
|
|
64
|
+
*/
|
|
65
|
+
this.ariaDescribedBy = null;
|
|
66
|
+
// TODO(jelbourn): add configuration for lifecycle hooks, ARIA labelling.
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Throws an exception for the case when a ComponentPortal is
|
|
72
|
+
* attached to a DomPortalHost without an origin.
|
|
73
|
+
* \@docs-private
|
|
74
|
+
* @return {?}
|
|
75
|
+
*/
|
|
76
|
+
function throwMdDialogContentAlreadyAttachedError() {
|
|
77
|
+
throw Error('Attempting to attach dialog content after content is already attached');
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Internal component that wraps user-provided dialog content.
|
|
81
|
+
* Animation is based on https://material.io/guidelines/motion/choreography.html.
|
|
82
|
+
* \@docs-private
|
|
83
|
+
*/
|
|
84
|
+
class MdDialogContainer extends BasePortalHost {
|
|
85
|
+
/**
|
|
86
|
+
* @param {?} _elementRef
|
|
87
|
+
* @param {?} _focusTrapFactory
|
|
88
|
+
* @param {?} _changeDetectorRef
|
|
89
|
+
* @param {?} _document
|
|
90
|
+
*/
|
|
91
|
+
constructor(_elementRef, _focusTrapFactory, _changeDetectorRef, _document) {
|
|
92
|
+
super();
|
|
93
|
+
this._elementRef = _elementRef;
|
|
94
|
+
this._focusTrapFactory = _focusTrapFactory;
|
|
95
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
96
|
+
this._document = _document;
|
|
97
|
+
/**
|
|
98
|
+
* Element that was focused before the dialog was opened. Save this to restore upon close.
|
|
99
|
+
*/
|
|
100
|
+
this._elementFocusedBeforeDialogWasOpened = null;
|
|
101
|
+
/**
|
|
102
|
+
* State of the dialog animation.
|
|
103
|
+
*/
|
|
104
|
+
this._state = 'enter';
|
|
105
|
+
/**
|
|
106
|
+
* Emits when an animation state changes.
|
|
107
|
+
*/
|
|
108
|
+
this._animationStateChanged = new EventEmitter();
|
|
109
|
+
/**
|
|
110
|
+
* ID of the element that should be considered as the dialog's label.
|
|
111
|
+
*/
|
|
112
|
+
this._ariaLabelledBy = null;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the container is currently mid-animation.
|
|
115
|
+
*/
|
|
116
|
+
this._isAnimating = false;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Attach a ComponentPortal as content to this dialog container.
|
|
120
|
+
* @template T
|
|
121
|
+
* @param {?} portal Portal to be attached as the dialog content.
|
|
122
|
+
* @return {?}
|
|
123
|
+
*/
|
|
124
|
+
attachComponentPortal(portal) {
|
|
125
|
+
if (this._portalHost.hasAttached()) {
|
|
126
|
+
throwMdDialogContentAlreadyAttachedError();
|
|
127
|
+
}
|
|
128
|
+
this._savePreviouslyFocusedElement();
|
|
129
|
+
return this._portalHost.attachComponentPortal(portal);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Attach a TemplatePortal as content to this dialog container.
|
|
133
|
+
* @template C
|
|
134
|
+
* @param {?} portal Portal to be attached as the dialog content.
|
|
135
|
+
* @return {?}
|
|
136
|
+
*/
|
|
137
|
+
attachTemplatePortal(portal) {
|
|
138
|
+
if (this._portalHost.hasAttached()) {
|
|
139
|
+
throwMdDialogContentAlreadyAttachedError();
|
|
140
|
+
}
|
|
141
|
+
this._savePreviouslyFocusedElement();
|
|
142
|
+
return this._portalHost.attachTemplatePortal(portal);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Moves the focus inside the focus trap.
|
|
146
|
+
* @return {?}
|
|
147
|
+
*/
|
|
148
|
+
_trapFocus() {
|
|
149
|
+
if (!this._focusTrap) {
|
|
150
|
+
this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);
|
|
151
|
+
}
|
|
152
|
+
// If were to attempt to focus immediately, then the content of the dialog would not yet be
|
|
153
|
+
// ready in instances where change detection has to run first. To deal with this, we simply
|
|
154
|
+
// wait for the microtask queue to be empty.
|
|
155
|
+
this._focusTrap.focusInitialElementWhenReady().then(hasMovedFocus => {
|
|
156
|
+
// If we didn't find any focusable elements inside the dialog, focus the
|
|
157
|
+
// container so the user can't tab into other elements behind it.
|
|
158
|
+
if (!hasMovedFocus) {
|
|
159
|
+
this._elementRef.nativeElement.focus();
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Restores focus to the element that was focused before the dialog opened.
|
|
165
|
+
* @return {?}
|
|
166
|
+
*/
|
|
167
|
+
_restoreFocus() {
|
|
168
|
+
const /** @type {?} */ toFocus = this._elementFocusedBeforeDialogWasOpened;
|
|
169
|
+
// We need the extra check, because IE can set the `activeElement` to null in some cases.
|
|
170
|
+
if (toFocus && typeof toFocus.focus === 'function') {
|
|
171
|
+
toFocus.focus();
|
|
172
|
+
}
|
|
173
|
+
if (this._focusTrap) {
|
|
174
|
+
this._focusTrap.destroy();
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Saves a reference to the element that was focused before the dialog was opened.
|
|
179
|
+
* @return {?}
|
|
180
|
+
*/
|
|
181
|
+
_savePreviouslyFocusedElement() {
|
|
182
|
+
if (this._document) {
|
|
183
|
+
this._elementFocusedBeforeDialogWasOpened = (this._document.activeElement);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Callback, invoked whenever an animation on the host completes.
|
|
188
|
+
* @param {?} event
|
|
189
|
+
* @return {?}
|
|
190
|
+
*/
|
|
191
|
+
_onAnimationDone(event) {
|
|
192
|
+
if (event.toState === 'enter') {
|
|
193
|
+
this._trapFocus();
|
|
194
|
+
}
|
|
195
|
+
else if (event.toState === 'exit') {
|
|
196
|
+
this._restoreFocus();
|
|
197
|
+
}
|
|
198
|
+
this._animationStateChanged.emit(event);
|
|
199
|
+
this._isAnimating = false;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Callback, invoked when an animation on the host starts.
|
|
203
|
+
* @param {?} event
|
|
204
|
+
* @return {?}
|
|
205
|
+
*/
|
|
206
|
+
_onAnimationStart(event) {
|
|
207
|
+
this._isAnimating = true;
|
|
208
|
+
this._animationStateChanged.emit(event);
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Starts the dialog exit animation.
|
|
212
|
+
* @return {?}
|
|
213
|
+
*/
|
|
214
|
+
_startExitAnimation() {
|
|
215
|
+
this._state = 'exit';
|
|
216
|
+
// Mark the container for check so it can react if the
|
|
217
|
+
// view container is using OnPush change detection.
|
|
218
|
+
this._changeDetectorRef.markForCheck();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
MdDialogContainer.decorators = [
|
|
222
|
+
{ type: Component, args: [{selector: 'md-dialog-container, mat-dialog-container',
|
|
223
|
+
template: "<ng-template cdkPortalHost></ng-template>",
|
|
224
|
+
styles: [".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;max-width:80vw;outline:0;width:100%;height:100%}@media screen and (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:12px 0;display:flex;flex-wrap:wrap}.mat-dialog-actions:last-child{margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],
|
|
225
|
+
encapsulation: ViewEncapsulation.None,
|
|
226
|
+
preserveWhitespaces: false,
|
|
227
|
+
animations: [
|
|
228
|
+
trigger('slideDialog', [
|
|
229
|
+
// Note: The `enter` animation doesn't transition to something like `translate3d(0, 0, 0)
|
|
230
|
+
// scale(1)`, because for some reason specifying the transform explicitly, causes IE both
|
|
231
|
+
// to blur the dialog content and decimate the animation performance. Leaving it as `none`
|
|
232
|
+
// solves both issues.
|
|
233
|
+
state('enter', style({ transform: 'none', opacity: 1 })),
|
|
234
|
+
state('void', style({ transform: 'translate3d(0, 25%, 0) scale(0.9)', opacity: 0 })),
|
|
235
|
+
state('exit', style({ transform: 'translate3d(0, 25%, 0)', opacity: 0 })),
|
|
236
|
+
transition('* => *', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')),
|
|
237
|
+
])
|
|
238
|
+
],
|
|
239
|
+
host: {
|
|
240
|
+
'class': 'mat-dialog-container',
|
|
241
|
+
'tabindex': '-1',
|
|
242
|
+
'[attr.role]': '_config?.role',
|
|
243
|
+
'[attr.aria-labelledby]': '_ariaLabelledBy',
|
|
244
|
+
'[attr.aria-describedby]': '_config?.ariaDescribedBy || null',
|
|
245
|
+
'[@slideDialog]': '_state',
|
|
246
|
+
'(@slideDialog.start)': '_onAnimationStart($event)',
|
|
247
|
+
'(@slideDialog.done)': '_onAnimationDone($event)',
|
|
248
|
+
},
|
|
249
|
+
},] },
|
|
250
|
+
];
|
|
251
|
+
/**
|
|
252
|
+
* @nocollapse
|
|
253
|
+
*/
|
|
254
|
+
MdDialogContainer.ctorParameters = () => [
|
|
255
|
+
{ type: ElementRef, },
|
|
256
|
+
{ type: FocusTrapFactory, },
|
|
257
|
+
{ type: ChangeDetectorRef, },
|
|
258
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DOCUMENT,] },] },
|
|
259
|
+
];
|
|
260
|
+
MdDialogContainer.propDecorators = {
|
|
261
|
+
'_portalHost': [{ type: ViewChild, args: [PortalHostDirective,] },],
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
// TODO(jelbourn): resizing
|
|
265
|
+
// Counter for unique dialog ids.
|
|
266
|
+
let uniqueId = 0;
|
|
267
|
+
/**
|
|
268
|
+
* Reference to a dialog opened via the MdDialog service.
|
|
269
|
+
*/
|
|
270
|
+
class MdDialogRef {
|
|
271
|
+
/**
|
|
272
|
+
* @param {?} _overlayRef
|
|
273
|
+
* @param {?} _containerInstance
|
|
274
|
+
* @param {?=} id
|
|
275
|
+
*/
|
|
276
|
+
constructor(_overlayRef, _containerInstance, id = `md-dialog-${uniqueId++}`) {
|
|
277
|
+
this._overlayRef = _overlayRef;
|
|
278
|
+
this._containerInstance = _containerInstance;
|
|
279
|
+
this.id = id;
|
|
280
|
+
/**
|
|
281
|
+
* Whether the user is allowed to close the dialog.
|
|
282
|
+
*/
|
|
283
|
+
this.disableClose = this._containerInstance._config.disableClose;
|
|
284
|
+
/**
|
|
285
|
+
* Subject for notifying the user that the dialog has finished opening.
|
|
286
|
+
*/
|
|
287
|
+
this._afterOpen = new Subject();
|
|
288
|
+
/**
|
|
289
|
+
* Subject for notifying the user that the dialog has finished closing.
|
|
290
|
+
*/
|
|
291
|
+
this._afterClosed = new Subject();
|
|
292
|
+
/**
|
|
293
|
+
* Subject for notifying the user that the dialog has started closing.
|
|
294
|
+
*/
|
|
295
|
+
this._beforeClose = new Subject();
|
|
296
|
+
// Emit when opening animation completes
|
|
297
|
+
RxChain.from(_containerInstance._animationStateChanged)
|
|
298
|
+
.call(filter, event => event.phaseName === 'done' && event.toState === 'enter')
|
|
299
|
+
.call(first)
|
|
300
|
+
.subscribe(() => {
|
|
301
|
+
this._afterOpen.next();
|
|
302
|
+
this._afterOpen.complete();
|
|
303
|
+
});
|
|
304
|
+
// Dispose overlay when closing animation is complete
|
|
305
|
+
RxChain.from(_containerInstance._animationStateChanged)
|
|
306
|
+
.call(filter, event => event.phaseName === 'done' && event.toState === 'exit')
|
|
307
|
+
.call(first)
|
|
308
|
+
.subscribe(() => {
|
|
309
|
+
this._overlayRef.dispose();
|
|
310
|
+
this._afterClosed.next(this._result);
|
|
311
|
+
this._afterClosed.complete();
|
|
312
|
+
this.componentInstance = null;
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Close the dialog.
|
|
317
|
+
* @param {?=} dialogResult Optional result to return to the dialog opener.
|
|
318
|
+
* @return {?}
|
|
319
|
+
*/
|
|
320
|
+
close(dialogResult) {
|
|
321
|
+
this._result = dialogResult;
|
|
322
|
+
// Transition the backdrop in parallel to the dialog.
|
|
323
|
+
RxChain.from(this._containerInstance._animationStateChanged)
|
|
324
|
+
.call(filter, event => event.phaseName === 'start')
|
|
325
|
+
.call(first)
|
|
326
|
+
.subscribe(() => {
|
|
327
|
+
this._beforeClose.next(dialogResult);
|
|
328
|
+
this._beforeClose.complete();
|
|
329
|
+
this._overlayRef.detachBackdrop();
|
|
330
|
+
});
|
|
331
|
+
this._containerInstance._startExitAnimation();
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Gets an observable that is notified when the dialog is finished opening.
|
|
335
|
+
* @return {?}
|
|
336
|
+
*/
|
|
337
|
+
afterOpen() {
|
|
338
|
+
return this._afterOpen.asObservable();
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Gets an observable that is notified when the dialog is finished closing.
|
|
342
|
+
* @return {?}
|
|
343
|
+
*/
|
|
344
|
+
afterClosed() {
|
|
345
|
+
return this._afterClosed.asObservable();
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Gets an observable that is notified when the dialog has started closing.
|
|
349
|
+
* @return {?}
|
|
350
|
+
*/
|
|
351
|
+
beforeClose() {
|
|
352
|
+
return this._beforeClose.asObservable();
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
356
|
+
* @return {?}
|
|
357
|
+
*/
|
|
358
|
+
backdropClick() {
|
|
359
|
+
return this._overlayRef.backdropClick();
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Updates the dialog's position.
|
|
363
|
+
* @param {?=} position New dialog position.
|
|
364
|
+
* @return {?}
|
|
365
|
+
*/
|
|
366
|
+
updatePosition(position) {
|
|
367
|
+
let /** @type {?} */ strategy = this._getPositionStrategy();
|
|
368
|
+
if (position && (position.left || position.right)) {
|
|
369
|
+
position.left ? strategy.left(position.left) : strategy.right(position.right);
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
strategy.centerHorizontally();
|
|
373
|
+
}
|
|
374
|
+
if (position && (position.top || position.bottom)) {
|
|
375
|
+
position.top ? strategy.top(position.top) : strategy.bottom(position.bottom);
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
strategy.centerVertically();
|
|
379
|
+
}
|
|
380
|
+
this._overlayRef.updatePosition();
|
|
381
|
+
return this;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Updates the dialog's width and height.
|
|
385
|
+
* @param {?=} width New width of the dialog.
|
|
386
|
+
* @param {?=} height New height of the dialog.
|
|
387
|
+
* @return {?}
|
|
388
|
+
*/
|
|
389
|
+
updateSize(width = 'auto', height = 'auto') {
|
|
390
|
+
this._getPositionStrategy().width(width).height(height);
|
|
391
|
+
this._overlayRef.updatePosition();
|
|
392
|
+
return this;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Returns whether the dialog is animating.
|
|
396
|
+
* @return {?}
|
|
397
|
+
*/
|
|
398
|
+
_isAnimating() {
|
|
399
|
+
return this._containerInstance._isAnimating;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Fetches the position strategy object from the overlay ref.
|
|
403
|
+
* @return {?}
|
|
404
|
+
*/
|
|
405
|
+
_getPositionStrategy() {
|
|
406
|
+
return (this._overlayRef.getState().positionStrategy);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
const MD_DIALOG_DATA = new InjectionToken('MdDialogData');
|
|
411
|
+
/**
|
|
412
|
+
* Injection token that determines the scroll handling while the dialog is open.
|
|
413
|
+
*/
|
|
414
|
+
const MD_DIALOG_SCROLL_STRATEGY = new InjectionToken('md-dialog-scroll-strategy');
|
|
415
|
+
/**
|
|
416
|
+
* \@docs-private
|
|
417
|
+
* @param {?} overlay
|
|
418
|
+
* @return {?}
|
|
419
|
+
*/
|
|
420
|
+
function MD_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
|
|
421
|
+
return () => overlay.scrollStrategies.block();
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* \@docs-private
|
|
425
|
+
*/
|
|
426
|
+
const MD_DIALOG_SCROLL_STRATEGY_PROVIDER = {
|
|
427
|
+
provide: MD_DIALOG_SCROLL_STRATEGY,
|
|
428
|
+
deps: [Overlay],
|
|
429
|
+
useFactory: MD_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,
|
|
430
|
+
};
|
|
431
|
+
/**
|
|
432
|
+
* Service to open Material Design modal dialogs.
|
|
433
|
+
*/
|
|
434
|
+
class MdDialog {
|
|
435
|
+
/**
|
|
436
|
+
* @param {?} _overlay
|
|
437
|
+
* @param {?} _injector
|
|
438
|
+
* @param {?} location
|
|
439
|
+
* @param {?} _scrollStrategy
|
|
440
|
+
* @param {?} _parentDialog
|
|
441
|
+
*/
|
|
442
|
+
constructor(_overlay, _injector, location, _scrollStrategy, _parentDialog) {
|
|
443
|
+
this._overlay = _overlay;
|
|
444
|
+
this._injector = _injector;
|
|
445
|
+
this._scrollStrategy = _scrollStrategy;
|
|
446
|
+
this._parentDialog = _parentDialog;
|
|
447
|
+
this._openDialogsAtThisLevel = [];
|
|
448
|
+
this._afterAllClosedAtThisLevel = new Subject();
|
|
449
|
+
this._afterOpenAtThisLevel = new Subject();
|
|
450
|
+
this._boundKeydown = this._handleKeydown.bind(this);
|
|
451
|
+
/**
|
|
452
|
+
* Stream that emits when all open dialog have finished closing.
|
|
453
|
+
* Will emit on subscribe if there are no open dialogs to begin with.
|
|
454
|
+
*/
|
|
455
|
+
this.afterAllClosed = defer(() => this.openDialogs.length ?
|
|
456
|
+
this._afterAllClosed :
|
|
457
|
+
startWith.call(this._afterAllClosed, undefined));
|
|
458
|
+
// Close all of the dialogs when the user goes forwards/backwards in history or when the
|
|
459
|
+
// location hash changes. Note that this usually doesn't include clicking on links (unless
|
|
460
|
+
// the user is using the `HashLocationStrategy`).
|
|
461
|
+
if (!_parentDialog && location) {
|
|
462
|
+
location.subscribe(() => this.closeAll());
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Keeps track of the currently-open dialogs.
|
|
467
|
+
* @return {?}
|
|
468
|
+
*/
|
|
469
|
+
get openDialogs() {
|
|
470
|
+
return this._parentDialog ? this._parentDialog.openDialogs : this._openDialogsAtThisLevel;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Stream that emits when a dialog has been opened.
|
|
474
|
+
* @return {?}
|
|
475
|
+
*/
|
|
476
|
+
get afterOpen() {
|
|
477
|
+
return this._parentDialog ? this._parentDialog.afterOpen : this._afterOpenAtThisLevel;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @return {?}
|
|
481
|
+
*/
|
|
482
|
+
get _afterAllClosed() {
|
|
483
|
+
const /** @type {?} */ parent = this._parentDialog;
|
|
484
|
+
return parent ? parent._afterAllClosed : this._afterAllClosedAtThisLevel;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Opens a modal dialog containing the given component.
|
|
488
|
+
* @template T
|
|
489
|
+
* @param {?} componentOrTemplateRef Type of the component to load into the dialog,
|
|
490
|
+
* or a TemplateRef to instantiate as the dialog content.
|
|
491
|
+
* @param {?=} config Extra configuration options.
|
|
492
|
+
* @return {?} Reference to the newly-opened dialog.
|
|
493
|
+
*/
|
|
494
|
+
open(componentOrTemplateRef, config) {
|
|
495
|
+
const /** @type {?} */ inProgressDialog = this.openDialogs.find(dialog => dialog._isAnimating());
|
|
496
|
+
// If there's a dialog that is in the process of being opened, return it instead.
|
|
497
|
+
if (inProgressDialog) {
|
|
498
|
+
return inProgressDialog;
|
|
499
|
+
}
|
|
500
|
+
config = _applyConfigDefaults(config);
|
|
501
|
+
if (config.id && this.getDialogById(config.id)) {
|
|
502
|
+
throw Error(`Dialog with id "${config.id}" exists already. The dialog id must be unique.`);
|
|
503
|
+
}
|
|
504
|
+
const /** @type {?} */ overlayRef = this._createOverlay(config);
|
|
505
|
+
const /** @type {?} */ dialogContainer = this._attachDialogContainer(overlayRef, config);
|
|
506
|
+
const /** @type {?} */ dialogRef = this._attachDialogContent(componentOrTemplateRef, dialogContainer, overlayRef, config);
|
|
507
|
+
if (!this.openDialogs.length) {
|
|
508
|
+
document.addEventListener('keydown', this._boundKeydown);
|
|
509
|
+
}
|
|
510
|
+
this.openDialogs.push(dialogRef);
|
|
511
|
+
dialogRef.afterClosed().subscribe(() => this._removeOpenDialog(dialogRef));
|
|
512
|
+
this.afterOpen.next(dialogRef);
|
|
513
|
+
return dialogRef;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Closes all of the currently-open dialogs.
|
|
517
|
+
* @return {?}
|
|
518
|
+
*/
|
|
519
|
+
closeAll() {
|
|
520
|
+
let /** @type {?} */ i = this.openDialogs.length;
|
|
521
|
+
while (i--) {
|
|
522
|
+
// The `_openDialogs` property isn't updated after close until the rxjs subscription
|
|
523
|
+
// runs on the next microtask, in addition to modifying the array as we're going
|
|
524
|
+
// through it. We loop through all of them and call close without assuming that
|
|
525
|
+
// they'll be removed from the list instantaneously.
|
|
526
|
+
this.openDialogs[i].close();
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Finds an open dialog by its id.
|
|
531
|
+
* @param {?} id ID to use when looking up the dialog.
|
|
532
|
+
* @return {?}
|
|
533
|
+
*/
|
|
534
|
+
getDialogById(id) {
|
|
535
|
+
return this.openDialogs.find(dialog => dialog.id === id);
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Creates the overlay into which the dialog will be loaded.
|
|
539
|
+
* @param {?} config The dialog configuration.
|
|
540
|
+
* @return {?} A promise resolving to the OverlayRef for the created overlay.
|
|
541
|
+
*/
|
|
542
|
+
_createOverlay(config) {
|
|
543
|
+
const /** @type {?} */ overlayState = this._getOverlayState(config);
|
|
544
|
+
return this._overlay.create(overlayState);
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* Creates an overlay state from a dialog config.
|
|
548
|
+
* @param {?} dialogConfig The dialog configuration.
|
|
549
|
+
* @return {?} The overlay configuration.
|
|
550
|
+
*/
|
|
551
|
+
_getOverlayState(dialogConfig) {
|
|
552
|
+
const /** @type {?} */ state$$1 = new OverlayConfig({
|
|
553
|
+
positionStrategy: this._overlay.position().global(),
|
|
554
|
+
scrollStrategy: this._scrollStrategy(),
|
|
555
|
+
panelClass: dialogConfig.panelClass,
|
|
556
|
+
hasBackdrop: dialogConfig.hasBackdrop,
|
|
557
|
+
direction: dialogConfig.direction
|
|
558
|
+
});
|
|
559
|
+
if (dialogConfig.backdropClass) {
|
|
560
|
+
state$$1.backdropClass = dialogConfig.backdropClass;
|
|
561
|
+
}
|
|
562
|
+
return state$$1;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Attaches an MdDialogContainer to a dialog's already-created overlay.
|
|
566
|
+
* @param {?} overlay Reference to the dialog's underlying overlay.
|
|
567
|
+
* @param {?} config The dialog configuration.
|
|
568
|
+
* @return {?} A promise resolving to a ComponentRef for the attached container.
|
|
569
|
+
*/
|
|
570
|
+
_attachDialogContainer(overlay, config) {
|
|
571
|
+
let /** @type {?} */ containerPortal = new ComponentPortal(MdDialogContainer, config.viewContainerRef);
|
|
572
|
+
let /** @type {?} */ containerRef = overlay.attach(containerPortal);
|
|
573
|
+
containerRef.instance._config = config;
|
|
574
|
+
return containerRef.instance;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Attaches the user-provided component to the already-created MdDialogContainer.
|
|
578
|
+
* @template T
|
|
579
|
+
* @param {?} componentOrTemplateRef The type of component being loaded into the dialog,
|
|
580
|
+
* or a TemplateRef to instantiate as the content.
|
|
581
|
+
* @param {?} dialogContainer Reference to the wrapping MdDialogContainer.
|
|
582
|
+
* @param {?} overlayRef Reference to the overlay in which the dialog resides.
|
|
583
|
+
* @param {?} config The dialog configuration.
|
|
584
|
+
* @return {?} A promise resolving to the MdDialogRef that should be returned to the user.
|
|
585
|
+
*/
|
|
586
|
+
_attachDialogContent(componentOrTemplateRef, dialogContainer, overlayRef, config) {
|
|
587
|
+
// Create a reference to the dialog we're creating in order to give the user a handle
|
|
588
|
+
// to modify and close it.
|
|
589
|
+
const /** @type {?} */ dialogRef = new MdDialogRef(overlayRef, dialogContainer, config.id);
|
|
590
|
+
// When the dialog backdrop is clicked, we want to close it.
|
|
591
|
+
if (config.hasBackdrop) {
|
|
592
|
+
overlayRef.backdropClick().subscribe(() => {
|
|
593
|
+
if (!dialogRef.disableClose) {
|
|
594
|
+
dialogRef.close();
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
if (componentOrTemplateRef instanceof TemplateRef) {
|
|
599
|
+
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, /** @type {?} */ ((null)), /** @type {?} */ ({ $implicit: config.data, dialogRef })));
|
|
600
|
+
}
|
|
601
|
+
else {
|
|
602
|
+
const /** @type {?} */ injector = this._createInjector(config, dialogRef, dialogContainer);
|
|
603
|
+
const /** @type {?} */ contentRef = dialogContainer.attachComponentPortal(new ComponentPortal(componentOrTemplateRef, undefined, injector));
|
|
604
|
+
dialogRef.componentInstance = contentRef.instance;
|
|
605
|
+
}
|
|
606
|
+
dialogRef
|
|
607
|
+
.updateSize(config.width, config.height)
|
|
608
|
+
.updatePosition(config.position);
|
|
609
|
+
return dialogRef;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
613
|
+
* of a dialog to close itself and, optionally, to return a value.
|
|
614
|
+
* @template T
|
|
615
|
+
* @param {?} config Config object that is used to construct the dialog.
|
|
616
|
+
* @param {?} dialogRef Reference to the dialog.
|
|
617
|
+
* @param {?} dialogContainer
|
|
618
|
+
* @return {?} The custom injector that can be used inside the dialog.
|
|
619
|
+
*/
|
|
620
|
+
_createInjector(config, dialogRef, dialogContainer) {
|
|
621
|
+
const /** @type {?} */ userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
622
|
+
const /** @type {?} */ injectionTokens = new WeakMap();
|
|
623
|
+
injectionTokens.set(MdDialogRef, dialogRef);
|
|
624
|
+
injectionTokens.set(MdDialogContainer, dialogContainer);
|
|
625
|
+
injectionTokens.set(MD_DIALOG_DATA, config.data);
|
|
626
|
+
return new PortalInjector(userInjector || this._injector, injectionTokens);
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Removes a dialog from the array of open dialogs.
|
|
630
|
+
* @param {?} dialogRef Dialog to be removed.
|
|
631
|
+
* @return {?}
|
|
632
|
+
*/
|
|
633
|
+
_removeOpenDialog(dialogRef) {
|
|
634
|
+
const /** @type {?} */ index = this.openDialogs.indexOf(dialogRef);
|
|
635
|
+
if (index > -1) {
|
|
636
|
+
this.openDialogs.splice(index, 1);
|
|
637
|
+
// no open dialogs are left, call next on afterAllClosed Subject
|
|
638
|
+
if (!this.openDialogs.length) {
|
|
639
|
+
this._afterAllClosed.next();
|
|
640
|
+
document.removeEventListener('keydown', this._boundKeydown);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Handles global key presses while there are open dialogs. Closes the
|
|
646
|
+
* top dialog when the user presses escape.
|
|
647
|
+
* @param {?} event
|
|
648
|
+
* @return {?}
|
|
649
|
+
*/
|
|
650
|
+
_handleKeydown(event) {
|
|
651
|
+
const /** @type {?} */ topDialog = this.openDialogs[this.openDialogs.length - 1];
|
|
652
|
+
const /** @type {?} */ canClose = topDialog ? !topDialog.disableClose : false;
|
|
653
|
+
if (event.keyCode === ESCAPE && canClose) {
|
|
654
|
+
topDialog.close();
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
MdDialog.decorators = [
|
|
659
|
+
{ type: Injectable },
|
|
660
|
+
];
|
|
661
|
+
/**
|
|
662
|
+
* @nocollapse
|
|
663
|
+
*/
|
|
664
|
+
MdDialog.ctorParameters = () => [
|
|
665
|
+
{ type: Overlay, },
|
|
666
|
+
{ type: Injector, },
|
|
667
|
+
{ type: Location, decorators: [{ type: Optional },] },
|
|
668
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MD_DIALOG_SCROLL_STRATEGY,] },] },
|
|
669
|
+
{ type: MdDialog, decorators: [{ type: Optional }, { type: SkipSelf },] },
|
|
670
|
+
];
|
|
671
|
+
/**
|
|
672
|
+
* Applies default options to the dialog config.
|
|
673
|
+
* @param {?=} config Config to be modified.
|
|
674
|
+
* @return {?} The new configuration object.
|
|
675
|
+
*/
|
|
676
|
+
function _applyConfigDefaults(config) {
|
|
677
|
+
return extendObject(new MdDialogConfig(), config);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Counter used to generate unique IDs for dialog elements.
|
|
682
|
+
*/
|
|
683
|
+
let dialogElementUid = 0;
|
|
684
|
+
/**
|
|
685
|
+
* Button that will close the current dialog.
|
|
686
|
+
*/
|
|
687
|
+
class MdDialogClose {
|
|
688
|
+
/**
|
|
689
|
+
* @param {?} dialogRef
|
|
690
|
+
*/
|
|
691
|
+
constructor(dialogRef) {
|
|
692
|
+
this.dialogRef = dialogRef;
|
|
693
|
+
/**
|
|
694
|
+
* Screenreader label for the button.
|
|
695
|
+
*/
|
|
696
|
+
this.ariaLabel = 'Close dialog';
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* @param {?} changes
|
|
700
|
+
* @return {?}
|
|
701
|
+
*/
|
|
702
|
+
ngOnChanges(changes) {
|
|
703
|
+
const /** @type {?} */ proxiedChange = changes._matDialogClose || changes._mdDialogClose ||
|
|
704
|
+
changes._matDialogCloseResult;
|
|
705
|
+
if (proxiedChange) {
|
|
706
|
+
this.dialogResult = proxiedChange.currentValue;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
MdDialogClose.decorators = [
|
|
711
|
+
{ type: Directive, args: [{
|
|
712
|
+
selector: `button[md-dialog-close], button[mat-dialog-close],
|
|
713
|
+
button[mdDialogClose], button[matDialogClose]`,
|
|
714
|
+
host: {
|
|
715
|
+
'(click)': 'dialogRef.close(dialogResult)',
|
|
716
|
+
'[attr.aria-label]': 'ariaLabel',
|
|
717
|
+
'type': 'button',
|
|
718
|
+
}
|
|
719
|
+
},] },
|
|
720
|
+
];
|
|
721
|
+
/**
|
|
722
|
+
* @nocollapse
|
|
723
|
+
*/
|
|
724
|
+
MdDialogClose.ctorParameters = () => [
|
|
725
|
+
{ type: MdDialogRef, },
|
|
726
|
+
];
|
|
727
|
+
MdDialogClose.propDecorators = {
|
|
728
|
+
'ariaLabel': [{ type: Input, args: ['aria-label',] },],
|
|
729
|
+
'dialogResult': [{ type: Input, args: ['md-dialog-close',] },],
|
|
730
|
+
'_matDialogClose': [{ type: Input, args: ['matDialogClose',] },],
|
|
731
|
+
'_mdDialogClose': [{ type: Input, args: ['mdDialogClose',] },],
|
|
732
|
+
'_matDialogCloseResult': [{ type: Input, args: ['mat-dialog-close',] },],
|
|
733
|
+
};
|
|
734
|
+
/**
|
|
735
|
+
* Title of a dialog element. Stays fixed to the top of the dialog when scrolling.
|
|
736
|
+
*/
|
|
737
|
+
class MdDialogTitle {
|
|
738
|
+
/**
|
|
739
|
+
* @param {?} _container
|
|
740
|
+
*/
|
|
741
|
+
constructor(_container) {
|
|
742
|
+
this._container = _container;
|
|
743
|
+
this.id = `md-dialog-title-${dialogElementUid++}`;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* @return {?}
|
|
747
|
+
*/
|
|
748
|
+
ngOnInit() {
|
|
749
|
+
if (this._container && !this._container._ariaLabelledBy) {
|
|
750
|
+
Promise.resolve().then(() => this._container._ariaLabelledBy = this.id);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
MdDialogTitle.decorators = [
|
|
755
|
+
{ type: Directive, args: [{
|
|
756
|
+
selector: '[md-dialog-title], [mat-dialog-title], [mdDialogTitle], [matDialogTitle]',
|
|
757
|
+
host: {
|
|
758
|
+
'class': 'mat-dialog-title',
|
|
759
|
+
'[id]': 'id',
|
|
760
|
+
},
|
|
761
|
+
},] },
|
|
762
|
+
];
|
|
763
|
+
/**
|
|
764
|
+
* @nocollapse
|
|
765
|
+
*/
|
|
766
|
+
MdDialogTitle.ctorParameters = () => [
|
|
767
|
+
{ type: MdDialogContainer, decorators: [{ type: Optional },] },
|
|
768
|
+
];
|
|
769
|
+
MdDialogTitle.propDecorators = {
|
|
770
|
+
'id': [{ type: Input },],
|
|
771
|
+
};
|
|
772
|
+
/**
|
|
773
|
+
* Scrollable content container of a dialog.
|
|
774
|
+
*/
|
|
775
|
+
class MdDialogContent {
|
|
776
|
+
}
|
|
777
|
+
MdDialogContent.decorators = [
|
|
778
|
+
{ type: Directive, args: [{
|
|
779
|
+
selector: `[md-dialog-content], md-dialog-content, [mat-dialog-content], mat-dialog-content,
|
|
780
|
+
[mdDialogContent], [matDialogContent]`,
|
|
781
|
+
host: { 'class': 'mat-dialog-content' }
|
|
782
|
+
},] },
|
|
783
|
+
];
|
|
784
|
+
/**
|
|
785
|
+
* @nocollapse
|
|
786
|
+
*/
|
|
787
|
+
MdDialogContent.ctorParameters = () => [];
|
|
788
|
+
/**
|
|
789
|
+
* Container for the bottom action buttons in a dialog.
|
|
790
|
+
* Stays fixed to the bottom when scrolling.
|
|
791
|
+
*/
|
|
792
|
+
class MdDialogActions {
|
|
793
|
+
}
|
|
794
|
+
MdDialogActions.decorators = [
|
|
795
|
+
{ type: Directive, args: [{
|
|
796
|
+
selector: `[md-dialog-actions], md-dialog-actions, [mat-dialog-actions], mat-dialog-actions,
|
|
797
|
+
[mdDialogActions], [matDialogActions]`,
|
|
798
|
+
host: { 'class': 'mat-dialog-actions' }
|
|
799
|
+
},] },
|
|
800
|
+
];
|
|
801
|
+
/**
|
|
802
|
+
* @nocollapse
|
|
803
|
+
*/
|
|
804
|
+
MdDialogActions.ctorParameters = () => [];
|
|
805
|
+
|
|
806
|
+
class MdDialogModule {
|
|
807
|
+
}
|
|
808
|
+
MdDialogModule.decorators = [
|
|
809
|
+
{ type: NgModule, args: [{
|
|
810
|
+
imports: [
|
|
811
|
+
CommonModule,
|
|
812
|
+
OverlayModule,
|
|
813
|
+
PortalModule,
|
|
814
|
+
A11yModule,
|
|
815
|
+
MdCommonModule,
|
|
816
|
+
],
|
|
817
|
+
exports: [
|
|
818
|
+
MdDialogContainer,
|
|
819
|
+
MdDialogClose,
|
|
820
|
+
MdDialogTitle,
|
|
821
|
+
MdDialogContent,
|
|
822
|
+
MdDialogActions,
|
|
823
|
+
MdCommonModule,
|
|
824
|
+
],
|
|
825
|
+
declarations: [
|
|
826
|
+
MdDialogContainer,
|
|
827
|
+
MdDialogClose,
|
|
828
|
+
MdDialogTitle,
|
|
829
|
+
MdDialogActions,
|
|
830
|
+
MdDialogContent,
|
|
831
|
+
],
|
|
832
|
+
providers: [
|
|
833
|
+
MdDialog,
|
|
834
|
+
MD_DIALOG_SCROLL_STRATEGY_PROVIDER,
|
|
835
|
+
],
|
|
836
|
+
entryComponents: [MdDialogContainer],
|
|
837
|
+
},] },
|
|
838
|
+
];
|
|
839
|
+
/**
|
|
840
|
+
* @nocollapse
|
|
841
|
+
*/
|
|
842
|
+
MdDialogModule.ctorParameters = () => [];
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Generated bundle index. Do not edit.
|
|
846
|
+
*/
|
|
847
|
+
|
|
848
|
+
export { MdDialogModule, MD_DIALOG_DATA, MD_DIALOG_SCROLL_STRATEGY, MD_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, MD_DIALOG_SCROLL_STRATEGY_PROVIDER, MdDialog, throwMdDialogContentAlreadyAttachedError, MdDialogContainer, MdDialogClose, MdDialogTitle, MdDialogContent, MdDialogActions, MdDialogConfig, MdDialogRef, MD_DIALOG_DATA as MAT_DIALOG_DATA, MD_DIALOG_SCROLL_STRATEGY as MAT_DIALOG_SCROLL_STRATEGY, MD_DIALOG_SCROLL_STRATEGY_PROVIDER as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, MD_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY as MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, MdDialog as MatDialog, MdDialogActions as MatDialogActions, MdDialogClose as MatDialogClose, MdDialogConfig as MatDialogConfig, MdDialogContainer as MatDialogContainer, MdDialogContent as MatDialogContent, MdDialogModule as MatDialogModule, MdDialogRef as MatDialogRef, MdDialogTitle as MatDialogTitle };
|
|
849
|
+
//# sourceMappingURL=dialog.js.map
|