@angular/material-experimental 14.2.2 → 15.0.0-next.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/_index.scss +0 -69
- package/column-resize/index.d.ts +7 -7
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-module.mjs +13 -13
- package/esm2020/column-resize/overlay-handle.mjs +4 -4
- package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +4 -4
- package/esm2020/column-resize/resizable-directives/resizable.mjs +4 -4
- package/esm2020/column-resize/resize-strategy.mjs +4 -4
- package/esm2020/menubar/menubar-item.mjs +4 -4
- package/esm2020/menubar/menubar-module.mjs +5 -5
- package/esm2020/menubar/menubar.mjs +4 -4
- package/esm2020/popover-edit/lens-directives.mjs +10 -10
- package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
- package/esm2020/popover-edit/table-directives.mjs +13 -13
- package/esm2020/selection/row-selection.mjs +4 -4
- package/esm2020/selection/select-all.mjs +4 -4
- package/esm2020/selection/selection-column.mjs +12 -12
- package/esm2020/selection/selection-module.mjs +8 -8
- package/esm2020/selection/selection-toggle.mjs +4 -4
- package/esm2020/selection/selection.mjs +4 -4
- package/esm2020/version.mjs +1 -1
- package/fesm2015/column-resize.mjs +36 -36
- package/fesm2015/column-resize.mjs.map +1 -1
- package/fesm2015/material-experimental.mjs +1 -1
- package/fesm2015/material-experimental.mjs.map +1 -1
- package/fesm2015/menubar.mjs +10 -10
- package/fesm2015/menubar.mjs.map +1 -1
- package/fesm2015/popover-edit.mjs +25 -25
- package/fesm2015/popover-edit.mjs.map +1 -1
- package/fesm2015/selection.mjs +29 -29
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +36 -36
- package/fesm2020/column-resize.mjs.map +1 -1
- package/fesm2020/material-experimental.mjs +1 -1
- package/fesm2020/material-experimental.mjs.map +1 -1
- package/fesm2020/menubar.mjs +10 -10
- package/fesm2020/menubar.mjs.map +1 -1
- package/fesm2020/popover-edit.mjs +25 -25
- package/fesm2020/popover-edit.mjs.map +1 -1
- package/fesm2020/selection.mjs +29 -29
- package/fesm2020/selection.mjs.map +1 -1
- package/menubar/index.d.ts +2 -2
- package/package.json +55 -422
- package/popover-edit/index.d.ts +7 -7
- package/selection/index.d.ts +9 -9
- package/esm2020/mdc-autocomplete/animations.mjs +0 -25
- package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +0 -26
- package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +0 -54
- package/esm2020/mdc-autocomplete/autocomplete.mjs +0 -35
- package/esm2020/mdc-autocomplete/index.mjs +0 -9
- package/esm2020/mdc-autocomplete/mdc-autocomplete_public_index.mjs +0 -5
- package/esm2020/mdc-autocomplete/module.mjs +0 -46
- package/esm2020/mdc-autocomplete/public-api.mjs +0 -14
- package/esm2020/mdc-autocomplete/testing/autocomplete-harness-filters.mjs +0 -9
- package/esm2020/mdc-autocomplete/testing/autocomplete-harness.mjs +0 -31
- package/esm2020/mdc-autocomplete/testing/index.mjs +0 -9
- package/esm2020/mdc-autocomplete/testing/public-api.mjs +0 -10
- package/esm2020/mdc-button/button-base.mjs +0 -152
- package/esm2020/mdc-button/button.mjs +0 -69
- package/esm2020/mdc-button/fab.mjs +0 -175
- package/esm2020/mdc-button/icon-button.mjs +0 -57
- package/esm2020/mdc-button/index.mjs +0 -9
- package/esm2020/mdc-button/mdc-button_public_index.mjs +0 -5
- package/esm2020/mdc-button/module.mjs +0 -61
- package/esm2020/mdc-button/public-api.mjs +0 -12
- package/esm2020/mdc-button/testing/button-harness.mjs +0 -50
- package/esm2020/mdc-button/testing/index.mjs +0 -9
- package/esm2020/mdc-button/testing/public-api.mjs +0 -9
- package/esm2020/mdc-card/card.mjs +0 -261
- package/esm2020/mdc-card/index.mjs +0 -9
- package/esm2020/mdc-card/mdc-card_public_index.mjs +0 -5
- package/esm2020/mdc-card/module.mjs +0 -68
- package/esm2020/mdc-card/public-api.mjs +0 -10
- package/esm2020/mdc-card/testing/card-harness-filters.mjs +0 -9
- package/esm2020/mdc-card/testing/card-harness.mjs +0 -42
- package/esm2020/mdc-card/testing/index.mjs +0 -9
- package/esm2020/mdc-card/testing/public-api.mjs +0 -10
- package/esm2020/mdc-checkbox/checkbox.mjs +0 -93
- package/esm2020/mdc-checkbox/index.mjs +0 -9
- package/esm2020/mdc-checkbox/mdc-checkbox_public_index.mjs +0 -5
- package/esm2020/mdc-checkbox/module.mjs +0 -26
- package/esm2020/mdc-checkbox/public-api.mjs +0 -11
- package/esm2020/mdc-checkbox/testing/checkbox-harness.mjs +0 -41
- package/esm2020/mdc-checkbox/testing/index.mjs +0 -9
- package/esm2020/mdc-checkbox/testing/public-api.mjs +0 -9
- package/esm2020/mdc-chips/chip-action.mjs +0 -90
- package/esm2020/mdc-chips/chip-edit-input.mjs +0 -60
- package/esm2020/mdc-chips/chip-grid.mjs +0 -407
- package/esm2020/mdc-chips/chip-icons.mjs +0 -110
- package/esm2020/mdc-chips/chip-input.mjs +0 -212
- package/esm2020/mdc-chips/chip-listbox.mjs +0 -332
- package/esm2020/mdc-chips/chip-option.mjs +0 -160
- package/esm2020/mdc-chips/chip-row.mjs +0 -176
- package/esm2020/mdc-chips/chip-set.mjs +0 -271
- package/esm2020/mdc-chips/chip-text-control.mjs +0 -9
- package/esm2020/mdc-chips/chip.mjs +0 -287
- package/esm2020/mdc-chips/index.mjs +0 -9
- package/esm2020/mdc-chips/mdc-chips_public_index.mjs +0 -5
- package/esm2020/mdc-chips/module.mjs +0 -87
- package/esm2020/mdc-chips/public-api.mjs +0 -20
- package/esm2020/mdc-chips/testing/chip-avatar-harness.mjs +0 -22
- package/esm2020/mdc-chips/testing/chip-grid-harness.mjs +0 -43
- package/esm2020/mdc-chips/testing/chip-harness-filters.mjs +0 -9
- package/esm2020/mdc-chips/testing/chip-harness.mjs +0 -58
- package/esm2020/mdc-chips/testing/chip-input-harness.mjs +0 -82
- package/esm2020/mdc-chips/testing/chip-listbox-harness.mjs +0 -59
- package/esm2020/mdc-chips/testing/chip-option-harness.mjs +0 -45
- package/esm2020/mdc-chips/testing/chip-remove-harness.mjs +0 -26
- package/esm2020/mdc-chips/testing/chip-row-harness.mjs +0 -22
- package/esm2020/mdc-chips/testing/chip-set-harness.mjs +0 -26
- package/esm2020/mdc-chips/testing/index.mjs +0 -9
- package/esm2020/mdc-chips/testing/public-api.mjs +0 -18
- package/esm2020/mdc-chips/tokens.mjs +0 -33
- package/esm2020/mdc-core/index.mjs +0 -9
- package/esm2020/mdc-core/mdc-core_public_index.mjs +0 -5
- package/esm2020/mdc-core/option/index.mjs +0 -30
- package/esm2020/mdc-core/option/optgroup.mjs +0 -46
- package/esm2020/mdc-core/option/option.mjs +0 -52
- package/esm2020/mdc-core/public-api.mjs +0 -10
- package/esm2020/mdc-core/testing/index.mjs +0 -9
- package/esm2020/mdc-core/testing/optgroup-harness-filters.mjs +0 -9
- package/esm2020/mdc-core/testing/optgroup-harness.mjs +0 -43
- package/esm2020/mdc-core/testing/option-harness-filters.mjs +0 -9
- package/esm2020/mdc-core/testing/option-harness.mjs +0 -53
- package/esm2020/mdc-core/testing/public-api.mjs +0 -12
- package/esm2020/mdc-dialog/dialog-container.mjs +0 -171
- package/esm2020/mdc-dialog/dialog-content-directives.mjs +0 -179
- package/esm2020/mdc-dialog/dialog-ref.mjs +0 -14
- package/esm2020/mdc-dialog/dialog.mjs +0 -82
- package/esm2020/mdc-dialog/index.mjs +0 -9
- package/esm2020/mdc-dialog/mdc-dialog_public_index.mjs +0 -5
- package/esm2020/mdc-dialog/module.mjs +0 -53
- package/esm2020/mdc-dialog/public-api.mjs +0 -14
- package/esm2020/mdc-dialog/testing/dialog-harness.mjs +0 -29
- package/esm2020/mdc-dialog/testing/dialog-opener.mjs +0 -45
- package/esm2020/mdc-dialog/testing/index.mjs +0 -9
- package/esm2020/mdc-dialog/testing/public-api.mjs +0 -10
- package/esm2020/mdc-form-field/directives/error.mjs +0 -47
- package/esm2020/mdc-form-field/directives/floating-label.mjs +0 -73
- package/esm2020/mdc-form-field/directives/hint.mjs +0 -39
- package/esm2020/mdc-form-field/directives/label.mjs +0 -21
- package/esm2020/mdc-form-field/directives/line-ripple.mjs +0 -59
- package/esm2020/mdc-form-field/directives/notched-outline.mjs +0 -68
- package/esm2020/mdc-form-field/directives/prefix.mjs +0 -32
- package/esm2020/mdc-form-field/directives/suffix.mjs +0 -32
- package/esm2020/mdc-form-field/form-field.mjs +0 -608
- package/esm2020/mdc-form-field/index.mjs +0 -9
- package/esm2020/mdc-form-field/mdc-form-field_public_index.mjs +0 -5
- package/esm2020/mdc-form-field/module.mjs +0 -53
- package/esm2020/mdc-form-field/public-api.mjs +0 -16
- package/esm2020/mdc-form-field/testing/form-field-harness.mjs +0 -58
- package/esm2020/mdc-form-field/testing/index.mjs +0 -9
- package/esm2020/mdc-form-field/testing/public-api.mjs +0 -13
- package/esm2020/mdc-input/index.mjs +0 -9
- package/esm2020/mdc-input/input.mjs +0 -55
- package/esm2020/mdc-input/mdc-input_public_index.mjs +0 -5
- package/esm2020/mdc-input/module.mjs +0 -27
- package/esm2020/mdc-input/public-api.mjs +0 -11
- package/esm2020/mdc-input/testing/index.mjs +0 -9
- package/esm2020/mdc-input/testing/public-api.mjs +0 -9
- package/esm2020/mdc-list/action-list.mjs +0 -31
- package/esm2020/mdc-list/index.mjs +0 -9
- package/esm2020/mdc-list/list-base.mjs +0 -272
- package/esm2020/mdc-list/list-item-sections.mjs +0 -138
- package/esm2020/mdc-list/list-option-types.mjs +0 -16
- package/esm2020/mdc-list/list-option.mjs +0 -253
- package/esm2020/mdc-list/list.mjs +0 -82
- package/esm2020/mdc-list/mdc-list_public_index.mjs +0 -5
- package/esm2020/mdc-list/module.mjs +0 -98
- package/esm2020/mdc-list/nav-list.mjs +0 -31
- package/esm2020/mdc-list/public-api.mjs +0 -18
- package/esm2020/mdc-list/selection-list.mjs +0 -338
- package/esm2020/mdc-list/subheader.mjs +0 -27
- package/esm2020/mdc-list/testing/action-list-harness.mjs +0 -59
- package/esm2020/mdc-list/testing/index.mjs +0 -9
- package/esm2020/mdc-list/testing/list-harness-base.mjs +0 -95
- package/esm2020/mdc-list/testing/list-harness-filters.mjs +0 -9
- package/esm2020/mdc-list/testing/list-harness.mjs +0 -41
- package/esm2020/mdc-list/testing/list-item-harness-base.mjs +0 -150
- package/esm2020/mdc-list/testing/nav-list-harness.mjs +0 -69
- package/esm2020/mdc-list/testing/public-api.mjs +0 -14
- package/esm2020/mdc-list/testing/selection-list-harness.mjs +0 -117
- package/esm2020/mdc-menu/directives.mjs +0 -38
- package/esm2020/mdc-menu/index.mjs +0 -9
- package/esm2020/mdc-menu/mdc-menu_public_index.mjs +0 -5
- package/esm2020/mdc-menu/menu-item.mjs +0 -36
- package/esm2020/mdc-menu/menu.mjs +0 -43
- package/esm2020/mdc-menu/module.mjs +0 -44
- package/esm2020/mdc-menu/public-api.mjs +0 -13
- package/esm2020/mdc-menu/testing/index.mjs +0 -9
- package/esm2020/mdc-menu/testing/menu-harness.mjs +0 -46
- package/esm2020/mdc-menu/testing/public-api.mjs +0 -9
- package/esm2020/mdc-paginator/index.mjs +0 -9
- package/esm2020/mdc-paginator/mdc-paginator_public_index.mjs +0 -5
- package/esm2020/mdc-paginator/module.mjs +0 -30
- package/esm2020/mdc-paginator/paginator.mjs +0 -48
- package/esm2020/mdc-paginator/public-api.mjs +0 -11
- package/esm2020/mdc-paginator/testing/index.mjs +0 -9
- package/esm2020/mdc-paginator/testing/paginator-harness.mjs +0 -36
- package/esm2020/mdc-paginator/testing/public-api.mjs +0 -9
- package/esm2020/mdc-progress-bar/index.mjs +0 -9
- package/esm2020/mdc-progress-bar/mdc-progress-bar_public_index.mjs +0 -5
- package/esm2020/mdc-progress-bar/module.mjs +0 -24
- package/esm2020/mdc-progress-bar/progress-bar.mjs +0 -152
- package/esm2020/mdc-progress-bar/public-api.mjs +0 -11
- package/esm2020/mdc-progress-bar/testing/index.mjs +0 -9
- package/esm2020/mdc-progress-bar/testing/progress-bar-harness.mjs +0 -33
- package/esm2020/mdc-progress-bar/testing/public-api.mjs +0 -9
- package/esm2020/mdc-progress-bar/testing/testing_public_index.mjs +0 -5
- package/esm2020/mdc-progress-spinner/index.mjs +0 -9
- package/esm2020/mdc-progress-spinner/mdc-progress-spinner_public_index.mjs +0 -5
- package/esm2020/mdc-progress-spinner/module.mjs +0 -26
- package/esm2020/mdc-progress-spinner/progress-spinner.mjs +0 -151
- package/esm2020/mdc-progress-spinner/public-api.mjs +0 -11
- package/esm2020/mdc-progress-spinner/testing/index.mjs +0 -9
- package/esm2020/mdc-progress-spinner/testing/progress-spinner-harness.mjs +0 -35
- package/esm2020/mdc-progress-spinner/testing/public-api.mjs +0 -9
- package/esm2020/mdc-progress-spinner/testing/testing_public_index.mjs +0 -5
- package/esm2020/mdc-radio/index.mjs +0 -9
- package/esm2020/mdc-radio/mdc-radio_public_index.mjs +0 -5
- package/esm2020/mdc-radio/module.mjs +0 -26
- package/esm2020/mdc-radio/public-api.mjs +0 -11
- package/esm2020/mdc-radio/radio.mjs +0 -111
- package/esm2020/mdc-radio/testing/index.mjs +0 -9
- package/esm2020/mdc-radio/testing/public-api.mjs +0 -9
- package/esm2020/mdc-radio/testing/radio-harness.mjs +0 -50
- package/esm2020/mdc-select/index.mjs +0 -9
- package/esm2020/mdc-select/mdc-select_public_index.mjs +0 -5
- package/esm2020/mdc-select/module.mjs +0 -46
- package/esm2020/mdc-select/public-api.mjs +0 -12
- package/esm2020/mdc-select/select-animations.mjs +0 -38
- package/esm2020/mdc-select/select-errors.mjs +0 -35
- package/esm2020/mdc-select/select.mjs +0 -172
- package/esm2020/mdc-select/testing/index.mjs +0 -9
- package/esm2020/mdc-select/testing/public-api.mjs +0 -10
- package/esm2020/mdc-select/testing/select-harness-filters.mjs +0 -9
- package/esm2020/mdc-select/testing/select-harness.mjs +0 -29
- package/esm2020/mdc-slide-toggle/index.mjs +0 -9
- package/esm2020/mdc-slide-toggle/mdc-slide-toggle_public_index.mjs +0 -5
- package/esm2020/mdc-slide-toggle/module.mjs +0 -27
- package/esm2020/mdc-slide-toggle/public-api.mjs +0 -12
- package/esm2020/mdc-slide-toggle/slide-toggle-config.mjs +0 -14
- package/esm2020/mdc-slide-toggle/slide-toggle.mjs +0 -99
- package/esm2020/mdc-slide-toggle/testing/index.mjs +0 -9
- package/esm2020/mdc-slide-toggle/testing/public-api.mjs +0 -9
- package/esm2020/mdc-slide-toggle/testing/slide-toggle-harness.mjs +0 -47
- package/esm2020/mdc-slider/global-change-and-input-listener.mjs +0 -59
- package/esm2020/mdc-slider/index.mjs +0 -9
- package/esm2020/mdc-slider/mdc-slider_public_index.mjs +0 -5
- package/esm2020/mdc-slider/module.mjs +0 -26
- package/esm2020/mdc-slider/public-api.mjs +0 -10
- package/esm2020/mdc-slider/slider.mjs +0 -1094
- package/esm2020/mdc-slider/testing/index.mjs +0 -9
- package/esm2020/mdc-slider/testing/public-api.mjs +0 -11
- package/esm2020/mdc-slider/testing/slider-harness-filters.mjs +0 -2
- package/esm2020/mdc-slider/testing/slider-harness.mjs +0 -62
- package/esm2020/mdc-slider/testing/slider-thumb-harness.mjs +0 -94
- package/esm2020/mdc-snack-bar/index.mjs +0 -9
- package/esm2020/mdc-snack-bar/mdc-snack-bar_public_index.mjs +0 -5
- package/esm2020/mdc-snack-bar/module.mjs +0 -51
- package/esm2020/mdc-snack-bar/public-api.mjs +0 -14
- package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +0 -40
- package/esm2020/mdc-snack-bar/snack-bar-container.mjs +0 -41
- package/esm2020/mdc-snack-bar/snack-bar-content.mjs +0 -52
- package/esm2020/mdc-snack-bar/snack-bar.mjs +0 -45
- package/esm2020/mdc-snack-bar/testing/index.mjs +0 -9
- package/esm2020/mdc-snack-bar/testing/public-api.mjs +0 -9
- package/esm2020/mdc-snack-bar/testing/snack-bar-harness.mjs +0 -34
- package/esm2020/mdc-table/cell.mjs +0 -141
- package/esm2020/mdc-table/index.mjs +0 -9
- package/esm2020/mdc-table/mdc-table_public_index.mjs +0 -5
- package/esm2020/mdc-table/module.mjs +0 -94
- package/esm2020/mdc-table/public-api.mjs +0 -14
- package/esm2020/mdc-table/row.mjs +0 -143
- package/esm2020/mdc-table/table-data-source.mjs +0 -24
- package/esm2020/mdc-table/table.mjs +0 -74
- package/esm2020/mdc-table/testing/cell-harness.mjs +0 -50
- package/esm2020/mdc-table/testing/index.mjs +0 -9
- package/esm2020/mdc-table/testing/public-api.mjs +0 -11
- package/esm2020/mdc-table/testing/row-harness.mjs +0 -64
- package/esm2020/mdc-table/testing/table-harness.mjs +0 -30
- package/esm2020/mdc-table/text-column.mjs +0 -58
- package/esm2020/mdc-tabs/index.mjs +0 -9
- package/esm2020/mdc-tabs/ink-bar.mjs +0 -130
- package/esm2020/mdc-tabs/mdc-tabs_public_index.mjs +0 -5
- package/esm2020/mdc-tabs/module.mjs +0 -93
- package/esm2020/mdc-tabs/public-api.mjs +0 -19
- package/esm2020/mdc-tabs/tab-body.mjs +0 -60
- package/esm2020/mdc-tabs/tab-content.mjs +0 -20
- package/esm2020/mdc-tabs/tab-group.mjs +0 -98
- package/esm2020/mdc-tabs/tab-header.mjs +0 -73
- package/esm2020/mdc-tabs/tab-label-wrapper.mjs +0 -32
- package/esm2020/mdc-tabs/tab-label.mjs +0 -22
- package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +0 -202
- package/esm2020/mdc-tabs/tab.mjs +0 -34
- package/esm2020/mdc-tabs/testing/index.mjs +0 -9
- package/esm2020/mdc-tabs/testing/public-api.mjs +0 -13
- package/esm2020/mdc-tabs/testing/tab-group-harness.mjs +0 -56
- package/esm2020/mdc-tabs/testing/tab-harness-filters.mjs +0 -2
- package/esm2020/mdc-tabs/testing/tab-harness.mjs +0 -64
- package/esm2020/mdc-tabs/testing/tab-link-harness.mjs +0 -40
- package/esm2020/mdc-tabs/testing/tab-nav-bar-harness.mjs +0 -66
- package/esm2020/mdc-tabs/testing/tab-nav-panel-harness.mjs +0 -27
- package/esm2020/mdc-tooltip/index.mjs +0 -9
- package/esm2020/mdc-tooltip/mdc-tooltip_public_index.mjs +0 -5
- package/esm2020/mdc-tooltip/module.mjs +0 -31
- package/esm2020/mdc-tooltip/public-api.mjs +0 -12
- package/esm2020/mdc-tooltip/testing/index.mjs +0 -9
- package/esm2020/mdc-tooltip/testing/public-api.mjs +0 -9
- package/esm2020/mdc-tooltip/testing/tooltip-harness.mjs +0 -30
- package/esm2020/mdc-tooltip/tooltip-animations.mjs +0 -24
- package/esm2020/mdc-tooltip/tooltip.mjs +0 -132
- package/fesm2015/mdc-autocomplete/testing.mjs +0 -50
- package/fesm2015/mdc-autocomplete/testing.mjs.map +0 -1
- package/fesm2015/mdc-autocomplete.mjs +0 -196
- package/fesm2015/mdc-autocomplete.mjs.map +0 -1
- package/fesm2015/mdc-button/testing.mjs +0 -75
- package/fesm2015/mdc-button/testing.mjs.map +0 -1
- package/fesm2015/mdc-button.mjs +0 -490
- package/fesm2015/mdc-button.mjs.map +0 -1
- package/fesm2015/mdc-card/testing.mjs +0 -63
- package/fesm2015/mdc-card/testing.mjs.map +0 -1
- package/fesm2015/mdc-card.mjs +0 -351
- package/fesm2015/mdc-card.mjs.map +0 -1
- package/fesm2015/mdc-checkbox/testing.mjs +0 -56
- package/fesm2015/mdc-checkbox/testing.mjs.map +0 -1
- package/fesm2015/mdc-checkbox.mjs +0 -142
- package/fesm2015/mdc-checkbox.mjs.map +0 -1
- package/fesm2015/mdc-chips/testing.mjs +0 -394
- package/fesm2015/mdc-chips/testing.mjs.map +0 -1
- package/fesm2015/mdc-chips.mjs +0 -2169
- package/fesm2015/mdc-chips.mjs.map +0 -1
- package/fesm2015/mdc-core/testing.mjs +0 -118
- package/fesm2015/mdc-core/testing.mjs.map +0 -1
- package/fesm2015/mdc-core.mjs +0 -141
- package/fesm2015/mdc-core.mjs.map +0 -1
- package/fesm2015/mdc-dialog/testing.mjs +0 -90
- package/fesm2015/mdc-dialog/testing.mjs.map +0 -1
- package/fesm2015/mdc-dialog.mjs +0 -500
- package/fesm2015/mdc-dialog.mjs.map +0 -1
- package/fesm2015/mdc-form-field/testing.mjs +0 -78
- package/fesm2015/mdc-form-field/testing.mjs.map +0 -1
- package/fesm2015/mdc-form-field.mjs +0 -1018
- package/fesm2015/mdc-form-field.mjs.map +0 -1
- package/fesm2015/mdc-input/testing.mjs +0 -18
- package/fesm2015/mdc-input/testing.mjs.map +0 -1
- package/fesm2015/mdc-input.mjs +0 -103
- package/fesm2015/mdc-input.mjs.map +0 -1
- package/fesm2015/mdc-list/testing.mjs +0 -574
- package/fesm2015/mdc-list/testing.mjs.map +0 -1
- package/fesm2015/mdc-list.mjs +0 -1264
- package/fesm2015/mdc-list.mjs.map +0 -1
- package/fesm2015/mdc-menu/testing.mjs +0 -59
- package/fesm2015/mdc-menu/testing.mjs.map +0 -1
- package/fesm2015/mdc-menu.mjs +0 -174
- package/fesm2015/mdc-menu.mjs.map +0 -1
- package/fesm2015/mdc-paginator/testing.mjs +0 -55
- package/fesm2015/mdc-paginator/testing.mjs.map +0 -1
- package/fesm2015/mdc-paginator.mjs +0 -100
- package/fesm2015/mdc-paginator.mjs.map +0 -1
- package/fesm2015/mdc-progress-bar/testing.mjs +0 -54
- package/fesm2015/mdc-progress-bar/testing.mjs.map +0 -1
- package/fesm2015/mdc-progress-bar.mjs +0 -198
- package/fesm2015/mdc-progress-bar.mjs.map +0 -1
- package/fesm2015/mdc-progress-spinner/testing.mjs +0 -56
- package/fesm2015/mdc-progress-spinner/testing.mjs.map +0 -1
- package/fesm2015/mdc-progress-spinner.mjs +0 -200
- package/fesm2015/mdc-progress-spinner.mjs.map +0 -1
- package/fesm2015/mdc-radio/testing.mjs +0 -63
- package/fesm2015/mdc-radio/testing.mjs.map +0 -1
- package/fesm2015/mdc-radio.mjs +0 -155
- package/fesm2015/mdc-radio.mjs.map +0 -1
- package/fesm2015/mdc-select/testing.mjs +0 -48
- package/fesm2015/mdc-select/testing.mjs.map +0 -1
- package/fesm2015/mdc-select.mjs +0 -273
- package/fesm2015/mdc-select.mjs.map +0 -1
- package/fesm2015/mdc-slide-toggle/testing.mjs +0 -66
- package/fesm2015/mdc-slide-toggle/testing.mjs.map +0 -1
- package/fesm2015/mdc-slide-toggle.mjs +0 -159
- package/fesm2015/mdc-slide-toggle.mjs.map +0 -1
- package/fesm2015/mdc-slider/testing.mjs +0 -199
- package/fesm2015/mdc-slider/testing.mjs.map +0 -1
- package/fesm2015/mdc-slider.mjs +0 -1212
- package/fesm2015/mdc-slider.mjs.map +0 -1
- package/fesm2015/mdc-snack-bar/testing.mjs +0 -49
- package/fesm2015/mdc-snack-bar/testing.mjs.map +0 -1
- package/fesm2015/mdc-snack-bar.mjs +0 -229
- package/fesm2015/mdc-snack-bar.mjs.map +0 -1
- package/fesm2015/mdc-table/testing.mjs +0 -158
- package/fesm2015/mdc-table/testing.mjs.map +0 -1
- package/fesm2015/mdc-table.mjs +0 -540
- package/fesm2015/mdc-table.mjs.map +0 -1
- package/fesm2015/mdc-tabs/testing.mjs +0 -273
- package/fesm2015/mdc-tabs/testing.mjs.map +0 -1
- package/fesm2015/mdc-tabs.mjs +0 -737
- package/fesm2015/mdc-tabs.mjs.map +0 -1
- package/fesm2015/mdc-tooltip/testing.mjs +0 -49
- package/fesm2015/mdc-tooltip/testing.mjs.map +0 -1
- package/fesm2015/mdc-tooltip.mjs +0 -206
- package/fesm2015/mdc-tooltip.mjs.map +0 -1
- package/fesm2020/mdc-autocomplete/testing.mjs +0 -58
- package/fesm2020/mdc-autocomplete/testing.mjs.map +0 -1
- package/fesm2020/mdc-autocomplete.mjs +0 -196
- package/fesm2020/mdc-autocomplete.mjs.map +0 -1
- package/fesm2020/mdc-button/testing.mjs +0 -69
- package/fesm2020/mdc-button/testing.mjs.map +0 -1
- package/fesm2020/mdc-button.mjs +0 -510
- package/fesm2020/mdc-button.mjs.map +0 -1
- package/fesm2020/mdc-card/testing.mjs +0 -69
- package/fesm2020/mdc-card/testing.mjs.map +0 -1
- package/fesm2020/mdc-card.mjs +0 -349
- package/fesm2020/mdc-card.mjs.map +0 -1
- package/fesm2020/mdc-checkbox/testing.mjs +0 -60
- package/fesm2020/mdc-checkbox/testing.mjs.map +0 -1
- package/fesm2020/mdc-checkbox.mjs +0 -139
- package/fesm2020/mdc-checkbox.mjs.map +0 -1
- package/fesm2020/mdc-chips/testing.mjs +0 -395
- package/fesm2020/mdc-chips/testing.mjs.map +0 -1
- package/fesm2020/mdc-chips.mjs +0 -2161
- package/fesm2020/mdc-chips.mjs.map +0 -1
- package/fesm2020/mdc-core/testing.mjs +0 -129
- package/fesm2020/mdc-core/testing.mjs.map +0 -1
- package/fesm2020/mdc-core.mjs +0 -139
- package/fesm2020/mdc-core.mjs.map +0 -1
- package/fesm2020/mdc-dialog/testing.mjs +0 -90
- package/fesm2020/mdc-dialog/testing.mjs.map +0 -1
- package/fesm2020/mdc-dialog.mjs +0 -499
- package/fesm2020/mdc-dialog.mjs.map +0 -1
- package/fesm2020/mdc-form-field/testing.mjs +0 -78
- package/fesm2020/mdc-form-field/testing.mjs.map +0 -1
- package/fesm2020/mdc-form-field.mjs +0 -1014
- package/fesm2020/mdc-form-field.mjs.map +0 -1
- package/fesm2020/mdc-input/testing.mjs +0 -18
- package/fesm2020/mdc-input/testing.mjs.map +0 -1
- package/fesm2020/mdc-input.mjs +0 -103
- package/fesm2020/mdc-input.mjs.map +0 -1
- package/fesm2020/mdc-list/testing.mjs +0 -544
- package/fesm2020/mdc-list/testing.mjs.map +0 -1
- package/fesm2020/mdc-list.mjs +0 -1260
- package/fesm2020/mdc-list.mjs.map +0 -1
- package/fesm2020/mdc-menu/testing.mjs +0 -65
- package/fesm2020/mdc-menu/testing.mjs.map +0 -1
- package/fesm2020/mdc-menu.mjs +0 -172
- package/fesm2020/mdc-menu.mjs.map +0 -1
- package/fesm2020/mdc-paginator/testing.mjs +0 -55
- package/fesm2020/mdc-paginator/testing.mjs.map +0 -1
- package/fesm2020/mdc-paginator.mjs +0 -98
- package/fesm2020/mdc-paginator.mjs.map +0 -1
- package/fesm2020/mdc-progress-bar/testing.mjs +0 -56
- package/fesm2020/mdc-progress-bar/testing.mjs.map +0 -1
- package/fesm2020/mdc-progress-bar.mjs +0 -196
- package/fesm2020/mdc-progress-bar.mjs.map +0 -1
- package/fesm2020/mdc-progress-spinner/testing.mjs +0 -58
- package/fesm2020/mdc-progress-spinner/testing.mjs.map +0 -1
- package/fesm2020/mdc-progress-spinner.mjs +0 -197
- package/fesm2020/mdc-progress-spinner.mjs.map +0 -1
- package/fesm2020/mdc-radio/testing.mjs +0 -69
- package/fesm2020/mdc-radio/testing.mjs.map +0 -1
- package/fesm2020/mdc-radio.mjs +0 -153
- package/fesm2020/mdc-radio.mjs.map +0 -1
- package/fesm2020/mdc-select/testing.mjs +0 -56
- package/fesm2020/mdc-select/testing.mjs.map +0 -1
- package/fesm2020/mdc-select.mjs +0 -273
- package/fesm2020/mdc-select.mjs.map +0 -1
- package/fesm2020/mdc-slide-toggle/testing.mjs +0 -66
- package/fesm2020/mdc-slide-toggle/testing.mjs.map +0 -1
- package/fesm2020/mdc-slide-toggle.mjs +0 -157
- package/fesm2020/mdc-slide-toggle.mjs.map +0 -1
- package/fesm2020/mdc-slider/testing.mjs +0 -172
- package/fesm2020/mdc-slider/testing.mjs.map +0 -1
- package/fesm2020/mdc-slider.mjs +0 -1191
- package/fesm2020/mdc-slider.mjs.map +0 -1
- package/fesm2020/mdc-snack-bar/testing.mjs +0 -53
- package/fesm2020/mdc-snack-bar/testing.mjs.map +0 -1
- package/fesm2020/mdc-snack-bar.mjs +0 -232
- package/fesm2020/mdc-snack-bar.mjs.map +0 -1
- package/fesm2020/mdc-table/testing.mjs +0 -158
- package/fesm2020/mdc-table/testing.mjs.map +0 -1
- package/fesm2020/mdc-table.mjs +0 -539
- package/fesm2020/mdc-table.mjs.map +0 -1
- package/fesm2020/mdc-tabs/testing.mjs +0 -265
- package/fesm2020/mdc-tabs/testing.mjs.map +0 -1
- package/fesm2020/mdc-tabs.mjs +0 -723
- package/fesm2020/mdc-tabs.mjs.map +0 -1
- package/fesm2020/mdc-tooltip/testing.mjs +0 -49
- package/fesm2020/mdc-tooltip/testing.mjs.map +0 -1
- package/fesm2020/mdc-tooltip.mjs +0 -202
- package/fesm2020/mdc-tooltip.mjs.map +0 -1
- package/mdc-autocomplete/_autocomplete-theme.import.scss +0 -5
- package/mdc-autocomplete/_autocomplete-theme.scss +0 -48
- package/mdc-autocomplete/index.d.ts +0 -97
- package/mdc-autocomplete/testing/index.d.ts +0 -32
- package/mdc-button/_button-base.import.scss +0 -4
- package/mdc-button/_button-base.scss +0 -95
- package/mdc-button/_button-theme-private.scss +0 -62
- package/mdc-button/_button-theme.import.scss +0 -16
- package/mdc-button/_button-theme.scss +0 -224
- package/mdc-button/_fab-theme.scss +0 -90
- package/mdc-button/_icon-button-theme.scss +0 -76
- package/mdc-button/index.d.ts +0 -216
- package/mdc-button/testing/index.d.ts +0 -41
- package/mdc-card/_card-theme.import.scss +0 -7
- package/mdc-card/_card-theme.scss +0 -74
- package/mdc-card/index.d.ts +0 -194
- package/mdc-card/testing/index.d.ts +0 -44
- package/mdc-checkbox/_checkbox-private.scss +0 -53
- package/mdc-checkbox/_checkbox-theme.import.scss +0 -15
- package/mdc-checkbox/_checkbox-theme.scss +0 -122
- package/mdc-checkbox/index.d.ts +0 -87
- package/mdc-checkbox/testing/index.d.ts +0 -28
- package/mdc-chips/_chips-theme.import.scss +0 -8
- package/mdc-chips/_chips-theme.scss +0 -117
- package/mdc-chips/index.d.ts +0 -979
- package/mdc-chips/testing/index.d.ts +0 -232
- package/mdc-core/_core-theme.import.scss +0 -10
- package/mdc-core/_core-theme.scss +0 -78
- package/mdc-core/_elevation.scss +0 -38
- package/mdc-core/color/_all-color.scss +0 -25
- package/mdc-core/density/_all-density.scss +0 -25
- package/mdc-core/index.d.ts +0 -206
- package/mdc-core/mdc-helpers/_focus-indicators-theme.scss +0 -39
- package/mdc-core/mdc-helpers/_focus-indicators.import.scss +0 -10
- package/mdc-core/mdc-helpers/_focus-indicators.scss +0 -15
- package/mdc-core/mdc-helpers/_mdc-helpers.import.scss +0 -8
- package/mdc-core/mdc-helpers/_mdc-helpers.scss +0 -221
- package/mdc-core/option/_optgroup-theme.import.scss +0 -7
- package/mdc-core/option/_optgroup-theme.scss +0 -44
- package/mdc-core/option/_option-theme.import.scss +0 -7
- package/mdc-core/option/_option-theme.scss +0 -87
- package/mdc-core/testing/index.d.ts +0 -64
- package/mdc-core/theming/_all-theme.scss +0 -61
- package/mdc-core/theming/prebuilt/deeppurple-amber.css +0 -1
- package/mdc-core/theming/prebuilt/indigo-pink.css +0 -1
- package/mdc-core/theming/prebuilt/pink-bluegrey.css +0 -1
- package/mdc-core/theming/prebuilt/purple-green.css +0 -1
- package/mdc-core/typography/_all-typography.scss +0 -99
- package/mdc-dialog/_dialog-legacy-padding.import.scss +0 -1
- package/mdc-dialog/_dialog-legacy-padding.scss +0 -31
- package/mdc-dialog/_dialog-theme.import.scss +0 -5
- package/mdc-dialog/_dialog-theme.scss +0 -78
- package/mdc-dialog/_mdc-dialog-structure-overrides.import.scss +0 -1
- package/mdc-dialog/_mdc-dialog-structure-overrides.scss +0 -56
- package/mdc-dialog/index.d.ts +0 -217
- package/mdc-dialog/testing/index.d.ts +0 -47
- package/mdc-form-field/_form-field-density.scss +0 -119
- package/mdc-form-field/_form-field-focus-overlay.scss +0 -34
- package/mdc-form-field/_form-field-high-contrast.scss +0 -39
- package/mdc-form-field/_form-field-native-select.scss +0 -133
- package/mdc-form-field/_form-field-sizing.scss +0 -40
- package/mdc-form-field/_form-field-subscript.scss +0 -83
- package/mdc-form-field/_form-field-theme.scss +0 -148
- package/mdc-form-field/_mdc-text-field-structure-overrides.scss +0 -129
- package/mdc-form-field/_mdc-text-field-textarea-overrides.scss +0 -36
- package/mdc-form-field/_mdc-text-field-theme-variable-refresh.scss +0 -63
- package/mdc-form-field/index.d.ts +0 -431
- package/mdc-form-field/testing/index.d.ts +0 -48
- package/mdc-input/_input-theme.import.scss +0 -5
- package/mdc-input/_input-theme.scss +0 -35
- package/mdc-input/index.d.ts +0 -30
- package/mdc-input/testing/index.d.ts +0 -20
- package/mdc-list/_interactive-list-theme.import.scss +0 -5
- package/mdc-list/_interactive-list-theme.scss +0 -40
- package/mdc-list/_list-option-theme.import.scss +0 -13
- package/mdc-list/_list-option-theme.scss +0 -28
- package/mdc-list/_list-option-trailing-avatar-compat.scss +0 -58
- package/mdc-list/_list-theme.import.scss +0 -17
- package/mdc-list/_list-theme.scss +0 -81
- package/mdc-list/index.d.ts +0 -534
- package/mdc-list/testing/index.d.ts +0 -372
- package/mdc-menu/_menu-theme.import.scss +0 -5
- package/mdc-menu/_menu-theme.scss +0 -88
- package/mdc-menu/index.d.ts +0 -110
- package/mdc-menu/testing/index.d.ts +0 -38
- package/mdc-paginator/_paginator-theme.import.scss +0 -9
- package/mdc-paginator/_paginator-theme.scss +0 -106
- package/mdc-paginator/_paginator-variables.import.scss +0 -1
- package/mdc-paginator/_paginator-variables.scss +0 -13
- package/mdc-paginator/index.d.ts +0 -72
- package/mdc-paginator/testing/index.d.ts +0 -30
- package/mdc-progress-bar/_progress-bar-theme.import.scss +0 -6
- package/mdc-progress-bar/_progress-bar-theme.scss +0 -57
- package/mdc-progress-bar/index.d.ts +0 -98
- package/mdc-progress-bar/testing/index.d.ts +0 -24
- package/mdc-progress-spinner/_progress-spinner-theme.import.scss +0 -6
- package/mdc-progress-spinner/_progress-spinner-theme.scss +0 -48
- package/mdc-progress-spinner/index.d.ts +0 -90
- package/mdc-progress-spinner/testing/index.d.ts +0 -26
- package/mdc-radio/_radio-theme.import.scss +0 -7
- package/mdc-radio/_radio-theme.scss +0 -110
- package/mdc-radio/index.d.ts +0 -72
- package/mdc-radio/testing/index.d.ts +0 -43
- package/mdc-select/_select-theme.import.scss +0 -10
- package/mdc-select/_select-theme.scss +0 -100
- package/mdc-select/index.d.ts +0 -111
- package/mdc-select/testing/index.d.ts +0 -28
- package/mdc-slide-toggle/_slide-toggle-theme.import.scss +0 -11
- package/mdc-slide-toggle/_slide-toggle-theme.scss +0 -140
- package/mdc-slide-toggle/index.d.ts +0 -83
- package/mdc-slide-toggle/testing/index.d.ts +0 -27
- package/mdc-slider/_slider-theme.import.scss +0 -5
- package/mdc-slider/_slider-theme.scss +0 -125
- package/mdc-slider/index.d.ts +0 -435
- package/mdc-slider/testing/index.d.ts +0 -92
- package/mdc-snack-bar/_snack-bar-theme.import.scss +0 -8
- package/mdc-snack-bar/_snack-bar-theme.scss +0 -81
- package/mdc-snack-bar/index.d.ts +0 -136
- package/mdc-snack-bar/testing/index.d.ts +0 -23
- package/mdc-table/_table-theme.import.scss +0 -11
- package/mdc-table/_table-theme.scss +0 -78
- package/mdc-table/index.d.ts +0 -238
- package/mdc-table/testing/index.d.ts +0 -118
- package/mdc-tabs/_tabs-common.import.scss +0 -14
- package/mdc-tabs/_tabs-common.scss +0 -196
- package/mdc-tabs/_tabs-theme.import.scss +0 -8
- package/mdc-tabs/_tabs-theme.scss +0 -146
- package/mdc-tabs/index.d.ts +0 -307
- package/mdc-tabs/testing/index.d.ts +0 -151
- package/mdc-tooltip/_tooltip-theme.import.scss +0 -5
- package/mdc-tooltip/_tooltip-theme.scss +0 -49
- package/mdc-tooltip/index.d.ts +0 -118
- package/mdc-tooltip/testing/index.d.ts +0 -26
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ComponentHarnessConstructor } from '@angular/cdk/testing';
|
|
3
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
4
|
-
import { _MatAutocompleteHarnessBase } from '@angular/material/autocomplete/testing';
|
|
5
|
-
import { MatOptgroupHarness } from '@angular/material-experimental/mdc-core/testing';
|
|
6
|
-
import { MatOptionHarness } from '@angular/material-experimental/mdc-core/testing';
|
|
7
|
-
import { OptgroupHarnessFilters } from '@angular/material-experimental/mdc-core/testing';
|
|
8
|
-
import { OptionHarnessFilters } from '@angular/material-experimental/mdc-core/testing';
|
|
9
|
-
|
|
10
|
-
/** A set of criteria that can be used to filter a list of `MatAutocompleteHarness` instances. */
|
|
11
|
-
export declare interface AutocompleteHarnessFilters extends BaseHarnessFilters {
|
|
12
|
-
/** Only find instances whose associated input element matches the given value. */
|
|
13
|
-
value?: string | RegExp;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/** Harness for interacting with an MDC-based mat-autocomplete in tests. */
|
|
17
|
-
export declare class MatAutocompleteHarness extends _MatAutocompleteHarnessBase<typeof MatOptionHarness, MatOptionHarness, OptionHarnessFilters, typeof MatOptgroupHarness, MatOptgroupHarness, OptgroupHarnessFilters> {
|
|
18
|
-
protected _prefix: string;
|
|
19
|
-
protected _optionClass: typeof MatOptionHarness;
|
|
20
|
-
protected _optionGroupClass: typeof MatOptgroupHarness;
|
|
21
|
-
/** The selector for the host element of a `MatAutocomplete` instance. */
|
|
22
|
-
static hostSelector: string;
|
|
23
|
-
/**
|
|
24
|
-
* Gets a `HarnessPredicate` that can be used to search for an autocomplete with specific
|
|
25
|
-
* attributes.
|
|
26
|
-
* @param options Options for filtering which autocomplete instances are considered a match.
|
|
27
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
28
|
-
*/
|
|
29
|
-
static with<T extends MatAutocompleteHarness>(this: ComponentHarnessConstructor<T>, options?: AutocompleteHarnessFilters): HarnessPredicate<T>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { }
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use '@material/touch-target' as mdc-touch-target;
|
|
4
|
-
|
|
5
|
-
@use '../mdc-core/mdc-helpers/mdc-helpers';
|
|
6
|
-
|
|
7
|
-
// Adds styles necessary to provide stateful interactions with the button. This includes providing
|
|
8
|
-
// content for the state container's ::before and ::after so that they can be given a background
|
|
9
|
-
// color and opacity for states like hover, active, and focus. Additionally, adds styles to the
|
|
10
|
-
// ripple and state container so that they fill the button, match the border radius, and avoid
|
|
11
|
-
// pointer events.
|
|
12
|
-
@mixin mat-private-button-interactive() {
|
|
13
|
-
// The ripple container should match the bounds of the entire button.
|
|
14
|
-
.mat-mdc-button-ripple,
|
|
15
|
-
.mat-mdc-button-persistent-ripple,
|
|
16
|
-
.mat-mdc-button-persistent-ripple::before {
|
|
17
|
-
@include mat.private-fill;
|
|
18
|
-
|
|
19
|
-
// Disable pointer events for the ripple container and state overlay because the container
|
|
20
|
-
// will overlay the user content and we don't want to disable mouse events on the user content.
|
|
21
|
-
// Pointer events can be safely disabled because the ripple trigger element is the host element.
|
|
22
|
-
pointer-events: none;
|
|
23
|
-
|
|
24
|
-
// Inherit the border radius from the parent so that state overlay and ripples don't exceed the
|
|
25
|
-
// parent button boundaries. Note that an inherited border radius does not work properly if
|
|
26
|
-
// the actual button element does have a border because it causes the inner content to be
|
|
27
|
-
// smaller. We have special logic for stroked buttons to handle this scenario.
|
|
28
|
-
border-radius: inherit;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// We use ::before so that we can reuse some of MDC's theming.
|
|
32
|
-
.mat-mdc-button-persistent-ripple::before {
|
|
33
|
-
content: '';
|
|
34
|
-
opacity: 0;
|
|
35
|
-
background-color: var(--mat-mdc-button-persistent-ripple-color);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.mat-ripple-element {
|
|
39
|
-
background-color: var(--mat-mdc-button-ripple-color);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// The content should appear over the state and ripple layers, otherwise they may adversely affect
|
|
43
|
-
// the accessibility of the text content.
|
|
44
|
-
.mdc-button__label {
|
|
45
|
-
z-index: 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// The focus indicator should match the bounds of the entire button.
|
|
49
|
-
.mat-mdc-focus-indicator {
|
|
50
|
-
@include mat.private-fill();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:focus .mat-mdc-focus-indicator::before {
|
|
54
|
-
content: '';
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// MDC's disabled buttons define a default cursor with pointer-events none. However, they select
|
|
59
|
-
// :disabled for this, which does not affect anchor tags.
|
|
60
|
-
// TODO(andrewseguin): Discuss with the MDC team about a mixin we can call for applying this style,
|
|
61
|
-
// and note that having pointer-events may have unintended side-effects, e.g. allowing the user
|
|
62
|
-
// to click the target underneath the button.
|
|
63
|
-
@mixin mat-private-button-disabled() {
|
|
64
|
-
&[disabled] {
|
|
65
|
-
cursor: default;
|
|
66
|
-
pointer-events: none;
|
|
67
|
-
@content;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@mixin mat-private-button-touch-target($is-square) {
|
|
72
|
-
// Element used to ensure that the button has a touch target that meets the required minimum.
|
|
73
|
-
// Note that we use this, instead of MDC's built-in `mdc-button--touch` class, because the MDC
|
|
74
|
-
// class is implemented as `margin-top: 6px; margin-bottom: 6px` on the host element which
|
|
75
|
-
// goes against our rule of not having margins on the host node. Furthermore, having the margin on
|
|
76
|
-
// the button itself would require us to wrap it in another div. See:
|
|
77
|
-
// https://github.com/material-components/material-components-web/tree/master/packages/mdc-button#making-buttons-accessible
|
|
78
|
-
.mat-mdc-button-touch-target {
|
|
79
|
-
@include mdc-touch-target.touch-target(
|
|
80
|
-
$set-width: $is-square,
|
|
81
|
-
$query: mdc-helpers.$mat-base-styles-query);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// Changes a button theme to exclude the ripple styles.
|
|
86
|
-
@function mat-private-button-remove-ripple($theme) {
|
|
87
|
-
@return map.merge($theme, (
|
|
88
|
-
focus-state-layer-color: null,
|
|
89
|
-
focus-state-layer-opacity: null,
|
|
90
|
-
hover-state-layer-color: null,
|
|
91
|
-
hover-state-layer-opacity: null,
|
|
92
|
-
pressed-state-layer-color: null,
|
|
93
|
-
pressed-state-layer-opacity: null,
|
|
94
|
-
));
|
|
95
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
|
-
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
4
|
-
@use '../mdc-core/mdc-helpers/mdc-helpers';
|
|
5
|
-
|
|
6
|
-
@mixin _ripple-color($color) {
|
|
7
|
-
--mat-mdc-button-persistent-ripple-color: #{$color};
|
|
8
|
-
--mat-mdc-button-ripple-color: #{rgba($color, 0.1)};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin ripple-theme-styles($config, $is-filled) {
|
|
12
|
-
$opacities: if(map.get($config, is-dark),
|
|
13
|
-
mdc-ripple-theme.$light-ink-opacities, mdc-ripple-theme.$dark-ink-opacities);
|
|
14
|
-
|
|
15
|
-
// Ideally these styles would be structural, but MDC bases some of the opacities on the theme.
|
|
16
|
-
&:hover .mat-mdc-button-persistent-ripple::before {
|
|
17
|
-
opacity: map.get($opacities, hover);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:focus .mat-mdc-button-persistent-ripple::before {
|
|
21
|
-
opacity: map.get($opacities, focus);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:active .mat-mdc-button-persistent-ripple::before {
|
|
25
|
-
opacity: map.get($opacities, press);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@include _ripple-color(mdc-theme-color.prop-value(on-surface));
|
|
29
|
-
|
|
30
|
-
&.mat-primary {
|
|
31
|
-
@include _ripple-color(mdc-theme-color.prop-value(if($is-filled, on-primary, primary)));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&.mat-accent {
|
|
35
|
-
@include _ripple-color(mdc-theme-color.prop-value(if($is-filled, on-secondary, secondary)));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.mat-warn {
|
|
39
|
-
@include _ripple-color(mdc-theme-color.prop-value(if($is-filled, on-error, error)));
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Wraps the content style in a selector for the disabled state.
|
|
44
|
-
// MDC adds theme color by using :not(:disabled), so just using [disabled] once will not
|
|
45
|
-
// override this, neither will it apply to anchor tags. This needs to override the
|
|
46
|
-
// previously set theme color, so it must be ordered after the theme styles.
|
|
47
|
-
// TODO(andrewseguin): Discuss with the MDC team to see if we can avoid the :not(:disabled) by
|
|
48
|
-
// manually styling disabled buttons with a [disabled] selector.
|
|
49
|
-
@mixin apply-disabled-style() {
|
|
50
|
-
&[disabled][disabled] {
|
|
51
|
-
@content;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Hides the touch target on lower densities.
|
|
56
|
-
@mixin touch-target-density($scale) {
|
|
57
|
-
@include mdc-helpers.if-touch-targets-unsupported($scale) {
|
|
58
|
-
.mat-mdc-button-touch-target {
|
|
59
|
-
display: none;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@forward '../mdc-core/mdc-helpers/mdc-helpers.import';
|
|
2
|
-
@forward '../../material/core/ripple/ripple.import';
|
|
3
|
-
@forward '../mdc-core/mdc-helpers/mdc-helpers';
|
|
4
|
-
@forward 'button-theme' hide color, density, theme, typography;
|
|
5
|
-
@forward 'button-theme' as mat-mdc-* hide $mat-mdc-mat-button-state-target, mat-mdc-color,
|
|
6
|
-
mat-mdc-density, mat-mdc-mat-button-apply-disabled-style, mat-mdc-mat-button-disabled-background,
|
|
7
|
-
mat-mdc-mat-button-disabled-color, mat-mdc-mat-button-ripple-ink-color, mat-mdc-theme,
|
|
8
|
-
mat-mdc-typography;
|
|
9
|
-
@forward 'button-theme' as mat-mdc-button-* hide $mat-mdc-button-mat-button-state-target,
|
|
10
|
-
mat-mdc-button-mat-button-apply-disabled-style, mat-mdc-button-mat-button-disabled-background,
|
|
11
|
-
mat-mdc-button-mat-button-disabled-color, mat-mdc-button-mat-button-ripple-ink-color;
|
|
12
|
-
@forward 'fab-theme' as mat-mdc-fab-*;
|
|
13
|
-
@forward 'icon-button-theme' as mat-mdc-icon-button-*;
|
|
14
|
-
|
|
15
|
-
@import '../../material/core/ripple/ripple';
|
|
16
|
-
@import '../mdc-core/mdc-helpers/mdc-helpers';
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use '@material/button/button' as mdc-button;
|
|
4
|
-
@use '@material/button/button-theme' as mdc-button-theme;
|
|
5
|
-
@use '@material/button/button-text-theme' as mdc-button-text-theme;
|
|
6
|
-
@use '@material/button/button-filled-theme' as mdc-button-filled-theme;
|
|
7
|
-
@use '@material/button/button-protected-theme' as mdc-button-protected-theme;
|
|
8
|
-
@use '@material/button/button-outlined-theme' as mdc-button-outlined-theme;
|
|
9
|
-
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
10
|
-
|
|
11
|
-
@use '../mdc-core/mdc-helpers/mdc-helpers';
|
|
12
|
-
@use './button-theme-private';
|
|
13
|
-
|
|
14
|
-
@mixin _button-variant($color) {
|
|
15
|
-
@include mdc-button-text-theme.theme((
|
|
16
|
-
label-text-color: $color,
|
|
17
|
-
));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@mixin _unelevated-button-variant($foreground, $background) {
|
|
21
|
-
@include mdc-button-filled-theme.theme((
|
|
22
|
-
container-color: $background,
|
|
23
|
-
label-text-color: $foreground,
|
|
24
|
-
));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@mixin _raised-button-variant($foreground, $background) {
|
|
28
|
-
@include mdc-button-protected-theme.theme((
|
|
29
|
-
container-color: $background,
|
|
30
|
-
label-text-color: $foreground,
|
|
31
|
-
));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@mixin _outlined-button-variant($color) {
|
|
35
|
-
@include mdc-button-outlined-theme.theme((
|
|
36
|
-
label-text-color: $color,
|
|
37
|
-
));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@mixin color($config-or-theme) {
|
|
41
|
-
$config: mat.get-color-config($config-or-theme);
|
|
42
|
-
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
43
|
-
$is-dark: map.get($config, is-dark);
|
|
44
|
-
$on-surface: mdc-theme-color.prop-value(on-surface);
|
|
45
|
-
$surface: mdc-theme-color.prop-value(surface);
|
|
46
|
-
$disabled-ink-color: rgba($on-surface, if($is-dark, 0.5, 0.38));
|
|
47
|
-
$disabled-container-color: rgba($on-surface, 0.12);
|
|
48
|
-
$primary: mdc-theme-color.prop-value(primary);
|
|
49
|
-
$on-primary: mdc-theme-color.prop-value(on-primary);
|
|
50
|
-
$secondary: mdc-theme-color.prop-value(secondary);
|
|
51
|
-
$on-secondary: mdc-theme-color.prop-value(on-secondary);
|
|
52
|
-
$error: mdc-theme-color.prop-value(error);
|
|
53
|
-
$on-error: mdc-theme-color.prop-value(on-error);
|
|
54
|
-
|
|
55
|
-
.mat-mdc-button {
|
|
56
|
-
&.mat-unthemed {
|
|
57
|
-
@include _button-variant($on-surface);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&.mat-primary {
|
|
61
|
-
@include _button-variant($primary);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.mat-accent {
|
|
65
|
-
@include _button-variant($secondary);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&.mat-warn {
|
|
69
|
-
@include _button-variant($error);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@include button-theme-private.apply-disabled-style() {
|
|
73
|
-
@include mdc-button-text-theme.theme((
|
|
74
|
-
// We need to pass both the disabled and enabled values, because the enabled
|
|
75
|
-
// ones apply to anchors while the disabled ones are for buttons.
|
|
76
|
-
disabled-label-text-color: $disabled-ink-color,
|
|
77
|
-
label-text-color: $disabled-ink-color
|
|
78
|
-
));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.mat-mdc-unelevated-button {
|
|
83
|
-
&.mat-unthemed {
|
|
84
|
-
@include _unelevated-button-variant($on-surface, $surface);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.mat-primary {
|
|
88
|
-
@include _unelevated-button-variant($on-primary, $primary);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&.mat-accent {
|
|
92
|
-
@include _unelevated-button-variant($on-secondary, $secondary);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.mat-warn {
|
|
96
|
-
@include _unelevated-button-variant($on-error, $error);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@include button-theme-private.apply-disabled-style() {
|
|
100
|
-
@include mdc-button-filled-theme.theme((
|
|
101
|
-
// We need to pass both the disabled and enabled values, because the enabled
|
|
102
|
-
// ones apply to anchors while the disabled ones are for buttons.
|
|
103
|
-
disabled-container-color: $disabled-container-color,
|
|
104
|
-
disabled-label-text-color: $disabled-ink-color,
|
|
105
|
-
container-color: $disabled-container-color,
|
|
106
|
-
label-text-color: $disabled-ink-color,
|
|
107
|
-
));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.mat-mdc-raised-button {
|
|
112
|
-
&.mat-unthemed {
|
|
113
|
-
@include _raised-button-variant($on-surface, $surface);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&.mat-primary {
|
|
117
|
-
@include _raised-button-variant($on-primary, $primary);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&.mat-accent {
|
|
121
|
-
@include _raised-button-variant($on-secondary, $secondary);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.mat-warn {
|
|
125
|
-
@include _raised-button-variant($on-error, $error);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@include button-theme-private.apply-disabled-style() {
|
|
129
|
-
@include mdc-button-protected-theme.theme((
|
|
130
|
-
// We need to pass both the disabled and enabled values, because the enabled
|
|
131
|
-
// ones apply to anchors while the disabled ones are for buttons.
|
|
132
|
-
disabled-container-color: $disabled-container-color,
|
|
133
|
-
disabled-label-text-color: $disabled-ink-color,
|
|
134
|
-
container-color: $disabled-container-color,
|
|
135
|
-
label-text-color: $disabled-ink-color,
|
|
136
|
-
container-elevation: 0,
|
|
137
|
-
));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.mat-mdc-outlined-button {
|
|
142
|
-
@include mdc-button-outlined-theme.theme((
|
|
143
|
-
outline-color: rgba(mdc-theme-color.prop-value(on-surface), 0.12)
|
|
144
|
-
));
|
|
145
|
-
|
|
146
|
-
&.mat-unthemed {
|
|
147
|
-
@include _outlined-button-variant($on-surface);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&.mat-primary {
|
|
151
|
-
@include _outlined-button-variant($primary);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&.mat-accent {
|
|
155
|
-
@include _outlined-button-variant($secondary);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&.mat-warn {
|
|
159
|
-
@include _outlined-button-variant($error);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@include button-theme-private.apply-disabled-style() {
|
|
163
|
-
@include mdc-button-outlined-theme.theme((
|
|
164
|
-
// We need to pass both the disabled and enabled values, because the enabled
|
|
165
|
-
// ones apply to anchors while the disabled ones are for buttons.
|
|
166
|
-
label-text-color: $disabled-ink-color,
|
|
167
|
-
disabled-label-text-color: $disabled-ink-color,
|
|
168
|
-
outline-color: rgba($on-surface, 0.12),
|
|
169
|
-
disabled-outline-color: rgba($on-surface, 0.12),
|
|
170
|
-
));
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// Ripple colors
|
|
175
|
-
.mat-mdc-button, .mat-mdc-outlined-button {
|
|
176
|
-
@include button-theme-private.ripple-theme-styles($config, false);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.mat-mdc-raised-button, .mat-mdc-unelevated-button {
|
|
180
|
-
@include button-theme-private.ripple-theme-styles($config, true);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@mixin typography($config-or-theme) {
|
|
186
|
-
$config: mat.private-typography-to-2018-config(
|
|
187
|
-
mat.get-typography-config($config-or-theme));
|
|
188
|
-
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
189
|
-
@include mdc-button.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
@mixin density($config-or-theme) {
|
|
194
|
-
$density-scale: mat.get-density-config($config-or-theme);
|
|
195
|
-
.mat-mdc-button,
|
|
196
|
-
.mat-mdc-raised-button,
|
|
197
|
-
.mat-mdc-unelevated-button,
|
|
198
|
-
.mat-mdc-outlined-button {
|
|
199
|
-
// Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
|
|
200
|
-
&.mat-mdc-button-base {
|
|
201
|
-
@include mdc-button-theme.density($density-scale, $query: mdc-helpers.$mat-base-styles-query);
|
|
202
|
-
@include button-theme-private.touch-target-density($density-scale);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
@mixin theme($theme-or-color-config) {
|
|
208
|
-
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
209
|
-
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-button') {
|
|
210
|
-
$color: mat.get-color-config($theme);
|
|
211
|
-
$density: mat.get-density-config($theme);
|
|
212
|
-
$typography: mat.get-typography-config($theme);
|
|
213
|
-
|
|
214
|
-
@if $color != null {
|
|
215
|
-
@include color($color);
|
|
216
|
-
}
|
|
217
|
-
@if $density != null {
|
|
218
|
-
@include density($density);
|
|
219
|
-
}
|
|
220
|
-
@if $typography != null {
|
|
221
|
-
@include typography($typography);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use '@material/fab/fab' as mdc-fab;
|
|
4
|
-
@use '@material/fab/fab-theme' as mdc-fab-theme;
|
|
5
|
-
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
6
|
-
|
|
7
|
-
@use '../mdc-core/mdc-helpers/mdc-helpers';
|
|
8
|
-
@use './button-theme-private';
|
|
9
|
-
|
|
10
|
-
@mixin _fab-variant($foreground, $background) {
|
|
11
|
-
@include mdc-fab-theme.theme((
|
|
12
|
-
container-color: $background,
|
|
13
|
-
icon-color: $foreground,
|
|
14
|
-
));
|
|
15
|
-
|
|
16
|
-
--mat-mdc-fab-color: #{$foreground};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@mixin color($config-or-theme) {
|
|
20
|
-
$config: mat.get-color-config($config-or-theme);
|
|
21
|
-
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
22
|
-
$on-surface: mdc-theme-color.prop-value(on-surface);
|
|
23
|
-
$is-dark: map.get($config, is-dark);
|
|
24
|
-
|
|
25
|
-
.mat-mdc-fab, .mat-mdc-mini-fab {
|
|
26
|
-
@include button-theme-private.ripple-theme-styles($config, true);
|
|
27
|
-
|
|
28
|
-
&.mat-unthemed {
|
|
29
|
-
@include _fab-variant($on-surface, mdc-theme-color.prop-value(surface));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.mat-primary {
|
|
33
|
-
@include _fab-variant(
|
|
34
|
-
mdc-theme-color.prop-value(on-primary),
|
|
35
|
-
mdc-theme-color.prop-value(primary)
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.mat-accent {
|
|
40
|
-
@include _fab-variant(
|
|
41
|
-
mdc-theme-color.prop-value(on-secondary),
|
|
42
|
-
mdc-theme-color.prop-value(secondary)
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.mat-warn {
|
|
47
|
-
@include _fab-variant(
|
|
48
|
-
mdc-theme-color.prop-value(on-error),
|
|
49
|
-
mdc-theme-color.prop-value(error)
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@include button-theme-private.apply-disabled-style() {
|
|
54
|
-
@include _fab-variant(
|
|
55
|
-
rgba($on-surface, if(map.get($config, is-dark), 0.5, 0.38)),
|
|
56
|
-
rgba($on-surface, 0.12)
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@mixin typography($config-or-theme) {
|
|
64
|
-
$config: mat.private-typography-to-2018-config(
|
|
65
|
-
mat.get-typography-config($config-or-theme));
|
|
66
|
-
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
67
|
-
@include mdc-fab.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@mixin density($config-or-theme) {}
|
|
72
|
-
|
|
73
|
-
@mixin theme($theme-or-color-config) {
|
|
74
|
-
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
75
|
-
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-fab') {
|
|
76
|
-
$color: mat.get-color-config($theme);
|
|
77
|
-
$density: mat.get-density-config($theme);
|
|
78
|
-
$typography: mat.get-typography-config($theme);
|
|
79
|
-
|
|
80
|
-
@if $color != null {
|
|
81
|
-
@include color($color);
|
|
82
|
-
}
|
|
83
|
-
@if $density != null {
|
|
84
|
-
@include density($density);
|
|
85
|
-
}
|
|
86
|
-
@if $typography != null {
|
|
87
|
-
@include typography($typography);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '@angular/material' as mat;
|
|
3
|
-
@use '@material/icon-button/mixins' as mdc-icon-button;
|
|
4
|
-
@use '@material/icon-button/icon-button-theme' as mdc-icon-button-theme;
|
|
5
|
-
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
6
|
-
|
|
7
|
-
@use '../mdc-core/mdc-helpers/mdc-helpers';
|
|
8
|
-
@use './button-theme-private';
|
|
9
|
-
|
|
10
|
-
@mixin color($config-or-theme) {
|
|
11
|
-
$config: mat.get-color-config($config-or-theme);
|
|
12
|
-
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
13
|
-
$is-dark: map.get($config, is-dark);
|
|
14
|
-
$on-surface: mdc-theme-color.prop-value(on-surface);
|
|
15
|
-
$disabled-color: rgba($on-surface, if($is-dark, 0.5, 0.38));
|
|
16
|
-
|
|
17
|
-
.mat-mdc-icon-button {
|
|
18
|
-
@include button-theme-private.ripple-theme-styles($config, false);
|
|
19
|
-
|
|
20
|
-
&.mat-primary {
|
|
21
|
-
@include mdc-icon-button-theme.theme((icon-color: mdc-theme-color.prop-value(primary)));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&.mat-accent {
|
|
25
|
-
@include mdc-icon-button-theme.theme((icon-color: mdc-theme-color.prop-value(secondary)));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.mat-warn {
|
|
29
|
-
@include mdc-icon-button-theme.theme((icon-color: (mdc-theme-color.prop-value(error))));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@include button-theme-private.apply-disabled-style() {
|
|
33
|
-
@include mdc-icon-button-theme.theme((
|
|
34
|
-
icon-color: $disabled-color,
|
|
35
|
-
disabled-icon-color: $disabled-color,
|
|
36
|
-
));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@mixin typography($config-or-theme) {
|
|
43
|
-
$config: mat.private-typography-to-2018-config(
|
|
44
|
-
mat.get-typography-config($config-or-theme));
|
|
45
|
-
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
46
|
-
@include mdc-icon-button.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@mixin density($config-or-theme) {
|
|
51
|
-
$density-scale: mat.get-density-config($config-or-theme);
|
|
52
|
-
// Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
|
|
53
|
-
.mat-mdc-icon-button.mat-mdc-button-base {
|
|
54
|
-
@include mdc-icon-button.density($density-scale, $query: mdc-helpers.$mat-base-styles-query);
|
|
55
|
-
@include button-theme-private.touch-target-density($density-scale);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@mixin theme($theme-or-color-config) {
|
|
60
|
-
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
61
|
-
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-icon-button') {
|
|
62
|
-
$color: mat.get-color-config($theme);
|
|
63
|
-
$density: mat.get-density-config($theme);
|
|
64
|
-
$typography: mat.get-typography-config($theme);
|
|
65
|
-
|
|
66
|
-
@if $color != null {
|
|
67
|
-
@include color($color);
|
|
68
|
-
}
|
|
69
|
-
@if $density != null {
|
|
70
|
-
@include density($density);
|
|
71
|
-
}
|
|
72
|
-
@if $typography != null {
|
|
73
|
-
@include typography($typography);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|