@angular/material-experimental 13.2.0-next.0 → 14.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/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/mdc-autocomplete/autocomplete-origin.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete.mjs +4 -4
- package/esm2020/mdc-autocomplete/module.mjs +5 -5
- package/esm2020/mdc-button/button-base.mjs +24 -21
- package/esm2020/mdc-button/button.mjs +9 -9
- package/esm2020/mdc-button/fab.mjs +18 -18
- package/esm2020/mdc-button/icon-button.mjs +11 -13
- package/esm2020/mdc-button/module.mjs +5 -5
- package/esm2020/mdc-card/card.mjs +43 -43
- package/esm2020/mdc-card/module.mjs +5 -5
- package/esm2020/mdc-checkbox/checkbox.mjs +9 -16
- package/esm2020/mdc-checkbox/module.mjs +6 -7
- package/esm2020/mdc-chips/chip-action.mjs +123 -0
- package/esm2020/mdc-chips/chip-edit-input.mjs +5 -5
- package/esm2020/mdc-chips/chip-grid.mjs +49 -99
- package/esm2020/mdc-chips/chip-icons.mjs +39 -101
- package/esm2020/mdc-chips/chip-input.mjs +6 -13
- package/esm2020/mdc-chips/chip-listbox.mjs +51 -156
- package/esm2020/mdc-chips/chip-option.mjs +84 -95
- package/esm2020/mdc-chips/chip-row.mjs +82 -90
- package/esm2020/mdc-chips/chip-set.mjs +119 -120
- package/esm2020/mdc-chips/chip.mjs +188 -180
- package/esm2020/mdc-chips/emit-event.mjs +27 -0
- package/esm2020/mdc-chips/module.mjs +8 -10
- package/esm2020/mdc-chips/testing/chip-harness.mjs +5 -1
- package/esm2020/mdc-chips/testing/chip-option-harness.mjs +2 -2
- package/esm2020/mdc-chips/testing/chip-row-harness.mjs +10 -1
- package/esm2020/mdc-core/option/index.mjs +5 -5
- package/esm2020/mdc-core/option/optgroup.mjs +4 -4
- package/esm2020/mdc-core/option/option.mjs +5 -5
- package/esm2020/mdc-core/public-api.mjs +2 -2
- package/esm2020/mdc-dialog/dialog-container.mjs +5 -5
- package/esm2020/mdc-dialog/dialog-content-directives.mjs +13 -13
- package/esm2020/mdc-dialog/dialog.mjs +4 -4
- package/esm2020/mdc-dialog/module.mjs +5 -5
- package/esm2020/mdc-form-field/directives/error.mjs +4 -4
- package/esm2020/mdc-form-field/directives/floating-label.mjs +4 -4
- package/esm2020/mdc-form-field/directives/hint.mjs +4 -4
- package/esm2020/mdc-form-field/directives/label.mjs +4 -4
- package/esm2020/mdc-form-field/directives/line-ripple.mjs +4 -4
- package/esm2020/mdc-form-field/directives/notched-outline.mjs +4 -4
- package/esm2020/mdc-form-field/directives/prefix.mjs +4 -4
- package/esm2020/mdc-form-field/directives/suffix.mjs +4 -4
- package/esm2020/mdc-form-field/form-field.mjs +21 -5
- package/esm2020/mdc-form-field/module.mjs +5 -5
- package/esm2020/mdc-input/input.mjs +5 -4
- package/esm2020/mdc-input/module.mjs +5 -5
- package/esm2020/mdc-list/action-list.mjs +5 -5
- package/esm2020/mdc-list/interactive-list-base.mjs +4 -4
- package/esm2020/mdc-list/list-base.mjs +138 -41
- package/esm2020/mdc-list/list-item-sections.mjs +138 -0
- package/esm2020/mdc-list/list-option.mjs +25 -17
- package/esm2020/mdc-list/list.mjs +24 -18
- package/esm2020/mdc-list/module.mjs +46 -23
- package/esm2020/mdc-list/nav-list.mjs +5 -5
- package/esm2020/mdc-list/public-api.mjs +3 -2
- package/esm2020/mdc-list/selection-list.mjs +8 -8
- package/esm2020/mdc-list/subheader.mjs +27 -0
- package/esm2020/mdc-list/testing/list-harness-filters.mjs +1 -1
- package/esm2020/mdc-list/testing/list-item-harness-base.mjs +100 -12
- package/esm2020/mdc-list/testing/public-api.mjs +2 -1
- package/esm2020/mdc-list/testing/selection-list-harness.mjs +1 -5
- package/esm2020/mdc-menu/directives.mjs +7 -7
- package/esm2020/mdc-menu/menu-item.mjs +4 -4
- package/esm2020/mdc-menu/menu.mjs +4 -4
- package/esm2020/mdc-menu/module.mjs +5 -5
- package/esm2020/mdc-paginator/module.mjs +5 -5
- package/esm2020/mdc-paginator/paginator.mjs +4 -4
- package/esm2020/mdc-progress-bar/module.mjs +5 -5
- package/esm2020/mdc-progress-bar/progress-bar.mjs +4 -4
- package/esm2020/mdc-progress-spinner/module.mjs +5 -5
- package/esm2020/mdc-progress-spinner/progress-spinner.mjs +4 -4
- package/esm2020/mdc-radio/module.mjs +5 -5
- package/esm2020/mdc-radio/radio.mjs +8 -8
- package/esm2020/mdc-select/module.mjs +5 -5
- package/esm2020/mdc-select/select.mjs +9 -9
- package/esm2020/mdc-sidenav/module.mjs +5 -5
- package/esm2020/mdc-slide-toggle/module.mjs +5 -5
- package/esm2020/mdc-slide-toggle/slide-toggle.mjs +5 -5
- package/esm2020/mdc-slider/global-change-and-input-listener.mjs +4 -4
- package/esm2020/mdc-slider/module.mjs +5 -5
- package/esm2020/mdc-slider/slider.mjs +33 -12
- package/esm2020/mdc-snack-bar/module.mjs +7 -7
- package/esm2020/mdc-snack-bar/public-api.mjs +2 -2
- package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +7 -7
- package/esm2020/mdc-snack-bar/snack-bar-container.mjs +4 -4
- package/esm2020/mdc-snack-bar/snack-bar-content.mjs +10 -10
- package/esm2020/mdc-snack-bar/snack-bar.mjs +26 -12
- package/esm2020/mdc-table/cell.mjs +22 -22
- package/esm2020/mdc-table/module.mjs +5 -5
- package/esm2020/mdc-table/row.mjs +22 -22
- package/esm2020/mdc-table/table.mjs +9 -9
- package/esm2020/mdc-table/text-column.mjs +4 -4
- package/esm2020/mdc-tabs/module.mjs +10 -6
- package/esm2020/mdc-tabs/public-api.mjs +2 -2
- package/esm2020/mdc-tabs/tab-body.mjs +8 -8
- package/esm2020/mdc-tabs/tab-content.mjs +4 -4
- package/esm2020/mdc-tabs/tab-group.mjs +7 -7
- package/esm2020/mdc-tabs/tab-header.mjs +5 -5
- package/esm2020/mdc-tabs/tab-label-wrapper.mjs +4 -4
- package/esm2020/mdc-tabs/tab-label.mjs +4 -4
- package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +48 -11
- package/esm2020/mdc-tabs/tab.mjs +5 -5
- package/esm2020/mdc-tabs/testing/tab-harness-filters.mjs +1 -1
- package/esm2020/mdc-tabs/testing/tab-nav-bar-harness.mjs +13 -1
- package/esm2020/mdc-tabs/testing/tab-nav-panel-harness.mjs +27 -0
- package/esm2020/mdc-tooltip/module.mjs +5 -5
- package/esm2020/mdc-tooltip/tooltip.mjs +7 -7
- 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 +4 -4
- package/esm2020/selection/selection-module.mjs +5 -5
- 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/mdc-autocomplete.mjs +13 -13
- package/fesm2015/mdc-autocomplete.mjs.map +1 -1
- package/fesm2015/mdc-button.mjs +61 -60
- package/fesm2015/mdc-button.mjs.map +1 -1
- package/fesm2015/mdc-card.mjs +46 -46
- package/fesm2015/mdc-card.mjs.map +1 -1
- package/fesm2015/mdc-checkbox.mjs +13 -21
- package/fesm2015/mdc-checkbox.mjs.map +1 -1
- package/fesm2015/mdc-chips/testing.mjs +18 -8
- package/fesm2015/mdc-chips/testing.mjs.map +1 -1
- package/fesm2015/mdc-chips.mjs +753 -1063
- package/fesm2015/mdc-chips.mjs.map +1 -1
- package/fesm2015/mdc-core.mjs +12 -12
- package/fesm2015/mdc-core.mjs.map +1 -1
- package/fesm2015/mdc-dialog.mjs +23 -23
- package/fesm2015/mdc-dialog.mjs.map +1 -1
- package/fesm2015/mdc-form-field.mjs +50 -32
- package/fesm2015/mdc-form-field.mjs.map +1 -1
- package/fesm2015/mdc-input.mjs +8 -7
- package/fesm2015/mdc-input.mjs.map +1 -1
- package/fesm2015/mdc-list/testing.mjs +110 -18
- package/fesm2015/mdc-list/testing.mjs.map +1 -1
- package/fesm2015/mdc-list.mjs +353 -148
- package/fesm2015/mdc-list.mjs.map +1 -1
- package/fesm2015/mdc-menu.mjs +16 -16
- package/fesm2015/mdc-menu.mjs.map +1 -1
- package/fesm2015/mdc-paginator.mjs +7 -7
- package/fesm2015/mdc-paginator.mjs.map +1 -1
- package/fesm2015/mdc-progress-bar.mjs +7 -7
- package/fesm2015/mdc-progress-bar.mjs.map +1 -1
- package/fesm2015/mdc-progress-spinner.mjs +7 -7
- package/fesm2015/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2015/mdc-radio.mjs +11 -11
- package/fesm2015/mdc-radio.mjs.map +1 -1
- package/fesm2015/mdc-select.mjs +12 -12
- package/fesm2015/mdc-select.mjs.map +1 -1
- package/fesm2015/mdc-sidenav.mjs +4 -4
- package/fesm2015/mdc-sidenav.mjs.map +1 -1
- package/fesm2015/mdc-slide-toggle.mjs +8 -8
- package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2015/mdc-slider.mjs +39 -18
- package/fesm2015/mdc-slider.mjs.map +1 -1
- package/fesm2015/mdc-snack-bar.mjs +46 -41
- package/fesm2015/mdc-snack-bar.mjs.map +1 -1
- package/fesm2015/mdc-table.mjs +57 -57
- package/fesm2015/mdc-table.mjs.map +1 -1
- package/fesm2015/mdc-tabs/testing.mjs +34 -0
- package/fesm2015/mdc-tabs/testing.mjs.map +1 -1
- package/fesm2015/mdc-tabs.mjs +86 -45
- package/fesm2015/mdc-tabs.mjs.map +1 -1
- package/fesm2015/mdc-tooltip.mjs +10 -10
- package/fesm2015/mdc-tooltip.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 +19 -19
- 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/mdc-autocomplete.mjs +13 -13
- package/fesm2020/mdc-autocomplete.mjs.map +1 -1
- package/fesm2020/mdc-button.mjs +62 -61
- package/fesm2020/mdc-button.mjs.map +1 -1
- package/fesm2020/mdc-card.mjs +46 -46
- package/fesm2020/mdc-card.mjs.map +1 -1
- package/fesm2020/mdc-checkbox.mjs +13 -21
- package/fesm2020/mdc-checkbox.mjs.map +1 -1
- package/fesm2020/mdc-chips/testing.mjs +14 -1
- package/fesm2020/mdc-chips/testing.mjs.map +1 -1
- package/fesm2020/mdc-chips.mjs +733 -1068
- package/fesm2020/mdc-chips.mjs.map +1 -1
- package/fesm2020/mdc-core.mjs +12 -12
- package/fesm2020/mdc-core.mjs.map +1 -1
- package/fesm2020/mdc-dialog.mjs +23 -23
- package/fesm2020/mdc-dialog.mjs.map +1 -1
- package/fesm2020/mdc-form-field.mjs +48 -32
- package/fesm2020/mdc-form-field.mjs.map +1 -1
- package/fesm2020/mdc-input.mjs +8 -7
- package/fesm2020/mdc-input.mjs.map +1 -1
- package/fesm2020/mdc-list/testing.mjs +100 -16
- package/fesm2020/mdc-list/testing.mjs.map +1 -1
- package/fesm2020/mdc-list.mjs +351 -148
- package/fesm2020/mdc-list.mjs.map +1 -1
- package/fesm2020/mdc-menu.mjs +16 -16
- package/fesm2020/mdc-menu.mjs.map +1 -1
- package/fesm2020/mdc-paginator.mjs +7 -7
- package/fesm2020/mdc-paginator.mjs.map +1 -1
- package/fesm2020/mdc-progress-bar.mjs +7 -7
- package/fesm2020/mdc-progress-bar.mjs.map +1 -1
- package/fesm2020/mdc-progress-spinner.mjs +7 -7
- package/fesm2020/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2020/mdc-radio.mjs +11 -11
- package/fesm2020/mdc-radio.mjs.map +1 -1
- package/fesm2020/mdc-select.mjs +12 -12
- package/fesm2020/mdc-select.mjs.map +1 -1
- package/fesm2020/mdc-sidenav.mjs +4 -4
- package/fesm2020/mdc-sidenav.mjs.map +1 -1
- package/fesm2020/mdc-slide-toggle.mjs +8 -8
- package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2020/mdc-slider.mjs +39 -18
- package/fesm2020/mdc-slider.mjs.map +1 -1
- package/fesm2020/mdc-snack-bar.mjs +44 -34
- package/fesm2020/mdc-snack-bar.mjs.map +1 -1
- package/fesm2020/mdc-table.mjs +57 -57
- package/fesm2020/mdc-table.mjs.map +1 -1
- package/fesm2020/mdc-tabs/testing.mjs +37 -0
- package/fesm2020/mdc-tabs/testing.mjs.map +1 -1
- package/fesm2020/mdc-tabs.mjs +86 -45
- package/fesm2020/mdc-tabs.mjs.map +1 -1
- package/fesm2020/mdc-tooltip.mjs +10 -10
- package/fesm2020/mdc-tooltip.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 +19 -19
- package/fesm2020/selection.mjs.map +1 -1
- package/mdc-button/_button-base.scss +28 -15
- package/mdc-button/_button-theme-private.scss +35 -28
- package/mdc-button/_button-theme.scss +115 -80
- package/mdc-button/_fab-theme.scss +31 -37
- package/mdc-button/_icon-button-theme.scss +15 -22
- package/mdc-button/button-base.d.ts +7 -5
- package/mdc-button/fab.d.ts +1 -1
- package/mdc-button/icon-button.d.ts +2 -2
- package/mdc-checkbox/_checkbox-theme.scss +39 -41
- package/mdc-checkbox/checkbox.d.ts +0 -6
- package/mdc-checkbox/module.d.ts +2 -3
- package/mdc-chips/_chips-theme.scss +53 -53
- package/mdc-chips/chip-action.d.ts +40 -0
- package/mdc-chips/chip-grid.d.ts +6 -24
- package/mdc-chips/chip-icons.d.ts +14 -37
- package/mdc-chips/chip-listbox.d.ts +4 -40
- package/mdc-chips/chip-option.d.ts +15 -11
- package/mdc-chips/chip-row.d.ts +13 -28
- package/mdc-chips/chip-set.d.ts +25 -42
- package/mdc-chips/chip.d.ts +37 -36
- package/mdc-chips/emit-event.d.ts +16 -0
- package/mdc-chips/module.d.ts +13 -12
- package/mdc-chips/testing/chip-harness.d.ts +1 -0
- package/mdc-chips/testing/chip-row-harness.d.ts +4 -0
- package/mdc-core/option/_option-theme.scss +3 -3
- package/mdc-core/option/option.d.ts +3 -3
- package/mdc-core/public-api.d.ts +1 -1
- package/mdc-form-field/_form-field-subscript.scss +11 -0
- package/mdc-form-field/form-field.d.ts +12 -1
- package/mdc-helpers/_focus-indicators.scss +15 -3
- package/mdc-list/_interactive-list-theme.scss +17 -11
- package/mdc-list/_list-option-theme.scss +2 -2
- package/mdc-list/_list-theme.scss +7 -3
- package/mdc-list/list-base.d.ts +56 -11
- package/mdc-list/list-item-sections.d.ts +77 -0
- package/mdc-list/list-option.d.ts +11 -8
- package/mdc-list/list.d.ts +6 -2
- package/mdc-list/module.d.ts +7 -5
- package/mdc-list/public-api.d.ts +2 -1
- package/mdc-list/subheader.d.ts +9 -0
- package/mdc-list/testing/list-harness-filters.d.ts +8 -0
- package/mdc-list/testing/list-item-harness-base.d.ts +36 -3
- package/mdc-list/testing/public-api.d.ts +1 -1
- package/mdc-list/testing/selection-list-harness.d.ts +0 -2
- package/mdc-radio/_radio-theme.scss +0 -6
- package/mdc-select/_select-theme.scss +6 -27
- package/mdc-slider/slider.d.ts +13 -1
- package/mdc-snack-bar/module.d.ts +1 -1
- package/mdc-snack-bar/public-api.d.ts +1 -1
- package/mdc-snack-bar/simple-snack-bar.d.ts +4 -4
- package/mdc-snack-bar/snack-bar.d.ts +17 -5
- package/mdc-table/_table-theme.scss +1 -1
- package/mdc-tabs/_tabs-common.scss +8 -1
- package/mdc-tabs/_tabs-theme.scss +8 -55
- package/mdc-tabs/module.d.ts +1 -1
- package/mdc-tabs/public-api.d.ts +1 -1
- package/mdc-tabs/tab-nav-bar/tab-nav-bar.d.ts +11 -0
- package/mdc-tabs/testing/tab-harness-filters.d.ts +3 -0
- package/mdc-tabs/testing/tab-nav-bar-harness.d.ts +3 -0
- package/mdc-tabs/testing/tab-nav-panel-harness.d.ts +23 -0
- package/mdc-theming/prebuilt/deeppurple-amber.css +1 -0
- package/mdc-theming/prebuilt/indigo-pink.css +1 -1
- package/mdc-theming/prebuilt/pink-bluegrey.css +1 -0
- package/mdc-theming/prebuilt/purple-green.css +1 -0
- package/mdc-tooltip/_tooltip-theme.scss +1 -1
- package/package.json +16 -2
- package/esm2020/mdc-chips/grid-focus-key-manager.mjs +0 -21
- package/esm2020/mdc-chips/grid-key-manager.mjs +0 -218
- package/esm2020/mdc-list/list-styling.mjs +0 -92
- package/mdc-chips/grid-focus-key-manager.d.ts +0 -28
- package/mdc-chips/grid-key-manager.d.ts +0 -116
- package/mdc-list/list-styling.d.ts +0 -40
package/mdc-chips/chip-set.d.ts
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
9
9
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
10
10
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, QueryList } from '@angular/core';
|
|
11
11
|
import { HasTabIndex } from '@angular/material-experimental/mdc-core';
|
|
12
|
-
import {
|
|
12
|
+
import { MDCChipSetFoundation, MDCChipSetAdapter } from '@material/chips';
|
|
13
13
|
import { Observable, Subject } from 'rxjs';
|
|
14
14
|
import { MatChip, MatChipEvent } from './chip';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
@@ -28,15 +28,10 @@ declare const _MatChipSetMixinBase: import("@angular/material-experimental/mdc-c
|
|
|
28
28
|
* Extended by MatChipListbox and MatChipGrid for different interaction patterns.
|
|
29
29
|
*/
|
|
30
30
|
export declare class MatChipSet extends _MatChipSetMixinBase implements AfterContentInit, AfterViewInit, HasTabIndex, OnDestroy {
|
|
31
|
-
|
|
31
|
+
private _liveAnnouncer;
|
|
32
|
+
private _document;
|
|
33
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
32
34
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
33
|
-
protected _dir: Directionality;
|
|
34
|
-
/** Subscription to remove changes in chips. */
|
|
35
|
-
private _chipRemoveSubscription;
|
|
36
|
-
/** Subscription to destroyed events in chips. */
|
|
37
|
-
private _chipDestroyedSubscription;
|
|
38
|
-
/** Subscription to chip interactions. */
|
|
39
|
-
private _chipInteractionSubscription;
|
|
40
35
|
/**
|
|
41
36
|
* When a chip is destroyed, we store the index of the destroyed chip until the chips
|
|
42
37
|
* query list notifies about the update. This is necessary because we cannot determine an
|
|
@@ -44,18 +39,18 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
|
|
|
44
39
|
*/
|
|
45
40
|
protected _lastDestroyedChipIndex: number | null;
|
|
46
41
|
/** The MDC foundation containing business logic for MDC chip-set. */
|
|
47
|
-
protected _chipSetFoundation:
|
|
42
|
+
protected _chipSetFoundation: MDCChipSetFoundation;
|
|
48
43
|
/** Subject that emits when the component has been destroyed. */
|
|
49
44
|
protected _destroyed: Subject<void>;
|
|
45
|
+
/** Combined stream of all of the child chips' remove events. */
|
|
46
|
+
get chipDestroyedChanges(): Observable<MatChipEvent>;
|
|
50
47
|
/**
|
|
51
48
|
* Implementation of the MDC chip-set adapter interface.
|
|
52
49
|
* These methods are called by the chip set foundation.
|
|
53
50
|
*/
|
|
54
|
-
protected _chipSetAdapter:
|
|
51
|
+
protected _chipSetAdapter: MDCChipSetAdapter;
|
|
55
52
|
/** The aria-describedby attribute on the chip list for improved a11y. */
|
|
56
53
|
_ariaDescribedby: string;
|
|
57
|
-
/** Uid of the chip set */
|
|
58
|
-
_uid: string;
|
|
59
54
|
/**
|
|
60
55
|
* Map from class to whether the class is enabled.
|
|
61
56
|
* Enabled classes are set on the MDC chip-set div.
|
|
@@ -75,15 +70,9 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
|
|
|
75
70
|
private _role;
|
|
76
71
|
/** Whether any of the chips inside of this chip-set has focus. */
|
|
77
72
|
get focused(): boolean;
|
|
78
|
-
/** Combined stream of all of the child chips' remove events. */
|
|
79
|
-
get chipRemoveChanges(): Observable<MatChipEvent>;
|
|
80
|
-
/** Combined stream of all of the child chips' remove events. */
|
|
81
|
-
get chipDestroyedChanges(): Observable<MatChipEvent>;
|
|
82
|
-
/** Combined stream of all of the child chips' interaction events. */
|
|
83
|
-
get chipInteractionChanges(): Observable<string>;
|
|
84
73
|
/** The chips that are part of this chip set. */
|
|
85
74
|
_chips: QueryList<MatChip>;
|
|
86
|
-
constructor(
|
|
75
|
+
constructor(_liveAnnouncer: LiveAnnouncer, _document: any, _elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef);
|
|
87
76
|
ngAfterViewInit(): void;
|
|
88
77
|
ngAfterContentInit(): void;
|
|
89
78
|
ngOnDestroy(): void;
|
|
@@ -91,22 +80,6 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
|
|
|
91
80
|
protected _hasFocusedChip(): boolean;
|
|
92
81
|
/** Syncs the chip-set's state with the individual chips. */
|
|
93
82
|
protected _syncChipsState(): void;
|
|
94
|
-
/** Sets whether the given CSS class should be applied to the MDC chip. */
|
|
95
|
-
protected _setMdcClass(cssClass: string, active: boolean): void;
|
|
96
|
-
/** Adapter method that returns true if the chip set has the given MDC class. */
|
|
97
|
-
protected _hasMdcClass(className: string): any;
|
|
98
|
-
/** Updates subscriptions to chip events. */
|
|
99
|
-
private _resetChips;
|
|
100
|
-
/** Subscribes to events on the child chips. */
|
|
101
|
-
protected _subscribeToChipEvents(): void;
|
|
102
|
-
/** Subscribes to chip removal events. */
|
|
103
|
-
private _listenToChipsRemove;
|
|
104
|
-
/** Subscribes to chip destroyed events. */
|
|
105
|
-
private _listenToChipsDestroyed;
|
|
106
|
-
/** Subscribes to chip interaction events. */
|
|
107
|
-
private _listenToChipsInteraction;
|
|
108
|
-
/** Unsubscribes from all chip events. */
|
|
109
|
-
protected _dropSubscriptions(): void;
|
|
110
83
|
/** Dummy method for subclasses to override. Base chip set cannot be focused. */
|
|
111
84
|
focus(): void;
|
|
112
85
|
/**
|
|
@@ -119,12 +92,22 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
|
|
|
119
92
|
/** Checks whether an event comes from inside a chip element. */
|
|
120
93
|
protected _originatesFromChip(event: Event): boolean;
|
|
121
94
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
95
|
+
* Removes the `tabindex` from the chip grid and resets it back afterwards, allowing the
|
|
96
|
+
* user to tab out of it. This prevents the grid from capturing focus and redirecting
|
|
97
|
+
* it back to the first chip, creating a focus trap, if it user tries to tab away.
|
|
98
|
+
*/
|
|
99
|
+
protected _allowFocusEscape(): void;
|
|
100
|
+
/**
|
|
101
|
+
* Gets a stream of events from all the chips within the set.
|
|
102
|
+
* The stream will automatically incorporate any newly-added chips.
|
|
124
103
|
*/
|
|
125
|
-
protected
|
|
126
|
-
|
|
127
|
-
|
|
104
|
+
protected _getChipStream<T, C extends MatChip = MatChip>(mappingFunction: (chip: C) => Observable<T>): Observable<T>;
|
|
105
|
+
protected _checkForClassInHierarchy(event: Event, className: string): boolean;
|
|
106
|
+
private _chipFoundation;
|
|
107
|
+
private _handleChipAnimation;
|
|
108
|
+
private _handleChipInteraction;
|
|
109
|
+
private _handleChipNavigation;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipSet, never>;
|
|
128
111
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": "disabled"; "role": "role"; }, {}, ["_chips"], ["*"]>;
|
|
129
112
|
}
|
|
130
113
|
export {};
|
package/mdc-chips/chip.d.ts
CHANGED
|
@@ -7,25 +7,19 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Directionality } from '@angular/cdk/bidi';
|
|
9
9
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
10
|
-
import {
|
|
10
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
11
11
|
import { CanColor, CanDisable, CanDisableRipple, HasTabIndex, MatRipple, RippleGlobalOptions } from '@angular/material-experimental/mdc-core';
|
|
12
|
-
import {
|
|
12
|
+
import { MDCChipFoundation, MDCChipAdapter, MDCChipActionType, MDCChipActionFoundation, ActionInteractionEvent } from '@material/chips';
|
|
13
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
13
14
|
import { Subject } from 'rxjs';
|
|
14
15
|
import { MatChipAvatar, MatChipTrailingIcon, MatChipRemove } from './chip-icons';
|
|
16
|
+
import { MatChipAction } from './chip-action';
|
|
15
17
|
import * as i0 from "@angular/core";
|
|
16
18
|
/** Represents an event fired on an individual `mat-chip`. */
|
|
17
19
|
export interface MatChipEvent {
|
|
18
20
|
/** The chip the event was fired on. */
|
|
19
21
|
chip: MatChip;
|
|
20
22
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Directive to add MDC CSS to non-basic chips.
|
|
23
|
-
* @docs-private
|
|
24
|
-
*/
|
|
25
|
-
export declare class MatChipCssInternalOnly {
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipCssInternalOnly, never>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipCssInternalOnly, "mat-chip, mat-chip-option, mat-chip-row, [mat-chip], [mat-chip-option], [mat-chip-row]", never, {}, {}, never>;
|
|
28
|
-
}
|
|
29
23
|
/**
|
|
30
24
|
* Boilerplate for applying mixins to MatChip.
|
|
31
25
|
* @docs-private
|
|
@@ -41,35 +35,42 @@ declare const _MatChipMixinBase: import("@angular/material-experimental/mdc-core
|
|
|
41
35
|
*
|
|
42
36
|
* Extended by MatChipOption and MatChipRow for different interaction patterns.
|
|
43
37
|
*/
|
|
44
|
-
export declare class MatChip extends _MatChipMixinBase implements
|
|
38
|
+
export declare class MatChip extends _MatChipMixinBase implements AfterViewInit, CanColor, CanDisableRipple, CanDisable, HasTabIndex, OnDestroy {
|
|
45
39
|
_changeDetectorRef: ChangeDetectorRef;
|
|
46
40
|
protected _ngZone: NgZone;
|
|
41
|
+
private _focusMonitor;
|
|
47
42
|
private _dir;
|
|
48
43
|
private _globalRippleOptions?;
|
|
44
|
+
protected _document: Document;
|
|
49
45
|
/** Whether the ripple is centered on the chip. */
|
|
50
46
|
readonly _isRippleCentered = false;
|
|
51
47
|
/** Emits when the chip is focused. */
|
|
52
48
|
readonly _onFocus: Subject<MatChipEvent>;
|
|
53
49
|
/** Emits when the chip is blurred. */
|
|
54
50
|
readonly _onBlur: Subject<MatChipEvent>;
|
|
55
|
-
readonly REMOVE_ICON_HANDLED_KEYS: ReadonlySet<number>;
|
|
56
51
|
/** Whether this chip is a basic (unstyled) chip. */
|
|
57
52
|
readonly _isBasicChip: boolean;
|
|
53
|
+
/** Role for the root of the chip. */
|
|
54
|
+
role: string | null;
|
|
58
55
|
/** Whether the chip has focus. */
|
|
59
56
|
protected _hasFocusInternal: boolean;
|
|
57
|
+
/** Whether moving focus into the chip is pending. */
|
|
58
|
+
private _pendingFocus;
|
|
60
59
|
/** Whether animations for the chip are enabled. */
|
|
61
60
|
_animationsDisabled: boolean;
|
|
62
|
-
_handleTransitionEnd(event: TransitionEvent): void;
|
|
63
61
|
_hasFocus(): boolean;
|
|
64
|
-
/** Default unique id for the chip. */
|
|
65
|
-
private _uniqueId;
|
|
66
62
|
/** A unique id for the chip. If none is supplied, it will be auto-generated. */
|
|
67
63
|
id: string;
|
|
64
|
+
/** ARIA label for the content of the chip. */
|
|
65
|
+
ariaLabel: string | null;
|
|
68
66
|
get disabled(): boolean;
|
|
69
67
|
set disabled(value: BooleanInput);
|
|
70
68
|
protected _disabled: boolean;
|
|
71
69
|
private _textElement;
|
|
72
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* The value of the chip. Defaults to the content inside
|
|
72
|
+
* the `mat-mdc-chip-action-label` element.
|
|
73
|
+
*/
|
|
73
74
|
get value(): any;
|
|
74
75
|
set value(value: any);
|
|
75
76
|
protected _value: any;
|
|
@@ -85,14 +86,12 @@ export declare class MatChip extends _MatChipMixinBase implements AfterContentIn
|
|
|
85
86
|
get highlighted(): boolean;
|
|
86
87
|
set highlighted(value: BooleanInput);
|
|
87
88
|
protected _highlighted: boolean;
|
|
88
|
-
/** Emitted when the user interacts with the chip. */
|
|
89
|
-
readonly interaction: EventEmitter<string>;
|
|
90
|
-
/** Emitted when the chip is destroyed. */
|
|
91
|
-
readonly destroyed: EventEmitter<MatChipEvent>;
|
|
92
89
|
/** Emitted when a chip is to be removed. */
|
|
93
90
|
readonly removed: EventEmitter<MatChipEvent>;
|
|
91
|
+
/** Emitted when the chip is destroyed. */
|
|
92
|
+
readonly destroyed: EventEmitter<MatChipEvent>;
|
|
94
93
|
/** The MDC foundation containing business logic for MDC chip. */
|
|
95
|
-
_chipFoundation:
|
|
94
|
+
_chipFoundation: MDCChipFoundation;
|
|
96
95
|
/** The unstyled chip selector for this component. */
|
|
97
96
|
protected basicChipAttrName: string;
|
|
98
97
|
/** The chip's leading icon. */
|
|
@@ -103,17 +102,16 @@ export declare class MatChip extends _MatChipMixinBase implements AfterContentIn
|
|
|
103
102
|
removeIcon: MatChipRemove;
|
|
104
103
|
/** Reference to the MatRipple instance of the chip. */
|
|
105
104
|
ripple: MatRipple;
|
|
105
|
+
/** Action receiving the primary set of user interactions. */
|
|
106
|
+
primaryAction: MatChipAction;
|
|
106
107
|
/**
|
|
107
108
|
* Implementation of the MDC chip adapter interface.
|
|
108
109
|
* These methods are called by the chip foundation.
|
|
109
110
|
*/
|
|
110
|
-
protected _chipAdapter:
|
|
111
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef
|
|
112
|
-
ngAfterContentInit(): void;
|
|
111
|
+
protected _chipAdapter: MDCChipAdapter;
|
|
112
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, _dir: Directionality, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
|
|
113
113
|
ngAfterViewInit(): void;
|
|
114
114
|
ngOnDestroy(): void;
|
|
115
|
-
/** Sets up the remove icon chip foundation, and subscribes to remove icon events. */
|
|
116
|
-
private _initRemoveIcon;
|
|
117
115
|
/**
|
|
118
116
|
* Allows for programmatic removal of the chip.
|
|
119
117
|
*
|
|
@@ -122,17 +120,20 @@ export declare class MatChip extends _MatChipMixinBase implements AfterContentIn
|
|
|
122
120
|
remove(): void;
|
|
123
121
|
/** Sets whether the given CSS class should be applied to the MDC chip. */
|
|
124
122
|
private _setMdcClass;
|
|
125
|
-
/** Forwards interaction events to the MDC chip foundation. */
|
|
126
|
-
_handleInteraction(event: MouseEvent | KeyboardEvent | FocusEvent): void;
|
|
127
123
|
/** Whether or not the ripple should be disabled. */
|
|
128
124
|
_isRippleDisabled(): boolean;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
125
|
+
_getAction(type: MDCChipActionType): MDCChipActionFoundation | undefined;
|
|
126
|
+
_getFoundation(): MDCChipFoundation;
|
|
127
|
+
_hasTrailingIcon(): boolean;
|
|
128
|
+
/** Allows for programmatic focusing of the chip. */
|
|
129
|
+
focus(): void;
|
|
130
|
+
/** Overridden by MatChipOption. */
|
|
131
|
+
protected _onChipInteraction(event: ActionInteractionEvent): void;
|
|
132
|
+
private _handleActionInteraction;
|
|
133
|
+
private _handleActionNavigation;
|
|
134
|
+
private _handleTransitionend;
|
|
135
|
+
private _handleAnimationend;
|
|
136
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatChip, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
137
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, mat-chip", ["matChip"], { "color": "color"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "role": "role"; "id": "id"; "ariaLabel": "aria-label"; "disabled": "disabled"; "value": "value"; "removable": "removable"; "highlighted": "highlighted"; }, { "removed": "removed"; "destroyed": "destroyed"; }, ["leadingIcon", "trailingIcon", "removeIcon"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"]>;
|
|
137
138
|
}
|
|
138
139
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Emits a custom event from an element.
|
|
10
|
+
* @param element Element from which to emit the event.
|
|
11
|
+
* @param _document Document that the element is placed in.
|
|
12
|
+
* @param eventName Name of the event.
|
|
13
|
+
* @param data Data attached to the event.
|
|
14
|
+
* @param shouldBubble Whether the event should bubble.
|
|
15
|
+
*/
|
|
16
|
+
export declare function emitCustomEvent<T>(element: HTMLElement, _document: Document, eventName: string, data: T, shouldBubble: boolean): void;
|
package/mdc-chips/module.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./chip";
|
|
3
|
-
import * as i2 from "./chip
|
|
4
|
-
import * as i3 from "./chip-
|
|
5
|
-
import * as i4 from "./chip-
|
|
6
|
-
import * as i5 from "./chip-
|
|
7
|
-
import * as i6 from "./chip-
|
|
8
|
-
import * as i7 from "./chip-
|
|
9
|
-
import * as i8 from "./chip-
|
|
10
|
-
import * as i9 from "./chip-
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@angular/
|
|
2
|
+
import * as i1 from "./chip-action";
|
|
3
|
+
import * as i2 from "./chip";
|
|
4
|
+
import * as i3 from "./chip-icons";
|
|
5
|
+
import * as i4 from "./chip-edit-input";
|
|
6
|
+
import * as i5 from "./chip-grid";
|
|
7
|
+
import * as i6 from "./chip-input";
|
|
8
|
+
import * as i7 from "./chip-listbox";
|
|
9
|
+
import * as i8 from "./chip-option";
|
|
10
|
+
import * as i9 from "./chip-row";
|
|
11
|
+
import * as i10 from "./chip-set";
|
|
12
|
+
import * as i11 from "@angular/material-experimental/mdc-core";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
13
14
|
export declare class MatChipsModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatChipsModule, [typeof i1.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatChipsModule, [typeof i1.MatChipAction, typeof i2.MatChip, typeof i3.MatChipAvatar, typeof i4.MatChipEditInput, typeof i5.MatChipGrid, typeof i6.MatChipInput, typeof i7.MatChipListbox, typeof i8.MatChipOption, typeof i3.MatChipRemove, typeof i9.MatChipRow, typeof i10.MatChipSet, typeof i3.MatChipTrailingIcon], [typeof i11.MatCommonModule, typeof i12.CommonModule, typeof i11.MatRippleModule], [typeof i11.MatCommonModule, typeof i2.MatChip, typeof i3.MatChipAvatar, typeof i4.MatChipEditInput, typeof i5.MatChipGrid, typeof i6.MatChipInput, typeof i7.MatChipListbox, typeof i8.MatChipOption, typeof i3.MatChipRemove, typeof i9.MatChipRow, typeof i10.MatChipSet, typeof i3.MatChipTrailingIcon]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatChipsModule>;
|
|
17
18
|
}
|
|
@@ -11,6 +11,7 @@ import { ChipAvatarHarnessFilters, ChipHarnessFilters, ChipRemoveHarnessFilters
|
|
|
11
11
|
import { MatChipRemoveHarness } from './chip-remove-harness';
|
|
12
12
|
/** Harness for interacting with a mat-chip in tests. */
|
|
13
13
|
export declare class MatChipHarness extends ContentContainerComponentHarness {
|
|
14
|
+
protected _primaryAction: import("@angular/cdk/testing").AsyncFactoryFn<import("@angular/cdk/testing").TestElement>;
|
|
14
15
|
static hostSelector: string;
|
|
15
16
|
/**
|
|
16
17
|
* Gets a `HarnessPredicate` that can be used to search for a chip with specific attributes.
|
|
@@ -15,4 +15,8 @@ export declare class MatChipRowHarness extends MatChipHarness {
|
|
|
15
15
|
* Gets a `HarnessPredicate` that can be used to search for a chip row with specific attributes.
|
|
16
16
|
*/
|
|
17
17
|
static with<T extends typeof MatChipHarness>(this: T, options?: ChipRowHarnessFilters): HarnessPredicate<InstanceType<T>>;
|
|
18
|
+
/** Whether the chip is editable. */
|
|
19
|
+
isEditable(): Promise<boolean>;
|
|
20
|
+
/** Whether the chip is currently being edited. */
|
|
21
|
+
isEditing(): Promise<boolean>;
|
|
18
22
|
}
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
theming.get-typography-config($config-or-theme));
|
|
56
56
|
|
|
57
57
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
58
|
-
// MDC uses the `subtitle1` level for list items, but
|
|
59
|
-
//
|
|
60
|
-
.mat-mdc-option
|
|
58
|
+
// MDC uses the `subtitle1` level for list items, but
|
|
59
|
+
// the spec shows `body1` as the correct level.
|
|
60
|
+
.mat-mdc-option {
|
|
61
61
|
@include mdc-typography.typography(body1, $query: mdc-helpers.$mat-typography-styles-query);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -12,8 +12,8 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
/**
|
|
13
13
|
* Single option inside of a `<mat-select>` element.
|
|
14
14
|
*/
|
|
15
|
-
export declare class MatOption extends _MatOptionBase {
|
|
15
|
+
export declare class MatOption<T = any> extends _MatOptionBase<T> {
|
|
16
16
|
constructor(element: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, parent: MatOptionParentComponent, group: MatOptgroup);
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatOption
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatOption
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatOption<any>, [null, null, { optional: true; }, { optional: true; }]>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatOption<any>, "mat-option", ["matOption"], {}, {}, never, ["*"]>;
|
|
19
19
|
}
|
package/mdc-core/public-api.d.ts
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
export * from './option/index';
|
|
9
|
-
export { AnimationCurves, AnimationDurations, CanColor, CanDisable, CanDisableRipple, CanUpdateErrorState, DateAdapter, defaultRippleAnimationConfig, ErrorStateMatcher, GranularSanityChecks, HasInitialized, HasTabIndex, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_NATIVE_DATE_FORMATS, MAT_OPTGROUP, MAT_RIPPLE_GLOBAL_OPTIONS, MatCommonModule, MatDateFormats, MATERIAL_SANITY_CHECKS,
|
|
9
|
+
export { AnimationCurves, AnimationDurations, CanColor, CanDisable, CanDisableRipple, CanUpdateErrorState, DateAdapter, defaultRippleAnimationConfig, ErrorStateMatcher, GranularSanityChecks, HasInitialized, HasTabIndex, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_NATIVE_DATE_FORMATS, MAT_OPTGROUP, MAT_RIPPLE_GLOBAL_OPTIONS, MatCommonModule, MatDateFormats, MATERIAL_SANITY_CHECKS, MatNativeDateModule, MatPseudoCheckbox, MatPseudoCheckboxModule, MatPseudoCheckboxState, MatRipple, MatRippleModule, mixinColor, mixinDisabled, mixinDisableRipple, mixinErrorState, mixinInitialized, mixinTabIndex, NativeDateAdapter, NativeDateModule, RippleAnimationConfig, RippleConfig, RippleGlobalOptions, RippleRef, RippleRenderer, RippleState, RippleTarget, SanityChecks, setLines, ShowOnDirtyErrorStateMatcher, ThemePalette, VERSION, _AbstractConstructor, _Constructor, } from '@angular/material/core';
|
|
@@ -23,12 +23,23 @@
|
|
|
23
23
|
padding: 0 mdc-textfield-variables.$padding-horizontal;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
.mat-mdc-form-field-subscript-dynamic-size {
|
|
27
|
+
.mat-mdc-form-field-hint-wrapper,
|
|
28
|
+
.mat-mdc-form-field-error-wrapper {
|
|
29
|
+
position: static;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
26
33
|
.mat-mdc-form-field-bottom-align::before {
|
|
27
34
|
content: '';
|
|
28
35
|
display: inline-block;
|
|
29
36
|
height: 16px;
|
|
30
37
|
}
|
|
31
38
|
|
|
39
|
+
.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before {
|
|
40
|
+
content: unset;
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
.mat-mdc-form-field-hint-end {
|
|
33
44
|
order: 1;
|
|
34
45
|
}
|
|
@@ -25,6 +25,8 @@ import * as i0 from "@angular/core";
|
|
|
25
25
|
export declare type FloatLabelType = 'always' | 'auto';
|
|
26
26
|
/** Possible appearance styles for the form field. */
|
|
27
27
|
export declare type MatFormFieldAppearance = 'fill' | 'outline';
|
|
28
|
+
/** Behaviors for how the subscript height is set. */
|
|
29
|
+
export declare type SubscriptSizing = 'fixed' | 'dynamic';
|
|
28
30
|
/**
|
|
29
31
|
* Represents the default options for the form field that can be configured
|
|
30
32
|
* using the `MAT_FORM_FIELD_DEFAULT_OPTIONS` injection token.
|
|
@@ -33,6 +35,7 @@ export interface MatFormFieldDefaultOptions {
|
|
|
33
35
|
appearance?: MatFormFieldAppearance;
|
|
34
36
|
hideRequiredMarker?: boolean;
|
|
35
37
|
floatLabel?: FloatLabelType;
|
|
38
|
+
subscriptSizing?: SubscriptSizing;
|
|
36
39
|
}
|
|
37
40
|
/**
|
|
38
41
|
* Injection token that can be used to configure the
|
|
@@ -76,6 +79,14 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
|
|
|
76
79
|
get appearance(): MatFormFieldAppearance;
|
|
77
80
|
set appearance(value: MatFormFieldAppearance);
|
|
78
81
|
private _appearance;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the form field should reserve space for one line of hint/error text (default)
|
|
84
|
+
* or to have the spacing grow from 0px as needed based on the size of the hint/error content.
|
|
85
|
+
* Note that when using dynamic sizing, layout shifts will occur when hint/error text changes.
|
|
86
|
+
*/
|
|
87
|
+
get subscriptSizing(): SubscriptSizing;
|
|
88
|
+
set subscriptSizing(value: SubscriptSizing);
|
|
89
|
+
private _subscriptSizing;
|
|
79
90
|
/** Text for the form field hint. */
|
|
80
91
|
get hintLabel(): string;
|
|
81
92
|
set hintLabel(value: string);
|
|
@@ -185,5 +196,5 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
|
|
|
185
196
|
/** Checks whether the form field is attached to the DOM. */
|
|
186
197
|
private _isAttachedToDom;
|
|
187
198
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormField, [null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
188
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": "hideRequiredMarker"; "color": "color"; "floatLabel": "floatLabel"; "appearance": "appearance"; "hintLabel": "hintLabel"; }, {}, ["_labelChildNonStatic", "_labelChildStatic", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']"]>;
|
|
199
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": "hideRequiredMarker"; "color": "color"; "floatLabel": "floatLabel"; "appearance": "appearance"; "subscriptSizing": "subscriptSizing"; "hintLabel": "hintLabel"; }, {}, ["_labelChildNonStatic", "_labelChildStatic", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']"]>;
|
|
189
200
|
}
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
pointer-events: none;
|
|
29
29
|
border: $border-width $border-style transparent;
|
|
30
30
|
border-radius: $border-radius;
|
|
31
|
+
|
|
32
|
+
.cdk-high-contrast-active & {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
// By default, all focus indicators are flush with the bounding box of their
|
|
@@ -38,7 +42,7 @@
|
|
|
38
42
|
.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,
|
|
39
43
|
.mat-mdc-raised-button .mat-mdc-focus-indicator::before,
|
|
40
44
|
.mdc-fab .mat-mdc-focus-indicator::before,
|
|
41
|
-
.mat-mdc-
|
|
45
|
+
.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before {
|
|
42
46
|
margin: -($border-width + 2px);
|
|
43
47
|
}
|
|
44
48
|
|
|
@@ -46,11 +50,16 @@
|
|
|
46
50
|
margin: -($border-width + 3px);
|
|
47
51
|
}
|
|
48
52
|
|
|
49
|
-
.mat-mdc-focus-indicator.mat-mdc-chip-remove::before
|
|
50
|
-
.mat-mdc-focus-indicator.mat-mdc-chip-row-focusable-text-content::before {
|
|
53
|
+
.mat-mdc-focus-indicator.mat-mdc-chip-remove::before {
|
|
51
54
|
margin: -$border-width;
|
|
52
55
|
}
|
|
53
56
|
|
|
57
|
+
// MDC sets a padding a on the button which stretches out the focus indicator.
|
|
58
|
+
.mat-mdc-focus-indicator.mat-mdc-chip-remove::before {
|
|
59
|
+
left: 8px;
|
|
60
|
+
right: 8px;
|
|
61
|
+
}
|
|
62
|
+
|
|
54
63
|
.mat-mdc-focus-indicator.mat-mdc-tab::before,
|
|
55
64
|
.mat-mdc-focus-indicator.mat-mdc-tab-link::before {
|
|
56
65
|
margin: 5px;
|
|
@@ -74,6 +83,9 @@
|
|
|
74
83
|
.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before,
|
|
75
84
|
.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before,
|
|
76
85
|
|
|
86
|
+
// In the chips the individual actions have focus so we target a different element.
|
|
87
|
+
.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before,
|
|
88
|
+
|
|
77
89
|
// For buttons and list items, render the focus indicator when the parent
|
|
78
90
|
// button or list item is focused.
|
|
79
91
|
.mat-mdc-button-base:focus .mat-mdc-focus-indicator::before,
|
|
@@ -14,21 +14,27 @@
|
|
|
14
14
|
background: $active-base-color;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
opacity: mdc-ripple.states-opacity($selected-color, selected);
|
|
17
|
+
&:not(:focus):not(.mdc-list-item--disabled):hover::before {
|
|
18
|
+
opacity: mdc-ripple.states-opacity($active-base-color, hover);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
&.mdc-list-item--selected {
|
|
22
|
+
&::before {
|
|
23
|
+
background: $selected-color;
|
|
24
|
+
opacity: mdc-ripple.states-opacity($selected-color, selected);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:not(:focus):not(.mdc-list-item--disabled):hover::before {
|
|
28
|
+
// The hover and selected opacities need to be combined to match with what the MDC
|
|
29
|
+
// ripple state would render. More details here:
|
|
30
|
+
// https://github.com/material-components/material-components-web/blob/348665978ce73694ad4518626dd70cdf5b984113/packages/mdc-ripple/_ripple-theme.scss#L450.
|
|
31
|
+
opacity: mdc-ripple.states-opacity($selected-color, hover) +
|
|
32
|
+
mdc-ripple.states-opacity($selected-color, selected);
|
|
33
|
+
}
|
|
24
34
|
}
|
|
25
|
-
}
|
|
26
35
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.mat-mdc-list-item-interactive:not(.mdc-list-item--disabled):not(.mdc-list-item--selected) {
|
|
30
|
-
&:not(:focus):hover::before {
|
|
31
|
-
opacity: mdc-ripple.states-opacity($active-base-color, hover);
|
|
36
|
+
&:focus::before {
|
|
37
|
+
opacity: mdc-ripple.states-opacity($active-base-color, focus);
|
|
32
38
|
}
|
|
33
39
|
}
|
|
34
40
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
// Mixin that overrides the selected item and checkbox colors for list options. By
|
|
7
7
|
// default, the MDC list uses the `primary` color for list items. The MDC checkbox
|
|
8
8
|
// inside list options by default uses the `primary` color too.
|
|
9
|
-
@mixin private-list-option-color-override($color) {
|
|
9
|
+
@mixin private-list-option-color-override($color, $mdcColor) {
|
|
10
10
|
& .mdc-list-item__start, & .mdc-list-item__end {
|
|
11
|
-
@include checkbox-theme.private-checkbox-styles-with-color($color);
|
|
11
|
+
@include checkbox-theme.private-checkbox-styles-with-color($color, $mdcColor);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use '@material/list/evolution-mixins' as mdc-list;
|
|
2
3
|
@use './interactive-list-theme';
|
|
3
4
|
@use './list-option-theme';
|
|
@@ -11,6 +12,9 @@
|
|
|
11
12
|
|
|
12
13
|
@mixin color($config-or-theme) {
|
|
13
14
|
$config: theming.get-color-config($config-or-theme);
|
|
15
|
+
$primary: theming.get-color-from-palette(map.get($config, primary));
|
|
16
|
+
$accent: theming.get-color-from-palette(map.get($config, accent));
|
|
17
|
+
$warn: theming.get-color-from-palette(map.get($config, warn));
|
|
14
18
|
|
|
15
19
|
// MDC's state styles are tied in with their ripple. Since we don't use the MDC
|
|
16
20
|
// ripple, we need to add the hover, focus and selected states manually.
|
|
@@ -20,13 +24,13 @@
|
|
|
20
24
|
@include mdc-list.without-ripple($query: mdc-helpers.$mat-theme-styles-query);
|
|
21
25
|
|
|
22
26
|
.mat-mdc-list-option {
|
|
23
|
-
@include list-option-theme.private-list-option-color-override(primary);
|
|
27
|
+
@include list-option-theme.private-list-option-color-override($primary, primary);
|
|
24
28
|
}
|
|
25
29
|
.mat-mdc-list-option.mat-accent {
|
|
26
|
-
@include list-option-theme.private-list-option-color-override(secondary);
|
|
30
|
+
@include list-option-theme.private-list-option-color-override($accent, secondary);
|
|
27
31
|
}
|
|
28
32
|
.mat-mdc-list-option.mat-warn {
|
|
29
|
-
@include list-option-theme.private-list-option-color-override(error);
|
|
33
|
+
@include list-option-theme.private-list-option-color-override($warn, error);
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
}
|