@angular/material 20.0.0-next.0 → 20.0.0-next.2
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/autocomplete/_autocomplete-theme.scss +4 -4
- package/autocomplete/index.d.ts +96 -126
- package/autocomplete/testing/index.d.ts +6 -11
- package/badge/_badge-theme.scss +5 -5
- package/badge/index.d.ts +8 -112
- package/badge/testing/index.d.ts +7 -8
- package/badge.d-49a8a74b.d.ts +98 -0
- package/bottom-sheet/_bottom-sheet-theme.scss +3 -3
- package/bottom-sheet/index.d.ts +88 -103
- package/bottom-sheet/testing/index.d.ts +4 -6
- package/button/_button-theme.scss +84 -32
- package/button/_fab-theme.scss +13 -13
- package/button/_icon-button-theme.scss +5 -5
- package/button/index.d.ts +10 -245
- package/button/testing/index.d.ts +13 -10
- package/button-toggle/_button-toggle-theme.scss +8 -8
- package/button-toggle/index.d.ts +12 -285
- package/button-toggle/testing/index.d.ts +38 -37
- package/button-toggle.d-edc8acff.d.ts +257 -0
- package/card/_card-theme.scss +12 -12
- package/card/index.d.ts +80 -117
- package/card/testing/index.d.ts +11 -15
- package/checkbox/_checkbox-theme.scss +10 -10
- package/checkbox/index.d.ts +43 -104
- package/checkbox/testing/index.d.ts +6 -10
- package/chips/_chips-theme.scss +14 -14
- package/chips/index.d.ts +599 -693
- package/chips/testing/index.d.ts +78 -93
- package/common-module.d-0e6515ae.d.ts +43 -0
- package/core/_core-theme.scss +2 -2
- package/core/index.d.ts +50 -979
- package/core/option/_optgroup-theme.scss +2 -2
- package/core/option/_option-theme.scss +4 -4
- package/core/ripple/_ripple-theme.scss +3 -3
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +4 -4
- package/core/testing/index.d.ts +3 -65
- package/core/theming/_color-api-backwards-compatibility.scss +19 -8
- package/core/tokens/_density.scss +3 -0
- package/core/tokens/_token-definition.scss +1 -2
- package/core/tokens/_token-utils.scss +20 -5
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m2/mat/_tonal-button.scss +110 -0
- package/core/tokens/m3/_index.scss +2 -0
- package/core/tokens/m3/definitions/_index.scss +1 -1
- package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +3 -1
- package/core/tokens/m3/definitions/_md-sys-color.scss +44 -2
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +20 -1
- package/core/tokens/m3/mat/_tonal-button.scss +101 -0
- package/date-adapter.d-c6835d41.d.ts +267 -0
- package/date-range-input-harness.d-549a9f7e.d.ts +278 -0
- package/datepicker/_datepicker-theme.scss +8 -7
- package/datepicker/index.d.ts +1332 -1482
- package/datepicker/testing/index.d.ts +5 -287
- package/dialog/_dialog-theme.scss +6 -6
- package/dialog/index.d.ts +59 -453
- package/dialog/testing/index.d.ts +22 -26
- package/dialog.d-57867441.d.ts +335 -0
- package/divider/_divider-theme.scss +2 -2
- package/divider/index.d.ts +6 -11
- package/divider/testing/index.d.ts +2 -16
- package/divider-harness.d-d34fede4.d.ts +14 -0
- package/error-options.d-448d9046.d.ts +17 -0
- package/expansion/_expansion-theme.scss +4 -4
- package/expansion/index.d.ts +139 -190
- package/expansion/testing/index.d.ts +25 -31
- package/fesm2022/autocomplete/testing.mjs +2 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +56 -32
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +14 -17
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +13 -15
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs +34 -15
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +22 -15
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +14 -395
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +49 -51
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +32 -73
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +51 -46
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-2d64df09.mjs +42 -0
- package/fesm2022/common-module-2d64df09.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +3 -76
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +38 -1598
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-b618acb8.mjs +190 -0
- package/fesm2022/date-formats-b618acb8.mjs.map +1 -0
- package/fesm2022/date-range-input-harness-de70be6a.mjs +467 -0
- package/fesm2022/date-range-input-harness-de70be6a.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +5 -465
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +162 -131
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +12 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +14 -895
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +2 -17
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider-harness-8099453f.mjs +18 -0
- package/fesm2022/divider-harness-8099453f.mjs.map +1 -0
- package/fesm2022/divider.mjs +10 -12
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-4a00765e.mjs +29 -0
- package/fesm2022/error-options-4a00765e.mjs.map +1 -0
- package/fesm2022/error-state-8f4ce1af.mjs +37 -0
- package/fesm2022/error-state-8f4ce1af.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +30 -32
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs +2 -10
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +7 -6
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field-6d755764.mjs +1076 -0
- package/fesm2022/form-field-6d755764.mjs.map +1 -0
- package/fesm2022/form-field-control-harness-efefd4cf.mjs +11 -0
- package/fesm2022/form-field-control-harness-efefd4cf.mjs.map +1 -0
- package/fesm2022/form-field.mjs +14 -1110
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +30 -173
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +12 -12
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-0850d958.mjs +211 -0
- package/fesm2022/icon-button-0850d958.mjs.map +1 -0
- package/fesm2022/icon-module-3f77a24d.mjs +395 -0
- package/fesm2022/icon-module-3f77a24d.mjs.map +1 -0
- package/fesm2022/icon-registry-13a3b98e.mjs +639 -0
- package/fesm2022/icon-registry-13a3b98e.mjs.map +1 -0
- package/fesm2022/icon.mjs +11 -1016
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-1763d3a6.mjs +22 -0
- package/fesm2022/index-1763d3a6.mjs.map +1 -0
- package/fesm2022/index-4bc1d6d3.mjs +20 -0
- package/fesm2022/index-4bc1d6d3.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +5 -113
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-e68bb132.mjs +115 -0
- package/fesm2022/input-harness-e68bb132.mjs.map +1 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs +12 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs.map +1 -0
- package/fesm2022/input.mjs +21 -23
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-434c4039.mjs +27 -0
- package/fesm2022/internal-form-field-434c4039.mjs.map +1 -0
- package/fesm2022/line-d6afe347.mjs +59 -0
- package/fesm2022/line-d6afe347.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +2 -2
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +59 -56
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +37 -25
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/module-1c16a0a9.mjs +1293 -0
- package/fesm2022/module-1c16a0a9.mjs.map +1 -0
- package/fesm2022/module-47e3be58.mjs +970 -0
- package/fesm2022/module-47e3be58.mjs.map +1 -0
- package/fesm2022/module-a5f9ab72.mjs +875 -0
- package/fesm2022/module-a5f9ab72.mjs.map +1 -0
- package/fesm2022/module-cf951a02.mjs +214 -0
- package/fesm2022/module-cf951a02.mjs.map +1 -0
- package/fesm2022/module-d757bba0.mjs +38 -0
- package/fesm2022/module-d757bba0.mjs.map +1 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs +36 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +1 -0
- package/fesm2022/option-07c3c660.mjs +348 -0
- package/fesm2022/option-07c3c660.mjs.map +1 -0
- package/fesm2022/option-harness-3b7c1106.mjs +46 -0
- package/fesm2022/option-harness-3b7c1106.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +52 -22
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs +0 -4
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +15 -13
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs +0 -4
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +15 -13
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs +52 -0
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs.map +1 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs +20 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs.map +1 -0
- package/fesm2022/public-api-c5ab57f5.mjs +147 -0
- package/fesm2022/public-api-c5ab57f5.mjs.map +1 -0
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +23 -15
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-9939d1f5.mjs +639 -0
- package/fesm2022/ripple-9939d1f5.mjs.map +1 -0
- package/fesm2022/ripple-loader-f2078c66.mjs +165 -0
- package/fesm2022/ripple-loader-f2078c66.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +5 -121
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select-harness-69d47123.mjs +123 -0
- package/fesm2022/select-harness-69d47123.mjs.map +1 -0
- package/fesm2022/select.mjs +30 -1311
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +31 -31
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +27 -75
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +27 -23
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +38 -30
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +26 -20
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +52 -39
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-d5ada3b3.mjs +18 -0
- package/fesm2022/structural-styles-d5ada3b3.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +58 -60
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +54 -58
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +37 -26
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -15
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +15 -960
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +28 -30
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +16 -16
- package/form-field/index.d.ts +16 -508
- package/form-field/testing/control/index.d.ts +2 -10
- package/form-field/testing/index.d.ts +19 -24
- package/form-field-control-harness.d-2d91f25a.d.ts +10 -0
- package/form-field-control.d-eb86711c.d.ts +62 -0
- package/form-field.d-2edbc094.d.ts +367 -0
- package/grid-list/_grid-list-theme.scss +1 -1
- package/grid-list/index.d.ts +128 -152
- package/grid-list/testing/index.d.ts +39 -44
- package/icon/_icon-theme.scss +2 -2
- package/icon/index.d.ts +9 -470
- package/icon/testing/index.d.ts +41 -44
- package/icon-module.d-aa3bbba0.d.ts +167 -0
- package/icon-registry.d-1dffe9de.d.ts +286 -0
- package/index.d-0536b706.d.ts +11 -0
- package/index.d-37e31cd3.d.ts +13 -0
- package/index.d.ts +2 -3
- package/input/index.d.ts +33 -62
- package/input/testing/index.d.ts +13 -71
- package/input-harness.d-4eecd1d3.d.ts +60 -0
- package/line.d-570a2537.d.ts +25 -0
- package/list/_list-theme.scss +15 -15
- package/list/index.d.ts +155 -244
- package/list/testing/index.d.ts +158 -180
- package/list-option-types.d-8739f903.d.ts +15 -0
- package/menu/_menu-theme.scss +3 -3
- package/menu/index.d.ts +183 -231
- package/menu/testing/index.d.ts +17 -23
- package/module.d-74a721b9.d.ts +326 -0
- package/module.d-792a497c.d.ts +213 -0
- package/module.d-ba05faa6.d.ts +448 -0
- package/module.d-c17c834e.d.ts +18 -0
- package/optgroup-harness.d-7f741f69.d.ts +31 -0
- package/option-harness.d-3d33fc9a.d.ts +34 -0
- package/option-parent.d-559ad5c5.d.ts +19 -0
- package/option.d-6f493d78.d.ts +146 -0
- package/package.json +2 -2
- package/paginator/_paginator-theme.scss +3 -3
- package/paginator/index.d.ts +31 -216
- package/paginator/testing/index.d.ts +14 -15
- package/paginator.d-40b1766e.d.ts +199 -0
- package/palette.d-ec4a617c.d.ts +4 -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-bar/_progress-bar-theme.scss +2 -2
- package/progress-bar/index.d.ts +40 -59
- package/progress-bar/testing/index.d.ts +7 -10
- package/progress-spinner/_progress-spinner-theme.scss +4 -4
- package/progress-spinner/index.d.ts +8 -110
- package/progress-spinner/testing/index.d.ts +10 -11
- package/progress-spinner.d-1fc040c5.d.ts +96 -0
- package/pseudo-checkbox-module.d-3abc0461.d.ts +44 -0
- package/radio/_radio-theme.scss +12 -12
- package/radio/index.d.ts +151 -170
- package/radio/testing/index.d.ts +61 -67
- package/ripple-loader.d-8aac2988.d.ts +48 -0
- package/ripple.d-2fb57d04.d.ts +255 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
- package/schematics/ng-generate/theme-color/schema.json +10 -0
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-update/index_bundled.js +31 -31
- package/select/_select-theme.scss +6 -6
- package/select/index.d.ts +25 -505
- package/select/testing/index.d.ts +5 -67
- package/select-harness.d-7441a7ac.d.ts +63 -0
- package/sidenav/_sidenav-theme.scss +2 -2
- package/sidenav/index.d.ts +49 -92
- package/sidenav/testing/index.d.ts +58 -63
- package/slide-toggle/_slide-toggle-theme.scss +10 -10
- package/slide-toggle/index.d.ts +39 -110
- package/slide-toggle/testing/index.d.ts +17 -21
- package/slider/_slider-theme.scss +10 -10
- package/slider/index.d.ts +281 -328
- package/slider/testing/index.d.ts +42 -47
- package/snack-bar/_snack-bar-theme.scss +4 -4
- package/snack-bar/index.d.ts +152 -185
- package/snack-bar/testing/index.d.ts +7 -9
- package/sort/_sort-theme.scss +3 -3
- package/sort/index.d.ts +61 -169
- package/sort/testing/index.d.ts +22 -25
- package/sort-direction.d-f4ce4649.d.ts +3 -0
- package/sort.d-c2b79a45.d.ts +87 -0
- package/stepper/_stepper-theme.scss +5 -5
- package/stepper/index.d.ts +115 -167
- package/stepper/testing/index.d.ts +43 -52
- package/table/_table-theme.scss +4 -4
- package/table/index.d.ts +97 -156
- package/table/testing/index.d.ts +64 -78
- package/tabs/_tabs-theme.scss +16 -16
- package/tabs/index.d.ts +309 -383
- package/tabs/testing/index.d.ts +67 -76
- package/timepicker/_timepicker-theme.scss +4 -4
- package/timepicker/index.d.ts +127 -160
- package/timepicker/testing/index.d.ts +20 -26
- package/toolbar/_toolbar-theme.scss +4 -4
- package/toolbar/index.d.ts +15 -26
- package/toolbar/testing/index.d.ts +13 -16
- package/tooltip/_tooltip-theme.scss +4 -4
- package/tooltip/index.d.ts +11 -355
- package/tooltip/testing/index.d.ts +7 -10
- package/tree/_tree-theme.scss +3 -3
- package/tree/index.d.ts +117 -163
- package/tree/testing/index.d.ts +52 -58
- /package/core/tokens/m3/definitions/{unused/_md-comp-filled-tonal-button.scss → _md-comp-filled-tonal-button.scss} +0 -0
package/tabs/index.d.ts
CHANGED
|
@@ -1,70 +1,139 @@
|
|
|
1
|
-
import { AfterContentChecked } from '@angular/core';
|
|
2
|
-
import { AfterContentInit } from '@angular/core';
|
|
3
|
-
import { AfterViewInit } from '@angular/core';
|
|
4
|
-
import { BehaviorSubject } from 'rxjs';
|
|
5
|
-
import { CdkPortal } from '@angular/cdk/portal';
|
|
6
|
-
import { CdkPortalOutlet } from '@angular/cdk/portal';
|
|
7
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
8
|
-
import { Direction } from '@angular/cdk/bidi';
|
|
9
|
-
import { ElementRef } from '@angular/core';
|
|
10
|
-
import { EventEmitter } from '@angular/core';
|
|
11
|
-
import { FocusableOption } from '@angular/cdk/a11y';
|
|
12
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
13
1
|
import * as i0 from '@angular/core';
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { RippleGlobalOptions } from '
|
|
22
|
-
import
|
|
23
|
-
import { SimpleChanges } from '@angular/core';
|
|
24
|
-
import { Subject } from 'rxjs';
|
|
25
|
-
import { TemplatePortal } from '@angular/cdk/portal';
|
|
26
|
-
import { TemplateRef } from '@angular/core';
|
|
27
|
-
import { ThemePalette } from '@angular/material/core';
|
|
2
|
+
import { InjectionToken, TemplateRef, OnInit, OnChanges, OnDestroy, SimpleChanges, QueryList, ElementRef, AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
4
|
+
import { CdkPortal, TemplatePortal, CdkPortalOutlet } from '@angular/cdk/portal';
|
|
5
|
+
import { Subject, BehaviorSubject } from 'rxjs';
|
|
6
|
+
import { FocusableOption, FocusOrigin } from '@angular/cdk/a11y';
|
|
7
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
8
|
+
import { T as ThemePalette } from '../palette.d-ec4a617c.js';
|
|
9
|
+
import { a as RippleTarget, f as RippleConfig, b as RippleGlobalOptions } from '../ripple.d-2fb57d04.js';
|
|
10
|
+
import '@angular/cdk/platform';
|
|
28
11
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Injection token that can be used to reference instances of `MatTabContent`. It serves as
|
|
14
|
+
* alternative token to the actual `MatTabContent` class which could cause unnecessary
|
|
15
|
+
* retention of the class and its directive metadata.
|
|
16
|
+
*/
|
|
17
|
+
declare const MAT_TAB_CONTENT: InjectionToken<MatTabContent>;
|
|
18
|
+
/** Decorates the `ng-template` tags and reads out the template from it. */
|
|
19
|
+
declare class MatTabContent {
|
|
20
|
+
template: TemplateRef<any>;
|
|
21
|
+
constructor(...args: unknown[]);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabContent, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabContent, "[matTabContent]", never, {}, {}, never, never, true, never>;
|
|
34
24
|
}
|
|
35
25
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Injection token that can be used to reference instances of `MatTabLabel`. It serves as
|
|
28
|
+
* alternative token to the actual `MatTabLabel` class which could cause unnecessary
|
|
29
|
+
* retention of the class and its directive metadata.
|
|
30
|
+
*/
|
|
31
|
+
declare const MAT_TAB_LABEL: InjectionToken<MatTabLabel>;
|
|
32
|
+
/**
|
|
33
|
+
* Used to provide a tab label to a tab without causing a circular dependency.
|
|
34
|
+
* @docs-private
|
|
35
|
+
*/
|
|
36
|
+
declare const MAT_TAB: InjectionToken<any>;
|
|
37
|
+
/** Used to flag tab labels for use with the portal directive */
|
|
38
|
+
declare class MatTabLabel extends CdkPortal {
|
|
39
|
+
_closestTab: any;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabLabel, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabLabel, "[mat-tab-label], [matTabLabel]", never, {}, {}, never, never, true, never>;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Used to provide a tab group to a tab without causing a circular dependency.
|
|
46
|
+
* @docs-private
|
|
47
|
+
*/
|
|
48
|
+
declare const MAT_TAB_GROUP: InjectionToken<any>;
|
|
49
|
+
declare class MatTab implements OnInit, OnChanges, OnDestroy {
|
|
50
|
+
private _viewContainerRef;
|
|
51
|
+
_closestTabGroup: any;
|
|
52
|
+
/** whether the tab is disabled. */
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
/** Content for the tab label given by `<ng-template mat-tab-label>`. */
|
|
55
|
+
get templateLabel(): MatTabLabel;
|
|
56
|
+
set templateLabel(value: MatTabLabel);
|
|
57
|
+
private _templateLabel;
|
|
58
|
+
/**
|
|
59
|
+
* Template provided in the tab content that will be used if present, used to enable lazy-loading
|
|
60
|
+
*/
|
|
61
|
+
private _explicitContent;
|
|
62
|
+
/** Template inside the MatTab view that contains an `<ng-content>`. */
|
|
63
|
+
_implicitContent: TemplateRef<any>;
|
|
64
|
+
/** Plain text label for the tab, used when there is no template label. */
|
|
65
|
+
textLabel: string;
|
|
66
|
+
/** Aria label for the tab. */
|
|
67
|
+
ariaLabel: string;
|
|
68
|
+
/**
|
|
69
|
+
* Reference to the element that the tab is labelled by.
|
|
70
|
+
* Will be cleared if `aria-label` is set at the same time.
|
|
71
|
+
*/
|
|
72
|
+
ariaLabelledby: string;
|
|
73
|
+
/** Classes to be passed to the tab label inside the mat-tab-header container. */
|
|
74
|
+
labelClass: string | string[];
|
|
75
|
+
/** Classes to be passed to the tab mat-tab-body container. */
|
|
76
|
+
bodyClass: string | string[];
|
|
77
|
+
/** Portal that will be the hosted content of the tab */
|
|
78
|
+
private _contentPortal;
|
|
79
|
+
/** @docs-private */
|
|
80
|
+
get content(): TemplatePortal | null;
|
|
81
|
+
/** Emits whenever the internal state of the tab changes. */
|
|
82
|
+
readonly _stateChanges: Subject<void>;
|
|
83
|
+
/**
|
|
84
|
+
* The relatively indexed position where 0 represents the center, negative is left, and positive
|
|
85
|
+
* represents the right.
|
|
86
|
+
*/
|
|
87
|
+
position: number | null;
|
|
88
|
+
/**
|
|
89
|
+
* The initial relatively index origin of the tab if it was created and selected after there
|
|
90
|
+
* was already a selected tab. Provides context of what position the tab should originate from.
|
|
91
|
+
*/
|
|
92
|
+
origin: number | null;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the tab is currently active.
|
|
95
|
+
*/
|
|
96
|
+
isActive: boolean;
|
|
97
|
+
constructor(...args: unknown[]);
|
|
98
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
99
|
+
ngOnDestroy(): void;
|
|
100
|
+
ngOnInit(): void;
|
|
101
|
+
/**
|
|
102
|
+
* This has been extracted to a util because of TS 4 and VE.
|
|
103
|
+
* View Engine doesn't support property rename inheritance.
|
|
104
|
+
* TS 4.0 doesn't allow properties to override accessors or vice-versa.
|
|
105
|
+
* @docs-private
|
|
106
|
+
*/
|
|
107
|
+
private _setTemplateLabelInput;
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTab, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatTab, "mat-tab", ["matTab"], { "disabled": { "alias": "disabled"; "required": false; }; "textLabel": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "bodyClass": { "alias": "bodyClass"; "required": false; }; }, {}, ["templateLabel", "_explicitContent"], ["*"], true, never>;
|
|
110
|
+
static ngAcceptInputType_disabled: unknown;
|
|
49
111
|
}
|
|
50
112
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Item inside a tab header relative to which the ink bar can be aligned.
|
|
115
|
+
* @docs-private
|
|
116
|
+
*/
|
|
117
|
+
interface MatInkBarItem extends OnInit, OnDestroy {
|
|
118
|
+
elementRef: ElementRef<HTMLElement>;
|
|
119
|
+
activateInkBar(previousIndicatorClientRect?: DOMRect): void;
|
|
120
|
+
deactivateInkBar(): void;
|
|
121
|
+
fitInkBarToContent: boolean;
|
|
58
122
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Abstraction around the MDC tab indicator that acts as the tab header's ink bar.
|
|
125
|
+
* @docs-private
|
|
126
|
+
*/
|
|
127
|
+
declare class MatInkBar {
|
|
128
|
+
private _items;
|
|
129
|
+
/** Item to which the ink bar is aligned currently. */
|
|
130
|
+
private _currentItem;
|
|
131
|
+
constructor(_items: QueryList<MatInkBarItem>);
|
|
132
|
+
/** Hides the ink bar. */
|
|
133
|
+
hide(): void;
|
|
134
|
+
/** Aligns the ink bar to a DOM node. */
|
|
135
|
+
alignToElement(element: HTMLElement): void;
|
|
66
136
|
}
|
|
67
|
-
|
|
68
137
|
declare abstract class InkBarItem implements OnInit, OnDestroy {
|
|
69
138
|
private _elementRef;
|
|
70
139
|
private _inkBarElement;
|
|
@@ -92,87 +161,58 @@ declare abstract class InkBarItem implements OnInit, OnDestroy {
|
|
|
92
161
|
static ɵdir: i0.ɵɵDirectiveDeclaration<InkBarItem, never, never, { "fitInkBarToContent": { "alias": "fitInkBarToContent"; "required": false; }; }, {}, never, never, true, never>;
|
|
93
162
|
static ngAcceptInputType_fitInkBarToContent: unknown;
|
|
94
163
|
}
|
|
95
|
-
|
|
96
|
-
/** Injection token for the MatInkBar's Positioner. */
|
|
97
|
-
export declare const _MAT_INK_BAR_POSITIONER: InjectionToken<_MatInkBarPositioner>;
|
|
98
|
-
|
|
99
164
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
export declare function _MAT_INK_BAR_POSITIONER_FACTORY(): _MatInkBarPositioner;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Used to provide a tab label to a tab without causing a circular dependency.
|
|
107
|
-
* @docs-private
|
|
108
|
-
*/
|
|
109
|
-
export declare const MAT_TAB: InjectionToken<any>;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Injection token that can be used to reference instances of `MatTabContent`. It serves as
|
|
113
|
-
* alternative token to the actual `MatTabContent` class which could cause unnecessary
|
|
114
|
-
* retention of the class and its directive metadata.
|
|
115
|
-
*/
|
|
116
|
-
export declare const MAT_TAB_CONTENT: InjectionToken<MatTabContent>;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Used to provide a tab group to a tab without causing a circular dependency.
|
|
120
|
-
* @docs-private
|
|
121
|
-
*/
|
|
122
|
-
export declare const MAT_TAB_GROUP: InjectionToken<any>;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Injection token that can be used to reference instances of `MatTabLabel`. It serves as
|
|
126
|
-
* alternative token to the actual `MatTabLabel` class which could cause unnecessary
|
|
127
|
-
* retention of the class and its directive metadata.
|
|
165
|
+
* Interface for a MatInkBar positioner method, defining the positioning and width of the ink
|
|
166
|
+
* bar in a set of tabs.
|
|
128
167
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
168
|
+
interface _MatInkBarPositioner {
|
|
169
|
+
(element: HTMLElement): {
|
|
170
|
+
left: string;
|
|
171
|
+
width: string;
|
|
172
|
+
};
|
|
173
|
+
}
|
|
134
174
|
/**
|
|
135
|
-
*
|
|
175
|
+
* The default positioner function for the MatInkBar.
|
|
136
176
|
* @docs-private
|
|
177
|
+
* @deprecated No longer used, will be removed.
|
|
178
|
+
* @breaking-change 21.0.0
|
|
137
179
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
private _currentItem;
|
|
142
|
-
constructor(_items: QueryList<MatInkBarItem>);
|
|
143
|
-
/** Hides the ink bar. */
|
|
144
|
-
hide(): void;
|
|
145
|
-
/** Aligns the ink bar to a DOM node. */
|
|
146
|
-
alignToElement(element: HTMLElement): void;
|
|
147
|
-
}
|
|
180
|
+
declare function _MAT_INK_BAR_POSITIONER_FACTORY(): _MatInkBarPositioner;
|
|
181
|
+
/** Injection token for the MatInkBar's Positioner. */
|
|
182
|
+
declare const _MAT_INK_BAR_POSITIONER: InjectionToken<_MatInkBarPositioner>;
|
|
148
183
|
|
|
149
184
|
/**
|
|
150
|
-
*
|
|
185
|
+
* Used in the `mat-tab-group` view to display tab labels.
|
|
151
186
|
* @docs-private
|
|
152
187
|
*/
|
|
153
|
-
declare
|
|
154
|
-
elementRef: ElementRef<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
188
|
+
declare class MatTabLabelWrapper extends InkBarItem {
|
|
189
|
+
elementRef: ElementRef<any>;
|
|
190
|
+
/** Whether the tab is disabled. */
|
|
191
|
+
disabled: boolean;
|
|
192
|
+
/** Sets focus on the wrapper element */
|
|
193
|
+
focus(): void;
|
|
194
|
+
getOffsetLeft(): number;
|
|
195
|
+
getOffsetWidth(): number;
|
|
196
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabLabelWrapper, never>;
|
|
197
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabLabelWrapper, "[matTabLabelWrapper]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
198
|
+
static ngAcceptInputType_disabled: unknown;
|
|
158
199
|
}
|
|
159
200
|
|
|
160
201
|
/**
|
|
161
|
-
*
|
|
162
|
-
*
|
|
202
|
+
* The directions that scrolling can go in when the header's tabs exceed the header width. 'After'
|
|
203
|
+
* will scroll the header towards the end of the tabs list and 'before' will scroll towards the
|
|
204
|
+
* beginning of the list.
|
|
163
205
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
206
|
+
type ScrollDirection = 'after' | 'before';
|
|
207
|
+
/** Item inside a paginated tab header. */
|
|
208
|
+
type MatPaginatedTabHeaderItem = FocusableOption & {
|
|
209
|
+
elementRef: ElementRef;
|
|
210
|
+
};
|
|
171
211
|
/**
|
|
172
212
|
* Base class for a tab header that supported pagination.
|
|
173
213
|
* @docs-private
|
|
174
214
|
*/
|
|
175
|
-
|
|
215
|
+
declare abstract class MatPaginatedTabHeader implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {
|
|
176
216
|
protected _elementRef: ElementRef<HTMLElement>;
|
|
177
217
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
178
218
|
private _viewportRuler;
|
|
@@ -346,80 +386,81 @@ export declare abstract class MatPaginatedTabHeader implements AfterContentCheck
|
|
|
346
386
|
static ngAcceptInputType_selectedIndex: unknown;
|
|
347
387
|
}
|
|
348
388
|
|
|
349
|
-
/**
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
*/
|
|
366
|
-
private _explicitContent;
|
|
367
|
-
/** Template inside the MatTab view that contains an `<ng-content>`. */
|
|
368
|
-
_implicitContent: TemplateRef<any>;
|
|
369
|
-
/** Plain text label for the tab, used when there is no template label. */
|
|
370
|
-
textLabel: string;
|
|
371
|
-
/** Aria label for the tab. */
|
|
389
|
+
/**
|
|
390
|
+
* The header of the tab group which displays a list of all the tabs in the tab group. Includes
|
|
391
|
+
* an ink bar that follows the currently selected tab. When the tabs list's width exceeds the
|
|
392
|
+
* width of the header container, then arrows will be displayed to allow the user to scroll
|
|
393
|
+
* left and right across the header.
|
|
394
|
+
* @docs-private
|
|
395
|
+
*/
|
|
396
|
+
declare class MatTabHeader extends MatPaginatedTabHeader implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {
|
|
397
|
+
_items: QueryList<MatTabLabelWrapper>;
|
|
398
|
+
_tabListContainer: ElementRef;
|
|
399
|
+
_tabList: ElementRef;
|
|
400
|
+
_tabListInner: ElementRef;
|
|
401
|
+
_nextPaginator: ElementRef<HTMLElement>;
|
|
402
|
+
_previousPaginator: ElementRef<HTMLElement>;
|
|
403
|
+
_inkBar: MatInkBar;
|
|
404
|
+
/** Aria label of the header. */
|
|
372
405
|
ariaLabel: string;
|
|
373
|
-
/**
|
|
374
|
-
* Reference to the element that the tab is labelled by.
|
|
375
|
-
* Will be cleared if `aria-label` is set at the same time.
|
|
376
|
-
*/
|
|
406
|
+
/** Sets the `aria-labelledby` of the header. */
|
|
377
407
|
ariaLabelledby: string;
|
|
378
|
-
/**
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
origin: number | null;
|
|
398
|
-
/**
|
|
399
|
-
* Whether the tab is currently active.
|
|
400
|
-
*/
|
|
401
|
-
isActive: boolean;
|
|
408
|
+
/** Whether the ripple effect is disabled or not. */
|
|
409
|
+
disableRipple: boolean;
|
|
410
|
+
ngAfterContentInit(): void;
|
|
411
|
+
protected _itemSelected(event: KeyboardEvent): void;
|
|
412
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabHeader, never>;
|
|
413
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabHeader, "mat-tab-header", never, { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, ["_items"], ["*"], true, never>;
|
|
414
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* The portal host directive for the contents of the tab.
|
|
419
|
+
* @docs-private
|
|
420
|
+
*/
|
|
421
|
+
declare class MatTabBodyPortal extends CdkPortalOutlet implements OnInit, OnDestroy {
|
|
422
|
+
private _host;
|
|
423
|
+
/** Subscription to events for when the tab body begins centering. */
|
|
424
|
+
private _centeringSub;
|
|
425
|
+
/** Subscription to events for when the tab body finishes leaving from center position. */
|
|
426
|
+
private _leavingSub;
|
|
402
427
|
constructor(...args: unknown[]);
|
|
403
|
-
|
|
404
|
-
ngOnDestroy(): void;
|
|
428
|
+
/** Set initial visibility or set up subscription for changing visibility. */
|
|
405
429
|
ngOnInit(): void;
|
|
406
|
-
/**
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
* @docs-private
|
|
411
|
-
*/
|
|
412
|
-
private _setTemplateLabelInput;
|
|
413
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatTab, never>;
|
|
414
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatTab, "mat-tab", ["matTab"], { "disabled": { "alias": "disabled"; "required": false; }; "textLabel": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "bodyClass": { "alias": "bodyClass"; "required": false; }; }, {}, ["templateLabel", "_explicitContent"], ["*"], true, never>;
|
|
415
|
-
static ngAcceptInputType_disabled: unknown;
|
|
430
|
+
/** Clean up centering subscription. */
|
|
431
|
+
ngOnDestroy(): void;
|
|
432
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabBodyPortal, never>;
|
|
433
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabBodyPortal, "[matTabBodyHost]", never, {}, {}, never, never, true, never>;
|
|
416
434
|
}
|
|
417
|
-
|
|
435
|
+
/**
|
|
436
|
+
* These position states are used internally as animation states for the tab body. Setting the
|
|
437
|
+
* position state to left, right, or center will transition the tab body from its current
|
|
438
|
+
* position to its respective state. If there is not current position (void, in the case of a new
|
|
439
|
+
* tab body), then there will be no transition animation to its state.
|
|
440
|
+
*
|
|
441
|
+
* In the case of a new tab body that should immediately be centered with an animating transition,
|
|
442
|
+
* then left-origin-center or right-origin-center can be used, which will use left or right as its
|
|
443
|
+
* pseudo-prior state.
|
|
444
|
+
*
|
|
445
|
+
* @deprecated Will stop being exported.
|
|
446
|
+
* @breaking-change 21.0.0
|
|
447
|
+
*/
|
|
448
|
+
type MatTabBodyPositionState = 'left' | 'center' | 'right';
|
|
449
|
+
/**
|
|
450
|
+
* The origin state is an internally used state that is set on a new tab body indicating if it
|
|
451
|
+
* began to the left or right of the prior selected index. For example, if the selected index was
|
|
452
|
+
* set to 1, and a new tab is created and selected at index 2, then the tab body would have an
|
|
453
|
+
* origin of right because its index was greater than the prior selected index.
|
|
454
|
+
*
|
|
455
|
+
* @deprecated No longer being used. Will be removed.
|
|
456
|
+
* @breaking-change 21.0.0
|
|
457
|
+
*/
|
|
458
|
+
type MatTabBodyOriginState = 'left' | 'right';
|
|
418
459
|
/**
|
|
419
460
|
* Wrapper for the contents of a tab.
|
|
420
461
|
* @docs-private
|
|
421
462
|
*/
|
|
422
|
-
|
|
463
|
+
declare class MatTabBody implements OnInit, OnDestroy {
|
|
423
464
|
private _elementRef;
|
|
424
465
|
private _dir;
|
|
425
466
|
private _ngZone;
|
|
@@ -482,73 +523,20 @@ export declare class MatTabBody implements OnInit, OnDestroy {
|
|
|
482
523
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabBody, "mat-tab-body", never, { "_content": { "alias": "content"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "preserveContent": { "alias": "preserveContent"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "_onCentering": "_onCentering"; "_beforeCentering": "_beforeCentering"; "_onCentered": "_onCentered"; }, never, never, true, never>;
|
|
483
524
|
}
|
|
484
525
|
|
|
485
|
-
/**
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
*
|
|
491
|
-
* @deprecated No longer being used. Will be removed.
|
|
492
|
-
* @breaking-change 21.0.0
|
|
493
|
-
*/
|
|
494
|
-
export declare type MatTabBodyOriginState = 'left' | 'right';
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* The portal host directive for the contents of the tab.
|
|
498
|
-
* @docs-private
|
|
499
|
-
*/
|
|
500
|
-
export declare class MatTabBodyPortal extends CdkPortalOutlet implements OnInit, OnDestroy {
|
|
501
|
-
private _host;
|
|
502
|
-
/** Subscription to events for when the tab body begins centering. */
|
|
503
|
-
private _centeringSub;
|
|
504
|
-
/** Subscription to events for when the tab body finishes leaving from center position. */
|
|
505
|
-
private _leavingSub;
|
|
506
|
-
constructor(...args: unknown[]);
|
|
507
|
-
/** Set initial visibility or set up subscription for changing visibility. */
|
|
508
|
-
ngOnInit(): void;
|
|
509
|
-
/** Clean up centering subscription. */
|
|
510
|
-
ngOnDestroy(): void;
|
|
511
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabBodyPortal, never>;
|
|
512
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabBodyPortal, "[matTabBodyHost]", never, {}, {}, never, never, true, never>;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* These position states are used internally as animation states for the tab body. Setting the
|
|
517
|
-
* position state to left, right, or center will transition the tab body from its current
|
|
518
|
-
* position to its respective state. If there is not current position (void, in the case of a new
|
|
519
|
-
* tab body), then there will be no transition animation to its state.
|
|
520
|
-
*
|
|
521
|
-
* In the case of a new tab body that should immediately be centered with an animating transition,
|
|
522
|
-
* then left-origin-center or right-origin-center can be used, which will use left or right as its
|
|
523
|
-
* pseudo-prior state.
|
|
524
|
-
*
|
|
525
|
-
* @deprecated Will stop being exported.
|
|
526
|
-
* @breaking-change 21.0.0
|
|
527
|
-
*/
|
|
528
|
-
export declare type MatTabBodyPositionState = 'left' | 'center' | 'right';
|
|
529
|
-
|
|
530
|
-
/** A simple change event emitted on focus or selection changes. */
|
|
531
|
-
export declare class MatTabChangeEvent {
|
|
532
|
-
/** Index of the currently-selected tab. */
|
|
533
|
-
index: number;
|
|
534
|
-
/** Reference to the currently-selected tab. */
|
|
535
|
-
tab: MatTab;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/** Decorates the `ng-template` tags and reads out the template from it. */
|
|
539
|
-
export declare class MatTabContent {
|
|
540
|
-
template: TemplateRef<any>;
|
|
541
|
-
constructor(...args: unknown[]);
|
|
542
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabContent, never>;
|
|
543
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabContent, "[matTabContent]", never, {}, {}, never, never, true, never>;
|
|
526
|
+
/** @docs-private */
|
|
527
|
+
interface MatTabGroupBaseHeader {
|
|
528
|
+
_alignInkBarToSelectedTab(): void;
|
|
529
|
+
updatePagination(): void;
|
|
530
|
+
focusIndex: number;
|
|
544
531
|
}
|
|
545
|
-
|
|
532
|
+
/** Possible positions for the tab header. */
|
|
533
|
+
type MatTabHeaderPosition = 'above' | 'below';
|
|
546
534
|
/**
|
|
547
535
|
* Material design tab-group component. Supports basic tab pairs (label + content) and includes
|
|
548
536
|
* animated ink-bar, keyboard navigation, and screen reader.
|
|
549
537
|
* See: https://material.io/design/components/tabs.html
|
|
550
538
|
*/
|
|
551
|
-
|
|
539
|
+
declare class MatTabGroup implements AfterViewInit, AfterContentInit, AfterContentChecked, OnDestroy {
|
|
552
540
|
readonly _elementRef: ElementRef<any>;
|
|
553
541
|
private _changeDetectorRef;
|
|
554
542
|
private _ngZone;
|
|
@@ -722,73 +710,79 @@ export declare class MatTabGroup implements AfterViewInit, AfterContentInit, Aft
|
|
|
722
710
|
static ngAcceptInputType_disableRipple: unknown;
|
|
723
711
|
static ngAcceptInputType_preserveContent: unknown;
|
|
724
712
|
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
713
|
+
/** A simple change event emitted on focus or selection changes. */
|
|
714
|
+
declare class MatTabChangeEvent {
|
|
715
|
+
/** Index of the currently-selected tab. */
|
|
716
|
+
index: number;
|
|
717
|
+
/** Reference to the currently-selected tab. */
|
|
718
|
+
tab: MatTab;
|
|
731
719
|
}
|
|
732
720
|
|
|
733
721
|
/**
|
|
734
|
-
*
|
|
735
|
-
*
|
|
736
|
-
* width of the header container, then arrows will be displayed to allow the user to scroll
|
|
737
|
-
* left and right across the header.
|
|
738
|
-
* @docs-private
|
|
722
|
+
* Navigation component matching the styles of the tab group header.
|
|
723
|
+
* Provides anchored navigation with animated ink bar.
|
|
739
724
|
*/
|
|
740
|
-
|
|
741
|
-
|
|
725
|
+
declare class MatTabNav extends MatPaginatedTabHeader implements AfterContentInit, AfterViewInit {
|
|
726
|
+
/** Whether the ink bar should fit its width to the size of the tab label content. */
|
|
727
|
+
get fitInkBarToContent(): boolean;
|
|
728
|
+
set fitInkBarToContent(value: boolean);
|
|
729
|
+
_fitInkBarToContent: BehaviorSubject<boolean>;
|
|
730
|
+
/** Whether tabs should be stretched to fill the header. */
|
|
731
|
+
stretchTabs: boolean;
|
|
732
|
+
get animationDuration(): string;
|
|
733
|
+
set animationDuration(value: string | number);
|
|
734
|
+
private _animationDuration;
|
|
735
|
+
/** Query list of all tab links of the tab navigation. */
|
|
736
|
+
_items: QueryList<MatTabLink>;
|
|
737
|
+
/**
|
|
738
|
+
* Theme color of the background of the tab nav. This API is supported in M2 themes only, it
|
|
739
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/tabs/styling.
|
|
740
|
+
*
|
|
741
|
+
* For information on applying color variants in M3, see
|
|
742
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
743
|
+
*/
|
|
744
|
+
get backgroundColor(): ThemePalette;
|
|
745
|
+
set backgroundColor(value: ThemePalette);
|
|
746
|
+
private _backgroundColor;
|
|
747
|
+
/** Whether the ripple effect is disabled or not. */
|
|
748
|
+
disableRipple: boolean;
|
|
749
|
+
/**
|
|
750
|
+
* Theme color of the nav bar. This API is supported in M2 themes only, it has
|
|
751
|
+
* no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/tabs/styling.
|
|
752
|
+
*
|
|
753
|
+
* For information on applying color variants in M3, see
|
|
754
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
755
|
+
*/
|
|
756
|
+
color: ThemePalette;
|
|
757
|
+
/**
|
|
758
|
+
* Associated tab panel controlled by the nav bar. If not provided, then the nav bar
|
|
759
|
+
* follows the ARIA link / navigation landmark pattern. If provided, it follows the
|
|
760
|
+
* ARIA tabs design pattern.
|
|
761
|
+
*/
|
|
762
|
+
tabPanel?: MatTabNavPanel;
|
|
742
763
|
_tabListContainer: ElementRef;
|
|
743
764
|
_tabList: ElementRef;
|
|
744
765
|
_tabListInner: ElementRef;
|
|
745
766
|
_nextPaginator: ElementRef<HTMLElement>;
|
|
746
767
|
_previousPaginator: ElementRef<HTMLElement>;
|
|
747
768
|
_inkBar: MatInkBar;
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
/** Sets the `aria-labelledby` of the header. */
|
|
751
|
-
ariaLabelledby: string;
|
|
752
|
-
/** Whether the ripple effect is disabled or not. */
|
|
753
|
-
disableRipple: boolean;
|
|
769
|
+
constructor(...args: unknown[]);
|
|
770
|
+
protected _itemSelected(): void;
|
|
754
771
|
ngAfterContentInit(): void;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
772
|
+
ngAfterViewInit(): void;
|
|
773
|
+
/** Notifies the component that the active link has been changed. */
|
|
774
|
+
updateActiveLink(): void;
|
|
775
|
+
_getRole(): string | null;
|
|
776
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabNav, never>;
|
|
777
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabNav, "[mat-tab-nav-bar]", ["matTabNavBar", "matTabNav"], { "fitInkBarToContent": { "alias": "fitInkBarToContent"; "required": false; }; "stretchTabs": { "alias": "mat-stretch-tabs"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tabPanel": { "alias": "tabPanel"; "required": false; }; }, {}, ["_items"], ["*"], true, never>;
|
|
778
|
+
static ngAcceptInputType_fitInkBarToContent: unknown;
|
|
779
|
+
static ngAcceptInputType_stretchTabs: unknown;
|
|
758
780
|
static ngAcceptInputType_disableRipple: unknown;
|
|
759
781
|
}
|
|
760
|
-
|
|
761
|
-
/** Possible positions for the tab header. */
|
|
762
|
-
export declare type MatTabHeaderPosition = 'above' | 'below';
|
|
763
|
-
|
|
764
|
-
/** Used to flag tab labels for use with the portal directive */
|
|
765
|
-
export declare class MatTabLabel extends CdkPortal {
|
|
766
|
-
_closestTab: any;
|
|
767
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabLabel, never>;
|
|
768
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabLabel, "[mat-tab-label], [matTabLabel]", never, {}, {}, never, never, true, never>;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
/**
|
|
772
|
-
* Used in the `mat-tab-group` view to display tab labels.
|
|
773
|
-
* @docs-private
|
|
774
|
-
*/
|
|
775
|
-
export declare class MatTabLabelWrapper extends InkBarItem {
|
|
776
|
-
elementRef: ElementRef<any>;
|
|
777
|
-
/** Whether the tab is disabled. */
|
|
778
|
-
disabled: boolean;
|
|
779
|
-
/** Sets focus on the wrapper element */
|
|
780
|
-
focus(): void;
|
|
781
|
-
getOffsetLeft(): number;
|
|
782
|
-
getOffsetWidth(): number;
|
|
783
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabLabelWrapper, never>;
|
|
784
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabLabelWrapper, "[matTabLabelWrapper]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
785
|
-
static ngAcceptInputType_disabled: unknown;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
782
|
/**
|
|
789
783
|
* Link inside a `mat-tab-nav-bar`.
|
|
790
784
|
*/
|
|
791
|
-
|
|
785
|
+
declare class MatTabLink extends InkBarItem implements AfterViewInit, OnDestroy, RippleTarget, FocusableOption {
|
|
792
786
|
private _tabNavBar;
|
|
793
787
|
elementRef: ElementRef<any>;
|
|
794
788
|
private _focusMonitor;
|
|
@@ -836,73 +830,10 @@ export declare class MatTabLink extends InkBarItem implements AfterViewInit, OnD
|
|
|
836
830
|
static ngAcceptInputType_disableRipple: unknown;
|
|
837
831
|
static ngAcceptInputType_tabIndex: unknown;
|
|
838
832
|
}
|
|
839
|
-
|
|
840
|
-
/**
|
|
841
|
-
* Navigation component matching the styles of the tab group header.
|
|
842
|
-
* Provides anchored navigation with animated ink bar.
|
|
843
|
-
*/
|
|
844
|
-
export declare class MatTabNav extends MatPaginatedTabHeader implements AfterContentInit, AfterViewInit {
|
|
845
|
-
/** Whether the ink bar should fit its width to the size of the tab label content. */
|
|
846
|
-
get fitInkBarToContent(): boolean;
|
|
847
|
-
set fitInkBarToContent(value: boolean);
|
|
848
|
-
_fitInkBarToContent: BehaviorSubject<boolean>;
|
|
849
|
-
/** Whether tabs should be stretched to fill the header. */
|
|
850
|
-
stretchTabs: boolean;
|
|
851
|
-
get animationDuration(): string;
|
|
852
|
-
set animationDuration(value: string | number);
|
|
853
|
-
private _animationDuration;
|
|
854
|
-
/** Query list of all tab links of the tab navigation. */
|
|
855
|
-
_items: QueryList<MatTabLink>;
|
|
856
|
-
/**
|
|
857
|
-
* Theme color of the background of the tab nav. This API is supported in M2 themes only, it
|
|
858
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/tabs/styling.
|
|
859
|
-
*
|
|
860
|
-
* For information on applying color variants in M3, see
|
|
861
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
862
|
-
*/
|
|
863
|
-
get backgroundColor(): ThemePalette;
|
|
864
|
-
set backgroundColor(value: ThemePalette);
|
|
865
|
-
private _backgroundColor;
|
|
866
|
-
/** Whether the ripple effect is disabled or not. */
|
|
867
|
-
disableRipple: boolean;
|
|
868
|
-
/**
|
|
869
|
-
* Theme color of the nav bar. This API is supported in M2 themes only, it has
|
|
870
|
-
* no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/tabs/styling.
|
|
871
|
-
*
|
|
872
|
-
* For information on applying color variants in M3, see
|
|
873
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
874
|
-
*/
|
|
875
|
-
color: ThemePalette;
|
|
876
|
-
/**
|
|
877
|
-
* Associated tab panel controlled by the nav bar. If not provided, then the nav bar
|
|
878
|
-
* follows the ARIA link / navigation landmark pattern. If provided, it follows the
|
|
879
|
-
* ARIA tabs design pattern.
|
|
880
|
-
*/
|
|
881
|
-
tabPanel?: MatTabNavPanel;
|
|
882
|
-
_tabListContainer: ElementRef;
|
|
883
|
-
_tabList: ElementRef;
|
|
884
|
-
_tabListInner: ElementRef;
|
|
885
|
-
_nextPaginator: ElementRef<HTMLElement>;
|
|
886
|
-
_previousPaginator: ElementRef<HTMLElement>;
|
|
887
|
-
_inkBar: MatInkBar;
|
|
888
|
-
constructor(...args: unknown[]);
|
|
889
|
-
protected _itemSelected(): void;
|
|
890
|
-
ngAfterContentInit(): void;
|
|
891
|
-
ngAfterViewInit(): void;
|
|
892
|
-
/** Notifies the component that the active link has been changed. */
|
|
893
|
-
updateActiveLink(): void;
|
|
894
|
-
_getRole(): string | null;
|
|
895
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabNav, never>;
|
|
896
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabNav, "[mat-tab-nav-bar]", ["matTabNavBar", "matTabNav"], { "fitInkBarToContent": { "alias": "fitInkBarToContent"; "required": false; }; "stretchTabs": { "alias": "mat-stretch-tabs"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tabPanel": { "alias": "tabPanel"; "required": false; }; }, {}, ["_items"], ["*"], true, never>;
|
|
897
|
-
static ngAcceptInputType_fitInkBarToContent: unknown;
|
|
898
|
-
static ngAcceptInputType_stretchTabs: unknown;
|
|
899
|
-
static ngAcceptInputType_disableRipple: unknown;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
833
|
/**
|
|
903
834
|
* Tab panel component associated with MatTabNav.
|
|
904
835
|
*/
|
|
905
|
-
|
|
836
|
+
declare class MatTabNavPanel {
|
|
906
837
|
/** Unique id for the tab panel. */
|
|
907
838
|
id: string;
|
|
908
839
|
/** Id of the active tab in the nav bar. */
|
|
@@ -911,18 +842,14 @@ export declare class MatTabNavPanel {
|
|
|
911
842
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabNavPanel, "mat-tab-nav-panel", ["matTabNavPanel"], { "id": { "alias": "id"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
912
843
|
}
|
|
913
844
|
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
*/
|
|
920
|
-
export declare const matTabsAnimations: {
|
|
921
|
-
readonly translateTab: any;
|
|
922
|
-
};
|
|
845
|
+
declare class MatTabsModule {
|
|
846
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabsModule, never>;
|
|
847
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTabsModule, never, [typeof MatCommonModule, typeof MatTabContent, typeof MatTabLabel, typeof MatTab, typeof MatTabGroup, typeof MatTabNav, typeof MatTabNavPanel, typeof MatTabLink], [typeof MatCommonModule, typeof MatTabContent, typeof MatTabLabel, typeof MatTab, typeof MatTabGroup, typeof MatTabNav, typeof MatTabNavPanel, typeof MatTabLink]>;
|
|
848
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatTabsModule>;
|
|
849
|
+
}
|
|
923
850
|
|
|
924
851
|
/** Object that can be used to configure the default options for the tabs module. */
|
|
925
|
-
|
|
852
|
+
interface MatTabsConfig {
|
|
926
853
|
/** Duration for the tab animation. Must be a valid CSS value (e.g. 600ms). */
|
|
927
854
|
animationDuration?: string;
|
|
928
855
|
/**
|
|
@@ -950,18 +877,17 @@ export declare interface MatTabsConfig {
|
|
|
950
877
|
/** Alignment for the tabs label. */
|
|
951
878
|
alignTabs?: 'start' | 'center' | 'end';
|
|
952
879
|
}
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabsModule, never>;
|
|
956
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTabsModule, never, [typeof i1.MatCommonModule, typeof i2.MatTabContent, typeof i3.MatTabLabel, typeof i4.MatTab, typeof i5.MatTabGroup, typeof i6.MatTabNav, typeof i6.MatTabNavPanel, typeof i6.MatTabLink], [typeof i1.MatCommonModule, typeof i2.MatTabContent, typeof i3.MatTabLabel, typeof i4.MatTab, typeof i5.MatTabGroup, typeof i6.MatTabNav, typeof i6.MatTabNavPanel, typeof i6.MatTabLink]>;
|
|
957
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatTabsModule>;
|
|
958
|
-
}
|
|
880
|
+
/** Injection token that can be used to provide the default options the tabs module. */
|
|
881
|
+
declare const MAT_TABS_CONFIG: InjectionToken<MatTabsConfig>;
|
|
959
882
|
|
|
960
883
|
/**
|
|
961
|
-
*
|
|
962
|
-
*
|
|
963
|
-
*
|
|
884
|
+
* Animations used by the Material tabs.
|
|
885
|
+
* @docs-private
|
|
886
|
+
* @deprecated No longer used, will be removed.
|
|
887
|
+
* @breaking-change 21.0.0.
|
|
964
888
|
*/
|
|
965
|
-
|
|
889
|
+
declare const matTabsAnimations: {
|
|
890
|
+
readonly translateTab: any;
|
|
891
|
+
};
|
|
966
892
|
|
|
967
|
-
export { }
|
|
893
|
+
export { MAT_TAB, MAT_TABS_CONFIG, MAT_TAB_CONTENT, MAT_TAB_GROUP, MAT_TAB_LABEL, MatInkBar, MatPaginatedTabHeader, MatTab, MatTabBody, type MatTabBodyOriginState, MatTabBodyPortal, type MatTabBodyPositionState, MatTabChangeEvent, MatTabContent, MatTabGroup, type MatTabGroupBaseHeader, MatTabHeader, type MatTabHeaderPosition, MatTabLabel, MatTabLabelWrapper, MatTabLink, MatTabNav, MatTabNavPanel, type MatTabsConfig, MatTabsModule, type ScrollDirection, _MAT_INK_BAR_POSITIONER, _MAT_INK_BAR_POSITIONER_FACTORY, type _MatInkBarPositioner, matTabsAnimations };
|