@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
|
@@ -73,250 +73,323 @@
|
|
|
73
73
|
inkBar.style.left = positions.left;
|
|
74
74
|
inkBar.style.width = positions.width;
|
|
75
75
|
};
|
|
76
|
-
MatInkBar.decorators = [
|
|
77
|
-
{ type: core.Directive, args: [{
|
|
78
|
-
selector: 'mat-ink-bar',
|
|
79
|
-
host: {
|
|
80
|
-
'class': 'mat-ink-bar',
|
|
81
|
-
'[class._mat-animation-noopable]': "_animationMode === 'NoopAnimations'",
|
|
82
|
-
},
|
|
83
|
-
},] }
|
|
84
|
-
];
|
|
85
|
-
MatInkBar.ctorParameters = function () { return [
|
|
86
|
-
{ type: core.ElementRef },
|
|
87
|
-
{ type: core.NgZone },
|
|
88
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [_MAT_INK_BAR_POSITIONER,] }] },
|
|
89
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
90
|
-
]; };
|
|
91
76
|
return MatInkBar;
|
|
92
77
|
}());
|
|
78
|
+
MatInkBar.decorators = [
|
|
79
|
+
{ type: core.Directive, args: [{
|
|
80
|
+
selector: 'mat-ink-bar',
|
|
81
|
+
host: {
|
|
82
|
+
'class': 'mat-ink-bar',
|
|
83
|
+
'[class._mat-animation-noopable]': "_animationMode === 'NoopAnimations'",
|
|
84
|
+
},
|
|
85
|
+
},] }
|
|
86
|
+
];
|
|
87
|
+
MatInkBar.ctorParameters = function () { return [
|
|
88
|
+
{ type: core.ElementRef },
|
|
89
|
+
{ type: core.NgZone },
|
|
90
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [_MAT_INK_BAR_POSITIONER,] }] },
|
|
91
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
92
|
+
]; };
|
|
93
93
|
|
|
94
|
-
/*! *****************************************************************************
|
|
95
|
-
Copyright (c) Microsoft Corporation.
|
|
96
|
-
|
|
97
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
98
|
-
purpose with or without fee is hereby granted.
|
|
99
|
-
|
|
100
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
101
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
102
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
103
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
104
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
105
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
106
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
107
|
-
***************************************************************************** */
|
|
108
|
-
/* global Reflect, Promise */
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
function __extends(d, b) {
|
|
118
|
-
extendStatics(d, b);
|
|
119
|
-
function __() { this.constructor = d; }
|
|
120
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
function __rest(s, e) {
|
|
135
|
-
var t = {};
|
|
136
|
-
for (var p in s)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
function __decorate(decorators, target, key, desc) {
|
|
147
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
148
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
function
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
-
function
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
94
|
+
/*! *****************************************************************************
|
|
95
|
+
Copyright (c) Microsoft Corporation.
|
|
96
|
+
|
|
97
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
98
|
+
purpose with or without fee is hereby granted.
|
|
99
|
+
|
|
100
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
101
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
102
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
103
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
104
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
105
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
106
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
107
|
+
***************************************************************************** */
|
|
108
|
+
/* global Reflect, Promise */
|
|
109
|
+
var extendStatics = function (d, b) {
|
|
110
|
+
extendStatics = Object.setPrototypeOf ||
|
|
111
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
112
|
+
function (d, b) { for (var p in b)
|
|
113
|
+
if (b.hasOwnProperty(p))
|
|
114
|
+
d[p] = b[p]; };
|
|
115
|
+
return extendStatics(d, b);
|
|
116
|
+
};
|
|
117
|
+
function __extends(d, b) {
|
|
118
|
+
extendStatics(d, b);
|
|
119
|
+
function __() { this.constructor = d; }
|
|
120
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
121
|
+
}
|
|
122
|
+
var __assign = function () {
|
|
123
|
+
__assign = Object.assign || function __assign(t) {
|
|
124
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
125
|
+
s = arguments[i];
|
|
126
|
+
for (var p in s)
|
|
127
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
128
|
+
t[p] = s[p];
|
|
129
|
+
}
|
|
130
|
+
return t;
|
|
131
|
+
};
|
|
132
|
+
return __assign.apply(this, arguments);
|
|
133
|
+
};
|
|
134
|
+
function __rest(s, e) {
|
|
135
|
+
var t = {};
|
|
136
|
+
for (var p in s)
|
|
137
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
138
|
+
t[p] = s[p];
|
|
139
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
140
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
141
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
142
|
+
t[p[i]] = s[p[i]];
|
|
143
|
+
}
|
|
144
|
+
return t;
|
|
145
|
+
}
|
|
146
|
+
function __decorate(decorators, target, key, desc) {
|
|
147
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
148
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
149
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
150
|
+
else
|
|
151
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
152
|
+
if (d = decorators[i])
|
|
153
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
154
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
155
|
+
}
|
|
156
|
+
function __param(paramIndex, decorator) {
|
|
157
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
158
|
+
}
|
|
159
|
+
function __metadata(metadataKey, metadataValue) {
|
|
160
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
161
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
162
|
+
}
|
|
163
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
164
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
165
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
166
|
+
function fulfilled(value) { try {
|
|
167
|
+
step(generator.next(value));
|
|
168
|
+
}
|
|
169
|
+
catch (e) {
|
|
170
|
+
reject(e);
|
|
171
|
+
} }
|
|
172
|
+
function rejected(value) { try {
|
|
173
|
+
step(generator["throw"](value));
|
|
174
|
+
}
|
|
175
|
+
catch (e) {
|
|
176
|
+
reject(e);
|
|
177
|
+
} }
|
|
178
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
179
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function __generator(thisArg, body) {
|
|
183
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
184
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
185
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
186
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
187
|
+
function step(op) {
|
|
188
|
+
if (f)
|
|
189
|
+
throw new TypeError("Generator is already executing.");
|
|
190
|
+
while (_)
|
|
191
|
+
try {
|
|
192
|
+
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)
|
|
193
|
+
return t;
|
|
194
|
+
if (y = 0, t)
|
|
195
|
+
op = [op[0] & 2, t.value];
|
|
196
|
+
switch (op[0]) {
|
|
197
|
+
case 0:
|
|
198
|
+
case 1:
|
|
199
|
+
t = op;
|
|
200
|
+
break;
|
|
201
|
+
case 4:
|
|
202
|
+
_.label++;
|
|
203
|
+
return { value: op[1], done: false };
|
|
204
|
+
case 5:
|
|
205
|
+
_.label++;
|
|
206
|
+
y = op[1];
|
|
207
|
+
op = [0];
|
|
208
|
+
continue;
|
|
209
|
+
case 7:
|
|
210
|
+
op = _.ops.pop();
|
|
211
|
+
_.trys.pop();
|
|
212
|
+
continue;
|
|
213
|
+
default:
|
|
214
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
215
|
+
_ = 0;
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
219
|
+
_.label = op[1];
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
223
|
+
_.label = t[1];
|
|
224
|
+
t = op;
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
if (t && _.label < t[2]) {
|
|
228
|
+
_.label = t[2];
|
|
229
|
+
_.ops.push(op);
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
if (t[2])
|
|
233
|
+
_.ops.pop();
|
|
234
|
+
_.trys.pop();
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
op = body.call(thisArg, _);
|
|
238
|
+
}
|
|
239
|
+
catch (e) {
|
|
240
|
+
op = [6, e];
|
|
241
|
+
y = 0;
|
|
242
|
+
}
|
|
243
|
+
finally {
|
|
244
|
+
f = t = 0;
|
|
245
|
+
}
|
|
246
|
+
if (op[0] & 5)
|
|
247
|
+
throw op[1];
|
|
248
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
252
|
+
if (k2 === undefined)
|
|
253
|
+
k2 = k;
|
|
254
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
255
|
+
}) : (function (o, m, k, k2) {
|
|
256
|
+
if (k2 === undefined)
|
|
257
|
+
k2 = k;
|
|
258
|
+
o[k2] = m[k];
|
|
259
|
+
});
|
|
260
|
+
function __exportStar(m, exports) {
|
|
261
|
+
for (var p in m)
|
|
262
|
+
if (p !== "default" && !exports.hasOwnProperty(p))
|
|
263
|
+
__createBinding(exports, m, p);
|
|
264
|
+
}
|
|
265
|
+
function __values(o) {
|
|
266
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
267
|
+
if (m)
|
|
268
|
+
return m.call(o);
|
|
269
|
+
if (o && typeof o.length === "number")
|
|
270
|
+
return {
|
|
271
|
+
next: function () {
|
|
272
|
+
if (o && i >= o.length)
|
|
273
|
+
o = void 0;
|
|
274
|
+
return { value: o && o[i++], done: !o };
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
278
|
+
}
|
|
279
|
+
function __read(o, n) {
|
|
280
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
281
|
+
if (!m)
|
|
282
|
+
return o;
|
|
283
|
+
var i = m.call(o), r, ar = [], e;
|
|
284
|
+
try {
|
|
285
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
286
|
+
ar.push(r.value);
|
|
287
|
+
}
|
|
288
|
+
catch (error) {
|
|
289
|
+
e = { error: error };
|
|
290
|
+
}
|
|
291
|
+
finally {
|
|
292
|
+
try {
|
|
293
|
+
if (r && !r.done && (m = i["return"]))
|
|
294
|
+
m.call(i);
|
|
295
|
+
}
|
|
296
|
+
finally {
|
|
297
|
+
if (e)
|
|
298
|
+
throw e.error;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return ar;
|
|
302
|
+
}
|
|
303
|
+
function __spread() {
|
|
304
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
305
|
+
ar = ar.concat(__read(arguments[i]));
|
|
306
|
+
return ar;
|
|
307
|
+
}
|
|
308
|
+
function __spreadArrays() {
|
|
309
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
310
|
+
s += arguments[i].length;
|
|
311
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
312
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
313
|
+
r[k] = a[j];
|
|
314
|
+
return r;
|
|
315
|
+
}
|
|
316
|
+
;
|
|
317
|
+
function __await(v) {
|
|
318
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
319
|
+
}
|
|
320
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
321
|
+
if (!Symbol.asyncIterator)
|
|
322
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
323
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
324
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
325
|
+
function verb(n) { if (g[n])
|
|
326
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
327
|
+
function resume(n, v) { try {
|
|
328
|
+
step(g[n](v));
|
|
329
|
+
}
|
|
330
|
+
catch (e) {
|
|
331
|
+
settle(q[0][3], e);
|
|
332
|
+
} }
|
|
333
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
334
|
+
function fulfill(value) { resume("next", value); }
|
|
335
|
+
function reject(value) { resume("throw", value); }
|
|
336
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
337
|
+
resume(q[0][0], q[0][1]); }
|
|
338
|
+
}
|
|
339
|
+
function __asyncDelegator(o) {
|
|
340
|
+
var i, p;
|
|
341
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
342
|
+
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; }
|
|
343
|
+
}
|
|
344
|
+
function __asyncValues(o) {
|
|
345
|
+
if (!Symbol.asyncIterator)
|
|
346
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
347
|
+
var m = o[Symbol.asyncIterator], i;
|
|
348
|
+
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);
|
|
349
|
+
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); }); }; }
|
|
350
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
351
|
+
}
|
|
352
|
+
function __makeTemplateObject(cooked, raw) {
|
|
353
|
+
if (Object.defineProperty) {
|
|
354
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
cooked.raw = raw;
|
|
358
|
+
}
|
|
359
|
+
return cooked;
|
|
360
|
+
}
|
|
361
|
+
;
|
|
362
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
363
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
364
|
+
}) : function (o, v) {
|
|
365
|
+
o["default"] = v;
|
|
366
|
+
};
|
|
367
|
+
function __importStar(mod) {
|
|
368
|
+
if (mod && mod.__esModule)
|
|
369
|
+
return mod;
|
|
370
|
+
var result = {};
|
|
371
|
+
if (mod != null)
|
|
372
|
+
for (var k in mod)
|
|
373
|
+
if (Object.hasOwnProperty.call(mod, k))
|
|
374
|
+
__createBinding(result, mod, k);
|
|
375
|
+
__setModuleDefault(result, mod);
|
|
376
|
+
return result;
|
|
377
|
+
}
|
|
378
|
+
function __importDefault(mod) {
|
|
379
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
380
|
+
}
|
|
381
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
382
|
+
if (!privateMap.has(receiver)) {
|
|
383
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
384
|
+
}
|
|
385
|
+
return privateMap.get(receiver);
|
|
386
|
+
}
|
|
387
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
388
|
+
if (!privateMap.has(receiver)) {
|
|
389
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
390
|
+
}
|
|
391
|
+
privateMap.set(receiver, value);
|
|
392
|
+
return value;
|
|
320
393
|
}
|
|
321
394
|
|
|
322
395
|
/**
|
|
@@ -337,25 +410,18 @@
|
|
|
337
410
|
function MatTabContent(template) {
|
|
338
411
|
this.template = template;
|
|
339
412
|
}
|
|
340
|
-
MatTabContent.decorators = [
|
|
341
|
-
{ type: core.Directive, args: [{
|
|
342
|
-
selector: '[matTabContent]',
|
|
343
|
-
providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }],
|
|
344
|
-
},] }
|
|
345
|
-
];
|
|
346
|
-
MatTabContent.ctorParameters = function () { return [
|
|
347
|
-
{ type: core.TemplateRef }
|
|
348
|
-
]; };
|
|
349
413
|
return MatTabContent;
|
|
350
414
|
}());
|
|
415
|
+
MatTabContent.decorators = [
|
|
416
|
+
{ type: core.Directive, args: [{
|
|
417
|
+
selector: '[matTabContent]',
|
|
418
|
+
providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }],
|
|
419
|
+
},] }
|
|
420
|
+
];
|
|
421
|
+
MatTabContent.ctorParameters = function () { return [
|
|
422
|
+
{ type: core.TemplateRef }
|
|
423
|
+
]; };
|
|
351
424
|
|
|
352
|
-
/**
|
|
353
|
-
* @license
|
|
354
|
-
* Copyright Google LLC All Rights Reserved.
|
|
355
|
-
*
|
|
356
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
357
|
-
* found in the LICENSE file at https://angular.io/license
|
|
358
|
-
*/
|
|
359
425
|
/**
|
|
360
426
|
* Injection token that can be used to reference instances of `MatTabLabel`. It serves as
|
|
361
427
|
* alternative token to the actual `MatTabLabel` class which could cause unnecessary
|
|
@@ -368,22 +434,15 @@
|
|
|
368
434
|
function MatTabLabel() {
|
|
369
435
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
370
436
|
}
|
|
371
|
-
MatTabLabel.decorators = [
|
|
372
|
-
{ type: core.Directive, args: [{
|
|
373
|
-
selector: '[mat-tab-label], [matTabLabel]',
|
|
374
|
-
providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }],
|
|
375
|
-
},] }
|
|
376
|
-
];
|
|
377
437
|
return MatTabLabel;
|
|
378
438
|
}(portal.CdkPortal));
|
|
439
|
+
MatTabLabel.decorators = [
|
|
440
|
+
{ type: core.Directive, args: [{
|
|
441
|
+
selector: '[mat-tab-label], [matTabLabel]',
|
|
442
|
+
providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }],
|
|
443
|
+
},] }
|
|
444
|
+
];
|
|
379
445
|
|
|
380
|
-
/**
|
|
381
|
-
* @license
|
|
382
|
-
* Copyright Google LLC All Rights Reserved.
|
|
383
|
-
*
|
|
384
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
385
|
-
* found in the LICENSE file at https://angular.io/license
|
|
386
|
-
*/
|
|
387
446
|
// Boilerplate for applying mixins to MatTab.
|
|
388
447
|
/** @docs-private */
|
|
389
448
|
var MatTabBase = /** @class */ (function () {
|
|
@@ -434,15 +493,7 @@
|
|
|
434
493
|
// TODO: Remove cast once https://github.com/angular/angular/pull/37506 is available.
|
|
435
494
|
/** Content for the tab label given by `<ng-template mat-tab-label>`. */
|
|
436
495
|
get: function () { return this._templateLabel; },
|
|
437
|
-
set: function (value) {
|
|
438
|
-
// Only update the templateLabel via query if there is actually
|
|
439
|
-
// a MatTabLabel found. This works around an issue where a user may have
|
|
440
|
-
// manually set `templateLabel` during creation mode, which would then get clobbered
|
|
441
|
-
// by `undefined` when this query resolves.
|
|
442
|
-
if (value) {
|
|
443
|
-
this._templateLabel = value;
|
|
444
|
-
}
|
|
445
|
-
},
|
|
496
|
+
set: function (value) { this._setTemplateLabelInput(value); },
|
|
446
497
|
enumerable: false,
|
|
447
498
|
configurable: true
|
|
448
499
|
});
|
|
@@ -465,31 +516,46 @@
|
|
|
465
516
|
MatTab.prototype.ngOnInit = function () {
|
|
466
517
|
this._contentPortal = new portal.TemplatePortal(this._explicitContent || this._implicitContent, this._viewContainerRef);
|
|
467
518
|
};
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
]; };
|
|
483
|
-
MatTab.propDecorators = {
|
|
484
|
-
templateLabel: [{ type: core.ContentChild, args: [MAT_TAB_LABEL,] }],
|
|
485
|
-
_explicitContent: [{ type: core.ContentChild, args: [MAT_TAB_CONTENT, { read: core.TemplateRef, static: true },] }],
|
|
486
|
-
_implicitContent: [{ type: core.ViewChild, args: [core.TemplateRef, { static: true },] }],
|
|
487
|
-
textLabel: [{ type: core.Input, args: ['label',] }],
|
|
488
|
-
ariaLabel: [{ type: core.Input, args: ['aria-label',] }],
|
|
489
|
-
ariaLabelledby: [{ type: core.Input, args: ['aria-labelledby',] }]
|
|
519
|
+
/**
|
|
520
|
+
* This has been extracted to a util because of TS 4 and VE.
|
|
521
|
+
* View Engine doesn't support property rename inheritance.
|
|
522
|
+
* TS 4.0 doesn't allow properties to override accessors or vice-versa.
|
|
523
|
+
* @docs-private
|
|
524
|
+
*/
|
|
525
|
+
MatTab.prototype._setTemplateLabelInput = function (value) {
|
|
526
|
+
// Only update the templateLabel via query if there is actually
|
|
527
|
+
// a MatTabLabel found. This works around an issue where a user may have
|
|
528
|
+
// manually set `templateLabel` during creation mode, which would then get clobbered
|
|
529
|
+
// by `undefined` when this query resolves.
|
|
530
|
+
if (value) {
|
|
531
|
+
this._templateLabel = value;
|
|
532
|
+
}
|
|
490
533
|
};
|
|
491
534
|
return MatTab;
|
|
492
535
|
}(_MatTabMixinBase));
|
|
536
|
+
MatTab.decorators = [
|
|
537
|
+
{ type: core.Component, args: [{
|
|
538
|
+
selector: 'mat-tab',
|
|
539
|
+
template: "<!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\n TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\n tab-group. -->\n<ng-template><ng-content></ng-content></ng-template>\n",
|
|
540
|
+
inputs: ['disabled'],
|
|
541
|
+
// tslint:disable-next-line:validate-decorators
|
|
542
|
+
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
543
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
544
|
+
exportAs: 'matTab'
|
|
545
|
+
},] }
|
|
546
|
+
];
|
|
547
|
+
MatTab.ctorParameters = function () { return [
|
|
548
|
+
{ type: core.ViewContainerRef },
|
|
549
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [MAT_TAB_GROUP,] }] }
|
|
550
|
+
]; };
|
|
551
|
+
MatTab.propDecorators = {
|
|
552
|
+
templateLabel: [{ type: core.ContentChild, args: [MAT_TAB_LABEL,] }],
|
|
553
|
+
_explicitContent: [{ type: core.ContentChild, args: [MAT_TAB_CONTENT, { read: core.TemplateRef, static: true },] }],
|
|
554
|
+
_implicitContent: [{ type: core.ViewChild, args: [core.TemplateRef, { static: true },] }],
|
|
555
|
+
textLabel: [{ type: core.Input, args: ['label',] }],
|
|
556
|
+
ariaLabel: [{ type: core.Input, args: ['aria-label',] }],
|
|
557
|
+
ariaLabelledby: [{ type: core.Input, args: ['aria-labelledby',] }]
|
|
558
|
+
};
|
|
493
559
|
|
|
494
560
|
/**
|
|
495
561
|
* @license
|
|
@@ -525,13 +591,6 @@
|
|
|
525
591
|
])
|
|
526
592
|
};
|
|
527
593
|
|
|
528
|
-
/**
|
|
529
|
-
* @license
|
|
530
|
-
* Copyright Google LLC All Rights Reserved.
|
|
531
|
-
*
|
|
532
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
533
|
-
* found in the LICENSE file at https://angular.io/license
|
|
534
|
-
*/
|
|
535
594
|
/**
|
|
536
595
|
* The portal host directive for the contents of the tab.
|
|
537
596
|
* @docs-private
|
|
@@ -573,19 +632,19 @@
|
|
|
573
632
|
this._centeringSub.unsubscribe();
|
|
574
633
|
this._leavingSub.unsubscribe();
|
|
575
634
|
};
|
|
576
|
-
MatTabBodyPortal.decorators = [
|
|
577
|
-
{ type: core.Directive, args: [{
|
|
578
|
-
selector: '[matTabBodyHost]'
|
|
579
|
-
},] }
|
|
580
|
-
];
|
|
581
|
-
MatTabBodyPortal.ctorParameters = function () { return [
|
|
582
|
-
{ type: core.ComponentFactoryResolver },
|
|
583
|
-
{ type: core.ViewContainerRef },
|
|
584
|
-
{ type: MatTabBody, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return MatTabBody; }),] }] },
|
|
585
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
|
|
586
|
-
]; };
|
|
587
635
|
return MatTabBodyPortal;
|
|
588
636
|
}(portal.CdkPortalOutlet));
|
|
637
|
+
MatTabBodyPortal.decorators = [
|
|
638
|
+
{ type: core.Directive, args: [{
|
|
639
|
+
selector: '[matTabBodyHost]'
|
|
640
|
+
},] }
|
|
641
|
+
];
|
|
642
|
+
MatTabBodyPortal.ctorParameters = function () { return [
|
|
643
|
+
{ type: core.ComponentFactoryResolver },
|
|
644
|
+
{ type: core.ViewContainerRef },
|
|
645
|
+
{ type: MatTabBody, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return MatTabBody; }),] }] },
|
|
646
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
|
|
647
|
+
]; };
|
|
589
648
|
/**
|
|
590
649
|
* Base class with all of the `MatTabBody` functionality.
|
|
591
650
|
* @docs-private
|
|
@@ -694,26 +753,26 @@
|
|
|
694
753
|
}
|
|
695
754
|
return 'right-origin-center';
|
|
696
755
|
};
|
|
697
|
-
_MatTabBodyBase.decorators = [
|
|
698
|
-
{ type: core.Directive }
|
|
699
|
-
];
|
|
700
|
-
_MatTabBodyBase.ctorParameters = function () { return [
|
|
701
|
-
{ type: core.ElementRef },
|
|
702
|
-
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
703
|
-
{ type: core.ChangeDetectorRef }
|
|
704
|
-
]; };
|
|
705
|
-
_MatTabBodyBase.propDecorators = {
|
|
706
|
-
_onCentering: [{ type: core.Output }],
|
|
707
|
-
_beforeCentering: [{ type: core.Output }],
|
|
708
|
-
_afterLeavingCenter: [{ type: core.Output }],
|
|
709
|
-
_onCentered: [{ type: core.Output }],
|
|
710
|
-
_content: [{ type: core.Input, args: ['content',] }],
|
|
711
|
-
origin: [{ type: core.Input }],
|
|
712
|
-
animationDuration: [{ type: core.Input }],
|
|
713
|
-
position: [{ type: core.Input }]
|
|
714
|
-
};
|
|
715
756
|
return _MatTabBodyBase;
|
|
716
757
|
}());
|
|
758
|
+
_MatTabBodyBase.decorators = [
|
|
759
|
+
{ type: core.Directive }
|
|
760
|
+
];
|
|
761
|
+
_MatTabBodyBase.ctorParameters = function () { return [
|
|
762
|
+
{ type: core.ElementRef },
|
|
763
|
+
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
764
|
+
{ type: core.ChangeDetectorRef }
|
|
765
|
+
]; };
|
|
766
|
+
_MatTabBodyBase.propDecorators = {
|
|
767
|
+
_onCentering: [{ type: core.Output }],
|
|
768
|
+
_beforeCentering: [{ type: core.Output }],
|
|
769
|
+
_afterLeavingCenter: [{ type: core.Output }],
|
|
770
|
+
_onCentered: [{ type: core.Output }],
|
|
771
|
+
_content: [{ type: core.Input, args: ['content',] }],
|
|
772
|
+
origin: [{ type: core.Input }],
|
|
773
|
+
animationDuration: [{ type: core.Input }],
|
|
774
|
+
position: [{ type: core.Input }]
|
|
775
|
+
};
|
|
717
776
|
/**
|
|
718
777
|
* Wrapper for the contents of a tab.
|
|
719
778
|
* @docs-private
|
|
@@ -723,30 +782,30 @@
|
|
|
723
782
|
function MatTabBody(elementRef, dir, changeDetectorRef) {
|
|
724
783
|
return _super.call(this, elementRef, dir, changeDetectorRef) || this;
|
|
725
784
|
}
|
|
726
|
-
MatTabBody.decorators = [
|
|
727
|
-
{ type: core.Component, args: [{
|
|
728
|
-
selector: 'mat-tab-body',
|
|
729
|
-
template: "<div class=\"mat-tab-body-content\" #content\n [@translateTab]=\"{\n value: _position,\n params: {animationDuration: animationDuration}\n }\"\n (@translateTab.start)=\"_onTranslateTabStarted($event)\"\n (@translateTab.done)=\"_translateTabComplete.next($event)\">\n <ng-template matTabBodyHost></ng-template>\n</div>\n",
|
|
730
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
731
|
-
// tslint:disable-next-line:validate-decorators
|
|
732
|
-
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
733
|
-
animations: [matTabsAnimations.translateTab],
|
|
734
|
-
host: {
|
|
735
|
-
'class': 'mat-tab-body',
|
|
736
|
-
},
|
|
737
|
-
styles: [".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"]
|
|
738
|
-
},] }
|
|
739
|
-
];
|
|
740
|
-
MatTabBody.ctorParameters = function () { return [
|
|
741
|
-
{ type: core.ElementRef },
|
|
742
|
-
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
743
|
-
{ type: core.ChangeDetectorRef }
|
|
744
|
-
]; };
|
|
745
|
-
MatTabBody.propDecorators = {
|
|
746
|
-
_portalHost: [{ type: core.ViewChild, args: [portal.PortalHostDirective,] }]
|
|
747
|
-
};
|
|
748
785
|
return MatTabBody;
|
|
749
786
|
}(_MatTabBodyBase));
|
|
787
|
+
MatTabBody.decorators = [
|
|
788
|
+
{ type: core.Component, args: [{
|
|
789
|
+
selector: 'mat-tab-body',
|
|
790
|
+
template: "<div class=\"mat-tab-body-content\" #content\n [@translateTab]=\"{\n value: _position,\n params: {animationDuration: animationDuration}\n }\"\n (@translateTab.start)=\"_onTranslateTabStarted($event)\"\n (@translateTab.done)=\"_translateTabComplete.next($event)\">\n <ng-template matTabBodyHost></ng-template>\n</div>\n",
|
|
791
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
792
|
+
// tslint:disable-next-line:validate-decorators
|
|
793
|
+
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
794
|
+
animations: [matTabsAnimations.translateTab],
|
|
795
|
+
host: {
|
|
796
|
+
'class': 'mat-tab-body',
|
|
797
|
+
},
|
|
798
|
+
styles: [".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"]
|
|
799
|
+
},] }
|
|
800
|
+
];
|
|
801
|
+
MatTabBody.ctorParameters = function () { return [
|
|
802
|
+
{ type: core.ElementRef },
|
|
803
|
+
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
804
|
+
{ type: core.ChangeDetectorRef }
|
|
805
|
+
]; };
|
|
806
|
+
MatTabBody.propDecorators = {
|
|
807
|
+
_portalHost: [{ type: core.ViewChild, args: [portal.PortalHostDirective,] }]
|
|
808
|
+
};
|
|
750
809
|
|
|
751
810
|
/**
|
|
752
811
|
* @license
|
|
@@ -758,13 +817,6 @@
|
|
|
758
817
|
/** Injection token that can be used to provide the default options the tabs module. */
|
|
759
818
|
var MAT_TABS_CONFIG = new core.InjectionToken('MAT_TABS_CONFIG');
|
|
760
819
|
|
|
761
|
-
/**
|
|
762
|
-
* @license
|
|
763
|
-
* Copyright Google LLC All Rights Reserved.
|
|
764
|
-
*
|
|
765
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
766
|
-
* found in the LICENSE file at https://angular.io/license
|
|
767
|
-
*/
|
|
768
820
|
/** Used to generate unique ID's for each tab component */
|
|
769
821
|
var nextId = 0;
|
|
770
822
|
/** A simple change event emitted on focus or selection changes. */
|
|
@@ -1029,29 +1081,29 @@
|
|
|
1029
1081
|
}
|
|
1030
1082
|
return this.selectedIndex === idx ? 0 : -1;
|
|
1031
1083
|
};
|
|
1032
|
-
_MatTabGroupBase.decorators = [
|
|
1033
|
-
{ type: core.Directive }
|
|
1034
|
-
];
|
|
1035
|
-
_MatTabGroupBase.ctorParameters = function () { return [
|
|
1036
|
-
{ type: core.ElementRef },
|
|
1037
|
-
{ type: core.ChangeDetectorRef },
|
|
1038
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [MAT_TABS_CONFIG,] }, { type: core.Optional }] },
|
|
1039
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1040
|
-
]; };
|
|
1041
|
-
_MatTabGroupBase.propDecorators = {
|
|
1042
|
-
dynamicHeight: [{ type: core.Input }],
|
|
1043
|
-
selectedIndex: [{ type: core.Input }],
|
|
1044
|
-
headerPosition: [{ type: core.Input }],
|
|
1045
|
-
animationDuration: [{ type: core.Input }],
|
|
1046
|
-
disablePagination: [{ type: core.Input }],
|
|
1047
|
-
backgroundColor: [{ type: core.Input }],
|
|
1048
|
-
selectedIndexChange: [{ type: core.Output }],
|
|
1049
|
-
focusChange: [{ type: core.Output }],
|
|
1050
|
-
animationDone: [{ type: core.Output }],
|
|
1051
|
-
selectedTabChange: [{ type: core.Output }]
|
|
1052
|
-
};
|
|
1053
1084
|
return _MatTabGroupBase;
|
|
1054
1085
|
}(_MatTabGroupMixinBase));
|
|
1086
|
+
_MatTabGroupBase.decorators = [
|
|
1087
|
+
{ type: core.Directive }
|
|
1088
|
+
];
|
|
1089
|
+
_MatTabGroupBase.ctorParameters = function () { return [
|
|
1090
|
+
{ type: core.ElementRef },
|
|
1091
|
+
{ type: core.ChangeDetectorRef },
|
|
1092
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [MAT_TABS_CONFIG,] }, { type: core.Optional }] },
|
|
1093
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1094
|
+
]; };
|
|
1095
|
+
_MatTabGroupBase.propDecorators = {
|
|
1096
|
+
dynamicHeight: [{ type: core.Input }],
|
|
1097
|
+
selectedIndex: [{ type: core.Input }],
|
|
1098
|
+
headerPosition: [{ type: core.Input }],
|
|
1099
|
+
animationDuration: [{ type: core.Input }],
|
|
1100
|
+
disablePagination: [{ type: core.Input }],
|
|
1101
|
+
backgroundColor: [{ type: core.Input }],
|
|
1102
|
+
selectedIndexChange: [{ type: core.Output }],
|
|
1103
|
+
focusChange: [{ type: core.Output }],
|
|
1104
|
+
animationDone: [{ type: core.Output }],
|
|
1105
|
+
selectedTabChange: [{ type: core.Output }]
|
|
1106
|
+
};
|
|
1055
1107
|
/**
|
|
1056
1108
|
* Material design tab-group component. Supports basic tab pairs (label + content) and includes
|
|
1057
1109
|
* animated ink-bar, keyboard navigation, and screen reader.
|
|
@@ -1062,48 +1114,41 @@
|
|
|
1062
1114
|
function MatTabGroup(elementRef, changeDetectorRef, defaultConfig, animationMode) {
|
|
1063
1115
|
return _super.call(this, elementRef, changeDetectorRef, defaultConfig, animationMode) || this;
|
|
1064
1116
|
}
|
|
1065
|
-
MatTabGroup.decorators = [
|
|
1066
|
-
{ type: core.Component, args: [{
|
|
1067
|
-
selector: 'mat-tab-group',
|
|
1068
|
-
exportAs: 'matTabGroup',
|
|
1069
|
-
template: "<mat-tab-header #tabHeader\n [selectedIndex]=\"selectedIndex || 0\"\n [disableRipple]=\"disableRipple\"\n [disablePagination]=\"disablePagination\"\n (indexFocused)=\"_focusChanged($event)\"\n (selectFocusedIndex)=\"selectedIndex = $event\">\n <div class=\"mat-tab-label mat-focus-indicator\" role=\"tab\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabLabelId(i)\"\n [attr.tabIndex]=\"_getTabIndex(tab, i)\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"_tabs.length\"\n [attr.aria-controls]=\"_getTabContentId(i)\"\n [attr.aria-selected]=\"selectedIndex == i\"\n [attr.aria-label]=\"tab.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\"\n [class.mat-tab-label-active]=\"selectedIndex == i\"\n [disabled]=\"tab.disabled\"\n [matRippleDisabled]=\"tab.disabled || disableRipple\"\n (click)=\"_handleClick(tab, tabHeader, i)\">\n\n\n <div class=\"mat-tab-label-content\">\n <!-- If there is a label template, use it. -->\n <ng-template [ngIf]=\"tab.templateLabel\">\n <ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template>\n </ng-template>\n\n <!-- If there is not a label template, fall back to the text label. -->\n <ng-template [ngIf]=\"!tab.templateLabel\">{{tab.textLabel}}</ng-template>\n </div>\n </div>\n</mat-tab-header>\n\n<div\n class=\"mat-tab-body-wrapper\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabBodyWrapper>\n <mat-tab-body role=\"tabpanel\"\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabContentId(i)\"\n [attr.aria-labelledby]=\"_getTabLabelId(i)\"\n [class.mat-tab-body-active]=\"selectedIndex == i\"\n [content]=\"tab.content!\"\n [position]=\"tab.position!\"\n [origin]=\"tab.origin\"\n [animationDuration]=\"animationDuration\"\n (_onCentered)=\"_removeTabBodyWrapperHeight()\"\n (_onCentering)=\"_setTabBodyWrapperHeight($event)\">\n </mat-tab-body>\n</div>\n",
|
|
1070
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
1071
|
-
// tslint:disable-next-line:validate-decorators
|
|
1072
|
-
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
1073
|
-
inputs: ['color', 'disableRipple'],
|
|
1074
|
-
providers: [{
|
|
1075
|
-
provide: MAT_TAB_GROUP,
|
|
1076
|
-
useExisting: MatTabGroup
|
|
1077
|
-
}],
|
|
1078
|
-
host: {
|
|
1079
|
-
'class': 'mat-tab-group',
|
|
1080
|
-
'[class.mat-tab-group-dynamic-height]': 'dynamicHeight',
|
|
1081
|
-
'[class.mat-tab-group-inverted-header]': 'headerPosition === "below"',
|
|
1082
|
-
},
|
|
1083
|
-
styles: [".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"]
|
|
1084
|
-
},] }
|
|
1085
|
-
];
|
|
1086
|
-
MatTabGroup.ctorParameters = function () { return [
|
|
1087
|
-
{ type: core.ElementRef },
|
|
1088
|
-
{ type: core.ChangeDetectorRef },
|
|
1089
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [MAT_TABS_CONFIG,] }, { type: core.Optional }] },
|
|
1090
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1091
|
-
]; };
|
|
1092
|
-
MatTabGroup.propDecorators = {
|
|
1093
|
-
_allTabs: [{ type: core.ContentChildren, args: [MatTab, { descendants: true },] }],
|
|
1094
|
-
_tabBodyWrapper: [{ type: core.ViewChild, args: ['tabBodyWrapper',] }],
|
|
1095
|
-
_tabHeader: [{ type: core.ViewChild, args: ['tabHeader',] }]
|
|
1096
|
-
};
|
|
1097
1117
|
return MatTabGroup;
|
|
1098
1118
|
}(_MatTabGroupBase));
|
|
1119
|
+
MatTabGroup.decorators = [
|
|
1120
|
+
{ type: core.Component, args: [{
|
|
1121
|
+
selector: 'mat-tab-group',
|
|
1122
|
+
exportAs: 'matTabGroup',
|
|
1123
|
+
template: "<mat-tab-header #tabHeader\n [selectedIndex]=\"selectedIndex || 0\"\n [disableRipple]=\"disableRipple\"\n [disablePagination]=\"disablePagination\"\n (indexFocused)=\"_focusChanged($event)\"\n (selectFocusedIndex)=\"selectedIndex = $event\">\n <div class=\"mat-tab-label mat-focus-indicator\" role=\"tab\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabLabelId(i)\"\n [attr.tabIndex]=\"_getTabIndex(tab, i)\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"_tabs.length\"\n [attr.aria-controls]=\"_getTabContentId(i)\"\n [attr.aria-selected]=\"selectedIndex == i\"\n [attr.aria-label]=\"tab.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\"\n [class.mat-tab-label-active]=\"selectedIndex == i\"\n [disabled]=\"tab.disabled\"\n [matRippleDisabled]=\"tab.disabled || disableRipple\"\n (click)=\"_handleClick(tab, tabHeader, i)\">\n\n\n <div class=\"mat-tab-label-content\">\n <!-- If there is a label template, use it. -->\n <ng-template [ngIf]=\"tab.templateLabel\">\n <ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template>\n </ng-template>\n\n <!-- If there is not a label template, fall back to the text label. -->\n <ng-template [ngIf]=\"!tab.templateLabel\">{{tab.textLabel}}</ng-template>\n </div>\n </div>\n</mat-tab-header>\n\n<div\n class=\"mat-tab-body-wrapper\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabBodyWrapper>\n <mat-tab-body role=\"tabpanel\"\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabContentId(i)\"\n [attr.aria-labelledby]=\"_getTabLabelId(i)\"\n [class.mat-tab-body-active]=\"selectedIndex == i\"\n [content]=\"tab.content!\"\n [position]=\"tab.position!\"\n [origin]=\"tab.origin\"\n [animationDuration]=\"animationDuration\"\n (_onCentered)=\"_removeTabBodyWrapperHeight()\"\n (_onCentering)=\"_setTabBodyWrapperHeight($event)\">\n </mat-tab-body>\n</div>\n",
|
|
1124
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
1125
|
+
// tslint:disable-next-line:validate-decorators
|
|
1126
|
+
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
1127
|
+
inputs: ['color', 'disableRipple'],
|
|
1128
|
+
providers: [{
|
|
1129
|
+
provide: MAT_TAB_GROUP,
|
|
1130
|
+
useExisting: MatTabGroup
|
|
1131
|
+
}],
|
|
1132
|
+
host: {
|
|
1133
|
+
'class': 'mat-tab-group',
|
|
1134
|
+
'[class.mat-tab-group-dynamic-height]': 'dynamicHeight',
|
|
1135
|
+
'[class.mat-tab-group-inverted-header]': 'headerPosition === "below"',
|
|
1136
|
+
},
|
|
1137
|
+
styles: [".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"]
|
|
1138
|
+
},] }
|
|
1139
|
+
];
|
|
1140
|
+
MatTabGroup.ctorParameters = function () { return [
|
|
1141
|
+
{ type: core.ElementRef },
|
|
1142
|
+
{ type: core.ChangeDetectorRef },
|
|
1143
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [MAT_TABS_CONFIG,] }, { type: core.Optional }] },
|
|
1144
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1145
|
+
]; };
|
|
1146
|
+
MatTabGroup.propDecorators = {
|
|
1147
|
+
_allTabs: [{ type: core.ContentChildren, args: [MatTab, { descendants: true },] }],
|
|
1148
|
+
_tabBodyWrapper: [{ type: core.ViewChild, args: ['tabBodyWrapper',] }],
|
|
1149
|
+
_tabHeader: [{ type: core.ViewChild, args: ['tabHeader',] }]
|
|
1150
|
+
};
|
|
1099
1151
|
|
|
1100
|
-
/**
|
|
1101
|
-
* @license
|
|
1102
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1103
|
-
*
|
|
1104
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1105
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1106
|
-
*/
|
|
1107
1152
|
// Boilerplate for applying mixins to MatTabLabelWrapper.
|
|
1108
1153
|
/** @docs-private */
|
|
1109
1154
|
var MatTabLabelWrapperBase = /** @class */ (function () {
|
|
@@ -1133,21 +1178,21 @@
|
|
|
1133
1178
|
MatTabLabelWrapper.prototype.getOffsetWidth = function () {
|
|
1134
1179
|
return this.elementRef.nativeElement.offsetWidth;
|
|
1135
1180
|
};
|
|
1136
|
-
MatTabLabelWrapper.decorators = [
|
|
1137
|
-
{ type: core.Directive, args: [{
|
|
1138
|
-
selector: '[matTabLabelWrapper]',
|
|
1139
|
-
inputs: ['disabled'],
|
|
1140
|
-
host: {
|
|
1141
|
-
'[class.mat-tab-disabled]': 'disabled',
|
|
1142
|
-
'[attr.aria-disabled]': '!!disabled',
|
|
1143
|
-
}
|
|
1144
|
-
},] }
|
|
1145
|
-
];
|
|
1146
|
-
MatTabLabelWrapper.ctorParameters = function () { return [
|
|
1147
|
-
{ type: core.ElementRef }
|
|
1148
|
-
]; };
|
|
1149
1181
|
return MatTabLabelWrapper;
|
|
1150
1182
|
}(_MatTabLabelWrapperMixinBase));
|
|
1183
|
+
MatTabLabelWrapper.decorators = [
|
|
1184
|
+
{ type: core.Directive, args: [{
|
|
1185
|
+
selector: '[matTabLabelWrapper]',
|
|
1186
|
+
inputs: ['disabled'],
|
|
1187
|
+
host: {
|
|
1188
|
+
'[class.mat-tab-disabled]': 'disabled',
|
|
1189
|
+
'[attr.aria-disabled]': '!!disabled',
|
|
1190
|
+
}
|
|
1191
|
+
},] }
|
|
1192
|
+
];
|
|
1193
|
+
MatTabLabelWrapper.ctorParameters = function () { return [
|
|
1194
|
+
{ type: core.ElementRef }
|
|
1195
|
+
]; };
|
|
1151
1196
|
|
|
1152
1197
|
/**
|
|
1153
1198
|
* @license
|
|
@@ -1265,6 +1310,7 @@
|
|
|
1265
1310
|
};
|
|
1266
1311
|
this._keyManager = new a11y.FocusKeyManager(this._items)
|
|
1267
1312
|
.withHorizontalOrientation(this._getLayoutDirection())
|
|
1313
|
+
.withHomeAndEnd()
|
|
1268
1314
|
.withWrap();
|
|
1269
1315
|
this._keyManager.updateActiveItem(0);
|
|
1270
1316
|
// Defer the first call in order to allow for slower browsers to lay out the elements.
|
|
@@ -1321,14 +1367,6 @@
|
|
|
1321
1367
|
return;
|
|
1322
1368
|
}
|
|
1323
1369
|
switch (event.keyCode) {
|
|
1324
|
-
case keycodes.HOME:
|
|
1325
|
-
this._keyManager.setFirstItemActive();
|
|
1326
|
-
event.preventDefault();
|
|
1327
|
-
break;
|
|
1328
|
-
case keycodes.END:
|
|
1329
|
-
this._keyManager.setLastItemActive();
|
|
1330
|
-
event.preventDefault();
|
|
1331
|
-
break;
|
|
1332
1370
|
case keycodes.ENTER:
|
|
1333
1371
|
case keycodes.SPACE:
|
|
1334
1372
|
if (this.focusIndex !== this.selectedIndex) {
|
|
@@ -1628,31 +1666,24 @@
|
|
|
1628
1666
|
this._checkScrollingControls();
|
|
1629
1667
|
return { maxScrollDistance: maxScrollDistance, distance: this._scrollDistance };
|
|
1630
1668
|
};
|
|
1631
|
-
MatPaginatedTabHeader.decorators = [
|
|
1632
|
-
{ type: core.Directive }
|
|
1633
|
-
];
|
|
1634
|
-
MatPaginatedTabHeader.ctorParameters = function () { return [
|
|
1635
|
-
{ type: core.ElementRef },
|
|
1636
|
-
{ type: core.ChangeDetectorRef },
|
|
1637
|
-
{ type: scrolling.ViewportRuler },
|
|
1638
|
-
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1639
|
-
{ type: core.NgZone },
|
|
1640
|
-
{ type: platform.Platform },
|
|
1641
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1642
|
-
]; };
|
|
1643
|
-
MatPaginatedTabHeader.propDecorators = {
|
|
1644
|
-
disablePagination: [{ type: core.Input }]
|
|
1645
|
-
};
|
|
1646
1669
|
return MatPaginatedTabHeader;
|
|
1647
1670
|
}());
|
|
1671
|
+
MatPaginatedTabHeader.decorators = [
|
|
1672
|
+
{ type: core.Directive }
|
|
1673
|
+
];
|
|
1674
|
+
MatPaginatedTabHeader.ctorParameters = function () { return [
|
|
1675
|
+
{ type: core.ElementRef },
|
|
1676
|
+
{ type: core.ChangeDetectorRef },
|
|
1677
|
+
{ type: scrolling.ViewportRuler },
|
|
1678
|
+
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1679
|
+
{ type: core.NgZone },
|
|
1680
|
+
{ type: platform.Platform },
|
|
1681
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1682
|
+
]; };
|
|
1683
|
+
MatPaginatedTabHeader.propDecorators = {
|
|
1684
|
+
disablePagination: [{ type: core.Input }]
|
|
1685
|
+
};
|
|
1648
1686
|
|
|
1649
|
-
/**
|
|
1650
|
-
* @license
|
|
1651
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1652
|
-
*
|
|
1653
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1654
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1655
|
-
*/
|
|
1656
1687
|
/**
|
|
1657
1688
|
* Base class with all of the `MatTabHeader` functionality.
|
|
1658
1689
|
* @docs-private
|
|
@@ -1676,23 +1707,23 @@
|
|
|
1676
1707
|
_MatTabHeaderBase.prototype._itemSelected = function (event) {
|
|
1677
1708
|
event.preventDefault();
|
|
1678
1709
|
};
|
|
1679
|
-
_MatTabHeaderBase.decorators = [
|
|
1680
|
-
{ type: core.Directive }
|
|
1681
|
-
];
|
|
1682
|
-
_MatTabHeaderBase.ctorParameters = function () { return [
|
|
1683
|
-
{ type: core.ElementRef },
|
|
1684
|
-
{ type: core.ChangeDetectorRef },
|
|
1685
|
-
{ type: scrolling.ViewportRuler },
|
|
1686
|
-
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1687
|
-
{ type: core.NgZone },
|
|
1688
|
-
{ type: platform.Platform },
|
|
1689
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1690
|
-
]; };
|
|
1691
|
-
_MatTabHeaderBase.propDecorators = {
|
|
1692
|
-
disableRipple: [{ type: core.Input }]
|
|
1693
|
-
};
|
|
1694
1710
|
return _MatTabHeaderBase;
|
|
1695
1711
|
}(MatPaginatedTabHeader));
|
|
1712
|
+
_MatTabHeaderBase.decorators = [
|
|
1713
|
+
{ type: core.Directive }
|
|
1714
|
+
];
|
|
1715
|
+
_MatTabHeaderBase.ctorParameters = function () { return [
|
|
1716
|
+
{ type: core.ElementRef },
|
|
1717
|
+
{ type: core.ChangeDetectorRef },
|
|
1718
|
+
{ type: scrolling.ViewportRuler },
|
|
1719
|
+
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1720
|
+
{ type: core.NgZone },
|
|
1721
|
+
{ type: platform.Platform },
|
|
1722
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1723
|
+
]; };
|
|
1724
|
+
_MatTabHeaderBase.propDecorators = {
|
|
1725
|
+
disableRipple: [{ type: core.Input }]
|
|
1726
|
+
};
|
|
1696
1727
|
/**
|
|
1697
1728
|
* The header of the tab group which displays a list of all the tabs in the tab group. Includes
|
|
1698
1729
|
* an ink bar that follows the currently selected tab. When the tabs list's width exceeds the
|
|
@@ -1707,42 +1738,42 @@
|
|
|
1707
1738
|
animationMode) {
|
|
1708
1739
|
return _super.call(this, elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) || this;
|
|
1709
1740
|
}
|
|
1710
|
-
MatTabHeader.decorators = [
|
|
1711
|
-
{ type: core.Component, args: [{
|
|
1712
|
-
selector: 'mat-tab-header',
|
|
1713
|
-
template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n #previousPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_handlePaginatorClick('before')\"\n (mousedown)=\"_handlePaginatorPress('before', $event)\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-label-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n #tabList\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n role=\"tablist\"\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-labels\">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n #nextPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n (mousedown)=\"_handlePaginatorPress('after', $event)\"\n (click)=\"_handlePaginatorClick('after')\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n",
|
|
1714
|
-
inputs: ['selectedIndex'],
|
|
1715
|
-
outputs: ['selectFocusedIndex', 'indexFocused'],
|
|
1716
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
1717
|
-
// tslint:disable-next-line:validate-decorators
|
|
1718
|
-
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
1719
|
-
host: {
|
|
1720
|
-
'class': 'mat-tab-header',
|
|
1721
|
-
'[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
|
|
1722
|
-
'[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
|
|
1723
|
-
},
|
|
1724
|
-
styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"]
|
|
1725
|
-
},] }
|
|
1726
|
-
];
|
|
1727
|
-
MatTabHeader.ctorParameters = function () { return [
|
|
1728
|
-
{ type: core.ElementRef },
|
|
1729
|
-
{ type: core.ChangeDetectorRef },
|
|
1730
|
-
{ type: scrolling.ViewportRuler },
|
|
1731
|
-
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1732
|
-
{ type: core.NgZone },
|
|
1733
|
-
{ type: platform.Platform },
|
|
1734
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1735
|
-
]; };
|
|
1736
|
-
MatTabHeader.propDecorators = {
|
|
1737
|
-
_items: [{ type: core.ContentChildren, args: [MatTabLabelWrapper, { descendants: false },] }],
|
|
1738
|
-
_inkBar: [{ type: core.ViewChild, args: [MatInkBar, { static: true },] }],
|
|
1739
|
-
_tabListContainer: [{ type: core.ViewChild, args: ['tabListContainer', { static: true },] }],
|
|
1740
|
-
_tabList: [{ type: core.ViewChild, args: ['tabList', { static: true },] }],
|
|
1741
|
-
_nextPaginator: [{ type: core.ViewChild, args: ['nextPaginator',] }],
|
|
1742
|
-
_previousPaginator: [{ type: core.ViewChild, args: ['previousPaginator',] }]
|
|
1743
|
-
};
|
|
1744
1741
|
return MatTabHeader;
|
|
1745
1742
|
}(_MatTabHeaderBase));
|
|
1743
|
+
MatTabHeader.decorators = [
|
|
1744
|
+
{ type: core.Component, args: [{
|
|
1745
|
+
selector: 'mat-tab-header',
|
|
1746
|
+
template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n #previousPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_handlePaginatorClick('before')\"\n (mousedown)=\"_handlePaginatorPress('before', $event)\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-label-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n #tabList\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n role=\"tablist\"\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-labels\">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n #nextPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n (mousedown)=\"_handlePaginatorPress('after', $event)\"\n (click)=\"_handlePaginatorClick('after')\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n",
|
|
1747
|
+
inputs: ['selectedIndex'],
|
|
1748
|
+
outputs: ['selectFocusedIndex', 'indexFocused'],
|
|
1749
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
1750
|
+
// tslint:disable-next-line:validate-decorators
|
|
1751
|
+
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
1752
|
+
host: {
|
|
1753
|
+
'class': 'mat-tab-header',
|
|
1754
|
+
'[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
|
|
1755
|
+
'[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
|
|
1756
|
+
},
|
|
1757
|
+
styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"]
|
|
1758
|
+
},] }
|
|
1759
|
+
];
|
|
1760
|
+
MatTabHeader.ctorParameters = function () { return [
|
|
1761
|
+
{ type: core.ElementRef },
|
|
1762
|
+
{ type: core.ChangeDetectorRef },
|
|
1763
|
+
{ type: scrolling.ViewportRuler },
|
|
1764
|
+
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1765
|
+
{ type: core.NgZone },
|
|
1766
|
+
{ type: platform.Platform },
|
|
1767
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1768
|
+
]; };
|
|
1769
|
+
MatTabHeader.propDecorators = {
|
|
1770
|
+
_items: [{ type: core.ContentChildren, args: [MatTabLabelWrapper, { descendants: false },] }],
|
|
1771
|
+
_inkBar: [{ type: core.ViewChild, args: [MatInkBar, { static: true },] }],
|
|
1772
|
+
_tabListContainer: [{ type: core.ViewChild, args: ['tabListContainer', { static: true },] }],
|
|
1773
|
+
_tabList: [{ type: core.ViewChild, args: ['tabList', { static: true },] }],
|
|
1774
|
+
_nextPaginator: [{ type: core.ViewChild, args: ['nextPaginator',] }],
|
|
1775
|
+
_previousPaginator: [{ type: core.ViewChild, args: ['previousPaginator',] }]
|
|
1776
|
+
};
|
|
1746
1777
|
|
|
1747
1778
|
/**
|
|
1748
1779
|
* Base class with all of the `MatTabNav` functionality.
|
|
@@ -1814,25 +1845,25 @@
|
|
|
1814
1845
|
this.selectedIndex = -1;
|
|
1815
1846
|
this._inkBar.hide();
|
|
1816
1847
|
};
|
|
1817
|
-
_MatTabNavBase.decorators = [
|
|
1818
|
-
{ type: core.Directive }
|
|
1819
|
-
];
|
|
1820
|
-
_MatTabNavBase.ctorParameters = function () { return [
|
|
1821
|
-
{ type: core.ElementRef },
|
|
1822
|
-
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1823
|
-
{ type: core.NgZone },
|
|
1824
|
-
{ type: core.ChangeDetectorRef },
|
|
1825
|
-
{ type: scrolling.ViewportRuler },
|
|
1826
|
-
{ type: platform.Platform, decorators: [{ type: core.Optional }] },
|
|
1827
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1828
|
-
]; };
|
|
1829
|
-
_MatTabNavBase.propDecorators = {
|
|
1830
|
-
backgroundColor: [{ type: core.Input }],
|
|
1831
|
-
disableRipple: [{ type: core.Input }],
|
|
1832
|
-
color: [{ type: core.Input }]
|
|
1833
|
-
};
|
|
1834
1848
|
return _MatTabNavBase;
|
|
1835
1849
|
}(MatPaginatedTabHeader));
|
|
1850
|
+
_MatTabNavBase.decorators = [
|
|
1851
|
+
{ type: core.Directive }
|
|
1852
|
+
];
|
|
1853
|
+
_MatTabNavBase.ctorParameters = function () { return [
|
|
1854
|
+
{ type: core.ElementRef },
|
|
1855
|
+
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1856
|
+
{ type: core.NgZone },
|
|
1857
|
+
{ type: core.ChangeDetectorRef },
|
|
1858
|
+
{ type: scrolling.ViewportRuler },
|
|
1859
|
+
{ type: platform.Platform },
|
|
1860
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1861
|
+
]; };
|
|
1862
|
+
_MatTabNavBase.propDecorators = {
|
|
1863
|
+
backgroundColor: [{ type: core.Input }],
|
|
1864
|
+
disableRipple: [{ type: core.Input }],
|
|
1865
|
+
color: [{ type: core.Input }]
|
|
1866
|
+
};
|
|
1836
1867
|
/**
|
|
1837
1868
|
* Navigation component matching the styles of the tab group header.
|
|
1838
1869
|
* Provides anchored navigation with animated ink bar.
|
|
@@ -1846,45 +1877,45 @@
|
|
|
1846
1877
|
platform, animationMode) {
|
|
1847
1878
|
return _super.call(this, elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) || this;
|
|
1848
1879
|
}
|
|
1849
|
-
MatTabNav.decorators = [
|
|
1850
|
-
{ type: core.Component, args: [{
|
|
1851
|
-
selector: '[mat-tab-nav-bar]',
|
|
1852
|
-
exportAs: 'matTabNavBar, matTabNav',
|
|
1853
|
-
inputs: ['color'],
|
|
1854
|
-
template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n #previousPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_handlePaginatorClick('before')\"\n (mousedown)=\"_handlePaginatorPress('before', $event)\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-link-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabList\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-links\">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n #nextPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n (mousedown)=\"_handlePaginatorPress('after', $event)\"\n (click)=\"_handlePaginatorClick('after')\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n",
|
|
1855
|
-
host: {
|
|
1856
|
-
'class': 'mat-tab-nav-bar mat-tab-header',
|
|
1857
|
-
'[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
|
|
1858
|
-
'[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
|
|
1859
|
-
'[class.mat-primary]': 'color !== "warn" && color !== "accent"',
|
|
1860
|
-
'[class.mat-accent]': 'color === "accent"',
|
|
1861
|
-
'[class.mat-warn]': 'color === "warn"',
|
|
1862
|
-
},
|
|
1863
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
1864
|
-
// tslint:disable-next-line:validate-decorators
|
|
1865
|
-
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
1866
|
-
styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"]
|
|
1867
|
-
},] }
|
|
1868
|
-
];
|
|
1869
|
-
MatTabNav.ctorParameters = function () { return [
|
|
1870
|
-
{ type: core.ElementRef },
|
|
1871
|
-
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1872
|
-
{ type: core.NgZone },
|
|
1873
|
-
{ type: core.ChangeDetectorRef },
|
|
1874
|
-
{ type: scrolling.ViewportRuler },
|
|
1875
|
-
{ type: platform.Platform, decorators: [{ type: core.Optional }] },
|
|
1876
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1877
|
-
]; };
|
|
1878
|
-
MatTabNav.propDecorators = {
|
|
1879
|
-
_items: [{ type: core.ContentChildren, args: [core.forwardRef(function () { return MatTabLink; }), { descendants: true },] }],
|
|
1880
|
-
_inkBar: [{ type: core.ViewChild, args: [MatInkBar, { static: true },] }],
|
|
1881
|
-
_tabListContainer: [{ type: core.ViewChild, args: ['tabListContainer', { static: true },] }],
|
|
1882
|
-
_tabList: [{ type: core.ViewChild, args: ['tabList', { static: true },] }],
|
|
1883
|
-
_nextPaginator: [{ type: core.ViewChild, args: ['nextPaginator',] }],
|
|
1884
|
-
_previousPaginator: [{ type: core.ViewChild, args: ['previousPaginator',] }]
|
|
1885
|
-
};
|
|
1886
1880
|
return MatTabNav;
|
|
1887
1881
|
}(_MatTabNavBase));
|
|
1882
|
+
MatTabNav.decorators = [
|
|
1883
|
+
{ type: core.Component, args: [{
|
|
1884
|
+
selector: '[mat-tab-nav-bar]',
|
|
1885
|
+
exportAs: 'matTabNavBar, matTabNav',
|
|
1886
|
+
inputs: ['color'],
|
|
1887
|
+
template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n #previousPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_handlePaginatorClick('before')\"\n (mousedown)=\"_handlePaginatorPress('before', $event)\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-link-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabList\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-links\">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n #nextPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n (mousedown)=\"_handlePaginatorPress('after', $event)\"\n (click)=\"_handlePaginatorClick('after')\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n",
|
|
1888
|
+
host: {
|
|
1889
|
+
'class': 'mat-tab-nav-bar mat-tab-header',
|
|
1890
|
+
'[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
|
|
1891
|
+
'[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
|
|
1892
|
+
'[class.mat-primary]': 'color !== "warn" && color !== "accent"',
|
|
1893
|
+
'[class.mat-accent]': 'color === "accent"',
|
|
1894
|
+
'[class.mat-warn]': 'color === "warn"',
|
|
1895
|
+
},
|
|
1896
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
1897
|
+
// tslint:disable-next-line:validate-decorators
|
|
1898
|
+
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
1899
|
+
styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"]
|
|
1900
|
+
},] }
|
|
1901
|
+
];
|
|
1902
|
+
MatTabNav.ctorParameters = function () { return [
|
|
1903
|
+
{ type: core.ElementRef },
|
|
1904
|
+
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1905
|
+
{ type: core.NgZone },
|
|
1906
|
+
{ type: core.ChangeDetectorRef },
|
|
1907
|
+
{ type: scrolling.ViewportRuler },
|
|
1908
|
+
{ type: platform.Platform },
|
|
1909
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1910
|
+
]; };
|
|
1911
|
+
MatTabNav.propDecorators = {
|
|
1912
|
+
_items: [{ type: core.ContentChildren, args: [core.forwardRef(function () { return MatTabLink; }), { descendants: true },] }],
|
|
1913
|
+
_inkBar: [{ type: core.ViewChild, args: [MatInkBar, { static: true },] }],
|
|
1914
|
+
_tabListContainer: [{ type: core.ViewChild, args: ['tabListContainer', { static: true },] }],
|
|
1915
|
+
_tabList: [{ type: core.ViewChild, args: ['tabList', { static: true },] }],
|
|
1916
|
+
_nextPaginator: [{ type: core.ViewChild, args: ['nextPaginator',] }],
|
|
1917
|
+
_previousPaginator: [{ type: core.ViewChild, args: ['previousPaginator',] }]
|
|
1918
|
+
};
|
|
1888
1919
|
// Boilerplate for applying mixins to MatTabLink.
|
|
1889
1920
|
var MatTabLinkMixinBase = /** @class */ (function () {
|
|
1890
1921
|
function MatTabLinkMixinBase() {
|
|
@@ -1942,22 +1973,22 @@
|
|
|
1942
1973
|
_MatTabLinkBase.prototype.ngOnDestroy = function () {
|
|
1943
1974
|
this._focusMonitor.stopMonitoring(this.elementRef);
|
|
1944
1975
|
};
|
|
1945
|
-
_MatTabLinkBase.decorators = [
|
|
1946
|
-
{ type: core.Directive }
|
|
1947
|
-
];
|
|
1948
|
-
_MatTabLinkBase.ctorParameters = function () { return [
|
|
1949
|
-
{ type: _MatTabNavBase },
|
|
1950
|
-
{ type: core.ElementRef },
|
|
1951
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core$1.MAT_RIPPLE_GLOBAL_OPTIONS,] }] },
|
|
1952
|
-
{ type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },
|
|
1953
|
-
{ type: a11y.FocusMonitor },
|
|
1954
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1955
|
-
]; };
|
|
1956
|
-
_MatTabLinkBase.propDecorators = {
|
|
1957
|
-
active: [{ type: core.Input }]
|
|
1958
|
-
};
|
|
1959
1976
|
return _MatTabLinkBase;
|
|
1960
1977
|
}(_MatTabLinkMixinBase));
|
|
1978
|
+
_MatTabLinkBase.decorators = [
|
|
1979
|
+
{ type: core.Directive }
|
|
1980
|
+
];
|
|
1981
|
+
_MatTabLinkBase.ctorParameters = function () { return [
|
|
1982
|
+
{ type: _MatTabNavBase },
|
|
1983
|
+
{ type: core.ElementRef },
|
|
1984
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core$1.MAT_RIPPLE_GLOBAL_OPTIONS,] }] },
|
|
1985
|
+
{ type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },
|
|
1986
|
+
{ type: a11y.FocusMonitor },
|
|
1987
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
1988
|
+
]; };
|
|
1989
|
+
_MatTabLinkBase.propDecorators = {
|
|
1990
|
+
active: [{ type: core.Input }]
|
|
1991
|
+
};
|
|
1961
1992
|
/**
|
|
1962
1993
|
* Link inside of a `mat-tab-nav-bar`.
|
|
1963
1994
|
*/
|
|
@@ -1973,33 +2004,33 @@
|
|
|
1973
2004
|
_super.prototype.ngOnDestroy.call(this);
|
|
1974
2005
|
this._tabLinkRipple._removeTriggerEvents();
|
|
1975
2006
|
};
|
|
1976
|
-
MatTabLink.decorators = [
|
|
1977
|
-
{ type: core.Directive, args: [{
|
|
1978
|
-
selector: '[mat-tab-link], [matTabLink]',
|
|
1979
|
-
exportAs: 'matTabLink',
|
|
1980
|
-
inputs: ['disabled', 'disableRipple', 'tabIndex'],
|
|
1981
|
-
host: {
|
|
1982
|
-
'class': 'mat-tab-link mat-focus-indicator',
|
|
1983
|
-
'[attr.aria-current]': 'active ? "page" : null',
|
|
1984
|
-
'[attr.aria-disabled]': 'disabled',
|
|
1985
|
-
'[attr.tabIndex]': 'tabIndex',
|
|
1986
|
-
'[class.mat-tab-disabled]': 'disabled',
|
|
1987
|
-
'[class.mat-tab-label-active]': 'active',
|
|
1988
|
-
}
|
|
1989
|
-
},] }
|
|
1990
|
-
];
|
|
1991
|
-
MatTabLink.ctorParameters = function () { return [
|
|
1992
|
-
{ type: MatTabNav },
|
|
1993
|
-
{ type: core.ElementRef },
|
|
1994
|
-
{ type: core.NgZone },
|
|
1995
|
-
{ type: platform.Platform },
|
|
1996
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core$1.MAT_RIPPLE_GLOBAL_OPTIONS,] }] },
|
|
1997
|
-
{ type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },
|
|
1998
|
-
{ type: a11y.FocusMonitor },
|
|
1999
|
-
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
2000
|
-
]; };
|
|
2001
2007
|
return MatTabLink;
|
|
2002
2008
|
}(_MatTabLinkBase));
|
|
2009
|
+
MatTabLink.decorators = [
|
|
2010
|
+
{ type: core.Directive, args: [{
|
|
2011
|
+
selector: '[mat-tab-link], [matTabLink]',
|
|
2012
|
+
exportAs: 'matTabLink',
|
|
2013
|
+
inputs: ['disabled', 'disableRipple', 'tabIndex'],
|
|
2014
|
+
host: {
|
|
2015
|
+
'class': 'mat-tab-link mat-focus-indicator',
|
|
2016
|
+
'[attr.aria-current]': 'active ? "page" : null',
|
|
2017
|
+
'[attr.aria-disabled]': 'disabled',
|
|
2018
|
+
'[attr.tabIndex]': 'tabIndex',
|
|
2019
|
+
'[class.mat-tab-disabled]': 'disabled',
|
|
2020
|
+
'[class.mat-tab-label-active]': 'active',
|
|
2021
|
+
}
|
|
2022
|
+
},] }
|
|
2023
|
+
];
|
|
2024
|
+
MatTabLink.ctorParameters = function () { return [
|
|
2025
|
+
{ type: MatTabNav },
|
|
2026
|
+
{ type: core.ElementRef },
|
|
2027
|
+
{ type: core.NgZone },
|
|
2028
|
+
{ type: platform.Platform },
|
|
2029
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core$1.MAT_RIPPLE_GLOBAL_OPTIONS,] }] },
|
|
2030
|
+
{ type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },
|
|
2031
|
+
{ type: a11y.FocusMonitor },
|
|
2032
|
+
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [animations.ANIMATION_MODULE_TYPE,] }] }
|
|
2033
|
+
]; };
|
|
2003
2034
|
|
|
2004
2035
|
/**
|
|
2005
2036
|
* @license
|
|
@@ -2011,43 +2042,43 @@
|
|
|
2011
2042
|
var MatTabsModule = /** @class */ (function () {
|
|
2012
2043
|
function MatTabsModule() {
|
|
2013
2044
|
}
|
|
2014
|
-
MatTabsModule.decorators = [
|
|
2015
|
-
{ type: core.NgModule, args: [{
|
|
2016
|
-
imports: [
|
|
2017
|
-
common.CommonModule,
|
|
2018
|
-
core$1.MatCommonModule,
|
|
2019
|
-
portal.PortalModule,
|
|
2020
|
-
core$1.MatRippleModule,
|
|
2021
|
-
observers.ObserversModule,
|
|
2022
|
-
a11y.A11yModule,
|
|
2023
|
-
],
|
|
2024
|
-
// Don't export all components because some are only to be used internally.
|
|
2025
|
-
exports: [
|
|
2026
|
-
core$1.MatCommonModule,
|
|
2027
|
-
MatTabGroup,
|
|
2028
|
-
MatTabLabel,
|
|
2029
|
-
MatTab,
|
|
2030
|
-
MatTabNav,
|
|
2031
|
-
MatTabLink,
|
|
2032
|
-
MatTabContent,
|
|
2033
|
-
],
|
|
2034
|
-
declarations: [
|
|
2035
|
-
MatTabGroup,
|
|
2036
|
-
MatTabLabel,
|
|
2037
|
-
MatTab,
|
|
2038
|
-
MatInkBar,
|
|
2039
|
-
MatTabLabelWrapper,
|
|
2040
|
-
MatTabNav,
|
|
2041
|
-
MatTabLink,
|
|
2042
|
-
MatTabBody,
|
|
2043
|
-
MatTabBodyPortal,
|
|
2044
|
-
MatTabHeader,
|
|
2045
|
-
MatTabContent,
|
|
2046
|
-
],
|
|
2047
|
-
},] }
|
|
2048
|
-
];
|
|
2049
2045
|
return MatTabsModule;
|
|
2050
2046
|
}());
|
|
2047
|
+
MatTabsModule.decorators = [
|
|
2048
|
+
{ type: core.NgModule, args: [{
|
|
2049
|
+
imports: [
|
|
2050
|
+
common.CommonModule,
|
|
2051
|
+
core$1.MatCommonModule,
|
|
2052
|
+
portal.PortalModule,
|
|
2053
|
+
core$1.MatRippleModule,
|
|
2054
|
+
observers.ObserversModule,
|
|
2055
|
+
a11y.A11yModule,
|
|
2056
|
+
],
|
|
2057
|
+
// Don't export all components because some are only to be used internally.
|
|
2058
|
+
exports: [
|
|
2059
|
+
core$1.MatCommonModule,
|
|
2060
|
+
MatTabGroup,
|
|
2061
|
+
MatTabLabel,
|
|
2062
|
+
MatTab,
|
|
2063
|
+
MatTabNav,
|
|
2064
|
+
MatTabLink,
|
|
2065
|
+
MatTabContent,
|
|
2066
|
+
],
|
|
2067
|
+
declarations: [
|
|
2068
|
+
MatTabGroup,
|
|
2069
|
+
MatTabLabel,
|
|
2070
|
+
MatTab,
|
|
2071
|
+
MatInkBar,
|
|
2072
|
+
MatTabLabelWrapper,
|
|
2073
|
+
MatTabNav,
|
|
2074
|
+
MatTabLink,
|
|
2075
|
+
MatTabBody,
|
|
2076
|
+
MatTabBodyPortal,
|
|
2077
|
+
MatTabHeader,
|
|
2078
|
+
MatTabContent,
|
|
2079
|
+
],
|
|
2080
|
+
},] }
|
|
2081
|
+
];
|
|
2051
2082
|
|
|
2052
2083
|
/**
|
|
2053
2084
|
* @license
|