@angular/material 10.1.1 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_theming.scss +46 -20
- package/autocomplete/autocomplete-origin.d.ts +8 -5
- package/autocomplete/autocomplete-trigger.d.ts +23 -17
- package/autocomplete/autocomplete.d.ts +23 -12
- package/autocomplete/index.metadata.json +1 -1
- package/badge/badge.d.ts +3 -1
- package/badge/index.metadata.json +1 -1
- package/bottom-sheet/index.metadata.json +1 -1
- package/bundles/material-autocomplete-testing.umd.js +316 -256
- package/bundles/material-autocomplete-testing.umd.js.map +1 -1
- package/bundles/material-autocomplete-testing.umd.min.js +2 -16
- package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
- package/bundles/material-autocomplete.umd.js +553 -436
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +3 -25
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge-testing.umd.js +301 -243
- package/bundles/material-badge-testing.umd.js.map +1 -1
- package/bundles/material-badge-testing.umd.min.js +2 -16
- package/bundles/material-badge-testing.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +356 -282
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +2 -2
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet-testing.umd.js +302 -244
- package/bundles/material-bottom-sheet-testing.umd.js.map +1 -1
- package/bundles/material-bottom-sheet-testing.umd.min.js +2 -16
- package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +376 -302
- 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 +310 -252
- package/bundles/material-button-testing.umd.js.map +1 -1
- package/bundles/material-button-testing.umd.min.js +2 -16
- package/bundles/material-button-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.js +304 -261
- package/bundles/material-button-toggle-testing.umd.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.min.js +2 -31
- package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +388 -322
- 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 -309
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +2 -10
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card-testing.umd.js +306 -250
- package/bundles/material-card-testing.umd.js.map +1 -1
- package/bundles/material-card-testing.umd.min.js +2 -16
- package/bundles/material-card-testing.umd.min.js.map +1 -1
- 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 +302 -244
- package/bundles/material-checkbox-testing.umd.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.min.js +2 -16
- package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +371 -312
- 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-testing.umd.js +802 -0
- package/bundles/material-chips-testing.umd.js.map +1 -0
- package/bundles/material-chips-testing.umd.min.js +30 -0
- package/bundles/material-chips-testing.umd.min.js.map +1 -0
- package/bundles/material-chips.umd.js +598 -551
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +18 -3
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core-testing.umd.js +304 -261
- package/bundles/material-core-testing.umd.js.map +1 -1
- package/bundles/material-core-testing.umd.min.js +2 -31
- package/bundles/material-core-testing.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +605 -540
- 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-testing.umd.js +1342 -0
- package/bundles/material-datepicker-testing.umd.js.map +1 -0
- package/bundles/material-datepicker-testing.umd.min.js +30 -0
- package/bundles/material-datepicker-testing.umd.min.js.map +1 -0
- package/bundles/material-datepicker.umd.js +1014 -981
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +43 -9
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog-testing.umd.js +303 -245
- package/bundles/material-dialog-testing.umd.js.map +1 -1
- package/bundles/material-dialog-testing.umd.min.js +2 -16
- package/bundles/material-dialog-testing.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +597 -476
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +10 -8
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider-testing.umd.js +300 -242
- package/bundles/material-divider-testing.umd.js.map +1 -1
- package/bundles/material-divider-testing.umd.min.js +2 -16
- 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 +303 -254
- package/bundles/material-expansion-testing.umd.js.map +1 -1
- package/bundles/material-expansion-testing.umd.min.js +2 -17
- package/bundles/material-expansion-testing.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +471 -433
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +12 -4
- 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 -243
- package/bundles/material-form-field-testing.umd.js.map +1 -1
- package/bundles/material-form-field-testing.umd.min.js +3 -17
- package/bundles/material-form-field-testing.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +480 -417
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +51 -4
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list-testing.umd.js +311 -260
- package/bundles/material-grid-list-testing.umd.js.map +1 -1
- package/bundles/material-grid-list-testing.umd.min.js +2 -24
- package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +414 -340
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +20 -5
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon-testing.umd.js +409 -12
- package/bundles/material-icon-testing.umd.js.map +1 -1
- package/bundles/material-icon-testing.umd.min.js +18 -3
- package/bundles/material-icon-testing.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +404 -336
- 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 +309 -262
- package/bundles/material-input-testing.umd.js.map +1 -1
- package/bundles/material-input-testing.umd.min.js +2 -16
- package/bundles/material-input-testing.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +399 -333
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +5 -18
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list-testing.umd.js +333 -311
- package/bundles/material-list-testing.umd.js.map +1 -1
- package/bundles/material-list-testing.umd.min.js +1 -9
- package/bundles/material-list-testing.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +527 -466
- 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 +305 -247
- package/bundles/material-menu-testing.umd.js.map +1 -1
- package/bundles/material-menu-testing.umd.min.js +2 -17
- package/bundles/material-menu-testing.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +476 -429
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +3 -17
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator-testing.umd.js +302 -244
- package/bundles/material-paginator-testing.umd.js.map +1 -1
- package/bundles/material-paginator-testing.umd.min.js +2 -16
- package/bundles/material-paginator-testing.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +349 -280
- 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 -243
- package/bundles/material-progress-bar-testing.umd.js.map +1 -1
- package/bundles/material-progress-bar-testing.umd.min.js +2 -16
- 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 -243
- package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
- package/bundles/material-progress-spinner-testing.umd.min.js +2 -16
- package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +420 -365
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js +3 -11
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio-testing.umd.js +304 -246
- package/bundles/material-radio-testing.umd.js.map +1 -1
- package/bundles/material-radio-testing.umd.min.js +2 -17
- package/bundles/material-radio-testing.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +405 -339
- 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 +316 -260
- package/bundles/material-select-testing.umd.js.map +1 -1
- package/bundles/material-select-testing.umd.min.js +2 -16
- package/bundles/material-select-testing.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +469 -389
- 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 -252
- package/bundles/material-sidenav-testing.umd.js.map +1 -1
- package/bundles/material-sidenav-testing.umd.min.js +1 -23
- package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +535 -496
- 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 +302 -244
- package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
- package/bundles/material-slide-toggle-testing.umd.min.js +2 -16
- 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 +302 -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 +479 -448
- 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 -246
- package/bundles/material-snack-bar-testing.umd.js.map +1 -1
- package/bundles/material-snack-bar-testing.umd.min.js +2 -16
- package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +394 -317
- 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 +302 -243
- package/bundles/material-sort-testing.umd.js.map +1 -1
- package/bundles/material-sort-testing.umd.min.js +2 -17
- package/bundles/material-sort-testing.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +383 -326
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +3 -33
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper-testing.umd.js +727 -0
- package/bundles/material-stepper-testing.umd.js.map +1 -0
- package/bundles/material-stepper-testing.umd.min.js +30 -0
- package/bundles/material-stepper-testing.umd.min.js.map +1 -0
- package/bundles/material-stepper.umd.js +496 -446
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +4 -11
- 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 +521 -465
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +4 -11
- 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 +677 -646
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +29 -4
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar-testing.umd.js +301 -243
- package/bundles/material-toolbar-testing.umd.js.map +1 -1
- package/bundles/material-toolbar-testing.umd.min.js +2 -16
- package/bundles/material-toolbar-testing.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +350 -286
- 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 -243
- package/bundles/material-tooltip-testing.umd.js.map +1 -1
- package/bundles/material-tooltip-testing.umd.min.js +2 -16
- package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +424 -324
- 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 +446 -385
- 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/index.metadata.json +1 -1
- package/chips/chip-default-options.d.ts +1 -1
- package/chips/chip-input.d.ts +1 -1
- package/chips/chip.d.ts +2 -2
- package/chips/index.metadata.json +1 -1
- package/chips/testing/chip-harness-filters.d.ts +28 -0
- package/chips/testing/chip-harness.d.ts +41 -0
- package/chips/testing/chip-input-harness.d.ts +47 -0
- package/chips/testing/chip-list-harness.d.ts +49 -0
- package/chips/testing/chip-remove-harness.d.ts +22 -0
- package/chips/testing/index.d.ts +8 -0
- package/chips/testing/package.json +9 -0
- package/chips/testing/public-api.d.ts +12 -0
- package/core/common-behaviors/color.d.ts +2 -0
- package/core/common-behaviors/constructor.d.ts +7 -0
- package/core/common-behaviors/disable-ripple.d.ts +2 -2
- package/core/common-behaviors/tabindex.d.ts +4 -2
- package/core/datetime/date-adapter.d.ts +9 -2
- package/core/index.metadata.json +1 -1
- package/core/option/optgroup.d.ts +8 -6
- package/core/option/option.d.ts +12 -9
- package/core/style/_vendor-prefixes.scss +5 -0
- package/datepicker/_datepicker-theme.scss +42 -21
- package/datepicker/calendar-body.d.ts +15 -4
- package/datepicker/calendar.d.ts +2 -7
- package/datepicker/date-range-input.d.ts +0 -5
- package/datepicker/date-range-selection-strategy.d.ts +5 -1
- package/datepicker/datepicker-base.d.ts +9 -11
- package/datepicker/datepicker-input-base.d.ts +0 -5
- package/datepicker/index.d.ts +4 -3
- package/datepicker/index.metadata.json +1 -1
- package/datepicker/month-view.d.ts +5 -9
- package/datepicker/multi-year-view.d.ts +3 -6
- package/datepicker/public-api.d.ts +1 -1
- package/datepicker/testing/calendar-cell-harness.d.ts +64 -0
- package/datepicker/testing/calendar-harness.d.ts +53 -0
- package/datepicker/testing/date-range-input-harness.d.ts +59 -0
- package/datepicker/testing/datepicker-harness-filters.d.ts +45 -0
- package/datepicker/testing/datepicker-input-harness-base.d.ts +43 -0
- package/datepicker/testing/datepicker-input-harness.d.ts +36 -0
- package/datepicker/testing/datepicker-toggle-harness.d.ts +28 -0
- package/datepicker/testing/datepicker-trigger-harness-base.d.ts +44 -0
- package/datepicker/testing/index.d.ts +8 -0
- package/datepicker/testing/package.json +9 -0
- package/datepicker/testing/public-api.d.ts +13 -0
- package/datepicker/year-view.d.ts +3 -6
- package/dialog/dialog-config.d.ts +1 -1
- package/dialog/dialog-container.d.ts +39 -22
- package/dialog/dialog-ref.d.ts +3 -3
- package/dialog/dialog.d.ts +25 -14
- package/dialog/index.metadata.json +1 -1
- package/esm2015/autocomplete/autocomplete-module.js +10 -5
- package/esm2015/autocomplete/autocomplete-origin.js +15 -9
- package/esm2015/autocomplete/autocomplete-trigger.js +73 -53
- package/esm2015/autocomplete/autocomplete.js +35 -22
- package/esm2015/autocomplete/testing/autocomplete-harness-filters.js +1 -0
- package/esm2015/badge/badge.js +15 -7
- package/esm2015/badge/testing/badge-harness-filters.js +1 -0
- package/esm2015/bottom-sheet/bottom-sheet-container.js +2 -2
- package/esm2015/bottom-sheet/bottom-sheet-ref.js +3 -3
- package/esm2015/bottom-sheet/bottom-sheet.js +14 -13
- package/esm2015/bottom-sheet/testing/bottom-sheet-harness-filters.js +1 -0
- package/esm2015/button/button.js +3 -3
- package/esm2015/button/testing/button-harness-filters.js +1 -0
- package/esm2015/button-toggle/button-toggle.js +2 -2
- package/esm2015/button-toggle/testing/button-toggle-group-harness-filters.js +1 -0
- package/esm2015/button-toggle/testing/button-toggle-group-harness.js +2 -2
- package/esm2015/button-toggle/testing/button-toggle-harness-filters.js +1 -0
- package/esm2015/button-toggle/testing/button-toggle-harness.js +2 -2
- package/esm2015/card/testing/card-harness-filters.js +1 -0
- package/esm2015/card/testing/card-harness.js +2 -2
- package/esm2015/checkbox/checkbox.js +2 -2
- package/esm2015/checkbox/testing/checkbox-harness-filters.js +1 -0
- package/esm2015/checkbox/testing/checkbox-harness.js +2 -2
- package/esm2015/chips/chip-default-options.js +1 -1
- package/esm2015/chips/chip-input.js +3 -8
- package/esm2015/chips/chip-list.js +7 -13
- package/esm2015/chips/chip-text-control.js +1 -0
- package/esm2015/chips/chip.js +1 -2
- package/esm2015/chips/testing/chip-harness-filters.js +2 -0
- package/esm2015/chips/testing/chip-harness.js +82 -0
- package/esm2015/chips/testing/chip-input-harness.js +101 -0
- package/esm2015/chips/testing/chip-list-harness.js +94 -0
- package/esm2015/chips/testing/chip-remove-harness.js +29 -0
- package/esm2015/chips/testing/index.js +9 -0
- package/esm2015/chips/testing/public-api.js +13 -0
- package/esm2015/chips/testing/testing.externs.js +0 -0
- package/esm2015/core/common-behaviors/color.js +3 -2
- package/esm2015/core/common-behaviors/common-module.js +6 -2
- package/esm2015/core/common-behaviors/constructor.js +2 -1
- package/esm2015/core/common-behaviors/disable-ripple.js +7 -3
- package/esm2015/core/common-behaviors/initialized.js +2 -2
- package/esm2015/core/common-behaviors/tabindex.js +11 -4
- package/esm2015/core/datetime/date-adapter.js +12 -3
- package/esm2015/core/datetime/native-date-adapter.js +11 -9
- package/esm2015/core/option/optgroup.js +16 -11
- package/esm2015/core/option/option.js +29 -16
- package/esm2015/core/testing/optgroup-harness-filters.js +1 -0
- package/esm2015/core/testing/option-harness-filters.js +1 -0
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/calendar-body.js +20 -5
- package/esm2015/datepicker/calendar.js +13 -18
- package/esm2015/datepicker/date-range-input-parts.js +5 -5
- package/esm2015/datepicker/date-range-input.js +15 -16
- package/esm2015/datepicker/date-range-picker.js +6 -2
- package/esm2015/datepicker/date-range-selection-strategy.js +12 -2
- package/esm2015/datepicker/date-selection-model.js +2 -2
- package/esm2015/datepicker/datepicker-base.js +17 -19
- package/esm2015/datepicker/datepicker-input-base.js +13 -18
- package/esm2015/datepicker/datepicker-input.js +7 -3
- package/esm2015/datepicker/datepicker-module.js +2 -7
- package/esm2015/datepicker/datepicker-toggle.js +3 -1
- package/esm2015/datepicker/index.js +5 -4
- package/esm2015/datepicker/month-view.js +19 -18
- package/esm2015/datepicker/multi-year-view.js +12 -16
- package/esm2015/datepicker/public-api.js +2 -2
- package/esm2015/datepicker/testing/calendar-cell-harness.js +181 -0
- package/esm2015/datepicker/testing/calendar-harness.js +91 -0
- package/esm2015/datepicker/testing/date-range-input-harness.js +116 -0
- package/esm2015/datepicker/testing/datepicker-harness-filters.js +9 -0
- package/esm2015/datepicker/testing/datepicker-input-harness-base.js +100 -0
- package/esm2015/datepicker/testing/datepicker-input-harness.js +69 -0
- package/esm2015/datepicker/testing/datepicker-toggle-harness.js +48 -0
- package/esm2015/datepicker/testing/datepicker-trigger-harness-base.js +77 -0
- package/esm2015/datepicker/testing/index.js +9 -0
- package/esm2015/datepicker/testing/public-api.js +14 -0
- package/esm2015/datepicker/testing/testing.externs.js +0 -0
- package/esm2015/datepicker/year-view.js +18 -20
- package/esm2015/dialog/dialog-config.js +1 -1
- package/esm2015/dialog/dialog-container.js +73 -50
- package/esm2015/dialog/dialog-content-directives.js +9 -3
- package/esm2015/dialog/dialog-ref.js +8 -8
- package/esm2015/dialog/dialog.js +58 -29
- package/esm2015/dialog/testing/dialog-harness-filters.js +1 -0
- package/esm2015/divider/testing/divider-harness-filters.js +1 -0
- package/esm2015/divider/testing/divider-harness.js +2 -2
- package/esm2015/expansion/accordion.js +3 -20
- package/esm2015/expansion/expansion-panel-header.js +7 -13
- package/esm2015/expansion/expansion-panel.js +7 -6
- package/esm2015/expansion/testing/expansion-harness-filters.js +1 -0
- package/esm2015/form-field/form-field-control.js +1 -1
- package/esm2015/form-field/form-field.js +26 -17
- package/esm2015/form-field/testing/form-field-harness-filters.js +1 -0
- package/esm2015/grid-list/grid-list.js +2 -2
- package/esm2015/grid-list/testing/grid-list-harness-filters.js +1 -0
- package/esm2015/grid-list/tile-coordinator.js +2 -2
- package/esm2015/grid-list/tile-styler.js +4 -3
- package/esm2015/icon/icon-registry.js +44 -52
- package/esm2015/icon/icon.js +13 -2
- package/esm2015/icon/testing/icon-harness-filters.js +9 -0
- package/esm2015/icon/testing/icon-harness.js +63 -0
- package/esm2015/icon/testing/public-api.js +3 -1
- package/esm2015/input/input.js +17 -10
- package/esm2015/input/testing/input-harness-filters.js +1 -0
- package/esm2015/input/testing/input-harness.js +7 -7
- package/esm2015/list/list.js +2 -2
- package/esm2015/list/selection-list.js +33 -31
- package/esm2015/list/testing/action-list-harness.js +2 -2
- package/esm2015/list/testing/list-harness-filters.js +1 -0
- package/esm2015/list/testing/list-harness.js +2 -2
- package/esm2015/list/testing/list-item-harness-base.js +2 -2
- package/esm2015/list/testing/nav-list-harness.js +2 -2
- package/esm2015/list/testing/selection-list-harness.js +3 -3
- package/esm2015/menu/menu-positions.js +1 -0
- package/esm2015/menu/menu-trigger.js +12 -6
- package/esm2015/menu/menu.js +11 -14
- package/esm2015/menu/testing/menu-harness-filters.js +1 -0
- package/esm2015/paginator/paginator.js +6 -3
- package/esm2015/paginator/testing/paginator-harness-filters.js +1 -0
- package/esm2015/progress-bar/testing/progress-bar-harness-filters.js +1 -0
- package/esm2015/progress-bar/testing/progress-bar-harness.js +2 -2
- package/esm2015/progress-spinner/progress-spinner.js +25 -16
- package/esm2015/progress-spinner/testing/progress-spinner-harness-filters.js +1 -0
- package/esm2015/progress-spinner/testing/progress-spinner-harness.js +2 -2
- package/esm2015/radio/radio.js +1 -1
- package/esm2015/radio/testing/radio-harness-filters.js +1 -0
- package/esm2015/radio/testing/radio-harness.js +3 -3
- package/esm2015/select/select.js +71 -57
- package/esm2015/select/testing/select-harness-filters.js +1 -0
- package/esm2015/select/testing/select-harness.js +2 -3
- package/esm2015/sidenav/drawer.js +23 -28
- package/esm2015/sidenav/testing/drawer-harness-filters.js +1 -0
- package/esm2015/slide-toggle/testing/slide-toggle-harness-filters.js +1 -0
- package/esm2015/slide-toggle/testing/slide-toggle-harness.js +2 -2
- package/esm2015/slider/slider.js +28 -31
- package/esm2015/slider/testing/slider-harness-filters.js +1 -0
- package/esm2015/slider/testing/slider-harness.js +2 -2
- package/esm2015/snack-bar/snack-bar-container.js +3 -3
- package/esm2015/snack-bar/snack-bar-ref.js +3 -3
- package/esm2015/snack-bar/snack-bar.js +13 -9
- package/esm2015/snack-bar/testing/snack-bar-harness-filters.js +1 -0
- package/esm2015/sort/sort-direction.js +1 -0
- package/esm2015/sort/sort-header.js +6 -3
- package/esm2015/sort/sort.js +11 -8
- package/esm2015/sort/testing/sort-harness-filters.js +1 -0
- package/esm2015/stepper/step-header.js +2 -2
- package/esm2015/stepper/stepper-button.js +3 -1
- package/esm2015/stepper/stepper.js +7 -4
- package/esm2015/stepper/testing/index.js +9 -0
- package/esm2015/stepper/testing/public-api.js +12 -0
- package/esm2015/stepper/testing/step-harness-filters.js +2 -0
- package/esm2015/stepper/testing/step-harness.js +132 -0
- package/esm2015/stepper/testing/stepper-button-harnesses.js +55 -0
- package/esm2015/stepper/testing/stepper-harness.js +57 -0
- package/esm2015/stepper/testing/testing.externs.js +0 -0
- package/esm2015/table/cell.js +15 -26
- package/esm2015/table/table-data-source.js +14 -1
- package/esm2015/table/table.js +11 -4
- package/esm2015/table/testing/table-harness-filters.js +1 -0
- package/esm2015/tabs/paginated-tab-header.js +3 -10
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +3 -3
- package/esm2015/tabs/tab.js +17 -10
- package/esm2015/tabs/testing/tab-harness-filters.js +1 -0
- package/esm2015/toolbar/testing/toolbar-harness-filters.js +1 -0
- package/esm2015/toolbar/testing/toolbar-harness.js +2 -2
- package/esm2015/toolbar/toolbar.js +15 -17
- package/esm2015/tooltip/testing/tooltip-harness-filters.js +1 -0
- package/esm2015/tooltip/tooltip.js +53 -31
- package/esm2015/tree/node.js +2 -2
- package/esm2015/tree/padding.js +7 -1
- package/esm2015/tree/toggle.js +8 -4
- package/expansion/expansion-panel-header.d.ts +6 -12
- package/expansion/expansion-panel.d.ts +5 -4
- package/expansion/index.metadata.json +1 -1
- package/fesm2015/autocomplete.js +128 -84
- package/fesm2015/autocomplete.js.map +1 -1
- package/fesm2015/badge.js +14 -6
- package/fesm2015/badge.js.map +1 -1
- package/fesm2015/bottom-sheet.js +17 -16
- package/fesm2015/bottom-sheet.js.map +1 -1
- package/fesm2015/button-toggle/testing.js +2 -2
- package/fesm2015/button-toggle/testing.js.map +1 -1
- package/fesm2015/button-toggle.js +1 -1
- package/fesm2015/button-toggle.js.map +1 -1
- package/fesm2015/button.js +2 -2
- package/fesm2015/button.js.map +1 -1
- package/fesm2015/card/testing.js +1 -1
- package/fesm2015/card/testing.js.map +1 -1
- package/fesm2015/checkbox/testing.js +1 -1
- package/fesm2015/checkbox/testing.js.map +1 -1
- package/fesm2015/checkbox.js +1 -1
- package/fesm2015/checkbox.js.map +1 -1
- package/fesm2015/chips/testing.js +316 -0
- package/fesm2015/chips/testing.js.map +1 -0
- package/fesm2015/chips.js +7 -19
- package/fesm2015/chips.js.map +1 -1
- package/fesm2015/core.js +87 -42
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker/testing.js +690 -0
- package/fesm2015/datepicker/testing.js.map +1 -0
- package/fesm2015/datepicker.js +146 -134
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/dialog.js +143 -85
- package/fesm2015/dialog.js.map +1 -1
- package/fesm2015/divider/testing.js +1 -1
- package/fesm2015/divider/testing.js.map +1 -1
- package/fesm2015/expansion.js +9 -30
- package/fesm2015/expansion.js.map +1 -1
- package/fesm2015/form-field.js +25 -16
- package/fesm2015/form-field.js.map +1 -1
- package/fesm2015/grid-list.js +5 -4
- package/fesm2015/grid-list.js.map +1 -1
- package/fesm2015/icon/testing.js +72 -1
- package/fesm2015/icon/testing.js.map +1 -1
- package/fesm2015/icon.js +56 -53
- package/fesm2015/icon.js.map +1 -1
- package/fesm2015/input/testing.js +6 -6
- package/fesm2015/input/testing.js.map +1 -1
- package/fesm2015/input.js +15 -8
- package/fesm2015/input.js.map +1 -1
- package/fesm2015/list/testing.js +6 -6
- package/fesm2015/list/testing.js.map +1 -1
- package/fesm2015/list.js +33 -31
- package/fesm2015/list.js.map +1 -1
- package/fesm2015/menu.js +20 -17
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/paginator.js +5 -2
- package/fesm2015/paginator.js.map +1 -1
- package/fesm2015/progress-bar/testing.js +1 -1
- package/fesm2015/progress-bar/testing.js.map +1 -1
- package/fesm2015/progress-spinner/testing.js +1 -1
- package/fesm2015/progress-spinner/testing.js.map +1 -1
- package/fesm2015/progress-spinner.js +24 -15
- package/fesm2015/progress-spinner.js.map +1 -1
- package/fesm2015/radio/testing.js +2 -2
- package/fesm2015/radio/testing.js.map +1 -1
- package/fesm2015/radio.js.map +1 -1
- package/fesm2015/select/testing.js +1 -2
- package/fesm2015/select/testing.js.map +1 -1
- package/fesm2015/select.js +70 -56
- package/fesm2015/select.js.map +1 -1
- package/fesm2015/sidenav.js +22 -27
- package/fesm2015/sidenav.js.map +1 -1
- package/fesm2015/slide-toggle/testing.js +1 -1
- package/fesm2015/slide-toggle/testing.js.map +1 -1
- package/fesm2015/slider/testing.js +1 -1
- package/fesm2015/slider/testing.js.map +1 -1
- package/fesm2015/slider.js +27 -30
- package/fesm2015/slider.js.map +1 -1
- package/fesm2015/snack-bar.js +17 -13
- package/fesm2015/snack-bar.js.map +1 -1
- package/fesm2015/sort.js +15 -9
- package/fesm2015/sort.js.map +1 -1
- package/fesm2015/stepper/testing.js +258 -0
- package/fesm2015/stepper/testing.js.map +1 -0
- package/fesm2015/stepper.js +10 -5
- package/fesm2015/stepper.js.map +1 -1
- package/fesm2015/table.js +37 -28
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/tabs.js +20 -20
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/toolbar/testing.js +1 -1
- package/fesm2015/toolbar/testing.js.map +1 -1
- package/fesm2015/toolbar.js +14 -16
- package/fesm2015/toolbar.js.map +1 -1
- package/fesm2015/tooltip.js +52 -30
- package/fesm2015/tooltip.js.map +1 -1
- package/fesm2015/tree.js +13 -4
- package/fesm2015/tree.js.map +1 -1
- package/form-field/form-field-control.d.ts +5 -0
- package/form-field/form-field.d.ts +8 -5
- package/form-field/index.metadata.json +1 -1
- package/icon/icon-registry.d.ts +4 -6
- package/icon/icon.d.ts +3 -1
- package/icon/index.metadata.json +1 -1
- package/icon/testing/icon-harness-filters.d.ts +22 -0
- package/icon/testing/icon-harness.d.ts +29 -0
- package/icon/testing/index.metadata.json +1 -1
- package/icon/testing/public-api.d.ts +2 -0
- package/input/index.metadata.json +1 -1
- package/input/input.d.ts +6 -3
- package/list/index.metadata.json +1 -1
- package/list/selection-list.d.ts +3 -7
- package/menu/index.metadata.json +1 -1
- package/package.json +2 -2
- package/paginator/index.metadata.json +1 -1
- package/paginator/paginator.d.ts +5 -0
- 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 +9 -5
- package/radio/index.metadata.json +1 -1
- package/radio/radio.d.ts +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-update/data/index.js +1 -1
- package/select/index.metadata.json +1 -1
- package/select/select.d.ts +9 -8
- package/sidenav/drawer.d.ts +5 -5
- package/sidenav/index.metadata.json +1 -1
- package/slider/index.metadata.json +1 -1
- package/slider/slider.d.ts +8 -10
- package/snack-bar/index.metadata.json +1 -1
- package/sort/index.metadata.json +1 -1
- package/stepper/index.metadata.json +1 -1
- package/stepper/stepper.d.ts +3 -1
- package/stepper/testing/index.d.ts +8 -0
- package/stepper/testing/package.json +9 -0
- package/stepper/testing/public-api.d.ts +11 -0
- package/stepper/testing/step-harness-filters.d.ts +37 -0
- package/stepper/testing/step-harness.d.ts +57 -0
- package/stepper/testing/stepper-button-harnesses.d.ts +41 -0
- package/stepper/testing/stepper-harness.d.ts +35 -0
- package/table/cell.d.ts +9 -5
- package/table/index.metadata.json +1 -1
- package/table/table.d.ts +2 -0
- package/tabs/index.metadata.json +1 -1
- package/tabs/tab.d.ts +8 -1
- package/toolbar/index.metadata.json +1 -1
- package/tooltip/index.metadata.json +1 -1
- package/tooltip/tooltip.d.ts +6 -2
- package/tree/index.metadata.json +1 -1
- package/tree/padding.d.ts +4 -2
- package/tree/toggle.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.2.0');
|
|
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.2.0');
|
|
56
56
|
/** @docs-private */
|
|
57
57
|
function MATERIAL_SANITY_CHECKS_FACTORY() {
|
|
58
58
|
return true;
|
|
@@ -101,6 +101,10 @@
|
|
|
101
101
|
};
|
|
102
102
|
/** Whether any sanity checks are enabled. */
|
|
103
103
|
MatCommonModule.prototype._checksAreEnabled = function () {
|
|
104
|
+
// TODO(crisbeto): we can't use `ngDevMode` here yet, because ViewEngine apps might not support
|
|
105
|
+
// it. Since these checks can have performance implications and they aren't tree shakeable
|
|
106
|
+
// in their current form, we can leave the `isDevMode` check in for now.
|
|
107
|
+
// tslint:disable-next-line:ban
|
|
104
108
|
return i0.isDevMode() && !this._isTestEnv();
|
|
105
109
|
};
|
|
106
110
|
/** Whether the code is running in tests. */
|
|
@@ -151,255 +155,321 @@
|
|
|
151
155
|
'Please ensure the versions of these two packages exactly match.');
|
|
152
156
|
}
|
|
153
157
|
};
|
|
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
158
|
return MatCommonModule;
|
|
166
159
|
}());
|
|
160
|
+
MatCommonModule.decorators = [
|
|
161
|
+
{ type: i0.NgModule, args: [{
|
|
162
|
+
imports: [bidi.BidiModule],
|
|
163
|
+
exports: [bidi.BidiModule],
|
|
164
|
+
},] }
|
|
165
|
+
];
|
|
166
|
+
MatCommonModule.ctorParameters = function () { return [
|
|
167
|
+
{ type: a11y.HighContrastModeDetector },
|
|
168
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MATERIAL_SANITY_CHECKS,] }] },
|
|
169
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
170
|
+
]; };
|
|
167
171
|
|
|
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
|
-
|
|
172
|
+
/*! *****************************************************************************
|
|
173
|
+
Copyright (c) Microsoft Corporation.
|
|
174
|
+
|
|
175
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
176
|
+
purpose with or without fee is hereby granted.
|
|
177
|
+
|
|
178
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
179
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
180
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
181
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
182
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
183
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
184
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
185
|
+
***************************************************************************** */
|
|
186
|
+
/* global Reflect, Promise */
|
|
187
|
+
var extendStatics = function (d, b) {
|
|
188
|
+
extendStatics = Object.setPrototypeOf ||
|
|
189
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
190
|
+
function (d, b) { for (var p in b)
|
|
191
|
+
if (b.hasOwnProperty(p))
|
|
192
|
+
d[p] = b[p]; };
|
|
193
|
+
return extendStatics(d, b);
|
|
194
|
+
};
|
|
195
|
+
function __extends(d, b) {
|
|
196
|
+
extendStatics(d, b);
|
|
197
|
+
function __() { this.constructor = d; }
|
|
198
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
199
|
+
}
|
|
200
|
+
var __assign = function () {
|
|
201
|
+
__assign = Object.assign || function __assign(t) {
|
|
202
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
203
|
+
s = arguments[i];
|
|
204
|
+
for (var p in s)
|
|
205
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
206
|
+
t[p] = s[p];
|
|
207
|
+
}
|
|
208
|
+
return t;
|
|
209
|
+
};
|
|
210
|
+
return __assign.apply(this, arguments);
|
|
211
|
+
};
|
|
212
|
+
function __rest(s, e) {
|
|
213
|
+
var t = {};
|
|
214
|
+
for (var p in s)
|
|
215
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
216
|
+
t[p] = s[p];
|
|
217
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
218
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
219
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
220
|
+
t[p[i]] = s[p[i]];
|
|
221
|
+
}
|
|
222
|
+
return t;
|
|
223
|
+
}
|
|
224
|
+
function __decorate(decorators, target, key, desc) {
|
|
225
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
226
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
227
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
228
|
+
else
|
|
229
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
230
|
+
if (d = decorators[i])
|
|
231
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
232
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
233
|
+
}
|
|
234
|
+
function __param(paramIndex, decorator) {
|
|
235
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
236
|
+
}
|
|
237
|
+
function __metadata(metadataKey, metadataValue) {
|
|
238
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
239
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
240
|
+
}
|
|
241
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
242
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
243
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
244
|
+
function fulfilled(value) { try {
|
|
245
|
+
step(generator.next(value));
|
|
246
|
+
}
|
|
247
|
+
catch (e) {
|
|
248
|
+
reject(e);
|
|
249
|
+
} }
|
|
250
|
+
function rejected(value) { try {
|
|
251
|
+
step(generator["throw"](value));
|
|
252
|
+
}
|
|
253
|
+
catch (e) {
|
|
254
|
+
reject(e);
|
|
255
|
+
} }
|
|
256
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
257
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
function __generator(thisArg, body) {
|
|
261
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
262
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
263
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
264
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
265
|
+
function step(op) {
|
|
266
|
+
if (f)
|
|
267
|
+
throw new TypeError("Generator is already executing.");
|
|
268
|
+
while (_)
|
|
269
|
+
try {
|
|
270
|
+
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)
|
|
271
|
+
return t;
|
|
272
|
+
if (y = 0, t)
|
|
273
|
+
op = [op[0] & 2, t.value];
|
|
274
|
+
switch (op[0]) {
|
|
275
|
+
case 0:
|
|
276
|
+
case 1:
|
|
277
|
+
t = op;
|
|
278
|
+
break;
|
|
279
|
+
case 4:
|
|
280
|
+
_.label++;
|
|
281
|
+
return { value: op[1], done: false };
|
|
282
|
+
case 5:
|
|
283
|
+
_.label++;
|
|
284
|
+
y = op[1];
|
|
285
|
+
op = [0];
|
|
286
|
+
continue;
|
|
287
|
+
case 7:
|
|
288
|
+
op = _.ops.pop();
|
|
289
|
+
_.trys.pop();
|
|
290
|
+
continue;
|
|
291
|
+
default:
|
|
292
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
293
|
+
_ = 0;
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
297
|
+
_.label = op[1];
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
301
|
+
_.label = t[1];
|
|
302
|
+
t = op;
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
if (t && _.label < t[2]) {
|
|
306
|
+
_.label = t[2];
|
|
307
|
+
_.ops.push(op);
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
if (t[2])
|
|
311
|
+
_.ops.pop();
|
|
312
|
+
_.trys.pop();
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
op = body.call(thisArg, _);
|
|
316
|
+
}
|
|
317
|
+
catch (e) {
|
|
318
|
+
op = [6, e];
|
|
319
|
+
y = 0;
|
|
320
|
+
}
|
|
321
|
+
finally {
|
|
322
|
+
f = t = 0;
|
|
323
|
+
}
|
|
324
|
+
if (op[0] & 5)
|
|
325
|
+
throw op[1];
|
|
326
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
330
|
+
if (k2 === undefined)
|
|
331
|
+
k2 = k;
|
|
332
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
333
|
+
}) : (function (o, m, k, k2) {
|
|
334
|
+
if (k2 === undefined)
|
|
335
|
+
k2 = k;
|
|
336
|
+
o[k2] = m[k];
|
|
337
|
+
});
|
|
338
|
+
function __exportStar(m, exports) {
|
|
339
|
+
for (var p in m)
|
|
340
|
+
if (p !== "default" && !exports.hasOwnProperty(p))
|
|
341
|
+
__createBinding(exports, m, p);
|
|
342
|
+
}
|
|
343
|
+
function __values(o) {
|
|
344
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
345
|
+
if (m)
|
|
346
|
+
return m.call(o);
|
|
347
|
+
if (o && typeof o.length === "number")
|
|
348
|
+
return {
|
|
349
|
+
next: function () {
|
|
350
|
+
if (o && i >= o.length)
|
|
351
|
+
o = void 0;
|
|
352
|
+
return { value: o && o[i++], done: !o };
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
356
|
+
}
|
|
357
|
+
function __read(o, n) {
|
|
358
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
359
|
+
if (!m)
|
|
360
|
+
return o;
|
|
361
|
+
var i = m.call(o), r, ar = [], e;
|
|
362
|
+
try {
|
|
363
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
364
|
+
ar.push(r.value);
|
|
365
|
+
}
|
|
366
|
+
catch (error) {
|
|
367
|
+
e = { error: error };
|
|
368
|
+
}
|
|
369
|
+
finally {
|
|
370
|
+
try {
|
|
371
|
+
if (r && !r.done && (m = i["return"]))
|
|
372
|
+
m.call(i);
|
|
373
|
+
}
|
|
374
|
+
finally {
|
|
375
|
+
if (e)
|
|
376
|
+
throw e.error;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return ar;
|
|
380
|
+
}
|
|
381
|
+
function __spread() {
|
|
382
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
383
|
+
ar = ar.concat(__read(arguments[i]));
|
|
384
|
+
return ar;
|
|
385
|
+
}
|
|
386
|
+
function __spreadArrays() {
|
|
387
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
388
|
+
s += arguments[i].length;
|
|
389
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
390
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
391
|
+
r[k] = a[j];
|
|
392
|
+
return r;
|
|
393
|
+
}
|
|
394
|
+
;
|
|
395
|
+
function __await(v) {
|
|
396
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
397
|
+
}
|
|
398
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
399
|
+
if (!Symbol.asyncIterator)
|
|
400
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
401
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
402
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
403
|
+
function verb(n) { if (g[n])
|
|
404
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
405
|
+
function resume(n, v) { try {
|
|
406
|
+
step(g[n](v));
|
|
407
|
+
}
|
|
408
|
+
catch (e) {
|
|
409
|
+
settle(q[0][3], e);
|
|
410
|
+
} }
|
|
411
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
412
|
+
function fulfill(value) { resume("next", value); }
|
|
413
|
+
function reject(value) { resume("throw", value); }
|
|
414
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
415
|
+
resume(q[0][0], q[0][1]); }
|
|
416
|
+
}
|
|
417
|
+
function __asyncDelegator(o) {
|
|
418
|
+
var i, p;
|
|
419
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
420
|
+
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; }
|
|
421
|
+
}
|
|
422
|
+
function __asyncValues(o) {
|
|
423
|
+
if (!Symbol.asyncIterator)
|
|
424
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
425
|
+
var m = o[Symbol.asyncIterator], i;
|
|
426
|
+
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);
|
|
427
|
+
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); }); }; }
|
|
428
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
429
|
+
}
|
|
430
|
+
function __makeTemplateObject(cooked, raw) {
|
|
431
|
+
if (Object.defineProperty) {
|
|
432
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
cooked.raw = raw;
|
|
436
|
+
}
|
|
437
|
+
return cooked;
|
|
438
|
+
}
|
|
439
|
+
;
|
|
440
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
441
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
442
|
+
}) : function (o, v) {
|
|
443
|
+
o["default"] = v;
|
|
444
|
+
};
|
|
445
|
+
function __importStar(mod) {
|
|
446
|
+
if (mod && mod.__esModule)
|
|
447
|
+
return mod;
|
|
448
|
+
var result = {};
|
|
449
|
+
if (mod != null)
|
|
450
|
+
for (var k in mod)
|
|
451
|
+
if (Object.hasOwnProperty.call(mod, k))
|
|
452
|
+
__createBinding(result, mod, k);
|
|
453
|
+
__setModuleDefault(result, mod);
|
|
454
|
+
return result;
|
|
455
|
+
}
|
|
456
|
+
function __importDefault(mod) {
|
|
457
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
458
|
+
}
|
|
459
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
460
|
+
if (!privateMap.has(receiver)) {
|
|
461
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
462
|
+
}
|
|
463
|
+
return privateMap.get(receiver);
|
|
464
|
+
}
|
|
465
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
466
|
+
if (!privateMap.has(receiver)) {
|
|
467
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
468
|
+
}
|
|
469
|
+
privateMap.set(receiver, value);
|
|
470
|
+
return value;
|
|
394
471
|
}
|
|
395
472
|
|
|
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
473
|
/** Mixin to augment a directive with a `disabled` property. */
|
|
404
474
|
function mixinDisabled(base) {
|
|
405
475
|
return /** @class */ (function (_super) {
|
|
@@ -440,6 +510,7 @@
|
|
|
440
510
|
args[_i] = arguments[_i];
|
|
441
511
|
}
|
|
442
512
|
var _this = _super.apply(this, __spread(args)) || this;
|
|
513
|
+
_this.defaultColor = defaultColor;
|
|
443
514
|
// Set the default color that can be specified from the mixin.
|
|
444
515
|
_this.color = defaultColor;
|
|
445
516
|
return _this;
|
|
@@ -447,7 +518,7 @@
|
|
|
447
518
|
Object.defineProperty(class_1.prototype, "color", {
|
|
448
519
|
get: function () { return this._color; },
|
|
449
520
|
set: function (value) {
|
|
450
|
-
var colorPalette = value || defaultColor;
|
|
521
|
+
var colorPalette = value || this.defaultColor;
|
|
451
522
|
if (colorPalette !== this._color) {
|
|
452
523
|
if (this._color) {
|
|
453
524
|
this._elementRef.nativeElement.classList.remove("mat-" + this._color);
|
|
@@ -465,18 +536,11 @@
|
|
|
465
536
|
}(base));
|
|
466
537
|
}
|
|
467
538
|
|
|
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
539
|
/** Mixin to augment a directive with a `disableRipple` property. */
|
|
476
540
|
function mixinDisableRipple(base) {
|
|
477
|
-
|
|
478
|
-
__extends(
|
|
479
|
-
function
|
|
541
|
+
var Mixin = /** @class */ (function (_super) {
|
|
542
|
+
__extends(Mixin, _super);
|
|
543
|
+
function Mixin() {
|
|
480
544
|
var args = [];
|
|
481
545
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
482
546
|
args[_i] = arguments[_i];
|
|
@@ -485,58 +549,55 @@
|
|
|
485
549
|
_this._disableRipple = false;
|
|
486
550
|
return _this;
|
|
487
551
|
}
|
|
488
|
-
Object.defineProperty(
|
|
552
|
+
Object.defineProperty(Mixin.prototype, "disableRipple", {
|
|
489
553
|
/** Whether the ripple effect is disabled or not. */
|
|
490
554
|
get: function () { return this._disableRipple; },
|
|
491
555
|
set: function (value) { this._disableRipple = coercion.coerceBooleanProperty(value); },
|
|
492
556
|
enumerable: false,
|
|
493
557
|
configurable: true
|
|
494
558
|
});
|
|
495
|
-
return
|
|
559
|
+
return Mixin;
|
|
496
560
|
}(base));
|
|
561
|
+
// Since we don't directly extend from `base` with it's original types, and we instruct
|
|
562
|
+
// TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.
|
|
563
|
+
// This is a limitation in TS as abstract classes cannot be typed properly dynamically.
|
|
564
|
+
return Mixin;
|
|
497
565
|
}
|
|
498
566
|
|
|
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
567
|
/** Mixin to augment a directive with a `tabIndex` property. */
|
|
507
568
|
function mixinTabIndex(base, defaultTabIndex) {
|
|
508
569
|
if (defaultTabIndex === void 0) { defaultTabIndex = 0; }
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
570
|
+
// Note: We cast `base` to `unknown` and then `Constructor`. It could be an abstract class,
|
|
571
|
+
// but given we `extend` it from another class, we can assume a constructor being accessible.
|
|
572
|
+
var Mixin = /** @class */ (function (_super) {
|
|
573
|
+
__extends(Mixin, _super);
|
|
574
|
+
function Mixin() {
|
|
512
575
|
var args = [];
|
|
513
576
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
514
577
|
args[_i] = arguments[_i];
|
|
515
578
|
}
|
|
516
579
|
var _this = _super.apply(this, __spread(args)) || this;
|
|
517
580
|
_this._tabIndex = defaultTabIndex;
|
|
581
|
+
_this.defaultTabIndex = defaultTabIndex;
|
|
518
582
|
return _this;
|
|
519
583
|
}
|
|
520
|
-
Object.defineProperty(
|
|
584
|
+
Object.defineProperty(Mixin.prototype, "tabIndex", {
|
|
521
585
|
get: function () { return this.disabled ? -1 : this._tabIndex; },
|
|
522
586
|
set: function (value) {
|
|
523
587
|
// If the specified tabIndex value is null or undefined, fall back to the default value.
|
|
524
|
-
this._tabIndex = value != null ? coercion.coerceNumberProperty(value) : defaultTabIndex;
|
|
588
|
+
this._tabIndex = value != null ? coercion.coerceNumberProperty(value) : this.defaultTabIndex;
|
|
525
589
|
},
|
|
526
590
|
enumerable: false,
|
|
527
591
|
configurable: true
|
|
528
592
|
});
|
|
529
|
-
return
|
|
593
|
+
return Mixin;
|
|
530
594
|
}(base));
|
|
595
|
+
// Since we don't directly extend from `base` with it's original types, and we instruct
|
|
596
|
+
// TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.
|
|
597
|
+
// This is a limitation in TS as abstract classes cannot be typed properly dynamically.
|
|
598
|
+
return Mixin;
|
|
531
599
|
}
|
|
532
600
|
|
|
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
601
|
/**
|
|
541
602
|
* Mixin to augment a directive with updateErrorState method.
|
|
542
603
|
* For component with `errorState` and need to update `errorState`.
|
|
@@ -574,13 +635,6 @@
|
|
|
574
635
|
}(base));
|
|
575
636
|
}
|
|
576
637
|
|
|
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
638
|
/** Mixin to augment a directive with an initialized property that will emits when ngOnInit ends. */
|
|
585
639
|
function mixinInitialized(base) {
|
|
586
640
|
return /** @class */ (function (_super) {
|
|
@@ -621,7 +675,7 @@
|
|
|
621
675
|
* @docs-private
|
|
622
676
|
*/
|
|
623
677
|
class_1.prototype._markInitialized = function () {
|
|
624
|
-
if (this._isInitialized) {
|
|
678
|
+
if (this._isInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
625
679
|
throw Error('This directive has already been marked as initialized and ' +
|
|
626
680
|
'should not be called twice.');
|
|
627
681
|
}
|
|
@@ -673,13 +727,18 @@
|
|
|
673
727
|
var DateAdapter = /** @class */ (function () {
|
|
674
728
|
function DateAdapter() {
|
|
675
729
|
this._localeChanges = new rxjs.Subject();
|
|
676
|
-
}
|
|
677
|
-
Object.defineProperty(DateAdapter.prototype, "localeChanges", {
|
|
678
730
|
/** A stream that emits when the locale changes. */
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
731
|
+
this.localeChanges = this._localeChanges;
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Given a potential date object, returns that same date object if it is
|
|
735
|
+
* a valid date, or `null` if it's not a valid date.
|
|
736
|
+
* @param obj The object to check.
|
|
737
|
+
* @returns A date or `null`.
|
|
738
|
+
*/
|
|
739
|
+
DateAdapter.prototype.getValidDateOrNull = function (obj) {
|
|
740
|
+
return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;
|
|
741
|
+
};
|
|
683
742
|
/**
|
|
684
743
|
* Attempts to deserialize a value to a valid date object. This is different from parsing in that
|
|
685
744
|
* deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
|
|
@@ -765,13 +824,6 @@
|
|
|
765
824
|
*/
|
|
766
825
|
var MAT_DATE_FORMATS = new i0.InjectionToken('mat-date-formats');
|
|
767
826
|
|
|
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
827
|
// TODO(mmalerba): Remove when we no longer support safari 9.
|
|
776
828
|
/** Whether the browser supports the Intl API. */
|
|
777
829
|
var SUPPORTS_INTL_API;
|
|
@@ -857,9 +909,7 @@
|
|
|
857
909
|
var _this = this;
|
|
858
910
|
if (SUPPORTS_INTL_API) {
|
|
859
911
|
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
|
-
});
|
|
912
|
+
return range(12, function (i) { return _this._stripDirectionalityCharacters(_this._format(dtf_1, new Date(2017, i, 1))); });
|
|
863
913
|
}
|
|
864
914
|
return DEFAULT_MONTH_NAMES[style];
|
|
865
915
|
};
|
|
@@ -897,17 +947,19 @@
|
|
|
897
947
|
return new Date(date.getTime());
|
|
898
948
|
};
|
|
899
949
|
NativeDateAdapter.prototype.createDate = function (year, month, date) {
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
950
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
951
|
+
// Check for invalid month and date (except upper bound on date which we have to check after
|
|
952
|
+
// creating the Date).
|
|
953
|
+
if (month < 0 || month > 11) {
|
|
954
|
+
throw Error("Invalid month index \"" + month + "\". Month index has to be between 0 and 11.");
|
|
955
|
+
}
|
|
956
|
+
if (date < 1) {
|
|
957
|
+
throw Error("Invalid date \"" + date + "\". Date has to be greater than 0.");
|
|
958
|
+
}
|
|
907
959
|
}
|
|
908
960
|
var result = this._createDateWithOverflow(year, month, date);
|
|
909
961
|
// Check that the date wasn't above the upper bound for the month, causing the month to overflow
|
|
910
|
-
if (result.getMonth() != month) {
|
|
962
|
+
if (result.getMonth() != month && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
911
963
|
throw Error("Invalid date \"" + date + "\" for month with index \"" + month + "\".");
|
|
912
964
|
}
|
|
913
965
|
return result;
|
|
@@ -934,7 +986,7 @@
|
|
|
934
986
|
date = this.clone(date);
|
|
935
987
|
date.setFullYear(Math.max(1, Math.min(9999, date.getFullYear())));
|
|
936
988
|
}
|
|
937
|
-
displayFormat =
|
|
989
|
+
displayFormat = Object.assign(Object.assign({}, displayFormat), { timeZone: 'utc' });
|
|
938
990
|
var dtf = new Intl.DateTimeFormat(this.locale, displayFormat);
|
|
939
991
|
return this._stripDirectionalityCharacters(this._format(dtf, date));
|
|
940
992
|
}
|
|
@@ -1037,15 +1089,15 @@
|
|
|
1037
1089
|
var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
1038
1090
|
return dtf.format(d);
|
|
1039
1091
|
};
|
|
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
1092
|
return NativeDateAdapter;
|
|
1048
1093
|
}(DateAdapter));
|
|
1094
|
+
NativeDateAdapter.decorators = [
|
|
1095
|
+
{ type: i0.Injectable }
|
|
1096
|
+
];
|
|
1097
|
+
NativeDateAdapter.ctorParameters = function () { return [
|
|
1098
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_DATE_LOCALE,] }] },
|
|
1099
|
+
{ type: platform.Platform }
|
|
1100
|
+
]; };
|
|
1049
1101
|
|
|
1050
1102
|
/**
|
|
1051
1103
|
* @license
|
|
@@ -1076,28 +1128,28 @@
|
|
|
1076
1128
|
var NativeDateModule = /** @class */ (function () {
|
|
1077
1129
|
function NativeDateModule() {
|
|
1078
1130
|
}
|
|
1079
|
-
NativeDateModule.decorators = [
|
|
1080
|
-
{ type: i0.NgModule, args: [{
|
|
1081
|
-
imports: [platform.PlatformModule],
|
|
1082
|
-
providers: [
|
|
1083
|
-
{ provide: DateAdapter, useClass: NativeDateAdapter },
|
|
1084
|
-
],
|
|
1085
|
-
},] }
|
|
1086
|
-
];
|
|
1087
1131
|
return NativeDateModule;
|
|
1088
1132
|
}());
|
|
1133
|
+
NativeDateModule.decorators = [
|
|
1134
|
+
{ type: i0.NgModule, args: [{
|
|
1135
|
+
imports: [platform.PlatformModule],
|
|
1136
|
+
providers: [
|
|
1137
|
+
{ provide: DateAdapter, useClass: NativeDateAdapter },
|
|
1138
|
+
],
|
|
1139
|
+
},] }
|
|
1140
|
+
];
|
|
1089
1141
|
var ɵ0$1 = MAT_NATIVE_DATE_FORMATS;
|
|
1090
1142
|
var MatNativeDateModule = /** @class */ (function () {
|
|
1091
1143
|
function MatNativeDateModule() {
|
|
1092
1144
|
}
|
|
1093
|
-
MatNativeDateModule.decorators = [
|
|
1094
|
-
{ type: i0.NgModule, args: [{
|
|
1095
|
-
imports: [NativeDateModule],
|
|
1096
|
-
providers: [{ provide: MAT_DATE_FORMATS, useValue: ɵ0$1 }],
|
|
1097
|
-
},] }
|
|
1098
|
-
];
|
|
1099
1145
|
return MatNativeDateModule;
|
|
1100
1146
|
}());
|
|
1147
|
+
MatNativeDateModule.decorators = [
|
|
1148
|
+
{ type: i0.NgModule, args: [{
|
|
1149
|
+
imports: [NativeDateModule],
|
|
1150
|
+
providers: [{ provide: MAT_DATE_FORMATS, useValue: ɵ0$1 }],
|
|
1151
|
+
},] }
|
|
1152
|
+
];
|
|
1101
1153
|
|
|
1102
1154
|
/**
|
|
1103
1155
|
* @license
|
|
@@ -1113,11 +1165,11 @@
|
|
|
1113
1165
|
ShowOnDirtyErrorStateMatcher.prototype.isErrorState = function (control, form) {
|
|
1114
1166
|
return !!(control && control.invalid && (control.dirty || (form && form.submitted)));
|
|
1115
1167
|
};
|
|
1116
|
-
ShowOnDirtyErrorStateMatcher.decorators = [
|
|
1117
|
-
{ type: i0.Injectable }
|
|
1118
|
-
];
|
|
1119
1168
|
return ShowOnDirtyErrorStateMatcher;
|
|
1120
1169
|
}());
|
|
1170
|
+
ShowOnDirtyErrorStateMatcher.decorators = [
|
|
1171
|
+
{ type: i0.Injectable }
|
|
1172
|
+
];
|
|
1121
1173
|
/** Provider that defines how form controls behave with regards to displaying error messages. */
|
|
1122
1174
|
var ErrorStateMatcher = /** @class */ (function () {
|
|
1123
1175
|
function ErrorStateMatcher() {
|
|
@@ -1125,12 +1177,12 @@
|
|
|
1125
1177
|
ErrorStateMatcher.prototype.isErrorState = function (control, form) {
|
|
1126
1178
|
return !!(control && control.invalid && (control.touched || (form && form.submitted)));
|
|
1127
1179
|
};
|
|
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
1180
|
return ErrorStateMatcher;
|
|
1133
1181
|
}());
|
|
1182
|
+
ErrorStateMatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function ErrorStateMatcher_Factory() { return new ErrorStateMatcher(); }, token: ErrorStateMatcher, providedIn: "root" });
|
|
1183
|
+
ErrorStateMatcher.decorators = [
|
|
1184
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1185
|
+
];
|
|
1134
1186
|
|
|
1135
1187
|
/**
|
|
1136
1188
|
* @license
|
|
@@ -1147,14 +1199,14 @@
|
|
|
1147
1199
|
var MatLine = /** @class */ (function () {
|
|
1148
1200
|
function MatLine() {
|
|
1149
1201
|
}
|
|
1150
|
-
MatLine.decorators = [
|
|
1151
|
-
{ type: i0.Directive, args: [{
|
|
1152
|
-
selector: '[mat-line], [matLine]',
|
|
1153
|
-
host: { 'class': 'mat-line' }
|
|
1154
|
-
},] }
|
|
1155
|
-
];
|
|
1156
1202
|
return MatLine;
|
|
1157
1203
|
}());
|
|
1204
|
+
MatLine.decorators = [
|
|
1205
|
+
{ type: i0.Directive, args: [{
|
|
1206
|
+
selector: '[mat-line], [matLine]',
|
|
1207
|
+
host: { 'class': 'mat-line' }
|
|
1208
|
+
},] }
|
|
1209
|
+
];
|
|
1158
1210
|
/**
|
|
1159
1211
|
* Helper that takes a query list of lines and sets the correct class on the host.
|
|
1160
1212
|
* @docs-private
|
|
@@ -1196,15 +1248,15 @@
|
|
|
1196
1248
|
var MatLineModule = /** @class */ (function () {
|
|
1197
1249
|
function MatLineModule() {
|
|
1198
1250
|
}
|
|
1199
|
-
MatLineModule.decorators = [
|
|
1200
|
-
{ type: i0.NgModule, args: [{
|
|
1201
|
-
imports: [MatCommonModule],
|
|
1202
|
-
exports: [MatLine, MatCommonModule],
|
|
1203
|
-
declarations: [MatLine],
|
|
1204
|
-
},] }
|
|
1205
|
-
];
|
|
1206
1251
|
return MatLineModule;
|
|
1207
1252
|
}());
|
|
1253
|
+
MatLineModule.decorators = [
|
|
1254
|
+
{ type: i0.NgModule, args: [{
|
|
1255
|
+
imports: [MatCommonModule],
|
|
1256
|
+
exports: [MatLine, MatCommonModule],
|
|
1257
|
+
declarations: [MatLine],
|
|
1258
|
+
},] }
|
|
1259
|
+
];
|
|
1208
1260
|
|
|
1209
1261
|
/**
|
|
1210
1262
|
* @license
|
|
@@ -1287,7 +1339,7 @@
|
|
|
1287
1339
|
if (config === void 0) { config = {}; }
|
|
1288
1340
|
var containerRect = this._containerRect =
|
|
1289
1341
|
this._containerRect || this._containerElement.getBoundingClientRect();
|
|
1290
|
-
var animationConfig =
|
|
1342
|
+
var animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), config.animation);
|
|
1291
1343
|
if (config.centered) {
|
|
1292
1344
|
x = containerRect.left + containerRect.width / 2;
|
|
1293
1345
|
y = containerRect.top + containerRect.height / 2;
|
|
@@ -1351,7 +1403,7 @@
|
|
|
1351
1403
|
return;
|
|
1352
1404
|
}
|
|
1353
1405
|
var rippleEl = rippleRef.element;
|
|
1354
|
-
var animationConfig =
|
|
1406
|
+
var animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), rippleRef.config.animation);
|
|
1355
1407
|
rippleEl.style.transitionDuration = animationConfig.exitDuration + "ms";
|
|
1356
1408
|
rippleEl.style.opacity = '0';
|
|
1357
1409
|
rippleRef.state = 2 /* FADING_OUT */;
|
|
@@ -1561,7 +1613,7 @@
|
|
|
1561
1613
|
centered: this.centered,
|
|
1562
1614
|
radius: this.radius,
|
|
1563
1615
|
color: this.color,
|
|
1564
|
-
animation:
|
|
1616
|
+
animation: Object.assign(Object.assign(Object.assign({}, this._globalOptions.animation), (this._animationMode === 'NoopAnimations' ? { enterDuration: 0, exitDuration: 0 } : {})), this.animation),
|
|
1565
1617
|
terminateOnPointerUp: this._globalOptions.terminateOnPointerUp,
|
|
1566
1618
|
};
|
|
1567
1619
|
},
|
|
@@ -1589,40 +1641,40 @@
|
|
|
1589
1641
|
MatRipple.prototype.launch = function (configOrX, y, config) {
|
|
1590
1642
|
if (y === void 0) { y = 0; }
|
|
1591
1643
|
if (typeof configOrX === 'number') {
|
|
1592
|
-
return this._rippleRenderer.fadeInRipple(configOrX, y,
|
|
1644
|
+
return this._rippleRenderer.fadeInRipple(configOrX, y, Object.assign(Object.assign({}, this.rippleConfig), config));
|
|
1593
1645
|
}
|
|
1594
1646
|
else {
|
|
1595
|
-
return this._rippleRenderer.fadeInRipple(0, 0,
|
|
1647
|
+
return this._rippleRenderer.fadeInRipple(0, 0, Object.assign(Object.assign({}, this.rippleConfig), configOrX));
|
|
1596
1648
|
}
|
|
1597
1649
|
};
|
|
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
1650
|
return MatRipple;
|
|
1625
1651
|
}());
|
|
1652
|
+
MatRipple.decorators = [
|
|
1653
|
+
{ type: i0.Directive, args: [{
|
|
1654
|
+
selector: '[mat-ripple], [matRipple]',
|
|
1655
|
+
exportAs: 'matRipple',
|
|
1656
|
+
host: {
|
|
1657
|
+
'class': 'mat-ripple',
|
|
1658
|
+
'[class.mat-ripple-unbounded]': 'unbounded'
|
|
1659
|
+
}
|
|
1660
|
+
},] }
|
|
1661
|
+
];
|
|
1662
|
+
MatRipple.ctorParameters = function () { return [
|
|
1663
|
+
{ type: i0.ElementRef },
|
|
1664
|
+
{ type: i0.NgZone },
|
|
1665
|
+
{ type: platform.Platform },
|
|
1666
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_RIPPLE_GLOBAL_OPTIONS,] }] },
|
|
1667
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1668
|
+
]; };
|
|
1669
|
+
MatRipple.propDecorators = {
|
|
1670
|
+
color: [{ type: i0.Input, args: ['matRippleColor',] }],
|
|
1671
|
+
unbounded: [{ type: i0.Input, args: ['matRippleUnbounded',] }],
|
|
1672
|
+
centered: [{ type: i0.Input, args: ['matRippleCentered',] }],
|
|
1673
|
+
radius: [{ type: i0.Input, args: ['matRippleRadius',] }],
|
|
1674
|
+
animation: [{ type: i0.Input, args: ['matRippleAnimation',] }],
|
|
1675
|
+
disabled: [{ type: i0.Input, args: ['matRippleDisabled',] }],
|
|
1676
|
+
trigger: [{ type: i0.Input, args: ['matRippleTrigger',] }]
|
|
1677
|
+
};
|
|
1626
1678
|
|
|
1627
1679
|
/**
|
|
1628
1680
|
* @license
|
|
@@ -1634,15 +1686,15 @@
|
|
|
1634
1686
|
var MatRippleModule = /** @class */ (function () {
|
|
1635
1687
|
function MatRippleModule() {
|
|
1636
1688
|
}
|
|
1637
|
-
MatRippleModule.decorators = [
|
|
1638
|
-
{ type: i0.NgModule, args: [{
|
|
1639
|
-
imports: [MatCommonModule, platform.PlatformModule],
|
|
1640
|
-
exports: [MatRipple, MatCommonModule],
|
|
1641
|
-
declarations: [MatRipple],
|
|
1642
|
-
},] }
|
|
1643
|
-
];
|
|
1644
1689
|
return MatRippleModule;
|
|
1645
1690
|
}());
|
|
1691
|
+
MatRippleModule.decorators = [
|
|
1692
|
+
{ type: i0.NgModule, args: [{
|
|
1693
|
+
imports: [MatCommonModule, platform.PlatformModule],
|
|
1694
|
+
exports: [MatRipple, MatCommonModule],
|
|
1695
|
+
declarations: [MatRipple],
|
|
1696
|
+
},] }
|
|
1697
|
+
];
|
|
1646
1698
|
|
|
1647
1699
|
/**
|
|
1648
1700
|
* @license
|
|
@@ -1672,31 +1724,31 @@
|
|
|
1672
1724
|
/** Whether the checkbox is disabled. */
|
|
1673
1725
|
this.disabled = false;
|
|
1674
1726
|
}
|
|
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
1727
|
return MatPseudoCheckbox;
|
|
1699
1728
|
}());
|
|
1729
|
+
MatPseudoCheckbox.decorators = [
|
|
1730
|
+
{ type: i0.Component, args: [{
|
|
1731
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1732
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1733
|
+
selector: 'mat-pseudo-checkbox',
|
|
1734
|
+
template: '',
|
|
1735
|
+
host: {
|
|
1736
|
+
'class': 'mat-pseudo-checkbox',
|
|
1737
|
+
'[class.mat-pseudo-checkbox-indeterminate]': 'state === "indeterminate"',
|
|
1738
|
+
'[class.mat-pseudo-checkbox-checked]': 'state === "checked"',
|
|
1739
|
+
'[class.mat-pseudo-checkbox-disabled]': 'disabled',
|
|
1740
|
+
'[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
|
|
1741
|
+
},
|
|
1742
|
+
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"]
|
|
1743
|
+
},] }
|
|
1744
|
+
];
|
|
1745
|
+
MatPseudoCheckbox.ctorParameters = function () { return [
|
|
1746
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1747
|
+
]; };
|
|
1748
|
+
MatPseudoCheckbox.propDecorators = {
|
|
1749
|
+
state: [{ type: i0.Input }],
|
|
1750
|
+
disabled: [{ type: i0.Input }]
|
|
1751
|
+
};
|
|
1700
1752
|
|
|
1701
1753
|
/**
|
|
1702
1754
|
* @license
|
|
@@ -1708,22 +1760,15 @@
|
|
|
1708
1760
|
var MatPseudoCheckboxModule = /** @class */ (function () {
|
|
1709
1761
|
function MatPseudoCheckboxModule() {
|
|
1710
1762
|
}
|
|
1711
|
-
MatPseudoCheckboxModule.decorators = [
|
|
1712
|
-
{ type: i0.NgModule, args: [{
|
|
1713
|
-
exports: [MatPseudoCheckbox],
|
|
1714
|
-
declarations: [MatPseudoCheckbox]
|
|
1715
|
-
},] }
|
|
1716
|
-
];
|
|
1717
1763
|
return MatPseudoCheckboxModule;
|
|
1718
1764
|
}());
|
|
1765
|
+
MatPseudoCheckboxModule.decorators = [
|
|
1766
|
+
{ type: i0.NgModule, args: [{
|
|
1767
|
+
exports: [MatPseudoCheckbox],
|
|
1768
|
+
declarations: [MatPseudoCheckbox]
|
|
1769
|
+
},] }
|
|
1770
|
+
];
|
|
1719
1771
|
|
|
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
1772
|
// Boilerplate for applying mixins to MatOptgroup.
|
|
1728
1773
|
/** @docs-private */
|
|
1729
1774
|
var MatOptgroupBase = /** @class */ (function () {
|
|
@@ -1734,6 +1779,22 @@
|
|
|
1734
1779
|
var _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase);
|
|
1735
1780
|
// Counter for unique group ids.
|
|
1736
1781
|
var _uniqueOptgroupIdCounter = 0;
|
|
1782
|
+
var _MatOptgroupBase = /** @class */ (function (_super) {
|
|
1783
|
+
__extends(_MatOptgroupBase, _super);
|
|
1784
|
+
function _MatOptgroupBase() {
|
|
1785
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1786
|
+
/** Unique id for the underlying label. */
|
|
1787
|
+
_this._labelId = "mat-optgroup-label-" + _uniqueOptgroupIdCounter++;
|
|
1788
|
+
return _this;
|
|
1789
|
+
}
|
|
1790
|
+
return _MatOptgroupBase;
|
|
1791
|
+
}(_MatOptgroupMixinBase));
|
|
1792
|
+
_MatOptgroupBase.decorators = [
|
|
1793
|
+
{ type: i0.Directive }
|
|
1794
|
+
];
|
|
1795
|
+
_MatOptgroupBase.propDecorators = {
|
|
1796
|
+
label: [{ type: i0.Input }]
|
|
1797
|
+
};
|
|
1737
1798
|
/**
|
|
1738
1799
|
* Injection token that can be used to reference instances of `MatOptgroup`. It serves as
|
|
1739
1800
|
* alternative token to the actual `MatOptgroup` class which could cause unnecessary
|
|
@@ -1746,43 +1807,30 @@
|
|
|
1746
1807
|
var MatOptgroup = /** @class */ (function (_super) {
|
|
1747
1808
|
__extends(MatOptgroup, _super);
|
|
1748
1809
|
function MatOptgroup() {
|
|
1749
|
-
|
|
1750
|
-
/** Unique id for the underlying label. */
|
|
1751
|
-
_this._labelId = "mat-optgroup-label-" + _uniqueOptgroupIdCounter++;
|
|
1752
|
-
return _this;
|
|
1810
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1753
1811
|
}
|
|
1754
|
-
MatOptgroup.decorators = [
|
|
1755
|
-
{ type: i0.Component, args: [{
|
|
1756
|
-
selector: 'mat-optgroup',
|
|
1757
|
-
exportAs: 'matOptgroup',
|
|
1758
|
-
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",
|
|
1759
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1760
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1761
|
-
inputs: ['disabled'],
|
|
1762
|
-
host: {
|
|
1763
|
-
'class': 'mat-optgroup',
|
|
1764
|
-
'role': 'group',
|
|
1765
|
-
'[class.mat-optgroup-disabled]': 'disabled',
|
|
1766
|
-
'[attr.aria-disabled]': 'disabled.toString()',
|
|
1767
|
-
'[attr.aria-labelledby]': '_labelId',
|
|
1768
|
-
},
|
|
1769
|
-
providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }],
|
|
1770
|
-
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"]
|
|
1771
|
-
},] }
|
|
1772
|
-
];
|
|
1773
|
-
MatOptgroup.propDecorators = {
|
|
1774
|
-
label: [{ type: i0.Input }]
|
|
1775
|
-
};
|
|
1776
1812
|
return MatOptgroup;
|
|
1777
|
-
}(
|
|
1813
|
+
}(_MatOptgroupBase));
|
|
1814
|
+
MatOptgroup.decorators = [
|
|
1815
|
+
{ type: i0.Component, args: [{
|
|
1816
|
+
selector: 'mat-optgroup',
|
|
1817
|
+
exportAs: 'matOptgroup',
|
|
1818
|
+
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",
|
|
1819
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1820
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1821
|
+
inputs: ['disabled'],
|
|
1822
|
+
host: {
|
|
1823
|
+
'class': 'mat-optgroup',
|
|
1824
|
+
'role': 'group',
|
|
1825
|
+
'[class.mat-optgroup-disabled]': 'disabled',
|
|
1826
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
1827
|
+
'[attr.aria-labelledby]': '_labelId',
|
|
1828
|
+
},
|
|
1829
|
+
providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }],
|
|
1830
|
+
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"]
|
|
1831
|
+
},] }
|
|
1832
|
+
];
|
|
1778
1833
|
|
|
1779
|
-
/**
|
|
1780
|
-
* @license
|
|
1781
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1782
|
-
*
|
|
1783
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1784
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1785
|
-
*/
|
|
1786
1834
|
/**
|
|
1787
1835
|
* Option IDs need to be unique across components, so this counter exists outside of
|
|
1788
1836
|
* the component definition.
|
|
@@ -1805,11 +1853,8 @@
|
|
|
1805
1853
|
* Injection token used to provide the parent component to options.
|
|
1806
1854
|
*/
|
|
1807
1855
|
var MAT_OPTION_PARENT_COMPONENT = new i0.InjectionToken('MAT_OPTION_PARENT_COMPONENT');
|
|
1808
|
-
/**
|
|
1809
|
-
|
|
1810
|
-
*/
|
|
1811
|
-
var MatOption = /** @class */ (function () {
|
|
1812
|
-
function MatOption(_element, _changeDetectorRef, _parent, group) {
|
|
1856
|
+
var _MatOptionBase = /** @class */ (function () {
|
|
1857
|
+
function _MatOptionBase(_element, _changeDetectorRef, _parent, group) {
|
|
1813
1858
|
this._element = _element;
|
|
1814
1859
|
this._changeDetectorRef = _changeDetectorRef;
|
|
1815
1860
|
this._parent = _parent;
|
|
@@ -1826,32 +1871,32 @@
|
|
|
1826
1871
|
/** Emits when the state of the option changes and any parents have to be notified. */
|
|
1827
1872
|
this._stateChanges = new rxjs.Subject();
|
|
1828
1873
|
}
|
|
1829
|
-
Object.defineProperty(
|
|
1874
|
+
Object.defineProperty(_MatOptionBase.prototype, "multiple", {
|
|
1830
1875
|
/** Whether the wrapping component is in multiple selection mode. */
|
|
1831
1876
|
get: function () { return this._parent && this._parent.multiple; },
|
|
1832
1877
|
enumerable: false,
|
|
1833
1878
|
configurable: true
|
|
1834
1879
|
});
|
|
1835
|
-
Object.defineProperty(
|
|
1880
|
+
Object.defineProperty(_MatOptionBase.prototype, "selected", {
|
|
1836
1881
|
/** Whether or not the option is currently selected. */
|
|
1837
1882
|
get: function () { return this._selected; },
|
|
1838
1883
|
enumerable: false,
|
|
1839
1884
|
configurable: true
|
|
1840
1885
|
});
|
|
1841
|
-
Object.defineProperty(
|
|
1886
|
+
Object.defineProperty(_MatOptionBase.prototype, "disabled", {
|
|
1842
1887
|
/** Whether the option is disabled. */
|
|
1843
1888
|
get: function () { return (this.group && this.group.disabled) || this._disabled; },
|
|
1844
1889
|
set: function (value) { this._disabled = coercion.coerceBooleanProperty(value); },
|
|
1845
1890
|
enumerable: false,
|
|
1846
1891
|
configurable: true
|
|
1847
1892
|
});
|
|
1848
|
-
Object.defineProperty(
|
|
1893
|
+
Object.defineProperty(_MatOptionBase.prototype, "disableRipple", {
|
|
1849
1894
|
/** Whether ripples for the option are disabled. */
|
|
1850
1895
|
get: function () { return this._parent && this._parent.disableRipple; },
|
|
1851
1896
|
enumerable: false,
|
|
1852
1897
|
configurable: true
|
|
1853
1898
|
});
|
|
1854
|
-
Object.defineProperty(
|
|
1899
|
+
Object.defineProperty(_MatOptionBase.prototype, "active", {
|
|
1855
1900
|
/**
|
|
1856
1901
|
* Whether or not the option is currently active and ready to be selected.
|
|
1857
1902
|
* An active option displays styles as if it is focused, but the
|
|
@@ -1864,7 +1909,7 @@
|
|
|
1864
1909
|
enumerable: false,
|
|
1865
1910
|
configurable: true
|
|
1866
1911
|
});
|
|
1867
|
-
Object.defineProperty(
|
|
1912
|
+
Object.defineProperty(_MatOptionBase.prototype, "viewValue", {
|
|
1868
1913
|
/**
|
|
1869
1914
|
* The displayed value of the option. It is necessary to show the selected option in the
|
|
1870
1915
|
* select's trigger.
|
|
@@ -1877,7 +1922,7 @@
|
|
|
1877
1922
|
configurable: true
|
|
1878
1923
|
});
|
|
1879
1924
|
/** Selects the option. */
|
|
1880
|
-
|
|
1925
|
+
_MatOptionBase.prototype.select = function () {
|
|
1881
1926
|
if (!this._selected) {
|
|
1882
1927
|
this._selected = true;
|
|
1883
1928
|
this._changeDetectorRef.markForCheck();
|
|
@@ -1885,7 +1930,7 @@
|
|
|
1885
1930
|
}
|
|
1886
1931
|
};
|
|
1887
1932
|
/** Deselects the option. */
|
|
1888
|
-
|
|
1933
|
+
_MatOptionBase.prototype.deselect = function () {
|
|
1889
1934
|
if (this._selected) {
|
|
1890
1935
|
this._selected = false;
|
|
1891
1936
|
this._changeDetectorRef.markForCheck();
|
|
@@ -1893,7 +1938,7 @@
|
|
|
1893
1938
|
}
|
|
1894
1939
|
};
|
|
1895
1940
|
/** Sets focus onto this option. */
|
|
1896
|
-
|
|
1941
|
+
_MatOptionBase.prototype.focus = function (_origin, options) {
|
|
1897
1942
|
// Note that we aren't using `_origin`, but we need to keep it because some internal consumers
|
|
1898
1943
|
// use `MatOption` in a `FocusKeyManager` and we need it to match `FocusableOption`.
|
|
1899
1944
|
var element = this._getHostElement();
|
|
@@ -1906,7 +1951,7 @@
|
|
|
1906
1951
|
* active. This is used by the ActiveDescendantKeyManager so key
|
|
1907
1952
|
* events will display the proper options as active on arrow key events.
|
|
1908
1953
|
*/
|
|
1909
|
-
|
|
1954
|
+
_MatOptionBase.prototype.setActiveStyles = function () {
|
|
1910
1955
|
if (!this._active) {
|
|
1911
1956
|
this._active = true;
|
|
1912
1957
|
this._changeDetectorRef.markForCheck();
|
|
@@ -1917,18 +1962,18 @@
|
|
|
1917
1962
|
* active. This is used by the ActiveDescendantKeyManager so key
|
|
1918
1963
|
* events will display the proper options as active on arrow key events.
|
|
1919
1964
|
*/
|
|
1920
|
-
|
|
1965
|
+
_MatOptionBase.prototype.setInactiveStyles = function () {
|
|
1921
1966
|
if (this._active) {
|
|
1922
1967
|
this._active = false;
|
|
1923
1968
|
this._changeDetectorRef.markForCheck();
|
|
1924
1969
|
}
|
|
1925
1970
|
};
|
|
1926
1971
|
/** Gets the label to be used when determining whether the option should be focused. */
|
|
1927
|
-
|
|
1972
|
+
_MatOptionBase.prototype.getLabel = function () {
|
|
1928
1973
|
return this.viewValue;
|
|
1929
1974
|
};
|
|
1930
1975
|
/** Ensures the option is selected when activated from the keyboard. */
|
|
1931
|
-
|
|
1976
|
+
_MatOptionBase.prototype._handleKeydown = function (event) {
|
|
1932
1977
|
if ((event.keyCode === keycodes.ENTER || event.keyCode === keycodes.SPACE) && !keycodes.hasModifierKey(event)) {
|
|
1933
1978
|
this._selectViaInteraction();
|
|
1934
1979
|
// Prevent the page from scrolling down and form submits.
|
|
@@ -1939,7 +1984,7 @@
|
|
|
1939
1984
|
* `Selects the option while indicating the selection came from the user. Used to
|
|
1940
1985
|
* determine if the select's view -> model callback should be invoked.`
|
|
1941
1986
|
*/
|
|
1942
|
-
|
|
1987
|
+
_MatOptionBase.prototype._selectViaInteraction = function () {
|
|
1943
1988
|
if (!this.disabled) {
|
|
1944
1989
|
this._selected = this.multiple ? !this._selected : true;
|
|
1945
1990
|
this._changeDetectorRef.markForCheck();
|
|
@@ -1952,18 +1997,18 @@
|
|
|
1952
1997
|
* attributes adds a significant amount of noise to screen-reader users without providing useful
|
|
1953
1998
|
* information.
|
|
1954
1999
|
*/
|
|
1955
|
-
|
|
2000
|
+
_MatOptionBase.prototype._getAriaSelected = function () {
|
|
1956
2001
|
return this.selected || (this.multiple ? false : null);
|
|
1957
2002
|
};
|
|
1958
2003
|
/** Returns the correct tabindex for the option depending on disabled state. */
|
|
1959
|
-
|
|
2004
|
+
_MatOptionBase.prototype._getTabIndex = function () {
|
|
1960
2005
|
return this.disabled ? '-1' : '0';
|
|
1961
2006
|
};
|
|
1962
2007
|
/** Gets the host DOM element. */
|
|
1963
|
-
|
|
2008
|
+
_MatOptionBase.prototype._getHostElement = function () {
|
|
1964
2009
|
return this._element.nativeElement;
|
|
1965
2010
|
};
|
|
1966
|
-
|
|
2011
|
+
_MatOptionBase.prototype.ngAfterViewChecked = function () {
|
|
1967
2012
|
// Since parent components could be using the option's label to display the selected values
|
|
1968
2013
|
// (e.g. `mat-select`) and they don't have a way of knowing if the option's label has changed
|
|
1969
2014
|
// we have to check for changes in the DOM ourselves and dispatch an event. These checks are
|
|
@@ -1977,52 +2022,71 @@
|
|
|
1977
2022
|
}
|
|
1978
2023
|
}
|
|
1979
2024
|
};
|
|
1980
|
-
|
|
2025
|
+
_MatOptionBase.prototype.ngOnDestroy = function () {
|
|
1981
2026
|
this._stateChanges.complete();
|
|
1982
2027
|
};
|
|
1983
2028
|
/** Emits the selection change event. */
|
|
1984
|
-
|
|
2029
|
+
_MatOptionBase.prototype._emitSelectionChangeEvent = function (isUserInput) {
|
|
1985
2030
|
if (isUserInput === void 0) { isUserInput = false; }
|
|
1986
2031
|
this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));
|
|
1987
2032
|
};
|
|
1988
|
-
|
|
1989
|
-
{ type: i0.Component, args: [{
|
|
1990
|
-
selector: 'mat-option',
|
|
1991
|
-
exportAs: 'matOption',
|
|
1992
|
-
host: {
|
|
1993
|
-
'role': 'option',
|
|
1994
|
-
'[attr.tabindex]': '_getTabIndex()',
|
|
1995
|
-
'[class.mat-selected]': 'selected',
|
|
1996
|
-
'[class.mat-option-multiple]': 'multiple',
|
|
1997
|
-
'[class.mat-active]': 'active',
|
|
1998
|
-
'[id]': 'id',
|
|
1999
|
-
'[attr.aria-selected]': '_getAriaSelected()',
|
|
2000
|
-
'[attr.aria-disabled]': 'disabled.toString()',
|
|
2001
|
-
'[class.mat-option-disabled]': 'disabled',
|
|
2002
|
-
'(click)': '_selectViaInteraction()',
|
|
2003
|
-
'(keydown)': '_handleKeydown($event)',
|
|
2004
|
-
'class': 'mat-option mat-focus-indicator',
|
|
2005
|
-
},
|
|
2006
|
-
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",
|
|
2007
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
2008
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2009
|
-
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"]
|
|
2010
|
-
},] }
|
|
2011
|
-
];
|
|
2012
|
-
MatOption.ctorParameters = function () { return [
|
|
2013
|
-
{ type: i0.ElementRef },
|
|
2014
|
-
{ type: i0.ChangeDetectorRef },
|
|
2015
|
-
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_OPTION_PARENT_COMPONENT,] }] },
|
|
2016
|
-
{ type: MatOptgroup, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_OPTGROUP,] }] }
|
|
2017
|
-
]; };
|
|
2018
|
-
MatOption.propDecorators = {
|
|
2019
|
-
value: [{ type: i0.Input }],
|
|
2020
|
-
id: [{ type: i0.Input }],
|
|
2021
|
-
disabled: [{ type: i0.Input }],
|
|
2022
|
-
onSelectionChange: [{ type: i0.Output }]
|
|
2023
|
-
};
|
|
2024
|
-
return MatOption;
|
|
2033
|
+
return _MatOptionBase;
|
|
2025
2034
|
}());
|
|
2035
|
+
_MatOptionBase.decorators = [
|
|
2036
|
+
{ type: i0.Directive }
|
|
2037
|
+
];
|
|
2038
|
+
_MatOptionBase.ctorParameters = function () { return [
|
|
2039
|
+
{ type: i0.ElementRef },
|
|
2040
|
+
{ type: i0.ChangeDetectorRef },
|
|
2041
|
+
{ type: undefined },
|
|
2042
|
+
{ type: _MatOptgroupBase }
|
|
2043
|
+
]; };
|
|
2044
|
+
_MatOptionBase.propDecorators = {
|
|
2045
|
+
value: [{ type: i0.Input }],
|
|
2046
|
+
id: [{ type: i0.Input }],
|
|
2047
|
+
disabled: [{ type: i0.Input }],
|
|
2048
|
+
onSelectionChange: [{ type: i0.Output }]
|
|
2049
|
+
};
|
|
2050
|
+
/**
|
|
2051
|
+
* Single option inside of a `<mat-select>` element.
|
|
2052
|
+
*/
|
|
2053
|
+
var MatOption = /** @class */ (function (_super) {
|
|
2054
|
+
__extends(MatOption, _super);
|
|
2055
|
+
function MatOption(element, changeDetectorRef, parent, group) {
|
|
2056
|
+
return _super.call(this, element, changeDetectorRef, parent, group) || this;
|
|
2057
|
+
}
|
|
2058
|
+
return MatOption;
|
|
2059
|
+
}(_MatOptionBase));
|
|
2060
|
+
MatOption.decorators = [
|
|
2061
|
+
{ type: i0.Component, args: [{
|
|
2062
|
+
selector: 'mat-option',
|
|
2063
|
+
exportAs: 'matOption',
|
|
2064
|
+
host: {
|
|
2065
|
+
'role': 'option',
|
|
2066
|
+
'[attr.tabindex]': '_getTabIndex()',
|
|
2067
|
+
'[class.mat-selected]': 'selected',
|
|
2068
|
+
'[class.mat-option-multiple]': 'multiple',
|
|
2069
|
+
'[class.mat-active]': 'active',
|
|
2070
|
+
'[id]': 'id',
|
|
2071
|
+
'[attr.aria-selected]': '_getAriaSelected()',
|
|
2072
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
2073
|
+
'[class.mat-option-disabled]': 'disabled',
|
|
2074
|
+
'(click)': '_selectViaInteraction()',
|
|
2075
|
+
'(keydown)': '_handleKeydown($event)',
|
|
2076
|
+
'class': 'mat-option mat-focus-indicator',
|
|
2077
|
+
},
|
|
2078
|
+
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",
|
|
2079
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
2080
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2081
|
+
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"]
|
|
2082
|
+
},] }
|
|
2083
|
+
];
|
|
2084
|
+
MatOption.ctorParameters = function () { return [
|
|
2085
|
+
{ type: i0.ElementRef },
|
|
2086
|
+
{ type: i0.ChangeDetectorRef },
|
|
2087
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_OPTION_PARENT_COMPONENT,] }] },
|
|
2088
|
+
{ type: MatOptgroup, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MAT_OPTGROUP,] }] }
|
|
2089
|
+
]; };
|
|
2026
2090
|
/**
|
|
2027
2091
|
* Counts the amount of option group labels that precede the specified option.
|
|
2028
2092
|
* @param optionIndex Index of the option at which to start counting.
|
|
@@ -2046,14 +2110,13 @@
|
|
|
2046
2110
|
}
|
|
2047
2111
|
/**
|
|
2048
2112
|
* Determines the position to which to scroll a panel in order for an option to be into view.
|
|
2049
|
-
* @param
|
|
2113
|
+
* @param optionOffset Offset of the option from the top of the panel.
|
|
2050
2114
|
* @param optionHeight Height of the options.
|
|
2051
2115
|
* @param currentScrollPosition Current scroll position of the panel.
|
|
2052
2116
|
* @param panelHeight Height of the panel.
|
|
2053
2117
|
* @docs-private
|
|
2054
2118
|
*/
|
|
2055
|
-
function _getOptionScrollPosition(
|
|
2056
|
-
var optionOffset = optionIndex * optionHeight;
|
|
2119
|
+
function _getOptionScrollPosition(optionOffset, optionHeight, currentScrollPosition, panelHeight) {
|
|
2057
2120
|
if (optionOffset < currentScrollPosition) {
|
|
2058
2121
|
return optionOffset;
|
|
2059
2122
|
}
|
|
@@ -2073,15 +2136,15 @@
|
|
|
2073
2136
|
var MatOptionModule = /** @class */ (function () {
|
|
2074
2137
|
function MatOptionModule() {
|
|
2075
2138
|
}
|
|
2076
|
-
MatOptionModule.decorators = [
|
|
2077
|
-
{ type: i0.NgModule, args: [{
|
|
2078
|
-
imports: [MatRippleModule, common.CommonModule, MatPseudoCheckboxModule],
|
|
2079
|
-
exports: [MatOption, MatOptgroup],
|
|
2080
|
-
declarations: [MatOption, MatOptgroup]
|
|
2081
|
-
},] }
|
|
2082
|
-
];
|
|
2083
2139
|
return MatOptionModule;
|
|
2084
2140
|
}());
|
|
2141
|
+
MatOptionModule.decorators = [
|
|
2142
|
+
{ type: i0.NgModule, args: [{
|
|
2143
|
+
imports: [MatRippleModule, common.CommonModule, MatPseudoCheckboxModule],
|
|
2144
|
+
exports: [MatOption, MatOptgroup],
|
|
2145
|
+
declarations: [MatOption, MatOptgroup]
|
|
2146
|
+
},] }
|
|
2147
|
+
];
|
|
2085
2148
|
|
|
2086
2149
|
/**
|
|
2087
2150
|
* @license
|
|
@@ -2170,6 +2233,8 @@
|
|
|
2170
2233
|
exports.SEP = SEP;
|
|
2171
2234
|
exports.ShowOnDirtyErrorStateMatcher = ShowOnDirtyErrorStateMatcher;
|
|
2172
2235
|
exports.VERSION = VERSION;
|
|
2236
|
+
exports._MatOptgroupBase = _MatOptgroupBase;
|
|
2237
|
+
exports._MatOptionBase = _MatOptionBase;
|
|
2173
2238
|
exports._countGroupLabelsBeforeOption = _countGroupLabelsBeforeOption;
|
|
2174
2239
|
exports._getOptionScrollPosition = _getOptionScrollPosition;
|
|
2175
2240
|
exports.defaultRippleAnimationConfig = defaultRippleAnimationConfig;
|