@angular/material 7.1.1 → 7.3.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/LICENSE +1 -1
- package/_theming.scss +32 -13
- package/autocomplete/typings/index.d.ts +0 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/autocomplete/typings/public-api.d.ts +1 -0
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-ref.d.ts +2 -0
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +18 -12
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +6 -0
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +12 -6
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +10 -2
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +1 -1
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +8 -4
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card.umd.js +1 -1
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js +1 -1
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +1 -1
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +20 -28
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +6 -6
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -2
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +9 -6
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +2 -2
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +41 -1
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +21 -5
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +68 -13
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +1 -1
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +6 -4
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +12 -0
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +8 -4
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +98 -11
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -2
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +35 -20
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +1 -1
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +2 -2
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +1 -1
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +1 -1
- package/bundles/material-progress-spinner.umd.min.js +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +16 -37
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +13 -3
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +1 -1
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +24 -5
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +1 -1
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +2 -2
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +1 -1
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +2 -2
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +2 -2
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +1 -1
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +26 -6
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +1 -1
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +20 -7
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +214 -51
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +2 -2
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +1 -1
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +13 -1
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +9 -7
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/bundles/material.umd.js +715 -241
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +19 -19
- package/bundles/material.umd.min.js.map +1 -1
- package/button/typings/button.d.ts +0 -5
- package/button/typings/index.metadata.json +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/card/typings/index.metadata.json +1 -1
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-list.d.ts +1 -1
- package/chips/typings/chip.d.ts +5 -5
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/ripple/ripple.d.ts +2 -2
- package/datepicker/typings/calendar.d.ts +2 -2
- package/datepicker/typings/index.metadata.json +1 -1
- package/dialog/typings/dialog-ref.d.ts +4 -0
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +18 -12
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +6 -0
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +11 -5
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +8 -1
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +8 -4
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +1 -1
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +1 -1
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +19 -27
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +5 -5
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +7 -4
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +25 -1
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/expansion.js +23 -6
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +61 -13
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +5 -3
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +9 -0
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +8 -4
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +79 -8
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +7 -7
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +26 -15
- package/esm2015/menu.js.map +1 -1
- package/esm2015/progress-bar.js +1 -1
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/radio.js +6 -15
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +15 -4
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +26 -6
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +1 -1
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +4 -4
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +1 -1
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +1 -1
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +23 -7
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +21 -8
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +162 -43
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +1 -1
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +10 -1
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +9 -7
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +18 -12
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +6 -0
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +11 -5
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +9 -1
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +8 -4
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +1 -1
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +1 -1
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +21 -29
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +6 -6
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +9 -6
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +41 -1
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/expansion.es5.js +21 -6
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +69 -14
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +5 -3
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +12 -0
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +8 -4
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +97 -9
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +7 -7
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +30 -15
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +1 -1
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/radio.es5.js +18 -37
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +14 -4
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +25 -6
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +1 -1
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +3 -3
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +1 -1
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +1 -1
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +27 -7
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +21 -8
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +207 -44
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +1 -1
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +13 -1
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +9 -7
- package/esm5/tree.es5.js.map +1 -1
- package/expansion/typings/expansion-panel-header.d.ts +2 -2
- package/expansion/typings/expansion-panel.d.ts +19 -2
- package/expansion/typings/index.metadata.json +1 -1
- package/form-field/typings/form-field.d.ts +15 -4
- package/form-field/typings/index.metadata.json +1 -1
- package/form-field/typings/prefix.d.ts +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/icon-registry.d.ts +3 -2
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/list/typings/list.d.ts +16 -5
- package/list/typings/selection-list.d.ts +1 -0
- package/menu/typings/index.d.ts +4 -4
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-directive.d.ts +1 -0
- package/menu/typings/menu-trigger.d.ts +1 -1
- package/package.json +5 -5
- 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/typings/index.metadata.json +1 -1
- package/radio/typings/index.metadata.json +1 -1
- package/radio/typings/radio.d.ts +2 -6
- package/schematics/ng-add/theming/theming.js +10 -9
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/select/typings/index.metadata.json +1 -1
- package/select/typings/select.d.ts +12 -2
- package/sidenav/typings/drawer.d.ts +9 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/slider/typings/index.metadata.json +1 -1
- package/snack-bar/typings/index.metadata.json +1 -1
- package/sort/typings/index.metadata.json +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/step-header.d.ts +1 -0
- package/table/typings/index.metadata.json +1 -1
- package/table/typings/table-data-source.d.ts +2 -0
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-group.d.ts +2 -1
- package/tabs/typings/tab-header.d.ts +33 -6
- package/tabs/typings/tab-nav-bar/tab-nav-bar.d.ts +6 -6
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tooltip/typings/tooltip.d.ts +3 -1
- package/tree/typings/data-source/flat-data-source.d.ts +2 -2
- package/tree/typings/index.metadata.json +1 -1
- package/typings/autocomplete/index.d.ts +0 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/autocomplete/public-api.d.ts +1 -0
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button/button.d.ts +0 -5
- package/typings/button/index.metadata.json +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/card/index.metadata.json +1 -1
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-list.d.ts +1 -1
- package/typings/chips/chip.d.ts +5 -5
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/ripple/ripple.d.ts +2 -2
- package/typings/datepicker/calendar.d.ts +2 -2
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/dialog/dialog-ref.d.ts +4 -0
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +0 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/public-api.d.ts +1 -0
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
- package/typings/esm5/button/button.d.ts +0 -5
- package/typings/esm5/button/index.metadata.json +1 -1
- package/typings/esm5/button-toggle/index.metadata.json +1 -1
- package/typings/esm5/card/index.metadata.json +1 -1
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-list.d.ts +1 -1
- package/typings/esm5/chips/chip.d.ts +5 -5
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/ripple/ripple.d.ts +2 -2
- package/typings/esm5/datepicker/calendar.d.ts +2 -2
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/dialog/dialog-ref.d.ts +4 -0
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/esm5/expansion/expansion-panel.d.ts +19 -2
- package/typings/esm5/expansion/index.metadata.json +1 -1
- package/typings/esm5/form-field/form-field.d.ts +15 -4
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/form-field/prefix.d.ts +1 -1
- package/typings/esm5/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/icon-registry.d.ts +3 -2
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/list/list.d.ts +16 -5
- package/typings/esm5/list/selection-list.d.ts +1 -0
- package/typings/esm5/menu/index.d.ts +4 -4
- package/typings/esm5/menu/index.metadata.json +1 -1
- package/typings/esm5/menu/menu-directive.d.ts +1 -0
- package/typings/esm5/menu/menu-trigger.d.ts +1 -1
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/radio/index.metadata.json +1 -1
- package/typings/esm5/radio/radio.d.ts +2 -6
- package/typings/esm5/select/index.metadata.json +1 -1
- package/typings/esm5/select/select.d.ts +12 -2
- package/typings/esm5/sidenav/drawer.d.ts +9 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/slider/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/index.metadata.json +1 -1
- package/typings/esm5/sort/index.metadata.json +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/step-header.d.ts +1 -0
- package/typings/esm5/table/index.metadata.json +1 -1
- package/typings/esm5/table/table-data-source.d.ts +2 -0
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-group.d.ts +2 -1
- package/typings/esm5/tabs/tab-header.d.ts +33 -6
- package/typings/esm5/tabs/tab-nav-bar/tab-nav-bar.d.ts +6 -6
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tooltip/tooltip.d.ts +3 -1
- package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/expansion/expansion-panel.d.ts +19 -2
- package/typings/expansion/index.metadata.json +1 -1
- package/typings/form-field/form-field.d.ts +15 -4
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/form-field/prefix.d.ts +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/icon-registry.d.ts +3 -2
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/list/index.metadata.json +1 -1
- package/typings/list/list.d.ts +16 -5
- package/typings/list/selection-list.d.ts +1 -0
- package/typings/menu/index.d.ts +4 -4
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-directive.d.ts +1 -0
- package/typings/menu/menu-trigger.d.ts +1 -1
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/radio/index.metadata.json +1 -1
- package/typings/radio/radio.d.ts +2 -6
- package/typings/select/index.metadata.json +1 -1
- package/typings/select/select.d.ts +12 -2
- package/typings/sidenav/drawer.d.ts +9 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/slider/index.metadata.json +1 -1
- package/typings/snack-bar/index.metadata.json +1 -1
- package/typings/sort/index.metadata.json +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/step-header.d.ts +1 -0
- package/typings/table/index.metadata.json +1 -1
- package/typings/table/table-data-source.d.ts +2 -0
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-group.d.ts +2 -1
- package/typings/tabs/tab-header.d.ts +33 -6
- package/typings/tabs/tab-nav-bar/tab-nav-bar.d.ts +6 -6
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tooltip/tooltip.d.ts +3 -1
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
|
@@ -750,12 +750,29 @@ var MatTabLabelWrapper = /** @class */ (function (_super) {
|
|
|
750
750
|
* @fileoverview added by tsickle
|
|
751
751
|
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
752
752
|
*/
|
|
753
|
+
/**
|
|
754
|
+
* Config used to bind passive event listeners
|
|
755
|
+
* @type {?}
|
|
756
|
+
*/
|
|
757
|
+
var passiveEventListenerOptions = (/** @type {?} */ (platform.normalizePassiveListenerOptions({ passive: true })));
|
|
753
758
|
/**
|
|
754
759
|
* The distance in pixels that will be overshot when scrolling a tab label into view. This helps
|
|
755
760
|
* provide a small affordance to the label next to it.
|
|
756
761
|
* @type {?}
|
|
757
762
|
*/
|
|
758
763
|
var EXAGGERATED_OVERSCROLL = 60;
|
|
764
|
+
/**
|
|
765
|
+
* Amount of milliseconds to wait before starting to scroll the header automatically.
|
|
766
|
+
* Set a little conservatively in order to handle fake events dispatched on touch devices.
|
|
767
|
+
* @type {?}
|
|
768
|
+
*/
|
|
769
|
+
var HEADER_SCROLL_DELAY = 650;
|
|
770
|
+
/**
|
|
771
|
+
* Interval in milliseconds at which to scroll the header
|
|
772
|
+
* while the user is holding their pointer.
|
|
773
|
+
* @type {?}
|
|
774
|
+
*/
|
|
775
|
+
var HEADER_SCROLL_INTERVAL = 100;
|
|
759
776
|
// Boilerplate for applying mixins to MatTabHeader.
|
|
760
777
|
/**
|
|
761
778
|
* \@docs-private
|
|
@@ -781,13 +798,14 @@ var _MatTabHeaderMixinBase = core$1.mixinDisableRipple(MatTabHeaderBase);
|
|
|
781
798
|
*/
|
|
782
799
|
var MatTabHeader = /** @class */ (function (_super) {
|
|
783
800
|
__extends(MatTabHeader, _super);
|
|
784
|
-
function MatTabHeader(_elementRef, _changeDetectorRef, _viewportRuler, _dir, _ngZone) {
|
|
801
|
+
function MatTabHeader(_elementRef, _changeDetectorRef, _viewportRuler, _dir, _ngZone, _platform) {
|
|
785
802
|
var _this = _super.call(this) || this;
|
|
786
803
|
_this._elementRef = _elementRef;
|
|
787
804
|
_this._changeDetectorRef = _changeDetectorRef;
|
|
788
805
|
_this._viewportRuler = _viewportRuler;
|
|
789
806
|
_this._dir = _dir;
|
|
790
807
|
_this._ngZone = _ngZone;
|
|
808
|
+
_this._platform = _platform;
|
|
791
809
|
/**
|
|
792
810
|
* The distance in pixels that the tab labels should be translated to the left.
|
|
793
811
|
*/
|
|
@@ -812,6 +830,10 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
812
830
|
* Whether the tab list can be scrolled more towards the beginning of the tab label list.
|
|
813
831
|
*/
|
|
814
832
|
_this._disableScrollBefore = true;
|
|
833
|
+
/**
|
|
834
|
+
* Stream that will stop the automated scrolling.
|
|
835
|
+
*/
|
|
836
|
+
_this._stopScrolling = new rxjs.Subject();
|
|
815
837
|
_this._selectedIndex = 0;
|
|
816
838
|
/**
|
|
817
839
|
* Event emitted when the option is selected.
|
|
@@ -821,6 +843,24 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
821
843
|
* Event emitted when a label is focused.
|
|
822
844
|
*/
|
|
823
845
|
_this.indexFocused = new core.EventEmitter();
|
|
846
|
+
/** @type {?} */
|
|
847
|
+
var element = _elementRef.nativeElement;
|
|
848
|
+
/** @type {?} */
|
|
849
|
+
var bindEvent = function () {
|
|
850
|
+
rxjs.fromEvent(element, 'mouseleave')
|
|
851
|
+
.pipe(operators.takeUntil(_this._destroyed))
|
|
852
|
+
.subscribe(function () {
|
|
853
|
+
_this._stopInterval();
|
|
854
|
+
});
|
|
855
|
+
};
|
|
856
|
+
// @breaking-change 8.0.0 remove null check once _ngZone is made into a required parameter.
|
|
857
|
+
if (_ngZone) {
|
|
858
|
+
// Bind the `mouseleave` event on the outside since it doesn't change anything in the view.
|
|
859
|
+
_ngZone.runOutsideAngular(bindEvent);
|
|
860
|
+
}
|
|
861
|
+
else {
|
|
862
|
+
bindEvent();
|
|
863
|
+
}
|
|
824
864
|
return _this;
|
|
825
865
|
}
|
|
826
866
|
Object.defineProperty(MatTabHeader.prototype, "selectedIndex", {
|
|
@@ -875,15 +915,22 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
875
915
|
this._changeDetectorRef.markForCheck();
|
|
876
916
|
}
|
|
877
917
|
};
|
|
918
|
+
/** Handles keyboard events on the header. */
|
|
878
919
|
/**
|
|
920
|
+
* Handles keyboard events on the header.
|
|
879
921
|
* @param {?} event
|
|
880
922
|
* @return {?}
|
|
881
923
|
*/
|
|
882
924
|
MatTabHeader.prototype._handleKeydown = /**
|
|
925
|
+
* Handles keyboard events on the header.
|
|
883
926
|
* @param {?} event
|
|
884
927
|
* @return {?}
|
|
885
928
|
*/
|
|
886
929
|
function (event) {
|
|
930
|
+
// We don't handle any key bindings with a modifier key.
|
|
931
|
+
if (keycodes.hasModifierKey(event)) {
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
887
934
|
switch (event.keyCode) {
|
|
888
935
|
case keycodes.HOME:
|
|
889
936
|
this._keyManager.setFirstItemActive();
|
|
@@ -945,6 +992,26 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
945
992
|
_this._setTabFocus(newFocusIndex);
|
|
946
993
|
});
|
|
947
994
|
};
|
|
995
|
+
/**
|
|
996
|
+
* @return {?}
|
|
997
|
+
*/
|
|
998
|
+
MatTabHeader.prototype.ngAfterViewInit = /**
|
|
999
|
+
* @return {?}
|
|
1000
|
+
*/
|
|
1001
|
+
function () {
|
|
1002
|
+
var _this = this;
|
|
1003
|
+
// We need to handle these events manually, because we want to bind passive event listeners.
|
|
1004
|
+
rxjs.fromEvent(this._previousPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)
|
|
1005
|
+
.pipe(operators.takeUntil(this._destroyed))
|
|
1006
|
+
.subscribe(function () {
|
|
1007
|
+
_this._handlePaginatorPress('before');
|
|
1008
|
+
});
|
|
1009
|
+
rxjs.fromEvent(this._nextPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)
|
|
1010
|
+
.pipe(operators.takeUntil(this._destroyed))
|
|
1011
|
+
.subscribe(function () {
|
|
1012
|
+
_this._handlePaginatorPress('after');
|
|
1013
|
+
});
|
|
1014
|
+
};
|
|
948
1015
|
/**
|
|
949
1016
|
* @return {?}
|
|
950
1017
|
*/
|
|
@@ -954,6 +1021,7 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
954
1021
|
function () {
|
|
955
1022
|
this._destroyed.next();
|
|
956
1023
|
this._destroyed.complete();
|
|
1024
|
+
this._stopScrolling.complete();
|
|
957
1025
|
};
|
|
958
1026
|
/**
|
|
959
1027
|
* Callback for when the MutationObserver detects that the content has changed.
|
|
@@ -1125,6 +1193,8 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
1125
1193
|
/** @type {?} */
|
|
1126
1194
|
var scrollDistance = this.scrollDistance;
|
|
1127
1195
|
/** @type {?} */
|
|
1196
|
+
var platform$$1 = this._platform;
|
|
1197
|
+
/** @type {?} */
|
|
1128
1198
|
var translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;
|
|
1129
1199
|
// Don't use `translate3d` here because we don't want to create a new layer. A new layer
|
|
1130
1200
|
// seems to cause flickering and overflow in Internet Explorer. For example, the ink bar
|
|
@@ -1135,8 +1205,12 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
1135
1205
|
this._tabList.nativeElement.style.transform = "translateX(" + Math.round(translateX) + "px)";
|
|
1136
1206
|
// Setting the `transform` on IE will change the scroll offset of the parent, causing the
|
|
1137
1207
|
// position to be thrown off in some cases. We have to reset it ourselves to ensure that
|
|
1138
|
-
// it doesn't get thrown off.
|
|
1139
|
-
|
|
1208
|
+
// it doesn't get thrown off. Note that we scope it only to IE and Edge, because messing
|
|
1209
|
+
// with the scroll position throws off Chrome 71+ in RTL mode (see #14689).
|
|
1210
|
+
// @breaking-change 8.0.0 Remove null check for `platform`.
|
|
1211
|
+
if (platform$$1 && (platform$$1.TRIDENT || platform$$1.EDGE)) {
|
|
1212
|
+
this._tabListContainer.nativeElement.scrollLeft = 0;
|
|
1213
|
+
}
|
|
1140
1214
|
};
|
|
1141
1215
|
Object.defineProperty(MatTabHeader.prototype, "scrollDistance", {
|
|
1142
1216
|
/** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
|
|
@@ -1146,15 +1220,11 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
1146
1220
|
*/
|
|
1147
1221
|
function () { return this._scrollDistance; },
|
|
1148
1222
|
set: /**
|
|
1149
|
-
* @param {?}
|
|
1223
|
+
* @param {?} value
|
|
1150
1224
|
* @return {?}
|
|
1151
1225
|
*/
|
|
1152
|
-
function (
|
|
1153
|
-
this.
|
|
1154
|
-
// Mark that the scroll distance has changed so that after the view is checked, the CSS
|
|
1155
|
-
// transformation can move the header.
|
|
1156
|
-
this._scrollDistanceChanged = true;
|
|
1157
|
-
this._checkScrollingControls();
|
|
1226
|
+
function (value) {
|
|
1227
|
+
this._scrollTo(value);
|
|
1158
1228
|
},
|
|
1159
1229
|
enumerable: true,
|
|
1160
1230
|
configurable: true
|
|
@@ -1174,7 +1244,7 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
1174
1244
|
*
|
|
1175
1245
|
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
1176
1246
|
* should be called sparingly.
|
|
1177
|
-
* @param {?}
|
|
1247
|
+
* @param {?} direction
|
|
1178
1248
|
* @return {?}
|
|
1179
1249
|
*/
|
|
1180
1250
|
MatTabHeader.prototype._scrollHeader = /**
|
|
@@ -1184,14 +1254,31 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
1184
1254
|
*
|
|
1185
1255
|
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
1186
1256
|
* should be called sparingly.
|
|
1187
|
-
* @param {?}
|
|
1257
|
+
* @param {?} direction
|
|
1188
1258
|
* @return {?}
|
|
1189
1259
|
*/
|
|
1190
|
-
function (
|
|
1260
|
+
function (direction) {
|
|
1191
1261
|
/** @type {?} */
|
|
1192
1262
|
var viewLength = this._tabListContainer.nativeElement.offsetWidth;
|
|
1193
1263
|
// Move the scroll distance one-third the length of the tab list's viewport.
|
|
1194
|
-
|
|
1264
|
+
/** @type {?} */
|
|
1265
|
+
var scrollAmount = (direction == 'before' ? -1 : 1) * viewLength / 3;
|
|
1266
|
+
return this._scrollTo(this._scrollDistance + scrollAmount);
|
|
1267
|
+
};
|
|
1268
|
+
/** Handles click events on the pagination arrows. */
|
|
1269
|
+
/**
|
|
1270
|
+
* Handles click events on the pagination arrows.
|
|
1271
|
+
* @param {?} direction
|
|
1272
|
+
* @return {?}
|
|
1273
|
+
*/
|
|
1274
|
+
MatTabHeader.prototype._handlePaginatorClick = /**
|
|
1275
|
+
* Handles click events on the pagination arrows.
|
|
1276
|
+
* @param {?} direction
|
|
1277
|
+
* @return {?}
|
|
1278
|
+
*/
|
|
1279
|
+
function (direction) {
|
|
1280
|
+
this._stopInterval();
|
|
1281
|
+
this._scrollHeader(direction);
|
|
1195
1282
|
};
|
|
1196
1283
|
/**
|
|
1197
1284
|
* Moves the tab list such that the desired tab label (marked by index) is moved into view.
|
|
@@ -1367,10 +1454,82 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
1367
1454
|
null;
|
|
1368
1455
|
this._inkBar.alignToElement((/** @type {?} */ (selectedLabelWrapper)));
|
|
1369
1456
|
};
|
|
1457
|
+
/** Stops the currently-running paginator interval. */
|
|
1458
|
+
/**
|
|
1459
|
+
* Stops the currently-running paginator interval.
|
|
1460
|
+
* @return {?}
|
|
1461
|
+
*/
|
|
1462
|
+
MatTabHeader.prototype._stopInterval = /**
|
|
1463
|
+
* Stops the currently-running paginator interval.
|
|
1464
|
+
* @return {?}
|
|
1465
|
+
*/
|
|
1466
|
+
function () {
|
|
1467
|
+
this._stopScrolling.next();
|
|
1468
|
+
};
|
|
1469
|
+
/**
|
|
1470
|
+
* Handles the user pressing down on one of the paginators.
|
|
1471
|
+
* Starts scrolling the header after a certain amount of time.
|
|
1472
|
+
* @param direction In which direction the paginator should be scrolled.
|
|
1473
|
+
*/
|
|
1474
|
+
/**
|
|
1475
|
+
* Handles the user pressing down on one of the paginators.
|
|
1476
|
+
* Starts scrolling the header after a certain amount of time.
|
|
1477
|
+
* @param {?} direction In which direction the paginator should be scrolled.
|
|
1478
|
+
* @return {?}
|
|
1479
|
+
*/
|
|
1480
|
+
MatTabHeader.prototype._handlePaginatorPress = /**
|
|
1481
|
+
* Handles the user pressing down on one of the paginators.
|
|
1482
|
+
* Starts scrolling the header after a certain amount of time.
|
|
1483
|
+
* @param {?} direction In which direction the paginator should be scrolled.
|
|
1484
|
+
* @return {?}
|
|
1485
|
+
*/
|
|
1486
|
+
function (direction) {
|
|
1487
|
+
var _this = this;
|
|
1488
|
+
// Avoid overlapping timers.
|
|
1489
|
+
this._stopInterval();
|
|
1490
|
+
// Start a timer after the delay and keep firing based on the interval.
|
|
1491
|
+
rxjs.timer(HEADER_SCROLL_DELAY, HEADER_SCROLL_INTERVAL)
|
|
1492
|
+
// Keep the timer going until something tells it to stop or the component is destroyed.
|
|
1493
|
+
.pipe(operators.takeUntil(rxjs.merge(this._stopScrolling, this._destroyed)))
|
|
1494
|
+
.subscribe(function () {
|
|
1495
|
+
var _a = _this._scrollHeader(direction), maxScrollDistance = _a.maxScrollDistance, distance = _a.distance;
|
|
1496
|
+
// Stop the timer if we've reached the start or the end.
|
|
1497
|
+
if (distance === 0 || distance >= maxScrollDistance) {
|
|
1498
|
+
_this._stopInterval();
|
|
1499
|
+
}
|
|
1500
|
+
});
|
|
1501
|
+
};
|
|
1502
|
+
/**
|
|
1503
|
+
* Scrolls the header to a given position.
|
|
1504
|
+
* @param position Position to which to scroll.
|
|
1505
|
+
* @returns Information on the current scroll distance and the maximum.
|
|
1506
|
+
*/
|
|
1507
|
+
/**
|
|
1508
|
+
* Scrolls the header to a given position.
|
|
1509
|
+
* @private
|
|
1510
|
+
* @param {?} position Position to which to scroll.
|
|
1511
|
+
* @return {?} Information on the current scroll distance and the maximum.
|
|
1512
|
+
*/
|
|
1513
|
+
MatTabHeader.prototype._scrollTo = /**
|
|
1514
|
+
* Scrolls the header to a given position.
|
|
1515
|
+
* @private
|
|
1516
|
+
* @param {?} position Position to which to scroll.
|
|
1517
|
+
* @return {?} Information on the current scroll distance and the maximum.
|
|
1518
|
+
*/
|
|
1519
|
+
function (position) {
|
|
1520
|
+
/** @type {?} */
|
|
1521
|
+
var maxScrollDistance = this._getMaxScrollDistance();
|
|
1522
|
+
this._scrollDistance = Math.max(0, Math.min(maxScrollDistance, position));
|
|
1523
|
+
// Mark that the scroll distance has changed so that after the view is checked, the CSS
|
|
1524
|
+
// transformation can move the header.
|
|
1525
|
+
this._scrollDistanceChanged = true;
|
|
1526
|
+
this._checkScrollingControls();
|
|
1527
|
+
return { maxScrollDistance: maxScrollDistance, distance: this._scrollDistance };
|
|
1528
|
+
};
|
|
1370
1529
|
MatTabHeader.decorators = [
|
|
1371
1530
|
{ type: core.Component, args: [{selector: 'mat-tab-header',
|
|
1372
|
-
template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\" aria-hidden=\"true\" mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\" [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\" (click)=\"
|
|
1373
|
-
styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.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:0}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media
|
|
1531
|
+
template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\" #previousPaginator aria-hidden=\"true\" mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\" [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\" (click)=\"_handlePaginatorClick('before')\" (mousedown)=\"_handlePaginatorPress('before')\" (touchend)=\"_stopInterval()\"><div class=\"mat-tab-header-pagination-chevron\"></div></div><div class=\"mat-tab-label-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\"><div class=\"mat-tab-list\" #tabList role=\"tablist\" (cdkObserveContent)=\"_onContentChanges()\"><div class=\"mat-tab-labels\"><ng-content></ng-content></div><mat-ink-bar></mat-ink-bar></div></div><div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\" #nextPaginator aria-hidden=\"true\" mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\" [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\" (mousedown)=\"_handlePaginatorPress('after')\" (click)=\"_handlePaginatorClick('after')\" (touchend)=\"_stopInterval()\"><div class=\"mat-tab-header-pagination-chevron\"></div></div>",
|
|
1532
|
+
styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.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:0}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media (-ms-high-contrast:active){.mat-tab-label:focus{outline:dotted 2px}}.mat-tab-label.mat-tab-disabled{cursor:default}@media (-ms-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}@media (-ms-high-contrast:active){.mat-tab-label{opacity:1}}@media (max-width:599px){.mat-tab-label{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}@media (-ms-high-contrast:active){.mat-ink-bar{outline:solid 2px;height: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-pagination-after,.mat-tab-header-rtl .mat-tab-header-pagination-before{padding-right:4px}.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-before .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-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list{flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}"],
|
|
1374
1533
|
inputs: ['disableRipple'],
|
|
1375
1534
|
encapsulation: core.ViewEncapsulation.None,
|
|
1376
1535
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
@@ -1387,13 +1546,16 @@ var MatTabHeader = /** @class */ (function (_super) {
|
|
|
1387
1546
|
{ type: core.ChangeDetectorRef },
|
|
1388
1547
|
{ type: scrolling.ViewportRuler },
|
|
1389
1548
|
{ type: bidi.Directionality, decorators: [{ type: core.Optional }] },
|
|
1390
|
-
{ type: core.NgZone }
|
|
1549
|
+
{ type: core.NgZone },
|
|
1550
|
+
{ type: platform.Platform }
|
|
1391
1551
|
]; };
|
|
1392
1552
|
MatTabHeader.propDecorators = {
|
|
1393
1553
|
_labelWrappers: [{ type: core.ContentChildren, args: [MatTabLabelWrapper,] }],
|
|
1394
1554
|
_inkBar: [{ type: core.ViewChild, args: [MatInkBar,] }],
|
|
1395
1555
|
_tabListContainer: [{ type: core.ViewChild, args: ['tabListContainer',] }],
|
|
1396
1556
|
_tabList: [{ type: core.ViewChild, args: ['tabList',] }],
|
|
1557
|
+
_nextPaginator: [{ type: core.ViewChild, args: ['nextPaginator',] }],
|
|
1558
|
+
_previousPaginator: [{ type: core.ViewChild, args: ['previousPaginator',] }],
|
|
1397
1559
|
selectedIndex: [{ type: core.Input }],
|
|
1398
1560
|
selectFocusedIndex: [{ type: core.Output }],
|
|
1399
1561
|
indexFocused: [{ type: core.Output }]
|
|
@@ -1528,6 +1690,23 @@ var MatTabGroup = /** @class */ (function (_super) {
|
|
|
1528
1690
|
enumerable: true,
|
|
1529
1691
|
configurable: true
|
|
1530
1692
|
});
|
|
1693
|
+
Object.defineProperty(MatTabGroup.prototype, "animationDuration", {
|
|
1694
|
+
/** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */
|
|
1695
|
+
get: /**
|
|
1696
|
+
* Duration for the tab animation. Will be normalized to milliseconds if no units are set.
|
|
1697
|
+
* @return {?}
|
|
1698
|
+
*/
|
|
1699
|
+
function () { return this._animationDuration; },
|
|
1700
|
+
set: /**
|
|
1701
|
+
* @param {?} value
|
|
1702
|
+
* @return {?}
|
|
1703
|
+
*/
|
|
1704
|
+
function (value) {
|
|
1705
|
+
this._animationDuration = /^\d+$/.test(value) ? value + 'ms' : value;
|
|
1706
|
+
},
|
|
1707
|
+
enumerable: true,
|
|
1708
|
+
configurable: true
|
|
1709
|
+
});
|
|
1531
1710
|
Object.defineProperty(MatTabGroup.prototype, "backgroundColor", {
|
|
1532
1711
|
/** Background color of the tab group. */
|
|
1533
1712
|
get: /**
|
|
@@ -1859,7 +2038,7 @@ var MatTabGroup = /** @class */ (function (_super) {
|
|
|
1859
2038
|
{ type: core.Component, args: [{selector: 'mat-tab-group',
|
|
1860
2039
|
exportAs: 'matTabGroup',
|
|
1861
2040
|
template: "<mat-tab-header #tabHeader [selectedIndex]=\"selectedIndex\" [disableRipple]=\"disableRipple\" (indexFocused)=\"_focusChanged($event)\" (selectFocusedIndex)=\"selectedIndex = $event\"><div class=\"mat-tab-label\" role=\"tab\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus *ngFor=\"let tab of _tabs; let i = index\" [id]=\"_getTabLabelId(i)\" [attr.tabIndex]=\"_getTabIndex(tab, i)\" [attr.aria-posinset]=\"i + 1\" [attr.aria-setsize]=\"_tabs.length\" [attr.aria-controls]=\"_getTabContentId(i)\" [attr.aria-selected]=\"selectedIndex == i\" [attr.aria-label]=\"tab.ariaLabel || null\" [attr.aria-labelledby]=\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\" [class.mat-tab-label-active]=\"selectedIndex == i\" [disabled]=\"tab.disabled\" [matRippleDisabled]=\"tab.disabled || disableRipple\" (click)=\"_handleClick(tab, tabHeader, i)\"><div class=\"mat-tab-label-content\"><ng-template [ngIf]=\"tab.templateLabel\"><ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template></ng-template><ng-template [ngIf]=\"!tab.templateLabel\">{{tab.textLabel}}</ng-template></div></div></mat-tab-header><div class=\"mat-tab-body-wrapper\" #tabBodyWrapper><mat-tab-body role=\"tabpanel\" *ngFor=\"let tab of _tabs; let i = index\" [id]=\"_getTabContentId(i)\" [attr.aria-labelledby]=\"_getTabLabelId(i)\" [class.mat-tab-body-active]=\"selectedIndex == i\" [content]=\"tab.content\" [position]=\"tab.position\" [origin]=\"tab.origin\" [animationDuration]=\"animationDuration\" (_onCentered)=\"_removeTabBodyWrapperHeight()\" (_onCentering)=\"_setTabBodyWrapperHeight($event)\"></mat-tab-body></div>",
|
|
1862
|
-
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:0}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media
|
|
2041
|
+
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:0}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media (-ms-high-contrast:active){.mat-tab-label:focus{outline:dotted 2px}}.mat-tab-label.mat-tab-disabled{cursor:default}@media (-ms-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}@media (-ms-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 .5s cubic-bezier(.35,0,.25,1)}.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}"],
|
|
1863
2042
|
encapsulation: core.ViewEncapsulation.None,
|
|
1864
2043
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
1865
2044
|
inputs: ['color', 'disableRipple'],
|
|
@@ -2044,7 +2223,7 @@ var MatTabNav = /** @class */ (function (_super) {
|
|
|
2044
2223
|
exportAs: 'matTabNavBar, matTabNav',
|
|
2045
2224
|
inputs: ['color', 'disableRipple'],
|
|
2046
2225
|
template: "<div class=\"mat-tab-links\" (cdkObserveContent)=\"_alignInkBar()\"><ng-content></ng-content><mat-ink-bar></mat-ink-bar></div>",
|
|
2047
|
-
styles: [".mat-tab-nav-bar{overflow:hidden;position:relative;flex-shrink:0}.mat-tab-links{position:relative;display:flex}[mat-align-tabs=center] .mat-tab-links{justify-content:center}[mat-align-tabs=end] .mat-tab-links{justify-content:flex-end}.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:0}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}@media
|
|
2226
|
+
styles: [".mat-tab-nav-bar{overflow:hidden;position:relative;flex-shrink:0}.mat-tab-links{position:relative;display:flex}[mat-align-tabs=center] .mat-tab-links{justify-content:center}[mat-align-tabs=end] .mat-tab-links{justify-content:flex-end}.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:0}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}@media (-ms-high-contrast:active){.mat-tab-link:focus{outline:dotted 2px}}.mat-tab-link.mat-tab-disabled{cursor:default}@media (-ms-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}@media (-ms-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}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}@media (-ms-high-contrast:active){.mat-ink-bar{outline:solid 2px;height:0}}"],
|
|
2048
2227
|
host: { 'class': 'mat-tab-nav-bar' },
|
|
2049
2228
|
encapsulation: core.ViewEncapsulation.None,
|
|
2050
2229
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
@@ -2080,7 +2259,7 @@ var _MatTabLinkMixinBase = core$1.mixinTabIndex(core$1.mixinDisableRipple(core$1
|
|
|
2080
2259
|
*/
|
|
2081
2260
|
var MatTabLink = /** @class */ (function (_super) {
|
|
2082
2261
|
__extends(MatTabLink, _super);
|
|
2083
|
-
function MatTabLink(_tabNavBar, _elementRef, ngZone, platform$$1,
|
|
2262
|
+
function MatTabLink(_tabNavBar, _elementRef, ngZone, platform$$1, globalRippleOptions, tabIndex, _focusMonitor) {
|
|
2084
2263
|
var _this = _super.call(this) || this;
|
|
2085
2264
|
_this._tabNavBar = _tabNavBar;
|
|
2086
2265
|
_this._elementRef = _elementRef;
|
|
@@ -2089,26 +2268,10 @@ var MatTabLink = /** @class */ (function (_super) {
|
|
|
2089
2268
|
* Whether the tab link is active or not.
|
|
2090
2269
|
*/
|
|
2091
2270
|
_this._isActive = false;
|
|
2092
|
-
/**
|
|
2093
|
-
* Whether the ripples are globally disabled through the RippleGlobalOptions
|
|
2094
|
-
*/
|
|
2095
|
-
_this._ripplesGloballyDisabled = false;
|
|
2096
|
-
/**
|
|
2097
|
-
* Ripple configuration for ripples that are launched on pointer down.
|
|
2098
|
-
* \@docs-private
|
|
2099
|
-
*/
|
|
2100
|
-
_this.rippleConfig = {};
|
|
2101
2271
|
_this._tabLinkRipple = new core$1.RippleRenderer(_this, ngZone, _elementRef, platform$$1);
|
|
2102
2272
|
_this._tabLinkRipple.setupTriggerEvents(_elementRef.nativeElement);
|
|
2273
|
+
_this.rippleConfig = globalRippleOptions || {};
|
|
2103
2274
|
_this.tabIndex = parseInt(tabIndex) || 0;
|
|
2104
|
-
if (globalOptions) {
|
|
2105
|
-
// TODO(paul): Do not copy each option manually. Allow dynamic global option changes: #9729
|
|
2106
|
-
_this._ripplesGloballyDisabled = !!globalOptions.disabled;
|
|
2107
|
-
_this.rippleConfig = {
|
|
2108
|
-
terminateOnPointerUp: globalOptions.terminateOnPointerUp,
|
|
2109
|
-
animation: globalOptions.animation,
|
|
2110
|
-
};
|
|
2111
|
-
}
|
|
2112
2275
|
if (_focusMonitor) {
|
|
2113
2276
|
_focusMonitor.monitor(_elementRef);
|
|
2114
2277
|
}
|
|
@@ -2136,17 +2299,17 @@ var MatTabLink = /** @class */ (function (_super) {
|
|
|
2136
2299
|
});
|
|
2137
2300
|
Object.defineProperty(MatTabLink.prototype, "rippleDisabled", {
|
|
2138
2301
|
/**
|
|
2139
|
-
* Whether ripples are disabled on interaction
|
|
2302
|
+
* Whether ripples are disabled on interaction.
|
|
2140
2303
|
* @docs-private
|
|
2141
2304
|
*/
|
|
2142
2305
|
get: /**
|
|
2143
|
-
* Whether ripples are disabled on interaction
|
|
2306
|
+
* Whether ripples are disabled on interaction.
|
|
2144
2307
|
* \@docs-private
|
|
2145
2308
|
* @return {?}
|
|
2146
2309
|
*/
|
|
2147
2310
|
function () {
|
|
2148
2311
|
return this.disabled || this.disableRipple || this._tabNavBar.disableRipple ||
|
|
2149
|
-
this.
|
|
2312
|
+
!!this.rippleConfig.disabled;
|
|
2150
2313
|
},
|
|
2151
2314
|
enumerable: true,
|
|
2152
2315
|
configurable: true
|
|
@@ -2257,17 +2420,17 @@ exports.MatTabGroupBase = MatTabGroupBase;
|
|
|
2257
2420
|
exports._MatTabGroupMixinBase = _MatTabGroupMixinBase;
|
|
2258
2421
|
exports.MatTabGroup = MatTabGroup;
|
|
2259
2422
|
exports.matTabsAnimations = matTabsAnimations;
|
|
2260
|
-
exports.ɵ
|
|
2261
|
-
exports.ɵ
|
|
2262
|
-
exports.ɵ
|
|
2263
|
-
exports.ɵ
|
|
2264
|
-
exports.ɵ
|
|
2265
|
-
exports.ɵ
|
|
2266
|
-
exports.ɵ
|
|
2267
|
-
exports.ɵ
|
|
2268
|
-
exports.ɵ
|
|
2269
|
-
exports.ɵ
|
|
2270
|
-
exports.ɵ
|
|
2423
|
+
exports.ɵa22 = _MAT_INK_BAR_POSITIONER_FACTORY;
|
|
2424
|
+
exports.ɵf22 = MatTabBase;
|
|
2425
|
+
exports.ɵg22 = _MatTabMixinBase;
|
|
2426
|
+
exports.ɵb22 = MatTabHeaderBase;
|
|
2427
|
+
exports.ɵc22 = _MatTabHeaderMixinBase;
|
|
2428
|
+
exports.ɵd22 = MatTabLabelWrapperBase;
|
|
2429
|
+
exports.ɵe22 = _MatTabLabelWrapperMixinBase;
|
|
2430
|
+
exports.ɵj22 = MatTabLinkBase;
|
|
2431
|
+
exports.ɵh22 = MatTabNavBase;
|
|
2432
|
+
exports.ɵk22 = _MatTabLinkMixinBase;
|
|
2433
|
+
exports.ɵi22 = _MatTabNavMixinBase;
|
|
2271
2434
|
|
|
2272
2435
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2273
2436
|
|