@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 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","sources":["../../../src/lib/icon/index.ts","../../../src/lib/icon/icon-module.ts","../../../src/lib/icon/icon.ts","../../../src/lib/icon/icon-registry.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport {MdIconModule,MdIconBase,_MdIconMixinBase,MdIcon,getMdIconNameNotFoundError,getMdIconNoHttpProviderError,getMdIconFailedToSanitizeError,MdIconRegistry,ICON_REGISTRY_PROVIDER_FACTORY,ICON_REGISTRY_PROVIDER,MatIcon,MatIconBase,MatIconModule,MatIconRegistry} from './public_api';\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {NgModule} from '@angular/core';\nimport {MdCommonModule} from '@angular/material/core';\nimport {MdIcon} from './icon';\nimport {ICON_REGISTRY_PROVIDER} from './icon-registry';\nexport class MdIconModule {static decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n imports: [MdCommonModule],\n exports: [MdIcon, MdCommonModule],\n declarations: [MdIcon],\n providers: [ICON_REGISTRY_PROVIDER],\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\nfunction MdIconModule_tsickle_Closure_declarations() {\n/** @type {?} */\nMdIconModule.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nMdIconModule.ctorParameters;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n OnChanges,\n OnInit,\n Renderer2,\n SimpleChanges,\n ViewEncapsulation,\n Attribute,\n} from '@angular/core';\nimport {MdIconRegistry} from './icon-registry';\nimport {CanColor, mixinColor} from '@angular/material/core';\nimport {first} from '@angular/material/core';\n/**\n * \\@docs-private\n */\nexport class MdIconBase {\n/**\n * @param {?} _renderer\n * @param {?} _elementRef\n */\nconstructor(public _renderer: Renderer2,\npublic _elementRef: ElementRef) {}\n}\n\nfunction MdIconBase_tsickle_Closure_declarations() {\n/** @type {?} */\nMdIconBase.prototype._renderer;\n/** @type {?} */\nMdIconBase.prototype._elementRef;\n}\n\nexport const /** @type {?} */ _MdIconMixinBase = mixinColor(MdIconBase);\n/**\n * Component to display an icon. It can be used in the following ways:\n * \n * - Specify the svgIcon input to load an SVG icon from a URL previously registered with the\n * addSvgIcon, addSvgIconInNamespace, addSvgIconSet, or addSvgIconSetInNamespace methods of\n * MdIconRegistry. If the svgIcon value contains a colon it is assumed to be in the format\n * \"[namespace]:[name]\", if not the value will be the name of an icon in the default namespace.\n * Examples:\n * <md-icon svgIcon=\"left-arrow\"></md-icon>\n * <md-icon svgIcon=\"animals:cat\"></md-icon>\n * \n * - Use a font ligature as an icon by putting the ligature text in the content of the <md-icon>\n * component. By default the Material icons font is used as described at\n * http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an\n * alternate font by setting the fontSet input to either the CSS class to apply to use the\n * desired font, or to an alias previously registered with MdIconRegistry.registerFontClassAlias.\n * Examples:\n * <md-icon>home</md-icon>\n * <md-icon fontSet=\"myfont\">sun</md-icon>\n * \n * - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the\n * font, and the fontIcon input to specify the icon. Typically the fontIcon will specify a\n * CSS class which causes the glyph to be displayed via a :before selector, as in\n * https://fortawesome.github.io/Font-Awesome/examples/\n * Example:\n * <md-icon fontSet=\"fa\" fontIcon=\"alarm\"></md-icon>\n */\nexport class MdIcon extends _MdIconMixinBase implements OnChanges, OnInit, CanColor {\n/**\n * Name of the icon in the SVG icon set.\n */\nsvgIcon: string;\n/**\n * Font set that the icon is a part of.\n */\nfontSet: string;\n/**\n * Name of an icon within a font set.\n */\nfontIcon: string;\nprivate _previousFontSetClass: string;\nprivate _previousFontIconClass: string;\n/**\n * @param {?} renderer\n * @param {?} elementRef\n * @param {?} _mdIconRegistry\n * @param {?} ariaHidden\n */\nconstructor(\n renderer: Renderer2,\n elementRef: ElementRef,\nprivate _mdIconRegistry: MdIconRegistry,\n ariaHidden: string) {\n super(renderer, elementRef);\n\n // If the user has not explicitly set aria-hidden, mark the icon as hidden, as this is\n // the right thing to do for the majority of icon use-cases.\n if (!ariaHidden) {\n renderer.setAttribute(elementRef.nativeElement, 'aria-hidden', 'true');\n }\n }\n/**\n * Splits an svgIcon binding value into its icon set and icon name components.\n * Returns a 2-element array of [(icon set), (icon name)].\n * The separator for the two fields is ':'. If there is no separator, an empty\n * string is returned for the icon set and the entire value is returned for\n * the icon name. If the argument is falsy, returns an array of two empty strings.\n * Throws an error if the name contains two or more ':' separators.\n * Examples:\n * 'social:cake' -> ['social', 'cake']\n * 'penguin' -> ['', 'penguin']\n * null -> ['', '']\n * 'a:b:c' -> (throws Error)\n * @param {?} iconName\n * @return {?}\n */\nprivate _splitIconName(iconName: string): [string, string] {\n if (!iconName) {\n return ['', ''];\n }\n const /** @type {?} */ parts = iconName.split(':');\n switch (parts.length) {\n case 1: return ['', parts[0]]; // Use default namespace.\n case 2: return /** @type {?} */(( <[string, string]>parts));\n default: throw Error(`Invalid icon name: \"${iconName}\"`);\n }\n }\n/**\n * @param {?} changes\n * @return {?}\n */\nngOnChanges(changes: SimpleChanges) {\n // Only update the inline SVG icon if the inputs changed, to avoid unnecessary DOM operations.\n if (changes.svgIcon) {\n if (this.svgIcon) {\n const [namespace, iconName] = this._splitIconName(this.svgIcon);\n\n first.call(this._mdIconRegistry.getNamedSvgIcon(iconName, namespace)).subscribe(\n svg => this._setSvgElement(svg),\n (err: Error) => console.log(`Error retrieving icon: ${err.message}`));\n } else {\n this._clearSvgElement();\n }\n }\n\n if (this._usingFontIcon()) {\n this._updateFontIconClasses();\n }\n }\n/**\n * @return {?}\n */\nngOnInit() {\n // Update font classes because ngOnChanges won't be called if none of the inputs are present,\n // e.g. <md-icon>arrow</md-icon>. In this case we need to add a CSS class for the default font.\n if (this._usingFontIcon()) {\n this._updateFontIconClasses();\n }\n }\n/**\n * @return {?}\n */\nprivate _usingFontIcon(): boolean {\n return !this.svgIcon;\n }\n/**\n * @param {?} svg\n * @return {?}\n */\nprivate _setSvgElement(svg: SVGElement) {\n this._clearSvgElement();\n this._renderer.appendChild(this._elementRef.nativeElement, svg);\n }\n/**\n * @return {?}\n */\nprivate _clearSvgElement() {\n const /** @type {?} */ layoutElement = this._elementRef.nativeElement;\n const /** @type {?} */ childCount = layoutElement.childNodes.length;\n\n // Remove existing child nodes and add the new SVG element. Note that we can't\n // use innerHTML, because IE will throw if the element has a data binding.\n for (let /** @type {?} */ i = 0; i < childCount; i++) {\n this._renderer.removeChild(layoutElement, layoutElement.childNodes[i]);\n }\n }\n/**\n * @return {?}\n */\nprivate _updateFontIconClasses() {\n if (!this._usingFontIcon()) {\n return;\n }\n\n const /** @type {?} */ elem = this._elementRef.nativeElement;\n const /** @type {?} */ fontSetClass = this.fontSet ?\n this._mdIconRegistry.classNameForFontAlias(this.fontSet) :\n this._mdIconRegistry.getDefaultFontSetClass();\n\n if (fontSetClass != this._previousFontSetClass) {\n if (this._previousFontSetClass) {\n this._renderer.removeClass(elem, this._previousFontSetClass);\n }\n if (fontSetClass) {\n this._renderer.addClass(elem, fontSetClass);\n }\n this._previousFontSetClass = fontSetClass;\n }\n\n if (this.fontIcon != this._previousFontIconClass) {\n if (this._previousFontIconClass) {\n this._renderer.removeClass(elem, this._previousFontIconClass);\n }\n if (this.fontIcon) {\n this._renderer.addClass(elem, this.fontIcon);\n }\n this._previousFontIconClass = this.fontIcon;\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Component, args: [{\n moduleId: module.id,\n template: '<ng-content></ng-content>',\n selector: 'md-icon, mat-icon',\n styleUrls: ['icon.css'],\n inputs: ['color'],\n host: {\n 'role': 'img',\n 'class': 'mat-icon',\n },\n encapsulation: ViewEncapsulation.None,\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n}, ] },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: Renderer2, },\n{type: ElementRef, },\n{type: MdIconRegistry, },\n{type: undefined, decorators: [{ type: Attribute, args: ['aria-hidden', ] }, ]},\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'svgIcon': [{ type: Input },],\n'fontSet': [{ type: Input },],\n'fontIcon': [{ type: Input },],\n};\n}\n\nfunction MdIcon_tsickle_Closure_declarations() {\n/** @type {?} */\nMdIcon.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nMdIcon.ctorParameters;\n/** @type {?} */\nMdIcon.propDecorators;\n/**\n * Name of the icon in the SVG icon set.\n * @type {?}\n */\nMdIcon.prototype.svgIcon;\n/**\n * Font set that the icon is a part of.\n * @type {?}\n */\nMdIcon.prototype.fontSet;\n/**\n * Name of an icon within a font set.\n * @type {?}\n */\nMdIcon.prototype.fontIcon;\n/** @type {?} */\nMdIcon.prototype._previousFontSetClass;\n/** @type {?} */\nMdIcon.prototype._previousFontIconClass;\n/** @type {?} */\nMdIcon.prototype._mdIconRegistry;\n}\n\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nimport {Injectable, Optional, SecurityContext, SkipSelf} from '@angular/core';\nimport {Http} from '@angular/http';\nimport {\n catchOperator,\n doOperator,\n finallyOperator,\n map,\n RxChain,\n share,\n} from '@angular/material/core';\nimport {DomSanitizer, SafeResourceUrl} from '@angular/platform-browser';\nimport {Observable} from 'rxjs/Observable';\nimport {forkJoin} from 'rxjs/observable/forkJoin';\nimport {of as observableOf} from 'rxjs/observable/of';\nimport {_throw as observableThrow} from 'rxjs/observable/throw';\n/**\n * Returns an exception to be thrown in the case when attempting to\n * load an icon with a name that cannot be found.\n * \\@docs-private\n * @param {?} iconName\n * @return {?}\n */\nexport function getMdIconNameNotFoundError(iconName: string): Error {\n return Error(`Unable to find icon with the name \"${iconName}\"`);\n}\n/**\n * Returns an exception to be thrown when the consumer attempts to use\n * `<md-icon>` without including \\@angular/http.\n * \\@docs-private\n * @return {?}\n */\nexport function getMdIconNoHttpProviderError(): Error {\n return Error('Could not find Http provider for use with Angular Material icons. ' +\n 'Please include the HttpModule from @angular/http in your app imports.');\n}\n/**\n * Returns an exception to be thrown when a URL couldn't be sanitized.\n * \\@docs-private\n * @param {?} url URL that was attempted to be sanitized.\n * @return {?}\n */\nexport function getMdIconFailedToSanitizeError(url: SafeResourceUrl): Error {\n return Error(`The URL provided to MdIconRegistry was not trusted as a resource URL ` +\n `via Angular's DomSanitizer. Attempted URL was \"${url}\".`);\n}\n/**\n * Configuration for an icon, including the URL and possibly the cached SVG element.\n * \\@docs-private\n */\nclass SvgIconConfig {\n svgElement: SVGElement | null = null;\n/**\n * @param {?} url\n */\nconstructor(public url: SafeResourceUrl) { }\n}\n\nfunction SvgIconConfig_tsickle_Closure_declarations() {\n/** @type {?} */\nSvgIconConfig.prototype.svgElement;\n/** @type {?} */\nSvgIconConfig.prototype.url;\n}\n\n/**\n * Service to register and display icons used by the <md-icon> component.\n * - Registers icon URLs by namespace and name.\n * - Registers icon set URLs by namespace.\n * - Registers aliases for CSS classes, for use with icon fonts.\n * - Loads icons from URLs and extracts individual icons from icon sets.\n */\nexport class MdIconRegistry {\n/**\n * URLs and cached SVG elements for individual icons. Keys are of the format \"[namespace]:[icon]\".\n */\nprivate _svgIconConfigs = new Map<string, SvgIconConfig>();\n/**\n * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.\n * Multiple icon sets can be registered under the same namespace.\n */\nprivate _iconSetConfigs = new Map<string, SvgIconConfig[]>();\n/**\n * Cache for icons loaded by direct URLs.\n */\nprivate _cachedIconsByUrl = new Map<string, SVGElement>();\n/**\n * In-progress icon fetches. Used to coalesce multiple requests to the same URL.\n */\nprivate _inProgressUrlFetches = new Map<string, Observable<string>>();\n/**\n * Map from font identifiers to their CSS class names. Used for icon fonts.\n */\nprivate _fontCssClassesByAlias = new Map<string, string>();\n/**\n * The CSS class to apply when an <md-icon> component has no icon name, url, or font specified.\n * The default 'material-icons' value assumes that the material icon font has been loaded as\n * described at http://google.github.io/material-design-icons/#icon-font-for-the-web\n */\nprivate _defaultFontSetClass = 'material-icons';\n/**\n * @param {?} _http\n * @param {?} _sanitizer\n */\nconstructor(\nprivate _http: Http,\nprivate _sanitizer: DomSanitizer) {}\n/**\n * Registers an icon by URL in the default namespace.\n * @param {?} iconName Name under which the icon should be registered.\n * @param {?} url\n * @return {?}\n */\naddSvgIcon(iconName: string, url: SafeResourceUrl): this {\n return this.addSvgIconInNamespace('', iconName, url);\n }\n/**\n * Registers an icon by URL in the specified namespace.\n * @param {?} namespace Namespace in which the icon should be registered.\n * @param {?} iconName Name under which the icon should be registered.\n * @param {?} url\n * @return {?}\n */\naddSvgIconInNamespace(namespace: string, iconName: string, url: SafeResourceUrl): this {\n const /** @type {?} */ key = iconKey(namespace, iconName);\n this._svgIconConfigs.set(key, new SvgIconConfig(url));\n return this;\n }\n/**\n * Registers an icon set by URL in the default namespace.\n * @param {?} url\n * @return {?}\n */\naddSvgIconSet(url: SafeResourceUrl): this {\n return this.addSvgIconSetInNamespace('', url);\n }\n/**\n * Registers an icon set by URL in the specified namespace.\n * @param {?} namespace Namespace in which to register the icon set.\n * @param {?} url\n * @return {?}\n */\naddSvgIconSetInNamespace(namespace: string, url: SafeResourceUrl): this {\n const /** @type {?} */ config = new SvgIconConfig(url);\n const /** @type {?} */ configNamespace = this._iconSetConfigs.get(namespace);\n\n if (configNamespace) {\n configNamespace.push(config);\n } else {\n this._iconSetConfigs.set(namespace, [config]);\n }\n return this;\n }\n/**\n * Defines an alias for a CSS class name to be used for icon fonts. Creating an mdIcon\n * component with the alias as the fontSet input will cause the class name to be applied\n * to the <md-icon> element.\n * \n * @param {?} alias Alias for the font.\n * @param {?=} className Class name override to be used instead of the alias.\n * @return {?}\n */\nregisterFontClassAlias(alias: string, className = alias): this {\n this._fontCssClassesByAlias.set(alias, className);\n return this;\n }\n/**\n * Returns the CSS class name associated with the alias by a previous call to\n * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.\n * @param {?} alias\n * @return {?}\n */\nclassNameForFontAlias(alias: string): string {\n return this._fontCssClassesByAlias.get(alias) || alias;\n }\n/**\n * Sets the CSS class name to be used for icon fonts when an <md-icon> component does not\n * have a fontSet input value, and is not loading an icon by name or URL.\n * \n * @param {?} className\n * @return {?}\n */\nsetDefaultFontSetClass(className: string): this {\n this._defaultFontSetClass = className;\n return this;\n }\n/**\n * Returns the CSS class name to be used for icon fonts when an <md-icon> component does not\n * have a fontSet input value, and is not loading an icon by name or URL.\n * @return {?}\n */\ngetDefaultFontSetClass(): string {\n return this._defaultFontSetClass;\n }\n/**\n * Returns an Observable that produces the icon (as an <svg> DOM element) from the given URL.\n * The response from the URL may be cached so this will not always cause an HTTP request, but\n * the produced element will always be a new copy of the originally fetched icon. (That is,\n * it will not contain any modifications made to elements previously returned).\n * \n * @param {?} safeUrl URL from which to fetch the SVG icon.\n * @return {?}\n */\ngetSvgIconFromUrl(safeUrl: SafeResourceUrl): Observable<SVGElement> {\n let /** @type {?} */ url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);\n\n if (!url) {\n throw getMdIconFailedToSanitizeError(safeUrl);\n }\n\n let /** @type {?} */ cachedIcon = this._cachedIconsByUrl.get(url);\n\n if (cachedIcon) {\n return observableOf(cloneSvg(cachedIcon));\n }\n\n return RxChain.from(this._loadSvgIconFromConfig(new SvgIconConfig(url)))\n .call(doOperator, svg => this._cachedIconsByUrl.set( /** @type {?} */((url)), svg))\n .call(map, svg => cloneSvg(svg))\n .result();\n }\n/**\n * Returns an Observable that produces the icon (as an <svg> DOM element) with the given name\n * and namespace. The icon must have been previously registered with addIcon or addIconSet;\n * if not, the Observable will throw an error.\n * \n * @param {?} name Name of the icon to be retrieved.\n * @param {?=} namespace Namespace in which to look for the icon.\n * @return {?}\n */\ngetNamedSvgIcon(name: string, namespace = ''): Observable<SVGElement> {\n // Return (copy of) cached icon if possible.\n const /** @type {?} */ key = iconKey(namespace, name);\n const /** @type {?} */ config = this._svgIconConfigs.get(key);\n\n if (config) {\n return this._getSvgFromConfig(config);\n }\n\n // See if we have any icon sets registered for the namespace.\n const /** @type {?} */ iconSetConfigs = this._iconSetConfigs.get(namespace);\n\n if (iconSetConfigs) {\n return this._getSvgFromIconSetConfigs(name, iconSetConfigs);\n }\n\n return observableThrow(getMdIconNameNotFoundError(key));\n }\n/**\n * Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not.\n * @param {?} config\n * @return {?}\n */\nprivate _getSvgFromConfig(config: SvgIconConfig): Observable<SVGElement> {\n if (config.svgElement) {\n // We already have the SVG element for this icon, return a copy.\n return observableOf(cloneSvg(config.svgElement));\n } else {\n // Fetch the icon from the config's URL, cache it, and return a copy.\n return RxChain.from(this._loadSvgIconFromConfig(config))\n .call(doOperator, svg => config.svgElement = svg)\n .call(map, svg => cloneSvg(svg))\n .result();\n }\n }\n/**\n * Attempts to find an icon with the specified name in any of the SVG icon sets.\n * First searches the available cached icons for a nested element with a matching name, and\n * if found copies the element to a new <svg> element. If not found, fetches all icon sets\n * that have not been cached, and searches again after all fetches are completed.\n * The returned Observable produces the SVG element if possible, and throws\n * an error if no icon with the specified name can be found.\n * @param {?} name\n * @param {?} iconSetConfigs\n * @return {?}\n */\nprivate _getSvgFromIconSetConfigs(name: string, iconSetConfigs: SvgIconConfig[]):\n Observable<SVGElement> {\n // For all the icon set SVG elements we've fetched, see if any contain an icon with the\n // requested name.\n const /** @type {?} */ namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n\n if (namedIcon) {\n // We could cache namedIcon in _svgIconConfigs, but since we have to make a copy every\n // time anyway, there's probably not much advantage compared to just always extracting\n // it from the icon set.\n return observableOf(namedIcon);\n }\n\n // Not found in any cached icon sets. If there are icon sets with URLs that we haven't\n // fetched, fetch them now and look for iconName in the results.\n const /** @type {?} */ iconSetFetchRequests: Observable<SVGElement | null>[] = iconSetConfigs\n .filter(iconSetConfig => !iconSetConfig.svgElement)\n .map(iconSetConfig => {\n return RxChain.from(this._loadSvgIconSetFromConfig(iconSetConfig))\n .call(catchOperator, (err: any): Observable<SVGElement | null> => {\n let /** @type {?} */ url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, iconSetConfig.url);\n\n // Swallow errors fetching individual URLs so the combined Observable won't\n // necessarily fail.\n console.log(`Loading icon set URL: ${url} failed: ${err}`);\n return observableOf(null);\n })\n .call(doOperator, svg => {\n // Cache the SVG element.\n if (svg) {\n iconSetConfig.svgElement = svg;\n }\n })\n .result();\n });\n\n // Fetch all the icon set URLs. When the requests complete, every IconSet should have a\n // cached SVG element (unless the request failed), and we can check again for the icon.\n return map.call(forkJoin.call(Observable, iconSetFetchRequests), () => {\n const /** @type {?} */ foundIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n\n if (!foundIcon) {\n throw getMdIconNameNotFoundError(name);\n }\n\n return foundIcon;\n });\n }\n/**\n * Searches the cached SVG elements for the given icon sets for a nested icon element whose \"id\"\n * tag matches the specified name. If found, copies the nested element to a new SVG element and\n * returns it. Returns null if no matching element is found.\n * @param {?} iconName\n * @param {?} iconSetConfigs\n * @return {?}\n */\nprivate _extractIconWithNameFromAnySet(iconName: string, iconSetConfigs: SvgIconConfig[]):\n SVGElement | null {\n // Iterate backwards, so icon sets added later have precedence.\n for (let /** @type {?} */ i = iconSetConfigs.length - 1; i >= 0; i--) {\n const /** @type {?} */ config = iconSetConfigs[i];\n if (config.svgElement) {\n const /** @type {?} */ foundIcon = this._extractSvgIconFromSet(config.svgElement, iconName);\n if (foundIcon) {\n return foundIcon;\n }\n }\n }\n return null;\n }\n/**\n * Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element\n * from it.\n * @param {?} config\n * @return {?}\n */\nprivate _loadSvgIconFromConfig(config: SvgIconConfig): Observable<SVGElement> {\n return map.call(this._fetchUrl(config.url),\n svgText => this._createSvgElementForSingleIcon(svgText));\n }\n/**\n * Loads the content of the icon set URL specified in the SvgIconConfig and creates an SVG element\n * from it.\n * @param {?} config\n * @return {?}\n */\nprivate _loadSvgIconSetFromConfig(config: SvgIconConfig): Observable<SVGElement> {\n // TODO: Document that icons should only be loaded from trusted sources.\n return map.call(this._fetchUrl(config.url),\n svgText => this._svgElementFromString(svgText));\n }\n/**\n * Creates a DOM element from the given SVG string, and adds default attributes.\n * @param {?} responseText\n * @return {?}\n */\nprivate _createSvgElementForSingleIcon(responseText: string): SVGElement {\n const /** @type {?} */ svg = this._svgElementFromString(responseText);\n this._setSvgAttributes(svg);\n return svg;\n }\n/**\n * Searches the cached element of the given SvgIconConfig for a nested icon element whose \"id\"\n * tag matches the specified name. If found, copies the nested element to a new SVG element and\n * returns it. Returns null if no matching element is found.\n * @param {?} iconSet\n * @param {?} iconName\n * @return {?}\n */\nprivate _extractSvgIconFromSet(iconSet: SVGElement, iconName: string): SVGElement | null {\n const /** @type {?} */ iconNode = iconSet.querySelector('#' + iconName);\n\n if (!iconNode) {\n return null;\n }\n\n // If the icon node is itself an <svg> node, clone and return it directly. If not, set it as\n // the content of a new <svg> node.\n if (iconNode.tagName.toLowerCase() === 'svg') {\n return this._setSvgAttributes( /** @type {?} */((iconNode.cloneNode(true) as SVGElement)));\n }\n\n // If the node is a <symbol>, it won't be rendered so we have to convert it into <svg>. Note\n // that the same could be achieved by referring to it via <use href=\"#id\">, however the <use>\n // tag is problematic on Firefox, because it needs to include the current page path.\n if (iconNode.nodeName.toLowerCase() === 'symbol') {\n return this._setSvgAttributes(this._toSvgElement(iconNode));\n }\n\n // createElement('SVG') doesn't work as expected; the DOM ends up with\n // the correct nodes, but the SVG content doesn't render. Instead we\n // have to create an empty SVG node using innerHTML and append its content.\n // Elements created using DOMParser.parseFromString have the same problem.\n // http://stackoverflow.com/questions/23003278/svg-innerhtml-in-firefox-can-not-display\n const /** @type {?} */ svg = this._svgElementFromString('<svg></svg>');\n // Clone the node so we don't remove it from the parent icon set element.\n svg.appendChild(iconNode.cloneNode(true));\n\n return this._setSvgAttributes(svg);\n }\n/**\n * Creates a DOM element from the given SVG string.\n * @param {?} str\n * @return {?}\n */\nprivate _svgElementFromString(str: string): SVGElement {\n // TODO: Is there a better way than innerHTML? Renderer doesn't appear to have a method for\n // creating an element from an HTML string.\n const /** @type {?} */ div = document.createElement('DIV');\n div.innerHTML = str;\n const /** @type {?} */ svg = /** @type {?} */(( div.querySelector('svg') as SVGElement));\n if (!svg) {\n throw Error('<svg> tag not found');\n }\n return svg;\n }\n/**\n * Converts an element into an SVG node by cloning all of its children.\n * @param {?} element\n * @return {?}\n */\nprivate _toSvgElement(element: Element): SVGElement {\n let /** @type {?} */ svg = this._svgElementFromString('<svg></svg>');\n\n for (let /** @type {?} */ i = 0; i < element.childNodes.length; i++) {\n if (element.childNodes[i].nodeType === Node.ELEMENT_NODE) {\n svg.appendChild(element.childNodes[i].cloneNode(true));\n }\n }\n\n return svg;\n }\n/**\n * Sets the default attributes for an SVG element to be used as an icon.\n * @param {?} svg\n * @return {?}\n */\nprivate _setSvgAttributes(svg: SVGElement): SVGElement {\n if (!svg.getAttribute('xmlns')) {\n svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n }\n svg.setAttribute('fit', '');\n svg.setAttribute('height', '100%');\n svg.setAttribute('width', '100%');\n svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');\n svg.setAttribute('focusable', 'false'); // Disable IE11 default behavior to make SVGs focusable.\n return svg;\n }\n/**\n * Returns an Observable which produces the string contents of the given URL. Results may be\n * cached, so future calls with the same URL may not cause another HTTP request.\n * @param {?} safeUrl\n * @return {?}\n */\nprivate _fetchUrl(safeUrl: SafeResourceUrl): Observable<string> {\n if (!this._http) {\n throw getMdIconNoHttpProviderError();\n }\n\n const /** @type {?} */ url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);\n\n if (!url) {\n throw getMdIconFailedToSanitizeError(safeUrl);\n }\n\n // Store in-progress fetches to avoid sending a duplicate request for a URL when there is\n // already a request in progress for that URL. It's necessary to call share() on the\n // Observable returned by http.get() so that multiple subscribers don't cause multiple XHRs.\n const /** @type {?} */ inProgressFetch = this._inProgressUrlFetches.get(url);\n\n if (inProgressFetch) {\n return inProgressFetch;\n }\n\n // TODO(jelbourn): for some reason, the `finally` operator \"loses\" the generic type on the\n // Observable. Figure out why and fix it.\n const /** @type {?} */ req = RxChain.from(this._http.get(url))\n .call(map, response => response.text())\n .call(finallyOperator, () => this._inProgressUrlFetches.delete(url))\n .call(share)\n .result();\n\n this._inProgressUrlFetches.set(url, req);\n return req;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/**\n * @nocollapse\n */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: Http, decorators: [{ type: Optional }, ]},\n{type: DomSanitizer, },\n];\n}\n\nfunction MdIconRegistry_tsickle_Closure_declarations() {\n/** @type {?} */\nMdIconRegistry.decorators;\n/**\n * @nocollapse\n * @type {?}\n */\nMdIconRegistry.ctorParameters;\n/**\n * URLs and cached SVG elements for individual icons. Keys are of the format \"[namespace]:[icon]\".\n * @type {?}\n */\nMdIconRegistry.prototype._svgIconConfigs;\n/**\n * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.\n * Multiple icon sets can be registered under the same namespace.\n * @type {?}\n */\nMdIconRegistry.prototype._iconSetConfigs;\n/**\n * Cache for icons loaded by direct URLs.\n * @type {?}\n */\nMdIconRegistry.prototype._cachedIconsByUrl;\n/**\n * In-progress icon fetches. Used to coalesce multiple requests to the same URL.\n * @type {?}\n */\nMdIconRegistry.prototype._inProgressUrlFetches;\n/**\n * Map from font identifiers to their CSS class names. Used for icon fonts.\n * @type {?}\n */\nMdIconRegistry.prototype._fontCssClassesByAlias;\n/**\n * The CSS class to apply when an <md-icon> component has no icon name, url, or font specified.\n * The default 'material-icons' value assumes that the material icon font has been loaded as\n * described at http://google.github.io/material-design-icons/#icon-font-for-the-web\n * @type {?}\n */\nMdIconRegistry.prototype._defaultFontSetClass;\n/** @type {?} */\nMdIconRegistry.prototype._http;\n/** @type {?} */\nMdIconRegistry.prototype._sanitizer;\n}\n\n/**\n * \\@docs-private\n * @param {?} parentRegistry\n * @param {?} http\n * @param {?} sanitizer\n * @return {?}\n */\nexport function ICON_REGISTRY_PROVIDER_FACTORY(\n parentRegistry: MdIconRegistry, http: Http, sanitizer: DomSanitizer) {\n return parentRegistry || new MdIconRegistry(http, sanitizer);\n}\n/**\n * \\@docs-private\n */\nexport const ICON_REGISTRY_PROVIDER = {\n // If there is already an MdIconRegistry available, use that. Otherwise, provide a new one.\n provide: MdIconRegistry,\n deps: [[new Optional(), new SkipSelf(), MdIconRegistry], [new Optional(), Http], DomSanitizer],\n useFactory: ICON_REGISTRY_PROVIDER_FACTORY\n};\n/**\n * Clones an SVGElement while preserving type information.\n * @param {?} svg\n * @return {?}\n */\nfunction cloneSvg(svg: SVGElement): SVGElement {\n return /** @type {?} */(( svg.cloneNode(true) as SVGElement));\n}\n/**\n * Returns the cache key to use for an icon namespace and name.\n * @param {?} namespace\n * @param {?} name\n * @return {?}\n */\nfunction iconKey(namespace: string, name: string) {\n return namespace + ':' + name;\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"],"names":["observableOf","observableThrow"],"mappings":";;;;;;;;;;;;;;;;AGwBA;;;;;;;AAOA,AAAA,SAAA,0BAAA,CAFC,QAAA,EAED;IACE,OAFO,KAAA,CAAM,CAEf,mCAAA,EAFgB,QAAsC,CAEtD,CAAA,CAF8D,CAAG,CAAC;CAGjE;;;;;;;AAOD,AAAA,SAAA,4BAAA,GAAA;IACE,OADO,KAAA,CAAM,oEAAC;QAEd,uEAAA,CADqF,CAAC;CAEvF;;;;;;;AAOD,AAAA,SAAA,8BAAA,CAAC,GAAA,EAAD;IACE,OAAO,KAAA,CAAM,CAAf,qEAAA,CAAgB;QACD,CAAf,+CAAA,EAAiE,GAAC,CAAlE,EAAA,CAAqE,CAAI,CAAC;CACzE;;;;;AAKD,MAAA,aAAA,CAAA;;;;IAKA,WAAA,CAFqB,GAAK,EAE1B;QAFqB,IAArB,CAAA,GAAqB,GAAA,GAAA,CAAK;QAFxB,IAAF,CAAA,UAAY,GACsB,IAAA,CAAK;KACG;CAGzC;AAED,AAOA;;;;;;;AAOA,AAAA,MAAA,cAAA,CAAA;;;;;IAgCA,WAAA,CAZuB,KAAO,EAAc,UAAY,EAYxD;QAZuB,IAAvB,CAAA,KAAuB,GAAA,KAAA,CAAO;QAAc,IAA5C,CAAA,UAA4C,GAAA,UAAA,CAAY;;;;QAxBrD,IAAH,CAAA,eAAG,GAAA,IAAA,GAAA,EAAA,CAAA;;;;;QAMA,IAAH,CAAA,eAAG,GAAA,IAAA,GAAA,EAAA,CAAA;;;;QAGA,IAAH,CAAA,iBAAG,GAAA,IAAA,GAAA,EAAA,CAAA;;;;QAGA,IAAH,CA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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 { Directive, ElementRef, Inject, Input, NgModule, Optional, Renderer2, Self } from '@angular/core';
|
|
9
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
10
|
+
import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
11
|
+
import { Platform, getSupportedInputTypes } from '@angular/cdk/platform';
|
|
12
|
+
import { MD_ERROR_GLOBAL_OPTIONS, PlatformModule, defaultErrorStateMatcher } from '@angular/material/core';
|
|
13
|
+
import { Subject } from 'rxjs/Subject';
|
|
14
|
+
import { MdFormFieldControl, MdFormFieldModule } from '@angular/material/form-field';
|
|
15
|
+
import { CommonModule } from '@angular/common';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* \@docs-private
|
|
19
|
+
* @param {?} type
|
|
20
|
+
* @return {?}
|
|
21
|
+
*/
|
|
22
|
+
function getMdInputUnsupportedTypeError(type) {
|
|
23
|
+
return Error(`Input type "${type}" isn't supported by mdInput.`);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Invalid input type. Using one of these will throw an MdInputUnsupportedTypeError.
|
|
27
|
+
const MD_INPUT_INVALID_TYPES = [
|
|
28
|
+
'button',
|
|
29
|
+
'checkbox',
|
|
30
|
+
'color',
|
|
31
|
+
'file',
|
|
32
|
+
'hidden',
|
|
33
|
+
'image',
|
|
34
|
+
'radio',
|
|
35
|
+
'range',
|
|
36
|
+
'reset',
|
|
37
|
+
'submit'
|
|
38
|
+
];
|
|
39
|
+
let nextUniqueId = 0;
|
|
40
|
+
/**
|
|
41
|
+
* Directive that allows a native input to work inside a `MdFormField`.
|
|
42
|
+
*/
|
|
43
|
+
class MdInput {
|
|
44
|
+
/**
|
|
45
|
+
* @param {?} _elementRef
|
|
46
|
+
* @param {?} _renderer
|
|
47
|
+
* @param {?} _platform
|
|
48
|
+
* @param {?} ngControl
|
|
49
|
+
* @param {?} _parentForm
|
|
50
|
+
* @param {?} _parentFormGroup
|
|
51
|
+
* @param {?} errorOptions
|
|
52
|
+
*/
|
|
53
|
+
constructor(_elementRef, _renderer, _platform, ngControl, _parentForm, _parentFormGroup, errorOptions) {
|
|
54
|
+
this._elementRef = _elementRef;
|
|
55
|
+
this._renderer = _renderer;
|
|
56
|
+
this._platform = _platform;
|
|
57
|
+
this.ngControl = ngControl;
|
|
58
|
+
this._parentForm = _parentForm;
|
|
59
|
+
this._parentFormGroup = _parentFormGroup;
|
|
60
|
+
/**
|
|
61
|
+
* Variables used as cache for getters and setters.
|
|
62
|
+
*/
|
|
63
|
+
this._type = 'text';
|
|
64
|
+
this._disabled = false;
|
|
65
|
+
this._required = false;
|
|
66
|
+
this._uid = `md-input-${nextUniqueId++}`;
|
|
67
|
+
this._previousNativeValue = this.value;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the input is focused.
|
|
70
|
+
*/
|
|
71
|
+
this.focused = false;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the input is in an error state.
|
|
74
|
+
*/
|
|
75
|
+
this.errorState = false;
|
|
76
|
+
/**
|
|
77
|
+
* Stream that emits whenever the state of the input changes such that the wrapping `MdFormField`
|
|
78
|
+
* needs to run change detection.
|
|
79
|
+
*/
|
|
80
|
+
this.stateChanges = new Subject();
|
|
81
|
+
/**
|
|
82
|
+
* Placeholder attribute of the element.
|
|
83
|
+
*/
|
|
84
|
+
this.placeholder = '';
|
|
85
|
+
this._neverEmptyInputTypes = [
|
|
86
|
+
'date',
|
|
87
|
+
'datetime',
|
|
88
|
+
'datetime-local',
|
|
89
|
+
'month',
|
|
90
|
+
'time',
|
|
91
|
+
'week'
|
|
92
|
+
].filter(t => getSupportedInputTypes().has(t));
|
|
93
|
+
// Force setter to be called in case id was not specified.
|
|
94
|
+
this.id = this.id;
|
|
95
|
+
this._errorOptions = errorOptions ? errorOptions : {};
|
|
96
|
+
this.errorStateMatcher = this._errorOptions.errorStateMatcher || defaultErrorStateMatcher;
|
|
97
|
+
// On some versions of iOS the caret gets stuck in the wrong place when holding down the delete
|
|
98
|
+
// key. In order to get around this we need to "jiggle" the caret loose. Since this bug only
|
|
99
|
+
// exists on iOS, we only bother to install the listener on iOS.
|
|
100
|
+
if (_platform.IOS) {
|
|
101
|
+
_renderer.listen(_elementRef.nativeElement, 'keyup', (event) => {
|
|
102
|
+
let el = event.target;
|
|
103
|
+
if (!el.value && !el.selectionStart && !el.selectionEnd) {
|
|
104
|
+
// Note: Just setting `0, 0` doesn't fix the issue. Setting `1, 1` fixes it for the first
|
|
105
|
+
// time that you type text and then hold delete. Toggling to `1, 1` and then back to
|
|
106
|
+
// `0, 0` seems to completely fix it.
|
|
107
|
+
el.setSelectionRange(1, 1);
|
|
108
|
+
el.setSelectionRange(0, 0);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Whether the element is disabled.
|
|
115
|
+
* @return {?}
|
|
116
|
+
*/
|
|
117
|
+
get disabled() { return this.ngControl ? this.ngControl.disabled : this._disabled; }
|
|
118
|
+
/**
|
|
119
|
+
* @param {?} value
|
|
120
|
+
* @return {?}
|
|
121
|
+
*/
|
|
122
|
+
set disabled(value) { this._disabled = coerceBooleanProperty(value); }
|
|
123
|
+
/**
|
|
124
|
+
* Unique id of the element.
|
|
125
|
+
* @return {?}
|
|
126
|
+
*/
|
|
127
|
+
get id() { return this._id; }
|
|
128
|
+
/**
|
|
129
|
+
* @param {?} value
|
|
130
|
+
* @return {?}
|
|
131
|
+
*/
|
|
132
|
+
set id(value) { this._id = value || this._uid; }
|
|
133
|
+
/**
|
|
134
|
+
* Whether the element is required.
|
|
135
|
+
* @return {?}
|
|
136
|
+
*/
|
|
137
|
+
get required() { return this._required; }
|
|
138
|
+
/**
|
|
139
|
+
* @param {?} value
|
|
140
|
+
* @return {?}
|
|
141
|
+
*/
|
|
142
|
+
set required(value) { this._required = coerceBooleanProperty(value); }
|
|
143
|
+
/**
|
|
144
|
+
* Input type of the element.
|
|
145
|
+
* @return {?}
|
|
146
|
+
*/
|
|
147
|
+
get type() { return this._type; }
|
|
148
|
+
/**
|
|
149
|
+
* @param {?} value
|
|
150
|
+
* @return {?}
|
|
151
|
+
*/
|
|
152
|
+
set type(value) {
|
|
153
|
+
this._type = value || 'text';
|
|
154
|
+
this._validateType();
|
|
155
|
+
// When using Angular inputs, developers are no longer able to set the properties on the native
|
|
156
|
+
// input element. To ensure that bindings for `type` work, we need to sync the setter
|
|
157
|
+
// with the native property. Textarea elements don't support the type property or attribute.
|
|
158
|
+
if (!this._isTextarea() && getSupportedInputTypes().has(this._type)) {
|
|
159
|
+
this._renderer.setProperty(this._elementRef.nativeElement, 'type', this._type);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* The input element's value.
|
|
164
|
+
* @return {?}
|
|
165
|
+
*/
|
|
166
|
+
get value() { return this._elementRef.nativeElement.value; }
|
|
167
|
+
/**
|
|
168
|
+
* @param {?} value
|
|
169
|
+
* @return {?}
|
|
170
|
+
*/
|
|
171
|
+
set value(value) {
|
|
172
|
+
if (value !== this.value) {
|
|
173
|
+
this._elementRef.nativeElement.value = value;
|
|
174
|
+
this.stateChanges.next();
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @return {?}
|
|
179
|
+
*/
|
|
180
|
+
ngOnChanges() {
|
|
181
|
+
this.stateChanges.next();
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @return {?}
|
|
185
|
+
*/
|
|
186
|
+
ngOnDestroy() {
|
|
187
|
+
this.stateChanges.complete();
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @return {?}
|
|
191
|
+
*/
|
|
192
|
+
ngDoCheck() {
|
|
193
|
+
if (this.ngControl) {
|
|
194
|
+
// We need to re-evaluate this on every change detection cycle, because there are some
|
|
195
|
+
// error triggers that we can't subscribe to (e.g. parent form submissions). This means
|
|
196
|
+
// that whatever logic is in here has to be super lean or we risk destroying the performance.
|
|
197
|
+
this._updateErrorState();
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
// When the input isn't used together with `@angular/forms`, we need to check manually for
|
|
201
|
+
// changes to the native `value` property in order to update the floating label.
|
|
202
|
+
this._dirtyCheckNativeValue();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Callback for the cases where the focused state of the input changes.
|
|
207
|
+
* @param {?} isFocused
|
|
208
|
+
* @return {?}
|
|
209
|
+
*/
|
|
210
|
+
_focusChanged(isFocused) {
|
|
211
|
+
if (isFocused !== this.focused) {
|
|
212
|
+
this.focused = isFocused;
|
|
213
|
+
this.stateChanges.next();
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @return {?}
|
|
218
|
+
*/
|
|
219
|
+
_onInput() {
|
|
220
|
+
// This is a noop function and is used to let Angular know whenever the value changes.
|
|
221
|
+
// Angular will run a new change detection each time the `input` event has been dispatched.
|
|
222
|
+
// It's necessary that Angular recognizes the value change, because when floatingLabel
|
|
223
|
+
// is set to false and Angular forms aren't used, the placeholder won't recognize the
|
|
224
|
+
// value changes and will not disappear.
|
|
225
|
+
// Listening to the input event wouldn't be necessary when the input is using the
|
|
226
|
+
// FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Re-evaluates the error state. This is only relevant with \@angular/forms.
|
|
230
|
+
* @return {?}
|
|
231
|
+
*/
|
|
232
|
+
_updateErrorState() {
|
|
233
|
+
const /** @type {?} */ oldState = this.errorState;
|
|
234
|
+
const /** @type {?} */ ngControl = this.ngControl;
|
|
235
|
+
const /** @type {?} */ parent = this._parentFormGroup || this._parentForm;
|
|
236
|
+
const /** @type {?} */ newState = ngControl && this.errorStateMatcher(/** @type {?} */ (ngControl.control), parent);
|
|
237
|
+
if (newState !== oldState) {
|
|
238
|
+
this.errorState = newState;
|
|
239
|
+
this.stateChanges.next();
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Does some manual dirty checking on the native input `value` property.
|
|
244
|
+
* @return {?}
|
|
245
|
+
*/
|
|
246
|
+
_dirtyCheckNativeValue() {
|
|
247
|
+
const /** @type {?} */ newValue = this.value;
|
|
248
|
+
if (this._previousNativeValue !== newValue) {
|
|
249
|
+
this._previousNativeValue = newValue;
|
|
250
|
+
this.stateChanges.next();
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Make sure the input is a supported type.
|
|
255
|
+
* @return {?}
|
|
256
|
+
*/
|
|
257
|
+
_validateType() {
|
|
258
|
+
if (MD_INPUT_INVALID_TYPES.indexOf(this._type) > -1) {
|
|
259
|
+
throw getMdInputUnsupportedTypeError(this._type);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Checks whether the input type is one of the types that are never empty.
|
|
264
|
+
* @return {?}
|
|
265
|
+
*/
|
|
266
|
+
_isNeverEmpty() {
|
|
267
|
+
return this._neverEmptyInputTypes.indexOf(this._type) > -1;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Checks whether the input is invalid based on the native validation.
|
|
271
|
+
* @return {?}
|
|
272
|
+
*/
|
|
273
|
+
_isBadInput() {
|
|
274
|
+
// The `validity` property won't be present on platform-server.
|
|
275
|
+
let /** @type {?} */ validity = ((this._elementRef.nativeElement)).validity;
|
|
276
|
+
return validity && validity.badInput;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Determines if the component host is a textarea. If not recognizable it returns false.
|
|
280
|
+
* @return {?}
|
|
281
|
+
*/
|
|
282
|
+
_isTextarea() {
|
|
283
|
+
let /** @type {?} */ nativeElement = this._elementRef.nativeElement;
|
|
284
|
+
// In Universal, we don't have access to `nodeName`, but the same can be achieved with `name`.
|
|
285
|
+
// Note that this shouldn't be necessary once Angular switches to an API that resembles the
|
|
286
|
+
// DOM closer.
|
|
287
|
+
let /** @type {?} */ nodeName = this._platform.isBrowser ? nativeElement.nodeName : nativeElement.name;
|
|
288
|
+
return nodeName ? nodeName.toLowerCase() === 'textarea' : false;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* @return {?}
|
|
292
|
+
*/
|
|
293
|
+
get empty() {
|
|
294
|
+
return !this._isNeverEmpty() &&
|
|
295
|
+
(this.value == null || this.value === '') &&
|
|
296
|
+
// Check if the input contains bad input. If so, we know that it only appears empty because
|
|
297
|
+
// the value failed to parse. From the user's perspective it is not empty.
|
|
298
|
+
// TODO(mmalerba): Add e2e test for bad input case.
|
|
299
|
+
!this._isBadInput();
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* @param {?} ids
|
|
303
|
+
* @return {?}
|
|
304
|
+
*/
|
|
305
|
+
setDescribedByIds(ids) { this._ariaDescribedby = ids.join(' '); }
|
|
306
|
+
/**
|
|
307
|
+
* @return {?}
|
|
308
|
+
*/
|
|
309
|
+
focus() { this._elementRef.nativeElement.focus(); }
|
|
310
|
+
}
|
|
311
|
+
MdInput.decorators = [
|
|
312
|
+
{ type: Directive, args: [{
|
|
313
|
+
selector: `input[mdInput], textarea[mdInput], input[matInput], textarea[matInput]`,
|
|
314
|
+
host: {
|
|
315
|
+
'class': 'mat-input-element mat-form-field-autofill-control',
|
|
316
|
+
// Native input properties that are overwritten by Angular inputs need to be synced with
|
|
317
|
+
// the native input element. Otherwise property bindings for those don't work.
|
|
318
|
+
'[id]': 'id',
|
|
319
|
+
'[placeholder]': 'placeholder',
|
|
320
|
+
'[disabled]': 'disabled',
|
|
321
|
+
'[required]': 'required',
|
|
322
|
+
'[attr.aria-describedby]': '_ariaDescribedby || null',
|
|
323
|
+
'[attr.aria-invalid]': 'errorState',
|
|
324
|
+
'(blur)': '_focusChanged(false)',
|
|
325
|
+
'(focus)': '_focusChanged(true)',
|
|
326
|
+
'(input)': '_onInput()',
|
|
327
|
+
},
|
|
328
|
+
providers: [{ provide: MdFormFieldControl, useExisting: MdInput }],
|
|
329
|
+
},] },
|
|
330
|
+
];
|
|
331
|
+
/**
|
|
332
|
+
* @nocollapse
|
|
333
|
+
*/
|
|
334
|
+
MdInput.ctorParameters = () => [
|
|
335
|
+
{ type: ElementRef, },
|
|
336
|
+
{ type: Renderer2, },
|
|
337
|
+
{ type: Platform, },
|
|
338
|
+
{ type: NgControl, decorators: [{ type: Optional }, { type: Self },] },
|
|
339
|
+
{ type: NgForm, decorators: [{ type: Optional },] },
|
|
340
|
+
{ type: FormGroupDirective, decorators: [{ type: Optional },] },
|
|
341
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MD_ERROR_GLOBAL_OPTIONS,] },] },
|
|
342
|
+
];
|
|
343
|
+
MdInput.propDecorators = {
|
|
344
|
+
'disabled': [{ type: Input },],
|
|
345
|
+
'id': [{ type: Input },],
|
|
346
|
+
'placeholder': [{ type: Input },],
|
|
347
|
+
'required': [{ type: Input },],
|
|
348
|
+
'type': [{ type: Input },],
|
|
349
|
+
'errorStateMatcher': [{ type: Input },],
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Directive to automatically resize a textarea to fit its content.
|
|
354
|
+
*/
|
|
355
|
+
class MdTextareaAutosize {
|
|
356
|
+
/**
|
|
357
|
+
* @param {?} _elementRef
|
|
358
|
+
* @param {?} _platform
|
|
359
|
+
*/
|
|
360
|
+
constructor(_elementRef, _platform) {
|
|
361
|
+
this._elementRef = _elementRef;
|
|
362
|
+
this._platform = _platform;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* @return {?}
|
|
366
|
+
*/
|
|
367
|
+
get minRows() { return this._minRows; }
|
|
368
|
+
/**
|
|
369
|
+
* @param {?} value
|
|
370
|
+
* @return {?}
|
|
371
|
+
*/
|
|
372
|
+
set minRows(value) {
|
|
373
|
+
this._minRows = value;
|
|
374
|
+
this._setMinHeight();
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* @return {?}
|
|
378
|
+
*/
|
|
379
|
+
get maxRows() { return this._maxRows; }
|
|
380
|
+
/**
|
|
381
|
+
* @param {?} value
|
|
382
|
+
* @return {?}
|
|
383
|
+
*/
|
|
384
|
+
set maxRows(value) {
|
|
385
|
+
this._maxRows = value;
|
|
386
|
+
this._setMaxHeight();
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* @return {?}
|
|
390
|
+
*/
|
|
391
|
+
get _matAutosizeMinRows() { return this.minRows; }
|
|
392
|
+
/**
|
|
393
|
+
* @param {?} v
|
|
394
|
+
* @return {?}
|
|
395
|
+
*/
|
|
396
|
+
set _matAutosizeMinRows(v) { this.minRows = v; }
|
|
397
|
+
/**
|
|
398
|
+
* @return {?}
|
|
399
|
+
*/
|
|
400
|
+
get _matAutosizeMaxRows() { return this.maxRows; }
|
|
401
|
+
/**
|
|
402
|
+
* @param {?} v
|
|
403
|
+
* @return {?}
|
|
404
|
+
*/
|
|
405
|
+
set _matAutosizeMaxRows(v) { this.maxRows = v; }
|
|
406
|
+
/**
|
|
407
|
+
* Sets the minimum height of the textarea as determined by minRows.
|
|
408
|
+
* @return {?}
|
|
409
|
+
*/
|
|
410
|
+
_setMinHeight() {
|
|
411
|
+
const /** @type {?} */ minHeight = this.minRows && this._cachedLineHeight ?
|
|
412
|
+
`${this.minRows * this._cachedLineHeight}px` : null;
|
|
413
|
+
if (minHeight) {
|
|
414
|
+
this._setTextareaStyle('minHeight', minHeight);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Sets the maximum height of the textarea as determined by maxRows.
|
|
419
|
+
* @return {?}
|
|
420
|
+
*/
|
|
421
|
+
_setMaxHeight() {
|
|
422
|
+
const /** @type {?} */ maxHeight = this.maxRows && this._cachedLineHeight ?
|
|
423
|
+
`${this.maxRows * this._cachedLineHeight}px` : null;
|
|
424
|
+
if (maxHeight) {
|
|
425
|
+
this._setTextareaStyle('maxHeight', maxHeight);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* @return {?}
|
|
430
|
+
*/
|
|
431
|
+
ngAfterViewInit() {
|
|
432
|
+
if (this._platform.isBrowser) {
|
|
433
|
+
this._cacheTextareaLineHeight();
|
|
434
|
+
this.resizeToFitContent();
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Sets a style property on the textarea element.
|
|
439
|
+
* @param {?} property
|
|
440
|
+
* @param {?} value
|
|
441
|
+
* @return {?}
|
|
442
|
+
*/
|
|
443
|
+
_setTextareaStyle(property, value) {
|
|
444
|
+
const /** @type {?} */ textarea = (this._elementRef.nativeElement);
|
|
445
|
+
textarea.style[property] = value;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Cache the height of a single-row textarea.
|
|
449
|
+
*
|
|
450
|
+
* We need to know how large a single "row" of a textarea is in order to apply minRows and
|
|
451
|
+
* maxRows. For the initial version, we will assume that the height of a single line in the
|
|
452
|
+
* textarea does not ever change.
|
|
453
|
+
* @return {?}
|
|
454
|
+
*/
|
|
455
|
+
_cacheTextareaLineHeight() {
|
|
456
|
+
let /** @type {?} */ textarea = (this._elementRef.nativeElement);
|
|
457
|
+
// Use a clone element because we have to override some styles.
|
|
458
|
+
let /** @type {?} */ textareaClone = (textarea.cloneNode(false));
|
|
459
|
+
textareaClone.rows = 1;
|
|
460
|
+
// Use `position: absolute` so that this doesn't cause a browser layout and use
|
|
461
|
+
// `visibility: hidden` so that nothing is rendered. Clear any other styles that
|
|
462
|
+
// would affect the height.
|
|
463
|
+
textareaClone.style.position = 'absolute';
|
|
464
|
+
textareaClone.style.visibility = 'hidden';
|
|
465
|
+
textareaClone.style.border = 'none';
|
|
466
|
+
textareaClone.style.padding = '0';
|
|
467
|
+
textareaClone.style.height = '';
|
|
468
|
+
textareaClone.style.minHeight = '';
|
|
469
|
+
textareaClone.style.maxHeight = '';
|
|
470
|
+
// In Firefox it happens that textarea elements are always bigger than the specified amount
|
|
471
|
+
// of rows. This is because Firefox tries to add extra space for the horizontal scrollbar.
|
|
472
|
+
// As a workaround that removes the extra space for the scrollbar, we can just set overflow
|
|
473
|
+
// to hidden. This ensures that there is no invalid calculation of the line height.
|
|
474
|
+
// See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654
|
|
475
|
+
textareaClone.style.overflow = 'hidden'; /** @type {?} */
|
|
476
|
+
((textarea.parentNode)).appendChild(textareaClone);
|
|
477
|
+
this._cachedLineHeight = textareaClone.clientHeight; /** @type {?} */
|
|
478
|
+
((textarea.parentNode)).removeChild(textareaClone);
|
|
479
|
+
// Min and max heights have to be re-calculated if the cached line height changes
|
|
480
|
+
this._setMinHeight();
|
|
481
|
+
this._setMaxHeight();
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* @return {?}
|
|
485
|
+
*/
|
|
486
|
+
ngDoCheck() {
|
|
487
|
+
this.resizeToFitContent();
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Resize the textarea to fit its content.
|
|
491
|
+
* @return {?}
|
|
492
|
+
*/
|
|
493
|
+
resizeToFitContent() {
|
|
494
|
+
const /** @type {?} */ textarea = (this._elementRef.nativeElement);
|
|
495
|
+
const /** @type {?} */ value = textarea.value;
|
|
496
|
+
// Only resize of the value changed since these calculations can be expensive.
|
|
497
|
+
if (value === this._previousValue) {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
// Reset the textarea height to auto in order to shrink back to its default size.
|
|
501
|
+
// Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.
|
|
502
|
+
textarea.style.height = 'auto';
|
|
503
|
+
textarea.style.overflow = 'hidden';
|
|
504
|
+
// Use the scrollHeight to know how large the textarea *would* be if fit its entire value.
|
|
505
|
+
textarea.style.height = `${textarea.scrollHeight}px`;
|
|
506
|
+
textarea.style.overflow = '';
|
|
507
|
+
this._previousValue = value;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
MdTextareaAutosize.decorators = [
|
|
511
|
+
{ type: Directive, args: [{
|
|
512
|
+
selector: `textarea[md-autosize], textarea[mdTextareaAutosize],
|
|
513
|
+
textarea[mat-autosize], textarea[matTextareaAutosize]`,
|
|
514
|
+
exportAs: 'mdTextareaAutosize, matTextareaAutosize',
|
|
515
|
+
host: {
|
|
516
|
+
// Textarea elements that have the directive applied should have a single row by default.
|
|
517
|
+
// Browsers normally show two rows by default and therefore this limits the minRows binding.
|
|
518
|
+
'rows': '1',
|
|
519
|
+
},
|
|
520
|
+
},] },
|
|
521
|
+
];
|
|
522
|
+
/**
|
|
523
|
+
* @nocollapse
|
|
524
|
+
*/
|
|
525
|
+
MdTextareaAutosize.ctorParameters = () => [
|
|
526
|
+
{ type: ElementRef, },
|
|
527
|
+
{ type: Platform, },
|
|
528
|
+
];
|
|
529
|
+
MdTextareaAutosize.propDecorators = {
|
|
530
|
+
'minRows': [{ type: Input, args: ['mdAutosizeMinRows',] },],
|
|
531
|
+
'maxRows': [{ type: Input, args: ['mdAutosizeMaxRows',] },],
|
|
532
|
+
'_matAutosizeMinRows': [{ type: Input, args: ['matAutosizeMinRows',] },],
|
|
533
|
+
'_matAutosizeMaxRows': [{ type: Input, args: ['matAutosizeMaxRows',] },],
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
class MdInputModule {
|
|
537
|
+
}
|
|
538
|
+
MdInputModule.decorators = [
|
|
539
|
+
{ type: NgModule, args: [{
|
|
540
|
+
declarations: [
|
|
541
|
+
MdInput,
|
|
542
|
+
MdTextareaAutosize,
|
|
543
|
+
],
|
|
544
|
+
imports: [
|
|
545
|
+
CommonModule,
|
|
546
|
+
MdFormFieldModule,
|
|
547
|
+
PlatformModule,
|
|
548
|
+
],
|
|
549
|
+
exports: [
|
|
550
|
+
// We re-export the `MdFormFieldModule` since `MdInput` will almost always be used together with
|
|
551
|
+
// `MdFormField`.
|
|
552
|
+
MdFormFieldModule,
|
|
553
|
+
MdInput,
|
|
554
|
+
MdTextareaAutosize,
|
|
555
|
+
],
|
|
556
|
+
},] },
|
|
557
|
+
];
|
|
558
|
+
/**
|
|
559
|
+
* @nocollapse
|
|
560
|
+
*/
|
|
561
|
+
MdInputModule.ctorParameters = () => [];
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Generated bundle index. Do not edit.
|
|
565
|
+
*/
|
|
566
|
+
|
|
567
|
+
export { MdInputModule, MdTextareaAutosize, MdInput, getMdInputUnsupportedTypeError, MdInput as MatInput, MdInputModule as MatInputModule, MdTextareaAutosize as MatTextareaAutosize };
|
|
568
|
+
//# sourceMappingURL=input.js.map
|