@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
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* found in the LICENSE file at https://angular.io/license
|
|
13
13
|
*/
|
|
14
14
|
/** Current version of Angular Material. */
|
|
15
|
-
var VERSION = new i0.Version('10.
|
|
15
|
+
var VERSION = new i0.Version('10.1.3');
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
var AnimationCurves = /** @class */ (function () {
|
|
26
26
|
function AnimationCurves() {
|
|
27
27
|
}
|
|
28
|
-
AnimationCurves.STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';
|
|
29
|
-
AnimationCurves.DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';
|
|
30
|
-
AnimationCurves.ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';
|
|
31
|
-
AnimationCurves.SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';
|
|
32
28
|
return AnimationCurves;
|
|
33
29
|
}());
|
|
30
|
+
AnimationCurves.STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';
|
|
31
|
+
AnimationCurves.DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';
|
|
32
|
+
AnimationCurves.ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';
|
|
33
|
+
AnimationCurves.SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';
|
|
34
34
|
/** @docs-private */
|
|
35
35
|
var AnimationDurations = /** @class */ (function () {
|
|
36
36
|
function AnimationDurations() {
|
|
37
37
|
}
|
|
38
|
-
AnimationDurations.COMPLEX = '375ms';
|
|
39
|
-
AnimationDurations.ENTERING = '225ms';
|
|
40
|
-
AnimationDurations.EXITING = '195ms';
|
|
41
38
|
return AnimationDurations;
|
|
42
39
|
}());
|
|
40
|
+
AnimationDurations.COMPLEX = '375ms';
|
|
41
|
+
AnimationDurations.ENTERING = '225ms';
|
|
42
|
+
AnimationDurations.EXITING = '195ms';
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
// i.e. avoid core to depend on the @angular/material primary entry-point
|
|
53
53
|
// Can be removed once the Material primary entry-point no longer
|
|
54
54
|
// re-exports all secondary entry-points
|
|
55
|
-
var VERSION$1 = new i0.Version('10.
|
|
55
|
+
var VERSION$1 = new i0.Version('10.1.3');
|
|
56
56
|
/** @docs-private */
|
|
57
57
|
function MATERIAL_SANITY_CHECKS_FACTORY() {
|
|
58
58
|
return true;
|
|
@@ -151,255 +151,321 @@
|
|
|
151
151
|
'Please ensure the versions of these two packages exactly match.');
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
|
-
MatCommonModule.decorators = [
|
|
155
|
-
{ type: i0.NgModule, args: [{
|
|
156
|
-
imports: [bidi.BidiModule],
|
|
157
|
-
exports: [bidi.BidiModule],
|
|
158
|
-
},] }
|
|
159
|
-
];
|
|
160
|
-
MatCommonModule.ctorParameters = function () { return [
|
|
161
|
-
{ type: a11y.HighContrastModeDetector },
|
|
162
|
-
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MATERIAL_SANITY_CHECKS,] }] },
|
|
163
|
-
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
164
|
-
]; };
|
|
165
154
|
return MatCommonModule;
|
|
166
155
|
}());
|
|
156
|
+
MatCommonModule.decorators = [
|
|
157
|
+
{ type: i0.NgModule, args: [{
|
|
158
|
+
imports: [bidi.BidiModule],
|
|
159
|
+
exports: [bidi.BidiModule],
|
|
160
|
+
},] }
|
|
161
|
+
];
|
|
162
|
+
MatCommonModule.ctorParameters = function () { return [
|
|
163
|
+
{ type: a11y.HighContrastModeDetector },
|
|
164
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MATERIAL_SANITY_CHECKS,] }] },
|
|
165
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
166
|
+
]; };
|
|
167
167
|
|
|
168
|
-
/*! *****************************************************************************
|
|
169
|
-
Copyright (c) Microsoft Corporation.
|
|
170
|
-
|
|
171
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
172
|
-
purpose with or without fee is hereby granted.
|
|
173
|
-
|
|
174
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
175
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
176
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
177
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
178
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
179
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
180
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
181
|
-
***************************************************************************** */
|
|
182
|
-
/* global Reflect, Promise */
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
function __extends(d, b) {
|
|
192
|
-
extendStatics(d, b);
|
|
193
|
-
function __() { this.constructor = d; }
|
|
194
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
function __rest(s, e) {
|
|
209
|
-
var t = {};
|
|
210
|
-
for (var p in s)
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
function __decorate(decorators, target, key, desc) {
|
|
221
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
222
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
return
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
function
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
function
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
168
|
+
/*! *****************************************************************************
|
|
169
|
+
Copyright (c) Microsoft Corporation.
|
|
170
|
+
|
|
171
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
172
|
+
purpose with or without fee is hereby granted.
|
|
173
|
+
|
|
174
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
175
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
176
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
177
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
178
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
179
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
180
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
181
|
+
***************************************************************************** */
|
|
182
|
+
/* global Reflect, Promise */
|
|
183
|
+
var extendStatics = function (d, b) {
|
|
184
|
+
extendStatics = Object.setPrototypeOf ||
|
|
185
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
186
|
+
function (d, b) { for (var p in b)
|
|
187
|
+
if (b.hasOwnProperty(p))
|
|
188
|
+
d[p] = b[p]; };
|
|
189
|
+
return extendStatics(d, b);
|
|
190
|
+
};
|
|
191
|
+
function __extends(d, b) {
|
|
192
|
+
extendStatics(d, b);
|
|
193
|
+
function __() { this.constructor = d; }
|
|
194
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
195
|
+
}
|
|
196
|
+
var __assign = function () {
|
|
197
|
+
__assign = Object.assign || function __assign(t) {
|
|
198
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
199
|
+
s = arguments[i];
|
|
200
|
+
for (var p in s)
|
|
201
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
202
|
+
t[p] = s[p];
|
|
203
|
+
}
|
|
204
|
+
return t;
|
|
205
|
+
};
|
|
206
|
+
return __assign.apply(this, arguments);
|
|
207
|
+
};
|
|
208
|
+
function __rest(s, e) {
|
|
209
|
+
var t = {};
|
|
210
|
+
for (var p in s)
|
|
211
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
212
|
+
t[p] = s[p];
|
|
213
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
214
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
215
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
216
|
+
t[p[i]] = s[p[i]];
|
|
217
|
+
}
|
|
218
|
+
return t;
|
|
219
|
+
}
|
|
220
|
+
function __decorate(decorators, target, key, desc) {
|
|
221
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
222
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
223
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
224
|
+
else
|
|
225
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
226
|
+
if (d = decorators[i])
|
|
227
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
228
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
229
|
+
}
|
|
230
|
+
function __param(paramIndex, decorator) {
|
|
231
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
232
|
+
}
|
|
233
|
+
function __metadata(metadataKey, metadataValue) {
|
|
234
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
235
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
236
|
+
}
|
|
237
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
238
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
239
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
240
|
+
function fulfilled(value) { try {
|
|
241
|
+
step(generator.next(value));
|
|
242
|
+
}
|
|
243
|
+
catch (e) {
|
|
244
|
+
reject(e);
|
|
245
|
+
} }
|
|
246
|
+
function rejected(value) { try {
|
|
247
|
+
step(generator["throw"](value));
|
|
248
|
+
}
|
|
249
|
+
catch (e) {
|
|
250
|
+
reject(e);
|
|
251
|
+
} }
|
|
252
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
253
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
function __generator(thisArg, body) {
|
|
257
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
258
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
259
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
260
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
261
|
+
function step(op) {
|
|
262
|
+
if (f)
|
|
263
|
+
throw new TypeError("Generator is already executing.");
|
|
264
|
+
while (_)
|
|
265
|
+
try {
|
|
266
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
267
|
+
return t;
|
|
268
|
+
if (y = 0, t)
|
|
269
|
+
op = [op[0] & 2, t.value];
|
|
270
|
+
switch (op[0]) {
|
|
271
|
+
case 0:
|
|
272
|
+
case 1:
|
|
273
|
+
t = op;
|
|
274
|
+
break;
|
|
275
|
+
case 4:
|
|
276
|
+
_.label++;
|
|
277
|
+
return { value: op[1], done: false };
|
|
278
|
+
case 5:
|
|
279
|
+
_.label++;
|
|
280
|
+
y = op[1];
|
|
281
|
+
op = [0];
|
|
282
|
+
continue;
|
|
283
|
+
case 7:
|
|
284
|
+
op = _.ops.pop();
|
|
285
|
+
_.trys.pop();
|
|
286
|
+
continue;
|
|
287
|
+
default:
|
|
288
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
289
|
+
_ = 0;
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
293
|
+
_.label = op[1];
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
297
|
+
_.label = t[1];
|
|
298
|
+
t = op;
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
if (t && _.label < t[2]) {
|
|
302
|
+
_.label = t[2];
|
|
303
|
+
_.ops.push(op);
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
if (t[2])
|
|
307
|
+
_.ops.pop();
|
|
308
|
+
_.trys.pop();
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
op = body.call(thisArg, _);
|
|
312
|
+
}
|
|
313
|
+
catch (e) {
|
|
314
|
+
op = [6, e];
|
|
315
|
+
y = 0;
|
|
316
|
+
}
|
|
317
|
+
finally {
|
|
318
|
+
f = t = 0;
|
|
319
|
+
}
|
|
320
|
+
if (op[0] & 5)
|
|
321
|
+
throw op[1];
|
|
322
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
326
|
+
if (k2 === undefined)
|
|
327
|
+
k2 = k;
|
|
328
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
329
|
+
}) : (function (o, m, k, k2) {
|
|
330
|
+
if (k2 === undefined)
|
|
331
|
+
k2 = k;
|
|
332
|
+
o[k2] = m[k];
|
|
333
|
+
});
|
|
334
|
+
function __exportStar(m, exports) {
|
|
335
|
+
for (var p in m)
|
|
336
|
+
if (p !== "default" && !exports.hasOwnProperty(p))
|
|
337
|
+
__createBinding(exports, m, p);
|
|
338
|
+
}
|
|
339
|
+
function __values(o) {
|
|
340
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
341
|
+
if (m)
|
|
342
|
+
return m.call(o);
|
|
343
|
+
if (o && typeof o.length === "number")
|
|
344
|
+
return {
|
|
345
|
+
next: function () {
|
|
346
|
+
if (o && i >= o.length)
|
|
347
|
+
o = void 0;
|
|
348
|
+
return { value: o && o[i++], done: !o };
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
352
|
+
}
|
|
353
|
+
function __read(o, n) {
|
|
354
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
355
|
+
if (!m)
|
|
356
|
+
return o;
|
|
357
|
+
var i = m.call(o), r, ar = [], e;
|
|
358
|
+
try {
|
|
359
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
360
|
+
ar.push(r.value);
|
|
361
|
+
}
|
|
362
|
+
catch (error) {
|
|
363
|
+
e = { error: error };
|
|
364
|
+
}
|
|
365
|
+
finally {
|
|
366
|
+
try {
|
|
367
|
+
if (r && !r.done && (m = i["return"]))
|
|
368
|
+
m.call(i);
|
|
369
|
+
}
|
|
370
|
+
finally {
|
|
371
|
+
if (e)
|
|
372
|
+
throw e.error;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
return ar;
|
|
376
|
+
}
|
|
377
|
+
function __spread() {
|
|
378
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
379
|
+
ar = ar.concat(__read(arguments[i]));
|
|
380
|
+
return ar;
|
|
381
|
+
}
|
|
382
|
+
function __spreadArrays() {
|
|
383
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
384
|
+
s += arguments[i].length;
|
|
385
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
386
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
387
|
+
r[k] = a[j];
|
|
388
|
+
return r;
|
|
389
|
+
}
|
|
390
|
+
;
|
|
391
|
+
function __await(v) {
|
|
392
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
393
|
+
}
|
|
394
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
395
|
+
if (!Symbol.asyncIterator)
|
|
396
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
397
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
398
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
399
|
+
function verb(n) { if (g[n])
|
|
400
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
401
|
+
function resume(n, v) { try {
|
|
402
|
+
step(g[n](v));
|
|
403
|
+
}
|
|
404
|
+
catch (e) {
|
|
405
|
+
settle(q[0][3], e);
|
|
406
|
+
} }
|
|
407
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
408
|
+
function fulfill(value) { resume("next", value); }
|
|
409
|
+
function reject(value) { resume("throw", value); }
|
|
410
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
411
|
+
resume(q[0][0], q[0][1]); }
|
|
412
|
+
}
|
|
413
|
+
function __asyncDelegator(o) {
|
|
414
|
+
var i, p;
|
|
415
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
416
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
417
|
+
}
|
|
418
|
+
function __asyncValues(o) {
|
|
419
|
+
if (!Symbol.asyncIterator)
|
|
420
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
421
|
+
var m = o[Symbol.asyncIterator], i;
|
|
422
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
423
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
424
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
425
|
+
}
|
|
426
|
+
function __makeTemplateObject(cooked, raw) {
|
|
427
|
+
if (Object.defineProperty) {
|
|
428
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
cooked.raw = raw;
|
|
432
|
+
}
|
|
433
|
+
return cooked;
|
|
434
|
+
}
|
|
435
|
+
;
|
|
436
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
437
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
438
|
+
}) : function (o, v) {
|
|
439
|
+
o["default"] = v;
|
|
440
|
+
};
|
|
441
|
+
function __importStar(mod) {
|
|
442
|
+
if (mod && mod.__esModule)
|
|
443
|
+
return mod;
|
|
444
|
+
var result = {};
|
|
445
|
+
if (mod != null)
|
|
446
|
+
for (var k in mod)
|
|
447
|
+
if (Object.hasOwnProperty.call(mod, k))
|
|
448
|
+
__createBinding(result, mod, k);
|
|
449
|
+
__setModuleDefault(result, mod);
|
|
450
|
+
return result;
|
|
451
|
+
}
|
|
452
|
+
function __importDefault(mod) {
|
|
453
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
454
|
+
}
|
|
455
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
456
|
+
if (!privateMap.has(receiver)) {
|
|
457
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
458
|
+
}
|
|
459
|
+
return privateMap.get(receiver);
|
|
460
|
+
}
|
|
461
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
462
|
+
if (!privateMap.has(receiver)) {
|
|
463
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
464
|
+
}
|
|
465
|
+
privateMap.set(receiver, value);
|
|
466
|
+
return value;
|
|
394
467
|
}
|
|
395
468
|
|
|
396
|
-
/**
|
|
397
|
-
* @license
|
|
398
|
-
* Copyright Google LLC All Rights Reserved.
|
|
399
|
-
*
|
|
400
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
401
|
-
* found in the LICENSE file at https://angular.io/license
|
|
402
|
-
*/
|
|
403
469
|
/** Mixin to augment a directive with a `disabled` property. */
|
|
404
470
|
function mixinDisabled(base) {
|
|
405
471
|
return /** @class */ (function (_super) {
|
|
@@ -465,13 +531,6 @@
|
|
|
465
531
|
}(base));
|
|
466
532
|
}
|
|
467
533
|
|
|
468
|
-
/**
|
|
469
|
-
* @license
|
|
470
|
-
* Copyright Google LLC All Rights Reserved.
|
|
471
|
-
*
|
|
472
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
473
|
-
* found in the LICENSE file at https://angular.io/license
|
|
474
|
-
*/
|
|
475
534
|
/** Mixin to augment a directive with a `disableRipple` property. */
|
|
476
535
|
function mixinDisableRipple(base) {
|
|
477
536
|
return /** @class */ (function (_super) {
|
|
@@ -496,13 +555,6 @@
|
|
|
496
555
|
}(base));
|
|
497
556
|
}
|
|
498
557
|
|
|
499
|
-
/**
|
|
500
|
-
* @license
|
|
501
|
-
* Copyright Google LLC All Rights Reserved.
|
|
502
|
-
*
|
|
503
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
504
|
-
* found in the LICENSE file at https://angular.io/license
|
|
505
|
-
*/
|
|
506
558
|
/** Mixin to augment a directive with a `tabIndex` property. */
|
|
507
559
|
function mixinTabIndex(base, defaultTabIndex) {
|
|
508
560
|
if (defaultTabIndex === void 0) { defaultTabIndex = 0; }
|
|
@@ -521,7 +573,7 @@
|
|
|
521
573
|
get: function () { return this.disabled ? -1 : this._tabIndex; },
|
|
522
574
|
set: function (value) {
|
|
523
575
|
// If the specified tabIndex value is null or undefined, fall back to the default value.
|
|
524
|
-
this._tabIndex = value != null ? value : defaultTabIndex;
|
|
576
|
+
this._tabIndex = value != null ? coercion.coerceNumberProperty(value) : defaultTabIndex;
|
|
525
577
|
},
|
|
526
578
|
enumerable: false,
|
|
527
579
|
configurable: true
|
|
@@ -530,13 +582,6 @@
|
|
|
530
582
|
}(base));
|
|
531
583
|
}
|
|
532
584
|
|
|
533
|
-
/**
|
|
534
|
-
* @license
|
|
535
|
-
* Copyright Google LLC All Rights Reserved.
|
|
536
|
-
*
|
|
537
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
538
|
-
* found in the LICENSE file at https://angular.io/license
|
|
539
|
-
*/
|
|
540
585
|
/**
|
|
541
586
|
* Mixin to augment a directive with updateErrorState method.
|
|
542
587
|
* For component with `errorState` and need to update `errorState`.
|
|
@@ -574,13 +619,6 @@
|
|
|
574
619
|
}(base));
|
|
575
620
|
}
|
|
576
621
|
|
|
577
|
-
/**
|
|
578
|
-
* @license
|
|
579
|
-
* Copyright Google LLC All Rights Reserved.
|
|
580
|
-
*
|
|
581
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
582
|
-
* found in the LICENSE file at https://angular.io/license
|
|
583
|
-
*/
|
|
584
622
|
/** Mixin to augment a directive with an initialized property that will emits when ngOnInit ends. */
|
|
585
623
|
function mixinInitialized(base) {
|
|
586
624
|
return /** @class */ (function (_super) {
|
|
@@ -765,13 +803,6 @@
|
|
|
765
803
|
*/
|
|
766
804
|
var MAT_DATE_FORMATS = new i0.InjectionToken('mat-date-formats');
|
|
767
805
|
|
|
768
|
-
/**
|
|
769
|
-
* @license
|
|
770
|
-
* Copyright Google LLC All Rights Reserved.
|
|
771
|
-
*
|
|
772
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
773
|
-
* found in the LICENSE file at https://angular.io/license
|
|
774
|
-
*/
|
|
775
806
|
// TODO(mmalerba): Remove when we no longer support safari 9.
|
|
776
807
|
/** Whether the browser supports the Intl API. */
|
|
777
808
|
var SUPPORTS_INTL_API;
|
|
@@ -857,9 +888,7 @@
|
|
|
857
888
|
var _this = this;
|
|
858
889
|
if (SUPPORTS_INTL_API) {
|
|
859
890
|
var dtf_1 = new Intl.DateTimeFormat(this.locale, { month: style, timeZone: 'utc' });
|
|
860
|
-
return range(12, function (i) {
|
|
861
|
-
return _this._stripDirectionalityCharacters(_this._format(dtf_1, new Date(2017, i, 1)));
|
|
862
|
-
});
|
|
891
|
+
return range(12, function (i) { return _this._stripDirectionalityCharacters(_this._format(dtf_1, new Date(2017, i, 1))); });
|
|
863
892
|
}
|
|
864
893
|
return DEFAULT_MONTH_NAMES[style];
|
|
865
894
|
};
|
|
@@ -934,7 +963,7 @@
|
|
|
934
963
|
date = this.clone(date);
|
|
935
964
|
date.setFullYear(Math.max(1, Math.min(9999, date.getFullYear())));
|
|
936
965
|
}
|
|
937
|
-
displayFormat =
|
|
966
|
+
displayFormat = Object.assign(Object.assign({}, displayFormat), { timeZone: 'utc' });
|
|
938
967
|
var dtf = new Intl.DateTimeFormat(this.locale, displayFormat);
|
|
939
968
|
return this._stripDirectionalityCharacters(this._format(dtf, date));
|
|
940
969
|
}
|
|
@@ -1037,15 +1066,15 @@
|
|
|
1037
1066
|
var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
1038
1067
|
return dtf.format(d);
|
|
1039
1068
|
};
|
|
1040
|
-
NativeDateAdapter.decorators = [
|
|
1041
|
-
{ type: i0.Injectable }
|
|
1042
|
-
];
|
|
1043
|
-
NativeDateAdapter.ctorParameters = function () { return [
|
|
1044
|
-
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_DATE_LOCALE,] }] },
|
|
1045
|
-
{ type: platform.Platform }
|
|
1046
|
-
]; };
|
|
1047
1069
|
return NativeDateAdapter;
|
|
1048
1070
|
}(DateAdapter));
|
|
1071
|
+
NativeDateAdapter.decorators = [
|
|
1072
|
+
{ type: i0.Injectable }
|
|
1073
|
+
];
|
|
1074
|
+
NativeDateAdapter.ctorParameters = function () { return [
|
|
1075
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_DATE_LOCALE,] }] },
|
|
1076
|
+
{ type: platform.Platform }
|
|
1077
|
+
]; };
|
|
1049
1078
|
|
|
1050
1079
|
/**
|
|
1051
1080
|
* @license
|
|
@@ -1076,28 +1105,28 @@
|
|
|
1076
1105
|
var NativeDateModule = /** @class */ (function () {
|
|
1077
1106
|
function NativeDateModule() {
|
|
1078
1107
|
}
|
|
1079
|
-
NativeDateModule.decorators = [
|
|
1080
|
-
{ type: i0.NgModule, args: [{
|
|
1081
|
-
imports: [platform.PlatformModule],
|
|
1082
|
-
providers: [
|
|
1083
|
-
{ provide: DateAdapter, useClass: NativeDateAdapter },
|
|
1084
|
-
],
|
|
1085
|
-
},] }
|
|
1086
|
-
];
|
|
1087
1108
|
return NativeDateModule;
|
|
1088
1109
|
}());
|
|
1110
|
+
NativeDateModule.decorators = [
|
|
1111
|
+
{ type: i0.NgModule, args: [{
|
|
1112
|
+
imports: [platform.PlatformModule],
|
|
1113
|
+
providers: [
|
|
1114
|
+
{ provide: DateAdapter, useClass: NativeDateAdapter },
|
|
1115
|
+
],
|
|
1116
|
+
},] }
|
|
1117
|
+
];
|
|
1089
1118
|
var ɵ0$1 = MAT_NATIVE_DATE_FORMATS;
|
|
1090
1119
|
var MatNativeDateModule = /** @class */ (function () {
|
|
1091
1120
|
function MatNativeDateModule() {
|
|
1092
1121
|
}
|
|
1093
|
-
MatNativeDateModule.decorators = [
|
|
1094
|
-
{ type: i0.NgModule, args: [{
|
|
1095
|
-
imports: [NativeDateModule],
|
|
1096
|
-
providers: [{ provide: MAT_DATE_FORMATS, useValue: ɵ0$1 }],
|
|
1097
|
-
},] }
|
|
1098
|
-
];
|
|
1099
1122
|
return MatNativeDateModule;
|
|
1100
1123
|
}());
|
|
1124
|
+
MatNativeDateModule.decorators = [
|
|
1125
|
+
{ type: i0.NgModule, args: [{
|
|
1126
|
+
imports: [NativeDateModule],
|
|
1127
|
+
providers: [{ provide: MAT_DATE_FORMATS, useValue: ɵ0$1 }],
|
|
1128
|
+
},] }
|
|
1129
|
+
];
|
|
1101
1130
|
|
|
1102
1131
|
/**
|
|
1103
1132
|
* @license
|
|
@@ -1113,11 +1142,11 @@
|
|
|
1113
1142
|
ShowOnDirtyErrorStateMatcher.prototype.isErrorState = function (control, form) {
|
|
1114
1143
|
return !!(control && control.invalid && (control.dirty || (form && form.submitted)));
|
|
1115
1144
|
};
|
|
1116
|
-
ShowOnDirtyErrorStateMatcher.decorators = [
|
|
1117
|
-
{ type: i0.Injectable }
|
|
1118
|
-
];
|
|
1119
1145
|
return ShowOnDirtyErrorStateMatcher;
|
|
1120
1146
|
}());
|
|
1147
|
+
ShowOnDirtyErrorStateMatcher.decorators = [
|
|
1148
|
+
{ type: i0.Injectable }
|
|
1149
|
+
];
|
|
1121
1150
|
/** Provider that defines how form controls behave with regards to displaying error messages. */
|
|
1122
1151
|
var ErrorStateMatcher = /** @class */ (function () {
|
|
1123
1152
|
function ErrorStateMatcher() {
|
|
@@ -1125,12 +1154,12 @@
|
|
|
1125
1154
|
ErrorStateMatcher.prototype.isErrorState = function (control, form) {
|
|
1126
1155
|
return !!(control && control.invalid && (control.touched || (form && form.submitted)));
|
|
1127
1156
|
};
|
|
1128
|
-
ErrorStateMatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function ErrorStateMatcher_Factory() { return new ErrorStateMatcher(); }, token: ErrorStateMatcher, providedIn: "root" });
|
|
1129
|
-
ErrorStateMatcher.decorators = [
|
|
1130
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1131
|
-
];
|
|
1132
1157
|
return ErrorStateMatcher;
|
|
1133
1158
|
}());
|
|
1159
|
+
ErrorStateMatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function ErrorStateMatcher_Factory() { return new ErrorStateMatcher(); }, token: ErrorStateMatcher, providedIn: "root" });
|
|
1160
|
+
ErrorStateMatcher.decorators = [
|
|
1161
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1162
|
+
];
|
|
1134
1163
|
|
|
1135
1164
|
/**
|
|
1136
1165
|
* @license
|
|
@@ -1147,14 +1176,14 @@
|
|
|
1147
1176
|
var MatLine = /** @class */ (function () {
|
|
1148
1177
|
function MatLine() {
|
|
1149
1178
|
}
|
|
1150
|
-
MatLine.decorators = [
|
|
1151
|
-
{ type: i0.Directive, args: [{
|
|
1152
|
-
selector: '[mat-line], [matLine]',
|
|
1153
|
-
host: { 'class': 'mat-line' }
|
|
1154
|
-
},] }
|
|
1155
|
-
];
|
|
1156
1179
|
return MatLine;
|
|
1157
1180
|
}());
|
|
1181
|
+
MatLine.decorators = [
|
|
1182
|
+
{ type: i0.Directive, args: [{
|
|
1183
|
+
selector: '[mat-line], [matLine]',
|
|
1184
|
+
host: { 'class': 'mat-line' }
|
|
1185
|
+
},] }
|
|
1186
|
+
];
|
|
1158
1187
|
/**
|
|
1159
1188
|
* Helper that takes a query list of lines and sets the correct class on the host.
|
|
1160
1189
|
* @docs-private
|
|
@@ -1196,15 +1225,15 @@
|
|
|
1196
1225
|
var MatLineModule = /** @class */ (function () {
|
|
1197
1226
|
function MatLineModule() {
|
|
1198
1227
|
}
|
|
1199
|
-
MatLineModule.decorators = [
|
|
1200
|
-
{ type: i0.NgModule, args: [{
|
|
1201
|
-
imports: [MatCommonModule],
|
|
1202
|
-
exports: [MatLine, MatCommonModule],
|
|
1203
|
-
declarations: [MatLine],
|
|
1204
|
-
},] }
|
|
1205
|
-
];
|
|
1206
1228
|
return MatLineModule;
|
|
1207
1229
|
}());
|
|
1230
|
+
MatLineModule.decorators = [
|
|
1231
|
+
{ type: i0.NgModule, args: [{
|
|
1232
|
+
imports: [MatCommonModule],
|
|
1233
|
+
exports: [MatLine, MatCommonModule],
|
|
1234
|
+
declarations: [MatLine],
|
|
1235
|
+
},] }
|
|
1236
|
+
];
|
|
1208
1237
|
|
|
1209
1238
|
/**
|
|
1210
1239
|
* @license
|
|
@@ -1287,7 +1316,7 @@
|
|
|
1287
1316
|
if (config === void 0) { config = {}; }
|
|
1288
1317
|
var containerRect = this._containerRect =
|
|
1289
1318
|
this._containerRect || this._containerElement.getBoundingClientRect();
|
|
1290
|
-
var animationConfig =
|
|
1319
|
+
var animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), config.animation);
|
|
1291
1320
|
if (config.centered) {
|
|
1292
1321
|
x = containerRect.left + containerRect.width / 2;
|
|
1293
1322
|
y = containerRect.top + containerRect.height / 2;
|
|
@@ -1351,7 +1380,7 @@
|
|
|
1351
1380
|
return;
|
|
1352
1381
|
}
|
|
1353
1382
|
var rippleEl = rippleRef.element;
|
|
1354
|
-
var animationConfig =
|
|
1383
|
+
var animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), rippleRef.config.animation);
|
|
1355
1384
|
rippleEl.style.transitionDuration = animationConfig.exitDuration + "ms";
|
|
1356
1385
|
rippleEl.style.opacity = '0';
|
|
1357
1386
|
rippleRef.state = 2 /* FADING_OUT */;
|
|
@@ -1561,7 +1590,7 @@
|
|
|
1561
1590
|
centered: this.centered,
|
|
1562
1591
|
radius: this.radius,
|
|
1563
1592
|
color: this.color,
|
|
1564
|
-
animation:
|
|
1593
|
+
animation: Object.assign(Object.assign(Object.assign({}, this._globalOptions.animation), (this._animationMode === 'NoopAnimations' ? { enterDuration: 0, exitDuration: 0 } : {})), this.animation),
|
|
1565
1594
|
terminateOnPointerUp: this._globalOptions.terminateOnPointerUp,
|
|
1566
1595
|
};
|
|
1567
1596
|
},
|
|
@@ -1589,40 +1618,40 @@
|
|
|
1589
1618
|
MatRipple.prototype.launch = function (configOrX, y, config) {
|
|
1590
1619
|
if (y === void 0) { y = 0; }
|
|
1591
1620
|
if (typeof configOrX === 'number') {
|
|
1592
|
-
return this._rippleRenderer.fadeInRipple(configOrX, y,
|
|
1621
|
+
return this._rippleRenderer.fadeInRipple(configOrX, y, Object.assign(Object.assign({}, this.rippleConfig), config));
|
|
1593
1622
|
}
|
|
1594
1623
|
else {
|
|
1595
|
-
return this._rippleRenderer.fadeInRipple(0, 0,
|
|
1624
|
+
return this._rippleRenderer.fadeInRipple(0, 0, Object.assign(Object.assign({}, this.rippleConfig), configOrX));
|
|
1596
1625
|
}
|
|
1597
1626
|
};
|
|
1598
|
-
MatRipple.decorators = [
|
|
1599
|
-
{ type: i0.Directive, args: [{
|
|
1600
|
-
selector: '[mat-ripple], [matRipple]',
|
|
1601
|
-
exportAs: 'matRipple',
|
|
1602
|
-
host: {
|
|
1603
|
-
'class': 'mat-ripple',
|
|
1604
|
-
'[class.mat-ripple-unbounded]': 'unbounded'
|
|
1605
|
-
}
|
|
1606
|
-
},] }
|
|
1607
|
-
];
|
|
1608
|
-
MatRipple.ctorParameters = function () { return [
|
|
1609
|
-
{ type: i0.ElementRef },
|
|
1610
|
-
{ type: i0.NgZone },
|
|
1611
|
-
{ type: platform.Platform },
|
|
1612
|
-
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] }] },
|
|
1613
|
-
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1614
|
-
]; };
|
|
1615
|
-
MatRipple.propDecorators = {
|
|
1616
|
-
color: [{ type: i0.Input, args: ['matRippleColor',] }],
|
|
1617
|
-
unbounded: [{ type: i0.Input, args: ['matRippleUnbounded',] }],
|
|
1618
|
-
centered: [{ type: i0.Input, args: ['matRippleCentered',] }],
|
|
1619
|
-
radius: [{ type: i0.Input, args: ['matRippleRadius',] }],
|
|
1620
|
-
animation: [{ type: i0.Input, args: ['matRippleAnimation',] }],
|
|
1621
|
-
disabled: [{ type: i0.Input, args: ['matRippleDisabled',] }],
|
|
1622
|
-
trigger: [{ type: i0.Input, args: ['matRippleTrigger',] }]
|
|
1623
|
-
};
|
|
1624
1627
|
return MatRipple;
|
|
1625
1628
|
}());
|
|
1629
|
+
MatRipple.decorators = [
|
|
1630
|
+
{ type: i0.Directive, args: [{
|
|
1631
|
+
selector: '[mat-ripple], [matRipple]',
|
|
1632
|
+
exportAs: 'matRipple',
|
|
1633
|
+
host: {
|
|
1634
|
+
'class': 'mat-ripple',
|
|
1635
|
+
'[class.mat-ripple-unbounded]': 'unbounded'
|
|
1636
|
+
}
|
|
1637
|
+
},] }
|
|
1638
|
+
];
|
|
1639
|
+
MatRipple.ctorParameters = function () { return [
|
|
1640
|
+
{ type: i0.ElementRef },
|
|
1641
|
+
{ type: i0.NgZone },
|
|
1642
|
+
{ type: platform.Platform },
|
|
1643
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] }] },
|
|
1644
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1645
|
+
]; };
|
|
1646
|
+
MatRipple.propDecorators = {
|
|
1647
|
+
color: [{ type: i0.Input, args: ['matRippleColor',] }],
|
|
1648
|
+
unbounded: [{ type: i0.Input, args: ['matRippleUnbounded',] }],
|
|
1649
|
+
centered: [{ type: i0.Input, args: ['matRippleCentered',] }],
|
|
1650
|
+
radius: [{ type: i0.Input, args: ['matRippleRadius',] }],
|
|
1651
|
+
animation: [{ type: i0.Input, args: ['matRippleAnimation',] }],
|
|
1652
|
+
disabled: [{ type: i0.Input, args: ['matRippleDisabled',] }],
|
|
1653
|
+
trigger: [{ type: i0.Input, args: ['matRippleTrigger',] }]
|
|
1654
|
+
};
|
|
1626
1655
|
|
|
1627
1656
|
/**
|
|
1628
1657
|
* @license
|
|
@@ -1634,15 +1663,15 @@
|
|
|
1634
1663
|
var MatRippleModule = /** @class */ (function () {
|
|
1635
1664
|
function MatRippleModule() {
|
|
1636
1665
|
}
|
|
1637
|
-
MatRippleModule.decorators = [
|
|
1638
|
-
{ type: i0.NgModule, args: [{
|
|
1639
|
-
imports: [MatCommonModule, platform.PlatformModule],
|
|
1640
|
-
exports: [MatRipple, MatCommonModule],
|
|
1641
|
-
declarations: [MatRipple],
|
|
1642
|
-
},] }
|
|
1643
|
-
];
|
|
1644
1666
|
return MatRippleModule;
|
|
1645
1667
|
}());
|
|
1668
|
+
MatRippleModule.decorators = [
|
|
1669
|
+
{ type: i0.NgModule, args: [{
|
|
1670
|
+
imports: [MatCommonModule, platform.PlatformModule],
|
|
1671
|
+
exports: [MatRipple, MatCommonModule],
|
|
1672
|
+
declarations: [MatRipple],
|
|
1673
|
+
},] }
|
|
1674
|
+
];
|
|
1646
1675
|
|
|
1647
1676
|
/**
|
|
1648
1677
|
* @license
|
|
@@ -1672,31 +1701,31 @@
|
|
|
1672
1701
|
/** Whether the checkbox is disabled. */
|
|
1673
1702
|
this.disabled = false;
|
|
1674
1703
|
}
|
|
1675
|
-
MatPseudoCheckbox.decorators = [
|
|
1676
|
-
{ type: i0.Component, args: [{
|
|
1677
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1678
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1679
|
-
selector: 'mat-pseudo-checkbox',
|
|
1680
|
-
template: '',
|
|
1681
|
-
host: {
|
|
1682
|
-
'class': 'mat-pseudo-checkbox',
|
|
1683
|
-
'[class.mat-pseudo-checkbox-indeterminate]': 'state === "indeterminate"',
|
|
1684
|
-
'[class.mat-pseudo-checkbox-checked]': 'state === "checked"',
|
|
1685
|
-
'[class.mat-pseudo-checkbox-disabled]': 'disabled',
|
|
1686
|
-
'[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
|
|
1687
|
-
},
|
|
1688
|
-
styles: [".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n"]
|
|
1689
|
-
},] }
|
|
1690
|
-
];
|
|
1691
|
-
MatPseudoCheckbox.ctorParameters = function () { return [
|
|
1692
|
-
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1693
|
-
]; };
|
|
1694
|
-
MatPseudoCheckbox.propDecorators = {
|
|
1695
|
-
state: [{ type: i0.Input }],
|
|
1696
|
-
disabled: [{ type: i0.Input }]
|
|
1697
|
-
};
|
|
1698
1704
|
return MatPseudoCheckbox;
|
|
1699
1705
|
}());
|
|
1706
|
+
MatPseudoCheckbox.decorators = [
|
|
1707
|
+
{ type: i0.Component, args: [{
|
|
1708
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1709
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1710
|
+
selector: 'mat-pseudo-checkbox',
|
|
1711
|
+
template: '',
|
|
1712
|
+
host: {
|
|
1713
|
+
'class': 'mat-pseudo-checkbox',
|
|
1714
|
+
'[class.mat-pseudo-checkbox-indeterminate]': 'state === "indeterminate"',
|
|
1715
|
+
'[class.mat-pseudo-checkbox-checked]': 'state === "checked"',
|
|
1716
|
+
'[class.mat-pseudo-checkbox-disabled]': 'disabled',
|
|
1717
|
+
'[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
|
|
1718
|
+
},
|
|
1719
|
+
styles: [".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n"]
|
|
1720
|
+
},] }
|
|
1721
|
+
];
|
|
1722
|
+
MatPseudoCheckbox.ctorParameters = function () { return [
|
|
1723
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1724
|
+
]; };
|
|
1725
|
+
MatPseudoCheckbox.propDecorators = {
|
|
1726
|
+
state: [{ type: i0.Input }],
|
|
1727
|
+
disabled: [{ type: i0.Input }]
|
|
1728
|
+
};
|
|
1700
1729
|
|
|
1701
1730
|
/**
|
|
1702
1731
|
* @license
|
|
@@ -1708,22 +1737,15 @@
|
|
|
1708
1737
|
var MatPseudoCheckboxModule = /** @class */ (function () {
|
|
1709
1738
|
function MatPseudoCheckboxModule() {
|
|
1710
1739
|
}
|
|
1711
|
-
MatPseudoCheckboxModule.decorators = [
|
|
1712
|
-
{ type: i0.NgModule, args: [{
|
|
1713
|
-
exports: [MatPseudoCheckbox],
|
|
1714
|
-
declarations: [MatPseudoCheckbox]
|
|
1715
|
-
},] }
|
|
1716
|
-
];
|
|
1717
1740
|
return MatPseudoCheckboxModule;
|
|
1718
1741
|
}());
|
|
1742
|
+
MatPseudoCheckboxModule.decorators = [
|
|
1743
|
+
{ type: i0.NgModule, args: [{
|
|
1744
|
+
exports: [MatPseudoCheckbox],
|
|
1745
|
+
declarations: [MatPseudoCheckbox]
|
|
1746
|
+
},] }
|
|
1747
|
+
];
|
|
1719
1748
|
|
|
1720
|
-
/**
|
|
1721
|
-
* @license
|
|
1722
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1723
|
-
*
|
|
1724
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1725
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1726
|
-
*/
|
|
1727
1749
|
// Boilerplate for applying mixins to MatOptgroup.
|
|
1728
1750
|
/** @docs-private */
|
|
1729
1751
|
var MatOptgroupBase = /** @class */ (function () {
|
|
@@ -1734,48 +1756,59 @@
|
|
|
1734
1756
|
var _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase);
|
|
1735
1757
|
// Counter for unique group ids.
|
|
1736
1758
|
var _uniqueOptgroupIdCounter = 0;
|
|
1759
|
+
// tslint:disable-next-line:class-name
|
|
1760
|
+
var _MatOptgroupBase = /** @class */ (function (_super) {
|
|
1761
|
+
__extends(_MatOptgroupBase, _super);
|
|
1762
|
+
function _MatOptgroupBase() {
|
|
1763
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1764
|
+
/** Unique id for the underlying label. */
|
|
1765
|
+
_this._labelId = "mat-optgroup-label-" + _uniqueOptgroupIdCounter++;
|
|
1766
|
+
return _this;
|
|
1767
|
+
}
|
|
1768
|
+
return _MatOptgroupBase;
|
|
1769
|
+
}(_MatOptgroupMixinBase));
|
|
1770
|
+
_MatOptgroupBase.decorators = [
|
|
1771
|
+
{ type: i0.Directive }
|
|
1772
|
+
];
|
|
1773
|
+
_MatOptgroupBase.propDecorators = {
|
|
1774
|
+
label: [{ type: i0.Input }]
|
|
1775
|
+
};
|
|
1776
|
+
/**
|
|
1777
|
+
* Injection token that can be used to reference instances of `MatOptgroup`. It serves as
|
|
1778
|
+
* alternative token to the actual `MatOptgroup` class which could cause unnecessary
|
|
1779
|
+
* retention of the class and its component metadata.
|
|
1780
|
+
*/
|
|
1781
|
+
var MAT_OPTGROUP = new i0.InjectionToken('MatOptgroup');
|
|
1737
1782
|
/**
|
|
1738
1783
|
* Component that is used to group instances of `mat-option`.
|
|
1739
1784
|
*/
|
|
1740
1785
|
var MatOptgroup = /** @class */ (function (_super) {
|
|
1741
1786
|
__extends(MatOptgroup, _super);
|
|
1742
1787
|
function MatOptgroup() {
|
|
1743
|
-
|
|
1744
|
-
/** Unique id for the underlying label. */
|
|
1745
|
-
_this._labelId = "mat-optgroup-label-" + _uniqueOptgroupIdCounter++;
|
|
1746
|
-
return _this;
|
|
1788
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1747
1789
|
}
|
|
1748
|
-
MatOptgroup.decorators = [
|
|
1749
|
-
{ type: i0.Component, args: [{
|
|
1750
|
-
selector: 'mat-optgroup',
|
|
1751
|
-
exportAs: 'matOptgroup',
|
|
1752
|
-
template: "<label class=\"mat-optgroup-label\" [id]=\"_labelId\">{{ label }} <ng-content></ng-content></label>\n<ng-content select=\"mat-option, ng-container\"></ng-content>\n",
|
|
1753
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1754
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1755
|
-
inputs: ['disabled'],
|
|
1756
|
-
host: {
|
|
1757
|
-
'class': 'mat-optgroup',
|
|
1758
|
-
'role': 'group',
|
|
1759
|
-
'[class.mat-optgroup-disabled]': 'disabled',
|
|
1760
|
-
'[attr.aria-disabled]': 'disabled.toString()',
|
|
1761
|
-
'[attr.aria-labelledby]': '_labelId',
|
|
1762
|
-
},
|
|
1763
|
-
styles: [".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"]
|
|
1764
|
-
},] }
|
|
1765
|
-
];
|
|
1766
|
-
MatOptgroup.propDecorators = {
|
|
1767
|
-
label: [{ type: i0.Input }]
|
|
1768
|
-
};
|
|
1769
1790
|
return MatOptgroup;
|
|
1770
|
-
}(
|
|
1791
|
+
}(_MatOptgroupBase));
|
|
1792
|
+
MatOptgroup.decorators = [
|
|
1793
|
+
{ type: i0.Component, args: [{
|
|
1794
|
+
selector: 'mat-optgroup',
|
|
1795
|
+
exportAs: 'matOptgroup',
|
|
1796
|
+
template: "<label class=\"mat-optgroup-label\" [id]=\"_labelId\">{{ label }} <ng-content></ng-content></label>\n<ng-content select=\"mat-option, ng-container\"></ng-content>\n",
|
|
1797
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1798
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1799
|
+
inputs: ['disabled'],
|
|
1800
|
+
host: {
|
|
1801
|
+
'class': 'mat-optgroup',
|
|
1802
|
+
'role': 'group',
|
|
1803
|
+
'[class.mat-optgroup-disabled]': 'disabled',
|
|
1804
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
1805
|
+
'[attr.aria-labelledby]': '_labelId',
|
|
1806
|
+
},
|
|
1807
|
+
providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }],
|
|
1808
|
+
styles: [".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"]
|
|
1809
|
+
},] }
|
|
1810
|
+
];
|
|
1771
1811
|
|
|
1772
|
-
/**
|
|
1773
|
-
* @license
|
|
1774
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1775
|
-
*
|
|
1776
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1777
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1778
|
-
*/
|
|
1779
1812
|
/**
|
|
1780
1813
|
* Option IDs need to be unique across components, so this counter exists outside of
|
|
1781
1814
|
* the component definition.
|
|
@@ -1798,11 +1831,9 @@
|
|
|
1798
1831
|
* Injection token used to provide the parent component to options.
|
|
1799
1832
|
*/
|
|
1800
1833
|
var MAT_OPTION_PARENT_COMPONENT = new i0.InjectionToken('MAT_OPTION_PARENT_COMPONENT');
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
var MatOption = /** @class */ (function () {
|
|
1805
|
-
function MatOption(_element, _changeDetectorRef, _parent, group) {
|
|
1834
|
+
// tslint:disable-next-line:class-name
|
|
1835
|
+
var _MatOptionBase = /** @class */ (function () {
|
|
1836
|
+
function _MatOptionBase(_element, _changeDetectorRef, _parent, group) {
|
|
1806
1837
|
this._element = _element;
|
|
1807
1838
|
this._changeDetectorRef = _changeDetectorRef;
|
|
1808
1839
|
this._parent = _parent;
|
|
@@ -1819,32 +1850,32 @@
|
|
|
1819
1850
|
/** Emits when the state of the option changes and any parents have to be notified. */
|
|
1820
1851
|
this._stateChanges = new rxjs.Subject();
|
|
1821
1852
|
}
|
|
1822
|
-
Object.defineProperty(
|
|
1853
|
+
Object.defineProperty(_MatOptionBase.prototype, "multiple", {
|
|
1823
1854
|
/** Whether the wrapping component is in multiple selection mode. */
|
|
1824
1855
|
get: function () { return this._parent && this._parent.multiple; },
|
|
1825
1856
|
enumerable: false,
|
|
1826
1857
|
configurable: true
|
|
1827
1858
|
});
|
|
1828
|
-
Object.defineProperty(
|
|
1859
|
+
Object.defineProperty(_MatOptionBase.prototype, "selected", {
|
|
1829
1860
|
/** Whether or not the option is currently selected. */
|
|
1830
1861
|
get: function () { return this._selected; },
|
|
1831
1862
|
enumerable: false,
|
|
1832
1863
|
configurable: true
|
|
1833
1864
|
});
|
|
1834
|
-
Object.defineProperty(
|
|
1865
|
+
Object.defineProperty(_MatOptionBase.prototype, "disabled", {
|
|
1835
1866
|
/** Whether the option is disabled. */
|
|
1836
1867
|
get: function () { return (this.group && this.group.disabled) || this._disabled; },
|
|
1837
1868
|
set: function (value) { this._disabled = coercion.coerceBooleanProperty(value); },
|
|
1838
1869
|
enumerable: false,
|
|
1839
1870
|
configurable: true
|
|
1840
1871
|
});
|
|
1841
|
-
Object.defineProperty(
|
|
1872
|
+
Object.defineProperty(_MatOptionBase.prototype, "disableRipple", {
|
|
1842
1873
|
/** Whether ripples for the option are disabled. */
|
|
1843
1874
|
get: function () { return this._parent && this._parent.disableRipple; },
|
|
1844
1875
|
enumerable: false,
|
|
1845
1876
|
configurable: true
|
|
1846
1877
|
});
|
|
1847
|
-
Object.defineProperty(
|
|
1878
|
+
Object.defineProperty(_MatOptionBase.prototype, "active", {
|
|
1848
1879
|
/**
|
|
1849
1880
|
* Whether or not the option is currently active and ready to be selected.
|
|
1850
1881
|
* An active option displays styles as if it is focused, but the
|
|
@@ -1857,7 +1888,7 @@
|
|
|
1857
1888
|
enumerable: false,
|
|
1858
1889
|
configurable: true
|
|
1859
1890
|
});
|
|
1860
|
-
Object.defineProperty(
|
|
1891
|
+
Object.defineProperty(_MatOptionBase.prototype, "viewValue", {
|
|
1861
1892
|
/**
|
|
1862
1893
|
* The displayed value of the option. It is necessary to show the selected option in the
|
|
1863
1894
|
* select's trigger.
|
|
@@ -1870,7 +1901,7 @@
|
|
|
1870
1901
|
configurable: true
|
|
1871
1902
|
});
|
|
1872
1903
|
/** Selects the option. */
|
|
1873
|
-
|
|
1904
|
+
_MatOptionBase.prototype.select = function () {
|
|
1874
1905
|
if (!this._selected) {
|
|
1875
1906
|
this._selected = true;
|
|
1876
1907
|
this._changeDetectorRef.markForCheck();
|
|
@@ -1878,7 +1909,7 @@
|
|
|
1878
1909
|
}
|
|
1879
1910
|
};
|
|
1880
1911
|
/** Deselects the option. */
|
|
1881
|
-
|
|
1912
|
+
_MatOptionBase.prototype.deselect = function () {
|
|
1882
1913
|
if (this._selected) {
|
|
1883
1914
|
this._selected = false;
|
|
1884
1915
|
this._changeDetectorRef.markForCheck();
|
|
@@ -1886,7 +1917,7 @@
|
|
|
1886
1917
|
}
|
|
1887
1918
|
};
|
|
1888
1919
|
/** Sets focus onto this option. */
|
|
1889
|
-
|
|
1920
|
+
_MatOptionBase.prototype.focus = function (_origin, options) {
|
|
1890
1921
|
// Note that we aren't using `_origin`, but we need to keep it because some internal consumers
|
|
1891
1922
|
// use `MatOption` in a `FocusKeyManager` and we need it to match `FocusableOption`.
|
|
1892
1923
|
var element = this._getHostElement();
|
|
@@ -1899,7 +1930,7 @@
|
|
|
1899
1930
|
* active. This is used by the ActiveDescendantKeyManager so key
|
|
1900
1931
|
* events will display the proper options as active on arrow key events.
|
|
1901
1932
|
*/
|
|
1902
|
-
|
|
1933
|
+
_MatOptionBase.prototype.setActiveStyles = function () {
|
|
1903
1934
|
if (!this._active) {
|
|
1904
1935
|
this._active = true;
|
|
1905
1936
|
this._changeDetectorRef.markForCheck();
|
|
@@ -1910,18 +1941,18 @@
|
|
|
1910
1941
|
* active. This is used by the ActiveDescendantKeyManager so key
|
|
1911
1942
|
* events will display the proper options as active on arrow key events.
|
|
1912
1943
|
*/
|
|
1913
|
-
|
|
1944
|
+
_MatOptionBase.prototype.setInactiveStyles = function () {
|
|
1914
1945
|
if (this._active) {
|
|
1915
1946
|
this._active = false;
|
|
1916
1947
|
this._changeDetectorRef.markForCheck();
|
|
1917
1948
|
}
|
|
1918
1949
|
};
|
|
1919
1950
|
/** Gets the label to be used when determining whether the option should be focused. */
|
|
1920
|
-
|
|
1951
|
+
_MatOptionBase.prototype.getLabel = function () {
|
|
1921
1952
|
return this.viewValue;
|
|
1922
1953
|
};
|
|
1923
1954
|
/** Ensures the option is selected when activated from the keyboard. */
|
|
1924
|
-
|
|
1955
|
+
_MatOptionBase.prototype._handleKeydown = function (event) {
|
|
1925
1956
|
if ((event.keyCode === keycodes.ENTER || event.keyCode === keycodes.SPACE) && !keycodes.hasModifierKey(event)) {
|
|
1926
1957
|
this._selectViaInteraction();
|
|
1927
1958
|
// Prevent the page from scrolling down and form submits.
|
|
@@ -1932,7 +1963,7 @@
|
|
|
1932
1963
|
* `Selects the option while indicating the selection came from the user. Used to
|
|
1933
1964
|
* determine if the select's view -> model callback should be invoked.`
|
|
1934
1965
|
*/
|
|
1935
|
-
|
|
1966
|
+
_MatOptionBase.prototype._selectViaInteraction = function () {
|
|
1936
1967
|
if (!this.disabled) {
|
|
1937
1968
|
this._selected = this.multiple ? !this._selected : true;
|
|
1938
1969
|
this._changeDetectorRef.markForCheck();
|
|
@@ -1945,18 +1976,18 @@
|
|
|
1945
1976
|
* attributes adds a significant amount of noise to screen-reader users without providing useful
|
|
1946
1977
|
* information.
|
|
1947
1978
|
*/
|
|
1948
|
-
|
|
1979
|
+
_MatOptionBase.prototype._getAriaSelected = function () {
|
|
1949
1980
|
return this.selected || (this.multiple ? false : null);
|
|
1950
1981
|
};
|
|
1951
1982
|
/** Returns the correct tabindex for the option depending on disabled state. */
|
|
1952
|
-
|
|
1983
|
+
_MatOptionBase.prototype._getTabIndex = function () {
|
|
1953
1984
|
return this.disabled ? '-1' : '0';
|
|
1954
1985
|
};
|
|
1955
1986
|
/** Gets the host DOM element. */
|
|
1956
|
-
|
|
1987
|
+
_MatOptionBase.prototype._getHostElement = function () {
|
|
1957
1988
|
return this._element.nativeElement;
|
|
1958
1989
|
};
|
|
1959
|
-
|
|
1990
|
+
_MatOptionBase.prototype.ngAfterViewChecked = function () {
|
|
1960
1991
|
// Since parent components could be using the option's label to display the selected values
|
|
1961
1992
|
// (e.g. `mat-select`) and they don't have a way of knowing if the option's label has changed
|
|
1962
1993
|
// we have to check for changes in the DOM ourselves and dispatch an event. These checks are
|
|
@@ -1970,52 +2001,71 @@
|
|
|
1970
2001
|
}
|
|
1971
2002
|
}
|
|
1972
2003
|
};
|
|
1973
|
-
|
|
2004
|
+
_MatOptionBase.prototype.ngOnDestroy = function () {
|
|
1974
2005
|
this._stateChanges.complete();
|
|
1975
2006
|
};
|
|
1976
2007
|
/** Emits the selection change event. */
|
|
1977
|
-
|
|
2008
|
+
_MatOptionBase.prototype._emitSelectionChangeEvent = function (isUserInput) {
|
|
1978
2009
|
if (isUserInput === void 0) { isUserInput = false; }
|
|
1979
2010
|
this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));
|
|
1980
2011
|
};
|
|
1981
|
-
|
|
1982
|
-
{ type: i0.Component, args: [{
|
|
1983
|
-
selector: 'mat-option',
|
|
1984
|
-
exportAs: 'matOption',
|
|
1985
|
-
host: {
|
|
1986
|
-
'role': 'option',
|
|
1987
|
-
'[attr.tabindex]': '_getTabIndex()',
|
|
1988
|
-
'[class.mat-selected]': 'selected',
|
|
1989
|
-
'[class.mat-option-multiple]': 'multiple',
|
|
1990
|
-
'[class.mat-active]': 'active',
|
|
1991
|
-
'[id]': 'id',
|
|
1992
|
-
'[attr.aria-selected]': '_getAriaSelected()',
|
|
1993
|
-
'[attr.aria-disabled]': 'disabled.toString()',
|
|
1994
|
-
'[class.mat-option-disabled]': 'disabled',
|
|
1995
|
-
'(click)': '_selectViaInteraction()',
|
|
1996
|
-
'(keydown)': '_handleKeydown($event)',
|
|
1997
|
-
'class': 'mat-option mat-focus-indicator',
|
|
1998
|
-
},
|
|
1999
|
-
template: "<mat-pseudo-checkbox *ngIf=\"multiple\" class=\"mat-option-pseudo-checkbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\" [disabled]=\"disabled\"></mat-pseudo-checkbox>\n\n<span class=\"mat-option-text\"><ng-content></ng-content></span>\n\n<div class=\"mat-option-ripple\" mat-ripple\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"disabled || disableRipple\">\n</div>\n",
|
|
2000
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
2001
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2002
|
-
styles: [".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"]
|
|
2003
|
-
},] }
|
|
2004
|
-
];
|
|
2005
|
-
MatOption.ctorParameters = function () { return [
|
|
2006
|
-
{ type: i0.ElementRef },
|
|
2007
|
-
{ type: i0.ChangeDetectorRef },
|
|
2008
|
-
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_OPTION_PARENT_COMPONENT,] }] },
|
|
2009
|
-
{ type: MatOptgroup, decorators: [{ type: i0.Optional }] }
|
|
2010
|
-
]; };
|
|
2011
|
-
MatOption.propDecorators = {
|
|
2012
|
-
value: [{ type: i0.Input }],
|
|
2013
|
-
id: [{ type: i0.Input }],
|
|
2014
|
-
disabled: [{ type: i0.Input }],
|
|
2015
|
-
onSelectionChange: [{ type: i0.Output }]
|
|
2016
|
-
};
|
|
2017
|
-
return MatOption;
|
|
2012
|
+
return _MatOptionBase;
|
|
2018
2013
|
}());
|
|
2014
|
+
_MatOptionBase.decorators = [
|
|
2015
|
+
{ type: i0.Directive }
|
|
2016
|
+
];
|
|
2017
|
+
_MatOptionBase.ctorParameters = function () { return [
|
|
2018
|
+
{ type: i0.ElementRef },
|
|
2019
|
+
{ type: i0.ChangeDetectorRef },
|
|
2020
|
+
{ type: undefined },
|
|
2021
|
+
{ type: _MatOptgroupBase }
|
|
2022
|
+
]; };
|
|
2023
|
+
_MatOptionBase.propDecorators = {
|
|
2024
|
+
value: [{ type: i0.Input }],
|
|
2025
|
+
id: [{ type: i0.Input }],
|
|
2026
|
+
disabled: [{ type: i0.Input }],
|
|
2027
|
+
onSelectionChange: [{ type: i0.Output }]
|
|
2028
|
+
};
|
|
2029
|
+
/**
|
|
2030
|
+
* Single option inside of a `<mat-select>` element.
|
|
2031
|
+
*/
|
|
2032
|
+
var MatOption = /** @class */ (function (_super) {
|
|
2033
|
+
__extends(MatOption, _super);
|
|
2034
|
+
function MatOption(element, changeDetectorRef, parent, group) {
|
|
2035
|
+
return _super.call(this, element, changeDetectorRef, parent, group) || this;
|
|
2036
|
+
}
|
|
2037
|
+
return MatOption;
|
|
2038
|
+
}(_MatOptionBase));
|
|
2039
|
+
MatOption.decorators = [
|
|
2040
|
+
{ type: i0.Component, args: [{
|
|
2041
|
+
selector: 'mat-option',
|
|
2042
|
+
exportAs: 'matOption',
|
|
2043
|
+
host: {
|
|
2044
|
+
'role': 'option',
|
|
2045
|
+
'[attr.tabindex]': '_getTabIndex()',
|
|
2046
|
+
'[class.mat-selected]': 'selected',
|
|
2047
|
+
'[class.mat-option-multiple]': 'multiple',
|
|
2048
|
+
'[class.mat-active]': 'active',
|
|
2049
|
+
'[id]': 'id',
|
|
2050
|
+
'[attr.aria-selected]': '_getAriaSelected()',
|
|
2051
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
2052
|
+
'[class.mat-option-disabled]': 'disabled',
|
|
2053
|
+
'(click)': '_selectViaInteraction()',
|
|
2054
|
+
'(keydown)': '_handleKeydown($event)',
|
|
2055
|
+
'class': 'mat-option mat-focus-indicator',
|
|
2056
|
+
},
|
|
2057
|
+
template: "<mat-pseudo-checkbox *ngIf=\"multiple\" class=\"mat-option-pseudo-checkbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\" [disabled]=\"disabled\"></mat-pseudo-checkbox>\n\n<span class=\"mat-option-text\"><ng-content></ng-content></span>\n\n<div class=\"mat-option-ripple\" mat-ripple\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"disabled || disableRipple\">\n</div>\n",
|
|
2058
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
2059
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2060
|
+
styles: [".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"]
|
|
2061
|
+
},] }
|
|
2062
|
+
];
|
|
2063
|
+
MatOption.ctorParameters = function () { return [
|
|
2064
|
+
{ type: i0.ElementRef },
|
|
2065
|
+
{ type: i0.ChangeDetectorRef },
|
|
2066
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_OPTION_PARENT_COMPONENT,] }] },
|
|
2067
|
+
{ type: MatOptgroup, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_OPTGROUP,] }] }
|
|
2068
|
+
]; };
|
|
2019
2069
|
/**
|
|
2020
2070
|
* Counts the amount of option group labels that precede the specified option.
|
|
2021
2071
|
* @param optionIndex Index of the option at which to start counting.
|
|
@@ -2066,15 +2116,15 @@
|
|
|
2066
2116
|
var MatOptionModule = /** @class */ (function () {
|
|
2067
2117
|
function MatOptionModule() {
|
|
2068
2118
|
}
|
|
2069
|
-
MatOptionModule.decorators = [
|
|
2070
|
-
{ type: i0.NgModule, args: [{
|
|
2071
|
-
imports: [MatRippleModule, common.CommonModule, MatPseudoCheckboxModule],
|
|
2072
|
-
exports: [MatOption, MatOptgroup],
|
|
2073
|
-
declarations: [MatOption, MatOptgroup]
|
|
2074
|
-
},] }
|
|
2075
|
-
];
|
|
2076
2119
|
return MatOptionModule;
|
|
2077
2120
|
}());
|
|
2121
|
+
MatOptionModule.decorators = [
|
|
2122
|
+
{ type: i0.NgModule, args: [{
|
|
2123
|
+
imports: [MatRippleModule, common.CommonModule, MatPseudoCheckboxModule],
|
|
2124
|
+
exports: [MatOption, MatOptgroup],
|
|
2125
|
+
declarations: [MatOption, MatOptgroup]
|
|
2126
|
+
},] }
|
|
2127
|
+
];
|
|
2078
2128
|
|
|
2079
2129
|
/**
|
|
2080
2130
|
* @license
|
|
@@ -2137,6 +2187,7 @@
|
|
|
2137
2187
|
exports.MAT_DATE_LOCALE_PROVIDER = MAT_DATE_LOCALE_PROVIDER;
|
|
2138
2188
|
exports.MAT_LABEL_GLOBAL_OPTIONS = MAT_LABEL_GLOBAL_OPTIONS;
|
|
2139
2189
|
exports.MAT_NATIVE_DATE_FORMATS = MAT_NATIVE_DATE_FORMATS;
|
|
2190
|
+
exports.MAT_OPTGROUP = MAT_OPTGROUP;
|
|
2140
2191
|
exports.MAT_OPTION_PARENT_COMPONENT = MAT_OPTION_PARENT_COMPONENT;
|
|
2141
2192
|
exports.MAT_RIPPLE_GLOBAL_OPTIONS = MAT_RIPPLE_GLOBAL_OPTIONS;
|
|
2142
2193
|
exports.MAY = MAY;
|
|
@@ -2162,6 +2213,8 @@
|
|
|
2162
2213
|
exports.SEP = SEP;
|
|
2163
2214
|
exports.ShowOnDirtyErrorStateMatcher = ShowOnDirtyErrorStateMatcher;
|
|
2164
2215
|
exports.VERSION = VERSION;
|
|
2216
|
+
exports._MatOptgroupBase = _MatOptgroupBase;
|
|
2217
|
+
exports._MatOptionBase = _MatOptionBase;
|
|
2165
2218
|
exports._countGroupLabelsBeforeOption = _countGroupLabelsBeforeOption;
|
|
2166
2219
|
exports._getOptionScrollPosition = _getOptionScrollPosition;
|
|
2167
2220
|
exports.defaultRippleAnimationConfig = defaultRippleAnimationConfig;
|