@angular/material 11.0.4 → 11.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_theming.scss +354 -337
- package/autocomplete/_autocomplete-theme.scss +4 -5
- package/autocomplete/autocomplete.d.ts +7 -1
- package/autocomplete/index.metadata.json +1 -1
- package/autocomplete/testing/autocomplete-harness.d.ts +29 -15
- package/badge/_badge-theme.scss +2 -3
- package/bottom-sheet/_bottom-sheet-theme.scss +4 -5
- package/bundles/material-autocomplete-testing.umd.js +54 -36
- package/bundles/material-autocomplete-testing.umd.js.map +1 -1
- package/bundles/material-autocomplete-testing.umd.min.js +2 -2
- package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
- package/bundles/material-autocomplete.umd.js +31 -9
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +3 -3
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge-testing.umd.js +9 -1
- package/bundles/material-badge-testing.umd.js.map +1 -1
- package/bundles/material-badge-testing.umd.min.js +1 -1
- package/bundles/material-badge-testing.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +9 -1
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +3 -3
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet-testing.umd.js +9 -1
- package/bundles/material-bottom-sheet-testing.umd.js.map +1 -1
- package/bundles/material-bottom-sheet-testing.umd.min.js +1 -1
- package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +9 -1
- 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-testing.umd.js +9 -1
- package/bundles/material-button-testing.umd.js.map +1 -1
- package/bundles/material-button-testing.umd.min.js +1 -1
- package/bundles/material-button-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.js +9 -1
- package/bundles/material-button-toggle-testing.umd.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.min.js +1 -1
- package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +9 -1
- 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 +17 -5
- 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-testing.umd.js +9 -1
- package/bundles/material-card-testing.umd.js.map +1 -1
- package/bundles/material-card-testing.umd.min.js +1 -1
- package/bundles/material-card-testing.umd.min.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.js +73 -64
- package/bundles/material-checkbox-testing.umd.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.min.js +2 -2
- package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +15 -3
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +2 -2
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips-testing.umd.js +189 -29
- package/bundles/material-chips-testing.umd.js.map +1 -1
- package/bundles/material-chips-testing.umd.min.js +2 -2
- package/bundles/material-chips-testing.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +9 -1
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +4 -4
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core-testing.umd.js +14 -3
- package/bundles/material-core-testing.umd.js.map +1 -1
- package/bundles/material-core-testing.umd.min.js +1 -1
- package/bundles/material-core-testing.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +55 -14
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +16 -8
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker-testing.umd.js +24 -12
- package/bundles/material-datepicker-testing.umd.js.map +1 -1
- package/bundles/material-datepicker-testing.umd.min.js +1 -1
- package/bundles/material-datepicker-testing.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +250 -80
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +20 -12
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog-testing.umd.js +9 -1
- package/bundles/material-dialog-testing.umd.js.map +1 -1
- package/bundles/material-dialog-testing.umd.min.js +1 -1
- package/bundles/material-dialog-testing.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +10 -2
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +8 -8
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider-testing.umd.js +9 -1
- package/bundles/material-divider-testing.umd.js.map +1 -1
- package/bundles/material-divider-testing.umd.min.js +2 -2
- package/bundles/material-divider-testing.umd.min.js.map +1 -1
- package/bundles/material-expansion-testing.umd.js +9 -1
- package/bundles/material-expansion-testing.umd.js.map +1 -1
- package/bundles/material-expansion-testing.umd.min.js +1 -1
- package/bundles/material-expansion-testing.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +16 -4
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +6 -6
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field-testing-control.umd.js +9 -1
- package/bundles/material-form-field-testing-control.umd.js.map +1 -1
- package/bundles/material-form-field-testing-control.umd.min.js +1 -1
- package/bundles/material-form-field-testing-control.umd.min.js.map +1 -1
- package/bundles/material-form-field-testing.umd.js +41 -30
- package/bundles/material-form-field-testing.umd.js.map +1 -1
- package/bundles/material-form-field-testing.umd.min.js +3 -3
- package/bundles/material-form-field-testing.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +11 -3
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +2 -2
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list-testing.umd.js +15 -5
- package/bundles/material-grid-list-testing.umd.js.map +1 -1
- package/bundles/material-grid-list-testing.umd.min.js +2 -2
- package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +156 -146
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +12 -19
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon-testing.umd.js +12 -2
- package/bundles/material-icon-testing.umd.js.map +1 -1
- package/bundles/material-icon-testing.umd.min.js +2 -2
- package/bundles/material-icon-testing.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +46 -2
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +3 -3
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input-testing.umd.js +19 -8
- package/bundles/material-input-testing.umd.js.map +1 -1
- package/bundles/material-input-testing.umd.min.js +1 -1
- package/bundles/material-input-testing.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +9 -1
- 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-testing.umd.js +62 -57
- package/bundles/material-list-testing.umd.js.map +1 -1
- package/bundles/material-list-testing.umd.min.js +1 -1
- package/bundles/material-list-testing.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +9 -1
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +1 -1
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu-testing.umd.js +94 -67
- package/bundles/material-menu-testing.umd.js.map +1 -1
- package/bundles/material-menu-testing.umd.min.js +2 -2
- package/bundles/material-menu-testing.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +24 -28
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +3 -3
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator-testing.umd.js +50 -34
- package/bundles/material-paginator-testing.umd.js.map +1 -1
- package/bundles/material-paginator-testing.umd.min.js +2 -2
- package/bundles/material-paginator-testing.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +9 -1
- 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-testing.umd.js +9 -1
- package/bundles/material-progress-bar-testing.umd.js.map +1 -1
- package/bundles/material-progress-bar-testing.umd.min.js +1 -1
- package/bundles/material-progress-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +9 -1
- 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-testing.umd.js +9 -1
- package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
- package/bundles/material-progress-spinner-testing.umd.min.js +1 -1
- package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +9 -1
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js +2 -2
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio-testing.umd.js +88 -63
- package/bundles/material-radio-testing.umd.js.map +1 -1
- package/bundles/material-radio-testing.umd.min.js +2 -2
- package/bundles/material-radio-testing.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +18 -5
- 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-testing.umd.js +73 -51
- package/bundles/material-select-testing.umd.js.map +1 -1
- package/bundles/material-select-testing.umd.min.js +2 -2
- package/bundles/material-select-testing.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +14 -3
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +5 -5
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav-testing.umd.js +175 -28
- package/bundles/material-sidenav-testing.umd.js.map +1 -1
- package/bundles/material-sidenav-testing.umd.min.js +2 -2
- package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +9 -1
- 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-testing.umd.js +9 -1
- package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
- package/bundles/material-slide-toggle-testing.umd.min.js +1 -1
- package/bundles/material-slide-toggle-testing.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +16 -3
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +3 -3
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider-testing.umd.js +15 -4
- package/bundles/material-slider-testing.umd.js.map +1 -1
- package/bundles/material-slider-testing.umd.min.js +2 -2
- package/bundles/material-slider-testing.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +9 -1
- 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-testing.umd.js +29 -12
- package/bundles/material-snack-bar-testing.umd.js.map +1 -1
- package/bundles/material-snack-bar-testing.umd.min.js +2 -2
- package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +20 -2
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort-testing.umd.js +9 -1
- package/bundles/material-sort-testing.umd.js.map +1 -1
- package/bundles/material-sort-testing.umd.min.js +1 -1
- package/bundles/material-sort-testing.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +9 -1
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +3 -3
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper-testing.umd.js +9 -1
- package/bundles/material-stepper-testing.umd.js.map +1 -1
- package/bundles/material-stepper-testing.umd.min.js +2 -2
- package/bundles/material-stepper-testing.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +16 -3
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +3 -3
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table-testing.umd.js +26 -17
- package/bundles/material-table-testing.umd.js.map +1 -1
- package/bundles/material-table-testing.umd.min.js +2 -2
- package/bundles/material-table-testing.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +65 -38
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +3 -3
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs-testing.umd.js +11 -3
- package/bundles/material-tabs-testing.umd.js.map +1 -1
- package/bundles/material-tabs-testing.umd.min.js +1 -1
- package/bundles/material-tabs-testing.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +10 -2
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +5 -5
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar-testing.umd.js +11 -2
- package/bundles/material-toolbar-testing.umd.js.map +1 -1
- package/bundles/material-toolbar-testing.umd.min.js +2 -2
- package/bundles/material-toolbar-testing.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +9 -1
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +2 -2
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip-testing.umd.js +9 -1
- package/bundles/material-tooltip-testing.umd.js.map +1 -1
- package/bundles/material-tooltip-testing.umd.min.js +1 -1
- package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +35 -7
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +3 -3
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree-testing.umd.js +10 -2
- package/bundles/material-tree-testing.umd.js.map +1 -1
- package/bundles/material-tree-testing.umd.min.js +1 -1
- package/bundles/material-tree-testing.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +9 -1
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +3 -3
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/button/_button-base.scss +2 -2
- package/button/_button-theme.scss +10 -11
- package/button/index.metadata.json +1 -1
- package/button-toggle/_button-toggle-theme.scss +9 -10
- package/card/_card-theme.scss +5 -6
- package/checkbox/_checkbox-theme.scss +2 -3
- package/checkbox/testing/checkbox-harness.d.ts +21 -16
- package/chips/_chips-theme.scss +4 -5
- package/chips/testing/chip-harness-filters.d.ts +11 -3
- package/chips/testing/chip-harness.d.ts +5 -5
- package/chips/testing/chip-list-harness.d.ts +15 -12
- package/chips/testing/chip-listbox-harness.d.ts +34 -0
- package/chips/testing/chip-option-harness.d.ts +29 -0
- package/chips/testing/public-api.d.ts +3 -1
- package/core/_core.scss +6 -6
- package/core/color/_all-color.scss +2 -1
- package/core/datetime/date-formats.d.ts +1 -0
- package/core/density/private/_all-density.scss +34 -0
- package/core/density/{_index.scss → private/_compatibility.scss} +11 -8
- package/core/focus-indicators/_focus-indicators.scss +3 -4
- package/core/index.metadata.json +1 -1
- package/core/option/_optgroup-theme.scss +2 -3
- package/core/option/_option-theme.scss +2 -3
- package/core/option/index.d.ts +1 -0
- package/core/option/optgroup.d.ts +4 -0
- package/core/option/option-parent.d.ts +22 -0
- package/core/option/option.d.ts +2 -14
- package/core/ripple/_ripple.scss +2 -3
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +2 -3
- package/core/style/_elevation.scss +2 -18
- package/core/style/_form-common.scss +2 -2
- package/core/style/_private.scss +40 -0
- package/core/testing/option-harness.d.ts +2 -0
- package/core/theming/_all-theme.scss +3 -2
- package/core/theming/_theming.scss +148 -38
- package/core/typography/_all-typography.scss +1 -1
- package/datepicker/_datepicker-theme.scss +5 -6
- package/datepicker/date-range-input-parts.d.ts +2 -3
- package/datepicker/date-range-input.d.ts +5 -4
- package/datepicker/date-selection-model.d.ts +10 -0
- package/datepicker/datepicker-actions.d.ts +33 -0
- package/datepicker/datepicker-base.d.ts +52 -9
- package/datepicker/datepicker-input-base.d.ts +5 -10
- package/datepicker/datepicker-input.d.ts +9 -8
- package/datepicker/datepicker-toggle.d.ts +4 -2
- package/datepicker/index.metadata.json +1 -1
- package/datepicker/public-api.d.ts +1 -0
- package/dialog/_dialog-theme.scss +4 -5
- package/divider/_divider-theme.scss +2 -3
- package/esm2015/autocomplete/autocomplete-trigger.js +10 -2
- package/esm2015/autocomplete/autocomplete.js +11 -4
- package/esm2015/autocomplete/testing/autocomplete-harness.js +27 -19
- package/esm2015/button/button.js +10 -5
- package/esm2015/checkbox/checkbox.js +8 -3
- package/esm2015/checkbox/testing/checkbox-harness.js +31 -36
- package/esm2015/chips/testing/chip-harness-filters.js +1 -1
- package/esm2015/chips/testing/chip-harness.js +6 -6
- package/esm2015/chips/testing/chip-list-harness.js +19 -16
- package/esm2015/chips/testing/chip-listbox-harness.js +49 -0
- package/esm2015/chips/testing/chip-option-harness.js +54 -0
- package/esm2015/chips/testing/public-api.js +4 -2
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/datetime/date-formats.js +1 -1
- package/esm2015/core/option/index.js +2 -1
- package/esm2015/core/option/optgroup.js +32 -7
- package/esm2015/core/option/option-parent.js +13 -0
- package/esm2015/core/option/option.js +5 -8
- package/esm2015/core/testing/option-harness.js +7 -2
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/date-range-input-parts.js +10 -14
- package/esm2015/datepicker/date-range-input.js +11 -4
- package/esm2015/datepicker/date-range-picker.js +3 -2
- package/esm2015/datepicker/date-selection-model.js +24 -1
- package/esm2015/datepicker/datepicker-actions.js +89 -0
- package/esm2015/datepicker/datepicker-base.js +66 -25
- package/esm2015/datepicker/datepicker-input-base.js +15 -27
- package/esm2015/datepicker/datepicker-input.js +11 -5
- package/esm2015/datepicker/datepicker-module.js +8 -1
- package/esm2015/datepicker/datepicker-toggle.js +7 -10
- package/esm2015/datepicker/datepicker.js +5 -2
- package/esm2015/datepicker/month-view.js +6 -3
- package/esm2015/datepicker/public-api.js +2 -1
- package/esm2015/datepicker/testing/date-range-input-harness.js +4 -4
- package/esm2015/datepicker/testing/datepicker-input-harness.js +3 -3
- package/esm2015/datepicker/testing/datepicker-trigger-harness-base.js +3 -3
- package/esm2015/dialog/dialog-ref.js +2 -2
- package/esm2015/expansion/expansion-panel-header.js +9 -4
- package/esm2015/expansion/expansion-panel.js +1 -1
- package/esm2015/form-field/form-field-animations.js +2 -2
- package/esm2015/form-field/form-field.js +2 -2
- package/esm2015/form-field/testing/form-field-harness.js +14 -9
- package/esm2015/grid-list/public-api.js +3 -2
- package/esm2015/grid-list/testing/grid-list-harness.js +6 -5
- package/esm2015/icon/icon-registry.js +39 -3
- package/esm2015/icon/testing/fake-icon-registry.js +4 -2
- package/esm2015/input/testing/input-harness.js +3 -3
- package/esm2015/input/testing/native-select-harness.js +7 -5
- package/esm2015/list/selection-list.js +1 -1
- package/esm2015/list/testing/list-harness-base.js +5 -4
- package/esm2015/list/testing/list-item-harness-base.js +5 -4
- package/esm2015/list/testing/selection-list-harness.js +8 -5
- package/esm2015/menu/menu-item.js +3 -3
- package/esm2015/menu/menu-trigger.js +15 -25
- package/esm2015/menu/menu.js +2 -2
- package/esm2015/menu/testing/menu-harness.js +44 -32
- package/esm2015/paginator/testing/paginator-harness.js +27 -25
- package/esm2015/radio/radio.js +10 -5
- package/esm2015/radio/testing/radio-harness.js +40 -29
- package/esm2015/select/select.js +6 -3
- package/esm2015/select/testing/select-harness.js +36 -28
- package/esm2015/sidenav/testing/drawer-container-harness.js +41 -0
- package/esm2015/sidenav/testing/drawer-content-harness.js +23 -0
- package/esm2015/sidenav/testing/drawer-harness-filters.js +1 -1
- package/esm2015/sidenav/testing/drawer-harness.js +19 -13
- package/esm2015/sidenav/testing/public-api.js +6 -2
- package/esm2015/sidenav/testing/sidenav-container-harness.js +41 -0
- package/esm2015/sidenav/testing/sidenav-content-harness.js +23 -0
- package/esm2015/sidenav/testing/sidenav-harness.js +4 -4
- package/esm2015/slide-toggle/slide-toggle.js +8 -3
- package/esm2015/slider/testing/slider-harness.js +5 -5
- package/esm2015/snack-bar/snack-bar-container.js +12 -2
- package/esm2015/snack-bar/testing/snack-bar-harness.js +19 -12
- package/esm2015/stepper/step-header.js +8 -3
- package/esm2015/table/table-data-source.js +34 -21
- package/esm2015/table/testing/cell-harness.js +3 -3
- package/esm2015/table/testing/row-harness.js +5 -5
- package/esm2015/table/testing/table-harness.js +8 -8
- package/esm2015/tabs/tab-body.js +3 -3
- package/esm2015/tabs/testing/tab-group-harness.js +3 -3
- package/esm2015/tabs/testing/tab-nav-bar-harness.js +3 -3
- package/esm2015/toolbar/testing/toolbar-harness.js +3 -3
- package/esm2015/tooltip/tooltip.js +28 -7
- package/esm2015/tree/testing/tree-harness.js +2 -2
- package/expansion/_expansion-mixins.scss +11 -0
- package/expansion/_expansion-theme.scss +13 -19
- package/expansion/index.metadata.json +1 -1
- package/fesm2015/autocomplete/testing.js +26 -18
- package/fesm2015/autocomplete/testing.js.map +1 -1
- package/fesm2015/autocomplete.js +19 -5
- package/fesm2015/autocomplete.js.map +1 -1
- package/fesm2015/button.js +9 -4
- package/fesm2015/button.js.map +1 -1
- package/fesm2015/checkbox/testing.js +30 -35
- package/fesm2015/checkbox/testing.js.map +1 -1
- package/fesm2015/checkbox.js +7 -2
- package/fesm2015/checkbox.js.map +1 -1
- package/fesm2015/chips/testing.js +120 -21
- package/fesm2015/chips/testing.js.map +1 -1
- package/fesm2015/core/testing.js +6 -1
- package/fesm2015/core/testing.js.map +1 -1
- package/fesm2015/core.js +45 -13
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker/testing.js +5 -5
- package/fesm2015/datepicker/testing.js.map +1 -1
- package/fesm2015/datepicker.js +275 -116
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/dialog.js +1 -1
- package/fesm2015/dialog.js.map +1 -1
- package/fesm2015/expansion.js +8 -3
- package/fesm2015/expansion.js.map +1 -1
- package/fesm2015/form-field/testing.js +13 -8
- package/fesm2015/form-field/testing.js.map +1 -1
- package/fesm2015/form-field.js +2 -2
- package/fesm2015/form-field.js.map +1 -1
- package/fesm2015/grid-list/testing.js +5 -4
- package/fesm2015/grid-list/testing.js.map +1 -1
- package/fesm2015/grid-list.js +128 -126
- package/fesm2015/grid-list.js.map +1 -1
- package/fesm2015/icon/testing.js +3 -1
- package/fesm2015/icon/testing.js.map +1 -1
- package/fesm2015/icon.js +38 -2
- package/fesm2015/icon.js.map +1 -1
- package/fesm2015/input/testing.js +7 -5
- package/fesm2015/input/testing.js.map +1 -1
- package/fesm2015/list/testing.js +13 -8
- package/fesm2015/list/testing.js.map +1 -1
- package/fesm2015/list.js.map +1 -1
- package/fesm2015/menu/testing.js +45 -33
- package/fesm2015/menu/testing.js.map +1 -1
- package/fesm2015/menu.js +17 -27
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/paginator/testing.js +26 -24
- package/fesm2015/paginator/testing.js.map +1 -1
- package/fesm2015/paginator.js.map +1 -1
- package/fesm2015/progress-spinner.js.map +1 -1
- package/fesm2015/radio/testing.js +39 -28
- package/fesm2015/radio/testing.js.map +1 -1
- package/fesm2015/radio.js +9 -4
- package/fesm2015/radio.js.map +1 -1
- package/fesm2015/select/testing.js +36 -28
- package/fesm2015/select/testing.js.map +1 -1
- package/fesm2015/select.js +5 -2
- package/fesm2015/select.js.map +1 -1
- package/fesm2015/sidenav/testing.js +139 -15
- package/fesm2015/sidenav/testing.js.map +1 -1
- package/fesm2015/sidenav.js.map +1 -1
- package/fesm2015/slide-toggle.js +7 -2
- package/fesm2015/slide-toggle.js.map +1 -1
- package/fesm2015/slider/testing.js +4 -4
- package/fesm2015/slider/testing.js.map +1 -1
- package/fesm2015/snack-bar/testing.js +18 -11
- package/fesm2015/snack-bar/testing.js.map +1 -1
- package/fesm2015/snack-bar.js +11 -1
- package/fesm2015/snack-bar.js.map +1 -1
- package/fesm2015/stepper.js +7 -2
- package/fesm2015/stepper.js.map +1 -1
- package/fesm2015/table/testing.js +11 -11
- package/fesm2015/table/testing.js.map +1 -1
- package/fesm2015/table.js +34 -21
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/tabs/testing.js +3 -3
- package/fesm2015/tabs/testing.js.map +1 -1
- package/fesm2015/tabs.js +2 -2
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/toolbar/testing.js +2 -2
- package/fesm2015/toolbar/testing.js.map +1 -1
- package/fesm2015/tooltip.js +27 -7
- package/fesm2015/tooltip.js.map +1 -1
- package/fesm2015/tree/testing.js +1 -1
- package/fesm2015/tree/testing.js.map +1 -1
- package/form-field/_form-field-fill-theme.scss +4 -5
- package/form-field/_form-field-legacy-theme.scss +5 -6
- package/form-field/_form-field-outline-theme.scss +4 -5
- package/form-field/_form-field-standard-theme.scss +5 -6
- package/form-field/_form-field-theme.scss +8 -9
- package/form-field/index.metadata.json +1 -1
- package/grid-list/_grid-list-theme.scss +2 -3
- package/grid-list/index.metadata.json +1 -1
- package/grid-list/public-api.d.ts +2 -1
- package/icon/_icon-theme.scss +2 -3
- package/icon/icon-registry.d.ts +23 -0
- package/icon/index.metadata.json +1 -1
- package/icon/testing/fake-icon-registry.d.ts +1 -0
- package/icon/testing/index.metadata.json +1 -1
- package/input/_input-theme.scss +3 -4
- package/list/_list-theme.scss +2 -3
- package/list/index.metadata.json +1 -1
- package/list/selection-list.d.ts +6 -1
- package/list/testing/list-harness-base.d.ts +1 -1
- package/list/testing/list-item-harness-base.d.ts +2 -2
- package/list/testing/selection-list-harness.d.ts +2 -1
- package/menu/_menu-theme.scss +4 -5
- package/menu/index.metadata.json +1 -1
- package/menu/menu-trigger.d.ts +1 -3
- package/menu/menu.d.ts +4 -2
- package/menu/testing/menu-harness.d.ts +39 -26
- package/package.json +2 -2
- package/paginator/_paginator-theme.scss +7 -8
- package/paginator/testing/paginator-harness.d.ts +32 -19
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +2 -3
- package/progress-spinner/_progress-spinner-theme.scss +2 -3
- package/radio/_radio-theme.scss +2 -3
- package/radio/index.metadata.json +1 -1
- package/radio/radio.d.ts +2 -2
- package/radio/testing/radio-harness.d.ts +39 -24
- package/schematics/ng-add/fonts/material-fonts.js +7 -5
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/setup-project.js +4 -3
- package/select/_select-theme.scss +5 -6
- package/select/index.metadata.json +1 -1
- package/select/testing/select-harness.d.ts +28 -16
- package/sidenav/_sidenav-theme.scss +4 -5
- package/sidenav/testing/drawer-container-harness.d.ts +30 -0
- package/sidenav/testing/drawer-content-harness.d.ts +21 -0
- package/sidenav/testing/drawer-harness-filters.d.ts +6 -0
- package/sidenav/testing/drawer-harness.d.ts +13 -7
- package/sidenav/testing/public-api.d.ts +5 -1
- package/sidenav/testing/sidenav-container-harness.d.ts +30 -0
- package/sidenav/testing/sidenav-content-harness.d.ts +21 -0
- package/sidenav/testing/sidenav-harness.d.ts +3 -3
- package/slide-toggle/_slide-toggle-theme.scss +4 -5
- package/slide-toggle/slide-toggle.d.ts +2 -2
- package/slider/_slider-theme.scss +2 -3
- package/snack-bar/_snack-bar-theme.scss +4 -5
- package/snack-bar/index.metadata.json +1 -1
- package/snack-bar/snack-bar-container.d.ts +5 -0
- package/snack-bar/testing/snack-bar-harness.d.ts +7 -4
- package/sort/_sort-theme.scss +2 -3
- package/stepper/_stepper-theme.scss +7 -8
- package/stepper/step-header.d.ts +2 -2
- package/table/_table-theme.scss +2 -3
- package/table/index.metadata.json +1 -1
- package/table/table-data-source.d.ts +31 -20
- package/table/testing/cell-harness.d.ts +2 -2
- package/tabs/_tabs-common.scss +2 -2
- package/tabs/_tabs-theme.scss +14 -9
- package/tabs/index.metadata.json +1 -1
- package/tabs/tab-body.d.ts +3 -3
- package/toolbar/_toolbar-theme.scss +8 -9
- package/tooltip/_tooltip-theme.scss +2 -3
- package/tooltip/index.metadata.json +1 -1
- package/tooltip/tooltip.d.ts +10 -1
- package/tree/_tree-theme.scss +7 -8
- package/core/density/_all-density.scss +0 -19
- package/core/style/_noop-animation.scss +0 -22
- package/core/theming/_check-duplicate-styles.scss +0 -106
|
@@ -4,150 +4,6 @@
|
|
|
4
4
|
(global = global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.gridList = {}), global.ng.core, global.ng.material.core, global.ng.cdk.coercion, global.ng.cdk.bidi));
|
|
5
5
|
}(this, (function (exports, core, core$1, coercion, bidi) { 'use strict';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright Google LLC All Rights Reserved.
|
|
10
|
-
*
|
|
11
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
12
|
-
* found in the LICENSE file at https://angular.io/license
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Injection token used to provide a grid list to a tile and to avoid circular imports.
|
|
16
|
-
* @docs-private
|
|
17
|
-
*/
|
|
18
|
-
var MAT_GRID_LIST = new core.InjectionToken('MAT_GRID_LIST');
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @license
|
|
22
|
-
* Copyright Google LLC All Rights Reserved.
|
|
23
|
-
*
|
|
24
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
25
|
-
* found in the LICENSE file at https://angular.io/license
|
|
26
|
-
*/
|
|
27
|
-
var MatGridTile = /** @class */ (function () {
|
|
28
|
-
function MatGridTile(_element, _gridList) {
|
|
29
|
-
this._element = _element;
|
|
30
|
-
this._gridList = _gridList;
|
|
31
|
-
this._rowspan = 1;
|
|
32
|
-
this._colspan = 1;
|
|
33
|
-
}
|
|
34
|
-
Object.defineProperty(MatGridTile.prototype, "rowspan", {
|
|
35
|
-
/** Amount of rows that the grid tile takes up. */
|
|
36
|
-
get: function () { return this._rowspan; },
|
|
37
|
-
set: function (value) { this._rowspan = Math.round(coercion.coerceNumberProperty(value)); },
|
|
38
|
-
enumerable: false,
|
|
39
|
-
configurable: true
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(MatGridTile.prototype, "colspan", {
|
|
42
|
-
/** Amount of columns that the grid tile takes up. */
|
|
43
|
-
get: function () { return this._colspan; },
|
|
44
|
-
set: function (value) { this._colspan = Math.round(coercion.coerceNumberProperty(value)); },
|
|
45
|
-
enumerable: false,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
/**
|
|
49
|
-
* Sets the style of the grid-tile element. Needs to be set manually to avoid
|
|
50
|
-
* "Changed after checked" errors that would occur with HostBinding.
|
|
51
|
-
*/
|
|
52
|
-
MatGridTile.prototype._setStyle = function (property, value) {
|
|
53
|
-
this._element.nativeElement.style[property] = value;
|
|
54
|
-
};
|
|
55
|
-
return MatGridTile;
|
|
56
|
-
}());
|
|
57
|
-
MatGridTile.decorators = [
|
|
58
|
-
{ type: core.Component, args: [{
|
|
59
|
-
selector: 'mat-grid-tile',
|
|
60
|
-
exportAs: 'matGridTile',
|
|
61
|
-
host: {
|
|
62
|
-
'class': 'mat-grid-tile',
|
|
63
|
-
// Ensures that the "rowspan" and "colspan" input value is reflected in
|
|
64
|
-
// the DOM. This is needed for the grid-tile harness.
|
|
65
|
-
'[attr.rowspan]': 'rowspan',
|
|
66
|
-
'[attr.colspan]': 'colspan'
|
|
67
|
-
},
|
|
68
|
-
template: "<!-- TODO(kara): Revisit why this is a figure.-->\n<figure class=\"mat-figure\">\n <ng-content></ng-content>\n</figure>",
|
|
69
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
70
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
71
|
-
styles: [".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"]
|
|
72
|
-
},] }
|
|
73
|
-
];
|
|
74
|
-
MatGridTile.ctorParameters = function () { return [
|
|
75
|
-
{ type: core.ElementRef },
|
|
76
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [MAT_GRID_LIST,] }] }
|
|
77
|
-
]; };
|
|
78
|
-
MatGridTile.propDecorators = {
|
|
79
|
-
rowspan: [{ type: core.Input }],
|
|
80
|
-
colspan: [{ type: core.Input }]
|
|
81
|
-
};
|
|
82
|
-
var MatGridTileText = /** @class */ (function () {
|
|
83
|
-
function MatGridTileText(_element) {
|
|
84
|
-
this._element = _element;
|
|
85
|
-
}
|
|
86
|
-
MatGridTileText.prototype.ngAfterContentInit = function () {
|
|
87
|
-
core$1.setLines(this._lines, this._element);
|
|
88
|
-
};
|
|
89
|
-
return MatGridTileText;
|
|
90
|
-
}());
|
|
91
|
-
MatGridTileText.decorators = [
|
|
92
|
-
{ type: core.Component, args: [{
|
|
93
|
-
selector: 'mat-grid-tile-header, mat-grid-tile-footer',
|
|
94
|
-
template: "<ng-content select=\"[mat-grid-avatar], [matGridAvatar]\"></ng-content>\n<div class=\"mat-grid-list-text\"><ng-content select=\"[mat-line], [matLine]\"></ng-content></div>\n<ng-content></ng-content>\n",
|
|
95
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
96
|
-
encapsulation: core.ViewEncapsulation.None
|
|
97
|
-
},] }
|
|
98
|
-
];
|
|
99
|
-
MatGridTileText.ctorParameters = function () { return [
|
|
100
|
-
{ type: core.ElementRef }
|
|
101
|
-
]; };
|
|
102
|
-
MatGridTileText.propDecorators = {
|
|
103
|
-
_lines: [{ type: core.ContentChildren, args: [core$1.MatLine, { descendants: true },] }]
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
|
107
|
-
* @docs-private
|
|
108
|
-
*/
|
|
109
|
-
var MatGridAvatarCssMatStyler = /** @class */ (function () {
|
|
110
|
-
function MatGridAvatarCssMatStyler() {
|
|
111
|
-
}
|
|
112
|
-
return MatGridAvatarCssMatStyler;
|
|
113
|
-
}());
|
|
114
|
-
MatGridAvatarCssMatStyler.decorators = [
|
|
115
|
-
{ type: core.Directive, args: [{
|
|
116
|
-
selector: '[mat-grid-avatar], [matGridAvatar]',
|
|
117
|
-
host: { 'class': 'mat-grid-avatar' }
|
|
118
|
-
},] }
|
|
119
|
-
];
|
|
120
|
-
/**
|
|
121
|
-
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
|
122
|
-
* @docs-private
|
|
123
|
-
*/
|
|
124
|
-
var MatGridTileHeaderCssMatStyler = /** @class */ (function () {
|
|
125
|
-
function MatGridTileHeaderCssMatStyler() {
|
|
126
|
-
}
|
|
127
|
-
return MatGridTileHeaderCssMatStyler;
|
|
128
|
-
}());
|
|
129
|
-
MatGridTileHeaderCssMatStyler.decorators = [
|
|
130
|
-
{ type: core.Directive, args: [{
|
|
131
|
-
selector: 'mat-grid-tile-header',
|
|
132
|
-
host: { 'class': 'mat-grid-tile-header' }
|
|
133
|
-
},] }
|
|
134
|
-
];
|
|
135
|
-
/**
|
|
136
|
-
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
|
137
|
-
* @docs-private
|
|
138
|
-
*/
|
|
139
|
-
var MatGridTileFooterCssMatStyler = /** @class */ (function () {
|
|
140
|
-
function MatGridTileFooterCssMatStyler() {
|
|
141
|
-
}
|
|
142
|
-
return MatGridTileFooterCssMatStyler;
|
|
143
|
-
}());
|
|
144
|
-
MatGridTileFooterCssMatStyler.decorators = [
|
|
145
|
-
{ type: core.Directive, args: [{
|
|
146
|
-
selector: 'mat-grid-tile-footer',
|
|
147
|
-
host: { 'class': 'mat-grid-tile-footer' }
|
|
148
|
-
},] }
|
|
149
|
-
];
|
|
150
|
-
|
|
151
7
|
/*! *****************************************************************************
|
|
152
8
|
Copyright (c) Microsoft Corporation.
|
|
153
9
|
|
|
@@ -172,6 +28,8 @@
|
|
|
172
28
|
return extendStatics(d, b);
|
|
173
29
|
};
|
|
174
30
|
function __extends(d, b) {
|
|
31
|
+
if (typeof b !== "function" && b !== null)
|
|
32
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
175
33
|
extendStatics(d, b);
|
|
176
34
|
function __() { this.constructor = d; }
|
|
177
35
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -357,11 +215,13 @@
|
|
|
357
215
|
}
|
|
358
216
|
return ar;
|
|
359
217
|
}
|
|
218
|
+
/** @deprecated */
|
|
360
219
|
function __spread() {
|
|
361
220
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
362
221
|
ar = ar.concat(__read(arguments[i]));
|
|
363
222
|
return ar;
|
|
364
223
|
}
|
|
224
|
+
/** @deprecated */
|
|
365
225
|
function __spreadArrays() {
|
|
366
226
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
367
227
|
s += arguments[i].length;
|
|
@@ -370,7 +230,11 @@
|
|
|
370
230
|
r[k] = a[j];
|
|
371
231
|
return r;
|
|
372
232
|
}
|
|
373
|
-
|
|
233
|
+
function __spreadArray(to, from) {
|
|
234
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
235
|
+
to[j] = from[i];
|
|
236
|
+
return to;
|
|
237
|
+
}
|
|
374
238
|
function __await(v) {
|
|
375
239
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
376
240
|
}
|
|
@@ -603,6 +467,150 @@
|
|
|
603
467
|
return TilePosition;
|
|
604
468
|
}());
|
|
605
469
|
|
|
470
|
+
/**
|
|
471
|
+
* @license
|
|
472
|
+
* Copyright Google LLC All Rights Reserved.
|
|
473
|
+
*
|
|
474
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
475
|
+
* found in the LICENSE file at https://angular.io/license
|
|
476
|
+
*/
|
|
477
|
+
/**
|
|
478
|
+
* Injection token used to provide a grid list to a tile and to avoid circular imports.
|
|
479
|
+
* @docs-private
|
|
480
|
+
*/
|
|
481
|
+
var MAT_GRID_LIST = new core.InjectionToken('MAT_GRID_LIST');
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* @license
|
|
485
|
+
* Copyright Google LLC All Rights Reserved.
|
|
486
|
+
*
|
|
487
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
488
|
+
* found in the LICENSE file at https://angular.io/license
|
|
489
|
+
*/
|
|
490
|
+
var MatGridTile = /** @class */ (function () {
|
|
491
|
+
function MatGridTile(_element, _gridList) {
|
|
492
|
+
this._element = _element;
|
|
493
|
+
this._gridList = _gridList;
|
|
494
|
+
this._rowspan = 1;
|
|
495
|
+
this._colspan = 1;
|
|
496
|
+
}
|
|
497
|
+
Object.defineProperty(MatGridTile.prototype, "rowspan", {
|
|
498
|
+
/** Amount of rows that the grid tile takes up. */
|
|
499
|
+
get: function () { return this._rowspan; },
|
|
500
|
+
set: function (value) { this._rowspan = Math.round(coercion.coerceNumberProperty(value)); },
|
|
501
|
+
enumerable: false,
|
|
502
|
+
configurable: true
|
|
503
|
+
});
|
|
504
|
+
Object.defineProperty(MatGridTile.prototype, "colspan", {
|
|
505
|
+
/** Amount of columns that the grid tile takes up. */
|
|
506
|
+
get: function () { return this._colspan; },
|
|
507
|
+
set: function (value) { this._colspan = Math.round(coercion.coerceNumberProperty(value)); },
|
|
508
|
+
enumerable: false,
|
|
509
|
+
configurable: true
|
|
510
|
+
});
|
|
511
|
+
/**
|
|
512
|
+
* Sets the style of the grid-tile element. Needs to be set manually to avoid
|
|
513
|
+
* "Changed after checked" errors that would occur with HostBinding.
|
|
514
|
+
*/
|
|
515
|
+
MatGridTile.prototype._setStyle = function (property, value) {
|
|
516
|
+
this._element.nativeElement.style[property] = value;
|
|
517
|
+
};
|
|
518
|
+
return MatGridTile;
|
|
519
|
+
}());
|
|
520
|
+
MatGridTile.decorators = [
|
|
521
|
+
{ type: core.Component, args: [{
|
|
522
|
+
selector: 'mat-grid-tile',
|
|
523
|
+
exportAs: 'matGridTile',
|
|
524
|
+
host: {
|
|
525
|
+
'class': 'mat-grid-tile',
|
|
526
|
+
// Ensures that the "rowspan" and "colspan" input value is reflected in
|
|
527
|
+
// the DOM. This is needed for the grid-tile harness.
|
|
528
|
+
'[attr.rowspan]': 'rowspan',
|
|
529
|
+
'[attr.colspan]': 'colspan'
|
|
530
|
+
},
|
|
531
|
+
template: "<!-- TODO(kara): Revisit why this is a figure.-->\n<figure class=\"mat-figure\">\n <ng-content></ng-content>\n</figure>",
|
|
532
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
533
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
534
|
+
styles: [".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"]
|
|
535
|
+
},] }
|
|
536
|
+
];
|
|
537
|
+
MatGridTile.ctorParameters = function () { return [
|
|
538
|
+
{ type: core.ElementRef },
|
|
539
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [MAT_GRID_LIST,] }] }
|
|
540
|
+
]; };
|
|
541
|
+
MatGridTile.propDecorators = {
|
|
542
|
+
rowspan: [{ type: core.Input }],
|
|
543
|
+
colspan: [{ type: core.Input }]
|
|
544
|
+
};
|
|
545
|
+
var MatGridTileText = /** @class */ (function () {
|
|
546
|
+
function MatGridTileText(_element) {
|
|
547
|
+
this._element = _element;
|
|
548
|
+
}
|
|
549
|
+
MatGridTileText.prototype.ngAfterContentInit = function () {
|
|
550
|
+
core$1.setLines(this._lines, this._element);
|
|
551
|
+
};
|
|
552
|
+
return MatGridTileText;
|
|
553
|
+
}());
|
|
554
|
+
MatGridTileText.decorators = [
|
|
555
|
+
{ type: core.Component, args: [{
|
|
556
|
+
selector: 'mat-grid-tile-header, mat-grid-tile-footer',
|
|
557
|
+
template: "<ng-content select=\"[mat-grid-avatar], [matGridAvatar]\"></ng-content>\n<div class=\"mat-grid-list-text\"><ng-content select=\"[mat-line], [matLine]\"></ng-content></div>\n<ng-content></ng-content>\n",
|
|
558
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
559
|
+
encapsulation: core.ViewEncapsulation.None
|
|
560
|
+
},] }
|
|
561
|
+
];
|
|
562
|
+
MatGridTileText.ctorParameters = function () { return [
|
|
563
|
+
{ type: core.ElementRef }
|
|
564
|
+
]; };
|
|
565
|
+
MatGridTileText.propDecorators = {
|
|
566
|
+
_lines: [{ type: core.ContentChildren, args: [core$1.MatLine, { descendants: true },] }]
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
|
570
|
+
* @docs-private
|
|
571
|
+
*/
|
|
572
|
+
var MatGridAvatarCssMatStyler = /** @class */ (function () {
|
|
573
|
+
function MatGridAvatarCssMatStyler() {
|
|
574
|
+
}
|
|
575
|
+
return MatGridAvatarCssMatStyler;
|
|
576
|
+
}());
|
|
577
|
+
MatGridAvatarCssMatStyler.decorators = [
|
|
578
|
+
{ type: core.Directive, args: [{
|
|
579
|
+
selector: '[mat-grid-avatar], [matGridAvatar]',
|
|
580
|
+
host: { 'class': 'mat-grid-avatar' }
|
|
581
|
+
},] }
|
|
582
|
+
];
|
|
583
|
+
/**
|
|
584
|
+
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
|
585
|
+
* @docs-private
|
|
586
|
+
*/
|
|
587
|
+
var MatGridTileHeaderCssMatStyler = /** @class */ (function () {
|
|
588
|
+
function MatGridTileHeaderCssMatStyler() {
|
|
589
|
+
}
|
|
590
|
+
return MatGridTileHeaderCssMatStyler;
|
|
591
|
+
}());
|
|
592
|
+
MatGridTileHeaderCssMatStyler.decorators = [
|
|
593
|
+
{ type: core.Directive, args: [{
|
|
594
|
+
selector: 'mat-grid-tile-header',
|
|
595
|
+
host: { 'class': 'mat-grid-tile-header' }
|
|
596
|
+
},] }
|
|
597
|
+
];
|
|
598
|
+
/**
|
|
599
|
+
* Directive whose purpose is to add the mat- CSS styling to this selector.
|
|
600
|
+
* @docs-private
|
|
601
|
+
*/
|
|
602
|
+
var MatGridTileFooterCssMatStyler = /** @class */ (function () {
|
|
603
|
+
function MatGridTileFooterCssMatStyler() {
|
|
604
|
+
}
|
|
605
|
+
return MatGridTileFooterCssMatStyler;
|
|
606
|
+
}());
|
|
607
|
+
MatGridTileFooterCssMatStyler.decorators = [
|
|
608
|
+
{ type: core.Directive, args: [{
|
|
609
|
+
selector: 'mat-grid-tile-footer',
|
|
610
|
+
host: { 'class': 'mat-grid-tile-footer' }
|
|
611
|
+
},] }
|
|
612
|
+
];
|
|
613
|
+
|
|
606
614
|
/**
|
|
607
615
|
* @license
|
|
608
616
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -1032,6 +1040,8 @@
|
|
|
1032
1040
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1033
1041
|
* found in the LICENSE file at https://angular.io/license
|
|
1034
1042
|
*/
|
|
1043
|
+
// Privately exported for the grid-list harness.
|
|
1044
|
+
var ɵTileCoordinator = TileCoordinator;
|
|
1035
1045
|
|
|
1036
1046
|
/**
|
|
1037
1047
|
* Generated bundle index. Do not edit.
|
|
@@ -1044,7 +1054,7 @@
|
|
|
1044
1054
|
exports.MatGridTileFooterCssMatStyler = MatGridTileFooterCssMatStyler;
|
|
1045
1055
|
exports.MatGridTileHeaderCssMatStyler = MatGridTileHeaderCssMatStyler;
|
|
1046
1056
|
exports.MatGridTileText = MatGridTileText;
|
|
1047
|
-
exports.ɵTileCoordinator =
|
|
1057
|
+
exports.ɵTileCoordinator = ɵTileCoordinator;
|
|
1048
1058
|
exports.ɵangular_material_src_material_grid_list_grid_list_a = MAT_GRID_LIST;
|
|
1049
1059
|
|
|
1050
1060
|
Object.defineProperty(exports, '__esModule', { value: true });
|