@angular/material 10.0.2 → 10.1.3
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 +14 -9
- package/autocomplete/index.metadata.json +1 -1
- package/autocomplete/testing/autocomplete-harness.d.ts +2 -0
- package/bundles/material-autocomplete-testing.umd.js +327 -248
- package/bundles/material-autocomplete-testing.umd.js.map +1 -1
- package/bundles/material-autocomplete-testing.umd.min.js +2 -9
- package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
- package/bundles/material-autocomplete.umd.js +421 -355
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +2 -24
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge-testing.umd.js +301 -235
- package/bundles/material-badge-testing.umd.js.map +1 -1
- package/bundles/material-badge-testing.umd.min.js +2 -9
- package/bundles/material-badge-testing.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +344 -278
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +3 -3
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet-testing.umd.js +302 -236
- package/bundles/material-bottom-sheet-testing.umd.js.map +1 -1
- package/bundles/material-bottom-sheet-testing.umd.min.js +2 -9
- package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +361 -288
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +17 -2
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-testing.umd.js +321 -244
- package/bundles/material-button-testing.umd.js.map +1 -1
- package/bundles/material-button-testing.umd.min.js +2 -9
- package/bundles/material-button-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.js +315 -245
- package/bundles/material-button-toggle-testing.umd.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.min.js +3 -17
- package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +394 -318
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +2 -10
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +375 -304
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +3 -11
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card-testing.umd.js +399 -0
- package/bundles/material-card-testing.umd.js.map +1 -0
- package/bundles/material-card-testing.umd.min.js +37 -0
- package/bundles/material-card-testing.umd.min.js.map +1 -0
- package/bundles/material-card.umd.js +139 -139
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js +2 -2
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.js +313 -236
- package/bundles/material-checkbox-testing.umd.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.min.js +2 -9
- package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +370 -311
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +2 -9
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +625 -542
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +19 -4
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core-testing.umd.js +304 -245
- package/bundles/material-core-testing.umd.js.map +1 -1
- package/bundles/material-core-testing.umd.min.js +3 -17
- package/bundles/material-core-testing.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +563 -510
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +37 -12
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +935 -880
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +44 -10
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog-testing.umd.js +303 -237
- package/bundles/material-dialog-testing.umd.js.map +1 -1
- package/bundles/material-dialog-testing.umd.min.js +2 -9
- package/bundles/material-dialog-testing.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +438 -376
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +15 -14
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider-testing.umd.js +300 -234
- package/bundles/material-divider-testing.umd.js.map +1 -1
- package/bundles/material-divider-testing.umd.min.js +2 -9
- package/bundles/material-divider-testing.umd.min.js.map +1 -1
- package/bundles/material-divider.umd.js +28 -28
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js +2 -9
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion-testing.umd.js +314 -246
- package/bundles/material-expansion-testing.umd.js.map +1 -1
- package/bundles/material-expansion-testing.umd.min.js +2 -10
- package/bundles/material-expansion-testing.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +459 -400
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +11 -3
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field-testing-control.umd.js +299 -233
- package/bundles/material-form-field-testing-control.umd.js.map +1 -1
- package/bundles/material-form-field-testing-control.umd.min.js.map +1 -1
- package/bundles/material-form-field-testing.umd.js +301 -235
- package/bundles/material-form-field-testing.umd.js.map +1 -1
- package/bundles/material-form-field-testing.umd.min.js +3 -10
- package/bundles/material-form-field-testing.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +493 -406
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +36 -5
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list-testing.umd.js +311 -252
- package/bundles/material-grid-list-testing.umd.js.map +1 -1
- package/bundles/material-grid-list-testing.umd.min.js +2 -17
- package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +409 -336
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +19 -4
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon-testing.umd.js +8 -8
- package/bundles/material-icon-testing.umd.js.map +1 -1
- package/bundles/material-icon-testing.umd.min.js +2 -2
- package/bundles/material-icon-testing.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +349 -283
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +2 -9
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input-testing.umd.js +326 -243
- package/bundles/material-input-testing.umd.js.map +1 -1
- package/bundles/material-input-testing.umd.min.js +2 -9
- package/bundles/material-input-testing.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +409 -326
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +5 -19
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list-testing.umd.js +366 -303
- 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 +492 -433
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -10
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu-testing.umd.js +327 -239
- package/bundles/material-menu-testing.umd.js.map +1 -1
- package/bundles/material-menu-testing.umd.min.js +2 -10
- package/bundles/material-menu-testing.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +483 -408
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +5 -4
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator-testing.umd.js +302 -236
- package/bundles/material-paginator-testing.umd.js.map +1 -1
- package/bundles/material-paginator-testing.umd.min.js +2 -9
- package/bundles/material-paginator-testing.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +345 -279
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js +2 -9
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar-testing.umd.js +301 -235
- package/bundles/material-progress-bar-testing.umd.js.map +1 -1
- package/bundles/material-progress-bar-testing.umd.min.js +2 -9
- package/bundles/material-progress-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +339 -266
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +4 -3
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner-testing.umd.js +301 -235
- package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
- package/bundles/material-progress-spinner-testing.umd.min.js +2 -9
- package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +411 -364
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js +2 -10
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio-testing.umd.js +315 -238
- package/bundles/material-radio-testing.umd.js.map +1 -1
- package/bundles/material-radio-testing.umd.min.js +2 -10
- package/bundles/material-radio-testing.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +412 -336
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +2 -10
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select-testing.umd.js +326 -247
- package/bundles/material-select-testing.umd.js.map +1 -1
- package/bundles/material-select-testing.umd.min.js +2 -9
- package/bundles/material-select-testing.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +424 -348
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +5 -12
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav-testing.umd.js +303 -244
- package/bundles/material-sidenav-testing.umd.js.map +1 -1
- package/bundles/material-sidenav-testing.umd.min.js +2 -16
- package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +528 -477
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +3 -3
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle-testing.umd.js +313 -236
- package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
- package/bundles/material-slide-toggle-testing.umd.min.js +2 -9
- package/bundles/material-slide-toggle-testing.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +373 -314
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +2 -9
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider-testing.umd.js +313 -236
- package/bundles/material-slider-testing.umd.js.map +1 -1
- package/bundles/material-slider-testing.umd.min.js +2 -9
- package/bundles/material-slider-testing.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +476 -439
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +4 -3
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar-testing.umd.js +304 -238
- package/bundles/material-snack-bar-testing.umd.js.map +1 -1
- package/bundles/material-snack-bar-testing.umd.min.js +2 -9
- package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +383 -308
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +26 -2
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort-testing.umd.js +312 -253
- package/bundles/material-sort-testing.umd.js.map +1 -1
- package/bundles/material-sort-testing.umd.min.js +1 -16
- package/bundles/material-sort-testing.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +391 -319
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +4 -19
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +490 -445
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +5 -12
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table-testing.umd.js +317 -265
- package/bundles/material-table-testing.umd.js.map +1 -1
- package/bundles/material-table-testing.umd.min.js +2 -24
- package/bundles/material-table-testing.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +494 -461
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +3 -10
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs-testing.umd.js +303 -244
- package/bundles/material-tabs-testing.umd.js.map +1 -1
- package/bundles/material-tabs-testing.umd.min.js +1 -16
- package/bundles/material-tabs-testing.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +675 -625
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +23 -5
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar-testing.umd.js +396 -0
- package/bundles/material-toolbar-testing.umd.js.map +1 -0
- package/bundles/material-toolbar-testing.umd.min.js +37 -0
- package/bundles/material-toolbar-testing.umd.min.js.map +1 -0
- package/bundles/material-toolbar.umd.js +337 -271
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +4 -3
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip-testing.umd.js +301 -235
- package/bundles/material-tooltip-testing.umd.js.map +1 -1
- package/bundles/material-tooltip-testing.umd.min.js +2 -9
- package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +427 -314
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +11 -3
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +421 -383
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +3 -3
- package/bundles/material-tree.umd.min.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 +6 -0
- 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/checkbox.d.ts +2 -1
- package/checkbox/testing/checkbox-harness.d.ts +2 -0
- package/chips/chip.d.ts +21 -2
- package/chips/index.metadata.json +1 -1
- package/core/focus-indicators/_focus-indicators.scss +1 -1
- package/core/index.metadata.json +1 -1
- package/core/option/optgroup.d.ts +13 -4
- package/core/option/option.d.ts +10 -7
- package/core/style/_vendor-prefixes.scss +5 -0
- package/datepicker/date-range-input-parts.d.ts +3 -1
- package/datepicker/date-range-input.d.ts +5 -4
- package/datepicker/datepicker-base.d.ts +8 -6
- package/datepicker/datepicker-input-base.d.ts +9 -5
- package/datepicker/datepicker-input.d.ts +1 -0
- package/datepicker/index.metadata.json +1 -1
- package/dialog/dialog.d.ts +1 -1
- package/dialog/index.metadata.json +1 -1
- package/esm2015/autocomplete/autocomplete.js +3 -3
- package/esm2015/autocomplete/testing/autocomplete-harness.js +7 -1
- package/esm2015/bottom-sheet/bottom-sheet.js +1 -1
- package/esm2015/button/button.js +8 -3
- package/esm2015/button/testing/button-harness.js +7 -1
- package/esm2015/button-toggle/button-toggle.js +12 -3
- package/esm2015/button-toggle/testing/button-toggle-harness.js +7 -1
- 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.js +1 -1
- package/esm2015/checkbox/testing/checkbox-harness.js +7 -1
- package/esm2015/chips/chip-list.js +3 -3
- package/esm2015/chips/chip.js +32 -11
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/common-behaviors/tabindex.js +3 -2
- package/esm2015/core/option/optgroup.js +22 -9
- package/esm2015/core/option/option.js +29 -14
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/date-range-input-parts.js +7 -1
- package/esm2015/datepicker/date-range-input.js +14 -11
- package/esm2015/datepicker/datepicker-base.js +24 -10
- package/esm2015/datepicker/datepicker-input-base.js +16 -8
- package/esm2015/datepicker/datepicker-input.js +4 -1
- package/esm2015/datepicker/datepicker-toggle.js +5 -5
- package/esm2015/dialog/dialog.js +6 -6
- package/esm2015/expansion/testing/expansion-harness.js +7 -1
- package/esm2015/form-field/error.js +10 -3
- package/esm2015/form-field/form-field.js +17 -19
- package/esm2015/form-field/hint.js +13 -3
- package/esm2015/form-field/prefix.js +9 -2
- package/esm2015/form-field/suffix.js +9 -2
- package/esm2015/grid-list/grid-list.js +2 -2
- package/esm2015/grid-list/tile-styler.js +1 -1
- package/esm2015/input/input.js +29 -5
- package/esm2015/input/testing/input-harness.js +13 -3
- package/esm2015/list/testing/action-list-harness.js +7 -1
- package/esm2015/list/testing/nav-list-harness.js +7 -1
- package/esm2015/list/testing/selection-list-harness.js +7 -1
- package/esm2015/menu/menu-content.js +10 -3
- package/esm2015/menu/menu-errors.js +10 -1
- package/esm2015/menu/menu-panel.js +1 -1
- package/esm2015/menu/menu-trigger.js +8 -4
- package/esm2015/menu/menu.js +8 -6
- package/esm2015/menu/testing/menu-harness.js +13 -1
- package/esm2015/progress-spinner/progress-spinner.js +17 -16
- package/esm2015/radio/radio.js +15 -6
- package/esm2015/radio/testing/radio-harness.js +7 -1
- package/esm2015/select/select.js +21 -12
- package/esm2015/select/testing/select-harness.js +7 -1
- package/esm2015/sidenav/drawer.js +15 -16
- package/esm2015/slide-toggle/slide-toggle.js +1 -1
- package/esm2015/slide-toggle/testing/slide-toggle-harness.js +7 -1
- package/esm2015/slider/slider.js +25 -22
- package/esm2015/slider/testing/slider-harness.js +7 -1
- package/esm2015/snack-bar/snack-bar.js +5 -3
- package/esm2015/sort/sort-header-intl.js +6 -2
- package/esm2015/sort/sort-header.js +18 -8
- package/esm2015/sort/testing/sort-header-harness.js +10 -7
- package/esm2015/stepper/stepper.js +3 -3
- package/esm2015/table/cell.js +12 -26
- package/esm2015/table/table.js +7 -4
- package/esm2015/tabs/index.js +4 -2
- package/esm2015/tabs/tab-content.js +12 -3
- package/esm2015/tabs/tab-label.js +9 -2
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +1 -1
- package/esm2015/tabs/tab.js +6 -5
- 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/tooltip/tooltip.js +56 -21
- package/esm2015/tree/data-source/flat-data-source.js +1 -1
- package/esm2015/tree/node.js +2 -2
- package/expansion/testing/expansion-harness.d.ts +2 -0
- package/fesm2015/autocomplete/testing.js +6 -0
- package/fesm2015/autocomplete/testing.js.map +1 -1
- package/fesm2015/autocomplete.js +2 -2
- package/fesm2015/autocomplete.js.map +1 -1
- package/fesm2015/button/testing.js +6 -0
- package/fesm2015/button/testing.js.map +1 -1
- package/fesm2015/button-toggle/testing.js +6 -0
- package/fesm2015/button-toggle/testing.js.map +1 -1
- package/fesm2015/button-toggle.js +12 -3
- package/fesm2015/button-toggle.js.map +1 -1
- package/fesm2015/button.js +7 -2
- package/fesm2015/button.js.map +1 -1
- package/fesm2015/card/testing.js +79 -0
- package/fesm2015/card/testing.js.map +1 -0
- package/fesm2015/checkbox/testing.js +6 -0
- package/fesm2015/checkbox/testing.js.map +1 -1
- package/fesm2015/checkbox.js.map +1 -1
- package/fesm2015/chips.js +33 -12
- package/fesm2015/chips.js.map +1 -1
- package/fesm2015/core.js +51 -23
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker.js +60 -26
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/dialog.js +5 -5
- package/fesm2015/dialog.js.map +1 -1
- package/fesm2015/expansion/testing.js +6 -0
- package/fesm2015/expansion/testing.js.map +1 -1
- package/fesm2015/form-field.js +47 -18
- package/fesm2015/form-field.js.map +1 -1
- package/fesm2015/grid-list.js.map +1 -1
- package/fesm2015/input/testing.js +12 -2
- package/fesm2015/input/testing.js.map +1 -1
- package/fesm2015/input.js +28 -4
- package/fesm2015/input.js.map +1 -1
- package/fesm2015/list/testing.js +18 -0
- package/fesm2015/list/testing.js.map +1 -1
- package/fesm2015/menu/testing.js +12 -0
- package/fesm2015/menu/testing.js.map +1 -1
- package/fesm2015/menu.js +29 -7
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/progress-spinner.js +16 -15
- package/fesm2015/progress-spinner.js.map +1 -1
- package/fesm2015/radio/testing.js +6 -0
- package/fesm2015/radio/testing.js.map +1 -1
- package/fesm2015/radio.js +16 -7
- package/fesm2015/radio.js.map +1 -1
- package/fesm2015/select/testing.js +6 -0
- package/fesm2015/select/testing.js.map +1 -1
- package/fesm2015/select.js +21 -12
- package/fesm2015/select.js.map +1 -1
- package/fesm2015/sidenav.js +15 -16
- package/fesm2015/sidenav.js.map +1 -1
- package/fesm2015/slide-toggle/testing.js +6 -0
- package/fesm2015/slide-toggle/testing.js.map +1 -1
- package/fesm2015/slide-toggle.js.map +1 -1
- package/fesm2015/slider/testing.js +6 -0
- package/fesm2015/slider/testing.js.map +1 -1
- package/fesm2015/slider.js +24 -21
- package/fesm2015/slider.js.map +1 -1
- package/fesm2015/snack-bar.js +4 -2
- package/fesm2015/snack-bar.js.map +1 -1
- package/fesm2015/sort/testing.js +9 -6
- package/fesm2015/sort/testing.js.map +1 -1
- package/fesm2015/sort.js +22 -8
- package/fesm2015/sort.js.map +1 -1
- package/fesm2015/stepper.js +2 -2
- package/fesm2015/stepper.js.map +1 -1
- package/fesm2015/table.js +17 -28
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/tabs.js +21 -4
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/toolbar/testing.js +74 -0
- package/fesm2015/toolbar/testing.js.map +1 -0
- package/fesm2015/tooltip.js +55 -20
- package/fesm2015/tooltip.js.map +1 -1
- package/fesm2015/tree.js +1 -1
- package/fesm2015/tree.js.map +1 -1
- package/form-field/error.d.ts +7 -0
- package/form-field/form-field.d.ts +2 -3
- 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/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/index.metadata.json +1 -1
- package/input/input.d.ts +6 -2
- package/input/testing/input-harness.d.ts +2 -0
- 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-errors.d.ts +6 -0
- 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 +2 -2
- 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/progress-spinner/progress-spinner.d.ts +5 -5
- package/radio/index.metadata.json +1 -1
- package/radio/radio.d.ts +8 -1
- package/radio/testing/radio-harness.d.ts +2 -0
- package/schematics/ng-add/index.js +1 -1
- 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/select/index.metadata.json +1 -1
- package/select/select.d.ts +7 -0
- package/select/testing/select-harness.d.ts +2 -0
- package/sidenav/drawer.d.ts +3 -3
- package/sidenav/index.metadata.json +1 -1
- package/slide-toggle/slide-toggle.d.ts +2 -1
- package/slide-toggle/testing/slide-toggle-harness.d.ts +2 -0
- package/slider/index.metadata.json +1 -1
- package/slider/slider.d.ts +9 -8
- package/slider/testing/slider-harness.d.ts +2 -0
- 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/stepper/index.metadata.json +1 -1
- package/table/cell.d.ts +7 -4
- package/table/index.metadata.json +1 -1
- package/table/table.d.ts +2 -0
- 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/tabs/tab-nav-bar/tab-nav-bar.d.ts +2 -1
- 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 +7 -2
- package/tree/data-source/flat-data-source.d.ts +4 -4
- package/tree/index.metadata.json +1 -1
- package/tree/node.d.ts +2 -1
package/fesm2015/datepicker.js
CHANGED
|
@@ -1790,15 +1790,23 @@ class MatDatepickerContent extends _MatDatepickerContentMixinBase {
|
|
|
1790
1790
|
this._model = _model;
|
|
1791
1791
|
this._dateAdapter = _dateAdapter;
|
|
1792
1792
|
this._rangeSelectionStrategy = _rangeSelectionStrategy;
|
|
1793
|
+
this._subscriptions = new Subscription();
|
|
1793
1794
|
/** Current state of the animation. */
|
|
1794
1795
|
this._animationState = 'enter';
|
|
1795
1796
|
/** Emits when an animation has finished. */
|
|
1796
1797
|
this._animationDone = new Subject();
|
|
1797
1798
|
}
|
|
1798
1799
|
ngAfterViewInit() {
|
|
1800
|
+
// @breaking-change 11.0.0 Remove null check for `_changeDetectorRef.
|
|
1801
|
+
if (this._changeDetectorRef) {
|
|
1802
|
+
this._subscriptions.add(this.datepicker._stateChanges.subscribe(() => {
|
|
1803
|
+
this._changeDetectorRef.markForCheck();
|
|
1804
|
+
}));
|
|
1805
|
+
}
|
|
1799
1806
|
this._calendar.focusActiveCell();
|
|
1800
1807
|
}
|
|
1801
1808
|
ngOnDestroy() {
|
|
1809
|
+
this._subscriptions.unsubscribe();
|
|
1802
1810
|
this._animationDone.complete();
|
|
1803
1811
|
}
|
|
1804
1812
|
_handleUserSelection(event) {
|
|
@@ -1841,7 +1849,7 @@ class MatDatepickerContent extends _MatDatepickerContentMixinBase {
|
|
|
1841
1849
|
MatDatepickerContent.decorators = [
|
|
1842
1850
|
{ type: Component, args: [{
|
|
1843
1851
|
selector: 'mat-datepicker-content',
|
|
1844
|
-
template: "<mat-calendar cdkTrapFocus\n [id]=\"datepicker.id\"\n [ngClass]=\"datepicker.panelClass\"\n [startAt]=\"datepicker.startAt\"\n [startView]=\"datepicker.startView\"\n [minDate]=\"datepicker.
|
|
1852
|
+
template: "<mat-calendar cdkTrapFocus\n [id]=\"datepicker.id\"\n [ngClass]=\"datepicker.panelClass\"\n [startAt]=\"datepicker.startAt\"\n [startView]=\"datepicker.startView\"\n [minDate]=\"datepicker._getMinDate()\"\n [maxDate]=\"datepicker._getMaxDate()\"\n [dateFilter]=\"datepicker._getDateFilter()\"\n [headerComponent]=\"datepicker.calendarHeaderComponent\"\n [selected]=\"_getSelected()\"\n [dateClass]=\"datepicker.dateClass\"\n [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n [@fadeInCalendar]=\"'enter'\"\n (yearSelected)=\"datepicker._selectYear($event)\"\n (monthSelected)=\"datepicker._selectMonth($event)\"\n (_userSelection)=\"_handleUserSelection($event)\">\n</mat-calendar>\n",
|
|
1845
1853
|
host: {
|
|
1846
1854
|
'class': 'mat-datepicker-content',
|
|
1847
1855
|
'[@transformPanel]': '_animationState',
|
|
@@ -1880,6 +1888,7 @@ class MatDatepickerBase {
|
|
|
1880
1888
|
this._dir = _dir;
|
|
1881
1889
|
this._document = _document;
|
|
1882
1890
|
this._model = _model;
|
|
1891
|
+
this._inputStateChanges = Subscription.EMPTY;
|
|
1883
1892
|
/** The view that the calendar should start in. */
|
|
1884
1893
|
this.startView = 'month';
|
|
1885
1894
|
this._touchUi = false;
|
|
@@ -1906,8 +1915,8 @@ class MatDatepickerBase {
|
|
|
1906
1915
|
this.id = `mat-datepicker-${datepickerUid++}`;
|
|
1907
1916
|
/** The element that was focused before the datepicker was opened. */
|
|
1908
1917
|
this._focusedElementBeforeOpen = null;
|
|
1909
|
-
/** Emits when the datepicker
|
|
1910
|
-
this.
|
|
1918
|
+
/** Emits when the datepicker's state changes. */
|
|
1919
|
+
this._stateChanges = new Subject();
|
|
1911
1920
|
if (!this._dateAdapter) {
|
|
1912
1921
|
throw createMissingDateImplError('DateAdapter');
|
|
1913
1922
|
}
|
|
@@ -1947,21 +1956,21 @@ class MatDatepickerBase {
|
|
|
1947
1956
|
const newValue = coerceBooleanProperty(value);
|
|
1948
1957
|
if (newValue !== this._disabled) {
|
|
1949
1958
|
this._disabled = newValue;
|
|
1950
|
-
this.
|
|
1959
|
+
this._stateChanges.next(undefined);
|
|
1951
1960
|
}
|
|
1952
1961
|
}
|
|
1953
1962
|
/** Whether the calendar is open. */
|
|
1954
1963
|
get opened() { return this._opened; }
|
|
1955
1964
|
set opened(value) { value ? this.open() : this.close(); }
|
|
1956
1965
|
/** The minimum selectable date. */
|
|
1957
|
-
|
|
1966
|
+
_getMinDate() {
|
|
1958
1967
|
return this._datepickerInput && this._datepickerInput.min;
|
|
1959
1968
|
}
|
|
1960
1969
|
/** The maximum selectable date. */
|
|
1961
|
-
|
|
1970
|
+
_getMaxDate() {
|
|
1962
1971
|
return this._datepickerInput && this._datepickerInput.max;
|
|
1963
1972
|
}
|
|
1964
|
-
|
|
1973
|
+
_getDateFilter() {
|
|
1965
1974
|
return this._datepickerInput && this._datepickerInput.dateFilter;
|
|
1966
1975
|
}
|
|
1967
1976
|
ngOnChanges(changes) {
|
|
@@ -1972,11 +1981,13 @@ class MatDatepickerBase {
|
|
|
1972
1981
|
this._popupRef.updatePosition();
|
|
1973
1982
|
}
|
|
1974
1983
|
}
|
|
1984
|
+
this._stateChanges.next(undefined);
|
|
1975
1985
|
}
|
|
1976
1986
|
ngOnDestroy() {
|
|
1977
1987
|
this._destroyPopup();
|
|
1978
1988
|
this.close();
|
|
1979
|
-
this.
|
|
1989
|
+
this._inputStateChanges.unsubscribe();
|
|
1990
|
+
this._stateChanges.complete();
|
|
1980
1991
|
}
|
|
1981
1992
|
/** Selects the given date */
|
|
1982
1993
|
select(date) {
|
|
@@ -1999,7 +2010,10 @@ class MatDatepickerBase {
|
|
|
1999
2010
|
if (this._datepickerInput) {
|
|
2000
2011
|
throw Error('A MatDatepicker can only be associated with a single input.');
|
|
2001
2012
|
}
|
|
2013
|
+
this._inputStateChanges.unsubscribe();
|
|
2002
2014
|
this._datepickerInput = input;
|
|
2015
|
+
this._inputStateChanges =
|
|
2016
|
+
input._stateChanges.subscribe(() => this._stateChanges.next(undefined));
|
|
2003
2017
|
return this._model;
|
|
2004
2018
|
}
|
|
2005
2019
|
/** Open the calendar. */
|
|
@@ -2275,8 +2289,8 @@ class MatDatepickerInputBase {
|
|
|
2275
2289
|
this.dateInput = new EventEmitter();
|
|
2276
2290
|
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
2277
2291
|
this._valueChange = new EventEmitter();
|
|
2278
|
-
/** Emits when the
|
|
2279
|
-
this.
|
|
2292
|
+
/** Emits when the internal state has changed */
|
|
2293
|
+
this._stateChanges = new Subject();
|
|
2280
2294
|
this._onTouched = () => { };
|
|
2281
2295
|
this._validatorOnChange = () => { };
|
|
2282
2296
|
this._cvaOnChange = () => { };
|
|
@@ -2345,7 +2359,7 @@ class MatDatepickerInputBase {
|
|
|
2345
2359
|
const element = this._elementRef.nativeElement;
|
|
2346
2360
|
if (this._disabled !== newValue) {
|
|
2347
2361
|
this._disabled = newValue;
|
|
2348
|
-
this.
|
|
2362
|
+
this._stateChanges.next(undefined);
|
|
2349
2363
|
}
|
|
2350
2364
|
// We need to null check the `blur` method, because it's undefined during SSR.
|
|
2351
2365
|
// In Ivy static bindings are invoked earlier, before the element is attached to the DOM.
|
|
@@ -2376,8 +2390,13 @@ class MatDatepickerInputBase {
|
|
|
2376
2390
|
this._cvaOnChange(value);
|
|
2377
2391
|
this._onTouched();
|
|
2378
2392
|
this._formatValue(value);
|
|
2379
|
-
this
|
|
2380
|
-
|
|
2393
|
+
// Note that we can't wrap the entire block with this logic, because for the range inputs
|
|
2394
|
+
// we want to revalidate whenever either one of the inputs changes and we don't have a
|
|
2395
|
+
// good way of distinguishing it at the moment.
|
|
2396
|
+
if (this._canEmitChangeEvent(event)) {
|
|
2397
|
+
this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
2398
|
+
this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
|
|
2399
|
+
}
|
|
2381
2400
|
if (this._outsideValueChanged) {
|
|
2382
2401
|
this._outsideValueChanged();
|
|
2383
2402
|
}
|
|
@@ -2387,11 +2406,14 @@ class MatDatepickerInputBase {
|
|
|
2387
2406
|
ngAfterViewInit() {
|
|
2388
2407
|
this._isInitialized = true;
|
|
2389
2408
|
}
|
|
2409
|
+
ngOnChanges() {
|
|
2410
|
+
this._stateChanges.next(undefined);
|
|
2411
|
+
}
|
|
2390
2412
|
ngOnDestroy() {
|
|
2391
2413
|
this._valueChangesSubscription.unsubscribe();
|
|
2392
2414
|
this._localeSubscription.unsubscribe();
|
|
2393
2415
|
this._valueChange.complete();
|
|
2394
|
-
this.
|
|
2416
|
+
this._stateChanges.complete();
|
|
2395
2417
|
}
|
|
2396
2418
|
/** @docs-private */
|
|
2397
2419
|
registerOnValidatorChange(fn) {
|
|
@@ -2607,6 +2629,9 @@ class MatDatepickerInput extends MatDatepickerInputBase {
|
|
|
2607
2629
|
_getDateFilter() {
|
|
2608
2630
|
return this._dateFilter;
|
|
2609
2631
|
}
|
|
2632
|
+
_canEmitChangeEvent() {
|
|
2633
|
+
return true;
|
|
2634
|
+
}
|
|
2610
2635
|
}
|
|
2611
2636
|
MatDatepickerInput.decorators = [
|
|
2612
2637
|
{ type: Directive, args: [{
|
|
@@ -2694,14 +2719,14 @@ class MatDatepickerToggle {
|
|
|
2694
2719
|
}
|
|
2695
2720
|
}
|
|
2696
2721
|
_watchStateChanges() {
|
|
2697
|
-
const
|
|
2698
|
-
const
|
|
2699
|
-
this.datepicker._datepickerInput.
|
|
2722
|
+
const datepickerStateChanged = this.datepicker ? this.datepicker._stateChanges : of();
|
|
2723
|
+
const inputStateChanged = this.datepicker && this.datepicker._datepickerInput ?
|
|
2724
|
+
this.datepicker._datepickerInput._stateChanges : of();
|
|
2700
2725
|
const datepickerToggled = this.datepicker ?
|
|
2701
2726
|
merge(this.datepicker.openedStream, this.datepicker.closedStream) :
|
|
2702
2727
|
of();
|
|
2703
2728
|
this._stateChanges.unsubscribe();
|
|
2704
|
-
this._stateChanges = merge(this._intl.changes,
|
|
2729
|
+
this._stateChanges = merge(this._intl.changes, datepickerStateChanged, inputStateChanged, datepickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());
|
|
2705
2730
|
}
|
|
2706
2731
|
}
|
|
2707
2732
|
MatDatepickerToggle.decorators = [
|
|
@@ -2856,6 +2881,9 @@ class MatStartDate extends _MatDateRangeInputBase {
|
|
|
2856
2881
|
null : { 'matStartDateInvalid': { 'end': end, 'actual': start } };
|
|
2857
2882
|
};
|
|
2858
2883
|
this._validator = Validators.compose([...super._getValidators(), this._startValidator]);
|
|
2884
|
+
this._canEmitChangeEvent = (event) => {
|
|
2885
|
+
return event.source !== this._rangeInput._endInput;
|
|
2886
|
+
};
|
|
2859
2887
|
}
|
|
2860
2888
|
_getValueFromModel(modelValue) {
|
|
2861
2889
|
return modelValue.start;
|
|
@@ -2928,6 +2956,9 @@ class MatEndDate extends _MatDateRangeInputBase {
|
|
|
2928
2956
|
null : { 'matEndDateInvalid': { 'start': start, 'actual': end } };
|
|
2929
2957
|
};
|
|
2930
2958
|
this._validator = Validators.compose([...super._getValidators(), this._endValidator]);
|
|
2959
|
+
this._canEmitChangeEvent = (event) => {
|
|
2960
|
+
return event.source !== this._rangeInput._startInput;
|
|
2961
|
+
};
|
|
2931
2962
|
}
|
|
2932
2963
|
_getValueFromModel(modelValue) {
|
|
2933
2964
|
return modelValue.end;
|
|
@@ -3043,8 +3074,8 @@ class MatDateRangeInput {
|
|
|
3043
3074
|
this.comparisonStart = null;
|
|
3044
3075
|
/** End of the comparison range that should be shown in the calendar. */
|
|
3045
3076
|
this.comparisonEnd = null;
|
|
3046
|
-
/** Emits when the input's
|
|
3047
|
-
this.
|
|
3077
|
+
/** Emits when the input's state changes. */
|
|
3078
|
+
this._stateChanges = new Subject();
|
|
3048
3079
|
if (!_dateAdapter) {
|
|
3049
3080
|
throw createMissingDateImplError('DateAdapter');
|
|
3050
3081
|
}
|
|
@@ -3112,7 +3143,7 @@ class MatDateRangeInput {
|
|
|
3112
3143
|
const newValue = coerceBooleanProperty(value);
|
|
3113
3144
|
if (newValue !== this._groupDisabled) {
|
|
3114
3145
|
this._groupDisabled = newValue;
|
|
3115
|
-
this.
|
|
3146
|
+
this._stateChanges.next(undefined);
|
|
3116
3147
|
}
|
|
3117
3148
|
}
|
|
3118
3149
|
/** Whether the input is in an error state. */
|
|
@@ -3161,13 +3192,16 @@ class MatDateRangeInput {
|
|
|
3161
3192
|
}
|
|
3162
3193
|
// We don't need to unsubscribe from this, because we
|
|
3163
3194
|
// know that the input streams will be completed on destroy.
|
|
3164
|
-
merge(this._startInput.
|
|
3165
|
-
this.
|
|
3195
|
+
merge(this._startInput.stateChanges, this._endInput.stateChanges).subscribe(() => {
|
|
3196
|
+
this._stateChanges.next(undefined);
|
|
3166
3197
|
});
|
|
3167
3198
|
}
|
|
3199
|
+
ngOnChanges() {
|
|
3200
|
+
this._stateChanges.next(undefined);
|
|
3201
|
+
}
|
|
3168
3202
|
ngOnDestroy() {
|
|
3169
3203
|
this.stateChanges.complete();
|
|
3170
|
-
this.
|
|
3204
|
+
this._stateChanges.unsubscribe();
|
|
3171
3205
|
}
|
|
3172
3206
|
/** Gets the date at which the calendar should start. */
|
|
3173
3207
|
getStartValue() {
|
|
@@ -3191,7 +3225,7 @@ class MatDateRangeInput {
|
|
|
3191
3225
|
}
|
|
3192
3226
|
/** Handles the value in one of the child inputs changing. */
|
|
3193
3227
|
_handleChildValueChange() {
|
|
3194
|
-
this.stateChanges.next();
|
|
3228
|
+
this.stateChanges.next(undefined);
|
|
3195
3229
|
this._changeDetectorRef.markForCheck();
|
|
3196
3230
|
}
|
|
3197
3231
|
/** Opens the date range picker associated with the input. */
|
|
@@ -3262,7 +3296,7 @@ MatDateRangeInput.ctorParameters = () => [
|
|
|
3262
3296
|
{ type: ElementRef },
|
|
3263
3297
|
{ type: ControlContainer, decorators: [{ type: Optional }, { type: Self }] },
|
|
3264
3298
|
{ type: DateAdapter, decorators: [{ type: Optional }] },
|
|
3265
|
-
{ type: MatFormField, decorators: [{ type: Optional }] }
|
|
3299
|
+
{ type: MatFormField, decorators: [{ type: Optional }, { type: Inject, args: [MAT_FORM_FIELD,] }] }
|
|
3266
3300
|
];
|
|
3267
3301
|
MatDateRangeInput.propDecorators = {
|
|
3268
3302
|
rangePicker: [{ type: Input }],
|