@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/esm5/core.es5.js
CHANGED
|
@@ -15,12 +15,12 @@ import { Platform, PlatformModule, normalizePassiveListenerOptions } from '@angu
|
|
|
15
15
|
import { startWith } from 'rxjs/operators';
|
|
16
16
|
import { isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';
|
|
17
17
|
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
|
18
|
-
import { ENTER, SPACE } from '@angular/cdk/keycodes';
|
|
18
|
+
import { ENTER, SPACE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
19
19
|
import { CommonModule } from '@angular/common';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @fileoverview added by tsickle
|
|
23
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
23
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -49,11 +49,12 @@ var AnimationDurations = /** @class */ (function () {
|
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* @fileoverview added by tsickle
|
|
52
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
52
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
53
53
|
*/
|
|
54
|
-
/**
|
|
54
|
+
/**
|
|
55
55
|
* Injection token that configures whether the Material sanity checks are enabled.
|
|
56
|
-
|
|
56
|
+
* @type {?}
|
|
57
|
+
*/
|
|
57
58
|
var MATERIAL_SANITY_CHECKS = new InjectionToken('mat-sanity-checks', {
|
|
58
59
|
providedIn: 'root',
|
|
59
60
|
factory: MATERIAL_SANITY_CHECKS_FACTORY,
|
|
@@ -97,34 +98,42 @@ var MatCommonModule = /** @class */ (function () {
|
|
|
97
98
|
this._hasDoneGlobalChecks = true;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
101
|
+
/** Whether any sanity checks are enabled */
|
|
100
102
|
/**
|
|
101
103
|
* Whether any sanity checks are enabled
|
|
104
|
+
* @private
|
|
102
105
|
* @return {?}
|
|
103
106
|
*/
|
|
104
107
|
MatCommonModule.prototype._areChecksEnabled = /**
|
|
105
108
|
* Whether any sanity checks are enabled
|
|
109
|
+
* @private
|
|
106
110
|
* @return {?}
|
|
107
111
|
*/
|
|
108
112
|
function () {
|
|
109
113
|
return this._sanityChecksEnabled && isDevMode() && !this._isTestEnv();
|
|
110
114
|
};
|
|
115
|
+
/** Whether the code is running in tests. */
|
|
111
116
|
/**
|
|
112
117
|
* Whether the code is running in tests.
|
|
118
|
+
* @private
|
|
113
119
|
* @return {?}
|
|
114
120
|
*/
|
|
115
121
|
MatCommonModule.prototype._isTestEnv = /**
|
|
116
122
|
* Whether the code is running in tests.
|
|
123
|
+
* @private
|
|
117
124
|
* @return {?}
|
|
118
125
|
*/
|
|
119
126
|
function () {
|
|
120
127
|
/** @type {?} */
|
|
121
|
-
var window = /** @type {?} */ (this._window);
|
|
128
|
+
var window = (/** @type {?} */ (this._window));
|
|
122
129
|
return window && (window.__karma__ || window.jasmine);
|
|
123
130
|
};
|
|
124
131
|
/**
|
|
132
|
+
* @private
|
|
125
133
|
* @return {?}
|
|
126
134
|
*/
|
|
127
135
|
MatCommonModule.prototype._checkDoctypeIsDefined = /**
|
|
136
|
+
* @private
|
|
128
137
|
* @return {?}
|
|
129
138
|
*/
|
|
130
139
|
function () {
|
|
@@ -134,9 +143,11 @@ var MatCommonModule = /** @class */ (function () {
|
|
|
134
143
|
}
|
|
135
144
|
};
|
|
136
145
|
/**
|
|
146
|
+
* @private
|
|
137
147
|
* @return {?}
|
|
138
148
|
*/
|
|
139
149
|
MatCommonModule.prototype._checkThemeIsPresent = /**
|
|
150
|
+
* @private
|
|
140
151
|
* @return {?}
|
|
141
152
|
*/
|
|
142
153
|
function () {
|
|
@@ -174,7 +185,7 @@ var MatCommonModule = /** @class */ (function () {
|
|
|
174
185
|
if (this._hasCheckedHammer || !this._window) {
|
|
175
186
|
return;
|
|
176
187
|
}
|
|
177
|
-
if (this._areChecksEnabled() && !(/** @type {?} */ (this._window))['Hammer'] && !this._hammerLoader) {
|
|
188
|
+
if (this._areChecksEnabled() && !((/** @type {?} */ (this._window)))['Hammer'] && !this._hammerLoader) {
|
|
178
189
|
console.warn('Could not find HammerJS. Certain Angular Material components may not work correctly.');
|
|
179
190
|
}
|
|
180
191
|
this._hasCheckedHammer = true;
|
|
@@ -195,7 +206,7 @@ var MatCommonModule = /** @class */ (function () {
|
|
|
195
206
|
|
|
196
207
|
/**
|
|
197
208
|
* @fileoverview added by tsickle
|
|
198
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
209
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
199
210
|
*/
|
|
200
211
|
/**
|
|
201
212
|
* Mixin to augment a directive with a `disabled` property.
|
|
@@ -234,7 +245,7 @@ function mixinDisabled(base) {
|
|
|
234
245
|
|
|
235
246
|
/**
|
|
236
247
|
* @fileoverview added by tsickle
|
|
237
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
248
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
238
249
|
*/
|
|
239
250
|
/**
|
|
240
251
|
* Mixin to augment a directive with a `color` property.
|
|
@@ -287,7 +298,7 @@ function mixinColor(base, defaultColor) {
|
|
|
287
298
|
|
|
288
299
|
/**
|
|
289
300
|
* @fileoverview added by tsickle
|
|
290
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
301
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
291
302
|
*/
|
|
292
303
|
/**
|
|
293
304
|
* Mixin to augment a directive with a `disableRipple` property.
|
|
@@ -328,7 +339,7 @@ function mixinDisableRipple(base) {
|
|
|
328
339
|
|
|
329
340
|
/**
|
|
330
341
|
* @fileoverview added by tsickle
|
|
331
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
342
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
332
343
|
*/
|
|
333
344
|
/**
|
|
334
345
|
* Mixin to augment a directive with a `tabIndex` property.
|
|
@@ -372,7 +383,7 @@ function mixinTabIndex(base, defaultTabIndex) {
|
|
|
372
383
|
|
|
373
384
|
/**
|
|
374
385
|
* @fileoverview added by tsickle
|
|
375
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
386
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
376
387
|
*/
|
|
377
388
|
/**
|
|
378
389
|
* Mixin to augment a directive with updateErrorState method.
|
|
@@ -415,7 +426,7 @@ function mixinErrorState(base) {
|
|
|
415
426
|
/** @type {?} */
|
|
416
427
|
var matcher = this.errorStateMatcher || this._defaultErrorStateMatcher;
|
|
417
428
|
/** @type {?} */
|
|
418
|
-
var control = this.ngControl ? /** @type {?} */ (this.ngControl.control) : null;
|
|
429
|
+
var control = this.ngControl ? (/** @type {?} */ (this.ngControl.control)) : null;
|
|
419
430
|
/** @type {?} */
|
|
420
431
|
var newState = matcher.isErrorState(control, parent);
|
|
421
432
|
if (newState !== oldState) {
|
|
@@ -429,7 +440,7 @@ function mixinErrorState(base) {
|
|
|
429
440
|
|
|
430
441
|
/**
|
|
431
442
|
* @fileoverview added by tsickle
|
|
432
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
443
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
433
444
|
*/
|
|
434
445
|
/**
|
|
435
446
|
* Mixin to augment a directive with an initialized property that will emits when ngOnInit ends.
|
|
@@ -467,7 +478,7 @@ function mixinInitialized(base) {
|
|
|
467
478
|
_this._notifySubscriber(subscriber);
|
|
468
479
|
}
|
|
469
480
|
else {
|
|
470
|
-
/** @type {?} */ (
|
|
481
|
+
(/** @type {?} */ (_this._pendingSubscribers)).push(subscriber);
|
|
471
482
|
}
|
|
472
483
|
});
|
|
473
484
|
return _this;
|
|
@@ -494,8 +505,8 @@ function mixinInitialized(base) {
|
|
|
494
505
|
throw Error('This directive has already been marked as initialized and ' +
|
|
495
506
|
'should not be called twice.');
|
|
496
507
|
}
|
|
497
|
-
this._isInitialized = true;
|
|
498
|
-
((this._pendingSubscribers)).forEach(this._notifySubscriber);
|
|
508
|
+
this._isInitialized = true;
|
|
509
|
+
(/** @type {?} */ (this._pendingSubscribers)).forEach(this._notifySubscriber);
|
|
499
510
|
this._pendingSubscribers = null;
|
|
500
511
|
};
|
|
501
512
|
/** Emits and completes the subscriber stream (should only emit once). */
|
|
@@ -519,16 +530,17 @@ function mixinInitialized(base) {
|
|
|
519
530
|
|
|
520
531
|
/**
|
|
521
532
|
* @fileoverview added by tsickle
|
|
522
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
533
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
523
534
|
*/
|
|
524
535
|
|
|
525
536
|
/**
|
|
526
537
|
* @fileoverview added by tsickle
|
|
527
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
538
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
528
539
|
*/
|
|
529
|
-
/**
|
|
540
|
+
/**
|
|
530
541
|
* InjectionToken for datepicker that can be used to override default locale code.
|
|
531
|
-
|
|
542
|
+
* @type {?}
|
|
543
|
+
*/
|
|
532
544
|
var MAT_DATE_LOCALE = new InjectionToken('MAT_DATE_LOCALE', {
|
|
533
545
|
providedIn: 'root',
|
|
534
546
|
factory: MAT_DATE_LOCALE_FACTORY,
|
|
@@ -540,12 +552,13 @@ var MAT_DATE_LOCALE = new InjectionToken('MAT_DATE_LOCALE', {
|
|
|
540
552
|
function MAT_DATE_LOCALE_FACTORY() {
|
|
541
553
|
return inject(LOCALE_ID);
|
|
542
554
|
}
|
|
543
|
-
/**
|
|
555
|
+
/**
|
|
544
556
|
* No longer needed since MAT_DATE_LOCALE has been changed to a scoped injectable.
|
|
545
557
|
* If you are importing and providing this in your code you can simply remove it.
|
|
546
558
|
* @deprecated
|
|
547
559
|
* \@breaking-change 8.0.0
|
|
548
|
-
|
|
560
|
+
* @type {?}
|
|
561
|
+
*/
|
|
549
562
|
var MAT_DATE_LOCALE_PROVIDER = { provide: MAT_DATE_LOCALE, useExisting: LOCALE_ID };
|
|
550
563
|
/**
|
|
551
564
|
* Adapts type `D` to be usable as a date by cdk-based components that work with dates.
|
|
@@ -729,22 +742,25 @@ DateAdapter = /** @class */ (function () {
|
|
|
729
742
|
|
|
730
743
|
/**
|
|
731
744
|
* @fileoverview added by tsickle
|
|
732
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
745
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
733
746
|
*/
|
|
734
747
|
/** @type {?} */
|
|
735
748
|
var MAT_DATE_FORMATS = new InjectionToken('mat-date-formats');
|
|
736
749
|
|
|
737
750
|
/**
|
|
738
751
|
* @fileoverview added by tsickle
|
|
739
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
752
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
740
753
|
*/
|
|
741
|
-
|
|
754
|
+
// TODO(mmalerba): Remove when we no longer support safari 9.
|
|
755
|
+
/**
|
|
742
756
|
* Whether the browser supports the Intl API.
|
|
743
|
-
|
|
757
|
+
* @type {?}
|
|
758
|
+
*/
|
|
744
759
|
var SUPPORTS_INTL_API = typeof Intl != 'undefined';
|
|
745
|
-
/**
|
|
760
|
+
/**
|
|
746
761
|
* The default month names to use if Intl API is not available.
|
|
747
|
-
|
|
762
|
+
* @type {?}
|
|
763
|
+
*/
|
|
748
764
|
var DEFAULT_MONTH_NAMES = {
|
|
749
765
|
'long': [
|
|
750
766
|
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
|
|
@@ -754,23 +770,26 @@ var DEFAULT_MONTH_NAMES = {
|
|
|
754
770
|
'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']
|
|
755
771
|
};
|
|
756
772
|
var ɵ0 = function (i) { return String(i + 1); };
|
|
757
|
-
/**
|
|
773
|
+
/**
|
|
758
774
|
* The default date names to use if Intl API is not available.
|
|
759
|
-
|
|
775
|
+
* @type {?}
|
|
776
|
+
*/
|
|
760
777
|
var DEFAULT_DATE_NAMES = range(31, ɵ0);
|
|
761
|
-
/**
|
|
778
|
+
/**
|
|
762
779
|
* The default day of the week names to use if Intl API is not available.
|
|
763
|
-
|
|
780
|
+
* @type {?}
|
|
781
|
+
*/
|
|
764
782
|
var DEFAULT_DAY_OF_WEEK_NAMES = {
|
|
765
783
|
'long': ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
766
784
|
'short': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
767
785
|
'narrow': ['S', 'M', 'T', 'W', 'T', 'F', 'S']
|
|
768
786
|
};
|
|
769
|
-
/**
|
|
787
|
+
/**
|
|
770
788
|
* Matches strings that have the form of a valid RFC 3339 string
|
|
771
789
|
* (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date
|
|
772
790
|
* because the regex will match strings an with out of bounds month, date, etc.
|
|
773
|
-
|
|
791
|
+
* @type {?}
|
|
792
|
+
*/
|
|
774
793
|
var ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
|
|
775
794
|
/**
|
|
776
795
|
* Creates an array and fills it with values.
|
|
@@ -953,7 +972,7 @@ var NativeDateAdapter = /** @class */ (function (_super) {
|
|
|
953
972
|
* @return {?}
|
|
954
973
|
*/
|
|
955
974
|
function (date) {
|
|
956
|
-
return
|
|
975
|
+
return new Date(date.getTime());
|
|
957
976
|
};
|
|
958
977
|
/**
|
|
959
978
|
* @param {?} year
|
|
@@ -1167,8 +1186,10 @@ var NativeDateAdapter = /** @class */ (function (_super) {
|
|
|
1167
1186
|
function () {
|
|
1168
1187
|
return new Date(NaN);
|
|
1169
1188
|
};
|
|
1189
|
+
/** Creates a date but allows the month and date to overflow. */
|
|
1170
1190
|
/**
|
|
1171
1191
|
* Creates a date but allows the month and date to overflow.
|
|
1192
|
+
* @private
|
|
1172
1193
|
* @param {?} year
|
|
1173
1194
|
* @param {?} month
|
|
1174
1195
|
* @param {?} date
|
|
@@ -1176,6 +1197,7 @@ var NativeDateAdapter = /** @class */ (function (_super) {
|
|
|
1176
1197
|
*/
|
|
1177
1198
|
NativeDateAdapter.prototype._createDateWithOverflow = /**
|
|
1178
1199
|
* Creates a date but allows the month and date to overflow.
|
|
1200
|
+
* @private
|
|
1179
1201
|
* @param {?} year
|
|
1180
1202
|
* @param {?} month
|
|
1181
1203
|
* @param {?} date
|
|
@@ -1193,11 +1215,18 @@ var NativeDateAdapter = /** @class */ (function (_super) {
|
|
|
1193
1215
|
};
|
|
1194
1216
|
/**
|
|
1195
1217
|
* Pads a number to make it two digits.
|
|
1218
|
+
* @param n The number to pad.
|
|
1219
|
+
* @returns The padded number.
|
|
1220
|
+
*/
|
|
1221
|
+
/**
|
|
1222
|
+
* Pads a number to make it two digits.
|
|
1223
|
+
* @private
|
|
1196
1224
|
* @param {?} n The number to pad.
|
|
1197
1225
|
* @return {?} The padded number.
|
|
1198
1226
|
*/
|
|
1199
1227
|
NativeDateAdapter.prototype._2digit = /**
|
|
1200
1228
|
* Pads a number to make it two digits.
|
|
1229
|
+
* @private
|
|
1201
1230
|
* @param {?} n The number to pad.
|
|
1202
1231
|
* @return {?} The padded number.
|
|
1203
1232
|
*/
|
|
@@ -1208,6 +1237,14 @@ var NativeDateAdapter = /** @class */ (function (_super) {
|
|
|
1208
1237
|
* Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
|
|
1209
1238
|
* other browsers do not. We remove them to make output consistent and because they interfere with
|
|
1210
1239
|
* date parsing.
|
|
1240
|
+
* @param str The string to strip direction characters from.
|
|
1241
|
+
* @returns The stripped string.
|
|
1242
|
+
*/
|
|
1243
|
+
/**
|
|
1244
|
+
* Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
|
|
1245
|
+
* other browsers do not. We remove them to make output consistent and because they interfere with
|
|
1246
|
+
* date parsing.
|
|
1247
|
+
* @private
|
|
1211
1248
|
* @param {?} str The string to strip direction characters from.
|
|
1212
1249
|
* @return {?} The stripped string.
|
|
1213
1250
|
*/
|
|
@@ -1215,6 +1252,7 @@ var NativeDateAdapter = /** @class */ (function (_super) {
|
|
|
1215
1252
|
* Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
|
|
1216
1253
|
* other browsers do not. We remove them to make output consistent and because they interfere with
|
|
1217
1254
|
* date parsing.
|
|
1255
|
+
* @private
|
|
1218
1256
|
* @param {?} str The string to strip direction characters from.
|
|
1219
1257
|
* @return {?} The stripped string.
|
|
1220
1258
|
*/
|
|
@@ -1227,6 +1265,18 @@ var NativeDateAdapter = /** @class */ (function (_super) {
|
|
|
1227
1265
|
* very frequently, and the current valid rule is not always valid in previous years though.
|
|
1228
1266
|
* We work around this problem building a new Date object which has its internal UTC
|
|
1229
1267
|
* representation with the local date and time.
|
|
1268
|
+
* @param dtf Intl.DateTimeFormat object, containg the desired string format. It must have
|
|
1269
|
+
* timeZone set to 'utc' to work fine.
|
|
1270
|
+
* @param date Date from which we want to get the string representation according to dtf
|
|
1271
|
+
* @returns A Date object with its UTC representation based on the passed in date info
|
|
1272
|
+
*/
|
|
1273
|
+
/**
|
|
1274
|
+
* When converting Date object to string, javascript built-in functions may return wrong
|
|
1275
|
+
* results because it applies its internal DST rules. The DST rules around the world change
|
|
1276
|
+
* very frequently, and the current valid rule is not always valid in previous years though.
|
|
1277
|
+
* We work around this problem building a new Date object which has its internal UTC
|
|
1278
|
+
* representation with the local date and time.
|
|
1279
|
+
* @private
|
|
1230
1280
|
* @param {?} dtf Intl.DateTimeFormat object, containg the desired string format. It must have
|
|
1231
1281
|
* timeZone set to 'utc' to work fine.
|
|
1232
1282
|
* @param {?} date Date from which we want to get the string representation according to dtf
|
|
@@ -1238,6 +1288,7 @@ var NativeDateAdapter = /** @class */ (function (_super) {
|
|
|
1238
1288
|
* very frequently, and the current valid rule is not always valid in previous years though.
|
|
1239
1289
|
* We work around this problem building a new Date object which has its internal UTC
|
|
1240
1290
|
* representation with the local date and time.
|
|
1291
|
+
* @private
|
|
1241
1292
|
* @param {?} dtf Intl.DateTimeFormat object, containg the desired string format. It must have
|
|
1242
1293
|
* timeZone set to 'utc' to work fine.
|
|
1243
1294
|
* @param {?} date Date from which we want to get the string representation according to dtf
|
|
@@ -1261,7 +1312,7 @@ var NativeDateAdapter = /** @class */ (function (_super) {
|
|
|
1261
1312
|
|
|
1262
1313
|
/**
|
|
1263
1314
|
* @fileoverview added by tsickle
|
|
1264
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1315
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1265
1316
|
*/
|
|
1266
1317
|
|
|
1267
1318
|
/** @type {?} */
|
|
@@ -1279,7 +1330,7 @@ var MAT_NATIVE_DATE_FORMATS = {
|
|
|
1279
1330
|
|
|
1280
1331
|
/**
|
|
1281
1332
|
* @fileoverview added by tsickle
|
|
1282
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1333
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1283
1334
|
*/
|
|
1284
1335
|
var NativeDateModule = /** @class */ (function () {
|
|
1285
1336
|
function NativeDateModule() {
|
|
@@ -1309,7 +1360,7 @@ var MatNativeDateModule = /** @class */ (function () {
|
|
|
1309
1360
|
|
|
1310
1361
|
/**
|
|
1311
1362
|
* @fileoverview added by tsickle
|
|
1312
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1363
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1313
1364
|
*/
|
|
1314
1365
|
/**
|
|
1315
1366
|
* Error state matcher that matches when a control is invalid and dirty.
|
|
@@ -1363,12 +1414,18 @@ var ErrorStateMatcher = /** @class */ (function () {
|
|
|
1363
1414
|
|
|
1364
1415
|
/**
|
|
1365
1416
|
* @fileoverview added by tsickle
|
|
1366
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1417
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1367
1418
|
*/
|
|
1368
|
-
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* @fileoverview added by tsickle
|
|
1422
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1423
|
+
*/
|
|
1424
|
+
/**
|
|
1369
1425
|
* Injection token that can be used to provide options to the Hammerjs instance.
|
|
1370
1426
|
* More info at http://hammerjs.github.io/api/.
|
|
1371
|
-
|
|
1427
|
+
* @type {?}
|
|
1428
|
+
*/
|
|
1372
1429
|
var MAT_HAMMER_OPTIONS = new InjectionToken('MAT_HAMMER_OPTIONS');
|
|
1373
1430
|
/** @type {?} */
|
|
1374
1431
|
var ANGULAR_MATERIAL_SUPPORTED_HAMMER_GESTURES = [
|
|
@@ -1380,10 +1437,11 @@ var ANGULAR_MATERIAL_SUPPORTED_HAMMER_GESTURES = [
|
|
|
1380
1437
|
'slideleft'
|
|
1381
1438
|
];
|
|
1382
1439
|
var ɵ0$2 = function () { }, ɵ1 = function () { };
|
|
1383
|
-
/**
|
|
1440
|
+
/**
|
|
1384
1441
|
* Fake HammerInstance that is used when a Hammer instance is requested when HammerJS has not
|
|
1385
1442
|
* been loaded on the page.
|
|
1386
|
-
|
|
1443
|
+
* @type {?}
|
|
1444
|
+
*/
|
|
1387
1445
|
var noopHammerInstance = {
|
|
1388
1446
|
on: ɵ0$2,
|
|
1389
1447
|
off: ɵ1,
|
|
@@ -1446,7 +1504,7 @@ var GestureConfig = /** @class */ (function (_super) {
|
|
|
1446
1504
|
*/
|
|
1447
1505
|
function (element) {
|
|
1448
1506
|
/** @type {?} */
|
|
1449
|
-
var hammer = typeof window !== 'undefined' ? (/** @type {?} */ (window)).Hammer : null;
|
|
1507
|
+
var hammer = typeof window !== 'undefined' ? ((/** @type {?} */ (window))).Hammer : null;
|
|
1450
1508
|
if (!hammer) {
|
|
1451
1509
|
// If HammerJS is not loaded here, return the noop HammerInstance. This is necessary to
|
|
1452
1510
|
// ensure that omitting HammerJS completely will not cause any errors while *also* supporting
|
|
@@ -1460,12 +1518,16 @@ var GestureConfig = /** @class */ (function (_super) {
|
|
|
1460
1518
|
}
|
|
1461
1519
|
/** @type {?} */
|
|
1462
1520
|
var mc = new hammer(element, this._hammerOptions || undefined);
|
|
1521
|
+
// Default Hammer Recognizers.
|
|
1463
1522
|
/** @type {?} */
|
|
1464
1523
|
var pan = new hammer.Pan();
|
|
1465
1524
|
/** @type {?} */
|
|
1466
1525
|
var swipe = new hammer.Swipe();
|
|
1467
1526
|
/** @type {?} */
|
|
1468
1527
|
var press = new hammer.Press();
|
|
1528
|
+
// Notice that a HammerJS recognizer can only depend on one other recognizer once.
|
|
1529
|
+
// Otherwise the previous `recognizeWith` will be dropped.
|
|
1530
|
+
// TODO: Confirm threshold numbers with Material Design UX Team
|
|
1469
1531
|
/** @type {?} */
|
|
1470
1532
|
var slide = this._createRecognizer(pan, { event: 'slide', threshold: 0 }, swipe);
|
|
1471
1533
|
/** @type {?} */
|
|
@@ -1480,10 +1542,12 @@ var GestureConfig = /** @class */ (function (_super) {
|
|
|
1480
1542
|
longpress.recognizeWith(slide);
|
|
1481
1543
|
// Add customized gestures to Hammer manager
|
|
1482
1544
|
mc.add([swipe, press, pan, slide, longpress]);
|
|
1483
|
-
return /** @type {?} */ (mc);
|
|
1545
|
+
return (/** @type {?} */ (mc));
|
|
1484
1546
|
};
|
|
1547
|
+
/** Creates a new recognizer, without affecting the default recognizers of HammerJS */
|
|
1485
1548
|
/**
|
|
1486
1549
|
* Creates a new recognizer, without affecting the default recognizers of HammerJS
|
|
1550
|
+
* @private
|
|
1487
1551
|
* @param {?} base
|
|
1488
1552
|
* @param {?} options
|
|
1489
1553
|
* @param {...?} inheritances
|
|
@@ -1491,6 +1555,7 @@ var GestureConfig = /** @class */ (function (_super) {
|
|
|
1491
1555
|
*/
|
|
1492
1556
|
GestureConfig.prototype._createRecognizer = /**
|
|
1493
1557
|
* Creates a new recognizer, without affecting the default recognizers of HammerJS
|
|
1558
|
+
* @private
|
|
1494
1559
|
* @param {?} base
|
|
1495
1560
|
* @param {?} options
|
|
1496
1561
|
* @param {...?} inheritances
|
|
@@ -1502,7 +1567,7 @@ var GestureConfig = /** @class */ (function (_super) {
|
|
|
1502
1567
|
inheritances[_i - 2] = arguments[_i];
|
|
1503
1568
|
}
|
|
1504
1569
|
/** @type {?} */
|
|
1505
|
-
var recognizer = new (/** @type {?} */ (base.constructor))(options);
|
|
1570
|
+
var recognizer = new ((/** @type {?} */ (base.constructor)))(options);
|
|
1506
1571
|
inheritances.push(base);
|
|
1507
1572
|
inheritances.forEach(function (item) { return recognizer.recognizeWith(item); });
|
|
1508
1573
|
return recognizer;
|
|
@@ -1520,7 +1585,7 @@ var GestureConfig = /** @class */ (function (_super) {
|
|
|
1520
1585
|
|
|
1521
1586
|
/**
|
|
1522
1587
|
* @fileoverview added by tsickle
|
|
1523
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1588
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1524
1589
|
*/
|
|
1525
1590
|
/**
|
|
1526
1591
|
* Shared directive to count lines inside a text area, such as a list item.
|
|
@@ -1606,7 +1671,7 @@ var MatLineModule = /** @class */ (function () {
|
|
|
1606
1671
|
|
|
1607
1672
|
/**
|
|
1608
1673
|
* @fileoverview added by tsickle
|
|
1609
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1674
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1610
1675
|
*/
|
|
1611
1676
|
|
|
1612
1677
|
/** @enum {number} */
|
|
@@ -1650,24 +1715,27 @@ RippleRef = /** @class */ (function () {
|
|
|
1650
1715
|
|
|
1651
1716
|
/**
|
|
1652
1717
|
* @fileoverview added by tsickle
|
|
1653
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1718
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1654
1719
|
*/
|
|
1655
|
-
/**
|
|
1720
|
+
/**
|
|
1656
1721
|
* Default ripple animation configuration for ripples without an explicit
|
|
1657
1722
|
* animation config specified.
|
|
1658
|
-
|
|
1723
|
+
* @type {?}
|
|
1724
|
+
*/
|
|
1659
1725
|
var defaultRippleAnimationConfig = {
|
|
1660
1726
|
enterDuration: 450,
|
|
1661
1727
|
exitDuration: 400
|
|
1662
1728
|
};
|
|
1663
|
-
/**
|
|
1729
|
+
/**
|
|
1664
1730
|
* Timeout for ignoring mouse events. Mouse events will be temporary ignored after touch
|
|
1665
1731
|
* events to avoid synthetic mouse events.
|
|
1666
|
-
|
|
1732
|
+
* @type {?}
|
|
1733
|
+
*/
|
|
1667
1734
|
var ignoreMouseEventsTimeout = 800;
|
|
1668
|
-
/**
|
|
1735
|
+
/**
|
|
1669
1736
|
* Options that apply to all the event listeners that are bound by the ripple renderer.
|
|
1670
|
-
|
|
1737
|
+
* @type {?}
|
|
1738
|
+
*/
|
|
1671
1739
|
var passiveEventOptions = normalizePassiveListenerOptions({ passive: true });
|
|
1672
1740
|
/**
|
|
1673
1741
|
* Helper service that performs DOM manipulations. Not intended to be used outside this module.
|
|
@@ -1704,6 +1772,8 @@ RippleRenderer = /** @class */ (function () {
|
|
|
1704
1772
|
* Function being called whenever the trigger is being pressed using mouse.
|
|
1705
1773
|
*/
|
|
1706
1774
|
this.onMousedown = function (event) {
|
|
1775
|
+
// Screen readers will fire fake mouse events for space/enter. Skip launching a
|
|
1776
|
+
// ripple in this case for consistency with the non-screen-reader experience.
|
|
1707
1777
|
/** @type {?} */
|
|
1708
1778
|
var isFakeMousedown = isFakeMousedownFromScreenReader(event);
|
|
1709
1779
|
/** @type {?} */
|
|
@@ -1724,6 +1794,8 @@ RippleRenderer = /** @class */ (function () {
|
|
|
1724
1794
|
// time after a touchstart event.
|
|
1725
1795
|
_this._lastTouchStartEvent = Date.now();
|
|
1726
1796
|
_this._isPointerDown = true;
|
|
1797
|
+
// Use `changedTouches` so we skip any touches where the user put
|
|
1798
|
+
// their finger down, but used another finger to tap the element again.
|
|
1727
1799
|
/** @type {?} */
|
|
1728
1800
|
var touches = event.changedTouches;
|
|
1729
1801
|
for (var i = 0; i < touches.length; i++) {
|
|
@@ -1741,6 +1813,8 @@ RippleRenderer = /** @class */ (function () {
|
|
|
1741
1813
|
_this._isPointerDown = false;
|
|
1742
1814
|
// Fade-out all ripples that are visible and not persistent.
|
|
1743
1815
|
_this._activeRipples.forEach(function (ripple) {
|
|
1816
|
+
// By default, only ripples that are completely visible will fade out on pointer release.
|
|
1817
|
+
// If the `terminateOnPointerUp` option is set, ripples that still fade in will also fade out.
|
|
1744
1818
|
/** @type {?} */
|
|
1745
1819
|
var isVisible = ripple.state === RippleState.VISIBLE ||
|
|
1746
1820
|
ripple.config.terminateOnPointerUp && ripple.state === RippleState.FADING_IN;
|
|
@@ -1817,6 +1891,7 @@ RippleRenderer = /** @class */ (function () {
|
|
|
1817
1891
|
// ripple elements. This is critical because then the `scale` would not animate properly.
|
|
1818
1892
|
enforceStyleRecalculation(ripple);
|
|
1819
1893
|
ripple.style.transform = 'scale(1)';
|
|
1894
|
+
// Exposed reference to the ripple that will be returned.
|
|
1820
1895
|
/** @type {?} */
|
|
1821
1896
|
var rippleRef = new RippleRef(this, ripple, config);
|
|
1822
1897
|
rippleRef.state = RippleState.FADING_IN;
|
|
@@ -1862,7 +1937,7 @@ RippleRenderer = /** @class */ (function () {
|
|
|
1862
1937
|
if (!this._activeRipples.size) {
|
|
1863
1938
|
this._containerRect = null;
|
|
1864
1939
|
}
|
|
1865
|
-
// For ripples that are not active anymore, don't re-
|
|
1940
|
+
// For ripples that are not active anymore, don't re-run the fade-out animation.
|
|
1866
1941
|
if (!wasActive) {
|
|
1867
1942
|
return;
|
|
1868
1943
|
}
|
|
@@ -1875,8 +1950,8 @@ RippleRenderer = /** @class */ (function () {
|
|
|
1875
1950
|
rippleRef.state = RippleState.FADING_OUT;
|
|
1876
1951
|
// Once the ripple faded out, the ripple can be safely removed from the DOM.
|
|
1877
1952
|
this.runTimeoutOutsideZone(function () {
|
|
1878
|
-
rippleRef.state = RippleState.HIDDEN;
|
|
1879
|
-
((rippleEl.parentNode)).removeChild(rippleEl);
|
|
1953
|
+
rippleRef.state = RippleState.HIDDEN;
|
|
1954
|
+
(/** @type {?} */ (rippleEl.parentNode)).removeChild(rippleEl);
|
|
1880
1955
|
}, animationConfig.exitDuration);
|
|
1881
1956
|
};
|
|
1882
1957
|
/** Fades out all currently active ripples. */
|
|
@@ -1916,14 +1991,17 @@ RippleRenderer = /** @class */ (function () {
|
|
|
1916
1991
|
});
|
|
1917
1992
|
this._triggerElement = element;
|
|
1918
1993
|
};
|
|
1994
|
+
/** Runs a timeout outside of the Angular zone to avoid triggering the change detection. */
|
|
1919
1995
|
/**
|
|
1920
1996
|
* Runs a timeout outside of the Angular zone to avoid triggering the change detection.
|
|
1997
|
+
* @private
|
|
1921
1998
|
* @param {?} fn
|
|
1922
1999
|
* @param {?=} delay
|
|
1923
2000
|
* @return {?}
|
|
1924
2001
|
*/
|
|
1925
2002
|
RippleRenderer.prototype.runTimeoutOutsideZone = /**
|
|
1926
2003
|
* Runs a timeout outside of the Angular zone to avoid triggering the change detection.
|
|
2004
|
+
* @private
|
|
1927
2005
|
* @param {?} fn
|
|
1928
2006
|
* @param {?=} delay
|
|
1929
2007
|
* @return {?}
|
|
@@ -1945,7 +2023,7 @@ RippleRenderer = /** @class */ (function () {
|
|
|
1945
2023
|
var _this = this;
|
|
1946
2024
|
if (this._triggerElement) {
|
|
1947
2025
|
this._triggerEvents.forEach(function (fn, type) {
|
|
1948
|
-
/** @type {?} */ (
|
|
2026
|
+
(/** @type {?} */ (_this._triggerElement)).removeEventListener(type, fn, passiveEventOptions);
|
|
1949
2027
|
});
|
|
1950
2028
|
}
|
|
1951
2029
|
};
|
|
@@ -1979,11 +2057,12 @@ function distanceToFurthestCorner(x, y, rect) {
|
|
|
1979
2057
|
|
|
1980
2058
|
/**
|
|
1981
2059
|
* @fileoverview added by tsickle
|
|
1982
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2060
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1983
2061
|
*/
|
|
1984
|
-
/**
|
|
2062
|
+
/**
|
|
1985
2063
|
* Injection token that can be used to specify the global ripple options.
|
|
1986
|
-
|
|
2064
|
+
* @type {?}
|
|
2065
|
+
*/
|
|
1987
2066
|
var MAT_RIPPLE_GLOBAL_OPTIONS = new InjectionToken('mat-ripple-global-options');
|
|
1988
2067
|
var MatRipple = /** @class */ (function () {
|
|
1989
2068
|
function MatRipple(_elementRef, ngZone, platform, globalOptions, animationMode) {
|
|
@@ -2118,12 +2197,15 @@ var MatRipple = /** @class */ (function () {
|
|
|
2118
2197
|
enumerable: true,
|
|
2119
2198
|
configurable: true
|
|
2120
2199
|
});
|
|
2200
|
+
/** Sets up the the trigger event listeners if ripples are enabled. */
|
|
2121
2201
|
/**
|
|
2122
2202
|
* Sets up the the trigger event listeners if ripples are enabled.
|
|
2203
|
+
* @private
|
|
2123
2204
|
* @return {?}
|
|
2124
2205
|
*/
|
|
2125
2206
|
MatRipple.prototype._setupTriggerEventsIfEnabled = /**
|
|
2126
2207
|
* Sets up the the trigger event listeners if ripples are enabled.
|
|
2208
|
+
* @private
|
|
2127
2209
|
* @return {?}
|
|
2128
2210
|
*/
|
|
2129
2211
|
function () {
|
|
@@ -2187,7 +2269,7 @@ var MatRipple = /** @class */ (function () {
|
|
|
2187
2269
|
|
|
2188
2270
|
/**
|
|
2189
2271
|
* @fileoverview added by tsickle
|
|
2190
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2272
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2191
2273
|
*/
|
|
2192
2274
|
var MatRippleModule = /** @class */ (function () {
|
|
2193
2275
|
function MatRippleModule() {
|
|
@@ -2204,7 +2286,7 @@ var MatRippleModule = /** @class */ (function () {
|
|
|
2204
2286
|
|
|
2205
2287
|
/**
|
|
2206
2288
|
* @fileoverview added by tsickle
|
|
2207
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2289
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2208
2290
|
*/
|
|
2209
2291
|
/**
|
|
2210
2292
|
* Component that shows a simplified checkbox without including any kind of "real" checkbox.
|
|
@@ -2235,7 +2317,7 @@ var MatPseudoCheckbox = /** @class */ (function () {
|
|
|
2235
2317
|
{ type: Component, args: [{encapsulation: ViewEncapsulation.None,
|
|
2236
2318
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2237
2319
|
selector: 'mat-pseudo-checkbox',
|
|
2238
|
-
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-
|
|
2320
|
+
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}"],
|
|
2239
2321
|
template: '',
|
|
2240
2322
|
host: {
|
|
2241
2323
|
'class': 'mat-pseudo-checkbox',
|
|
@@ -2259,7 +2341,7 @@ var MatPseudoCheckbox = /** @class */ (function () {
|
|
|
2259
2341
|
|
|
2260
2342
|
/**
|
|
2261
2343
|
* @fileoverview added by tsickle
|
|
2262
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2344
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2263
2345
|
*/
|
|
2264
2346
|
var MatPseudoCheckboxModule = /** @class */ (function () {
|
|
2265
2347
|
function MatPseudoCheckboxModule() {
|
|
@@ -2275,12 +2357,15 @@ var MatPseudoCheckboxModule = /** @class */ (function () {
|
|
|
2275
2357
|
|
|
2276
2358
|
/**
|
|
2277
2359
|
* @fileoverview added by tsickle
|
|
2278
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2360
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2279
2361
|
*/
|
|
2362
|
+
// Boilerplate for applying mixins to MatOptgroup.
|
|
2280
2363
|
/**
|
|
2281
2364
|
* \@docs-private
|
|
2282
2365
|
*/
|
|
2283
|
-
var
|
|
2366
|
+
var
|
|
2367
|
+
// Boilerplate for applying mixins to MatOptgroup.
|
|
2368
|
+
/**
|
|
2284
2369
|
* \@docs-private
|
|
2285
2370
|
*/
|
|
2286
2371
|
MatOptgroupBase = /** @class */ (function () {
|
|
@@ -2290,6 +2375,7 @@ MatOptgroupBase = /** @class */ (function () {
|
|
|
2290
2375
|
}());
|
|
2291
2376
|
/** @type {?} */
|
|
2292
2377
|
var _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase);
|
|
2378
|
+
// Counter for unique group ids.
|
|
2293
2379
|
/** @type {?} */
|
|
2294
2380
|
var _uniqueOptgroupIdCounter = 0;
|
|
2295
2381
|
/**
|
|
@@ -2330,12 +2416,13 @@ var MatOptgroup = /** @class */ (function (_super) {
|
|
|
2330
2416
|
|
|
2331
2417
|
/**
|
|
2332
2418
|
* @fileoverview added by tsickle
|
|
2333
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2419
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2334
2420
|
*/
|
|
2335
|
-
/**
|
|
2421
|
+
/**
|
|
2336
2422
|
* Option IDs need to be unique across components, so this counter exists outside of
|
|
2337
2423
|
* the component definition.
|
|
2338
|
-
|
|
2424
|
+
* @type {?}
|
|
2425
|
+
*/
|
|
2339
2426
|
var _uniqueIdCounter = 0;
|
|
2340
2427
|
/**
|
|
2341
2428
|
* Event object emitted by MatOption when selected or deselected.
|
|
@@ -2351,9 +2438,10 @@ MatOptionSelectionChange = /** @class */ (function () {
|
|
|
2351
2438
|
}
|
|
2352
2439
|
return MatOptionSelectionChange;
|
|
2353
2440
|
}());
|
|
2354
|
-
/**
|
|
2441
|
+
/**
|
|
2355
2442
|
* Injection token used to provide the parent component to options.
|
|
2356
|
-
|
|
2443
|
+
* @type {?}
|
|
2444
|
+
*/
|
|
2357
2445
|
var MAT_OPTION_PARENT_COMPONENT = new InjectionToken('MAT_OPTION_PARENT_COMPONENT');
|
|
2358
2446
|
/**
|
|
2359
2447
|
* Single option inside of a `<mat-select>` element.
|
|
@@ -2375,6 +2463,7 @@ var MatOption = /** @class */ (function () {
|
|
|
2375
2463
|
/**
|
|
2376
2464
|
* Event emitted when the option is selected or deselected.
|
|
2377
2465
|
*/
|
|
2466
|
+
// tslint:disable-next-line:no-output-on-prefix
|
|
2378
2467
|
this.onSelectionChange = new EventEmitter();
|
|
2379
2468
|
/**
|
|
2380
2469
|
* Emits when the state of the option changes and any parents have to be notified.
|
|
@@ -2581,7 +2670,7 @@ var MatOption = /** @class */ (function () {
|
|
|
2581
2670
|
* @return {?}
|
|
2582
2671
|
*/
|
|
2583
2672
|
function (event) {
|
|
2584
|
-
if (event.keyCode === ENTER || event.keyCode === SPACE) {
|
|
2673
|
+
if ((event.keyCode === ENTER || event.keyCode === SPACE) && !hasModifierKey(event)) {
|
|
2585
2674
|
this._selectViaInteraction();
|
|
2586
2675
|
// Prevent the page from scrolling down and form submits.
|
|
2587
2676
|
event.preventDefault();
|
|
@@ -2662,13 +2751,16 @@ var MatOption = /** @class */ (function () {
|
|
|
2662
2751
|
function () {
|
|
2663
2752
|
this._stateChanges.complete();
|
|
2664
2753
|
};
|
|
2754
|
+
/** Emits the selection change event. */
|
|
2665
2755
|
/**
|
|
2666
2756
|
* Emits the selection change event.
|
|
2757
|
+
* @private
|
|
2667
2758
|
* @param {?=} isUserInput
|
|
2668
2759
|
* @return {?}
|
|
2669
2760
|
*/
|
|
2670
2761
|
MatOption.prototype._emitSelectionChangeEvent = /**
|
|
2671
2762
|
* Emits the selection change event.
|
|
2763
|
+
* @private
|
|
2672
2764
|
* @param {?=} isUserInput
|
|
2673
2765
|
* @return {?}
|
|
2674
2766
|
*/
|
|
@@ -2693,7 +2785,7 @@ var MatOption = /** @class */ (function () {
|
|
|
2693
2785
|
'(keydown)': '_handleKeydown($event)',
|
|
2694
2786
|
'class': 'mat-option',
|
|
2695
2787
|
},
|
|
2696
|
-
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
|
|
2788
|
+
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}"],
|
|
2697
2789
|
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>",
|
|
2698
2790
|
encapsulation: ViewEncapsulation.None,
|
|
2699
2791
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -2762,7 +2854,7 @@ function _getOptionScrollPosition(optionIndex, optionHeight, currentScrollPositi
|
|
|
2762
2854
|
|
|
2763
2855
|
/**
|
|
2764
2856
|
* @fileoverview added by tsickle
|
|
2765
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2857
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2766
2858
|
*/
|
|
2767
2859
|
var MatOptionModule = /** @class */ (function () {
|
|
2768
2860
|
function MatOptionModule() {
|
|
@@ -2779,87 +2871,58 @@ var MatOptionModule = /** @class */ (function () {
|
|
|
2779
2871
|
|
|
2780
2872
|
/**
|
|
2781
2873
|
* @fileoverview added by tsickle
|
|
2782
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2874
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2783
2875
|
*/
|
|
2784
|
-
/**
|
|
2876
|
+
/**
|
|
2785
2877
|
* InjectionToken that can be used to specify the global label options.
|
|
2786
|
-
|
|
2878
|
+
* @type {?}
|
|
2879
|
+
*/
|
|
2787
2880
|
var MAT_LABEL_GLOBAL_OPTIONS = new InjectionToken('mat-label-global-options');
|
|
2788
2881
|
|
|
2789
2882
|
/**
|
|
2790
2883
|
* @fileoverview added by tsickle
|
|
2791
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2884
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2792
2885
|
*/
|
|
2793
2886
|
|
|
2794
|
-
/**
|
|
2887
|
+
/**
|
|
2795
2888
|
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2796
2889
|
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2797
|
-
|
|
2890
|
+
* \@docs-private
|
|
2891
|
+
* \@breaking-change 8.0.0 Remove this with V8 since it was only targeted for testing.
|
|
2892
|
+
* @type {?}
|
|
2893
|
+
*/
|
|
2798
2894
|
var JAN = 0;
|
|
2799
|
-
/**
|
|
2800
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2801
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2802
|
-
@type {?} */
|
|
2895
|
+
/** @type {?} */
|
|
2803
2896
|
var FEB = 1;
|
|
2804
|
-
/**
|
|
2805
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2806
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2807
|
-
@type {?} */
|
|
2897
|
+
/** @type {?} */
|
|
2808
2898
|
var MAR = 2;
|
|
2809
|
-
/**
|
|
2810
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2811
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2812
|
-
@type {?} */
|
|
2899
|
+
/** @type {?} */
|
|
2813
2900
|
var APR = 3;
|
|
2814
|
-
/**
|
|
2815
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2816
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2817
|
-
@type {?} */
|
|
2901
|
+
/** @type {?} */
|
|
2818
2902
|
var MAY = 4;
|
|
2819
|
-
/**
|
|
2820
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2821
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2822
|
-
@type {?} */
|
|
2903
|
+
/** @type {?} */
|
|
2823
2904
|
var JUN = 5;
|
|
2824
|
-
/**
|
|
2825
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2826
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2827
|
-
@type {?} */
|
|
2905
|
+
/** @type {?} */
|
|
2828
2906
|
var JUL = 6;
|
|
2829
|
-
/**
|
|
2830
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2831
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2832
|
-
@type {?} */
|
|
2907
|
+
/** @type {?} */
|
|
2833
2908
|
var AUG = 7;
|
|
2834
|
-
/**
|
|
2835
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2836
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2837
|
-
@type {?} */
|
|
2909
|
+
/** @type {?} */
|
|
2838
2910
|
var SEP = 8;
|
|
2839
|
-
/**
|
|
2840
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2841
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2842
|
-
@type {?} */
|
|
2911
|
+
/** @type {?} */
|
|
2843
2912
|
var OCT = 9;
|
|
2844
|
-
/**
|
|
2845
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2846
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2847
|
-
@type {?} */
|
|
2913
|
+
/** @type {?} */
|
|
2848
2914
|
var NOV = 10;
|
|
2849
|
-
/**
|
|
2850
|
-
* When constructing a Date, the month is zero-based. This can be confusing, since people are
|
|
2851
|
-
* used to seeing them one-based. So we create these aliases to make writing the tests easier.
|
|
2852
|
-
@type {?} */
|
|
2915
|
+
/** @type {?} */
|
|
2853
2916
|
var DEC = 11;
|
|
2854
2917
|
|
|
2855
2918
|
/**
|
|
2856
2919
|
* @fileoverview added by tsickle
|
|
2857
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2920
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2858
2921
|
*/
|
|
2859
2922
|
|
|
2860
2923
|
/**
|
|
2861
2924
|
* @fileoverview added by tsickle
|
|
2862
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2925
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2863
2926
|
*/
|
|
2864
2927
|
|
|
2865
2928
|
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 };
|