@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
package/esm2015/icon.js
ADDED
|
@@ -0,0 +1,733 @@
|
|
|
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 { Attribute, ChangeDetectionStrategy, Component, ElementRef, Injectable, Input, NgModule, Optional, Renderer2, SecurityContext, SkipSelf, ViewEncapsulation } from '@angular/core';
|
|
9
|
+
import { MdCommonModule, RxChain, catchOperator, doOperator, finallyOperator, first, map, mixinColor, share } from '@angular/material/core';
|
|
10
|
+
import { Http } from '@angular/http';
|
|
11
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
12
|
+
import { Observable } from 'rxjs/Observable';
|
|
13
|
+
import { forkJoin } from 'rxjs/observable/forkJoin';
|
|
14
|
+
import { of } from 'rxjs/observable/of';
|
|
15
|
+
import { _throw } from 'rxjs/observable/throw';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Returns an exception to be thrown in the case when attempting to
|
|
19
|
+
* load an icon with a name that cannot be found.
|
|
20
|
+
* \@docs-private
|
|
21
|
+
* @param {?} iconName
|
|
22
|
+
* @return {?}
|
|
23
|
+
*/
|
|
24
|
+
function getMdIconNameNotFoundError(iconName) {
|
|
25
|
+
return Error(`Unable to find icon with the name "${iconName}"`);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns an exception to be thrown when the consumer attempts to use
|
|
29
|
+
* `<md-icon>` without including \@angular/http.
|
|
30
|
+
* \@docs-private
|
|
31
|
+
* @return {?}
|
|
32
|
+
*/
|
|
33
|
+
function getMdIconNoHttpProviderError() {
|
|
34
|
+
return Error('Could not find Http provider for use with Angular Material icons. ' +
|
|
35
|
+
'Please include the HttpModule from @angular/http in your app imports.');
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns an exception to be thrown when a URL couldn't be sanitized.
|
|
39
|
+
* \@docs-private
|
|
40
|
+
* @param {?} url URL that was attempted to be sanitized.
|
|
41
|
+
* @return {?}
|
|
42
|
+
*/
|
|
43
|
+
function getMdIconFailedToSanitizeError(url) {
|
|
44
|
+
return Error(`The URL provided to MdIconRegistry was not trusted as a resource URL ` +
|
|
45
|
+
`via Angular's DomSanitizer. Attempted URL was "${url}".`);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Configuration for an icon, including the URL and possibly the cached SVG element.
|
|
49
|
+
* \@docs-private
|
|
50
|
+
*/
|
|
51
|
+
class SvgIconConfig {
|
|
52
|
+
/**
|
|
53
|
+
* @param {?} url
|
|
54
|
+
*/
|
|
55
|
+
constructor(url) {
|
|
56
|
+
this.url = url;
|
|
57
|
+
this.svgElement = null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Service to register and display icons used by the <md-icon> component.
|
|
62
|
+
* - Registers icon URLs by namespace and name.
|
|
63
|
+
* - Registers icon set URLs by namespace.
|
|
64
|
+
* - Registers aliases for CSS classes, for use with icon fonts.
|
|
65
|
+
* - Loads icons from URLs and extracts individual icons from icon sets.
|
|
66
|
+
*/
|
|
67
|
+
class MdIconRegistry {
|
|
68
|
+
/**
|
|
69
|
+
* @param {?} _http
|
|
70
|
+
* @param {?} _sanitizer
|
|
71
|
+
*/
|
|
72
|
+
constructor(_http, _sanitizer) {
|
|
73
|
+
this._http = _http;
|
|
74
|
+
this._sanitizer = _sanitizer;
|
|
75
|
+
/**
|
|
76
|
+
* URLs and cached SVG elements for individual icons. Keys are of the format "[namespace]:[icon]".
|
|
77
|
+
*/
|
|
78
|
+
this._svgIconConfigs = new Map();
|
|
79
|
+
/**
|
|
80
|
+
* SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.
|
|
81
|
+
* Multiple icon sets can be registered under the same namespace.
|
|
82
|
+
*/
|
|
83
|
+
this._iconSetConfigs = new Map();
|
|
84
|
+
/**
|
|
85
|
+
* Cache for icons loaded by direct URLs.
|
|
86
|
+
*/
|
|
87
|
+
this._cachedIconsByUrl = new Map();
|
|
88
|
+
/**
|
|
89
|
+
* In-progress icon fetches. Used to coalesce multiple requests to the same URL.
|
|
90
|
+
*/
|
|
91
|
+
this._inProgressUrlFetches = new Map();
|
|
92
|
+
/**
|
|
93
|
+
* Map from font identifiers to their CSS class names. Used for icon fonts.
|
|
94
|
+
*/
|
|
95
|
+
this._fontCssClassesByAlias = new Map();
|
|
96
|
+
/**
|
|
97
|
+
* The CSS class to apply when an <md-icon> component has no icon name, url, or font specified.
|
|
98
|
+
* The default 'material-icons' value assumes that the material icon font has been loaded as
|
|
99
|
+
* described at http://google.github.io/material-design-icons/#icon-font-for-the-web
|
|
100
|
+
*/
|
|
101
|
+
this._defaultFontSetClass = 'material-icons';
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Registers an icon by URL in the default namespace.
|
|
105
|
+
* @param {?} iconName Name under which the icon should be registered.
|
|
106
|
+
* @param {?} url
|
|
107
|
+
* @return {?}
|
|
108
|
+
*/
|
|
109
|
+
addSvgIcon(iconName, url) {
|
|
110
|
+
return this.addSvgIconInNamespace('', iconName, url);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Registers an icon by URL in the specified namespace.
|
|
114
|
+
* @param {?} namespace Namespace in which the icon should be registered.
|
|
115
|
+
* @param {?} iconName Name under which the icon should be registered.
|
|
116
|
+
* @param {?} url
|
|
117
|
+
* @return {?}
|
|
118
|
+
*/
|
|
119
|
+
addSvgIconInNamespace(namespace, iconName, url) {
|
|
120
|
+
const /** @type {?} */ key = iconKey(namespace, iconName);
|
|
121
|
+
this._svgIconConfigs.set(key, new SvgIconConfig(url));
|
|
122
|
+
return this;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Registers an icon set by URL in the default namespace.
|
|
126
|
+
* @param {?} url
|
|
127
|
+
* @return {?}
|
|
128
|
+
*/
|
|
129
|
+
addSvgIconSet(url) {
|
|
130
|
+
return this.addSvgIconSetInNamespace('', url);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Registers an icon set by URL in the specified namespace.
|
|
134
|
+
* @param {?} namespace Namespace in which to register the icon set.
|
|
135
|
+
* @param {?} url
|
|
136
|
+
* @return {?}
|
|
137
|
+
*/
|
|
138
|
+
addSvgIconSetInNamespace(namespace, url) {
|
|
139
|
+
const /** @type {?} */ config = new SvgIconConfig(url);
|
|
140
|
+
const /** @type {?} */ configNamespace = this._iconSetConfigs.get(namespace);
|
|
141
|
+
if (configNamespace) {
|
|
142
|
+
configNamespace.push(config);
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
this._iconSetConfigs.set(namespace, [config]);
|
|
146
|
+
}
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Defines an alias for a CSS class name to be used for icon fonts. Creating an mdIcon
|
|
151
|
+
* component with the alias as the fontSet input will cause the class name to be applied
|
|
152
|
+
* to the <md-icon> element.
|
|
153
|
+
*
|
|
154
|
+
* @param {?} alias Alias for the font.
|
|
155
|
+
* @param {?=} className Class name override to be used instead of the alias.
|
|
156
|
+
* @return {?}
|
|
157
|
+
*/
|
|
158
|
+
registerFontClassAlias(alias, className = alias) {
|
|
159
|
+
this._fontCssClassesByAlias.set(alias, className);
|
|
160
|
+
return this;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Returns the CSS class name associated with the alias by a previous call to
|
|
164
|
+
* registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.
|
|
165
|
+
* @param {?} alias
|
|
166
|
+
* @return {?}
|
|
167
|
+
*/
|
|
168
|
+
classNameForFontAlias(alias) {
|
|
169
|
+
return this._fontCssClassesByAlias.get(alias) || alias;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Sets the CSS class name to be used for icon fonts when an <md-icon> component does not
|
|
173
|
+
* have a fontSet input value, and is not loading an icon by name or URL.
|
|
174
|
+
*
|
|
175
|
+
* @param {?} className
|
|
176
|
+
* @return {?}
|
|
177
|
+
*/
|
|
178
|
+
setDefaultFontSetClass(className) {
|
|
179
|
+
this._defaultFontSetClass = className;
|
|
180
|
+
return this;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Returns the CSS class name to be used for icon fonts when an <md-icon> component does not
|
|
184
|
+
* have a fontSet input value, and is not loading an icon by name or URL.
|
|
185
|
+
* @return {?}
|
|
186
|
+
*/
|
|
187
|
+
getDefaultFontSetClass() {
|
|
188
|
+
return this._defaultFontSetClass;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Returns an Observable that produces the icon (as an <svg> DOM element) from the given URL.
|
|
192
|
+
* The response from the URL may be cached so this will not always cause an HTTP request, but
|
|
193
|
+
* the produced element will always be a new copy of the originally fetched icon. (That is,
|
|
194
|
+
* it will not contain any modifications made to elements previously returned).
|
|
195
|
+
*
|
|
196
|
+
* @param {?} safeUrl URL from which to fetch the SVG icon.
|
|
197
|
+
* @return {?}
|
|
198
|
+
*/
|
|
199
|
+
getSvgIconFromUrl(safeUrl) {
|
|
200
|
+
let /** @type {?} */ url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);
|
|
201
|
+
if (!url) {
|
|
202
|
+
throw getMdIconFailedToSanitizeError(safeUrl);
|
|
203
|
+
}
|
|
204
|
+
let /** @type {?} */ cachedIcon = this._cachedIconsByUrl.get(url);
|
|
205
|
+
if (cachedIcon) {
|
|
206
|
+
return of(cloneSvg(cachedIcon));
|
|
207
|
+
}
|
|
208
|
+
return RxChain.from(this._loadSvgIconFromConfig(new SvgIconConfig(url)))
|
|
209
|
+
.call(doOperator, svg => this._cachedIconsByUrl.set(/** @type {?} */ ((url)), svg))
|
|
210
|
+
.call(map, svg => cloneSvg(svg))
|
|
211
|
+
.result();
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Returns an Observable that produces the icon (as an <svg> DOM element) with the given name
|
|
215
|
+
* and namespace. The icon must have been previously registered with addIcon or addIconSet;
|
|
216
|
+
* if not, the Observable will throw an error.
|
|
217
|
+
*
|
|
218
|
+
* @param {?} name Name of the icon to be retrieved.
|
|
219
|
+
* @param {?=} namespace Namespace in which to look for the icon.
|
|
220
|
+
* @return {?}
|
|
221
|
+
*/
|
|
222
|
+
getNamedSvgIcon(name, namespace = '') {
|
|
223
|
+
// Return (copy of) cached icon if possible.
|
|
224
|
+
const /** @type {?} */ key = iconKey(namespace, name);
|
|
225
|
+
const /** @type {?} */ config = this._svgIconConfigs.get(key);
|
|
226
|
+
if (config) {
|
|
227
|
+
return this._getSvgFromConfig(config);
|
|
228
|
+
}
|
|
229
|
+
// See if we have any icon sets registered for the namespace.
|
|
230
|
+
const /** @type {?} */ iconSetConfigs = this._iconSetConfigs.get(namespace);
|
|
231
|
+
if (iconSetConfigs) {
|
|
232
|
+
return this._getSvgFromIconSetConfigs(name, iconSetConfigs);
|
|
233
|
+
}
|
|
234
|
+
return _throw(getMdIconNameNotFoundError(key));
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not.
|
|
238
|
+
* @param {?} config
|
|
239
|
+
* @return {?}
|
|
240
|
+
*/
|
|
241
|
+
_getSvgFromConfig(config) {
|
|
242
|
+
if (config.svgElement) {
|
|
243
|
+
// We already have the SVG element for this icon, return a copy.
|
|
244
|
+
return of(cloneSvg(config.svgElement));
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
// Fetch the icon from the config's URL, cache it, and return a copy.
|
|
248
|
+
return RxChain.from(this._loadSvgIconFromConfig(config))
|
|
249
|
+
.call(doOperator, svg => config.svgElement = svg)
|
|
250
|
+
.call(map, svg => cloneSvg(svg))
|
|
251
|
+
.result();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Attempts to find an icon with the specified name in any of the SVG icon sets.
|
|
256
|
+
* First searches the available cached icons for a nested element with a matching name, and
|
|
257
|
+
* if found copies the element to a new <svg> element. If not found, fetches all icon sets
|
|
258
|
+
* that have not been cached, and searches again after all fetches are completed.
|
|
259
|
+
* The returned Observable produces the SVG element if possible, and throws
|
|
260
|
+
* an error if no icon with the specified name can be found.
|
|
261
|
+
* @param {?} name
|
|
262
|
+
* @param {?} iconSetConfigs
|
|
263
|
+
* @return {?}
|
|
264
|
+
*/
|
|
265
|
+
_getSvgFromIconSetConfigs(name, iconSetConfigs) {
|
|
266
|
+
// For all the icon set SVG elements we've fetched, see if any contain an icon with the
|
|
267
|
+
// requested name.
|
|
268
|
+
const /** @type {?} */ namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);
|
|
269
|
+
if (namedIcon) {
|
|
270
|
+
// We could cache namedIcon in _svgIconConfigs, but since we have to make a copy every
|
|
271
|
+
// time anyway, there's probably not much advantage compared to just always extracting
|
|
272
|
+
// it from the icon set.
|
|
273
|
+
return of(namedIcon);
|
|
274
|
+
}
|
|
275
|
+
// Not found in any cached icon sets. If there are icon sets with URLs that we haven't
|
|
276
|
+
// fetched, fetch them now and look for iconName in the results.
|
|
277
|
+
const /** @type {?} */ iconSetFetchRequests = iconSetConfigs
|
|
278
|
+
.filter(iconSetConfig => !iconSetConfig.svgElement)
|
|
279
|
+
.map(iconSetConfig => {
|
|
280
|
+
return RxChain.from(this._loadSvgIconSetFromConfig(iconSetConfig))
|
|
281
|
+
.call(catchOperator, (err) => {
|
|
282
|
+
let /** @type {?} */ url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, iconSetConfig.url);
|
|
283
|
+
// Swallow errors fetching individual URLs so the combined Observable won't
|
|
284
|
+
// necessarily fail.
|
|
285
|
+
console.log(`Loading icon set URL: ${url} failed: ${err}`);
|
|
286
|
+
return of(null);
|
|
287
|
+
})
|
|
288
|
+
.call(doOperator, svg => {
|
|
289
|
+
// Cache the SVG element.
|
|
290
|
+
if (svg) {
|
|
291
|
+
iconSetConfig.svgElement = svg;
|
|
292
|
+
}
|
|
293
|
+
})
|
|
294
|
+
.result();
|
|
295
|
+
});
|
|
296
|
+
// Fetch all the icon set URLs. When the requests complete, every IconSet should have a
|
|
297
|
+
// cached SVG element (unless the request failed), and we can check again for the icon.
|
|
298
|
+
return map.call(forkJoin.call(Observable, iconSetFetchRequests), () => {
|
|
299
|
+
const /** @type {?} */ foundIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);
|
|
300
|
+
if (!foundIcon) {
|
|
301
|
+
throw getMdIconNameNotFoundError(name);
|
|
302
|
+
}
|
|
303
|
+
return foundIcon;
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Searches the cached SVG elements for the given icon sets for a nested icon element whose "id"
|
|
308
|
+
* tag matches the specified name. If found, copies the nested element to a new SVG element and
|
|
309
|
+
* returns it. Returns null if no matching element is found.
|
|
310
|
+
* @param {?} iconName
|
|
311
|
+
* @param {?} iconSetConfigs
|
|
312
|
+
* @return {?}
|
|
313
|
+
*/
|
|
314
|
+
_extractIconWithNameFromAnySet(iconName, iconSetConfigs) {
|
|
315
|
+
// Iterate backwards, so icon sets added later have precedence.
|
|
316
|
+
for (let /** @type {?} */ i = iconSetConfigs.length - 1; i >= 0; i--) {
|
|
317
|
+
const /** @type {?} */ config = iconSetConfigs[i];
|
|
318
|
+
if (config.svgElement) {
|
|
319
|
+
const /** @type {?} */ foundIcon = this._extractSvgIconFromSet(config.svgElement, iconName);
|
|
320
|
+
if (foundIcon) {
|
|
321
|
+
return foundIcon;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
return null;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element
|
|
329
|
+
* from it.
|
|
330
|
+
* @param {?} config
|
|
331
|
+
* @return {?}
|
|
332
|
+
*/
|
|
333
|
+
_loadSvgIconFromConfig(config) {
|
|
334
|
+
return map.call(this._fetchUrl(config.url), svgText => this._createSvgElementForSingleIcon(svgText));
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Loads the content of the icon set URL specified in the SvgIconConfig and creates an SVG element
|
|
338
|
+
* from it.
|
|
339
|
+
* @param {?} config
|
|
340
|
+
* @return {?}
|
|
341
|
+
*/
|
|
342
|
+
_loadSvgIconSetFromConfig(config) {
|
|
343
|
+
// TODO: Document that icons should only be loaded from trusted sources.
|
|
344
|
+
return map.call(this._fetchUrl(config.url), svgText => this._svgElementFromString(svgText));
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Creates a DOM element from the given SVG string, and adds default attributes.
|
|
348
|
+
* @param {?} responseText
|
|
349
|
+
* @return {?}
|
|
350
|
+
*/
|
|
351
|
+
_createSvgElementForSingleIcon(responseText) {
|
|
352
|
+
const /** @type {?} */ svg = this._svgElementFromString(responseText);
|
|
353
|
+
this._setSvgAttributes(svg);
|
|
354
|
+
return svg;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Searches the cached element of the given SvgIconConfig for a nested icon element whose "id"
|
|
358
|
+
* tag matches the specified name. If found, copies the nested element to a new SVG element and
|
|
359
|
+
* returns it. Returns null if no matching element is found.
|
|
360
|
+
* @param {?} iconSet
|
|
361
|
+
* @param {?} iconName
|
|
362
|
+
* @return {?}
|
|
363
|
+
*/
|
|
364
|
+
_extractSvgIconFromSet(iconSet, iconName) {
|
|
365
|
+
const /** @type {?} */ iconNode = iconSet.querySelector('#' + iconName);
|
|
366
|
+
if (!iconNode) {
|
|
367
|
+
return null;
|
|
368
|
+
}
|
|
369
|
+
// If the icon node is itself an <svg> node, clone and return it directly. If not, set it as
|
|
370
|
+
// the content of a new <svg> node.
|
|
371
|
+
if (iconNode.tagName.toLowerCase() === 'svg') {
|
|
372
|
+
return this._setSvgAttributes(/** @type {?} */ (iconNode.cloneNode(true)));
|
|
373
|
+
}
|
|
374
|
+
// If the node is a <symbol>, it won't be rendered so we have to convert it into <svg>. Note
|
|
375
|
+
// that the same could be achieved by referring to it via <use href="#id">, however the <use>
|
|
376
|
+
// tag is problematic on Firefox, because it needs to include the current page path.
|
|
377
|
+
if (iconNode.nodeName.toLowerCase() === 'symbol') {
|
|
378
|
+
return this._setSvgAttributes(this._toSvgElement(iconNode));
|
|
379
|
+
}
|
|
380
|
+
// createElement('SVG') doesn't work as expected; the DOM ends up with
|
|
381
|
+
// the correct nodes, but the SVG content doesn't render. Instead we
|
|
382
|
+
// have to create an empty SVG node using innerHTML and append its content.
|
|
383
|
+
// Elements created using DOMParser.parseFromString have the same problem.
|
|
384
|
+
// http://stackoverflow.com/questions/23003278/svg-innerhtml-in-firefox-can-not-display
|
|
385
|
+
const /** @type {?} */ svg = this._svgElementFromString('<svg></svg>');
|
|
386
|
+
// Clone the node so we don't remove it from the parent icon set element.
|
|
387
|
+
svg.appendChild(iconNode.cloneNode(true));
|
|
388
|
+
return this._setSvgAttributes(svg);
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Creates a DOM element from the given SVG string.
|
|
392
|
+
* @param {?} str
|
|
393
|
+
* @return {?}
|
|
394
|
+
*/
|
|
395
|
+
_svgElementFromString(str) {
|
|
396
|
+
// TODO: Is there a better way than innerHTML? Renderer doesn't appear to have a method for
|
|
397
|
+
// creating an element from an HTML string.
|
|
398
|
+
const /** @type {?} */ div = document.createElement('DIV');
|
|
399
|
+
div.innerHTML = str;
|
|
400
|
+
const /** @type {?} */ svg = (div.querySelector('svg'));
|
|
401
|
+
if (!svg) {
|
|
402
|
+
throw Error('<svg> tag not found');
|
|
403
|
+
}
|
|
404
|
+
return svg;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Converts an element into an SVG node by cloning all of its children.
|
|
408
|
+
* @param {?} element
|
|
409
|
+
* @return {?}
|
|
410
|
+
*/
|
|
411
|
+
_toSvgElement(element) {
|
|
412
|
+
let /** @type {?} */ svg = this._svgElementFromString('<svg></svg>');
|
|
413
|
+
for (let /** @type {?} */ i = 0; i < element.childNodes.length; i++) {
|
|
414
|
+
if (element.childNodes[i].nodeType === Node.ELEMENT_NODE) {
|
|
415
|
+
svg.appendChild(element.childNodes[i].cloneNode(true));
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
return svg;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Sets the default attributes for an SVG element to be used as an icon.
|
|
422
|
+
* @param {?} svg
|
|
423
|
+
* @return {?}
|
|
424
|
+
*/
|
|
425
|
+
_setSvgAttributes(svg) {
|
|
426
|
+
if (!svg.getAttribute('xmlns')) {
|
|
427
|
+
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
|
|
428
|
+
}
|
|
429
|
+
svg.setAttribute('fit', '');
|
|
430
|
+
svg.setAttribute('height', '100%');
|
|
431
|
+
svg.setAttribute('width', '100%');
|
|
432
|
+
svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');
|
|
433
|
+
svg.setAttribute('focusable', 'false'); // Disable IE11 default behavior to make SVGs focusable.
|
|
434
|
+
return svg;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Returns an Observable which produces the string contents of the given URL. Results may be
|
|
438
|
+
* cached, so future calls with the same URL may not cause another HTTP request.
|
|
439
|
+
* @param {?} safeUrl
|
|
440
|
+
* @return {?}
|
|
441
|
+
*/
|
|
442
|
+
_fetchUrl(safeUrl) {
|
|
443
|
+
if (!this._http) {
|
|
444
|
+
throw getMdIconNoHttpProviderError();
|
|
445
|
+
}
|
|
446
|
+
const /** @type {?} */ url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);
|
|
447
|
+
if (!url) {
|
|
448
|
+
throw getMdIconFailedToSanitizeError(safeUrl);
|
|
449
|
+
}
|
|
450
|
+
// Store in-progress fetches to avoid sending a duplicate request for a URL when there is
|
|
451
|
+
// already a request in progress for that URL. It's necessary to call share() on the
|
|
452
|
+
// Observable returned by http.get() so that multiple subscribers don't cause multiple XHRs.
|
|
453
|
+
const /** @type {?} */ inProgressFetch = this._inProgressUrlFetches.get(url);
|
|
454
|
+
if (inProgressFetch) {
|
|
455
|
+
return inProgressFetch;
|
|
456
|
+
}
|
|
457
|
+
// TODO(jelbourn): for some reason, the `finally` operator "loses" the generic type on the
|
|
458
|
+
// Observable. Figure out why and fix it.
|
|
459
|
+
const /** @type {?} */ req = RxChain.from(this._http.get(url))
|
|
460
|
+
.call(map, response => response.text())
|
|
461
|
+
.call(finallyOperator, () => this._inProgressUrlFetches.delete(url))
|
|
462
|
+
.call(share)
|
|
463
|
+
.result();
|
|
464
|
+
this._inProgressUrlFetches.set(url, req);
|
|
465
|
+
return req;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
MdIconRegistry.decorators = [
|
|
469
|
+
{ type: Injectable },
|
|
470
|
+
];
|
|
471
|
+
/**
|
|
472
|
+
* @nocollapse
|
|
473
|
+
*/
|
|
474
|
+
MdIconRegistry.ctorParameters = () => [
|
|
475
|
+
{ type: Http, decorators: [{ type: Optional },] },
|
|
476
|
+
{ type: DomSanitizer, },
|
|
477
|
+
];
|
|
478
|
+
/**
|
|
479
|
+
* \@docs-private
|
|
480
|
+
* @param {?} parentRegistry
|
|
481
|
+
* @param {?} http
|
|
482
|
+
* @param {?} sanitizer
|
|
483
|
+
* @return {?}
|
|
484
|
+
*/
|
|
485
|
+
function ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry, http, sanitizer) {
|
|
486
|
+
return parentRegistry || new MdIconRegistry(http, sanitizer);
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* \@docs-private
|
|
490
|
+
*/
|
|
491
|
+
const ICON_REGISTRY_PROVIDER = {
|
|
492
|
+
// If there is already an MdIconRegistry available, use that. Otherwise, provide a new one.
|
|
493
|
+
provide: MdIconRegistry,
|
|
494
|
+
deps: [[new Optional(), new SkipSelf(), MdIconRegistry], [new Optional(), Http], DomSanitizer],
|
|
495
|
+
useFactory: ICON_REGISTRY_PROVIDER_FACTORY
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* Clones an SVGElement while preserving type information.
|
|
499
|
+
* @param {?} svg
|
|
500
|
+
* @return {?}
|
|
501
|
+
*/
|
|
502
|
+
function cloneSvg(svg) {
|
|
503
|
+
return (svg.cloneNode(true));
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Returns the cache key to use for an icon namespace and name.
|
|
507
|
+
* @param {?} namespace
|
|
508
|
+
* @param {?} name
|
|
509
|
+
* @return {?}
|
|
510
|
+
*/
|
|
511
|
+
function iconKey(namespace, name) {
|
|
512
|
+
return namespace + ':' + name;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* \@docs-private
|
|
517
|
+
*/
|
|
518
|
+
class MdIconBase {
|
|
519
|
+
/**
|
|
520
|
+
* @param {?} _renderer
|
|
521
|
+
* @param {?} _elementRef
|
|
522
|
+
*/
|
|
523
|
+
constructor(_renderer, _elementRef) {
|
|
524
|
+
this._renderer = _renderer;
|
|
525
|
+
this._elementRef = _elementRef;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
const _MdIconMixinBase = mixinColor(MdIconBase);
|
|
529
|
+
/**
|
|
530
|
+
* Component to display an icon. It can be used in the following ways:
|
|
531
|
+
*
|
|
532
|
+
* - Specify the svgIcon input to load an SVG icon from a URL previously registered with the
|
|
533
|
+
* addSvgIcon, addSvgIconInNamespace, addSvgIconSet, or addSvgIconSetInNamespace methods of
|
|
534
|
+
* MdIconRegistry. If the svgIcon value contains a colon it is assumed to be in the format
|
|
535
|
+
* "[namespace]:[name]", if not the value will be the name of an icon in the default namespace.
|
|
536
|
+
* Examples:
|
|
537
|
+
* <md-icon svgIcon="left-arrow"></md-icon>
|
|
538
|
+
* <md-icon svgIcon="animals:cat"></md-icon>
|
|
539
|
+
*
|
|
540
|
+
* - Use a font ligature as an icon by putting the ligature text in the content of the <md-icon>
|
|
541
|
+
* component. By default the Material icons font is used as described at
|
|
542
|
+
* http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an
|
|
543
|
+
* alternate font by setting the fontSet input to either the CSS class to apply to use the
|
|
544
|
+
* desired font, or to an alias previously registered with MdIconRegistry.registerFontClassAlias.
|
|
545
|
+
* Examples:
|
|
546
|
+
* <md-icon>home</md-icon>
|
|
547
|
+
* <md-icon fontSet="myfont">sun</md-icon>
|
|
548
|
+
*
|
|
549
|
+
* - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the
|
|
550
|
+
* font, and the fontIcon input to specify the icon. Typically the fontIcon will specify a
|
|
551
|
+
* CSS class which causes the glyph to be displayed via a :before selector, as in
|
|
552
|
+
* https://fortawesome.github.io/Font-Awesome/examples/
|
|
553
|
+
* Example:
|
|
554
|
+
* <md-icon fontSet="fa" fontIcon="alarm"></md-icon>
|
|
555
|
+
*/
|
|
556
|
+
class MdIcon extends _MdIconMixinBase {
|
|
557
|
+
/**
|
|
558
|
+
* @param {?} renderer
|
|
559
|
+
* @param {?} elementRef
|
|
560
|
+
* @param {?} _mdIconRegistry
|
|
561
|
+
* @param {?} ariaHidden
|
|
562
|
+
*/
|
|
563
|
+
constructor(renderer, elementRef, _mdIconRegistry, ariaHidden) {
|
|
564
|
+
super(renderer, elementRef);
|
|
565
|
+
this._mdIconRegistry = _mdIconRegistry;
|
|
566
|
+
// If the user has not explicitly set aria-hidden, mark the icon as hidden, as this is
|
|
567
|
+
// the right thing to do for the majority of icon use-cases.
|
|
568
|
+
if (!ariaHidden) {
|
|
569
|
+
renderer.setAttribute(elementRef.nativeElement, 'aria-hidden', 'true');
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Splits an svgIcon binding value into its icon set and icon name components.
|
|
574
|
+
* Returns a 2-element array of [(icon set), (icon name)].
|
|
575
|
+
* The separator for the two fields is ':'. If there is no separator, an empty
|
|
576
|
+
* string is returned for the icon set and the entire value is returned for
|
|
577
|
+
* the icon name. If the argument is falsy, returns an array of two empty strings.
|
|
578
|
+
* Throws an error if the name contains two or more ':' separators.
|
|
579
|
+
* Examples:
|
|
580
|
+
* 'social:cake' -> ['social', 'cake']
|
|
581
|
+
* 'penguin' -> ['', 'penguin']
|
|
582
|
+
* null -> ['', '']
|
|
583
|
+
* 'a:b:c' -> (throws Error)
|
|
584
|
+
* @param {?} iconName
|
|
585
|
+
* @return {?}
|
|
586
|
+
*/
|
|
587
|
+
_splitIconName(iconName) {
|
|
588
|
+
if (!iconName) {
|
|
589
|
+
return ['', ''];
|
|
590
|
+
}
|
|
591
|
+
const /** @type {?} */ parts = iconName.split(':');
|
|
592
|
+
switch (parts.length) {
|
|
593
|
+
case 1: return ['', parts[0]]; // Use default namespace.
|
|
594
|
+
case 2: return (parts);
|
|
595
|
+
default: throw Error(`Invalid icon name: "${iconName}"`);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* @param {?} changes
|
|
600
|
+
* @return {?}
|
|
601
|
+
*/
|
|
602
|
+
ngOnChanges(changes) {
|
|
603
|
+
// Only update the inline SVG icon if the inputs changed, to avoid unnecessary DOM operations.
|
|
604
|
+
if (changes.svgIcon) {
|
|
605
|
+
if (this.svgIcon) {
|
|
606
|
+
const [namespace, iconName] = this._splitIconName(this.svgIcon);
|
|
607
|
+
first.call(this._mdIconRegistry.getNamedSvgIcon(iconName, namespace)).subscribe(svg => this._setSvgElement(svg), (err) => console.log(`Error retrieving icon: ${err.message}`));
|
|
608
|
+
}
|
|
609
|
+
else {
|
|
610
|
+
this._clearSvgElement();
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
if (this._usingFontIcon()) {
|
|
614
|
+
this._updateFontIconClasses();
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* @return {?}
|
|
619
|
+
*/
|
|
620
|
+
ngOnInit() {
|
|
621
|
+
// Update font classes because ngOnChanges won't be called if none of the inputs are present,
|
|
622
|
+
// e.g. <md-icon>arrow</md-icon>. In this case we need to add a CSS class for the default font.
|
|
623
|
+
if (this._usingFontIcon()) {
|
|
624
|
+
this._updateFontIconClasses();
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* @return {?}
|
|
629
|
+
*/
|
|
630
|
+
_usingFontIcon() {
|
|
631
|
+
return !this.svgIcon;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* @param {?} svg
|
|
635
|
+
* @return {?}
|
|
636
|
+
*/
|
|
637
|
+
_setSvgElement(svg) {
|
|
638
|
+
this._clearSvgElement();
|
|
639
|
+
this._renderer.appendChild(this._elementRef.nativeElement, svg);
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* @return {?}
|
|
643
|
+
*/
|
|
644
|
+
_clearSvgElement() {
|
|
645
|
+
const /** @type {?} */ layoutElement = this._elementRef.nativeElement;
|
|
646
|
+
const /** @type {?} */ childCount = layoutElement.childNodes.length;
|
|
647
|
+
// Remove existing child nodes and add the new SVG element. Note that we can't
|
|
648
|
+
// use innerHTML, because IE will throw if the element has a data binding.
|
|
649
|
+
for (let /** @type {?} */ i = 0; i < childCount; i++) {
|
|
650
|
+
this._renderer.removeChild(layoutElement, layoutElement.childNodes[i]);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* @return {?}
|
|
655
|
+
*/
|
|
656
|
+
_updateFontIconClasses() {
|
|
657
|
+
if (!this._usingFontIcon()) {
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
const /** @type {?} */ elem = this._elementRef.nativeElement;
|
|
661
|
+
const /** @type {?} */ fontSetClass = this.fontSet ?
|
|
662
|
+
this._mdIconRegistry.classNameForFontAlias(this.fontSet) :
|
|
663
|
+
this._mdIconRegistry.getDefaultFontSetClass();
|
|
664
|
+
if (fontSetClass != this._previousFontSetClass) {
|
|
665
|
+
if (this._previousFontSetClass) {
|
|
666
|
+
this._renderer.removeClass(elem, this._previousFontSetClass);
|
|
667
|
+
}
|
|
668
|
+
if (fontSetClass) {
|
|
669
|
+
this._renderer.addClass(elem, fontSetClass);
|
|
670
|
+
}
|
|
671
|
+
this._previousFontSetClass = fontSetClass;
|
|
672
|
+
}
|
|
673
|
+
if (this.fontIcon != this._previousFontIconClass) {
|
|
674
|
+
if (this._previousFontIconClass) {
|
|
675
|
+
this._renderer.removeClass(elem, this._previousFontIconClass);
|
|
676
|
+
}
|
|
677
|
+
if (this.fontIcon) {
|
|
678
|
+
this._renderer.addClass(elem, this.fontIcon);
|
|
679
|
+
}
|
|
680
|
+
this._previousFontIconClass = this.fontIcon;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
MdIcon.decorators = [
|
|
685
|
+
{ type: Component, args: [{template: '<ng-content></ng-content>',
|
|
686
|
+
selector: 'md-icon, mat-icon',
|
|
687
|
+
styles: [".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}"],
|
|
688
|
+
inputs: ['color'],
|
|
689
|
+
host: {
|
|
690
|
+
'role': 'img',
|
|
691
|
+
'class': 'mat-icon',
|
|
692
|
+
},
|
|
693
|
+
encapsulation: ViewEncapsulation.None,
|
|
694
|
+
preserveWhitespaces: false,
|
|
695
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
696
|
+
},] },
|
|
697
|
+
];
|
|
698
|
+
/**
|
|
699
|
+
* @nocollapse
|
|
700
|
+
*/
|
|
701
|
+
MdIcon.ctorParameters = () => [
|
|
702
|
+
{ type: Renderer2, },
|
|
703
|
+
{ type: ElementRef, },
|
|
704
|
+
{ type: MdIconRegistry, },
|
|
705
|
+
{ type: undefined, decorators: [{ type: Attribute, args: ['aria-hidden',] },] },
|
|
706
|
+
];
|
|
707
|
+
MdIcon.propDecorators = {
|
|
708
|
+
'svgIcon': [{ type: Input },],
|
|
709
|
+
'fontSet': [{ type: Input },],
|
|
710
|
+
'fontIcon': [{ type: Input },],
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
class MdIconModule {
|
|
714
|
+
}
|
|
715
|
+
MdIconModule.decorators = [
|
|
716
|
+
{ type: NgModule, args: [{
|
|
717
|
+
imports: [MdCommonModule],
|
|
718
|
+
exports: [MdIcon, MdCommonModule],
|
|
719
|
+
declarations: [MdIcon],
|
|
720
|
+
providers: [ICON_REGISTRY_PROVIDER],
|
|
721
|
+
},] },
|
|
722
|
+
];
|
|
723
|
+
/**
|
|
724
|
+
* @nocollapse
|
|
725
|
+
*/
|
|
726
|
+
MdIconModule.ctorParameters = () => [];
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Generated bundle index. Do not edit.
|
|
730
|
+
*/
|
|
731
|
+
|
|
732
|
+
export { MdIconModule, MdIconBase, _MdIconMixinBase, MdIcon, getMdIconNameNotFoundError, getMdIconNoHttpProviderError, getMdIconFailedToSanitizeError, MdIconRegistry, ICON_REGISTRY_PROVIDER_FACTORY, ICON_REGISTRY_PROVIDER, MdIcon as MatIcon, MdIconBase as MatIconBase, MdIconModule as MatIconModule, MdIconRegistry as MatIconRegistry };
|
|
733
|
+
//# sourceMappingURL=icon.js.map
|