@angular/material 7.0.4 → 7.2.1
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 +61 -44
- package/autocomplete/typings/index.d.ts +1 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-config.d.ts +5 -0
- package/bottom-sheet/typings/bottom-sheet-container.d.ts +1 -1
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +126 -32
- 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 +38 -5
- 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 +68 -21
- 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 +36 -13
- 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 +21 -14
- 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 +3 -3
- 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 +56 -15
- 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 +124 -34
- 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 +189 -126
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -1
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +231 -53
- 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 +138 -40
- 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-divider.umd.js +2 -2
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +53 -27
- 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 +121 -32
- 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 +66 -15
- 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 +277 -78
- 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 +50 -22
- 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 +69 -21
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -6
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +171 -66
- 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-paginator.umd.js +52 -10
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +31 -12
- 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 +29 -13
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +38 -40
- 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 +189 -51
- 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 +104 -25
- 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 +30 -14
- 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 +91 -21
- 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 +71 -19
- 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 +46 -24
- 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 +37 -35
- 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 +29 -9
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +170 -68
- 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 +14 -4
- 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 +53 -26
- 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 +25 -16
- 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 +2853 -1010
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +19 -21
- 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 +2 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/core/typings/public-api.d.ts +1 -1
- package/datepicker/typings/calendar-body.d.ts +21 -5
- package/datepicker/typings/calendar.d.ts +4 -1
- package/datepicker/typings/datepicker.d.ts +3 -0
- package/datepicker/typings/index.metadata.json +1 -1
- package/datepicker/typings/month-view.d.ts +4 -2
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +60 -29
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +29 -6
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +45 -22
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +20 -11
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +20 -15
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +5 -5
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +30 -12
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +64 -28
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +148 -129
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +124 -41
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +77 -40
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +58 -31
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +94 -34
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +45 -17
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +136 -67
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +44 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +47 -22
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +109 -63
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +35 -12
- package/esm2015/paginator.js.map +1 -1
- package/esm2015/progress-bar.js +26 -13
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/progress-spinner.js +24 -14
- package/esm2015/progress-spinner.js.map +1 -1
- package/esm2015/radio.js +22 -21
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +116 -53
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +75 -28
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +23 -15
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +54 -24
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +41 -21
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +47 -24
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +35 -32
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +31 -11
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +113 -53
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +43 -28
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -17
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +128 -34
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +40 -7
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +70 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +38 -15
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +23 -16
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +5 -5
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +58 -17
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +127 -37
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +192 -129
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +233 -55
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +140 -42
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/divider.es5.js +4 -4
- package/esm5/divider.es5.js.map +1 -1
- package/esm5/expansion.es5.js +56 -31
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +125 -36
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +68 -17
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +279 -80
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +52 -24
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +72 -24
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +13 -12
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +170 -65
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +55 -13
- package/esm5/paginator.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +33 -14
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/progress-spinner.es5.js +31 -15
- package/esm5/progress-spinner.es5.js.map +1 -1
- package/esm5/radio.es5.js +42 -42
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +193 -55
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +107 -28
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +32 -16
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +94 -24
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +73 -21
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +53 -26
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +40 -38
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +31 -11
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +162 -61
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +16 -6
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +55 -28
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -18
- 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/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/material.d.ts +1 -1
- package/material.metadata.json +3 -3
- 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-item.d.ts +2 -0
- package/package.json +5 -5
- package/paginator/typings/index.metadata.json +1 -1
- package/paginator/typings/paginator.d.ts +7 -3
- 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/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +35 -19
- 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 +3 -5
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-body.d.ts +2 -0
- package/tabs/typings/tab-group.d.ts +11 -2
- package/tabs/typings/tab-header.d.ts +9 -3
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -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 +1 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- 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 +2 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/core/public-api.d.ts +1 -1
- package/typings/datepicker/calendar-body.d.ts +21 -5
- package/typings/datepicker/calendar.d.ts +4 -1
- package/typings/datepicker/datepicker.d.ts +3 -0
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/datepicker/month-view.d.ts +4 -2
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +1 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/esm5/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- 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 +2 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/esm5/core/public-api.d.ts +1 -1
- package/typings/esm5/datepicker/calendar-body.d.ts +21 -5
- package/typings/esm5/datepicker/calendar.d.ts +4 -1
- package/typings/esm5/datepicker/datepicker.d.ts +3 -0
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/datepicker/month-view.d.ts +4 -2
- 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/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- 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/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-item.d.ts +2 -0
- package/typings/esm5/paginator/index.metadata.json +1 -1
- package/typings/esm5/paginator/paginator.d.ts +7 -3
- 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 +3 -5
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-body.d.ts +2 -0
- package/typings/esm5/tabs/tab-group.d.ts +11 -2
- package/typings/esm5/tabs/tab-header.d.ts +9 -3
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -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/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- 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/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-item.d.ts +2 -0
- package/typings/paginator/index.metadata.json +1 -1
- package/typings/paginator/paginator.d.ts +7 -3
- 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/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- 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 +3 -5
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-body.d.ts +2 -0
- package/typings/tabs/tab-group.d.ts +11 -2
- package/typings/tabs/tab-header.d.ts +9 -3
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
- package/schematics/ng-add/theming/custom-theme.js.map +0 -1
package/esm2015/core.js
CHANGED
|
@@ -14,12 +14,12 @@ import { Platform, PlatformModule, normalizePassiveListenerOptions } from '@angu
|
|
|
14
14
|
import { startWith } from 'rxjs/operators';
|
|
15
15
|
import { isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';
|
|
16
16
|
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
|
17
|
-
import { ENTER, SPACE } from '@angular/cdk/keycodes';
|
|
17
|
+
import { ENTER, SPACE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
18
18
|
import { CommonModule } from '@angular/common';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* @fileoverview added by tsickle
|
|
22
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
22
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -42,11 +42,12 @@ AnimationDurations.EXITING = '195ms';
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @fileoverview added by tsickle
|
|
45
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
45
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
46
46
|
*/
|
|
47
|
-
/**
|
|
47
|
+
/**
|
|
48
48
|
* Injection token that configures whether the Material sanity checks are enabled.
|
|
49
|
-
|
|
49
|
+
* @type {?}
|
|
50
|
+
*/
|
|
50
51
|
const MATERIAL_SANITY_CHECKS = new InjectionToken('mat-sanity-checks', {
|
|
51
52
|
providedIn: 'root',
|
|
52
53
|
factory: MATERIAL_SANITY_CHECKS_FACTORY,
|
|
@@ -96,6 +97,7 @@ class MatCommonModule {
|
|
|
96
97
|
}
|
|
97
98
|
/**
|
|
98
99
|
* Whether any sanity checks are enabled
|
|
100
|
+
* @private
|
|
99
101
|
* @return {?}
|
|
100
102
|
*/
|
|
101
103
|
_areChecksEnabled() {
|
|
@@ -103,14 +105,16 @@ class MatCommonModule {
|
|
|
103
105
|
}
|
|
104
106
|
/**
|
|
105
107
|
* Whether the code is running in tests.
|
|
108
|
+
* @private
|
|
106
109
|
* @return {?}
|
|
107
110
|
*/
|
|
108
111
|
_isTestEnv() {
|
|
109
112
|
/** @type {?} */
|
|
110
|
-
const window = /** @type {?} */ (this._window);
|
|
113
|
+
const window = (/** @type {?} */ (this._window));
|
|
111
114
|
return window && (window.__karma__ || window.jasmine);
|
|
112
115
|
}
|
|
113
116
|
/**
|
|
117
|
+
* @private
|
|
114
118
|
* @return {?}
|
|
115
119
|
*/
|
|
116
120
|
_checkDoctypeIsDefined() {
|
|
@@ -120,6 +124,7 @@ class MatCommonModule {
|
|
|
120
124
|
}
|
|
121
125
|
}
|
|
122
126
|
/**
|
|
127
|
+
* @private
|
|
123
128
|
* @return {?}
|
|
124
129
|
*/
|
|
125
130
|
_checkThemeIsPresent() {
|
|
@@ -152,7 +157,7 @@ class MatCommonModule {
|
|
|
152
157
|
if (this._hasCheckedHammer || !this._window) {
|
|
153
158
|
return;
|
|
154
159
|
}
|
|
155
|
-
if (this._areChecksEnabled() && !(/** @type {?} */ (this._window))['Hammer'] && !this._hammerLoader) {
|
|
160
|
+
if (this._areChecksEnabled() && !((/** @type {?} */ (this._window)))['Hammer'] && !this._hammerLoader) {
|
|
156
161
|
console.warn('Could not find HammerJS. Certain Angular Material components may not work correctly.');
|
|
157
162
|
}
|
|
158
163
|
this._hasCheckedHammer = true;
|
|
@@ -172,7 +177,7 @@ MatCommonModule.ctorParameters = () => [
|
|
|
172
177
|
|
|
173
178
|
/**
|
|
174
179
|
* @fileoverview added by tsickle
|
|
175
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
180
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
176
181
|
*/
|
|
177
182
|
/**
|
|
178
183
|
* Mixin to augment a directive with a `disabled` property.
|
|
@@ -203,7 +208,7 @@ function mixinDisabled(base) {
|
|
|
203
208
|
|
|
204
209
|
/**
|
|
205
210
|
* @fileoverview added by tsickle
|
|
206
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
211
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
207
212
|
*/
|
|
208
213
|
/**
|
|
209
214
|
* Mixin to augment a directive with a `color` property.
|
|
@@ -248,7 +253,7 @@ function mixinColor(base, defaultColor) {
|
|
|
248
253
|
|
|
249
254
|
/**
|
|
250
255
|
* @fileoverview added by tsickle
|
|
251
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
256
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
252
257
|
*/
|
|
253
258
|
/**
|
|
254
259
|
* Mixin to augment a directive with a `disableRipple` property.
|
|
@@ -280,7 +285,7 @@ function mixinDisableRipple(base) {
|
|
|
280
285
|
|
|
281
286
|
/**
|
|
282
287
|
* @fileoverview added by tsickle
|
|
283
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
288
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
284
289
|
*/
|
|
285
290
|
/**
|
|
286
291
|
* Mixin to augment a directive with a `tabIndex` property.
|
|
@@ -315,7 +320,7 @@ function mixinTabIndex(base, defaultTabIndex = 0) {
|
|
|
315
320
|
|
|
316
321
|
/**
|
|
317
322
|
* @fileoverview added by tsickle
|
|
318
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
323
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
319
324
|
*/
|
|
320
325
|
/**
|
|
321
326
|
* Mixin to augment a directive with updateErrorState method.
|
|
@@ -352,7 +357,7 @@ function mixinErrorState(base) {
|
|
|
352
357
|
/** @type {?} */
|
|
353
358
|
const matcher = this.errorStateMatcher || this._defaultErrorStateMatcher;
|
|
354
359
|
/** @type {?} */
|
|
355
|
-
const control = this.ngControl ? /** @type {?} */ (this.ngControl.control) : null;
|
|
360
|
+
const control = this.ngControl ? (/** @type {?} */ (this.ngControl.control)) : null;
|
|
356
361
|
/** @type {?} */
|
|
357
362
|
const newState = matcher.isErrorState(control, parent);
|
|
358
363
|
if (newState !== oldState) {
|
|
@@ -365,7 +370,7 @@ function mixinErrorState(base) {
|
|
|
365
370
|
|
|
366
371
|
/**
|
|
367
372
|
* @fileoverview added by tsickle
|
|
368
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
373
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
369
374
|
*/
|
|
370
375
|
/**
|
|
371
376
|
* Mixin to augment a directive with an initialized property that will emits when ngOnInit ends.
|
|
@@ -401,7 +406,7 @@ function mixinInitialized(base) {
|
|
|
401
406
|
this._notifySubscriber(subscriber);
|
|
402
407
|
}
|
|
403
408
|
else {
|
|
404
|
-
/** @type {?} */ (
|
|
409
|
+
(/** @type {?} */ (this._pendingSubscribers)).push(subscriber);
|
|
405
410
|
}
|
|
406
411
|
});
|
|
407
412
|
}
|
|
@@ -416,8 +421,8 @@ function mixinInitialized(base) {
|
|
|
416
421
|
throw Error('This directive has already been marked as initialized and ' +
|
|
417
422
|
'should not be called twice.');
|
|
418
423
|
}
|
|
419
|
-
this._isInitialized = true;
|
|
420
|
-
((this._pendingSubscribers)).forEach(this._notifySubscriber);
|
|
424
|
+
this._isInitialized = true;
|
|
425
|
+
(/** @type {?} */ (this._pendingSubscribers)).forEach(this._notifySubscriber);
|
|
421
426
|
this._pendingSubscribers = null;
|
|
422
427
|
}
|
|
423
428
|
/**
|
|
@@ -434,16 +439,17 @@ function mixinInitialized(base) {
|
|
|
434
439
|
|
|
435
440
|
/**
|
|
436
441
|
* @fileoverview added by tsickle
|
|
437
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
442
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
438
443
|
*/
|
|
439
444
|
|
|
440
445
|
/**
|
|
441
446
|
* @fileoverview added by tsickle
|
|
442
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
447
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
443
448
|
*/
|
|
444
|
-
/**
|
|
449
|
+
/**
|
|
445
450
|
* InjectionToken for datepicker that can be used to override default locale code.
|
|
446
|
-
|
|
451
|
+
* @type {?}
|
|
452
|
+
*/
|
|
447
453
|
const MAT_DATE_LOCALE = new InjectionToken('MAT_DATE_LOCALE', {
|
|
448
454
|
providedIn: 'root',
|
|
449
455
|
factory: MAT_DATE_LOCALE_FACTORY,
|
|
@@ -455,12 +461,13 @@ const MAT_DATE_LOCALE = new InjectionToken('MAT_DATE_LOCALE', {
|
|
|
455
461
|
function MAT_DATE_LOCALE_FACTORY() {
|
|
456
462
|
return inject(LOCALE_ID);
|
|
457
463
|
}
|
|
458
|
-
/**
|
|
464
|
+
/**
|
|
459
465
|
* No longer needed since MAT_DATE_LOCALE has been changed to a scoped injectable.
|
|
460
466
|
* If you are importing and providing this in your code you can simply remove it.
|
|
461
467
|
* @deprecated
|
|
462
468
|
* \@breaking-change 8.0.0
|
|
463
|
-
|
|
469
|
+
* @type {?}
|
|
470
|
+
*/
|
|
464
471
|
const MAT_DATE_LOCALE_PROVIDER = { provide: MAT_DATE_LOCALE, useExisting: LOCALE_ID };
|
|
465
472
|
/**
|
|
466
473
|
* Adapts type `D` to be usable as a date by cdk-based components that work with dates.
|
|
@@ -556,22 +563,25 @@ class DateAdapter {
|
|
|
556
563
|
|
|
557
564
|
/**
|
|
558
565
|
* @fileoverview added by tsickle
|
|
559
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
566
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
560
567
|
*/
|
|
561
568
|
/** @type {?} */
|
|
562
569
|
const MAT_DATE_FORMATS = new InjectionToken('mat-date-formats');
|
|
563
570
|
|
|
564
571
|
/**
|
|
565
572
|
* @fileoverview added by tsickle
|
|
566
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
573
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
567
574
|
*/
|
|
568
|
-
|
|
575
|
+
// TODO(mmalerba): Remove when we no longer support safari 9.
|
|
576
|
+
/**
|
|
569
577
|
* Whether the browser supports the Intl API.
|
|
570
|
-
|
|
578
|
+
* @type {?}
|
|
579
|
+
*/
|
|
571
580
|
const SUPPORTS_INTL_API = typeof Intl != 'undefined';
|
|
572
|
-
/**
|
|
581
|
+
/**
|
|
573
582
|
* The default month names to use if Intl API is not available.
|
|
574
|
-
|
|
583
|
+
* @type {?}
|
|
584
|
+
*/
|
|
575
585
|
const DEFAULT_MONTH_NAMES = {
|
|
576
586
|
'long': [
|
|
577
587
|
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
|
|
@@ -581,23 +591,26 @@ const DEFAULT_MONTH_NAMES = {
|
|
|
581
591
|
'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']
|
|
582
592
|
};
|
|
583
593
|
const ɵ0 = i => String(i + 1);
|
|
584
|
-
/**
|
|
594
|
+
/**
|
|
585
595
|
* The default date names to use if Intl API is not available.
|
|
586
|
-
|
|
596
|
+
* @type {?}
|
|
597
|
+
*/
|
|
587
598
|
const DEFAULT_DATE_NAMES = range(31, ɵ0);
|
|
588
|
-
/**
|
|
599
|
+
/**
|
|
589
600
|
* The default day of the week names to use if Intl API is not available.
|
|
590
|
-
|
|
601
|
+
* @type {?}
|
|
602
|
+
*/
|
|
591
603
|
const DEFAULT_DAY_OF_WEEK_NAMES = {
|
|
592
604
|
'long': ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
593
605
|
'short': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
594
606
|
'narrow': ['S', 'M', 'T', 'W', 'T', 'F', 'S']
|
|
595
607
|
};
|
|
596
|
-
/**
|
|
608
|
+
/**
|
|
597
609
|
* Matches strings that have the form of a valid RFC 3339 string
|
|
598
610
|
* (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date
|
|
599
611
|
* because the regex will match strings an with out of bounds month, date, etc.
|
|
600
|
-
|
|
612
|
+
* @type {?}
|
|
613
|
+
*/
|
|
601
614
|
const ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
|
|
602
615
|
/**
|
|
603
616
|
* Creates an array and fills it with values.
|
|
@@ -735,7 +748,7 @@ class NativeDateAdapter extends DateAdapter {
|
|
|
735
748
|
* @return {?}
|
|
736
749
|
*/
|
|
737
750
|
clone(date) {
|
|
738
|
-
return
|
|
751
|
+
return new Date(date.getTime());
|
|
739
752
|
}
|
|
740
753
|
/**
|
|
741
754
|
* @param {?} year
|
|
@@ -891,6 +904,7 @@ class NativeDateAdapter extends DateAdapter {
|
|
|
891
904
|
}
|
|
892
905
|
/**
|
|
893
906
|
* Creates a date but allows the month and date to overflow.
|
|
907
|
+
* @private
|
|
894
908
|
* @param {?} year
|
|
895
909
|
* @param {?} month
|
|
896
910
|
* @param {?} date
|
|
@@ -908,6 +922,7 @@ class NativeDateAdapter extends DateAdapter {
|
|
|
908
922
|
}
|
|
909
923
|
/**
|
|
910
924
|
* Pads a number to make it two digits.
|
|
925
|
+
* @private
|
|
911
926
|
* @param {?} n The number to pad.
|
|
912
927
|
* @return {?} The padded number.
|
|
913
928
|
*/
|
|
@@ -918,6 +933,7 @@ class NativeDateAdapter extends DateAdapter {
|
|
|
918
933
|
* Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
|
|
919
934
|
* other browsers do not. We remove them to make output consistent and because they interfere with
|
|
920
935
|
* date parsing.
|
|
936
|
+
* @private
|
|
921
937
|
* @param {?} str The string to strip direction characters from.
|
|
922
938
|
* @return {?} The stripped string.
|
|
923
939
|
*/
|
|
@@ -930,6 +946,7 @@ class NativeDateAdapter extends DateAdapter {
|
|
|
930
946
|
* very frequently, and the current valid rule is not always valid in previous years though.
|
|
931
947
|
* We work around this problem building a new Date object which has its internal UTC
|
|
932
948
|
* representation with the local date and time.
|
|
949
|
+
* @private
|
|
933
950
|
* @param {?} dtf Intl.DateTimeFormat object, containg the desired string format. It must have
|
|
934
951
|
* timeZone set to 'utc' to work fine.
|
|
935
952
|
* @param {?} date Date from which we want to get the string representation according to dtf
|
|
@@ -952,7 +969,7 @@ NativeDateAdapter.ctorParameters = () => [
|
|
|
952
969
|
|
|
953
970
|
/**
|
|
954
971
|
* @fileoverview added by tsickle
|
|
955
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
972
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
956
973
|
*/
|
|
957
974
|
|
|
958
975
|
/** @type {?} */
|
|
@@ -970,7 +987,7 @@ const MAT_NATIVE_DATE_FORMATS = {
|
|
|
970
987
|
|
|
971
988
|
/**
|
|
972
989
|
* @fileoverview added by tsickle
|
|
973
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
990
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
974
991
|
*/
|
|
975
992
|
class NativeDateModule {
|
|
976
993
|
}
|
|
@@ -994,7 +1011,7 @@ MatNativeDateModule.decorators = [
|
|
|
994
1011
|
|
|
995
1012
|
/**
|
|
996
1013
|
* @fileoverview added by tsickle
|
|
997
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1014
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
998
1015
|
*/
|
|
999
1016
|
/**
|
|
1000
1017
|
* Error state matcher that matches when a control is invalid and dirty.
|
|
@@ -1032,12 +1049,18 @@ ErrorStateMatcher.decorators = [
|
|
|
1032
1049
|
|
|
1033
1050
|
/**
|
|
1034
1051
|
* @fileoverview added by tsickle
|
|
1035
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1052
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1036
1053
|
*/
|
|
1037
|
-
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* @fileoverview added by tsickle
|
|
1057
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1058
|
+
*/
|
|
1059
|
+
/**
|
|
1038
1060
|
* Injection token that can be used to provide options to the Hammerjs instance.
|
|
1039
1061
|
* More info at http://hammerjs.github.io/api/.
|
|
1040
|
-
|
|
1062
|
+
* @type {?}
|
|
1063
|
+
*/
|
|
1041
1064
|
const MAT_HAMMER_OPTIONS = new InjectionToken('MAT_HAMMER_OPTIONS');
|
|
1042
1065
|
/** @type {?} */
|
|
1043
1066
|
const ANGULAR_MATERIAL_SUPPORTED_HAMMER_GESTURES = [
|
|
@@ -1049,10 +1072,11 @@ const ANGULAR_MATERIAL_SUPPORTED_HAMMER_GESTURES = [
|
|
|
1049
1072
|
'slideleft'
|
|
1050
1073
|
];
|
|
1051
1074
|
const ɵ0$2 = () => { }, ɵ1 = () => { };
|
|
1052
|
-
/**
|
|
1075
|
+
/**
|
|
1053
1076
|
* Fake HammerInstance that is used when a Hammer instance is requested when HammerJS has not
|
|
1054
1077
|
* been loaded on the page.
|
|
1055
|
-
|
|
1078
|
+
* @type {?}
|
|
1079
|
+
*/
|
|
1056
1080
|
const noopHammerInstance = {
|
|
1057
1081
|
on: ɵ0$2,
|
|
1058
1082
|
off: ɵ1,
|
|
@@ -1091,7 +1115,7 @@ class GestureConfig extends HammerGestureConfig {
|
|
|
1091
1115
|
*/
|
|
1092
1116
|
buildHammer(element) {
|
|
1093
1117
|
/** @type {?} */
|
|
1094
|
-
const hammer = typeof window !== 'undefined' ? (/** @type {?} */ (window)).Hammer : null;
|
|
1118
|
+
const hammer = typeof window !== 'undefined' ? ((/** @type {?} */ (window))).Hammer : null;
|
|
1095
1119
|
if (!hammer) {
|
|
1096
1120
|
// If HammerJS is not loaded here, return the noop HammerInstance. This is necessary to
|
|
1097
1121
|
// ensure that omitting HammerJS completely will not cause any errors while *also* supporting
|
|
@@ -1105,12 +1129,16 @@ class GestureConfig extends HammerGestureConfig {
|
|
|
1105
1129
|
}
|
|
1106
1130
|
/** @type {?} */
|
|
1107
1131
|
const mc = new hammer(element, this._hammerOptions || undefined);
|
|
1132
|
+
// Default Hammer Recognizers.
|
|
1108
1133
|
/** @type {?} */
|
|
1109
1134
|
const pan = new hammer.Pan();
|
|
1110
1135
|
/** @type {?} */
|
|
1111
1136
|
const swipe = new hammer.Swipe();
|
|
1112
1137
|
/** @type {?} */
|
|
1113
1138
|
const press = new hammer.Press();
|
|
1139
|
+
// Notice that a HammerJS recognizer can only depend on one other recognizer once.
|
|
1140
|
+
// Otherwise the previous `recognizeWith` will be dropped.
|
|
1141
|
+
// TODO: Confirm threshold numbers with Material Design UX Team
|
|
1114
1142
|
/** @type {?} */
|
|
1115
1143
|
const slide = this._createRecognizer(pan, { event: 'slide', threshold: 0 }, swipe);
|
|
1116
1144
|
/** @type {?} */
|
|
@@ -1125,10 +1153,11 @@ class GestureConfig extends HammerGestureConfig {
|
|
|
1125
1153
|
longpress.recognizeWith(slide);
|
|
1126
1154
|
// Add customized gestures to Hammer manager
|
|
1127
1155
|
mc.add([swipe, press, pan, slide, longpress]);
|
|
1128
|
-
return /** @type {?} */ (mc);
|
|
1156
|
+
return (/** @type {?} */ (mc));
|
|
1129
1157
|
}
|
|
1130
1158
|
/**
|
|
1131
1159
|
* Creates a new recognizer, without affecting the default recognizers of HammerJS
|
|
1160
|
+
* @private
|
|
1132
1161
|
* @param {?} base
|
|
1133
1162
|
* @param {?} options
|
|
1134
1163
|
* @param {...?} inheritances
|
|
@@ -1136,7 +1165,7 @@ class GestureConfig extends HammerGestureConfig {
|
|
|
1136
1165
|
*/
|
|
1137
1166
|
_createRecognizer(base, options, ...inheritances) {
|
|
1138
1167
|
/** @type {?} */
|
|
1139
|
-
let recognizer = new (/** @type {?} */ (base.constructor))(options);
|
|
1168
|
+
let recognizer = new ((/** @type {?} */ (base.constructor)))(options);
|
|
1140
1169
|
inheritances.push(base);
|
|
1141
1170
|
inheritances.forEach(item => recognizer.recognizeWith(item));
|
|
1142
1171
|
return recognizer;
|
|
@@ -1153,7 +1182,7 @@ GestureConfig.ctorParameters = () => [
|
|
|
1153
1182
|
|
|
1154
1183
|
/**
|
|
1155
1184
|
* @fileoverview added by tsickle
|
|
1156
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1185
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1157
1186
|
*/
|
|
1158
1187
|
/**
|
|
1159
1188
|
* Shared directive to count lines inside a text area, such as a list item.
|
|
@@ -1229,11 +1258,11 @@ MatLineModule.decorators = [
|
|
|
1229
1258
|
|
|
1230
1259
|
/**
|
|
1231
1260
|
* @fileoverview added by tsickle
|
|
1232
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1261
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1233
1262
|
*/
|
|
1234
1263
|
|
|
1235
1264
|
/** @enum {number} */
|
|
1236
|
-
|
|
1265
|
+
const RippleState = {
|
|
1237
1266
|
FADING_IN: 0, VISIBLE: 1, FADING_OUT: 2, HIDDEN: 3,
|
|
1238
1267
|
};
|
|
1239
1268
|
RippleState[RippleState.FADING_IN] = 'FADING_IN';
|
|
@@ -1269,24 +1298,27 @@ class RippleRef {
|
|
|
1269
1298
|
|
|
1270
1299
|
/**
|
|
1271
1300
|
* @fileoverview added by tsickle
|
|
1272
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1301
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1273
1302
|
*/
|
|
1274
|
-
/**
|
|
1303
|
+
/**
|
|
1275
1304
|
* Default ripple animation configuration for ripples without an explicit
|
|
1276
1305
|
* animation config specified.
|
|
1277
|
-
|
|
1306
|
+
* @type {?}
|
|
1307
|
+
*/
|
|
1278
1308
|
const defaultRippleAnimationConfig = {
|
|
1279
1309
|
enterDuration: 450,
|
|
1280
1310
|
exitDuration: 400
|
|
1281
1311
|
};
|
|
1282
|
-
/**
|
|
1312
|
+
/**
|
|
1283
1313
|
* Timeout for ignoring mouse events. Mouse events will be temporary ignored after touch
|
|
1284
1314
|
* events to avoid synthetic mouse events.
|
|
1285
|
-
|
|
1315
|
+
* @type {?}
|
|
1316
|
+
*/
|
|
1286
1317
|
const ignoreMouseEventsTimeout = 800;
|
|
1287
|
-
/**
|
|
1318
|
+
/**
|
|
1288
1319
|
* Options that apply to all the event listeners that are bound by the ripple renderer.
|
|
1289
|
-
|
|
1320
|
+
* @type {?}
|
|
1321
|
+
*/
|
|
1290
1322
|
const passiveEventOptions = normalizePassiveListenerOptions({ passive: true });
|
|
1291
1323
|
/**
|
|
1292
1324
|
* Helper service that performs DOM manipulations. Not intended to be used outside this module.
|
|
@@ -1321,6 +1353,8 @@ class RippleRenderer {
|
|
|
1321
1353
|
* Function being called whenever the trigger is being pressed using mouse.
|
|
1322
1354
|
*/
|
|
1323
1355
|
this.onMousedown = (event) => {
|
|
1356
|
+
// Screen readers will fire fake mouse events for space/enter. Skip launching a
|
|
1357
|
+
// ripple in this case for consistency with the non-screen-reader experience.
|
|
1324
1358
|
/** @type {?} */
|
|
1325
1359
|
const isFakeMousedown = isFakeMousedownFromScreenReader(event);
|
|
1326
1360
|
/** @type {?} */
|
|
@@ -1341,6 +1375,8 @@ class RippleRenderer {
|
|
|
1341
1375
|
// time after a touchstart event.
|
|
1342
1376
|
this._lastTouchStartEvent = Date.now();
|
|
1343
1377
|
this._isPointerDown = true;
|
|
1378
|
+
// Use `changedTouches` so we skip any touches where the user put
|
|
1379
|
+
// their finger down, but used another finger to tap the element again.
|
|
1344
1380
|
/** @type {?} */
|
|
1345
1381
|
const touches = event.changedTouches;
|
|
1346
1382
|
for (let i = 0; i < touches.length; i++) {
|
|
@@ -1358,6 +1394,8 @@ class RippleRenderer {
|
|
|
1358
1394
|
this._isPointerDown = false;
|
|
1359
1395
|
// Fade-out all ripples that are visible and not persistent.
|
|
1360
1396
|
this._activeRipples.forEach(ripple => {
|
|
1397
|
+
// By default, only ripples that are completely visible will fade out on pointer release.
|
|
1398
|
+
// If the `terminateOnPointerUp` option is set, ripples that still fade in will also fade out.
|
|
1361
1399
|
/** @type {?} */
|
|
1362
1400
|
const isVisible = ripple.state === RippleState.VISIBLE ||
|
|
1363
1401
|
ripple.config.terminateOnPointerUp && ripple.state === RippleState.FADING_IN;
|
|
@@ -1419,6 +1457,7 @@ class RippleRenderer {
|
|
|
1419
1457
|
// ripple elements. This is critical because then the `scale` would not animate properly.
|
|
1420
1458
|
enforceStyleRecalculation(ripple);
|
|
1421
1459
|
ripple.style.transform = 'scale(1)';
|
|
1460
|
+
// Exposed reference to the ripple that will be returned.
|
|
1422
1461
|
/** @type {?} */
|
|
1423
1462
|
const rippleRef = new RippleRef(this, ripple, config);
|
|
1424
1463
|
rippleRef.state = RippleState.FADING_IN;
|
|
@@ -1458,7 +1497,7 @@ class RippleRenderer {
|
|
|
1458
1497
|
if (!this._activeRipples.size) {
|
|
1459
1498
|
this._containerRect = null;
|
|
1460
1499
|
}
|
|
1461
|
-
// For ripples that are not active anymore, don't re-
|
|
1500
|
+
// For ripples that are not active anymore, don't re-run the fade-out animation.
|
|
1462
1501
|
if (!wasActive) {
|
|
1463
1502
|
return;
|
|
1464
1503
|
}
|
|
@@ -1471,8 +1510,8 @@ class RippleRenderer {
|
|
|
1471
1510
|
rippleRef.state = RippleState.FADING_OUT;
|
|
1472
1511
|
// Once the ripple faded out, the ripple can be safely removed from the DOM.
|
|
1473
1512
|
this.runTimeoutOutsideZone(() => {
|
|
1474
|
-
rippleRef.state = RippleState.HIDDEN;
|
|
1475
|
-
((rippleEl.parentNode)).removeChild(rippleEl);
|
|
1513
|
+
rippleRef.state = RippleState.HIDDEN;
|
|
1514
|
+
(/** @type {?} */ (rippleEl.parentNode)).removeChild(rippleEl);
|
|
1476
1515
|
}, animationConfig.exitDuration);
|
|
1477
1516
|
}
|
|
1478
1517
|
/**
|
|
@@ -1502,6 +1541,7 @@ class RippleRenderer {
|
|
|
1502
1541
|
}
|
|
1503
1542
|
/**
|
|
1504
1543
|
* Runs a timeout outside of the Angular zone to avoid triggering the change detection.
|
|
1544
|
+
* @private
|
|
1505
1545
|
* @param {?} fn
|
|
1506
1546
|
* @param {?=} delay
|
|
1507
1547
|
* @return {?}
|
|
@@ -1516,7 +1556,7 @@ class RippleRenderer {
|
|
|
1516
1556
|
_removeTriggerEvents() {
|
|
1517
1557
|
if (this._triggerElement) {
|
|
1518
1558
|
this._triggerEvents.forEach((fn, type) => {
|
|
1519
|
-
/** @type {?} */ (
|
|
1559
|
+
(/** @type {?} */ (this._triggerElement)).removeEventListener(type, fn, passiveEventOptions);
|
|
1520
1560
|
});
|
|
1521
1561
|
}
|
|
1522
1562
|
}
|
|
@@ -1549,11 +1589,12 @@ function distanceToFurthestCorner(x, y, rect) {
|
|
|
1549
1589
|
|
|
1550
1590
|
/**
|
|
1551
1591
|
* @fileoverview added by tsickle
|
|
1552
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1592
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1553
1593
|
*/
|
|
1554
|
-
/**
|
|
1594
|
+
/**
|
|
1555
1595
|
* Injection token that can be used to specify the global ripple options.
|
|
1556
|
-
|
|
1596
|
+
* @type {?}
|
|
1597
|
+
*/
|
|
1557
1598
|
const MAT_RIPPLE_GLOBAL_OPTIONS = new InjectionToken('mat-ripple-global-options');
|
|
1558
1599
|
class MatRipple {
|
|
1559
1600
|
/**
|
|
@@ -1654,6 +1695,7 @@ class MatRipple {
|
|
|
1654
1695
|
}
|
|
1655
1696
|
/**
|
|
1656
1697
|
* Sets up the the trigger event listeners if ripples are enabled.
|
|
1698
|
+
* @private
|
|
1657
1699
|
* @return {?}
|
|
1658
1700
|
*/
|
|
1659
1701
|
_setupTriggerEventsIfEnabled() {
|
|
@@ -1707,7 +1749,7 @@ MatRipple.propDecorators = {
|
|
|
1707
1749
|
|
|
1708
1750
|
/**
|
|
1709
1751
|
* @fileoverview added by tsickle
|
|
1710
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1752
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1711
1753
|
*/
|
|
1712
1754
|
class MatRippleModule {
|
|
1713
1755
|
}
|
|
@@ -1721,7 +1763,7 @@ MatRippleModule.decorators = [
|
|
|
1721
1763
|
|
|
1722
1764
|
/**
|
|
1723
1765
|
* @fileoverview added by tsickle
|
|
1724
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1766
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1725
1767
|
*/
|
|
1726
1768
|
/**
|
|
1727
1769
|
* Component that shows a simplified checkbox without including any kind of "real" checkbox.
|
|
@@ -1756,7 +1798,7 @@ MatPseudoCheckbox.decorators = [
|
|
|
1756
1798
|
{ type: Component, args: [{encapsulation: ViewEncapsulation.None,
|
|
1757
1799
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1758
1800
|
selector: 'mat-pseudo-checkbox',
|
|
1759
|
-
styles: [".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-
|
|
1801
|
+
styles: [".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],
|
|
1760
1802
|
template: '',
|
|
1761
1803
|
host: {
|
|
1762
1804
|
'class': 'mat-pseudo-checkbox',
|
|
@@ -1778,7 +1820,7 @@ MatPseudoCheckbox.propDecorators = {
|
|
|
1778
1820
|
|
|
1779
1821
|
/**
|
|
1780
1822
|
* @fileoverview added by tsickle
|
|
1781
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1823
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1782
1824
|
*/
|
|
1783
1825
|
class MatPseudoCheckboxModule {
|
|
1784
1826
|
}
|
|
@@ -1791,8 +1833,9 @@ MatPseudoCheckboxModule.decorators = [
|
|
|
1791
1833
|
|
|
1792
1834
|
/**
|
|
1793
1835
|
* @fileoverview added by tsickle
|
|
1794
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1836
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1795
1837
|
*/
|
|
1838
|
+
// Boilerplate for applying mixins to MatOptgroup.
|
|
1796
1839
|
/**
|
|
1797
1840
|
* \@docs-private
|
|
1798
1841
|
*/
|
|
@@ -1800,6 +1843,7 @@ class MatOptgroupBase {
|
|
|
1800
1843
|
}
|
|
1801
1844
|
/** @type {?} */
|
|
1802
1845
|
const _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase);
|
|
1846
|
+
// Counter for unique group ids.
|
|
1803
1847
|
/** @type {?} */
|
|
1804
1848
|
let _uniqueOptgroupIdCounter = 0;
|
|
1805
1849
|
/**
|
|
@@ -1837,12 +1881,13 @@ MatOptgroup.propDecorators = {
|
|
|
1837
1881
|
|
|
1838
1882
|
/**
|
|
1839
1883
|
* @fileoverview added by tsickle
|
|
1840
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1884
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1841
1885
|
*/
|
|
1842
|
-
/**
|
|
1886
|
+
/**
|
|
1843
1887
|
* Option IDs need to be unique across components, so this counter exists outside of
|
|
1844
1888
|
* the component definition.
|
|
1845
|
-
|
|
1889
|
+
* @type {?}
|
|
1890
|
+
*/
|
|
1846
1891
|
let _uniqueIdCounter = 0;
|
|
1847
1892
|
/**
|
|
1848
1893
|
* Event object emitted by MatOption when selected or deselected.
|
|
@@ -1857,9 +1902,10 @@ class MatOptionSelectionChange {
|
|
|
1857
1902
|
this.isUserInput = isUserInput;
|
|
1858
1903
|
}
|
|
1859
1904
|
}
|
|
1860
|
-
/**
|
|
1905
|
+
/**
|
|
1861
1906
|
* Injection token used to provide the parent component to options.
|
|
1862
|
-
|
|
1907
|
+
* @type {?}
|
|
1908
|
+
*/
|
|
1863
1909
|
const MAT_OPTION_PARENT_COMPONENT = new InjectionToken('MAT_OPTION_PARENT_COMPONENT');
|
|
1864
1910
|
/**
|
|
1865
1911
|
* Single option inside of a `<mat-select>` element.
|
|
@@ -1887,6 +1933,7 @@ class MatOption {
|
|
|
1887
1933
|
/**
|
|
1888
1934
|
* Event emitted when the option is selected or deselected.
|
|
1889
1935
|
*/
|
|
1936
|
+
// tslint:disable-next-line:no-output-on-prefix
|
|
1890
1937
|
this.onSelectionChange = new EventEmitter();
|
|
1891
1938
|
/**
|
|
1892
1939
|
* Emits when the state of the option changes and any parents have to be notified.
|
|
@@ -2007,7 +2054,7 @@ class MatOption {
|
|
|
2007
2054
|
* @return {?}
|
|
2008
2055
|
*/
|
|
2009
2056
|
_handleKeydown(event) {
|
|
2010
|
-
if (event.keyCode === ENTER || event.keyCode === SPACE) {
|
|
2057
|
+
if ((event.keyCode === ENTER || event.keyCode === SPACE) && !hasModifierKey(event)) {
|
|
2011
2058
|
this._selectViaInteraction();
|
|
2012
2059
|
// Prevent the page from scrolling down and form submits.
|
|
2013
2060
|
event.preventDefault();
|
|
@@ -2065,6 +2112,7 @@ class MatOption {
|
|
|
2065
2112
|
}
|
|
2066
2113
|
/**
|
|
2067
2114
|
* Emits the selection change event.
|
|
2115
|
+
* @private
|
|
2068
2116
|
* @param {?=} isUserInput
|
|
2069
2117
|
* @return {?}
|
|
2070
2118
|
*/
|
|
@@ -2089,7 +2137,7 @@ MatOption.decorators = [
|
|
|
2089
2137
|
'(keydown)': '_handleKeydown($event)',
|
|
2090
2138
|
'class': 'mat-option',
|
|
2091
2139
|
},
|
|
2092
|
-
styles: [".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:0;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}@media
|
|
2140
|
+
styles: [".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:0;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}@media (-ms-high-contrast:active){.mat-option{margin:0 1px}.mat-option.mat-active{border:solid 1px currentColor;margin:0}}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}@media (-ms-high-contrast:active){.mat-option .mat-option-ripple{opacity:.5}}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],
|
|
2093
2141
|
template: "<mat-pseudo-checkbox *ngIf=\"multiple\" class=\"mat-option-pseudo-checkbox\" [state]=\"selected ? 'checked' : ''\" [disabled]=\"disabled\"></mat-pseudo-checkbox><span class=\"mat-option-text\"><ng-content></ng-content></span><div class=\"mat-option-ripple\" mat-ripple [matRippleTrigger]=\"_getHostElement()\" [matRippleDisabled]=\"disabled || disableRipple\"></div>",
|
|
2094
2142
|
encapsulation: ViewEncapsulation.None,
|
|
2095
2143
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -2156,7 +2204,7 @@ function _getOptionScrollPosition(optionIndex, optionHeight, currentScrollPositi
|
|
|
2156
2204
|
|
|
2157
2205
|
/**
|
|
2158
2206
|
* @fileoverview added by tsickle
|
|
2159
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2207
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2160
2208
|
*/
|
|
2161
2209
|
class MatOptionModule {
|
|
2162
2210
|
}
|
|
@@ -2170,87 +2218,58 @@ MatOptionModule.decorators = [
|
|
|
2170
2218
|
|
|
2171
2219
|
/**
|
|
2172
2220
|
* @fileoverview added by tsickle
|
|
2173
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2221
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2174
2222
|
*/
|
|
2175
|
-
/**
|
|
2223
|
+
/**
|
|
2176
2224
|
* InjectionToken that can be used to specify the global label options.
|
|
2177
|
-
|
|
2225
|
+
* @type {?}
|
|
2226
|
+
*/
|
|
2178
2227
|
const MAT_LABEL_GLOBAL_OPTIONS = new InjectionToken('mat-label-global-options');
|
|
2179
2228
|
|
|
2180
2229
|
/**
|
|
2181
2230
|
* @fileoverview added by tsickle
|
|
2182
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2231
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2183
2232
|
*/
|
|
2184
2233
|
|
|
2185
|
-
/**
|
|
2234
|
+
/**
|
|
2186
2235
|
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2187
2236
|
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2188
|
-
|
|
2237
|
+
* \@docs-private
|
|
2238
|
+
* \@breaking-change 8.0.0 Remove this with V8 since it was only targeted for testing.
|
|
2239
|
+
* @type {?}
|
|
2240
|
+
*/
|
|
2189
2241
|
const JAN = 0;
|
|
2190
|
-
/**
|
|
2191
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2192
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2193
|
-
@type {?} */
|
|
2242
|
+
/** @type {?} */
|
|
2194
2243
|
const FEB = 1;
|
|
2195
|
-
/**
|
|
2196
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2197
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2198
|
-
@type {?} */
|
|
2244
|
+
/** @type {?} */
|
|
2199
2245
|
const MAR = 2;
|
|
2200
|
-
/**
|
|
2201
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2202
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2203
|
-
@type {?} */
|
|
2246
|
+
/** @type {?} */
|
|
2204
2247
|
const APR = 3;
|
|
2205
|
-
/**
|
|
2206
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2207
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2208
|
-
@type {?} */
|
|
2248
|
+
/** @type {?} */
|
|
2209
2249
|
const MAY = 4;
|
|
2210
|
-
/**
|
|
2211
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2212
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2213
|
-
@type {?} */
|
|
2250
|
+
/** @type {?} */
|
|
2214
2251
|
const JUN = 5;
|
|
2215
|
-
/**
|
|
2216
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2217
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2218
|
-
@type {?} */
|
|
2252
|
+
/** @type {?} */
|
|
2219
2253
|
const JUL = 6;
|
|
2220
|
-
/**
|
|
2221
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2222
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2223
|
-
@type {?} */
|
|
2254
|
+
/** @type {?} */
|
|
2224
2255
|
const AUG = 7;
|
|
2225
|
-
/**
|
|
2226
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2227
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2228
|
-
@type {?} */
|
|
2256
|
+
/** @type {?} */
|
|
2229
2257
|
const SEP = 8;
|
|
2230
|
-
/**
|
|
2231
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2232
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2233
|
-
@type {?} */
|
|
2258
|
+
/** @type {?} */
|
|
2234
2259
|
const OCT = 9;
|
|
2235
|
-
/**
|
|
2236
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2237
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2238
|
-
@type {?} */
|
|
2260
|
+
/** @type {?} */
|
|
2239
2261
|
const NOV = 10;
|
|
2240
|
-
/**
|
|
2241
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2242
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2243
|
-
@type {?} */
|
|
2262
|
+
/** @type {?} */
|
|
2244
2263
|
const DEC = 11;
|
|
2245
2264
|
|
|
2246
2265
|
/**
|
|
2247
2266
|
* @fileoverview added by tsickle
|
|
2248
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2267
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2249
2268
|
*/
|
|
2250
2269
|
|
|
2251
2270
|
/**
|
|
2252
2271
|
* @fileoverview added by tsickle
|
|
2253
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2272
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2254
2273
|
*/
|
|
2255
2274
|
|
|
2256
2275
|
export { AnimationCurves, AnimationDurations, MatCommonModule, MATERIAL_SANITY_CHECKS, mixinDisabled, mixinColor, mixinDisableRipple, mixinTabIndex, mixinErrorState, mixinInitialized, NativeDateModule, MatNativeDateModule, MAT_DATE_LOCALE_FACTORY, MAT_DATE_LOCALE, MAT_DATE_LOCALE_PROVIDER, DateAdapter, MAT_DATE_FORMATS, NativeDateAdapter, MAT_NATIVE_DATE_FORMATS, ShowOnDirtyErrorStateMatcher, ErrorStateMatcher, MAT_HAMMER_OPTIONS, GestureConfig, setLines, MatLine, MatLineSetter, MatLineModule, MatOptionModule, _countGroupLabelsBeforeOption, _getOptionScrollPosition, MatOptionSelectionChange, MAT_OPTION_PARENT_COMPONENT, MatOption, MatOptgroupBase, _MatOptgroupMixinBase, MatOptgroup, MAT_LABEL_GLOBAL_OPTIONS, MatRippleModule, MAT_RIPPLE_GLOBAL_OPTIONS, MatRipple, RippleState, RippleRef, defaultRippleAnimationConfig, RippleRenderer, MatPseudoCheckboxModule, MatPseudoCheckbox, JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC, MATERIAL_SANITY_CHECKS_FACTORY as ɵa1 };
|