@angular/material 10.0.0-rc.3 → 10.1.0
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/_theming.scss +17 -17
- package/autocomplete/index.metadata.json +1 -1
- package/autocomplete/testing/autocomplete-harness.d.ts +2 -0
- package/bundles/material-autocomplete-testing.umd.js +11 -0
- package/bundles/material-autocomplete-testing.umd.js.map +1 -1
- package/bundles/material-autocomplete-testing.umd.min.js +2 -2
- package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
- package/bundles/material-autocomplete.umd.js +3 -1
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +5 -5
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge-testing.umd.min.js +1 -1
- package/bundles/material-badge-testing.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet-testing.umd.min.js +1 -1
- package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
- package/bundles/material-button-testing.umd.js +11 -0
- package/bundles/material-button-testing.umd.js.map +1 -1
- package/bundles/material-button-testing.umd.min.js +2 -2
- package/bundles/material-button-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.js +11 -0
- package/bundles/material-button-toggle-testing.umd.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.min.js +3 -3
- package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +12 -3
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +2 -2
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +7 -2
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +4 -4
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card-testing.umd.js +335 -0
- package/bundles/material-card-testing.umd.js.map +1 -0
- package/bundles/material-card-testing.umd.min.js +44 -0
- package/bundles/material-card-testing.umd.min.js.map +1 -0
- package/bundles/material-checkbox-testing.umd.js +11 -0
- package/bundles/material-checkbox-testing.umd.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.min.js +3 -3
- package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-chips.umd.js +36 -12
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +4 -4
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core-testing.umd.min.js +1 -1
- package/bundles/material-core-testing.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +11 -3
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +11 -11
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +20 -11
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +5 -5
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog-testing.umd.min.js +1 -1
- package/bundles/material-dialog-testing.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +45 -8
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +14 -7
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider-testing.umd.min.js +1 -1
- package/bundles/material-divider-testing.umd.min.js.map +1 -1
- package/bundles/material-expansion-testing.umd.js +11 -0
- package/bundles/material-expansion-testing.umd.js.map +1 -1
- package/bundles/material-expansion-testing.umd.min.js +3 -3
- package/bundles/material-expansion-testing.umd.min.js.map +1 -1
- package/bundles/material-form-field-testing.umd.js +32 -0
- package/bundles/material-form-field-testing.umd.js.map +1 -1
- package/bundles/material-form-field-testing.umd.min.js +4 -4
- package/bundles/material-form-field-testing.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +47 -21
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +5 -5
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list-testing.umd.min.js +1 -1
- package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +2 -2
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +2 -2
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-input-testing.umd.js +23 -6
- package/bundles/material-input-testing.umd.js.map +1 -1
- package/bundles/material-input-testing.umd.min.js +3 -3
- package/bundles/material-input-testing.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +28 -3
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +3 -3
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list-testing.umd.js +33 -0
- package/bundles/material-list-testing.umd.js.map +1 -1
- package/bundles/material-list-testing.umd.min.js +2 -2
- package/bundles/material-list-testing.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +3 -3
- package/bundles/material-list.umd.min.js +1 -1
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu-testing.umd.js +22 -0
- package/bundles/material-menu-testing.umd.js.map +1 -1
- package/bundles/material-menu-testing.umd.min.js +2 -2
- package/bundles/material-menu-testing.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +13 -2
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +4 -4
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator-testing.umd.min.js +1 -1
- package/bundles/material-paginator-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-bar-testing.umd.min.js +1 -1
- package/bundles/material-progress-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner-testing.umd.js +1 -1
- package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
- package/bundles/material-progress-spinner-testing.umd.min.js +2 -2
- package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +2 -2
- package/bundles/material-progress-spinner.umd.min.js +3 -3
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio-testing.umd.js +11 -0
- package/bundles/material-radio-testing.umd.js.map +1 -1
- package/bundles/material-radio-testing.umd.min.js +3 -3
- package/bundles/material-radio-testing.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +15 -5
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +2 -2
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select-testing.umd.js +11 -0
- package/bundles/material-select-testing.umd.js.map +1 -1
- package/bundles/material-select-testing.umd.min.js +2 -2
- package/bundles/material-select-testing.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +11 -3
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +4 -4
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav-testing.umd.min.js +1 -1
- package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +41 -17
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +2 -2
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle-testing.umd.js +11 -0
- package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
- package/bundles/material-slide-toggle-testing.umd.min.js +2 -2
- package/bundles/material-slide-toggle-testing.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slider-testing.umd.js +11 -0
- package/bundles/material-slider-testing.umd.js.map +1 -1
- package/bundles/material-slider-testing.umd.min.js +2 -2
- package/bundles/material-slider-testing.umd.min.js.map +1 -1
- package/bundles/material-snack-bar-testing.umd.min.js +1 -1
- package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +47 -39
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +2 -2
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort-testing.umd.js +10 -10
- package/bundles/material-sort-testing.umd.js.map +1 -1
- package/bundles/material-sort-testing.umd.min.js +3 -3
- package/bundles/material-sort-testing.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +25 -12
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +5 -5
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-table-testing.umd.min.js +1 -1
- package/bundles/material-table-testing.umd.min.js.map +1 -1
- package/bundles/material-table.umd.min.js +2 -2
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs-testing.umd.min.js +1 -1
- package/bundles/material-tabs-testing.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +23 -4
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +5 -12
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar-testing.umd.js +330 -0
- package/bundles/material-toolbar-testing.umd.js.map +1 -0
- package/bundles/material-toolbar-testing.umd.min.js +44 -0
- package/bundles/material-toolbar-testing.umd.min.js.map +1 -0
- package/bundles/material-tooltip-testing.umd.min.js +1 -1
- package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +14 -1
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +3 -3
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js.map +1 -1
- package/button/_button-base.scss +1 -1
- package/button/_button-theme.scss +8 -8
- package/button/index.metadata.json +1 -1
- package/button/testing/button-harness.d.ts +2 -0
- package/button-toggle/button-toggle.d.ts +10 -3
- package/button-toggle/index.metadata.json +1 -1
- package/button-toggle/testing/button-toggle-harness.d.ts +2 -0
- package/card/testing/card-harness-filters.d.ts +17 -0
- package/card/testing/card-harness.d.ts +36 -0
- package/card/testing/index.d.ts +8 -0
- package/card/testing/package.json +9 -0
- package/card/testing/public-api.d.ts +9 -0
- package/checkbox/index.metadata.json +1 -1
- package/checkbox/testing/checkbox-harness.d.ts +2 -0
- package/chips/chip.d.ts +19 -1
- package/chips/index.metadata.json +1 -1
- package/core/focus-indicators/_focus-indicators.scss +6 -6
- package/core/index.metadata.json +1 -1
- package/core/option/optgroup.d.ts +7 -0
- package/core/ripple/ripple-ref.d.ts +21 -2
- package/core/ripple/ripple-renderer.d.ts +1 -19
- package/core/ripple/ripple.d.ts +2 -2
- package/core/style/_list-common.scss +1 -1
- package/datepicker/date-range-input-parts.d.ts +2 -4
- package/datepicker/date-range-input.d.ts +4 -4
- package/datepicker/date-range-picker.d.ts +10 -3
- package/datepicker/datepicker.d.ts +2 -3
- package/datepicker/index.metadata.json +1 -1
- package/datepicker/public-api.d.ts +1 -1
- package/dialog/dialog-container.d.ts +9 -2
- package/dialog/dialog-content-directives.d.ts +1 -0
- package/dialog/dialog-ref.d.ts +7 -0
- package/dialog/index.metadata.json +1 -1
- package/esm2015/autocomplete/autocomplete-module.js +18 -22
- package/esm2015/autocomplete/autocomplete-origin.js +16 -20
- package/esm2015/autocomplete/autocomplete-trigger.js +519 -521
- package/esm2015/autocomplete/autocomplete.js +126 -130
- package/esm2015/autocomplete/testing/autocomplete-harness.js +99 -97
- package/esm2015/badge/badge-module.js +13 -17
- package/esm2015/badge/badge.js +184 -188
- package/esm2015/badge/testing/badge-harness.js +74 -78
- package/esm2015/bottom-sheet/bottom-sheet-container.js +161 -165
- package/esm2015/bottom-sheet/bottom-sheet-module.js +15 -19
- package/esm2015/bottom-sheet/bottom-sheet.js +124 -128
- package/esm2015/bottom-sheet/testing/bottom-sheet-harness.js +29 -33
- package/esm2015/button/button-module.js +20 -24
- package/esm2015/button/button.js +111 -114
- package/esm2015/button/testing/button-harness.js +60 -58
- package/esm2015/button-toggle/button-toggle-module.js +10 -14
- package/esm2015/button-toggle/button-toggle.js +368 -368
- package/esm2015/button-toggle/testing/button-toggle-group-harness.js +42 -46
- package/esm2015/button-toggle/testing/button-toggle-harness.js +113 -111
- package/esm2015/card/card-module.js +30 -34
- package/esm2015/card/card.js +147 -203
- package/esm2015/card/testing/card-harness-filters.js +8 -0
- package/esm2015/card/testing/card-harness.js +52 -0
- package/esm2015/card/testing/index.js +9 -0
- package/esm2015/card/testing/public-api.js +10 -0
- package/esm2015/card/testing/testing.externs.js +0 -0
- package/esm2015/checkbox/checkbox-module.js +21 -29
- package/esm2015/checkbox/checkbox-required-validator.js +9 -13
- package/esm2015/checkbox/checkbox.js +315 -319
- package/esm2015/checkbox/testing/checkbox-harness.js +150 -148
- package/esm2015/chips/chip-input.js +119 -123
- package/esm2015/chips/chip-list.js +572 -576
- package/esm2015/chips/chip.js +333 -328
- package/esm2015/chips/chips-module.js +16 -20
- package/esm2015/core/animation/animation.js +12 -20
- package/esm2015/core/common-behaviors/common-module.js +91 -95
- package/esm2015/core/datetime/index.js +19 -27
- package/esm2015/core/datetime/native-date-adapter.js +202 -206
- package/esm2015/core/error/error-options.js +16 -24
- package/esm2015/core/line/line.js +18 -26
- package/esm2015/core/option/index.js +10 -14
- package/esm2015/core/option/optgroup.js +36 -33
- package/esm2015/core/option/option.js +181 -185
- package/esm2015/core/ripple/index.js +10 -14
- package/esm2015/core/ripple/ripple-ref.js +1 -1
- package/esm2015/core/ripple/ripple-renderer.js +1 -1
- package/esm2015/core/ripple/ripple.js +102 -106
- package/esm2015/core/selection/index.js +9 -13
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +32 -36
- package/esm2015/core/testing/optgroup-harness.js +39 -43
- package/esm2015/core/testing/option-harness.js +51 -55
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/calendar-body.js +214 -218
- package/esm2015/datepicker/calendar.js +295 -303
- package/esm2015/datepicker/date-range-input-parts.js +214 -229
- package/esm2015/datepicker/date-range-input.js +244 -242
- package/esm2015/datepicker/date-range-picker.js +19 -23
- package/esm2015/datepicker/date-range-selection-strategy.js +31 -35
- package/esm2015/datepicker/date-selection-model.js +110 -122
- package/esm2015/datepicker/datepicker-base.js +418 -426
- package/esm2015/datepicker/datepicker-input-base.js +227 -224
- package/esm2015/datepicker/datepicker-input.js +111 -115
- package/esm2015/datepicker/datepicker-intl.js +37 -41
- package/esm2015/datepicker/datepicker-module.js +62 -66
- package/esm2015/datepicker/datepicker-toggle.js +81 -89
- package/esm2015/datepicker/datepicker.js +13 -17
- package/esm2015/datepicker/month-view.js +283 -287
- package/esm2015/datepicker/multi-year-view.js +198 -202
- package/esm2015/datepicker/public-api.js +2 -2
- package/esm2015/datepicker/year-view.js +220 -224
- package/esm2015/dialog/dialog-container.js +175 -164
- package/esm2015/dialog/dialog-content-directives.js +105 -114
- package/esm2015/dialog/dialog-module.js +32 -36
- package/esm2015/dialog/dialog-ref.js +17 -3
- package/esm2015/dialog/dialog.js +236 -240
- package/esm2015/dialog/testing/dialog-harness.js +58 -62
- package/esm2015/divider/divider-module.js +10 -14
- package/esm2015/divider/divider.js +33 -37
- package/esm2015/divider/testing/divider-harness.js +16 -20
- package/esm2015/expansion/accordion.js +73 -77
- package/esm2015/expansion/expansion-module.js +26 -30
- package/esm2015/expansion/expansion-panel-content.js +13 -17
- package/esm2015/expansion/expansion-panel-header.js +168 -180
- package/esm2015/expansion/expansion-panel.js +144 -152
- package/esm2015/expansion/testing/accordion-harness.js +24 -28
- package/esm2015/expansion/testing/expansion-harness.js +136 -134
- package/esm2015/form-field/error.js +26 -23
- package/esm2015/form-field/form-field-control.js +6 -10
- package/esm2015/form-field/form-field-module.js +31 -35
- package/esm2015/form-field/form-field.js +407 -409
- package/esm2015/form-field/hint.js +35 -29
- package/esm2015/form-field/label.js +8 -12
- package/esm2015/form-field/placeholder.js +8 -12
- package/esm2015/form-field/prefix.js +16 -13
- package/esm2015/form-field/suffix.js +16 -13
- package/esm2015/form-field/testing/form-field-harness.js +220 -206
- package/esm2015/grid-list/grid-list-module.js +26 -30
- package/esm2015/grid-list/grid-list.js +108 -112
- package/esm2015/grid-list/grid-tile.js +91 -111
- package/esm2015/grid-list/testing/grid-list-harness.js +62 -66
- package/esm2015/grid-list/testing/grid-tile-harness.js +69 -73
- package/esm2015/grid-list/tile-styler.js +1 -1
- package/esm2015/icon/icon-module.js +10 -14
- package/esm2015/icon/icon-registry.js +406 -410
- package/esm2015/icon/icon.js +228 -232
- package/esm2015/icon/testing/fake-icon-registry.js +66 -74
- package/esm2015/input/autosize.js +30 -34
- package/esm2015/input/input-module.js +21 -25
- package/esm2015/input/input.js +305 -284
- package/esm2015/input/testing/input-harness.js +129 -123
- package/esm2015/list/list-module.js +32 -36
- package/esm2015/list/list.js +165 -189
- package/esm2015/list/selection-list.js +503 -511
- package/esm2015/list/testing/action-list-harness.js +55 -57
- package/esm2015/list/testing/list-harness.js +31 -39
- package/esm2015/list/testing/list-item-harness-base.js +13 -17
- package/esm2015/list/testing/nav-list-harness.js +62 -64
- package/esm2015/list/testing/selection-list-harness.js +136 -138
- package/esm2015/menu/menu-content.js +74 -71
- package/esm2015/menu/menu-item.js +119 -123
- package/esm2015/menu/menu-module.js +29 -37
- package/esm2015/menu/menu-panel.js +1 -1
- package/esm2015/menu/menu-trigger.js +402 -405
- package/esm2015/menu/menu.js +329 -339
- package/esm2015/menu/testing/menu-harness.js +193 -189
- package/esm2015/paginator/paginator-intl.js +36 -40
- package/esm2015/paginator/paginator-module.js +16 -20
- package/esm2015/paginator/paginator.js +205 -209
- package/esm2015/paginator/testing/paginator-harness.js +91 -95
- package/esm2015/progress-bar/progress-bar-module.js +10 -14
- package/esm2015/progress-bar/progress-bar.js +114 -118
- package/esm2015/progress-bar/testing/progress-bar-harness.js +27 -31
- package/esm2015/progress-spinner/progress-spinner-module.js +17 -21
- package/esm2015/progress-spinner/progress-spinner.js +181 -189
- package/esm2015/progress-spinner/testing/progress-spinner-harness.js +28 -32
- package/esm2015/radio/radio-module.js +10 -14
- package/esm2015/radio/radio.js +437 -444
- package/esm2015/radio/testing/radio-harness.js +241 -243
- package/esm2015/select/select-module.js +23 -27
- package/esm2015/select/select.js +917 -918
- package/esm2015/select/testing/select-harness.js +138 -136
- package/esm2015/sidenav/drawer.js +632 -620
- package/esm2015/sidenav/sidenav-module.js +31 -35
- package/esm2015/sidenav/sidenav.js +104 -116
- package/esm2015/sidenav/testing/drawer-harness.js +40 -44
- package/esm2015/sidenav/testing/sidenav-harness.js +20 -24
- package/esm2015/slide-toggle/slide-toggle-module.js +27 -35
- package/esm2015/slide-toggle/slide-toggle-required-validator.js +9 -13
- package/esm2015/slide-toggle/slide-toggle.js +184 -188
- package/esm2015/slide-toggle/testing/slide-toggle-harness.js +123 -121
- package/esm2015/slider/slider-module.js +10 -14
- package/esm2015/slider/slider.js +640 -644
- package/esm2015/slider/testing/slider-harness.js +129 -127
- package/esm2015/snack-bar/simple-snack-bar.js +32 -36
- package/esm2015/snack-bar/snack-bar-container.js +144 -148
- package/esm2015/snack-bar/snack-bar-module.js +17 -21
- package/esm2015/snack-bar/snack-bar-ref.js +1 -1
- package/esm2015/snack-bar/snack-bar.js +208 -205
- package/esm2015/snack-bar/testing/snack-bar-harness.js +112 -116
- package/esm2015/sort/sort-header-intl.js +21 -21
- package/esm2015/sort/sort-header.js +200 -194
- package/esm2015/sort/sort-module.js +11 -15
- package/esm2015/sort/sort.js +92 -96
- package/esm2015/sort/testing/sort-harness.js +28 -32
- package/esm2015/sort/testing/sort-header-harness.js +66 -67
- package/esm2015/stepper/step-header.js +78 -82
- package/esm2015/stepper/step-label.js +8 -12
- package/esm2015/stepper/stepper-button.js +23 -31
- package/esm2015/stepper/stepper-icon.js +16 -20
- package/esm2015/stepper/stepper-intl.js +15 -19
- package/esm2015/stepper/stepper-module.js +40 -44
- package/esm2015/stepper/stepper.js +139 -155
- package/esm2015/table/cell.js +94 -122
- package/esm2015/table/row.js +90 -118
- package/esm2015/table/table-module.js +13 -17
- package/esm2015/table/table.js +26 -30
- package/esm2015/table/testing/cell-harness.js +56 -68
- package/esm2015/table/testing/row-harness.js +90 -102
- package/esm2015/table/testing/table-harness.js +65 -69
- package/esm2015/table/text-column.js +17 -21
- package/esm2015/tabs/index.js +4 -2
- package/esm2015/tabs/ink-bar.js +55 -59
- package/esm2015/tabs/paginated-tab-header.js +415 -419
- package/esm2015/tabs/tab-body.js +179 -191
- package/esm2015/tabs/tab-content.js +21 -16
- package/esm2015/tabs/tab-group.js +263 -271
- package/esm2015/tabs/tab-header.js +69 -77
- package/esm2015/tabs/tab-label-wrapper.js +29 -33
- package/esm2015/tabs/tab-label.js +16 -13
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +199 -215
- package/esm2015/tabs/tab.js +80 -83
- package/esm2015/tabs/tabs-module.js +38 -42
- package/esm2015/tabs/testing/tab-group-harness.js +52 -56
- package/esm2015/tabs/testing/tab-harness.js +78 -82
- package/esm2015/toolbar/testing/index.js +9 -0
- package/esm2015/toolbar/testing/public-api.js +10 -0
- package/esm2015/toolbar/testing/testing.externs.js +0 -0
- package/esm2015/toolbar/testing/toolbar-harness-filters.js +8 -0
- package/esm2015/toolbar/testing/toolbar-harness.js +47 -0
- package/esm2015/toolbar/toolbar-module.js +10 -14
- package/esm2015/toolbar/toolbar.js +61 -69
- package/esm2015/tooltip/testing/tooltip-harness.js +43 -47
- package/esm2015/tooltip/tooltip-module.js +17 -21
- package/esm2015/tooltip/tooltip.js +502 -497
- package/esm2015/tree/data-source/flat-data-source.js +1 -1
- package/esm2015/tree/node.js +99 -111
- package/esm2015/tree/outlet.js +19 -23
- package/esm2015/tree/padding.js +13 -17
- package/esm2015/tree/toggle.js +15 -19
- package/esm2015/tree/tree-module.js +10 -14
- package/esm2015/tree/tree.js +23 -27
- package/expansion/testing/expansion-harness.d.ts +2 -0
- package/fesm2015/autocomplete/testing.js +98 -95
- package/fesm2015/autocomplete/testing.js.map +1 -1
- package/fesm2015/autocomplete.js +677 -687
- package/fesm2015/autocomplete.js.map +1 -1
- package/fesm2015/badge/testing.js +73 -76
- package/fesm2015/badge/testing.js.map +1 -1
- package/fesm2015/badge.js +195 -201
- package/fesm2015/badge.js.map +1 -1
- package/fesm2015/bottom-sheet/testing.js +28 -31
- package/fesm2015/bottom-sheet/testing.js.map +1 -1
- package/fesm2015/bottom-sheet.js +297 -306
- package/fesm2015/bottom-sheet.js.map +1 -1
- package/fesm2015/button/testing.js +59 -56
- package/fesm2015/button/testing.js.map +1 -1
- package/fesm2015/button-toggle/testing.js +155 -155
- package/fesm2015/button-toggle/testing.js.map +1 -1
- package/fesm2015/button-toggle.js +377 -378
- package/fesm2015/button-toggle.js.map +1 -1
- package/fesm2015/button.js +129 -133
- package/fesm2015/button.js.map +1 -1
- package/fesm2015/card/testing.js +79 -0
- package/fesm2015/card/testing.js.map +1 -0
- package/fesm2015/card.js +175 -220
- package/fesm2015/card.js.map +1 -1
- package/fesm2015/checkbox/testing.js +149 -146
- package/fesm2015/checkbox/testing.js.map +1 -1
- package/fesm2015/checkbox.js +342 -354
- package/fesm2015/checkbox.js.map +1 -1
- package/fesm2015/chips.js +1039 -1039
- package/fesm2015/chips.js.map +1 -1
- package/fesm2015/core/testing.js +88 -94
- package/fesm2015/core/testing.js.map +1 -1
- package/fesm2015/core.js +729 -773
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker.js +2821 -2884
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/dialog/testing.js +57 -60
- package/fesm2015/dialog/testing.js.map +1 -1
- package/fesm2015/dialog.js +564 -549
- package/fesm2015/dialog.js.map +1 -1
- package/fesm2015/divider/testing.js +15 -18
- package/fesm2015/divider/testing.js.map +1 -1
- package/fesm2015/divider.js +41 -47
- package/fesm2015/divider.js.map +1 -1
- package/fesm2015/expansion/testing.js +159 -159
- package/fesm2015/expansion/testing.js.map +1 -1
- package/fesm2015/expansion.js +422 -446
- package/fesm2015/expansion.js.map +1 -1
- package/fesm2015/form-field/testing.js +219 -204
- package/fesm2015/form-field/testing.js.map +1 -1
- package/fesm2015/form-field.js +538 -532
- package/fesm2015/form-field.js.map +1 -1
- package/fesm2015/grid-list/testing.js +129 -135
- package/fesm2015/grid-list/testing.js.map +1 -1
- package/fesm2015/grid-list.js +221 -242
- package/fesm2015/grid-list.js.map +1 -1
- package/fesm2015/icon/testing.js +65 -71
- package/fesm2015/icon/testing.js.map +1 -1
- package/fesm2015/icon.js +660 -669
- package/fesm2015/icon.js.map +1 -1
- package/fesm2015/input/testing.js +128 -121
- package/fesm2015/input/testing.js.map +1 -1
- package/fesm2015/input.js +353 -337
- package/fesm2015/input.js.map +1 -1
- package/fesm2015/list/testing.js +298 -307
- package/fesm2015/list/testing.js.map +1 -1
- package/fesm2015/list.js +698 -725
- package/fesm2015/list.js.map +1 -1
- package/fesm2015/menu/testing.js +192 -186
- package/fesm2015/menu/testing.js.map +1 -1
- package/fesm2015/menu.js +948 -962
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/paginator/testing.js +90 -93
- package/fesm2015/paginator/testing.js.map +1 -1
- package/fesm2015/paginator.js +247 -256
- package/fesm2015/paginator.js.map +1 -1
- package/fesm2015/progress-bar/testing.js +26 -29
- package/fesm2015/progress-bar/testing.js.map +1 -1
- package/fesm2015/progress-bar.js +122 -128
- package/fesm2015/progress-bar.js.map +1 -1
- package/fesm2015/progress-spinner/testing.js +27 -30
- package/fesm2015/progress-spinner/testing.js.map +1 -1
- package/fesm2015/progress-spinner.js +196 -205
- package/fesm2015/progress-spinner.js.map +1 -1
- package/fesm2015/radio/testing.js +240 -240
- package/fesm2015/radio/testing.js.map +1 -1
- package/fesm2015/radio.js +447 -453
- package/fesm2015/radio.js.map +1 -1
- package/fesm2015/select/testing.js +137 -134
- package/fesm2015/select/testing.js.map +1 -1
- package/fesm2015/select.js +939 -941
- package/fesm2015/select.js.map +1 -1
- package/fesm2015/sidenav/testing.js +58 -64
- package/fesm2015/sidenav/testing.js.map +1 -1
- package/fesm2015/sidenav.js +765 -762
- package/fesm2015/sidenav.js.map +1 -1
- package/fesm2015/slide-toggle/testing.js +122 -119
- package/fesm2015/slide-toggle/testing.js.map +1 -1
- package/fesm2015/slide-toggle.js +217 -229
- package/fesm2015/slide-toggle.js.map +1 -1
- package/fesm2015/slider/testing.js +128 -125
- package/fesm2015/slider/testing.js.map +1 -1
- package/fesm2015/slider.js +648 -654
- package/fesm2015/slider.js.map +1 -1
- package/fesm2015/snack-bar/testing.js +111 -114
- package/fesm2015/snack-bar/testing.js.map +1 -1
- package/fesm2015/snack-bar.js +426 -431
- package/fesm2015/snack-bar.js.map +1 -1
- package/fesm2015/sort/testing.js +92 -95
- package/fesm2015/sort/testing.js.map +1 -1
- package/fesm2015/sort.js +320 -318
- package/fesm2015/sort.js.map +1 -1
- package/fesm2015/stepper.js +312 -345
- package/fesm2015/stepper.js.map +1 -1
- package/fesm2015/table/testing.js +208 -229
- package/fesm2015/table/testing.js.map +1 -1
- package/fesm2015/table.js +235 -286
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/tabs/testing.js +128 -134
- package/fesm2015/tabs/testing.js.map +1 -1
- package/fesm2015/tabs.js +1362 -1399
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/toolbar/testing.js +74 -0
- package/fesm2015/toolbar/testing.js.map +1 -0
- package/fesm2015/toolbar.js +69 -78
- package/fesm2015/toolbar.js.map +1 -1
- package/fesm2015/tooltip/testing.js +42 -45
- package/fesm2015/tooltip/testing.js.map +1 -1
- package/fesm2015/tooltip.js +517 -513
- package/fesm2015/tooltip.js.map +1 -1
- package/fesm2015/tree.js +173 -197
- package/fesm2015/tree.js.map +1 -1
- package/form-field/error.d.ts +7 -0
- package/form-field/hint.d.ts +10 -0
- package/form-field/index.metadata.json +1 -1
- package/form-field/prefix.d.ts +7 -0
- package/form-field/suffix.d.ts +7 -0
- package/form-field/testing/form-field-harness.d.ts +8 -0
- package/grid-list/grid-list.d.ts +2 -1
- package/grid-list/index.metadata.json +1 -1
- package/grid-list/tile-styler.d.ts +10 -5
- package/input/_input-theme.scss +2 -2
- package/input/index.metadata.json +1 -1
- package/input/input.d.ts +6 -2
- package/input/testing/input-harness.d.ts +2 -0
- package/list/index.metadata.json +1 -1
- package/list/testing/action-list-harness.d.ts +2 -0
- package/list/testing/nav-list-harness.d.ts +2 -0
- package/list/testing/selection-list-harness.d.ts +2 -0
- package/menu/index.metadata.json +1 -1
- package/menu/menu-content.d.ts +7 -1
- package/menu/menu-panel.d.ts +1 -0
- package/menu/menu.d.ts +4 -0
- package/menu/testing/menu-harness.d.ts +4 -0
- package/package.json +6 -6
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-spinner/index.metadata.json +1 -1
- package/radio/index.metadata.json +1 -1
- package/radio/radio.d.ts +6 -0
- package/radio/testing/radio-harness.d.ts +2 -0
- package/schematics/migration.json +5 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +3 -3
- package/schematics/ng-generate/navigation/schema.json +5 -0
- package/schematics/ng-update/data/index.js +1 -1
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +7 -2
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +639 -639
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +1 -1
- package/select/index.metadata.json +1 -1
- package/select/select.d.ts +6 -0
- package/select/testing/select-harness.d.ts +2 -0
- package/sidenav/drawer.d.ts +15 -3
- package/sidenav/index.metadata.json +1 -1
- package/slide-toggle/index.metadata.json +1 -1
- package/slide-toggle/testing/slide-toggle-harness.d.ts +2 -0
- package/slider/testing/slider-harness.d.ts +2 -0
- package/snack-bar/index.metadata.json +1 -1
- package/snack-bar/simple-snack-bar.d.ts +13 -1
- package/snack-bar/snack-bar-container.d.ts +16 -3
- package/snack-bar/snack-bar-ref.d.ts +3 -3
- package/snack-bar/snack-bar.d.ts +10 -3
- package/sort/index.metadata.json +1 -1
- package/sort/sort-header-intl.d.ts +5 -1
- package/sort/sort-header.d.ts +3 -1
- package/sort/testing/sort-header-harness.d.ts +6 -2
- package/tabs/index.d.ts +3 -1
- package/tabs/index.metadata.json +1 -1
- package/tabs/tab-content.d.ts +7 -1
- package/tabs/tab-label.d.ts +7 -0
- package/toolbar/testing/index.d.ts +8 -0
- package/toolbar/testing/package.json +9 -0
- package/toolbar/testing/public-api.d.ts +9 -0
- package/toolbar/testing/toolbar-harness-filters.d.ts +13 -0
- package/toolbar/testing/toolbar-harness.d.ts +31 -0
- package/tooltip/index.metadata.json +1 -1
- package/tooltip/tooltip.d.ts +1 -0
- package/tree/data-source/flat-data-source.d.ts +4 -4
- package/tree/index.metadata.json +1 -1
package/fesm2015/input.js
CHANGED
|
@@ -4,7 +4,7 @@ import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
|
4
4
|
import { getSupportedInputTypes, Platform } from '@angular/cdk/platform';
|
|
5
5
|
import { NgControl, NgForm, FormGroupDirective } from '@angular/forms';
|
|
6
6
|
import { mixinErrorState, ErrorStateMatcher } from '@angular/material/core';
|
|
7
|
-
import { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
|
|
7
|
+
import { MatFormFieldControl, MatFormField, MatFormFieldModule } from '@angular/material/form-field';
|
|
8
8
|
import { Subject } from 'rxjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -19,38 +19,35 @@ import { Subject } from 'rxjs';
|
|
|
19
19
|
* @deprecated Use `cdkTextareaAutosize` from `@angular/cdk/text-field` instead.
|
|
20
20
|
* @breaking-change 8.0.0
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
return MatTextareaAutosize;
|
|
53
|
-
})();
|
|
22
|
+
class MatTextareaAutosize extends CdkTextareaAutosize {
|
|
23
|
+
get matAutosizeMinRows() { return this.minRows; }
|
|
24
|
+
set matAutosizeMinRows(value) { this.minRows = value; }
|
|
25
|
+
get matAutosizeMaxRows() { return this.maxRows; }
|
|
26
|
+
set matAutosizeMaxRows(value) { this.maxRows = value; }
|
|
27
|
+
get matAutosize() { return this.enabled; }
|
|
28
|
+
set matAutosize(value) { this.enabled = value; }
|
|
29
|
+
get matTextareaAutosize() { return this.enabled; }
|
|
30
|
+
set matTextareaAutosize(value) { this.enabled = value; }
|
|
31
|
+
}
|
|
32
|
+
MatTextareaAutosize.decorators = [
|
|
33
|
+
{ type: Directive, args: [{
|
|
34
|
+
selector: 'textarea[mat-autosize], textarea[matTextareaAutosize]',
|
|
35
|
+
exportAs: 'matTextareaAutosize',
|
|
36
|
+
inputs: ['cdkAutosizeMinRows', 'cdkAutosizeMaxRows'],
|
|
37
|
+
host: {
|
|
38
|
+
'class': 'cdk-textarea-autosize mat-autosize',
|
|
39
|
+
// Textarea elements that have the directive applied should have a single row by default.
|
|
40
|
+
// Browsers normally show two rows by default and therefore this limits the minRows binding.
|
|
41
|
+
'rows': '1',
|
|
42
|
+
},
|
|
43
|
+
},] }
|
|
44
|
+
];
|
|
45
|
+
MatTextareaAutosize.propDecorators = {
|
|
46
|
+
matAutosizeMinRows: [{ type: Input }],
|
|
47
|
+
matAutosizeMaxRows: [{ type: Input }],
|
|
48
|
+
matAutosize: [{ type: Input, args: ['mat-autosize',] }],
|
|
49
|
+
matTextareaAutosize: [{ type: Input }]
|
|
50
|
+
};
|
|
54
51
|
|
|
55
52
|
/**
|
|
56
53
|
* @license
|
|
@@ -113,322 +110,344 @@ class MatInputBase {
|
|
|
113
110
|
}
|
|
114
111
|
const _MatInputMixinBase = mixinErrorState(MatInputBase);
|
|
115
112
|
/** Directive that allows a native input to work inside a `MatFormField`. */
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
* @docs-private
|
|
130
|
-
*/
|
|
131
|
-
this.focused = false;
|
|
132
|
-
/**
|
|
133
|
-
* Implemented as part of MatFormFieldControl.
|
|
134
|
-
* @docs-private
|
|
135
|
-
*/
|
|
136
|
-
this.stateChanges = new Subject();
|
|
137
|
-
/**
|
|
138
|
-
* Implemented as part of MatFormFieldControl.
|
|
139
|
-
* @docs-private
|
|
140
|
-
*/
|
|
141
|
-
this.controlType = 'mat-input';
|
|
142
|
-
/**
|
|
143
|
-
* Implemented as part of MatFormFieldControl.
|
|
144
|
-
* @docs-private
|
|
145
|
-
*/
|
|
146
|
-
this.autofilled = false;
|
|
147
|
-
this._disabled = false;
|
|
148
|
-
this._required = false;
|
|
149
|
-
this._type = 'text';
|
|
150
|
-
this._readonly = false;
|
|
151
|
-
this._neverEmptyInputTypes = [
|
|
152
|
-
'date',
|
|
153
|
-
'datetime',
|
|
154
|
-
'datetime-local',
|
|
155
|
-
'month',
|
|
156
|
-
'time',
|
|
157
|
-
'week'
|
|
158
|
-
].filter(t => getSupportedInputTypes().has(t));
|
|
159
|
-
const element = this._elementRef.nativeElement;
|
|
160
|
-
const nodeName = element.nodeName.toLowerCase();
|
|
161
|
-
// If no input value accessor was explicitly specified, use the element as the input value
|
|
162
|
-
// accessor.
|
|
163
|
-
this._inputValueAccessor = inputValueAccessor || element;
|
|
164
|
-
this._previousNativeValue = this.value;
|
|
165
|
-
// Force setter to be called in case id was not specified.
|
|
166
|
-
this.id = this.id;
|
|
167
|
-
// On some versions of iOS the caret gets stuck in the wrong place when holding down the delete
|
|
168
|
-
// key. In order to get around this we need to "jiggle" the caret loose. Since this bug only
|
|
169
|
-
// exists on iOS, we only bother to install the listener on iOS.
|
|
170
|
-
if (_platform.IOS) {
|
|
171
|
-
ngZone.runOutsideAngular(() => {
|
|
172
|
-
_elementRef.nativeElement.addEventListener('keyup', (event) => {
|
|
173
|
-
let el = event.target;
|
|
174
|
-
if (!el.value && !el.selectionStart && !el.selectionEnd) {
|
|
175
|
-
// Note: Just setting `0, 0` doesn't fix the issue. Setting
|
|
176
|
-
// `1, 1` fixes it for the first time that you type text and
|
|
177
|
-
// then hold delete. Toggling to `1, 1` and then back to
|
|
178
|
-
// `0, 0` seems to completely fix it.
|
|
179
|
-
el.setSelectionRange(1, 1);
|
|
180
|
-
el.setSelectionRange(0, 0);
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
this._isServer = !this._platform.isBrowser;
|
|
186
|
-
this._isNativeSelect = nodeName === 'select';
|
|
187
|
-
this._isTextarea = nodeName === 'textarea';
|
|
188
|
-
if (this._isNativeSelect) {
|
|
189
|
-
this.controlType = element.multiple ? 'mat-native-select-multiple' :
|
|
190
|
-
'mat-native-select';
|
|
191
|
-
}
|
|
192
|
-
}
|
|
113
|
+
class MatInput extends _MatInputMixinBase {
|
|
114
|
+
constructor(_elementRef, _platform,
|
|
115
|
+
/** @docs-private */
|
|
116
|
+
ngControl, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, inputValueAccessor, _autofillMonitor, ngZone,
|
|
117
|
+
// @breaking-change 8.0.0 `_formField` parameter to be made required.
|
|
118
|
+
_formField) {
|
|
119
|
+
super(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);
|
|
120
|
+
this._elementRef = _elementRef;
|
|
121
|
+
this._platform = _platform;
|
|
122
|
+
this.ngControl = ngControl;
|
|
123
|
+
this._autofillMonitor = _autofillMonitor;
|
|
124
|
+
this._formField = _formField;
|
|
125
|
+
this._uid = `mat-input-${nextUniqueId++}`;
|
|
193
126
|
/**
|
|
194
127
|
* Implemented as part of MatFormFieldControl.
|
|
195
128
|
* @docs-private
|
|
196
129
|
*/
|
|
197
|
-
|
|
198
|
-
if (this.ngControl && this.ngControl.disabled !== null) {
|
|
199
|
-
return this.ngControl.disabled;
|
|
200
|
-
}
|
|
201
|
-
return this._disabled;
|
|
202
|
-
}
|
|
203
|
-
set disabled(value) {
|
|
204
|
-
this._disabled = coerceBooleanProperty(value);
|
|
205
|
-
// Browsers may not fire the blur event if the input is disabled too quickly.
|
|
206
|
-
// Reset from here to ensure that the element doesn't become stuck.
|
|
207
|
-
if (this.focused) {
|
|
208
|
-
this.focused = false;
|
|
209
|
-
this.stateChanges.next();
|
|
210
|
-
}
|
|
211
|
-
}
|
|
130
|
+
this.focused = false;
|
|
212
131
|
/**
|
|
213
132
|
* Implemented as part of MatFormFieldControl.
|
|
214
133
|
* @docs-private
|
|
215
134
|
*/
|
|
216
|
-
|
|
217
|
-
set id(value) { this._id = value || this._uid; }
|
|
135
|
+
this.stateChanges = new Subject();
|
|
218
136
|
/**
|
|
219
137
|
* Implemented as part of MatFormFieldControl.
|
|
220
138
|
* @docs-private
|
|
221
139
|
*/
|
|
222
|
-
|
|
223
|
-
set required(value) { this._required = coerceBooleanProperty(value); }
|
|
224
|
-
/** Input type of the element. */
|
|
225
|
-
get type() { return this._type; }
|
|
226
|
-
set type(value) {
|
|
227
|
-
this._type = value || 'text';
|
|
228
|
-
this._validateType();
|
|
229
|
-
// When using Angular inputs, developers are no longer able to set the properties on the native
|
|
230
|
-
// input element. To ensure that bindings for `type` work, we need to sync the setter
|
|
231
|
-
// with the native property. Textarea elements don't support the type property or attribute.
|
|
232
|
-
if (!this._isTextarea && getSupportedInputTypes().has(this._type)) {
|
|
233
|
-
this._elementRef.nativeElement.type = this._type;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
140
|
+
this.controlType = 'mat-input';
|
|
236
141
|
/**
|
|
237
142
|
* Implemented as part of MatFormFieldControl.
|
|
238
143
|
* @docs-private
|
|
239
144
|
*/
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
145
|
+
this.autofilled = false;
|
|
146
|
+
this._disabled = false;
|
|
147
|
+
this._required = false;
|
|
148
|
+
this._type = 'text';
|
|
149
|
+
this._readonly = false;
|
|
150
|
+
this._neverEmptyInputTypes = [
|
|
151
|
+
'date',
|
|
152
|
+
'datetime',
|
|
153
|
+
'datetime-local',
|
|
154
|
+
'month',
|
|
155
|
+
'time',
|
|
156
|
+
'week'
|
|
157
|
+
].filter(t => getSupportedInputTypes().has(t));
|
|
158
|
+
const element = this._elementRef.nativeElement;
|
|
159
|
+
const nodeName = element.nodeName.toLowerCase();
|
|
160
|
+
// If no input value accessor was explicitly specified, use the element as the input value
|
|
161
|
+
// accessor.
|
|
162
|
+
this._inputValueAccessor = inputValueAccessor || element;
|
|
163
|
+
this._previousNativeValue = this.value;
|
|
164
|
+
// Force setter to be called in case id was not specified.
|
|
165
|
+
this.id = this.id;
|
|
166
|
+
// On some versions of iOS the caret gets stuck in the wrong place when holding down the delete
|
|
167
|
+
// key. In order to get around this we need to "jiggle" the caret loose. Since this bug only
|
|
168
|
+
// exists on iOS, we only bother to install the listener on iOS.
|
|
169
|
+
if (_platform.IOS) {
|
|
170
|
+
ngZone.runOutsideAngular(() => {
|
|
171
|
+
_elementRef.nativeElement.addEventListener('keyup', (event) => {
|
|
172
|
+
let el = event.target;
|
|
173
|
+
if (!el.value && !el.selectionStart && !el.selectionEnd) {
|
|
174
|
+
// Note: Just setting `0, 0` doesn't fix the issue. Setting
|
|
175
|
+
// `1, 1` fixes it for the first time that you type text and
|
|
176
|
+
// then hold delete. Toggling to `1, 1` and then back to
|
|
177
|
+
// `0, 0` seems to completely fix it.
|
|
178
|
+
el.setSelectionRange(1, 1);
|
|
179
|
+
el.setSelectionRange(0, 0);
|
|
180
|
+
}
|
|
255
181
|
});
|
|
256
|
-
}
|
|
182
|
+
});
|
|
257
183
|
}
|
|
258
|
-
|
|
259
|
-
|
|
184
|
+
this._isServer = !this._platform.isBrowser;
|
|
185
|
+
this._isNativeSelect = nodeName === 'select';
|
|
186
|
+
this._isTextarea = nodeName === 'textarea';
|
|
187
|
+
if (this._isNativeSelect) {
|
|
188
|
+
this.controlType = element.multiple ? 'mat-native-select-multiple' :
|
|
189
|
+
'mat-native-select';
|
|
260
190
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Implemented as part of MatFormFieldControl.
|
|
194
|
+
* @docs-private
|
|
195
|
+
*/
|
|
196
|
+
get disabled() {
|
|
197
|
+
if (this.ngControl && this.ngControl.disabled !== null) {
|
|
198
|
+
return this.ngControl.disabled;
|
|
266
199
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
200
|
+
return this._disabled;
|
|
201
|
+
}
|
|
202
|
+
set disabled(value) {
|
|
203
|
+
this._disabled = coerceBooleanProperty(value);
|
|
204
|
+
// Browsers may not fire the blur event if the input is disabled too quickly.
|
|
205
|
+
// Reset from here to ensure that the element doesn't become stuck.
|
|
206
|
+
if (this.focused) {
|
|
207
|
+
this.focused = false;
|
|
208
|
+
this.stateChanges.next();
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Implemented as part of MatFormFieldControl.
|
|
213
|
+
* @docs-private
|
|
214
|
+
*/
|
|
215
|
+
get id() { return this._id; }
|
|
216
|
+
set id(value) { this._id = value || this._uid; }
|
|
217
|
+
/**
|
|
218
|
+
* Implemented as part of MatFormFieldControl.
|
|
219
|
+
* @docs-private
|
|
220
|
+
*/
|
|
221
|
+
get required() { return this._required; }
|
|
222
|
+
set required(value) { this._required = coerceBooleanProperty(value); }
|
|
223
|
+
/** Input type of the element. */
|
|
224
|
+
get type() { return this._type; }
|
|
225
|
+
set type(value) {
|
|
226
|
+
this._type = value || 'text';
|
|
227
|
+
this._validateType();
|
|
228
|
+
// When using Angular inputs, developers are no longer able to set the properties on the native
|
|
229
|
+
// input element. To ensure that bindings for `type` work, we need to sync the setter
|
|
230
|
+
// with the native property. Textarea elements don't support the type property or attribute.
|
|
231
|
+
if (!this._isTextarea && getSupportedInputTypes().has(this._type)) {
|
|
232
|
+
this._elementRef.nativeElement.type = this._type;
|
|
278
233
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Implemented as part of MatFormFieldControl.
|
|
237
|
+
* @docs-private
|
|
238
|
+
*/
|
|
239
|
+
get value() { return this._inputValueAccessor.value; }
|
|
240
|
+
set value(value) {
|
|
241
|
+
if (value !== this.value) {
|
|
242
|
+
this._inputValueAccessor.value = value;
|
|
243
|
+
this.stateChanges.next();
|
|
282
244
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
if (isFocused !== this.focused && (!this.readonly || !isFocused)) {
|
|
292
|
-
this.focused = isFocused;
|
|
245
|
+
}
|
|
246
|
+
/** Whether the element is readonly. */
|
|
247
|
+
get readonly() { return this._readonly; }
|
|
248
|
+
set readonly(value) { this._readonly = coerceBooleanProperty(value); }
|
|
249
|
+
ngAfterViewInit() {
|
|
250
|
+
if (this._platform.isBrowser) {
|
|
251
|
+
this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(event => {
|
|
252
|
+
this.autofilled = event.isAutofilled;
|
|
293
253
|
this.stateChanges.next();
|
|
294
|
-
}
|
|
254
|
+
});
|
|
295
255
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
// It's necessary that Angular recognizes the value change, because when floatingLabel
|
|
305
|
-
// is set to false and Angular forms aren't used, the placeholder won't recognize the
|
|
306
|
-
// value changes and will not disappear.
|
|
307
|
-
// Listening to the input event wouldn't be necessary when the input is using the
|
|
308
|
-
// FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.
|
|
256
|
+
}
|
|
257
|
+
ngOnChanges() {
|
|
258
|
+
this.stateChanges.next();
|
|
259
|
+
}
|
|
260
|
+
ngOnDestroy() {
|
|
261
|
+
this.stateChanges.complete();
|
|
262
|
+
if (this._platform.isBrowser) {
|
|
263
|
+
this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);
|
|
309
264
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
265
|
+
}
|
|
266
|
+
ngDoCheck() {
|
|
267
|
+
if (this.ngControl) {
|
|
268
|
+
// We need to re-evaluate this on every change detection cycle, because there are some
|
|
269
|
+
// error triggers that we can't subscribe to (e.g. parent form submissions). This means
|
|
270
|
+
// that whatever logic is in here has to be super lean or we risk destroying the performance.
|
|
271
|
+
this.updateErrorState();
|
|
317
272
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
273
|
+
// We need to dirty-check the native element's value, because there are some cases where
|
|
274
|
+
// we won't be notified when it changes (e.g. the consumer isn't using forms or they're
|
|
275
|
+
// updating the value using `emitEvent: false`).
|
|
276
|
+
this._dirtyCheckNativeValue();
|
|
277
|
+
// We need to dirty-check and set the placeholder attribute ourselves, because whether it's
|
|
278
|
+
// present or not depends on a query which is prone to "changed after checked" errors.
|
|
279
|
+
this._dirtyCheckPlaceholder();
|
|
280
|
+
}
|
|
281
|
+
/** Focuses the input. */
|
|
282
|
+
focus(options) {
|
|
283
|
+
this._elementRef.nativeElement.focus(options);
|
|
284
|
+
}
|
|
285
|
+
// We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
|
|
286
|
+
// In Ivy the `host` bindings will be merged when this class is extended, whereas in
|
|
287
|
+
// ViewEngine they're overwritten.
|
|
288
|
+
// TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
|
|
289
|
+
/** Callback for the cases where the focused state of the input changes. */
|
|
290
|
+
// tslint:disable:no-host-decorator-in-concrete
|
|
291
|
+
// tslint:enable:no-host-decorator-in-concrete
|
|
292
|
+
_focusChanged(isFocused) {
|
|
293
|
+
if (isFocused !== this.focused && (!this.readonly || !isFocused)) {
|
|
294
|
+
this.focused = isFocused;
|
|
295
|
+
this.stateChanges.next();
|
|
323
296
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
297
|
+
}
|
|
298
|
+
// We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
|
|
299
|
+
// In Ivy the `host` bindings will be merged when this class is extended, whereas in
|
|
300
|
+
// ViewEngine they're overwritten.
|
|
301
|
+
// TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
|
|
302
|
+
// tslint:disable-next-line:no-host-decorator-in-concrete
|
|
303
|
+
_onInput() {
|
|
304
|
+
// This is a noop function and is used to let Angular know whenever the value changes.
|
|
305
|
+
// Angular will run a new change detection each time the `input` event has been dispatched.
|
|
306
|
+
// It's necessary that Angular recognizes the value change, because when floatingLabel
|
|
307
|
+
// is set to false and Angular forms aren't used, the placeholder won't recognize the
|
|
308
|
+
// value changes and will not disappear.
|
|
309
|
+
// Listening to the input event wouldn't be necessary when the input is using the
|
|
310
|
+
// FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.
|
|
311
|
+
}
|
|
312
|
+
/** Does some manual dirty checking on the native input `placeholder` attribute. */
|
|
313
|
+
_dirtyCheckPlaceholder() {
|
|
314
|
+
// If we're hiding the native placeholder, it should also be cleared from the DOM, otherwise
|
|
315
|
+
// screen readers will read it out twice: once from the label and once from the attribute.
|
|
316
|
+
// TODO: can be removed once we get rid of the `legacy` style for the form field, because it's
|
|
317
|
+
// the only one that supports promoting the placeholder to a label.
|
|
318
|
+
const formField = this._formField;
|
|
319
|
+
const placeholder = (!formField || !formField._hideControlPlaceholder()) ? this.placeholder : null;
|
|
320
|
+
if (placeholder !== this._previousPlaceholder) {
|
|
321
|
+
const element = this._elementRef.nativeElement;
|
|
322
|
+
this._previousPlaceholder = placeholder;
|
|
323
|
+
placeholder ?
|
|
324
|
+
element.setAttribute('placeholder', placeholder) : element.removeAttribute('placeholder');
|
|
327
325
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
326
|
+
}
|
|
327
|
+
/** Does some manual dirty checking on the native input `value` property. */
|
|
328
|
+
_dirtyCheckNativeValue() {
|
|
329
|
+
const newValue = this._elementRef.nativeElement.value;
|
|
330
|
+
if (this._previousNativeValue !== newValue) {
|
|
331
|
+
this._previousNativeValue = newValue;
|
|
332
|
+
this.stateChanges.next();
|
|
333
333
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
return !this._isNeverEmpty() && !this._elementRef.nativeElement.value && !this._isBadInput() &&
|
|
340
|
-
!this.autofilled;
|
|
334
|
+
}
|
|
335
|
+
/** Make sure the input is a supported type. */
|
|
336
|
+
_validateType() {
|
|
337
|
+
if (MAT_INPUT_INVALID_TYPES.indexOf(this._type) > -1) {
|
|
338
|
+
throw getMatInputUnsupportedTypeError(this._type);
|
|
341
339
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
340
|
+
}
|
|
341
|
+
/** Checks whether the input type is one of the types that are never empty. */
|
|
342
|
+
_isNeverEmpty() {
|
|
343
|
+
return this._neverEmptyInputTypes.indexOf(this._type) > -1;
|
|
344
|
+
}
|
|
345
|
+
/** Checks whether the input is invalid based on the native validation. */
|
|
346
|
+
_isBadInput() {
|
|
347
|
+
// The `validity` property won't be present on platform-server.
|
|
348
|
+
let validity = this._elementRef.nativeElement.validity;
|
|
349
|
+
return validity && validity.badInput;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Implemented as part of MatFormFieldControl.
|
|
353
|
+
* @docs-private
|
|
354
|
+
*/
|
|
355
|
+
get empty() {
|
|
356
|
+
return !this._isNeverEmpty() && !this._elementRef.nativeElement.value && !this._isBadInput() &&
|
|
357
|
+
!this.autofilled;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Implemented as part of MatFormFieldControl.
|
|
361
|
+
* @docs-private
|
|
362
|
+
*/
|
|
363
|
+
get shouldLabelFloat() {
|
|
364
|
+
if (this._isNativeSelect) {
|
|
365
|
+
// For a single-selection `<select>`, the label should float when the selected option has
|
|
366
|
+
// a non-empty display value. For a `<select multiple>`, the label *always* floats to avoid
|
|
367
|
+
// overlapping the label with the options.
|
|
368
|
+
const selectElement = this._elementRef.nativeElement;
|
|
369
|
+
const firstOption = selectElement.options[0];
|
|
370
|
+
// On most browsers the `selectedIndex` will always be 0, however on IE and Edge it'll be
|
|
371
|
+
// -1 if the `value` is set to something, that isn't in the list of options, at a later point.
|
|
372
|
+
return this.focused || selectElement.multiple || !this.empty ||
|
|
373
|
+
!!(selectElement.selectedIndex > -1 && firstOption && firstOption.label);
|
|
361
374
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
* @docs-private
|
|
365
|
-
*/
|
|
366
|
-
setDescribedByIds(ids) {
|
|
367
|
-
this._ariaDescribedby = ids.join(' ');
|
|
375
|
+
else {
|
|
376
|
+
return this.focused || !this.empty;
|
|
368
377
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Implemented as part of MatFormFieldControl.
|
|
381
|
+
* @docs-private
|
|
382
|
+
*/
|
|
383
|
+
setDescribedByIds(ids) {
|
|
384
|
+
this._ariaDescribedby = ids.join(' ');
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Implemented as part of MatFormFieldControl.
|
|
388
|
+
* @docs-private
|
|
389
|
+
*/
|
|
390
|
+
onContainerClick() {
|
|
391
|
+
// Do not re-focus the input element if the element is already focused. Otherwise it can happen
|
|
392
|
+
// that someone clicks on a time input and the cursor resets to the "hours" field while the
|
|
393
|
+
// "minutes" field was actually clicked. See: https://github.com/angular/components/issues/12849
|
|
394
|
+
if (!this.focused) {
|
|
395
|
+
this.focus();
|
|
380
396
|
}
|
|
381
397
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
398
|
+
}
|
|
399
|
+
MatInput.decorators = [
|
|
400
|
+
{ type: Directive, args: [{
|
|
401
|
+
selector: `input[matInput], textarea[matInput], select[matNativeControl],
|
|
385
402
|
input[matNativeControl], textarea[matNativeControl]`,
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
]
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
}
|
|
403
|
+
exportAs: 'matInput',
|
|
404
|
+
host: {
|
|
405
|
+
/**
|
|
406
|
+
* @breaking-change 8.0.0 remove .mat-form-field-autofill-control in favor of AutofillMonitor.
|
|
407
|
+
*/
|
|
408
|
+
'class': 'mat-input-element mat-form-field-autofill-control',
|
|
409
|
+
'[class.mat-input-server]': '_isServer',
|
|
410
|
+
// Native input properties that are overwritten by Angular inputs need to be synced with
|
|
411
|
+
// the native input element. Otherwise property bindings for those don't work.
|
|
412
|
+
'[attr.id]': 'id',
|
|
413
|
+
// At the time of writing, we have a lot of customer tests that look up the input based on its
|
|
414
|
+
// placeholder. Since we sometimes omit the placeholder attribute from the DOM to prevent screen
|
|
415
|
+
// readers from reading it twice, we have to keep it somewhere in the DOM for the lookup.
|
|
416
|
+
'[attr.data-placeholder]': 'placeholder',
|
|
417
|
+
'[disabled]': 'disabled',
|
|
418
|
+
'[required]': 'required',
|
|
419
|
+
'[attr.readonly]': 'readonly && !_isNativeSelect || null',
|
|
420
|
+
'[attr.aria-describedby]': '_ariaDescribedby || null',
|
|
421
|
+
'[attr.aria-invalid]': 'errorState',
|
|
422
|
+
'[attr.aria-required]': 'required.toString()',
|
|
423
|
+
},
|
|
424
|
+
providers: [{ provide: MatFormFieldControl, useExisting: MatInput }],
|
|
425
|
+
},] }
|
|
426
|
+
];
|
|
427
|
+
MatInput.ctorParameters = () => [
|
|
428
|
+
{ type: ElementRef },
|
|
429
|
+
{ type: Platform },
|
|
430
|
+
{ type: NgControl, decorators: [{ type: Optional }, { type: Self }] },
|
|
431
|
+
{ type: NgForm, decorators: [{ type: Optional }] },
|
|
432
|
+
{ type: FormGroupDirective, decorators: [{ type: Optional }] },
|
|
433
|
+
{ type: ErrorStateMatcher },
|
|
434
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [MAT_INPUT_VALUE_ACCESSOR,] }] },
|
|
435
|
+
{ type: AutofillMonitor },
|
|
436
|
+
{ type: NgZone },
|
|
437
|
+
{ type: MatFormField, decorators: [{ type: Optional }] }
|
|
438
|
+
];
|
|
439
|
+
MatInput.propDecorators = {
|
|
440
|
+
disabled: [{ type: Input }],
|
|
441
|
+
id: [{ type: Input }],
|
|
442
|
+
placeholder: [{ type: Input }],
|
|
443
|
+
required: [{ type: Input }],
|
|
444
|
+
type: [{ type: Input }],
|
|
445
|
+
errorStateMatcher: [{ type: Input }],
|
|
446
|
+
value: [{ type: Input }],
|
|
447
|
+
readonly: [{ type: Input }],
|
|
448
|
+
_focusChanged: [{ type: HostListener, args: ['focus', ['true'],] }, { type: HostListener, args: ['blur', ['false'],] }],
|
|
449
|
+
_onInput: [{ type: HostListener, args: ['input',] }]
|
|
450
|
+
};
|
|
432
451
|
|
|
433
452
|
/**
|
|
434
453
|
* @license
|
|
@@ -437,29 +456,26 @@ let MatInput = /** @class */ (() => {
|
|
|
437
456
|
* Use of this source code is governed by an MIT-style license that can be
|
|
438
457
|
* found in the LICENSE file at https://angular.io/license
|
|
439
458
|
*/
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
];
|
|
461
|
-
return MatInputModule;
|
|
462
|
-
})();
|
|
459
|
+
class MatInputModule {
|
|
460
|
+
}
|
|
461
|
+
MatInputModule.decorators = [
|
|
462
|
+
{ type: NgModule, args: [{
|
|
463
|
+
declarations: [MatInput, MatTextareaAutosize],
|
|
464
|
+
imports: [
|
|
465
|
+
TextFieldModule,
|
|
466
|
+
MatFormFieldModule,
|
|
467
|
+
],
|
|
468
|
+
exports: [
|
|
469
|
+
TextFieldModule,
|
|
470
|
+
// We re-export the `MatFormFieldModule` since `MatInput` will almost always
|
|
471
|
+
// be used together with `MatFormField`.
|
|
472
|
+
MatFormFieldModule,
|
|
473
|
+
MatInput,
|
|
474
|
+
MatTextareaAutosize,
|
|
475
|
+
],
|
|
476
|
+
providers: [ErrorStateMatcher],
|
|
477
|
+
},] }
|
|
478
|
+
];
|
|
463
479
|
|
|
464
480
|
/**
|
|
465
481
|
* @license
|