@angular/material-experimental 13.1.0 → 13.2.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/LICENSE +1 -1
- package/_index.scss +2 -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 +14 -7
- package/esm2020/mdc-button/button.mjs +9 -9
- package/esm2020/mdc-button/fab.mjs +18 -18
- package/esm2020/mdc-button/icon-button.mjs +7 -7
- package/esm2020/mdc-button/module.mjs +5 -5
- package/esm2020/mdc-card/card.mjs +44 -44
- package/esm2020/mdc-card/module.mjs +5 -5
- package/esm2020/mdc-checkbox/checkbox.mjs +5 -5
- package/esm2020/mdc-checkbox/module.mjs +5 -5
- 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 +46 -96
- package/esm2020/mdc-chips/chip-icons.mjs +46 -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 +189 -181
- 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 +4 -4
- 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 +4 -4
- package/esm2020/mdc-form-field/module.mjs +5 -5
- package/esm2020/mdc-input/input.mjs +4 -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 +12 -10
- 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 +96 -12
- package/esm2020/mdc-list/testing/public-api.mjs +2 -1
- 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 +5 -5
- 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 +5 -5
- package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +4 -4
- package/esm2020/mdc-snack-bar/snack-bar-container.mjs +5 -5
- package/esm2020/mdc-snack-bar/snack-bar-content.mjs +10 -10
- package/esm2020/mdc-snack-bar/snack-bar.mjs +4 -4
- 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 +7 -7
- package/esm2020/mdc-tabs/tab-content.mjs +4 -4
- package/esm2020/mdc-tabs/tab-group.mjs +6 -6
- package/esm2020/mdc-tabs/tab-header.mjs +12 -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 +47 -10
- package/esm2020/mdc-tabs/tab.mjs +4 -4
- 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 +8 -8
- 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 +40 -40
- package/fesm2015/mdc-button.mjs.map +1 -1
- package/fesm2015/mdc-card.mjs +47 -47
- package/fesm2015/mdc-card.mjs.map +1 -1
- package/fesm2015/mdc-checkbox.mjs +8 -8
- 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 +758 -1061
- package/fesm2015/mdc-chips.mjs.map +1 -1
- package/fesm2015/mdc-core.mjs +11 -11
- 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 +31 -31
- package/fesm2015/mdc-form-field.mjs.map +1 -1
- package/fesm2015/mdc-input.mjs +7 -7
- package/fesm2015/mdc-input.mjs.map +1 -1
- package/fesm2015/mdc-list/testing.mjs +104 -12
- package/fesm2015/mdc-list/testing.mjs.map +1 -1
- package/fesm2015/mdc-list.mjs +361 -154
- 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 +8 -8
- 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 +23 -23
- 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 +89 -41
- package/fesm2015/mdc-tabs.mjs.map +1 -1
- package/fesm2015/mdc-tooltip.mjs +11 -11
- 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 +48 -41
- package/fesm2020/mdc-button.mjs.map +1 -1
- package/fesm2020/mdc-card.mjs +47 -47
- package/fesm2020/mdc-card.mjs.map +1 -1
- package/fesm2020/mdc-checkbox.mjs +8 -8
- 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 +738 -1066
- package/fesm2020/mdc-chips.mjs.map +1 -1
- package/fesm2020/mdc-core.mjs +11 -11
- 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 +31 -31
- package/fesm2020/mdc-form-field.mjs.map +1 -1
- package/fesm2020/mdc-input.mjs +7 -7
- package/fesm2020/mdc-input.mjs.map +1 -1
- package/fesm2020/mdc-list/testing.mjs +96 -12
- package/fesm2020/mdc-list/testing.mjs.map +1 -1
- package/fesm2020/mdc-list.mjs +359 -154
- 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 +8 -8
- 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 +23 -23
- 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 +89 -41
- package/fesm2020/mdc-tabs.mjs.map +1 -1
- package/fesm2020/mdc-tooltip.mjs +11 -11
- 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.d.ts +0 -3
- package/mdc-button/fab.d.ts +5 -7
- package/mdc-checkbox/_checkbox-theme.scss +32 -30
- package/mdc-checkbox/checkbox.d.ts +4 -9
- package/mdc-chips/_chips-theme.scss +53 -53
- package/mdc-chips/chip-action.d.ts +40 -0
- package/mdc-chips/chip-grid.d.ts +8 -26
- package/mdc-chips/chip-icons.d.ts +14 -40
- package/mdc-chips/chip-input.d.ts +2 -4
- package/mdc-chips/chip-listbox.d.ts +7 -46
- package/mdc-chips/chip-option.d.ts +17 -15
- package/mdc-chips/chip-row.d.ts +13 -30
- package/mdc-chips/chip-set.d.ts +27 -46
- package/mdc-chips/chip.d.ts +41 -45
- 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/_core-theme.scss +47 -14
- package/mdc-core/public-api.d.ts +1 -1
- package/mdc-form-field/form-field.d.ts +1 -2
- 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 +59 -18
- package/mdc-list/list-item-sections.d.ts +77 -0
- package/mdc-list/list-option.d.ts +12 -10
- 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/selection-list.d.ts +1 -2
- 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 +34 -3
- package/mdc-list/testing/public-api.d.ts +1 -1
- package/mdc-progress-spinner/progress-spinner.d.ts +3 -6
- package/mdc-select/_select-theme.scss +6 -27
- package/mdc-slide-toggle/slide-toggle.d.ts +5 -10
- package/mdc-slider/slider.d.ts +20 -16
- package/mdc-table/_table-theme.scss +1 -1
- package/mdc-tabs/_tabs-common.scss +0 -1
- package/mdc-tabs/module.d.ts +1 -1
- package/mdc-tabs/public-api.d.ts +1 -1
- package/mdc-tabs/tab-group.d.ts +1 -2
- package/mdc-tabs/tab-header.d.ts +0 -2
- package/mdc-tabs/tab-label-wrapper.d.ts +1 -2
- package/mdc-tabs/tab-nav-bar/tab-nav-bar.d.ts +12 -3
- 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 +17 -3
- 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/fesm2020/mdc-chips.mjs
CHANGED
|
@@ -1,22 +1,173 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
2
2
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
3
3
|
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import {
|
|
5
|
+
import { Directive, Inject, Input, InjectionToken, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Attribute, Output, ContentChild, ViewChild, ContentChildren, forwardRef, Self, NgModule } from '@angular/core';
|
|
6
|
+
import * as i3$1 from '@angular/common';
|
|
7
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
6
8
|
import * as i3 from '@angular/material-experimental/mdc-core';
|
|
7
9
|
import { mixinTabIndex, mixinDisabled, mixinColor, mixinDisableRipple, MAT_RIPPLE_GLOBAL_OPTIONS, MatRipple, mixinErrorState, MatCommonModule, MatRippleModule, ErrorStateMatcher } from '@angular/material-experimental/mdc-core';
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
+
import { MDCChipPrimaryActionFoundation, MDCChipActionType, MDCChipTrailingActionFoundation, MDCChipFoundation, MDCChipActionEvents, MDCChipActionInteractionTrigger, MDCChipCssClasses, MDCChipSetFoundation, MDCChipEvents } from '@material/chips';
|
|
11
|
+
import * as i1 from '@angular/cdk/a11y';
|
|
10
12
|
import { Subject, merge } from 'rxjs';
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
14
|
-
import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
13
|
+
import { take, startWith, takeUntil, switchMap } from 'rxjs/operators';
|
|
14
|
+
import { BACKSPACE, DELETE, ENTER, TAB, hasModifierKey } from '@angular/cdk/keycodes';
|
|
15
15
|
import * as i2$1 from '@angular/forms';
|
|
16
16
|
import { NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
|
|
17
17
|
import * as i1$1 from '@angular/material-experimental/mdc-form-field';
|
|
18
18
|
import { MatFormFieldControl, MAT_FORM_FIELD } from '@angular/material-experimental/mdc-form-field';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @license
|
|
22
|
+
* Copyright Google LLC All Rights Reserved.
|
|
23
|
+
*
|
|
24
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
25
|
+
* found in the LICENSE file at https://angular.io/license
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Emits a custom event from an element.
|
|
29
|
+
* @param element Element from which to emit the event.
|
|
30
|
+
* @param _document Document that the element is placed in.
|
|
31
|
+
* @param eventName Name of the event.
|
|
32
|
+
* @param data Data attached to the event.
|
|
33
|
+
* @param shouldBubble Whether the event should bubble.
|
|
34
|
+
*/
|
|
35
|
+
function emitCustomEvent(element, _document, eventName, data, shouldBubble) {
|
|
36
|
+
let event;
|
|
37
|
+
if (typeof CustomEvent === 'function') {
|
|
38
|
+
event = new CustomEvent(eventName, { bubbles: shouldBubble, detail: data });
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
event = _document.createEvent('CustomEvent');
|
|
42
|
+
event.initCustomEvent(eventName, shouldBubble, false, data);
|
|
43
|
+
}
|
|
44
|
+
element.dispatchEvent(event);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @license
|
|
49
|
+
* Copyright Google LLC All Rights Reserved.
|
|
50
|
+
*
|
|
51
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
52
|
+
* found in the LICENSE file at https://angular.io/license
|
|
53
|
+
*/
|
|
54
|
+
const _MatChipActionMixinBase = mixinTabIndex(mixinDisabled(class {
|
|
55
|
+
}), -1);
|
|
56
|
+
/**
|
|
57
|
+
* Interactive element within a chip.
|
|
58
|
+
* @docs-private
|
|
59
|
+
*/
|
|
60
|
+
class MatChipAction extends _MatChipActionMixinBase {
|
|
61
|
+
constructor(_elementRef, _document, _changeDetectorRef) {
|
|
62
|
+
super();
|
|
63
|
+
this._elementRef = _elementRef;
|
|
64
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
65
|
+
this._adapter = {
|
|
66
|
+
focus: () => this.focus(),
|
|
67
|
+
getAttribute: (name) => this._elementRef.nativeElement.getAttribute(name),
|
|
68
|
+
setAttribute: (name, value) => {
|
|
69
|
+
// MDC tries to update the tabindex directly in the DOM when navigating using the keyboard
|
|
70
|
+
// which overrides our own handling. If we detect such a case, assign it to the same property
|
|
71
|
+
// as the Angular binding in order to maintain consistency.
|
|
72
|
+
if (name === 'tabindex') {
|
|
73
|
+
this._updateTabindex(parseInt(value));
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this._elementRef.nativeElement.setAttribute(name, value);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
removeAttribute: (name) => {
|
|
80
|
+
if (name !== 'tabindex') {
|
|
81
|
+
this._elementRef.nativeElement.removeAttribute(name);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
getElementID: () => this._elementRef.nativeElement.id,
|
|
85
|
+
emitEvent: (eventName, data) => {
|
|
86
|
+
emitCustomEvent(this._elementRef.nativeElement, this._document, eventName, data, true);
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
/** Whether the action is interactive. */
|
|
90
|
+
this.isInteractive = true;
|
|
91
|
+
this._foundation = this._createFoundation(this._adapter);
|
|
92
|
+
if (_elementRef.nativeElement.nodeName === 'BUTTON') {
|
|
93
|
+
_elementRef.nativeElement.setAttribute('type', 'button');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
_handleClick(_event) {
|
|
97
|
+
// Usually these events can't happen while the chip is disabled since the browser won't
|
|
98
|
+
// allow them which is what MDC seems to rely on, however the event can be faked in tests.
|
|
99
|
+
if (!this.disabled && this.isInteractive) {
|
|
100
|
+
this._foundation.handleClick();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
_handleKeydown(event) {
|
|
104
|
+
// Usually these events can't happen while the chip is disabled since the browser won't
|
|
105
|
+
// allow them which is what MDC seems to rely on, however the event can be faked in tests.
|
|
106
|
+
if (!this.disabled && this.isInteractive) {
|
|
107
|
+
this._foundation.handleKeydown(event);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
_createFoundation(adapter) {
|
|
111
|
+
return new MDCChipPrimaryActionFoundation(adapter);
|
|
112
|
+
}
|
|
113
|
+
ngAfterViewInit() {
|
|
114
|
+
this._foundation.init();
|
|
115
|
+
this._foundation.setDisabled(this.disabled);
|
|
116
|
+
}
|
|
117
|
+
ngOnChanges(changes) {
|
|
118
|
+
if (changes['disabled']) {
|
|
119
|
+
this._foundation.setDisabled(this.disabled);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
ngOnDestroy() {
|
|
123
|
+
this._foundation.destroy();
|
|
124
|
+
}
|
|
125
|
+
focus() {
|
|
126
|
+
this._elementRef.nativeElement.focus();
|
|
127
|
+
}
|
|
128
|
+
_getFoundation() {
|
|
129
|
+
return this._foundation;
|
|
130
|
+
}
|
|
131
|
+
_updateTabindex(value) {
|
|
132
|
+
this.tabIndex = value;
|
|
133
|
+
this._changeDetectorRef.markForCheck();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
MatChipAction.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipAction, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
137
|
+
MatChipAction.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MatChipAction, selector: "[matChipAction]", inputs: { disabled: "disabled", tabIndex: "tabIndex", isInteractive: "isInteractive" }, host: { listeners: { "click": "_handleClick($event)", "keydown": "_handleKeydown($event)" }, properties: { "class.mdc-evolution-chip__action--primary": "_getFoundation().actionType() === 1", "class.mdc-evolution-chip__action--presentational": "_getFoundation().actionType() === 1", "class.mdc-evolution-chip__action--trailing": "_getFoundation().actionType() === 2", "attr.tabindex": "(disabled || !isInteractive) ? null : tabIndex", "attr.disabled": "disabled ? '' : null", "attr.aria-disabled": "disabled" }, classAttribute: "mdc-evolution-chip__action mat-mdc-chip-action" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipAction, decorators: [{
|
|
139
|
+
type: Directive,
|
|
140
|
+
args: [{
|
|
141
|
+
selector: '[matChipAction]',
|
|
142
|
+
inputs: ['disabled', 'tabIndex'],
|
|
143
|
+
host: {
|
|
144
|
+
'class': 'mdc-evolution-chip__action mat-mdc-chip-action',
|
|
145
|
+
'[class.mdc-evolution-chip__action--primary]': `_getFoundation().actionType() === ${MDCChipActionType.PRIMARY}`,
|
|
146
|
+
// Note that while our actions are interactive, we have to add the `--presentational` class,
|
|
147
|
+
// in order to avoid some super-specific `:hover` styles from MDC.
|
|
148
|
+
'[class.mdc-evolution-chip__action--presentational]': `_getFoundation().actionType() === ${MDCChipActionType.PRIMARY}`,
|
|
149
|
+
'[class.mdc-evolution-chip__action--trailing]': `_getFoundation().actionType() === ${MDCChipActionType.TRAILING}`,
|
|
150
|
+
'[attr.tabindex]': '(disabled || !isInteractive) ? null : tabIndex',
|
|
151
|
+
'[attr.disabled]': "disabled ? '' : null",
|
|
152
|
+
'[attr.aria-disabled]': 'disabled',
|
|
153
|
+
'(click)': '_handleClick($event)',
|
|
154
|
+
'(keydown)': '_handleKeydown($event)',
|
|
155
|
+
},
|
|
156
|
+
}]
|
|
157
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
158
|
+
type: Inject,
|
|
159
|
+
args: [DOCUMENT]
|
|
160
|
+
}] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { isInteractive: [{
|
|
161
|
+
type: Input
|
|
162
|
+
}] } });
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @license
|
|
166
|
+
* Copyright Google LLC All Rights Reserved.
|
|
167
|
+
*
|
|
168
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
169
|
+
* found in the LICENSE file at https://angular.io/license
|
|
170
|
+
*/
|
|
20
171
|
/**
|
|
21
172
|
* Injection token that can be used to reference instances of `MatChipAvatar`. It serves as
|
|
22
173
|
* alternative token to the actual `MatChipAvatar` class which could cause unnecessary
|
|
@@ -28,29 +179,20 @@ const MAT_CHIP_AVATAR = new InjectionToken('MatChipAvatar');
|
|
|
28
179
|
* @docs-private
|
|
29
180
|
*/
|
|
30
181
|
class MatChipAvatar {
|
|
31
|
-
constructor(_changeDetectorRef, _elementRef) {
|
|
32
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
33
|
-
this._elementRef = _elementRef;
|
|
34
|
-
}
|
|
35
|
-
/** Sets whether the given CSS class should be applied to the leading icon. */
|
|
36
|
-
setClass(cssClass, active) {
|
|
37
|
-
this._elementRef.nativeElement.classList.toggle(cssClass, active);
|
|
38
|
-
this._changeDetectorRef.markForCheck();
|
|
39
|
-
}
|
|
40
182
|
}
|
|
41
|
-
MatChipAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
42
|
-
MatChipAvatar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0
|
|
183
|
+
MatChipAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipAvatar, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
184
|
+
MatChipAvatar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MatChipAvatar, selector: "mat-chip-avatar, [matChipAvatar]", host: { attributes: { "role": "img" }, classAttribute: "mat-mdc-chip-avatar mdc-evolution-chip__icon mdc-evolution-chip__icon--primary" }, providers: [{ provide: MAT_CHIP_AVATAR, useExisting: MatChipAvatar }], ngImport: i0 });
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipAvatar, decorators: [{
|
|
44
186
|
type: Directive,
|
|
45
187
|
args: [{
|
|
46
188
|
selector: 'mat-chip-avatar, [matChipAvatar]',
|
|
47
189
|
host: {
|
|
48
|
-
'class': 'mat-mdc-chip-avatar mdc-chip__icon mdc-chip__icon--
|
|
190
|
+
'class': 'mat-mdc-chip-avatar mdc-evolution-chip__icon mdc-evolution-chip__icon--primary',
|
|
49
191
|
'role': 'img',
|
|
50
192
|
},
|
|
51
193
|
providers: [{ provide: MAT_CHIP_AVATAR, useExisting: MatChipAvatar }],
|
|
52
194
|
}]
|
|
53
|
-
}]
|
|
195
|
+
}] });
|
|
54
196
|
/**
|
|
55
197
|
* Injection token that can be used to reference instances of `MatChipTrailingIcon`. It serves as
|
|
56
198
|
* alternative token to the actual `MatChipTrailingIcon` class which could cause unnecessary
|
|
@@ -61,79 +203,38 @@ const MAT_CHIP_TRAILING_ICON = new InjectionToken('MatChipTrailingIcon');
|
|
|
61
203
|
* Directive to add CSS classes to and configure attributes for chip trailing icon.
|
|
62
204
|
* @docs-private
|
|
63
205
|
*/
|
|
64
|
-
class MatChipTrailingIcon {
|
|
65
|
-
constructor(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
this.
|
|
72
|
-
this._adapter = {
|
|
73
|
-
focus: () => this._elementRef.nativeElement.focus(),
|
|
74
|
-
getAttribute: (name) => this._elementRef.nativeElement.getAttribute(name),
|
|
75
|
-
setAttribute: (name, value) => {
|
|
76
|
-
this._elementRef.nativeElement.setAttribute(name, value);
|
|
77
|
-
},
|
|
78
|
-
// TODO(crisbeto): there's also a `trigger` parameter that the chip isn't
|
|
79
|
-
// handling yet. Consider passing it along once MDC start using it.
|
|
80
|
-
notifyInteraction: () => {
|
|
81
|
-
// TODO(crisbeto): uncomment this code once we've inverted the
|
|
82
|
-
// dependency on `MatChip`. this._chip._notifyInteraction();
|
|
83
|
-
},
|
|
84
|
-
// TODO(crisbeto): there's also a `key` parameter that the chip isn't
|
|
85
|
-
// handling yet. Consider passing it along once MDC start using it.
|
|
86
|
-
notifyNavigation: () => {
|
|
87
|
-
// TODO(crisbeto): uncomment this code once we've inverted the
|
|
88
|
-
// dependency on `MatChip`. this._chip._notifyNavigation();
|
|
89
|
-
},
|
|
90
|
-
};
|
|
91
|
-
this._foundation = new deprecated.MDCChipTrailingActionFoundation(this._adapter);
|
|
92
|
-
}
|
|
93
|
-
ngOnDestroy() {
|
|
94
|
-
this._foundation.destroy();
|
|
95
|
-
}
|
|
96
|
-
focus() {
|
|
97
|
-
this._elementRef.nativeElement.focus();
|
|
98
|
-
}
|
|
99
|
-
/** Sets an attribute on the icon. */
|
|
100
|
-
setAttribute(name, value) {
|
|
101
|
-
this._elementRef.nativeElement.setAttribute(name, value);
|
|
206
|
+
class MatChipTrailingIcon extends MatChipAction {
|
|
207
|
+
constructor() {
|
|
208
|
+
super(...arguments);
|
|
209
|
+
/**
|
|
210
|
+
* MDC considers all trailing actions as a remove icon,
|
|
211
|
+
* but we support non-interactive trailing icons.
|
|
212
|
+
*/
|
|
213
|
+
this.isInteractive = false;
|
|
102
214
|
}
|
|
103
|
-
|
|
104
|
-
return
|
|
215
|
+
_createFoundation(adapter) {
|
|
216
|
+
return new MDCChipTrailingActionFoundation(adapter);
|
|
105
217
|
}
|
|
106
218
|
}
|
|
107
|
-
MatChipTrailingIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
108
|
-
MatChipTrailingIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0
|
|
219
|
+
MatChipTrailingIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipTrailingIcon, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
220
|
+
MatChipTrailingIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MatChipTrailingIcon, selector: "mat-chip-trailing-icon, [matChipTrailingIcon]", host: { attributes: { "aria-hidden": "true" }, classAttribute: "mat-mdc-chip-trailing-icon mdc-evolution-chip__icon mdc-evolution-chip__icon--trailing" }, providers: [{ provide: MAT_CHIP_TRAILING_ICON, useExisting: MatChipTrailingIcon }], usesInheritance: true, ngImport: i0 });
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipTrailingIcon, decorators: [{
|
|
110
222
|
type: Directive,
|
|
111
223
|
args: [{
|
|
112
224
|
selector: 'mat-chip-trailing-icon, [matChipTrailingIcon]',
|
|
113
225
|
host: {
|
|
114
|
-
'class': 'mat-mdc-chip-trailing-icon mdc-chip__icon mdc-chip__icon--trailing',
|
|
115
|
-
'tabindex': '-1',
|
|
226
|
+
'class': 'mat-mdc-chip-trailing-icon mdc-evolution-chip__icon mdc-evolution-chip__icon--trailing',
|
|
116
227
|
'aria-hidden': 'true',
|
|
117
228
|
},
|
|
118
229
|
providers: [{ provide: MAT_CHIP_TRAILING_ICON, useExisting: MatChipTrailingIcon }],
|
|
119
230
|
}]
|
|
120
|
-
}]
|
|
231
|
+
}] });
|
|
121
232
|
/**
|
|
122
233
|
* Injection token that can be used to reference instances of `MatChipRemove`. It serves as
|
|
123
234
|
* alternative token to the actual `MatChipRemove` class which could cause unnecessary
|
|
124
235
|
* retention of the class and its directive metadata.
|
|
125
236
|
*/
|
|
126
237
|
const MAT_CHIP_REMOVE = new InjectionToken('MatChipRemove');
|
|
127
|
-
/**
|
|
128
|
-
* Boilerplate for applying mixins to MatChipRemove.
|
|
129
|
-
* @docs-private
|
|
130
|
-
*/
|
|
131
|
-
class MatChipRemoveBase extends MatChipTrailingIcon {
|
|
132
|
-
constructor(elementRef) {
|
|
133
|
-
super(elementRef);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
const _MatChipRemoveMixinBase = mixinTabIndex(mixinDisabled(MatChipRemoveBase), 0);
|
|
137
238
|
/**
|
|
138
239
|
* Directive to remove the parent chip when the trailing icon is clicked or
|
|
139
240
|
* when the ENTER key is pressed on it.
|
|
@@ -149,47 +250,36 @@ const _MatChipRemoveMixinBase = mixinTabIndex(mixinDisabled(MatChipRemoveBase),
|
|
|
149
250
|
* </mat-chip>
|
|
150
251
|
* ```
|
|
151
252
|
*/
|
|
152
|
-
class MatChipRemove extends
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Emits when the user interacts with the icon.
|
|
157
|
-
* @docs-private
|
|
158
|
-
*/
|
|
159
|
-
this.interaction = new Subject();
|
|
160
|
-
if (elementRef.nativeElement.nodeName === 'BUTTON') {
|
|
161
|
-
elementRef.nativeElement.setAttribute('type', 'button');
|
|
162
|
-
}
|
|
253
|
+
class MatChipRemove extends MatChipAction {
|
|
254
|
+
_createFoundation(adapter) {
|
|
255
|
+
return new MDCChipTrailingActionFoundation(adapter);
|
|
163
256
|
}
|
|
164
|
-
/** Emits a MouseEvent when the user clicks on the remove icon. */
|
|
165
257
|
_handleClick(event) {
|
|
166
|
-
|
|
258
|
+
// Some consumers bind `click` events directly on the chip
|
|
259
|
+
// which will also pick up clicks on the remove button.
|
|
167
260
|
event.stopPropagation();
|
|
261
|
+
super._handleClick(event);
|
|
168
262
|
}
|
|
169
|
-
|
|
170
|
-
|
|
263
|
+
_handleKeydown(event) {
|
|
264
|
+
event.stopPropagation();
|
|
265
|
+
super._handleKeydown(event);
|
|
171
266
|
}
|
|
172
267
|
}
|
|
173
|
-
MatChipRemove.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
174
|
-
MatChipRemove.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0
|
|
268
|
+
MatChipRemove.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipRemove, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
269
|
+
MatChipRemove.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MatChipRemove, selector: "[matChipRemove]", host: { attributes: { "role": "button" }, properties: { "attr.aria-hidden": "null" }, classAttribute: "mat-mdc-chip-remove mat-mdc-chip-trailing-icon mat-mdc-focus-indicator mdc-evolution-chip__icon mdc-evolution-chip__icon--trailing" }, providers: [{ provide: MAT_CHIP_REMOVE, useExisting: MatChipRemove }], usesInheritance: true, ngImport: i0 });
|
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipRemove, decorators: [{
|
|
176
271
|
type: Directive,
|
|
177
272
|
args: [{
|
|
178
273
|
selector: '[matChipRemove]',
|
|
179
|
-
inputs: ['disabled', 'tabIndex'],
|
|
180
274
|
host: {
|
|
181
|
-
'class':
|
|
182
|
-
|
|
183
|
-
'[tabIndex]': 'tabIndex',
|
|
275
|
+
'class': 'mat-mdc-chip-remove mat-mdc-chip-trailing-icon mat-mdc-focus-indicator ' +
|
|
276
|
+
'mdc-evolution-chip__icon mdc-evolution-chip__icon--trailing',
|
|
184
277
|
'role': 'button',
|
|
185
|
-
'(click)': '_handleClick($event)',
|
|
186
|
-
'(keydown)': 'interaction.next($event)',
|
|
187
|
-
// We need to remove this explicitly, because it gets inherited from MatChipTrailingIcon.
|
|
188
278
|
'[attr.aria-hidden]': 'null',
|
|
189
279
|
},
|
|
190
280
|
providers: [{ provide: MAT_CHIP_REMOVE, useExisting: MatChipRemove }],
|
|
191
281
|
}]
|
|
192
|
-
}]
|
|
282
|
+
}] });
|
|
193
283
|
|
|
194
284
|
/**
|
|
195
285
|
* @license
|
|
@@ -198,23 +288,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
198
288
|
* Use of this source code is governed by an MIT-style license that can be
|
|
199
289
|
* found in the LICENSE file at https://angular.io/license
|
|
200
290
|
*/
|
|
201
|
-
let uid
|
|
202
|
-
/**
|
|
203
|
-
* Directive to add MDC CSS to non-basic chips.
|
|
204
|
-
* @docs-private
|
|
205
|
-
*/
|
|
206
|
-
class MatChipCssInternalOnly {
|
|
207
|
-
}
|
|
208
|
-
MatChipCssInternalOnly.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0-next.3", ngImport: i0, type: MatChipCssInternalOnly, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
209
|
-
MatChipCssInternalOnly.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0-next.3", type: MatChipCssInternalOnly, selector: "mat-chip, mat-chip-option, mat-chip-row, [mat-chip], [mat-chip-option],\n [mat-chip-row]", host: { classAttribute: "mat-mdc-chip mdc-chip" }, ngImport: i0 });
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3", ngImport: i0, type: MatChipCssInternalOnly, decorators: [{
|
|
211
|
-
type: Directive,
|
|
212
|
-
args: [{
|
|
213
|
-
selector: `mat-chip, mat-chip-option, mat-chip-row, [mat-chip], [mat-chip-option],
|
|
214
|
-
[mat-chip-row]`,
|
|
215
|
-
host: { 'class': 'mat-mdc-chip mdc-chip' },
|
|
216
|
-
}]
|
|
217
|
-
}] });
|
|
291
|
+
let uid = 0;
|
|
218
292
|
/**
|
|
219
293
|
* Boilerplate for applying mixins to MatChip.
|
|
220
294
|
* @docs-private
|
|
@@ -231,10 +305,11 @@ const _MatChipMixinBase = mixinTabIndex(mixinColor(mixinDisableRipple(MatChipBas
|
|
|
231
305
|
* Extended by MatChipOption and MatChipRow for different interaction patterns.
|
|
232
306
|
*/
|
|
233
307
|
class MatChip extends _MatChipMixinBase {
|
|
234
|
-
constructor(_changeDetectorRef, elementRef, _ngZone, _dir, animationMode, _globalRippleOptions) {
|
|
308
|
+
constructor(_changeDetectorRef, elementRef, _ngZone, _focusMonitor, _document, _dir, animationMode, _globalRippleOptions, tabIndex) {
|
|
235
309
|
super(elementRef);
|
|
236
310
|
this._changeDetectorRef = _changeDetectorRef;
|
|
237
311
|
this._ngZone = _ngZone;
|
|
312
|
+
this._focusMonitor = _focusMonitor;
|
|
238
313
|
this._dir = _dir;
|
|
239
314
|
this._globalRippleOptions = _globalRippleOptions;
|
|
240
315
|
/** Whether the ripple is centered on the chip. */
|
|
@@ -243,22 +318,21 @@ class MatChip extends _MatChipMixinBase {
|
|
|
243
318
|
this._onFocus = new Subject();
|
|
244
319
|
/** Emits when the chip is blurred. */
|
|
245
320
|
this._onBlur = new Subject();
|
|
246
|
-
|
|
321
|
+
/** Role for the root of the chip. */
|
|
322
|
+
this.role = null;
|
|
247
323
|
/** Whether the chip has focus. */
|
|
248
324
|
this._hasFocusInternal = false;
|
|
249
|
-
/** Default unique id for the chip. */
|
|
250
|
-
this._uniqueId = `mat-mdc-chip-${uid$1++}`;
|
|
251
325
|
/** A unique id for the chip. If none is supplied, it will be auto-generated. */
|
|
252
|
-
this.id =
|
|
326
|
+
this.id = `mat-mdc-chip-${uid++}`;
|
|
327
|
+
/** ARIA label for the content of the chip. */
|
|
328
|
+
this.ariaLabel = null;
|
|
253
329
|
this._disabled = false;
|
|
254
330
|
this._removable = true;
|
|
255
331
|
this._highlighted = false;
|
|
256
|
-
/** Emitted when the user interacts with the chip. */
|
|
257
|
-
this.interaction = new EventEmitter();
|
|
258
|
-
/** Emitted when the chip is destroyed. */
|
|
259
|
-
this.destroyed = new EventEmitter();
|
|
260
332
|
/** Emitted when a chip is to be removed. */
|
|
261
333
|
this.removed = new EventEmitter();
|
|
334
|
+
/** Emitted when the chip is destroyed. */
|
|
335
|
+
this.destroyed = new EventEmitter();
|
|
262
336
|
/** The unstyled chip selector for this component. */
|
|
263
337
|
this.basicChipAttrName = 'mat-basic-chip';
|
|
264
338
|
/**
|
|
@@ -269,86 +343,81 @@ class MatChip extends _MatChipMixinBase {
|
|
|
269
343
|
addClass: className => this._setMdcClass(className, true),
|
|
270
344
|
removeClass: className => this._setMdcClass(className, false),
|
|
271
345
|
hasClass: className => this._elementRef.nativeElement.classList.contains(className),
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
eventTargetHasClass: (target, className) => {
|
|
275
|
-
// We need to null check the `classList`, because IE and Edge don't
|
|
276
|
-
// support it on SVG elements and Edge seems to throw for ripple
|
|
277
|
-
// elements, because they're outside the DOM.
|
|
278
|
-
return target && target.classList
|
|
279
|
-
? target.classList.contains(className)
|
|
280
|
-
: false;
|
|
346
|
+
emitEvent: (eventName, data) => {
|
|
347
|
+
emitCustomEvent(this._elementRef.nativeElement, this._document, eventName, data, true);
|
|
281
348
|
},
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
// No-op. We call dispatchSelectionEvent ourselves in MatChipOption,
|
|
285
|
-
// because we want to specify whether selection occurred via user
|
|
286
|
-
// input.
|
|
349
|
+
setStyleProperty: (propertyName, value) => {
|
|
350
|
+
this._elementRef.nativeElement.style.setProperty(propertyName, value);
|
|
287
351
|
},
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
352
|
+
isRTL: () => this._dir?.value === 'rtl',
|
|
353
|
+
getAttribute: attributeName => this._elementRef.nativeElement.getAttribute(attributeName),
|
|
354
|
+
getElementID: () => this._elementRef.nativeElement.id,
|
|
355
|
+
getOffsetWidth: () => this._elementRef.nativeElement.offsetWidth,
|
|
356
|
+
getActions: () => {
|
|
357
|
+
const result = [];
|
|
358
|
+
if (this._getAction(MDCChipActionType.PRIMARY)) {
|
|
359
|
+
result.push(MDCChipActionType.PRIMARY);
|
|
360
|
+
}
|
|
361
|
+
if (this._getAction(MDCChipActionType.TRAILING)) {
|
|
362
|
+
result.push(MDCChipActionType.TRAILING);
|
|
363
|
+
}
|
|
364
|
+
return result;
|
|
294
365
|
},
|
|
295
|
-
|
|
296
|
-
this.
|
|
297
|
-
this._changeDetectorRef.markForCheck();
|
|
366
|
+
isActionSelectable: (action) => {
|
|
367
|
+
return this._getAction(action)?.isSelectable() || false;
|
|
298
368
|
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
// invoked during server-side rendering. Add some extra checks just in
|
|
302
|
-
// case.
|
|
303
|
-
if (typeof window !== 'undefined' && window) {
|
|
304
|
-
const getComputedStyle = window.getComputedStyle(this._elementRef.nativeElement);
|
|
305
|
-
return getComputedStyle.getPropertyValue(propertyName);
|
|
306
|
-
}
|
|
307
|
-
return '';
|
|
369
|
+
isActionSelected: (action) => {
|
|
370
|
+
return this._getAction(action)?.isSelected() || false;
|
|
308
371
|
},
|
|
309
|
-
|
|
310
|
-
this.
|
|
372
|
+
isActionDisabled: (action) => {
|
|
373
|
+
return this._getAction(action)?.isDisabled() || false;
|
|
311
374
|
},
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
if (this.trailingIcon) {
|
|
315
|
-
return this.trailingIcon.isNavigable();
|
|
316
|
-
}
|
|
317
|
-
return false;
|
|
375
|
+
isActionFocusable: (action) => {
|
|
376
|
+
return this._getAction(action)?.isFocusable() || false;
|
|
318
377
|
},
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
// Angular Material MDC chips fully manage focus. TODO: Managing focus
|
|
322
|
-
// and handling keyboard events was added by MDC after our
|
|
323
|
-
// implementation; consider consolidating.
|
|
378
|
+
setActionSelected: (action, isSelected) => {
|
|
379
|
+
this._getAction(action)?.setSelected(isSelected);
|
|
324
380
|
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
setPrimaryActionAttr: (name, value) => {
|
|
328
|
-
// MDC is currently using this method to set aria-checked on choice
|
|
329
|
-
// and filter chips, which in the MDC templates have role="checkbox"
|
|
330
|
-
// and role="radio" respectively. We have role="option" on those chips
|
|
331
|
-
// instead, so we do not want aria-checked. Since we also manage the
|
|
332
|
-
// tabindex ourselves, we don't allow MDC to set it.
|
|
333
|
-
if (name === 'aria-checked' || name === 'tabindex') {
|
|
334
|
-
return;
|
|
335
|
-
}
|
|
336
|
-
this._elementRef.nativeElement.setAttribute(name, value);
|
|
381
|
+
setActionDisabled: (action, isDisabled) => {
|
|
382
|
+
this._getAction(action)?.setDisabled(isDisabled);
|
|
337
383
|
},
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
384
|
+
setActionFocus: (action, behavior) => {
|
|
385
|
+
this._getAction(action)?.setFocus(behavior);
|
|
386
|
+
},
|
|
387
|
+
};
|
|
388
|
+
this._handleActionInteraction = (event) => {
|
|
389
|
+
this._onChipInteraction(event);
|
|
390
|
+
};
|
|
391
|
+
this._handleActionNavigation = (event) => {
|
|
392
|
+
this._chipFoundation.handleActionNavigation(event);
|
|
393
|
+
};
|
|
394
|
+
this._handleTransitionend = (event) => {
|
|
395
|
+
if (event.target === this._elementRef.nativeElement) {
|
|
396
|
+
this._ngZone.run(() => this._chipFoundation.handleTransitionEnd());
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
this._handleAnimationend = (event) => {
|
|
400
|
+
if (event.target === this._elementRef.nativeElement) {
|
|
401
|
+
this._ngZone.run(() => this._chipFoundation.handleAnimationEnd(event));
|
|
402
|
+
}
|
|
343
403
|
};
|
|
344
|
-
|
|
404
|
+
const element = elementRef.nativeElement;
|
|
405
|
+
this._document = _document;
|
|
406
|
+
this._chipFoundation = new MDCChipFoundation(this._chipAdapter);
|
|
345
407
|
this._animationsDisabled = animationMode === 'NoopAnimations';
|
|
346
408
|
this._isBasicChip =
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
409
|
+
element.hasAttribute(this.basicChipAttrName) ||
|
|
410
|
+
element.tagName.toLowerCase() === this.basicChipAttrName;
|
|
411
|
+
element.addEventListener(MDCChipActionEvents.INTERACTION, this._handleActionInteraction);
|
|
412
|
+
element.addEventListener(MDCChipActionEvents.NAVIGATION, this._handleActionNavigation);
|
|
413
|
+
_focusMonitor.monitor(elementRef, true);
|
|
414
|
+
_ngZone.runOutsideAngular(() => {
|
|
415
|
+
element.addEventListener('transitionend', this._handleTransitionend);
|
|
416
|
+
element.addEventListener('animationend', this._handleAnimationend);
|
|
417
|
+
});
|
|
418
|
+
if (tabIndex != null) {
|
|
419
|
+
this.tabIndex = parseInt(tabIndex) ?? this.defaultTabIndex;
|
|
420
|
+
}
|
|
352
421
|
}
|
|
353
422
|
_hasFocus() {
|
|
354
423
|
return this._hasFocusInternal;
|
|
@@ -359,10 +428,14 @@ class MatChip extends _MatChipMixinBase {
|
|
|
359
428
|
set disabled(value) {
|
|
360
429
|
this._disabled = coerceBooleanProperty(value);
|
|
361
430
|
if (this.removeIcon) {
|
|
362
|
-
this.removeIcon.disabled =
|
|
431
|
+
this.removeIcon.disabled = this._disabled;
|
|
363
432
|
}
|
|
433
|
+
this._chipFoundation.setDisabled(this._disabled);
|
|
364
434
|
}
|
|
365
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* The value of the chip. Defaults to the content inside
|
|
437
|
+
* the `mat-mdc-chip-action-label` element.
|
|
438
|
+
*/
|
|
366
439
|
get value() {
|
|
367
440
|
return this._value !== undefined ? this._value : this._textElement.textContent.trim();
|
|
368
441
|
}
|
|
@@ -387,42 +460,24 @@ class MatChip extends _MatChipMixinBase {
|
|
|
387
460
|
set highlighted(value) {
|
|
388
461
|
this._highlighted = coerceBooleanProperty(value);
|
|
389
462
|
}
|
|
390
|
-
ngAfterContentInit() {
|
|
391
|
-
this._initRemoveIcon();
|
|
392
|
-
}
|
|
393
463
|
ngAfterViewInit() {
|
|
394
464
|
this._chipFoundation.init();
|
|
395
|
-
this.
|
|
465
|
+
this._chipFoundation.setDisabled(this.disabled);
|
|
466
|
+
this._textElement = this._elementRef.nativeElement.querySelector('.mat-mdc-chip-action-label');
|
|
467
|
+
if (this._pendingFocus) {
|
|
468
|
+
this._pendingFocus = false;
|
|
469
|
+
this.focus();
|
|
470
|
+
}
|
|
396
471
|
}
|
|
397
472
|
ngOnDestroy() {
|
|
398
|
-
this.
|
|
473
|
+
const element = this._elementRef.nativeElement;
|
|
474
|
+
element.removeEventListener(MDCChipActionEvents.INTERACTION, this._handleActionInteraction);
|
|
475
|
+
element.removeEventListener(MDCChipActionEvents.NAVIGATION, this._handleActionNavigation);
|
|
476
|
+
element.removeEventListener('transitionend', this._handleTransitionend);
|
|
477
|
+
element.removeEventListener('animationend', this._handleAnimationend);
|
|
399
478
|
this._chipFoundation.destroy();
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
_initRemoveIcon() {
|
|
403
|
-
if (this.removeIcon) {
|
|
404
|
-
this._chipFoundation.setShouldRemoveOnTrailingIconClick(true);
|
|
405
|
-
this.removeIcon.disabled = this.disabled;
|
|
406
|
-
this.removeIcon.interaction.pipe(takeUntil(this.destroyed)).subscribe(event => {
|
|
407
|
-
// The MDC chip foundation calls stopPropagation() for any trailing icon interaction
|
|
408
|
-
// event, even ones it doesn't handle, so we want to avoid passing it keyboard events
|
|
409
|
-
// for which we have a custom handler. Note that we assert the type of the event using
|
|
410
|
-
// the `type`, because `instanceof KeyboardEvent` can throw during server-side rendering.
|
|
411
|
-
const isKeyboardEvent = event.type.startsWith('key');
|
|
412
|
-
if (this.disabled ||
|
|
413
|
-
(isKeyboardEvent && !this.REMOVE_ICON_HANDLED_KEYS.has(event.keyCode))) {
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
this.remove();
|
|
417
|
-
if (isKeyboardEvent && !hasModifierKey(event)) {
|
|
418
|
-
const keyCode = event.keyCode;
|
|
419
|
-
// Prevent default space and enter presses so we don't scroll the page or submit forms.
|
|
420
|
-
if (keyCode === SPACE || keyCode === ENTER) {
|
|
421
|
-
event.preventDefault();
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
});
|
|
425
|
-
}
|
|
479
|
+
this._focusMonitor.stopMonitoring(this._elementRef);
|
|
480
|
+
this.destroyed.emit({ chip: this });
|
|
426
481
|
}
|
|
427
482
|
/**
|
|
428
483
|
* Allows for programmatic removal of the chip.
|
|
@@ -440,29 +495,6 @@ class MatChip extends _MatChipMixinBase {
|
|
|
440
495
|
active ? classes.add(cssClass) : classes.remove(cssClass);
|
|
441
496
|
this._changeDetectorRef.markForCheck();
|
|
442
497
|
}
|
|
443
|
-
/** Forwards interaction events to the MDC chip foundation. */
|
|
444
|
-
_handleInteraction(event) {
|
|
445
|
-
if (this.disabled) {
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
if (event.type === 'click') {
|
|
449
|
-
this._chipFoundation.handleClick();
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
if (event.type === 'dblclick') {
|
|
453
|
-
this._chipFoundation.handleDoubleClick();
|
|
454
|
-
}
|
|
455
|
-
if (event.type === 'keydown') {
|
|
456
|
-
this._chipFoundation.handleKeydown(event);
|
|
457
|
-
return;
|
|
458
|
-
}
|
|
459
|
-
if (event.type === 'focusout') {
|
|
460
|
-
this._chipFoundation.handleFocusOut(event);
|
|
461
|
-
}
|
|
462
|
-
if (event.type === 'focusin') {
|
|
463
|
-
this._chipFoundation.handleFocusIn(event);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
498
|
/** Whether or not the ripple should be disabled. */
|
|
467
499
|
_isRippleDisabled() {
|
|
468
500
|
return (this.disabled ||
|
|
@@ -471,36 +503,88 @@ class MatChip extends _MatChipMixinBase {
|
|
|
471
503
|
this._isBasicChip ||
|
|
472
504
|
!!this._globalRippleOptions?.disabled);
|
|
473
505
|
}
|
|
474
|
-
|
|
475
|
-
|
|
506
|
+
_getAction(type) {
|
|
507
|
+
switch (type) {
|
|
508
|
+
case MDCChipActionType.PRIMARY:
|
|
509
|
+
return this.primaryAction?._getFoundation();
|
|
510
|
+
case MDCChipActionType.TRAILING:
|
|
511
|
+
return (this.removeIcon || this.trailingIcon)?._getFoundation();
|
|
512
|
+
}
|
|
513
|
+
return undefined;
|
|
514
|
+
}
|
|
515
|
+
_getFoundation() {
|
|
516
|
+
return this._chipFoundation;
|
|
517
|
+
}
|
|
518
|
+
_hasTrailingIcon() {
|
|
519
|
+
return !!(this.trailingIcon || this.removeIcon);
|
|
476
520
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
521
|
+
/** Allows for programmatic focusing of the chip. */
|
|
522
|
+
focus() {
|
|
523
|
+
if (this.disabled) {
|
|
524
|
+
return;
|
|
525
|
+
}
|
|
526
|
+
// If `focus` is called before `ngAfterViewInit`, we won't have access to the primary action.
|
|
527
|
+
// This can happen if the consumer tries to focus a chip immediately after it is added.
|
|
528
|
+
// Queue the method to be called again on init.
|
|
529
|
+
if (!this.primaryAction) {
|
|
530
|
+
this._pendingFocus = true;
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
if (!this._hasFocus()) {
|
|
534
|
+
this._onFocus.next({ chip: this });
|
|
535
|
+
this._hasFocusInternal = true;
|
|
536
|
+
}
|
|
537
|
+
this.primaryAction.focus();
|
|
538
|
+
}
|
|
539
|
+
/** Overridden by MatChipOption. */
|
|
540
|
+
_onChipInteraction(event) {
|
|
541
|
+
const removeElement = this.removeIcon?._elementRef.nativeElement;
|
|
542
|
+
const trigger = event.detail.trigger;
|
|
543
|
+
// MDC's removal process requires an `animationend` event followed by a `transitionend`
|
|
544
|
+
// event coming from the chip, which in turn will call `remove`. While we can stub
|
|
545
|
+
// out these events in our own tests, they can be difficult to fake for consumers that are
|
|
546
|
+
// testing our components or are wrapping them. We skip the entire sequence and trigger the
|
|
547
|
+
// removal directly in order to make the component easier to deal with.
|
|
548
|
+
if (removeElement &&
|
|
549
|
+
(trigger === MDCChipActionInteractionTrigger.CLICK ||
|
|
550
|
+
trigger === MDCChipActionInteractionTrigger.ENTER_KEY ||
|
|
551
|
+
trigger === MDCChipActionInteractionTrigger.SPACEBAR_KEY) &&
|
|
552
|
+
(event.target === removeElement || removeElement.contains(event.target))) {
|
|
553
|
+
this.remove();
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
this._chipFoundation.handleActionInteraction(event);
|
|
557
|
+
}
|
|
480
558
|
}
|
|
481
|
-
/** Overridden by MatChipRow. */
|
|
482
|
-
_onEditStart() { }
|
|
483
|
-
/** Overridden by MatChipRow. */
|
|
484
|
-
_onEditFinish() { }
|
|
485
559
|
}
|
|
486
|
-
MatChip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
487
|
-
MatChip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0-next.3", type: MatChip, selector: "mat-basic-chip, mat-chip", inputs: { color: "color", disableRipple: "disableRipple", id: "id", disabled: "disabled", value: "value", removable: "removable", highlighted: "highlighted" }, outputs: { interaction: "interaction", destroyed: "destroyed", removed: "removed" }, host: { listeners: { "transitionend": "_handleTransitionEnd($event)" }, properties: { "class.mat-mdc-chip-disabled": "disabled", "class.mat-mdc-chip-highlighted": "highlighted", "class.mat-mdc-chip-with-avatar": "leadingIcon", "class.mat-mdc-chip-with-trailing-icon": "trailingIcon || removeIcon", "class.mat-mdc-basic-chip": "_isBasicChip", "class.mat-mdc-standard-chip": "!_isBasicChip", "class._mat-animation-noopable": "_animationsDisabled", "id": "id", "attr.disabled": "disabled || null", "attr.aria-disabled": "disabled.toString()" } }, queries: [{ propertyName: "leadingIcon", first: true, predicate: MAT_CHIP_AVATAR, descendants: true }, { propertyName: "trailingIcon", first: true, predicate: MAT_CHIP_TRAILING_ICON, descendants: true }, { propertyName: "removeIcon", first: true, predicate: MAT_CHIP_REMOVE, descendants: true }], viewQueries: [{ propertyName: "ripple", first: true, predicate: MatRipple, descendants: true }], exportAs: ["matChip"], usesInheritance: true, ngImport: i0, template: "<span class=\"mdc-chip__ripple\"></span>\n\n<span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n\n<ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n<div class=\"mdc-chip__primary-action\">\n <div class=\"mdc-chip__text\"><ng-content></ng-content></div>\n</div>\n<ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n", styles: [".mdc-chip__icon.mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.mdc-deprecated-chip-trailing-action__icon{height:18px;width:18px;font-size:18px}.mdc-chip__icon.mdc-chip__icon--trailing{width:18px;height:18px;font-size:18px}.mdc-deprecated-chip-trailing-action{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-deprecated-chip-trailing-action,.mdc-deprecated-chip-trailing-action[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-chip__icon--trailing{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-chip__icon--trailing,.mdc-chip__icon--trailing[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip{border-radius:16px;height:32px;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 12px;border-width:0;outline:none;cursor:pointer;-webkit-appearance:none}.mdc-chip .mdc-chip__ripple{border-radius:16px}.mdc-chip.mdc-chip--selected .mdc-chip__checkmark,.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){margin-left:-4px;margin-right:4px}[dir=rtl] .mdc-chip.mdc-chip--selected .mdc-chip__checkmark,[dir=rtl] .mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden),.mdc-chip.mdc-chip--selected .mdc-chip__checkmark[dir=rtl],.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden)[dir=rtl]{margin-left:4px;margin-right:-4px}.mdc-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-chip::-moz-focus-inner{padding:0;border:0}.mdc-chip .mdc-chip__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-chip--exit{opacity:0}.mdc-chip__overflow{text-overflow:ellipsis;overflow:hidden}.mdc-chip__text{white-space:nowrap}.mdc-chip__icon{border-radius:50%;outline:none;vertical-align:middle}.mdc-chip__checkmark{height:20px}.mdc-chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-chip__primary-action:focus{outline:none}.mdc-chip--selected .mdc-chip__checkmark-path{stroke-dashoffset:0}.mdc-chip__icon--leading,.mdc-chip__icon--trailing{position:relative}.mdc-chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip--selected .mdc-chip__checkmark-svg{width:20px}.mdc-chip-set--filter .mdc-chip__icon--leading{transition:opacity 75ms linear;transition-delay:-50ms;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark{transition:opacity 75ms linear;transition-delay:80ms;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark .mdc-chip__checkmark-svg{transition:width 0ms}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading{opacity:0}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading+.mdc-chip__checkmark{width:0;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading{width:0;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading+.mdc-chip__checkmark{width:20px}@keyframes mdc-chip-entry{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.mdc-chip-set .mdc-chip{margin:4px}.mdc-chip-set .mdc-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-chip-set--input .mdc-chip{animation:mdc-chip-entry 100ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-chip{cursor:default}.mat-mdc-chip._mat-animation-noopable{animation:none;transition:none}.mat-mdc-chip._mat-animation-noopable .mdc-chip__checkmark-svg{transition:none}.cdk-high-contrast-active .mat-mdc-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-chip:focus{outline:dotted 2px}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mdc-chip__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-chip__ripple::after,.mdc-chip__ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;content:\"\";pointer-events:none;opacity:0;border-radius:inherit}._mat-animation-noopable .mdc-chip__ripple::after,._mat-animation-noopable .mdc-chip__ripple::before{transition:none}.mat-mdc-chip-disabled.mat-mdc-chip{opacity:.4}.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-trailing-icon,.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-row-focusable-text-content{pointer-events:none}.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::after,.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::before{display:none}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px}.mat-mdc-chip-grid{margin:-4px}.mat-mdc-chip-grid input.mat-mdc-chip-input{margin:4px}._mat-animation-noopable .mdc-chip__checkmark-path{transition:none}.cdk-high-contrast-black-on-white .mdc-chip__checkmark-path{stroke:#000 !important}.mat-mdc-chip-row-focusable-text-content{position:relative}.mat-mdc-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-row-focusable-text-content,.mat-mdc-chip-remove-icon{display:flex;align-items:center}.mat-mdc-chip-content{display:inline-flex}.mdc-chip--editing{background-color:transparent;display:flex;flex-direction:column}.mdc-chip--editing .mat-mdc-chip-content{pointer-events:none;height:0;overflow:hidden}.mat-chip-edit-input{cursor:text;display:inline-block}.mat-mdc-chip-edit-input-container{width:100%;height:100%;display:flex;align-items:center}\n"], directives: [{ type: i3.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0
|
|
560
|
+
MatChip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChip, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.FocusMonitor }, { token: DOCUMENT }, { token: i2.Directionality, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
561
|
+
MatChip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MatChip, selector: "mat-basic-chip, mat-chip", inputs: { color: "color", disableRipple: "disableRipple", tabIndex: "tabIndex", role: "role", id: "id", ariaLabel: ["aria-label", "ariaLabel"], disabled: "disabled", value: "value", removable: "removable", highlighted: "highlighted" }, outputs: { removed: "removed", destroyed: "destroyed" }, host: { properties: { "class.mdc-evolution-chip": "!_isBasicChip", "class.mdc-evolution-chip--disabled": "disabled", "class.mdc-evolution-chip--with-trailing-action": "_hasTrailingIcon()", "class.mdc-evolution-chip--with-primary-graphic": "leadingIcon", "class.mdc-evolution-chip--with-primary-icon": "leadingIcon", "class.mdc-evolution-chip--with-avatar": "leadingIcon", "class.mat-mdc-chip-with-avatar": "leadingIcon", "class.mat-mdc-chip-highlighted": "highlighted", "class.mat-mdc-chip-disabled": "disabled", "class.mat-mdc-basic-chip": "_isBasicChip", "class.mat-mdc-standard-chip": "!_isBasicChip", "class.mat-mdc-chip-with-trailing-icon": "_hasTrailingIcon()", "class._mat-animation-noopable": "_animationsDisabled", "id": "id", "attr.role": "role", "attr.tabindex": "role ? tabIndex : null", "attr.aria-label": "ariaLabel" }, classAttribute: "mat-mdc-chip" }, queries: [{ propertyName: "leadingIcon", first: true, predicate: MAT_CHIP_AVATAR, descendants: true }, { propertyName: "trailingIcon", first: true, predicate: MAT_CHIP_TRAILING_ICON, descendants: true }, { propertyName: "removeIcon", first: true, predicate: MAT_CHIP_REMOVE, descendants: true }], viewQueries: [{ propertyName: "ripple", first: true, predicate: MatRipple, descendants: true }, { propertyName: "primaryAction", first: true, predicate: MatChipAction, descendants: true }], exportAs: ["matChip"], usesInheritance: true, ngImport: i0, template: "<span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n<span class=\"mat-mdc-chip-focus-overlay\"></span>\n\n<span class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--primary\">\n <div matChipAction [isInteractive]=\"false\">\n <span class=\"mdc-evolution-chip__graphic mat-mdc-chip-graphic\" *ngIf=\"leadingIcon\">\n <ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n </span>\n <span class=\"mdc-evolution-chip__text-label mat-mdc-chip-action-label\">\n <ng-content></ng-content>\n <span class=\"mat-mdc-chip-primary-focus-indicator mat-mdc-focus-indicator\"></span>\n </span>\n </div>\n</span>\n\n<span\n class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing\"\n *ngIf=\"_hasTrailingIcon()\">\n <ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n</span>\n", styles: [".mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:\"\";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip{height:32px;border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:20px}.mdc-evolution-chip .mdc-evolution-chip__graphic{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + -4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{border-radius:16px 16px 16px 16px;height:32px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:14px 14px 14px 14px}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:28px}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:28px;width:28px;font-size:28px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:18px;width:18px;font-size:18px}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip.cdk-focused{outline:dotted 2px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:#000 !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}\n"], directives: [{ type: i3.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: MatChipAction, selector: "[matChipAction]", inputs: ["disabled", "tabIndex", "isInteractive"] }, { type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChip, decorators: [{
|
|
489
563
|
type: Component,
|
|
490
|
-
args: [{ selector: 'mat-basic-chip, mat-chip', inputs: ['color', 'disableRipple'], exportAs: 'matChip', host: {
|
|
491
|
-
'
|
|
492
|
-
'[class.
|
|
564
|
+
args: [{ selector: 'mat-basic-chip, mat-chip', inputs: ['color', 'disableRipple', 'tabIndex'], exportAs: 'matChip', host: {
|
|
565
|
+
'class': 'mat-mdc-chip',
|
|
566
|
+
'[class.mdc-evolution-chip]': '!_isBasicChip',
|
|
567
|
+
'[class.mdc-evolution-chip--disabled]': 'disabled',
|
|
568
|
+
'[class.mdc-evolution-chip--with-trailing-action]': '_hasTrailingIcon()',
|
|
569
|
+
'[class.mdc-evolution-chip--with-primary-graphic]': 'leadingIcon',
|
|
570
|
+
'[class.mdc-evolution-chip--with-primary-icon]': 'leadingIcon',
|
|
571
|
+
'[class.mdc-evolution-chip--with-avatar]': 'leadingIcon',
|
|
493
572
|
'[class.mat-mdc-chip-with-avatar]': 'leadingIcon',
|
|
494
|
-
'[class.mat-mdc-chip-
|
|
573
|
+
'[class.mat-mdc-chip-highlighted]': 'highlighted',
|
|
574
|
+
'[class.mat-mdc-chip-disabled]': 'disabled',
|
|
495
575
|
'[class.mat-mdc-basic-chip]': '_isBasicChip',
|
|
496
576
|
'[class.mat-mdc-standard-chip]': '!_isBasicChip',
|
|
577
|
+
'[class.mat-mdc-chip-with-trailing-icon]': '_hasTrailingIcon()',
|
|
497
578
|
'[class._mat-animation-noopable]': '_animationsDisabled',
|
|
498
579
|
'[id]': 'id',
|
|
499
|
-
'[attr.
|
|
500
|
-
'[attr.
|
|
501
|
-
'
|
|
502
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"mdc-chip__ripple\"></span>\n\n<span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n\n<ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n<div class=\"mdc-chip__primary-action\">\n <div class=\"mdc-chip__text\"><ng-content></ng-content></div>\n</div>\n<ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n", styles: [".mdc-chip__icon.mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.mdc-deprecated-chip-trailing-action__icon{height:18px;width:18px;font-size:18px}.mdc-chip__icon.mdc-chip__icon--trailing{width:18px;height:18px;font-size:18px}.mdc-deprecated-chip-trailing-action{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-deprecated-chip-trailing-action,.mdc-deprecated-chip-trailing-action[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-chip__icon--trailing{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-chip__icon--trailing,.mdc-chip__icon--trailing[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip{border-radius:16px;height:32px;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 12px;border-width:0;outline:none;cursor:pointer;-webkit-appearance:none}.mdc-chip .mdc-chip__ripple{border-radius:16px}.mdc-chip.mdc-chip--selected .mdc-chip__checkmark,.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){margin-left:-4px;margin-right:4px}[dir=rtl] .mdc-chip.mdc-chip--selected .mdc-chip__checkmark,[dir=rtl] .mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden),.mdc-chip.mdc-chip--selected .mdc-chip__checkmark[dir=rtl],.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden)[dir=rtl]{margin-left:4px;margin-right:-4px}.mdc-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-chip::-moz-focus-inner{padding:0;border:0}.mdc-chip .mdc-chip__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-chip--exit{opacity:0}.mdc-chip__overflow{text-overflow:ellipsis;overflow:hidden}.mdc-chip__text{white-space:nowrap}.mdc-chip__icon{border-radius:50%;outline:none;vertical-align:middle}.mdc-chip__checkmark{height:20px}.mdc-chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-chip__primary-action:focus{outline:none}.mdc-chip--selected .mdc-chip__checkmark-path{stroke-dashoffset:0}.mdc-chip__icon--leading,.mdc-chip__icon--trailing{position:relative}.mdc-chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip--selected .mdc-chip__checkmark-svg{width:20px}.mdc-chip-set--filter .mdc-chip__icon--leading{transition:opacity 75ms linear;transition-delay:-50ms;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark{transition:opacity 75ms linear;transition-delay:80ms;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark .mdc-chip__checkmark-svg{transition:width 0ms}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading{opacity:0}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading+.mdc-chip__checkmark{width:0;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading{width:0;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading+.mdc-chip__checkmark{width:20px}@keyframes mdc-chip-entry{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.mdc-chip-set .mdc-chip{margin:4px}.mdc-chip-set .mdc-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-chip-set--input .mdc-chip{animation:mdc-chip-entry 100ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-chip{cursor:default}.mat-mdc-chip._mat-animation-noopable{animation:none;transition:none}.mat-mdc-chip._mat-animation-noopable .mdc-chip__checkmark-svg{transition:none}.cdk-high-contrast-active .mat-mdc-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-chip:focus{outline:dotted 2px}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mdc-chip__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-chip__ripple::after,.mdc-chip__ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;content:\"\";pointer-events:none;opacity:0;border-radius:inherit}._mat-animation-noopable .mdc-chip__ripple::after,._mat-animation-noopable .mdc-chip__ripple::before{transition:none}.mat-mdc-chip-disabled.mat-mdc-chip{opacity:.4}.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-trailing-icon,.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-row-focusable-text-content{pointer-events:none}.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::after,.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::before{display:none}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px}.mat-mdc-chip-grid{margin:-4px}.mat-mdc-chip-grid input.mat-mdc-chip-input{margin:4px}._mat-animation-noopable .mdc-chip__checkmark-path{transition:none}.cdk-high-contrast-black-on-white .mdc-chip__checkmark-path{stroke:#000 !important}.mat-mdc-chip-row-focusable-text-content{position:relative}.mat-mdc-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-row-focusable-text-content,.mat-mdc-chip-remove-icon{display:flex;align-items:center}.mat-mdc-chip-content{display:inline-flex}.mdc-chip--editing{background-color:transparent;display:flex;flex-direction:column}.mdc-chip--editing .mat-mdc-chip-content{pointer-events:none;height:0;overflow:hidden}.mat-chip-edit-input{cursor:text;display:inline-block}.mat-mdc-chip-edit-input-container{width:100%;height:100%;display:flex;align-items:center}\n"] }]
|
|
503
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.
|
|
580
|
+
'[attr.role]': 'role',
|
|
581
|
+
'[attr.tabindex]': 'role ? tabIndex : null',
|
|
582
|
+
'[attr.aria-label]': 'ariaLabel',
|
|
583
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n<span class=\"mat-mdc-chip-focus-overlay\"></span>\n\n<span class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--primary\">\n <div matChipAction [isInteractive]=\"false\">\n <span class=\"mdc-evolution-chip__graphic mat-mdc-chip-graphic\" *ngIf=\"leadingIcon\">\n <ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n </span>\n <span class=\"mdc-evolution-chip__text-label mat-mdc-chip-action-label\">\n <ng-content></ng-content>\n <span class=\"mat-mdc-chip-primary-focus-indicator mat-mdc-focus-indicator\"></span>\n </span>\n </div>\n</span>\n\n<span\n class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing\"\n *ngIf=\"_hasTrailingIcon()\">\n <ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n</span>\n", styles: [".mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:\"\";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip{height:32px;border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:20px}.mdc-evolution-chip .mdc-evolution-chip__graphic{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + -4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{border-radius:16px 16px 16px 16px;height:32px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:14px 14px 14px 14px}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:28px}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:28px;width:28px;font-size:28px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:18px;width:18px;font-size:18px}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip.cdk-focused{outline:dotted 2px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:#000 !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}\n"] }]
|
|
584
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.FocusMonitor }, { type: undefined, decorators: [{
|
|
585
|
+
type: Inject,
|
|
586
|
+
args: [DOCUMENT]
|
|
587
|
+
}] }, { type: i2.Directionality, decorators: [{
|
|
504
588
|
type: Optional
|
|
505
589
|
}] }, { type: undefined, decorators: [{
|
|
506
590
|
type: Optional
|
|
@@ -512,8 +596,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
512
596
|
}, {
|
|
513
597
|
type: Inject,
|
|
514
598
|
args: [MAT_RIPPLE_GLOBAL_OPTIONS]
|
|
515
|
-
}] }
|
|
599
|
+
}] }, { type: undefined, decorators: [{
|
|
600
|
+
type: Attribute,
|
|
601
|
+
args: ['tabindex']
|
|
602
|
+
}] }]; }, propDecorators: { role: [{
|
|
603
|
+
type: Input
|
|
604
|
+
}], id: [{
|
|
516
605
|
type: Input
|
|
606
|
+
}], ariaLabel: [{
|
|
607
|
+
type: Input,
|
|
608
|
+
args: ['aria-label']
|
|
517
609
|
}], disabled: [{
|
|
518
610
|
type: Input
|
|
519
611
|
}], value: [{
|
|
@@ -522,12 +614,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
522
614
|
type: Input
|
|
523
615
|
}], highlighted: [{
|
|
524
616
|
type: Input
|
|
525
|
-
}],
|
|
617
|
+
}], removed: [{
|
|
526
618
|
type: Output
|
|
527
619
|
}], destroyed: [{
|
|
528
620
|
type: Output
|
|
529
|
-
}], removed: [{
|
|
530
|
-
type: Output
|
|
531
621
|
}], leadingIcon: [{
|
|
532
622
|
type: ContentChild,
|
|
533
623
|
args: [MAT_CHIP_AVATAR]
|
|
@@ -540,6 +630,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
540
630
|
}], ripple: [{
|
|
541
631
|
type: ViewChild,
|
|
542
632
|
args: [MatRipple]
|
|
633
|
+
}], primaryAction: [{
|
|
634
|
+
type: ViewChild,
|
|
635
|
+
args: [MatChipAction]
|
|
543
636
|
}] } });
|
|
544
637
|
|
|
545
638
|
/**
|
|
@@ -595,16 +688,17 @@ class MatChipOption extends MatChip {
|
|
|
595
688
|
}
|
|
596
689
|
/** Whether the chip is selected. */
|
|
597
690
|
get selected() {
|
|
598
|
-
return this._chipFoundation.
|
|
691
|
+
return (this._pendingSelectedState ?? this._chipFoundation.isActionSelected(MDCChipActionType.PRIMARY));
|
|
599
692
|
}
|
|
600
693
|
set selected(value) {
|
|
601
|
-
if (
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
694
|
+
if (this.selectable) {
|
|
695
|
+
const coercedValue = coerceBooleanProperty(value);
|
|
696
|
+
if (this._isInitialized) {
|
|
697
|
+
this._setSelectedState(coercedValue, false);
|
|
698
|
+
}
|
|
699
|
+
else {
|
|
700
|
+
this._pendingSelectedState = coercedValue;
|
|
701
|
+
}
|
|
608
702
|
}
|
|
609
703
|
}
|
|
610
704
|
/** The ARIA selected applied to the chip. */
|
|
@@ -615,70 +709,45 @@ class MatChipOption extends MatChip {
|
|
|
615
709
|
? this.selected.toString()
|
|
616
710
|
: null;
|
|
617
711
|
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
712
|
+
ngOnInit() {
|
|
713
|
+
this.role = 'presentation';
|
|
714
|
+
}
|
|
715
|
+
ngAfterViewInit() {
|
|
716
|
+
super.ngAfterViewInit();
|
|
717
|
+
this._isInitialized = true;
|
|
718
|
+
if (this._pendingSelectedState != null) {
|
|
719
|
+
// Note that we want to clear the pending state before calling `_setSelectedState`, because
|
|
720
|
+
// we want it to read the actual selected state instead falling back to the pending one.
|
|
721
|
+
const selectedState = this._pendingSelectedState;
|
|
722
|
+
this._pendingSelectedState = undefined;
|
|
723
|
+
this._setSelectedState(selectedState, false);
|
|
622
724
|
}
|
|
623
725
|
}
|
|
624
726
|
/** Selects the chip. */
|
|
625
727
|
select() {
|
|
626
|
-
if (
|
|
627
|
-
|
|
628
|
-
}
|
|
629
|
-
else if (!this.selected) {
|
|
630
|
-
this._chipFoundation.setSelected(true);
|
|
631
|
-
this._dispatchSelectionChange();
|
|
728
|
+
if (this.selectable) {
|
|
729
|
+
this._setSelectedState(true, false);
|
|
632
730
|
}
|
|
633
731
|
}
|
|
634
732
|
/** Deselects the chip. */
|
|
635
733
|
deselect() {
|
|
636
|
-
if (
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
else if (this.selected) {
|
|
640
|
-
this._chipFoundation.setSelected(false);
|
|
641
|
-
this._dispatchSelectionChange();
|
|
734
|
+
if (this.selectable) {
|
|
735
|
+
this._setSelectedState(false, false);
|
|
642
736
|
}
|
|
643
737
|
}
|
|
644
738
|
/** Selects this chip and emits userInputSelection event */
|
|
645
739
|
selectViaInteraction() {
|
|
646
|
-
if (
|
|
647
|
-
|
|
648
|
-
}
|
|
649
|
-
else if (!this.selected) {
|
|
650
|
-
this._chipFoundation.setSelected(true);
|
|
651
|
-
this._dispatchSelectionChange(true);
|
|
740
|
+
if (this.selectable) {
|
|
741
|
+
this._setSelectedState(true, true);
|
|
652
742
|
}
|
|
653
743
|
}
|
|
654
744
|
/** Toggles the current selected state of this chip. */
|
|
655
745
|
toggleSelected(isUserInput = false) {
|
|
656
|
-
if (
|
|
657
|
-
|
|
746
|
+
if (this.selectable) {
|
|
747
|
+
this._setSelectedState(!this.selected, isUserInput);
|
|
658
748
|
}
|
|
659
|
-
this._chipFoundation.setSelected(!this.selected);
|
|
660
|
-
this._dispatchSelectionChange(isUserInput);
|
|
661
749
|
return this.selected;
|
|
662
750
|
}
|
|
663
|
-
/** Emits a selection change event. */
|
|
664
|
-
_dispatchSelectionChange(isUserInput = false) {
|
|
665
|
-
this.selectionChange.emit({
|
|
666
|
-
source: this,
|
|
667
|
-
isUserInput,
|
|
668
|
-
selected: this.selected,
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
/** Allows for programmatic focusing of the chip. */
|
|
672
|
-
focus() {
|
|
673
|
-
if (this.disabled) {
|
|
674
|
-
return;
|
|
675
|
-
}
|
|
676
|
-
if (!this._hasFocus()) {
|
|
677
|
-
this._elementRef.nativeElement.focus();
|
|
678
|
-
this._onFocus.next({ chip: this });
|
|
679
|
-
}
|
|
680
|
-
this._hasFocusInternal = true;
|
|
681
|
-
}
|
|
682
751
|
/** Resets the state of the chip when it loses focus. */
|
|
683
752
|
_blur() {
|
|
684
753
|
// When animations are enabled, Angular may end up removing the chip from the DOM a little
|
|
@@ -692,55 +761,68 @@ class MatChipOption extends MatChip {
|
|
|
692
761
|
});
|
|
693
762
|
});
|
|
694
763
|
}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
764
|
+
_onChipInteraction(event) {
|
|
765
|
+
const { trigger, source } = event.detail;
|
|
766
|
+
// Non-selection interactions should work the same as other chips.
|
|
767
|
+
if (source !== MDCChipActionType.PRIMARY ||
|
|
768
|
+
(trigger !== MDCChipActionInteractionTrigger.CLICK &&
|
|
769
|
+
trigger !== MDCChipActionInteractionTrigger.ENTER_KEY &&
|
|
770
|
+
trigger !== MDCChipActionInteractionTrigger.SPACEBAR_KEY)) {
|
|
771
|
+
super._onChipInteraction(event);
|
|
772
|
+
}
|
|
773
|
+
else if (this.selectable && !this.disabled) {
|
|
774
|
+
// Otherwise only let the event through if the chip is enabled and selectable.
|
|
775
|
+
this._chipFoundation.handleActionInteraction(event);
|
|
776
|
+
this.selectionChange.emit({
|
|
777
|
+
source: this,
|
|
778
|
+
isUserInput: true,
|
|
779
|
+
selected: this.selected,
|
|
780
|
+
});
|
|
703
781
|
}
|
|
704
782
|
}
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
783
|
+
_hasLeadingGraphic() {
|
|
784
|
+
// The checkmark graphic is built in for multi-select chip lists.
|
|
785
|
+
return this.leadingIcon || (this._chipListMultiple && this.selectable);
|
|
786
|
+
}
|
|
787
|
+
_setSelectedState(isSelected, isUserInput) {
|
|
788
|
+
if (isSelected !== this.selected) {
|
|
789
|
+
this._chipFoundation.setActionSelected(MDCChipActionType.PRIMARY, isSelected);
|
|
790
|
+
this.selectionChange.emit({
|
|
791
|
+
source: this,
|
|
792
|
+
isUserInput,
|
|
793
|
+
selected: this.selected,
|
|
794
|
+
});
|
|
709
795
|
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
event.preventDefault();
|
|
715
|
-
break;
|
|
716
|
-
default:
|
|
717
|
-
this._handleInteraction(event);
|
|
796
|
+
// MDC won't assign the selected class until the animation finishes, but that may not
|
|
797
|
+
// happen if animations are disabled. If we detect such a case, assign the class manually.
|
|
798
|
+
if (this._animationsDisabled) {
|
|
799
|
+
this._elementRef.nativeElement.classList.toggle(MDCChipCssClasses.SELECTED, isSelected);
|
|
718
800
|
}
|
|
719
801
|
}
|
|
720
802
|
}
|
|
721
|
-
MatChipOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
722
|
-
MatChipOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0-next.3", type: MatChipOption, selector: "mat-basic-chip-option, mat-chip-option", inputs: { color: "color", disableRipple: "disableRipple", tabIndex: "tabIndex", selectable: "selectable", selected: "selected" }, outputs: { selectionChange: "selectionChange" }, host: { attributes: { "role": "option" }, listeners: { "click": "_click($event)", "keydown": "_keydown($event)", "focus": "focus()", "blur": "_blur()" }, properties: { "class.mat-mdc-chip-disabled": "disabled", "class.mat-mdc-chip-highlighted": "highlighted", "class.mat-mdc-chip-with-avatar": "leadingIcon", "class.mat-mdc-chip-with-trailing-icon": "trailingIcon || removeIcon", "class.mat-mdc-chip-selected": "selected", "class.mat-mdc-chip-multiple": "_chipListMultiple", "id": "id", "tabIndex": "tabIndex", "attr.disabled": "disabled || null", "attr.aria-disabled": "disabled.toString()", "attr.aria-selected": "ariaSelected" }, classAttribute: "mat-mdc-focus-indicator mat-mdc-chip-option" }, providers: [{ provide: MatChip, useExisting: MatChipOption }], usesInheritance: true, ngImport: i0, template: "<span class=\"mdc-chip__ripple\"></span>\n\n<span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n\n<ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n<div class=\"mdc-chip__checkmark\" *ngIf=\"_chipListMultiple\">\n <svg class=\"mdc-chip__checkmark-svg\" viewBox=\"-2 -3 30 30\" focusable=\"false\">\n <path class=\"mdc-chip__checkmark-path\" fill=\"none\" stroke=\"black\"\n d=\"M1.73,12.91 8.1,19.28 22.79,4.59\"/>\n </svg>\n</div>\n<div class=\"mdc-chip__text\"><ng-content></ng-content></div>\n<ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n", styles: [".mdc-chip__icon.mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.mdc-deprecated-chip-trailing-action__icon{height:18px;width:18px;font-size:18px}.mdc-chip__icon.mdc-chip__icon--trailing{width:18px;height:18px;font-size:18px}.mdc-deprecated-chip-trailing-action{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-deprecated-chip-trailing-action,.mdc-deprecated-chip-trailing-action[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-chip__icon--trailing{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-chip__icon--trailing,.mdc-chip__icon--trailing[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip{border-radius:16px;height:32px;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 12px;border-width:0;outline:none;cursor:pointer;-webkit-appearance:none}.mdc-chip .mdc-chip__ripple{border-radius:16px}.mdc-chip.mdc-chip--selected .mdc-chip__checkmark,.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){margin-left:-4px;margin-right:4px}[dir=rtl] .mdc-chip.mdc-chip--selected .mdc-chip__checkmark,[dir=rtl] .mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden),.mdc-chip.mdc-chip--selected .mdc-chip__checkmark[dir=rtl],.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden)[dir=rtl]{margin-left:4px;margin-right:-4px}.mdc-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-chip::-moz-focus-inner{padding:0;border:0}.mdc-chip .mdc-chip__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-chip--exit{opacity:0}.mdc-chip__overflow{text-overflow:ellipsis;overflow:hidden}.mdc-chip__text{white-space:nowrap}.mdc-chip__icon{border-radius:50%;outline:none;vertical-align:middle}.mdc-chip__checkmark{height:20px}.mdc-chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-chip__primary-action:focus{outline:none}.mdc-chip--selected .mdc-chip__checkmark-path{stroke-dashoffset:0}.mdc-chip__icon--leading,.mdc-chip__icon--trailing{position:relative}.mdc-chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip--selected .mdc-chip__checkmark-svg{width:20px}.mdc-chip-set--filter .mdc-chip__icon--leading{transition:opacity 75ms linear;transition-delay:-50ms;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark{transition:opacity 75ms linear;transition-delay:80ms;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark .mdc-chip__checkmark-svg{transition:width 0ms}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading{opacity:0}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading+.mdc-chip__checkmark{width:0;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading{width:0;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading+.mdc-chip__checkmark{width:20px}@keyframes mdc-chip-entry{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.mdc-chip-set .mdc-chip{margin:4px}.mdc-chip-set .mdc-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-chip-set--input .mdc-chip{animation:mdc-chip-entry 100ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-chip{cursor:default}.mat-mdc-chip._mat-animation-noopable{animation:none;transition:none}.mat-mdc-chip._mat-animation-noopable .mdc-chip__checkmark-svg{transition:none}.cdk-high-contrast-active .mat-mdc-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-chip:focus{outline:dotted 2px}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mdc-chip__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-chip__ripple::after,.mdc-chip__ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;content:\"\";pointer-events:none;opacity:0;border-radius:inherit}._mat-animation-noopable .mdc-chip__ripple::after,._mat-animation-noopable .mdc-chip__ripple::before{transition:none}.mat-mdc-chip-disabled.mat-mdc-chip{opacity:.4}.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-trailing-icon,.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-row-focusable-text-content{pointer-events:none}.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::after,.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::before{display:none}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px}.mat-mdc-chip-grid{margin:-4px}.mat-mdc-chip-grid input.mat-mdc-chip-input{margin:4px}._mat-animation-noopable .mdc-chip__checkmark-path{transition:none}.cdk-high-contrast-black-on-white .mdc-chip__checkmark-path{stroke:#000 !important}.mat-mdc-chip-row-focusable-text-content{position:relative}.mat-mdc-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-row-focusable-text-content,.mat-mdc-chip-remove-icon{display:flex;align-items:center}.mat-mdc-chip-content{display:inline-flex}.mdc-chip--editing{background-color:transparent;display:flex;flex-direction:column}.mdc-chip--editing .mat-mdc-chip-content{pointer-events:none;height:0;overflow:hidden}.mat-chip-edit-input{cursor:text;display:inline-block}.mat-mdc-chip-edit-input-container{width:100%;height:100%;display:flex;align-items:center}\n"], directives: [{ type: i3.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0
|
|
803
|
+
MatChipOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipOption, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
804
|
+
MatChipOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MatChipOption, selector: "mat-basic-chip-option, mat-chip-option", inputs: { color: "color", disableRipple: "disableRipple", tabIndex: "tabIndex", selectable: "selectable", selected: "selected" }, outputs: { selectionChange: "selectionChange" }, host: { properties: { "class.mat-mdc-chip-selected": "selected", "class.mat-mdc-chip-multiple": "_chipListMultiple", "class.mat-mdc-chip-disabled": "disabled", "class.mat-mdc-chip-with-avatar": "leadingIcon", "class.mdc-evolution-chip--selectable": "selectable", "class.mdc-evolution-chip--disabled": "disabled", "class.mdc-evolution-chip--with-trailing-action": "_hasTrailingIcon()", "class.mdc-evolution-chip--with-primary-graphic": "_hasLeadingGraphic()", "class.mdc-evolution-chip--with-primary-icon": "leadingIcon", "class.mdc-evolution-chip--with-avatar": "leadingIcon", "class.mat-mdc-chip-highlighted": "highlighted", "class.mat-mdc-chip-with-trailing-icon": "_hasTrailingIcon()", "attr.tabindex": "null", "attr.aria-label": "null", "attr.role": "role", "id": "id" }, classAttribute: "mat-mdc-chip mat-mdc-chip-option mdc-evolution-chip mdc-evolution-chip--filter" }, providers: [{ provide: MatChip, useExisting: MatChipOption }], usesInheritance: true, ngImport: i0, template: "<span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n<span class=\"mat-mdc-chip-focus-overlay\"></span>\n\n<span class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--primary\">\n <button\n matChipAction\n [tabIndex]=\"tabIndex\"\n [disabled]=\"disabled\"\n [attr.aria-selected]=\"ariaSelected\"\n [attr.aria-label]=\"ariaLabel\"\n role=\"option\"\n (blur)=\"_blur()\"\n (focus)=\"focus()\">\n <span class=\"mdc-evolution-chip__graphic mat-mdc-chip-graphic\" *ngIf=\"_hasLeadingGraphic()\">\n <ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n <span class=\"mdc-evolution-chip__checkmark\">\n <svg class=\"mdc-evolution-chip__checkmark-svg\" viewBox=\"-2 -3 30 30\" focusable=\"false\">\n <path class=\"mdc-evolution-chip__checkmark-path\"\n fill=\"none\" stroke=\"currentColor\" d=\"M1.73,12.91 8.1,19.28 22.79,4.59\" />\n </svg>\n </span>\n </span>\n <span class=\"mdc-evolution-chip__text-label mat-mdc-chip-action-label\">\n <ng-content></ng-content>\n <span class=\"mat-mdc-chip-primary-focus-indicator mat-mdc-focus-indicator\"></span>\n </span>\n </button>\n</span>\n\n<span\n class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing\"\n *ngIf=\"_hasTrailingIcon()\">\n <ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n</span>\n", styles: [".mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:\"\";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip{height:32px;border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:20px}.mdc-evolution-chip .mdc-evolution-chip__graphic{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + -4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{border-radius:16px 16px 16px 16px;height:32px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:14px 14px 14px 14px}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:28px}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:28px;width:28px;font-size:28px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:18px;width:18px;font-size:18px}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip.cdk-focused{outline:dotted 2px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:#000 !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}\n"], directives: [{ type: i3.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: MatChipAction, selector: "[matChipAction]", inputs: ["disabled", "tabIndex", "isInteractive"] }, { type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipOption, decorators: [{
|
|
724
806
|
type: Component,
|
|
725
807
|
args: [{ selector: 'mat-basic-chip-option, mat-chip-option', inputs: ['color', 'disableRipple', 'tabIndex'], host: {
|
|
726
|
-
'
|
|
727
|
-
'class': 'mat-mdc-focus-indicator mat-mdc-chip-option',
|
|
728
|
-
'[class.mat-mdc-chip-disabled]': 'disabled',
|
|
729
|
-
'[class.mat-mdc-chip-highlighted]': 'highlighted',
|
|
730
|
-
'[class.mat-mdc-chip-with-avatar]': 'leadingIcon',
|
|
731
|
-
'[class.mat-mdc-chip-with-trailing-icon]': 'trailingIcon || removeIcon',
|
|
808
|
+
'class': 'mat-mdc-chip mat-mdc-chip-option mdc-evolution-chip mdc-evolution-chip--filter',
|
|
732
809
|
'[class.mat-mdc-chip-selected]': 'selected',
|
|
733
810
|
'[class.mat-mdc-chip-multiple]': '_chipListMultiple',
|
|
811
|
+
'[class.mat-mdc-chip-disabled]': 'disabled',
|
|
812
|
+
'[class.mat-mdc-chip-with-avatar]': 'leadingIcon',
|
|
813
|
+
'[class.mdc-evolution-chip--selectable]': 'selectable',
|
|
814
|
+
'[class.mdc-evolution-chip--disabled]': 'disabled',
|
|
815
|
+
'[class.mdc-evolution-chip--with-trailing-action]': '_hasTrailingIcon()',
|
|
816
|
+
'[class.mdc-evolution-chip--with-primary-graphic]': '_hasLeadingGraphic()',
|
|
817
|
+
'[class.mdc-evolution-chip--with-primary-icon]': 'leadingIcon',
|
|
818
|
+
'[class.mdc-evolution-chip--with-avatar]': 'leadingIcon',
|
|
819
|
+
'[class.mat-mdc-chip-highlighted]': 'highlighted',
|
|
820
|
+
'[class.mat-mdc-chip-with-trailing-icon]': '_hasTrailingIcon()',
|
|
821
|
+
'[attr.tabindex]': 'null',
|
|
822
|
+
'[attr.aria-label]': 'null',
|
|
823
|
+
'[attr.role]': 'role',
|
|
734
824
|
'[id]': 'id',
|
|
735
|
-
'[tabIndex]': 'tabIndex',
|
|
736
|
-
'[attr.disabled]': 'disabled || null',
|
|
737
|
-
'[attr.aria-disabled]': 'disabled.toString()',
|
|
738
|
-
'[attr.aria-selected]': 'ariaSelected',
|
|
739
|
-
'(click)': '_click($event)',
|
|
740
|
-
'(keydown)': '_keydown($event)',
|
|
741
|
-
'(focus)': 'focus()',
|
|
742
|
-
'(blur)': '_blur()',
|
|
743
|
-
}, providers: [{ provide: MatChip, useExisting: MatChipOption }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"mdc-chip__ripple\"></span>\n\n<span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n\n<ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n<div class=\"mdc-chip__checkmark\" *ngIf=\"_chipListMultiple\">\n <svg class=\"mdc-chip__checkmark-svg\" viewBox=\"-2 -3 30 30\" focusable=\"false\">\n <path class=\"mdc-chip__checkmark-path\" fill=\"none\" stroke=\"black\"\n d=\"M1.73,12.91 8.1,19.28 22.79,4.59\"/>\n </svg>\n</div>\n<div class=\"mdc-chip__text\"><ng-content></ng-content></div>\n<ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n", styles: [".mdc-chip__icon.mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.mdc-deprecated-chip-trailing-action__icon{height:18px;width:18px;font-size:18px}.mdc-chip__icon.mdc-chip__icon--trailing{width:18px;height:18px;font-size:18px}.mdc-deprecated-chip-trailing-action{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-deprecated-chip-trailing-action,.mdc-deprecated-chip-trailing-action[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-chip__icon--trailing{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-chip__icon--trailing,.mdc-chip__icon--trailing[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip{border-radius:16px;height:32px;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 12px;border-width:0;outline:none;cursor:pointer;-webkit-appearance:none}.mdc-chip .mdc-chip__ripple{border-radius:16px}.mdc-chip.mdc-chip--selected .mdc-chip__checkmark,.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){margin-left:-4px;margin-right:4px}[dir=rtl] .mdc-chip.mdc-chip--selected .mdc-chip__checkmark,[dir=rtl] .mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden),.mdc-chip.mdc-chip--selected .mdc-chip__checkmark[dir=rtl],.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden)[dir=rtl]{margin-left:4px;margin-right:-4px}.mdc-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-chip::-moz-focus-inner{padding:0;border:0}.mdc-chip .mdc-chip__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-chip--exit{opacity:0}.mdc-chip__overflow{text-overflow:ellipsis;overflow:hidden}.mdc-chip__text{white-space:nowrap}.mdc-chip__icon{border-radius:50%;outline:none;vertical-align:middle}.mdc-chip__checkmark{height:20px}.mdc-chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-chip__primary-action:focus{outline:none}.mdc-chip--selected .mdc-chip__checkmark-path{stroke-dashoffset:0}.mdc-chip__icon--leading,.mdc-chip__icon--trailing{position:relative}.mdc-chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip--selected .mdc-chip__checkmark-svg{width:20px}.mdc-chip-set--filter .mdc-chip__icon--leading{transition:opacity 75ms linear;transition-delay:-50ms;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark{transition:opacity 75ms linear;transition-delay:80ms;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark .mdc-chip__checkmark-svg{transition:width 0ms}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading{opacity:0}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading+.mdc-chip__checkmark{width:0;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading{width:0;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading+.mdc-chip__checkmark{width:20px}@keyframes mdc-chip-entry{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.mdc-chip-set .mdc-chip{margin:4px}.mdc-chip-set .mdc-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-chip-set--input .mdc-chip{animation:mdc-chip-entry 100ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-chip{cursor:default}.mat-mdc-chip._mat-animation-noopable{animation:none;transition:none}.mat-mdc-chip._mat-animation-noopable .mdc-chip__checkmark-svg{transition:none}.cdk-high-contrast-active .mat-mdc-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-chip:focus{outline:dotted 2px}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mdc-chip__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-chip__ripple::after,.mdc-chip__ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;content:\"\";pointer-events:none;opacity:0;border-radius:inherit}._mat-animation-noopable .mdc-chip__ripple::after,._mat-animation-noopable .mdc-chip__ripple::before{transition:none}.mat-mdc-chip-disabled.mat-mdc-chip{opacity:.4}.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-trailing-icon,.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-row-focusable-text-content{pointer-events:none}.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::after,.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::before{display:none}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px}.mat-mdc-chip-grid{margin:-4px}.mat-mdc-chip-grid input.mat-mdc-chip-input{margin:4px}._mat-animation-noopable .mdc-chip__checkmark-path{transition:none}.cdk-high-contrast-black-on-white .mdc-chip__checkmark-path{stroke:#000 !important}.mat-mdc-chip-row-focusable-text-content{position:relative}.mat-mdc-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-row-focusable-text-content,.mat-mdc-chip-remove-icon{display:flex;align-items:center}.mat-mdc-chip-content{display:inline-flex}.mdc-chip--editing{background-color:transparent;display:flex;flex-direction:column}.mdc-chip--editing .mat-mdc-chip-content{pointer-events:none;height:0;overflow:hidden}.mat-chip-edit-input{cursor:text;display:inline-block}.mat-mdc-chip-edit-input-container{width:100%;height:100%;display:flex;align-items:center}\n"] }]
|
|
825
|
+
}, providers: [{ provide: MatChip, useExisting: MatChipOption }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n<span class=\"mat-mdc-chip-focus-overlay\"></span>\n\n<span class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--primary\">\n <button\n matChipAction\n [tabIndex]=\"tabIndex\"\n [disabled]=\"disabled\"\n [attr.aria-selected]=\"ariaSelected\"\n [attr.aria-label]=\"ariaLabel\"\n role=\"option\"\n (blur)=\"_blur()\"\n (focus)=\"focus()\">\n <span class=\"mdc-evolution-chip__graphic mat-mdc-chip-graphic\" *ngIf=\"_hasLeadingGraphic()\">\n <ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n <span class=\"mdc-evolution-chip__checkmark\">\n <svg class=\"mdc-evolution-chip__checkmark-svg\" viewBox=\"-2 -3 30 30\" focusable=\"false\">\n <path class=\"mdc-evolution-chip__checkmark-path\"\n fill=\"none\" stroke=\"currentColor\" d=\"M1.73,12.91 8.1,19.28 22.79,4.59\" />\n </svg>\n </span>\n </span>\n <span class=\"mdc-evolution-chip__text-label mat-mdc-chip-action-label\">\n <ng-content></ng-content>\n <span class=\"mat-mdc-chip-primary-focus-indicator mat-mdc-focus-indicator\"></span>\n </span>\n </button>\n</span>\n\n<span\n class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing\"\n *ngIf=\"_hasTrailingIcon()\">\n <ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n</span>\n", styles: [".mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:\"\";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip{height:32px;border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:20px}.mdc-evolution-chip .mdc-evolution-chip__graphic{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + -4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{border-radius:16px 16px 16px 16px;height:32px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:14px 14px 14px 14px}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:28px}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:28px;width:28px;font-size:28px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:18px;width:18px;font-size:18px}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip.cdk-focused{outline:dotted 2px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:#000 !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}\n"] }]
|
|
744
826
|
}], propDecorators: { selectable: [{
|
|
745
827
|
type: Input
|
|
746
828
|
}], selected: [{
|
|
@@ -788,14 +870,14 @@ class MatChipEditInput {
|
|
|
788
870
|
sel.addRange(range);
|
|
789
871
|
}
|
|
790
872
|
}
|
|
791
|
-
MatChipEditInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
792
|
-
MatChipEditInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0
|
|
793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0
|
|
873
|
+
MatChipEditInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipEditInput, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
874
|
+
MatChipEditInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MatChipEditInput, selector: "span[matChipEditInput]", host: { attributes: { "role": "textbox", "tabindex": "-1", "contenteditable": "true" }, classAttribute: "mat-chip-edit-input" }, ngImport: i0 });
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipEditInput, decorators: [{
|
|
794
876
|
type: Directive,
|
|
795
877
|
args: [{
|
|
796
878
|
selector: 'span[matChipEditInput]',
|
|
797
879
|
host: {
|
|
798
|
-
'class': '
|
|
880
|
+
'class': 'mat-chip-edit-input',
|
|
799
881
|
'role': 'textbox',
|
|
800
882
|
'tabindex': '-1',
|
|
801
883
|
'contenteditable': 'true',
|
|
@@ -818,121 +900,105 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
818
900
|
* the matChipInputFor directive.
|
|
819
901
|
*/
|
|
820
902
|
class MatChipRow extends MatChip {
|
|
821
|
-
constructor(
|
|
822
|
-
super(changeDetectorRef, elementRef, ngZone, dir, animationMode, globalRippleOptions);
|
|
823
|
-
this._document = _document;
|
|
903
|
+
constructor(changeDetectorRef, elementRef, ngZone, focusMonitor, _document, dir, animationMode, globalRippleOptions, tabIndex) {
|
|
904
|
+
super(changeDetectorRef, elementRef, ngZone, focusMonitor, _document, dir, animationMode, globalRippleOptions, tabIndex);
|
|
824
905
|
this.basicChipAttrName = 'mat-basic-chip-row';
|
|
825
906
|
this.editable = false;
|
|
826
907
|
/** Emitted when the chip is edited. */
|
|
827
908
|
this.edited = new EventEmitter();
|
|
909
|
+
this._isEditing = false;
|
|
910
|
+
this.role = 'row';
|
|
828
911
|
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
// Defer setting the value in order to avoid the "Expression
|
|
833
|
-
// has changed after it was checked" errors from Angular.
|
|
834
|
-
setTimeout(() => {
|
|
835
|
-
// removeIcon has tabIndex 0 for regular chips, but should only be focusable by
|
|
836
|
-
// the GridFocusKeyManager for row chips.
|
|
837
|
-
this.removeIcon.tabIndex = -1;
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
ngAfterViewInit() {
|
|
842
|
-
super.ngAfterViewInit();
|
|
843
|
-
this.cells = this.removeIcon
|
|
844
|
-
? [this.chipContent.nativeElement, this.removeIcon._elementRef.nativeElement]
|
|
845
|
-
: [this.chipContent.nativeElement];
|
|
846
|
-
}
|
|
847
|
-
/**
|
|
848
|
-
* Allows for programmatic focusing of the chip.
|
|
849
|
-
* Sends focus to the first grid cell. The row chip element itself
|
|
850
|
-
* is never focused.
|
|
851
|
-
*/
|
|
852
|
-
focus() {
|
|
853
|
-
if (this.disabled) {
|
|
854
|
-
return;
|
|
855
|
-
}
|
|
856
|
-
if (!this._hasFocusInternal) {
|
|
857
|
-
this._onFocus.next({ chip: this });
|
|
858
|
-
}
|
|
859
|
-
this.chipContent.nativeElement.focus();
|
|
912
|
+
_hasTrailingIcon() {
|
|
913
|
+
// The trailing icon is hidden while editing.
|
|
914
|
+
return !this._isEditing && super._hasTrailingIcon();
|
|
860
915
|
}
|
|
861
916
|
/**
|
|
862
917
|
* Emits a blur event when one of the gridcells loses focus, unless focus moved
|
|
863
918
|
* to the other gridcell.
|
|
864
919
|
*/
|
|
865
|
-
_focusout(
|
|
920
|
+
_focusout() {
|
|
866
921
|
if (this._focusoutTimeout) {
|
|
867
922
|
clearTimeout(this._focusoutTimeout);
|
|
868
923
|
}
|
|
869
924
|
// Wait to see if focus moves to the other gridcell
|
|
870
|
-
this._focusoutTimeout = setTimeout(() => {
|
|
925
|
+
this._focusoutTimeout = window.setTimeout(() => {
|
|
926
|
+
if (this._isEditing) {
|
|
927
|
+
this._onEditFinish();
|
|
928
|
+
}
|
|
871
929
|
this._hasFocusInternal = false;
|
|
872
930
|
this._onBlur.next({ chip: this });
|
|
873
|
-
this._handleInteraction(event);
|
|
874
931
|
});
|
|
875
932
|
}
|
|
876
933
|
/** Records that the chip has focus when one of the gridcells is focused. */
|
|
877
|
-
_focusin(
|
|
934
|
+
_focusin() {
|
|
878
935
|
if (this._focusoutTimeout) {
|
|
879
936
|
clearTimeout(this._focusoutTimeout);
|
|
880
937
|
this._focusoutTimeout = null;
|
|
881
938
|
}
|
|
882
939
|
this._hasFocusInternal = true;
|
|
883
|
-
this._handleInteraction(event);
|
|
884
940
|
}
|
|
885
941
|
/** Sends focus to the first gridcell when the user clicks anywhere inside the chip. */
|
|
886
942
|
_mousedown(event) {
|
|
887
|
-
if (this._isEditing
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
943
|
+
if (!this._isEditing) {
|
|
944
|
+
if (!this.disabled) {
|
|
945
|
+
this.focus();
|
|
946
|
+
}
|
|
947
|
+
event.preventDefault();
|
|
892
948
|
}
|
|
893
|
-
event.preventDefault();
|
|
894
|
-
}
|
|
895
|
-
_dblclick(event) {
|
|
896
|
-
this._handleInteraction(event);
|
|
897
949
|
}
|
|
898
950
|
/** Handles custom key presses. */
|
|
899
951
|
_keydown(event) {
|
|
900
952
|
if (this.disabled) {
|
|
901
953
|
return;
|
|
902
954
|
}
|
|
903
|
-
if (this._isEditing()) {
|
|
904
|
-
this._handleInteraction(event);
|
|
905
|
-
return;
|
|
906
|
-
}
|
|
907
955
|
switch (event.keyCode) {
|
|
956
|
+
case ENTER:
|
|
957
|
+
if (this._isEditing) {
|
|
958
|
+
event.preventDefault();
|
|
959
|
+
// Wrap in a timeout so the timing is consistent as when it is emitted in `focusout`.
|
|
960
|
+
setTimeout(() => this._onEditFinish());
|
|
961
|
+
}
|
|
962
|
+
else if (this.editable) {
|
|
963
|
+
this._startEditing();
|
|
964
|
+
}
|
|
965
|
+
break;
|
|
908
966
|
case DELETE:
|
|
909
967
|
case BACKSPACE:
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
968
|
+
if (!this._isEditing) {
|
|
969
|
+
// Remove the focused chip
|
|
970
|
+
this.remove();
|
|
971
|
+
// Always prevent so page navigation does not occur
|
|
972
|
+
event.preventDefault();
|
|
973
|
+
}
|
|
914
974
|
break;
|
|
915
|
-
default:
|
|
916
|
-
this._handleInteraction(event);
|
|
917
975
|
}
|
|
918
976
|
}
|
|
919
|
-
|
|
920
|
-
|
|
977
|
+
_doubleclick() {
|
|
978
|
+
if (!this.disabled && this.editable) {
|
|
979
|
+
this._startEditing();
|
|
980
|
+
}
|
|
921
981
|
}
|
|
922
|
-
|
|
982
|
+
_startEditing() {
|
|
983
|
+
// The value depends on the DOM so we need to extract it before we flip the flag.
|
|
984
|
+
const value = this.value;
|
|
985
|
+
// Make the primary action non-interactive so that it doesn't
|
|
986
|
+
// navigate when the user presses the arrow keys while editing.
|
|
987
|
+
this.primaryAction.isInteractive = false;
|
|
988
|
+
this._isEditing = true;
|
|
923
989
|
// Defer initializing the input so it has time to be added to the DOM.
|
|
924
|
-
setTimeout(() =>
|
|
925
|
-
this._getEditInput().initialize(this.value);
|
|
926
|
-
});
|
|
990
|
+
setTimeout(() => this._getEditInput().initialize(value));
|
|
927
991
|
}
|
|
928
992
|
_onEditFinish() {
|
|
929
993
|
// If the edit input is still focused or focus was returned to the body after it was destroyed,
|
|
930
994
|
// return focus to the chip contents.
|
|
931
995
|
if (this._document.activeElement === this._getEditInput().getNativeElement() ||
|
|
932
996
|
this._document.activeElement === this._document.body) {
|
|
933
|
-
this.
|
|
997
|
+
this.primaryAction.focus();
|
|
934
998
|
}
|
|
935
999
|
this.edited.emit({ chip: this, value: this._getEditInput().getValue() });
|
|
1000
|
+
this.primaryAction.isInteractive = true;
|
|
1001
|
+
this._isEditing = false;
|
|
936
1002
|
}
|
|
937
1003
|
/**
|
|
938
1004
|
* Gets the projected chip edit input, or the default input if none is projected in. One of these
|
|
@@ -942,32 +1008,37 @@ class MatChipRow extends MatChip {
|
|
|
942
1008
|
return this.contentEditInput || this.defaultEditInput;
|
|
943
1009
|
}
|
|
944
1010
|
}
|
|
945
|
-
MatChipRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
946
|
-
MatChipRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0-next.3", type: MatChipRow, selector: "mat-chip-row, mat-basic-chip-row", inputs: { color: "color", disableRipple: "disableRipple", tabIndex: "tabIndex", editable: "editable" }, outputs: { edited: "edited" }, host: { attributes: { "role": "row" }, listeners: { "mousedown": "_mousedown($event)", "dblclick": "_dblclick($event)", "keydown": "_keydown($event)", "focusin": "_focusin($event)", "focusout": "_focusout($event)" }, properties: { "class.mat-mdc-chip-disabled": "disabled", "class.mat-mdc-chip-highlighted": "highlighted", "class.mat-mdc-chip-with-avatar": "leadingIcon", "class.mat-mdc-chip-with-trailing-icon": "trailingIcon || removeIcon", "class.mdc-chip--editable": "editable", "id": "id", "attr.disabled": "disabled || null", "attr.aria-disabled": "disabled.toString()", "tabIndex": "tabIndex" }, classAttribute: "mat-mdc-chip-row" }, providers: [{ provide: MatChip, useExisting: MatChipRow }], queries: [{ propertyName: "contentEditInput", first: true, predicate: MatChipEditInput, descendants: true }], viewQueries: [{ propertyName: "chipContent", first: true, predicate: ["chipContent"], descendants: true }, { propertyName: "defaultEditInput", first: true, predicate: MatChipEditInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!_isEditing()\">\n <span class=\"mdc-chip__ripple\"></span>\n\n <span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n</ng-container>\n\n<div class=\"mat-mdc-chip-content\">\n <div role=\"gridcell\">\n <div #chipContent tabindex=\"-1\"\n class=\"mat-mdc-chip-row-focusable-text-content mat-mdc-focus-indicator mdc-chip__primary-action\"\n [attr.role]=\"editable ? 'button' : null\">\n <ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n <span class=\"mdc-chip__text\"><ng-content></ng-content></span>\n <ng-content select=\"mat-chip-trailing-icon,[matChipTrailingIcon]\"></ng-content>\n </div>\n </div>\n <div role=\"gridcell\" *ngIf=\"removeIcon\" class=\"mat-mdc-chip-remove-icon\">\n <ng-content select=\"[matChipRemove]\"></ng-content>\n </div>\n</div>\n\n<div *ngIf=\"_isEditing()\" role=\"gridcell\" class=\"mat-mdc-chip-edit-input-container\">\n <ng-content *ngIf=\"contentEditInput; else defaultMatChipEditInput\"\n select=\"[matChipEditInput]\"></ng-content>\n <ng-template #defaultMatChipEditInput>\n <span matChipEditInput></span>\n </ng-template>\n</div>\n", styles: [".mdc-chip__icon.mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.mdc-deprecated-chip-trailing-action__icon{height:18px;width:18px;font-size:18px}.mdc-chip__icon.mdc-chip__icon--trailing{width:18px;height:18px;font-size:18px}.mdc-deprecated-chip-trailing-action{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-deprecated-chip-trailing-action,.mdc-deprecated-chip-trailing-action[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-chip__icon--trailing{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-chip__icon--trailing,.mdc-chip__icon--trailing[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip{border-radius:16px;height:32px;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 12px;border-width:0;outline:none;cursor:pointer;-webkit-appearance:none}.mdc-chip .mdc-chip__ripple{border-radius:16px}.mdc-chip.mdc-chip--selected .mdc-chip__checkmark,.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){margin-left:-4px;margin-right:4px}[dir=rtl] .mdc-chip.mdc-chip--selected .mdc-chip__checkmark,[dir=rtl] .mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden),.mdc-chip.mdc-chip--selected .mdc-chip__checkmark[dir=rtl],.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden)[dir=rtl]{margin-left:4px;margin-right:-4px}.mdc-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-chip::-moz-focus-inner{padding:0;border:0}.mdc-chip .mdc-chip__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-chip--exit{opacity:0}.mdc-chip__overflow{text-overflow:ellipsis;overflow:hidden}.mdc-chip__text{white-space:nowrap}.mdc-chip__icon{border-radius:50%;outline:none;vertical-align:middle}.mdc-chip__checkmark{height:20px}.mdc-chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-chip__primary-action:focus{outline:none}.mdc-chip--selected .mdc-chip__checkmark-path{stroke-dashoffset:0}.mdc-chip__icon--leading,.mdc-chip__icon--trailing{position:relative}.mdc-chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip--selected .mdc-chip__checkmark-svg{width:20px}.mdc-chip-set--filter .mdc-chip__icon--leading{transition:opacity 75ms linear;transition-delay:-50ms;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark{transition:opacity 75ms linear;transition-delay:80ms;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark .mdc-chip__checkmark-svg{transition:width 0ms}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading{opacity:0}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading+.mdc-chip__checkmark{width:0;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading{width:0;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading+.mdc-chip__checkmark{width:20px}@keyframes mdc-chip-entry{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.mdc-chip-set .mdc-chip{margin:4px}.mdc-chip-set .mdc-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-chip-set--input .mdc-chip{animation:mdc-chip-entry 100ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-chip{cursor:default}.mat-mdc-chip._mat-animation-noopable{animation:none;transition:none}.mat-mdc-chip._mat-animation-noopable .mdc-chip__checkmark-svg{transition:none}.cdk-high-contrast-active .mat-mdc-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-chip:focus{outline:dotted 2px}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mdc-chip__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-chip__ripple::after,.mdc-chip__ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;content:\"\";pointer-events:none;opacity:0;border-radius:inherit}._mat-animation-noopable .mdc-chip__ripple::after,._mat-animation-noopable .mdc-chip__ripple::before{transition:none}.mat-mdc-chip-disabled.mat-mdc-chip{opacity:.4}.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-trailing-icon,.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-row-focusable-text-content{pointer-events:none}.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::after,.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::before{display:none}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px}.mat-mdc-chip-grid{margin:-4px}.mat-mdc-chip-grid input.mat-mdc-chip-input{margin:4px}._mat-animation-noopable .mdc-chip__checkmark-path{transition:none}.cdk-high-contrast-black-on-white .mdc-chip__checkmark-path{stroke:#000 !important}.mat-mdc-chip-row-focusable-text-content{position:relative}.mat-mdc-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-row-focusable-text-content,.mat-mdc-chip-remove-icon{display:flex;align-items:center}.mat-mdc-chip-content{display:inline-flex}.mdc-chip--editing{background-color:transparent;display:flex;flex-direction:column}.mdc-chip--editing .mat-mdc-chip-content{pointer-events:none;height:0;overflow:hidden}.mat-chip-edit-input{cursor:text;display:inline-block}.mat-mdc-chip-edit-input-container{width:100%;height:100%;display:flex;align-items:center}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: MatChipEditInput, selector: "span[matChipEditInput]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0
|
|
1011
|
+
MatChipRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipRow, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.FocusMonitor }, { token: DOCUMENT }, { token: i2.Directionality, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1012
|
+
MatChipRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MatChipRow, selector: "mat-chip-row, mat-basic-chip-row", inputs: { color: "color", disableRipple: "disableRipple", tabIndex: "tabIndex", editable: "editable" }, outputs: { edited: "edited" }, host: { listeners: { "mousedown": "_mousedown($event)", "keydown": "_keydown($event)", "dblclick": "_doubleclick()", "focusin": "_focusin($event)", "focusout": "_focusout($event)" }, properties: { "class.mat-mdc-chip-with-avatar": "leadingIcon", "class.mat-mdc-chip-disabled": "disabled", "class.mat-mdc-chip-editing": "_isEditing", "class.mat-mdc-chip-editable": "editable", "class.mdc-evolution-chip--disabled": "disabled", "class.mdc-evolution-chip--with-trailing-action": "_hasTrailingIcon()", "class.mdc-evolution-chip--with-primary-graphic": "leadingIcon", "class.mdc-evolution-chip--with-primary-icon": "leadingIcon", "class.mdc-evolution-chip--with-avatar": "leadingIcon", "class.mat-mdc-chip-highlighted": "highlighted", "class.mat-mdc-chip-with-trailing-icon": "_hasTrailingIcon()", "id": "id", "attr.tabindex": "null", "attr.aria-label": "null", "attr.role": "role" }, classAttribute: "mat-mdc-chip mat-mdc-chip-row mdc-evolution-chip" }, providers: [{ provide: MatChip, useExisting: MatChipRow }], queries: [{ propertyName: "contentEditInput", first: true, predicate: MatChipEditInput, descendants: true }], viewQueries: [{ propertyName: "defaultEditInput", first: true, predicate: MatChipEditInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!_isEditing\">\n <span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n <span class=\"mat-mdc-chip-focus-overlay\"></span>\n</ng-container>\n\n\n<span class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--primary\" role=\"gridcell\">\n <button\n matChipAction\n [tabIndex]=\"tabIndex\"\n [disabled]=\"disabled\"\n [attr.aria-label]=\"ariaLabel\">\n <span class=\"mdc-evolution-chip__graphic mat-mdc-chip-graphic\" *ngIf=\"leadingIcon\">\n <ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n </span>\n <span class=\"mdc-evolution-chip__text-label mat-mdc-chip-action-label\" [ngSwitch]=\"_isEditing\">\n <ng-container *ngSwitchCase=\"false\"><ng-content></ng-content></ng-container>\n\n <ng-container *ngSwitchCase=\"true\">\n <ng-content *ngIf=\"contentEditInput; else defaultMatChipEditInput\"\n select=\"[matChipEditInput]\"></ng-content>\n <ng-template #defaultMatChipEditInput><span matChipEditInput></span></ng-template>\n </ng-container>\n\n <span class=\"mat-mdc-chip-primary-focus-indicator mat-mdc-focus-indicator\"></span>\n </span>\n </button>\n</span>\n\n<span\n class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing\"\n *ngIf=\"_hasTrailingIcon()\">\n <ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n</span>\n", styles: [".mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:\"\";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip{height:32px;border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:20px}.mdc-evolution-chip .mdc-evolution-chip__graphic{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + -4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{border-radius:16px 16px 16px 16px;height:32px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:14px 14px 14px 14px}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:28px}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:28px;width:28px;font-size:28px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:18px;width:18px;font-size:18px}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip.cdk-focused{outline:dotted 2px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:#000 !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}\n"], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: MatChipAction, selector: "[matChipAction]", inputs: ["disabled", "tabIndex", "isInteractive"] }, { type: i3$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: MatChipEditInput, selector: "span[matChipEditInput]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipRow, decorators: [{
|
|
948
1014
|
type: Component,
|
|
949
1015
|
args: [{ selector: 'mat-chip-row, mat-basic-chip-row', inputs: ['color', 'disableRipple', 'tabIndex'], host: {
|
|
950
|
-
'
|
|
951
|
-
'class
|
|
1016
|
+
'class': 'mat-mdc-chip mat-mdc-chip-row mdc-evolution-chip',
|
|
1017
|
+
'[class.mat-mdc-chip-with-avatar]': 'leadingIcon',
|
|
952
1018
|
'[class.mat-mdc-chip-disabled]': 'disabled',
|
|
1019
|
+
'[class.mat-mdc-chip-editing]': '_isEditing',
|
|
1020
|
+
'[class.mat-mdc-chip-editable]': 'editable',
|
|
1021
|
+
'[class.mdc-evolution-chip--disabled]': 'disabled',
|
|
1022
|
+
'[class.mdc-evolution-chip--with-trailing-action]': '_hasTrailingIcon()',
|
|
1023
|
+
'[class.mdc-evolution-chip--with-primary-graphic]': 'leadingIcon',
|
|
1024
|
+
'[class.mdc-evolution-chip--with-primary-icon]': 'leadingIcon',
|
|
1025
|
+
'[class.mdc-evolution-chip--with-avatar]': 'leadingIcon',
|
|
953
1026
|
'[class.mat-mdc-chip-highlighted]': 'highlighted',
|
|
954
|
-
'[class.mat-mdc-chip-with-
|
|
955
|
-
'[class.mat-mdc-chip-with-trailing-icon]': 'trailingIcon || removeIcon',
|
|
956
|
-
'[class.mdc-chip--editable]': 'editable',
|
|
1027
|
+
'[class.mat-mdc-chip-with-trailing-icon]': '_hasTrailingIcon()',
|
|
957
1028
|
'[id]': 'id',
|
|
958
|
-
'[attr.
|
|
959
|
-
'[attr.aria-
|
|
960
|
-
'[
|
|
1029
|
+
'[attr.tabindex]': 'null',
|
|
1030
|
+
'[attr.aria-label]': 'null',
|
|
1031
|
+
'[attr.role]': 'role',
|
|
961
1032
|
'(mousedown)': '_mousedown($event)',
|
|
962
|
-
'(dblclick)': '_dblclick($event)',
|
|
963
1033
|
'(keydown)': '_keydown($event)',
|
|
1034
|
+
'(dblclick)': '_doubleclick()',
|
|
964
1035
|
'(focusin)': '_focusin($event)',
|
|
965
1036
|
'(focusout)': '_focusout($event)',
|
|
966
|
-
}, providers: [{ provide: MatChip, useExisting: MatChipRow }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"!_isEditing()\">\n <span class=\"mdc-chip__ripple\"></span>\n\n <span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n</ng-container>\n\n<div class=\"mat-mdc-chip-content\">\n <div role=\"gridcell\">\n <div #chipContent tabindex=\"-1\"\n class=\"mat-mdc-chip-row-focusable-text-content mat-mdc-focus-indicator mdc-chip__primary-action\"\n [attr.role]=\"editable ? 'button' : null\">\n <ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n <span class=\"mdc-chip__text\"><ng-content></ng-content></span>\n <ng-content select=\"mat-chip-trailing-icon,[matChipTrailingIcon]\"></ng-content>\n </div>\n </div>\n <div role=\"gridcell\" *ngIf=\"removeIcon\" class=\"mat-mdc-chip-remove-icon\">\n <ng-content select=\"[matChipRemove]\"></ng-content>\n </div>\n</div>\n\n<div *ngIf=\"_isEditing()\" role=\"gridcell\" class=\"mat-mdc-chip-edit-input-container\">\n <ng-content *ngIf=\"contentEditInput; else defaultMatChipEditInput\"\n select=\"[matChipEditInput]\"></ng-content>\n <ng-template #defaultMatChipEditInput>\n <span matChipEditInput></span>\n </ng-template>\n</div>\n", styles: [".mdc-chip__icon.mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){width:20px;height:20px;font-size:20px}.mdc-deprecated-chip-trailing-action__icon{height:18px;width:18px;font-size:18px}.mdc-chip__icon.mdc-chip__icon--trailing{width:18px;height:18px;font-size:18px}.mdc-deprecated-chip-trailing-action{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-deprecated-chip-trailing-action,.mdc-deprecated-chip-trailing-action[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-chip__icon--trailing{margin-left:4px;margin-right:-4px}[dir=rtl] .mdc-chip__icon--trailing,.mdc-chip__icon--trailing[dir=rtl]{margin-left:-4px;margin-right:4px}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip{border-radius:16px;height:32px;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 12px;border-width:0;outline:none;cursor:pointer;-webkit-appearance:none}.mdc-chip .mdc-chip__ripple{border-radius:16px}.mdc-chip.mdc-chip--selected .mdc-chip__checkmark,.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden){margin-left:-4px;margin-right:4px}[dir=rtl] .mdc-chip.mdc-chip--selected .mdc-chip__checkmark,[dir=rtl] .mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden),.mdc-chip.mdc-chip--selected .mdc-chip__checkmark[dir=rtl],.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden)[dir=rtl]{margin-left:4px;margin-right:-4px}.mdc-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-chip::-moz-focus-inner{padding:0;border:0}.mdc-chip .mdc-chip__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-chip--exit{opacity:0}.mdc-chip__overflow{text-overflow:ellipsis;overflow:hidden}.mdc-chip__text{white-space:nowrap}.mdc-chip__icon{border-radius:50%;outline:none;vertical-align:middle}.mdc-chip__checkmark{height:20px}.mdc-chip__checkmark-path{transition:stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);stroke-width:2px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-chip__primary-action:focus{outline:none}.mdc-chip--selected .mdc-chip__checkmark-path{stroke-dashoffset:0}.mdc-chip__icon--leading,.mdc-chip__icon--trailing{position:relative}.mdc-chip__checkmark-svg{width:0;height:20px;transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-chip--selected .mdc-chip__checkmark-svg{width:20px}.mdc-chip-set--filter .mdc-chip__icon--leading{transition:opacity 75ms linear;transition-delay:-50ms;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark{transition:opacity 75ms linear;transition-delay:80ms;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading+.mdc-chip__checkmark .mdc-chip__checkmark-svg{transition:width 0ms}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading{opacity:0}.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading+.mdc-chip__checkmark{width:0;opacity:1}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading{width:0;opacity:0}.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading+.mdc-chip__checkmark{width:20px}@keyframes mdc-chip-entry{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-chip-set{padding:4px;display:flex;flex-wrap:wrap;box-sizing:border-box}.mdc-chip-set .mdc-chip{margin:4px}.mdc-chip-set .mdc-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-chip-set--input .mdc-chip{animation:mdc-chip-entry 100ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-chip{cursor:default}.mat-mdc-chip._mat-animation-noopable{animation:none;transition:none}.mat-mdc-chip._mat-animation-noopable .mdc-chip__checkmark-svg{transition:none}.cdk-high-contrast-active .mat-mdc-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-chip:focus{outline:dotted 2px}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mdc-chip__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-chip__ripple::after,.mdc-chip__ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;content:\"\";pointer-events:none;opacity:0;border-radius:inherit}._mat-animation-noopable .mdc-chip__ripple::after,._mat-animation-noopable .mdc-chip__ripple::before{transition:none}.mat-mdc-chip-disabled.mat-mdc-chip{opacity:.4}.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-trailing-icon,.mat-mdc-chip-disabled.mat-mdc-chip .mat-mdc-chip-row-focusable-text-content{pointer-events:none}.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::after,.mat-mdc-chip-disabled.mat-mdc-chip .mdc-chip__ripple::before{display:none}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px}.mat-mdc-chip-grid{margin:-4px}.mat-mdc-chip-grid input.mat-mdc-chip-input{margin:4px}._mat-animation-noopable .mdc-chip__checkmark-path{transition:none}.cdk-high-contrast-black-on-white .mdc-chip__checkmark-path{stroke:#000 !important}.mat-mdc-chip-row-focusable-text-content{position:relative}.mat-mdc-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-row-focusable-text-content,.mat-mdc-chip-remove-icon{display:flex;align-items:center}.mat-mdc-chip-content{display:inline-flex}.mdc-chip--editing{background-color:transparent;display:flex;flex-direction:column}.mdc-chip--editing .mat-mdc-chip-content{pointer-events:none;height:0;overflow:hidden}.mat-chip-edit-input{cursor:text;display:inline-block}.mat-mdc-chip-edit-input-container{width:100%;height:100%;display:flex;align-items:center}\n"] }]
|
|
967
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1037
|
+
}, providers: [{ provide: MatChip, useExisting: MatChipRow }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"!_isEditing\">\n <span matRipple class=\"mat-mdc-chip-ripple\"\n [matRippleDisabled]=\"_isRippleDisabled()\"\n [matRippleCentered]=\"_isRippleCentered\"\n [matRippleTrigger]=\"_elementRef.nativeElement\"></span>\n <span class=\"mat-mdc-chip-focus-overlay\"></span>\n</ng-container>\n\n\n<span class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--primary\" role=\"gridcell\">\n <button\n matChipAction\n [tabIndex]=\"tabIndex\"\n [disabled]=\"disabled\"\n [attr.aria-label]=\"ariaLabel\">\n <span class=\"mdc-evolution-chip__graphic mat-mdc-chip-graphic\" *ngIf=\"leadingIcon\">\n <ng-content select=\"mat-chip-avatar, [matChipAvatar]\"></ng-content>\n </span>\n <span class=\"mdc-evolution-chip__text-label mat-mdc-chip-action-label\" [ngSwitch]=\"_isEditing\">\n <ng-container *ngSwitchCase=\"false\"><ng-content></ng-content></ng-container>\n\n <ng-container *ngSwitchCase=\"true\">\n <ng-content *ngIf=\"contentEditInput; else defaultMatChipEditInput\"\n select=\"[matChipEditInput]\"></ng-content>\n <ng-template #defaultMatChipEditInput><span matChipEditInput></span></ng-template>\n </ng-container>\n\n <span class=\"mat-mdc-chip-primary-focus-indicator mat-mdc-focus-indicator\"></span>\n </span>\n </button>\n</span>\n\n<span\n class=\"mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing\"\n *ngIf=\"_hasTrailingIcon()\">\n <ng-content select=\"mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]\"></ng-content>\n</span>\n", styles: [".mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:\"\";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip{height:32px;border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:20px}.mdc-evolution-chip .mdc-evolution-chip__graphic{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + -4px\n )}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{content:\"\";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring::after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring::after{border-color:CanvasText}}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{border-radius:16px 16px 16px 16px;height:32px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:16px 16px 16px 16px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:14px 14px 14px 14px}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:28px}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:28px;width:28px;font-size:28px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:18px;width:18px;font-size:18px}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip.cdk-focused{outline:dotted 2px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:#000 !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}\n"] }]
|
|
1038
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.FocusMonitor }, { type: undefined, decorators: [{
|
|
968
1039
|
type: Inject,
|
|
969
1040
|
args: [DOCUMENT]
|
|
970
|
-
}] }, { type:
|
|
1041
|
+
}] }, { type: i2.Directionality, decorators: [{
|
|
971
1042
|
type: Optional
|
|
972
1043
|
}] }, { type: undefined, decorators: [{
|
|
973
1044
|
type: Optional
|
|
@@ -979,13 +1050,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
979
1050
|
}, {
|
|
980
1051
|
type: Inject,
|
|
981
1052
|
args: [MAT_RIPPLE_GLOBAL_OPTIONS]
|
|
1053
|
+
}] }, { type: undefined, decorators: [{
|
|
1054
|
+
type: Attribute,
|
|
1055
|
+
args: ['tabindex']
|
|
982
1056
|
}] }]; }, propDecorators: { editable: [{
|
|
983
1057
|
type: Input
|
|
984
1058
|
}], edited: [{
|
|
985
1059
|
type: Output
|
|
986
|
-
}], chipContent: [{
|
|
987
|
-
type: ViewChild,
|
|
988
|
-
args: ['chipContent']
|
|
989
1060
|
}], defaultEditInput: [{
|
|
990
1061
|
type: ViewChild,
|
|
991
1062
|
args: [MatChipEditInput]
|
|
@@ -1001,7 +1072,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
1001
1072
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1002
1073
|
* found in the LICENSE file at https://angular.io/license
|
|
1003
1074
|
*/
|
|
1004
|
-
let uid = 0;
|
|
1005
1075
|
/**
|
|
1006
1076
|
* Boilerplate for applying mixins to MatChipSet.
|
|
1007
1077
|
* @docs-private
|
|
@@ -1016,11 +1086,12 @@ const _MatChipSetMixinBase = mixinTabIndex(MatChipSetBase);
|
|
|
1016
1086
|
* Extended by MatChipListbox and MatChipGrid for different interaction patterns.
|
|
1017
1087
|
*/
|
|
1018
1088
|
class MatChipSet extends _MatChipSetMixinBase {
|
|
1019
|
-
constructor(_elementRef, _changeDetectorRef
|
|
1089
|
+
constructor(_liveAnnouncer, _document, _elementRef, _changeDetectorRef) {
|
|
1020
1090
|
super(_elementRef);
|
|
1091
|
+
this._liveAnnouncer = _liveAnnouncer;
|
|
1092
|
+
this._document = _document;
|
|
1021
1093
|
this._elementRef = _elementRef;
|
|
1022
1094
|
this._changeDetectorRef = _changeDetectorRef;
|
|
1023
|
-
this._dir = _dir;
|
|
1024
1095
|
/**
|
|
1025
1096
|
* When a chip is destroyed, we store the index of the destroyed chip until the chips
|
|
1026
1097
|
* query list notifies about the update. This is necessary because we cannot determine an
|
|
@@ -1034,23 +1105,42 @@ class MatChipSet extends _MatChipSetMixinBase {
|
|
|
1034
1105
|
* These methods are called by the chip set foundation.
|
|
1035
1106
|
*/
|
|
1036
1107
|
this._chipSetAdapter = {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1108
|
+
announceMessage: message => this._liveAnnouncer.announce(message),
|
|
1109
|
+
emitEvent: (eventName, eventDetail) => {
|
|
1110
|
+
emitCustomEvent(this._elementRef.nativeElement, this._document, eventName, eventDetail, true);
|
|
1111
|
+
},
|
|
1112
|
+
getAttribute: name => this._elementRef.nativeElement.getAttribute(name),
|
|
1113
|
+
getChipActionsAtIndex: index => this._chipFoundation(index)?.getActions() || [],
|
|
1114
|
+
getChipCount: () => this._chips.length,
|
|
1115
|
+
getChipIdAtIndex: index => this._chipFoundation(index)?.getElementID() || '',
|
|
1116
|
+
getChipIndexById: id => {
|
|
1117
|
+
return this._chips.toArray().findIndex(chip => chip._getFoundation().getElementID() === id);
|
|
1118
|
+
},
|
|
1119
|
+
isChipFocusableAtIndex: (index, actionType) => {
|
|
1120
|
+
return this._chipFoundation(index)?.isActionFocusable(actionType) || false;
|
|
1121
|
+
},
|
|
1122
|
+
isChipSelectableAtIndex: (index, actionType) => {
|
|
1123
|
+
return this._chipFoundation(index)?.isActionSelectable(actionType) || false;
|
|
1124
|
+
},
|
|
1125
|
+
isChipSelectedAtIndex: (index, actionType) => {
|
|
1126
|
+
return this._chipFoundation(index)?.isActionSelected(actionType) || false;
|
|
1127
|
+
},
|
|
1128
|
+
removeChipAtIndex: index => this._chips.toArray()[index]?.remove(),
|
|
1129
|
+
setChipFocusAtIndex: (index, action, behavior) => {
|
|
1130
|
+
this._chipFoundation(index)?.setActionFocus(action, behavior);
|
|
1131
|
+
},
|
|
1132
|
+
setChipSelectedAtIndex: (index, actionType, isSelected) => {
|
|
1133
|
+
// Setting the trailing action as deselected ends up deselecting the entire chip.
|
|
1134
|
+
// This is working as expected, but it's not something we want so we only apply the
|
|
1135
|
+
// selected state to the primary chip.
|
|
1136
|
+
if (actionType === MDCChipActionType.PRIMARY) {
|
|
1137
|
+
this._chipFoundation(index)?.setActionSelected(actionType, isSelected);
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
startChipAnimationAtIndex: (index, animation) => {
|
|
1141
|
+
this._chipFoundation(index)?.startAnimation(animation);
|
|
1142
|
+
},
|
|
1051
1143
|
};
|
|
1052
|
-
/** Uid of the chip set */
|
|
1053
|
-
this._uid = `mat-mdc-chip-set-${uid++}`;
|
|
1054
1144
|
/**
|
|
1055
1145
|
* Map from class to whether the class is enabled.
|
|
1056
1146
|
* Enabled classes are set on the MDC chip-set div.
|
|
@@ -1058,7 +1148,24 @@ class MatChipSet extends _MatChipSetMixinBase {
|
|
|
1058
1148
|
this._mdcClasses = {};
|
|
1059
1149
|
this._disabled = false;
|
|
1060
1150
|
this._role = null;
|
|
1061
|
-
this.
|
|
1151
|
+
this._handleChipAnimation = (event) => {
|
|
1152
|
+
this._chipSetFoundation.handleChipAnimation(event);
|
|
1153
|
+
};
|
|
1154
|
+
this._handleChipInteraction = (event) => {
|
|
1155
|
+
this._chipSetFoundation.handleChipInteraction(event);
|
|
1156
|
+
};
|
|
1157
|
+
this._handleChipNavigation = (event) => {
|
|
1158
|
+
this._chipSetFoundation.handleChipNavigation(event);
|
|
1159
|
+
};
|
|
1160
|
+
const element = _elementRef.nativeElement;
|
|
1161
|
+
this._chipSetFoundation = new MDCChipSetFoundation(this._chipSetAdapter);
|
|
1162
|
+
element.addEventListener(MDCChipEvents.ANIMATION, this._handleChipAnimation);
|
|
1163
|
+
element.addEventListener(MDCChipEvents.INTERACTION, this._handleChipInteraction);
|
|
1164
|
+
element.addEventListener(MDCChipEvents.NAVIGATION, this._handleChipNavigation);
|
|
1165
|
+
}
|
|
1166
|
+
/** Combined stream of all of the child chips' remove events. */
|
|
1167
|
+
get chipDestroyedChanges() {
|
|
1168
|
+
return this._getChipStream(chip => chip.destroyed);
|
|
1062
1169
|
}
|
|
1063
1170
|
/** Whether the chip set is disabled. */
|
|
1064
1171
|
get disabled() {
|
|
@@ -1088,18 +1195,6 @@ class MatChipSet extends _MatChipSetMixinBase {
|
|
|
1088
1195
|
get focused() {
|
|
1089
1196
|
return this._hasFocusedChip();
|
|
1090
1197
|
}
|
|
1091
|
-
/** Combined stream of all of the child chips' remove events. */
|
|
1092
|
-
get chipRemoveChanges() {
|
|
1093
|
-
return merge(...this._chips.map(chip => chip.removed));
|
|
1094
|
-
}
|
|
1095
|
-
/** Combined stream of all of the child chips' remove events. */
|
|
1096
|
-
get chipDestroyedChanges() {
|
|
1097
|
-
return merge(...this._chips.map(chip => chip.destroyed));
|
|
1098
|
-
}
|
|
1099
|
-
/** Combined stream of all of the child chips' interaction events. */
|
|
1100
|
-
get chipInteractionChanges() {
|
|
1101
|
-
return merge(...this._chips.map(chip => chip.interaction));
|
|
1102
|
-
}
|
|
1103
1198
|
ngAfterViewInit() {
|
|
1104
1199
|
this._chipSetFoundation.init();
|
|
1105
1200
|
}
|
|
@@ -1112,11 +1207,23 @@ class MatChipSet extends _MatChipSetMixinBase {
|
|
|
1112
1207
|
this._syncChipsState();
|
|
1113
1208
|
});
|
|
1114
1209
|
}
|
|
1115
|
-
|
|
1210
|
+
});
|
|
1211
|
+
this.chipDestroyedChanges.pipe(takeUntil(this._destroyed)).subscribe((event) => {
|
|
1212
|
+
const chip = event.chip;
|
|
1213
|
+
const chipIndex = this._chips.toArray().indexOf(event.chip);
|
|
1214
|
+
// In case the chip that will be removed is currently focused, we temporarily store
|
|
1215
|
+
// the index in order to be able to determine an appropriate sibling chip that will
|
|
1216
|
+
// receive focus.
|
|
1217
|
+
if (this._isValidIndex(chipIndex) && chip._hasFocus()) {
|
|
1218
|
+
this._lastDestroyedChipIndex = chipIndex;
|
|
1219
|
+
}
|
|
1116
1220
|
});
|
|
1117
1221
|
}
|
|
1118
1222
|
ngOnDestroy() {
|
|
1119
|
-
this.
|
|
1223
|
+
const element = this._elementRef.nativeElement;
|
|
1224
|
+
element.removeEventListener(MDCChipEvents.ANIMATION, this._handleChipAnimation);
|
|
1225
|
+
element.removeEventListener(MDCChipEvents.INTERACTION, this._handleChipInteraction);
|
|
1226
|
+
element.removeEventListener(MDCChipEvents.NAVIGATION, this._handleChipNavigation);
|
|
1120
1227
|
this._destroyed.next();
|
|
1121
1228
|
this._destroyed.complete();
|
|
1122
1229
|
this._chipSetFoundation.destroy();
|
|
@@ -1134,71 +1241,6 @@ class MatChipSet extends _MatChipSetMixinBase {
|
|
|
1134
1241
|
});
|
|
1135
1242
|
}
|
|
1136
1243
|
}
|
|
1137
|
-
/** Sets whether the given CSS class should be applied to the MDC chip. */
|
|
1138
|
-
_setMdcClass(cssClass, active) {
|
|
1139
|
-
const classes = this._elementRef.nativeElement.classList;
|
|
1140
|
-
active ? classes.add(cssClass) : classes.remove(cssClass);
|
|
1141
|
-
this._changeDetectorRef.markForCheck();
|
|
1142
|
-
}
|
|
1143
|
-
/** Adapter method that returns true if the chip set has the given MDC class. */
|
|
1144
|
-
_hasMdcClass(className) {
|
|
1145
|
-
return this._elementRef.nativeElement.classList.contains(className);
|
|
1146
|
-
}
|
|
1147
|
-
/** Updates subscriptions to chip events. */
|
|
1148
|
-
_resetChips() {
|
|
1149
|
-
this._dropSubscriptions();
|
|
1150
|
-
this._subscribeToChipEvents();
|
|
1151
|
-
}
|
|
1152
|
-
/** Subscribes to events on the child chips. */
|
|
1153
|
-
_subscribeToChipEvents() {
|
|
1154
|
-
this._listenToChipsRemove();
|
|
1155
|
-
this._listenToChipsDestroyed();
|
|
1156
|
-
this._listenToChipsInteraction();
|
|
1157
|
-
}
|
|
1158
|
-
/** Subscribes to chip removal events. */
|
|
1159
|
-
_listenToChipsRemove() {
|
|
1160
|
-
this._chipRemoveSubscription = this.chipRemoveChanges.subscribe((event) => {
|
|
1161
|
-
this._chipSetFoundation.handleChipRemoval({
|
|
1162
|
-
chipId: event.chip.id,
|
|
1163
|
-
// TODO(mmalerba): Add removal message.
|
|
1164
|
-
removedAnnouncement: null,
|
|
1165
|
-
});
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
/** Subscribes to chip destroyed events. */
|
|
1169
|
-
_listenToChipsDestroyed() {
|
|
1170
|
-
this._chipDestroyedSubscription = this.chipDestroyedChanges.subscribe((event) => {
|
|
1171
|
-
const chip = event.chip;
|
|
1172
|
-
const chipIndex = this._chips.toArray().indexOf(event.chip);
|
|
1173
|
-
// In case the chip that will be removed is currently focused, we temporarily store
|
|
1174
|
-
// the index in order to be able to determine an appropriate sibling chip that will
|
|
1175
|
-
// receive focus.
|
|
1176
|
-
if (this._isValidIndex(chipIndex) && chip._hasFocus()) {
|
|
1177
|
-
this._lastDestroyedChipIndex = chipIndex;
|
|
1178
|
-
}
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
/** Subscribes to chip interaction events. */
|
|
1182
|
-
_listenToChipsInteraction() {
|
|
1183
|
-
this._chipInteractionSubscription = this.chipInteractionChanges.subscribe((id) => {
|
|
1184
|
-
this._chipSetFoundation.handleChipInteraction({ chipId: id });
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
/** Unsubscribes from all chip events. */
|
|
1188
|
-
_dropSubscriptions() {
|
|
1189
|
-
if (this._chipRemoveSubscription) {
|
|
1190
|
-
this._chipRemoveSubscription.unsubscribe();
|
|
1191
|
-
this._chipRemoveSubscription = null;
|
|
1192
|
-
}
|
|
1193
|
-
if (this._chipInteractionSubscription) {
|
|
1194
|
-
this._chipInteractionSubscription.unsubscribe();
|
|
1195
|
-
this._chipInteractionSubscription = null;
|
|
1196
|
-
}
|
|
1197
|
-
if (this._chipDestroyedSubscription) {
|
|
1198
|
-
this._chipDestroyedSubscription.unsubscribe();
|
|
1199
|
-
this._chipDestroyedSubscription = null;
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
1244
|
/** Dummy method for subclasses to override. Base chip set cannot be focused. */
|
|
1203
1245
|
focus() { }
|
|
1204
1246
|
/**
|
|
@@ -1212,14 +1254,29 @@ class MatChipSet extends _MatChipSetMixinBase {
|
|
|
1212
1254
|
}
|
|
1213
1255
|
/** Checks whether an event comes from inside a chip element. */
|
|
1214
1256
|
_originatesFromChip(event) {
|
|
1215
|
-
return this._checkForClassInHierarchy(event, 'mdc-chip');
|
|
1257
|
+
return this._checkForClassInHierarchy(event, 'mdc-evolution-chip');
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
* Removes the `tabindex` from the chip grid and resets it back afterwards, allowing the
|
|
1261
|
+
* user to tab out of it. This prevents the grid from capturing focus and redirecting
|
|
1262
|
+
* it back to the first chip, creating a focus trap, if it user tries to tab away.
|
|
1263
|
+
*/
|
|
1264
|
+
_allowFocusEscape() {
|
|
1265
|
+
const previousTabIndex = this.tabIndex;
|
|
1266
|
+
if (this.tabIndex !== -1) {
|
|
1267
|
+
this.tabIndex = -1;
|
|
1268
|
+
setTimeout(() => {
|
|
1269
|
+
this.tabIndex = previousTabIndex;
|
|
1270
|
+
this._changeDetectorRef.markForCheck();
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1216
1273
|
}
|
|
1217
1274
|
/**
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1275
|
+
* Gets a stream of events from all the chips within the set.
|
|
1276
|
+
* The stream will automatically incorporate any newly-added chips.
|
|
1220
1277
|
*/
|
|
1221
|
-
|
|
1222
|
-
return this.
|
|
1278
|
+
_getChipStream(mappingFunction) {
|
|
1279
|
+
return this._chips.changes.pipe(startWith(null), switchMap(() => merge(...this._chips.map(mappingFunction))));
|
|
1223
1280
|
}
|
|
1224
1281
|
_checkForClassInHierarchy(event, className) {
|
|
1225
1282
|
let currentElement = event.target;
|
|
@@ -1232,21 +1289,32 @@ class MatChipSet extends _MatChipSetMixinBase {
|
|
|
1232
1289
|
}
|
|
1233
1290
|
return false;
|
|
1234
1291
|
}
|
|
1292
|
+
_chipFoundation(index) {
|
|
1293
|
+
return this._chips.toArray()[index]?._getFoundation();
|
|
1294
|
+
}
|
|
1235
1295
|
}
|
|
1236
|
-
MatChipSet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
1237
|
-
MatChipSet.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0
|
|
1238
|
-
|
|
1296
|
+
MatChipSet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipSet, deps: [{ token: i1.LiveAnnouncer }, { token: DOCUMENT }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1297
|
+
MatChipSet.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MatChipSet, selector: "mat-chip-set", inputs: { disabled: "disabled", role: "role" }, host: { properties: { "attr.role": "role", "attr.aria-describedby": "_ariaDescribedby || null" }, classAttribute: "mat-mdc-chip-set mdc-evolution-chip-set" }, queries: [{ propertyName: "_chips", predicate: MatChip, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1298
|
+
<span class="mdc-evolution-chip-set__chips" role="presentation">
|
|
1299
|
+
<ng-content></ng-content>
|
|
1300
|
+
</span>
|
|
1301
|
+
`, isInline: true, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipSet, decorators: [{
|
|
1239
1303
|
type: Component,
|
|
1240
|
-
args: [{ selector: 'mat-chip-set', template:
|
|
1241
|
-
|
|
1304
|
+
args: [{ selector: 'mat-chip-set', template: `
|
|
1305
|
+
<span class="mdc-evolution-chip-set__chips" role="presentation">
|
|
1306
|
+
<ng-content></ng-content>
|
|
1307
|
+
</span>
|
|
1308
|
+
`, host: {
|
|
1309
|
+
'class': 'mat-mdc-chip-set mdc-evolution-chip-set',
|
|
1242
1310
|
'[attr.role]': 'role',
|
|
1243
1311
|
// TODO: replace this binding with use of AriaDescriber
|
|
1244
1312
|
'[attr.aria-describedby]': '_ariaDescribedby || null',
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
}] }]; }, propDecorators: { disabled: [{
|
|
1313
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}\n"] }]
|
|
1314
|
+
}], ctorParameters: function () { return [{ type: i1.LiveAnnouncer }, { type: undefined, decorators: [{
|
|
1315
|
+
type: Inject,
|
|
1316
|
+
args: [DOCUMENT]
|
|
1317
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { disabled: [{
|
|
1250
1318
|
type: Input
|
|
1251
1319
|
}], role: [{
|
|
1252
1320
|
type: Input
|
|
@@ -1292,8 +1360,8 @@ const MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR = {
|
|
|
1292
1360
|
* Used with MatChipOption chips.
|
|
1293
1361
|
*/
|
|
1294
1362
|
class MatChipListbox extends MatChipSet {
|
|
1295
|
-
constructor(
|
|
1296
|
-
super(
|
|
1363
|
+
constructor() {
|
|
1364
|
+
super(...arguments);
|
|
1297
1365
|
/**
|
|
1298
1366
|
* Function when touched. Set as part of ControlValueAccessor implementation.
|
|
1299
1367
|
* @docs-private
|
|
@@ -1312,14 +1380,9 @@ class MatChipListbox extends MatChipSet {
|
|
|
1312
1380
|
this._required = false;
|
|
1313
1381
|
/** Event emitted when the selected chip listbox value has been changed by the user. */
|
|
1314
1382
|
this.change = new EventEmitter();
|
|
1315
|
-
this._chipSetAdapter.selectChipAtIndex = (index, selected) => {
|
|
1316
|
-
this._setSelected(index, selected);
|
|
1317
|
-
};
|
|
1318
|
-
// Reinitialize the foundation with our overridden adapter
|
|
1319
|
-
this._chipSetFoundation = new deprecated.MDCChipSetFoundation(this._chipSetAdapter);
|
|
1320
|
-
this._updateMdcSelectionClasses();
|
|
1321
1383
|
}
|
|
1322
1384
|
/** The ARIA role applied to the chip listbox. */
|
|
1385
|
+
// TODO: MDC uses `grid` here
|
|
1323
1386
|
get role() {
|
|
1324
1387
|
return this.empty ? null : 'listbox';
|
|
1325
1388
|
}
|
|
@@ -1329,7 +1392,6 @@ class MatChipListbox extends MatChipSet {
|
|
|
1329
1392
|
}
|
|
1330
1393
|
set multiple(value) {
|
|
1331
1394
|
this._multiple = coerceBooleanProperty(value);
|
|
1332
|
-
this._updateMdcSelectionClasses();
|
|
1333
1395
|
this._syncListboxProperties();
|
|
1334
1396
|
}
|
|
1335
1397
|
/** The array of selected chips inside the chip listbox. */
|
|
@@ -1348,7 +1410,6 @@ class MatChipListbox extends MatChipSet {
|
|
|
1348
1410
|
}
|
|
1349
1411
|
set selectable(value) {
|
|
1350
1412
|
this._selectable = coerceBooleanProperty(value);
|
|
1351
|
-
this._updateMdcSelectionClasses();
|
|
1352
1413
|
this._syncListboxProperties();
|
|
1353
1414
|
}
|
|
1354
1415
|
/**
|
|
@@ -1372,15 +1433,15 @@ class MatChipListbox extends MatChipSet {
|
|
|
1372
1433
|
}
|
|
1373
1434
|
/** Combined stream of all of the child chips' selection change events. */
|
|
1374
1435
|
get chipSelectionChanges() {
|
|
1375
|
-
return
|
|
1436
|
+
return this._getChipStream(chip => chip.selectionChange);
|
|
1376
1437
|
}
|
|
1377
1438
|
/** Combined stream of all of the child chips' focus events. */
|
|
1378
1439
|
get chipFocusChanges() {
|
|
1379
|
-
return
|
|
1440
|
+
return this._getChipStream(chip => chip._onFocus);
|
|
1380
1441
|
}
|
|
1381
1442
|
/** Combined stream of all of the child chips' blur events. */
|
|
1382
1443
|
get chipBlurChanges() {
|
|
1383
|
-
return
|
|
1444
|
+
return this._getChipStream(chip => chip._onBlur);
|
|
1384
1445
|
}
|
|
1385
1446
|
/** The value of the listbox, which is the combined value of the selected chips. */
|
|
1386
1447
|
get value() {
|
|
@@ -1392,7 +1453,6 @@ class MatChipListbox extends MatChipSet {
|
|
|
1392
1453
|
}
|
|
1393
1454
|
ngAfterContentInit() {
|
|
1394
1455
|
super.ngAfterContentInit();
|
|
1395
|
-
this._initKeyManager();
|
|
1396
1456
|
this._chips.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
|
|
1397
1457
|
// Update listbox selectable/multiple properties on chips
|
|
1398
1458
|
this._syncListboxProperties();
|
|
@@ -1401,6 +1461,12 @@ class MatChipListbox extends MatChipSet {
|
|
|
1401
1461
|
// Check to see if we have a destroyed chip and need to refocus
|
|
1402
1462
|
this._updateFocusForDestroyedChips();
|
|
1403
1463
|
});
|
|
1464
|
+
this.chipBlurChanges.pipe(takeUntil(this._destroyed)).subscribe(() => this._blur());
|
|
1465
|
+
this.chipSelectionChanges.pipe(takeUntil(this._destroyed)).subscribe(event => {
|
|
1466
|
+
if (event.isUserInput) {
|
|
1467
|
+
this._propagateChanges();
|
|
1468
|
+
}
|
|
1469
|
+
});
|
|
1404
1470
|
}
|
|
1405
1471
|
/**
|
|
1406
1472
|
* Focuses the first selected chip in this chip listbox, or the first non-disabled chip when there
|
|
@@ -1412,11 +1478,14 @@ class MatChipListbox extends MatChipSet {
|
|
|
1412
1478
|
}
|
|
1413
1479
|
const firstSelectedChip = this._getFirstSelectedChip();
|
|
1414
1480
|
if (firstSelectedChip) {
|
|
1415
|
-
|
|
1416
|
-
this._keyManager.setActiveItem(firstSelectedChipIndex);
|
|
1481
|
+
firstSelectedChip.focus();
|
|
1417
1482
|
}
|
|
1418
1483
|
else if (this._chips.length > 0) {
|
|
1419
|
-
|
|
1484
|
+
// MDC sets the tabindex directly on the DOM node when the user is navigating which means
|
|
1485
|
+
// that we may end up with a `0` value from a previous interaction. We reset it manually
|
|
1486
|
+
// here to ensure that the state is correct.
|
|
1487
|
+
this._chips.forEach(chip => chip.primaryAction._updateTabindex(-1));
|
|
1488
|
+
this._chips.first.primaryAction.focus();
|
|
1420
1489
|
}
|
|
1421
1490
|
}
|
|
1422
1491
|
/**
|
|
@@ -1456,60 +1525,24 @@ class MatChipListbox extends MatChipSet {
|
|
|
1456
1525
|
value.forEach(currentValue => this._selectValue(currentValue, isUserInput));
|
|
1457
1526
|
}
|
|
1458
1527
|
else {
|
|
1459
|
-
|
|
1460
|
-
// Shift focus to the active item. Note that we shouldn't do this in multiple
|
|
1461
|
-
// mode, because we don't know what chip the user interacted with last.
|
|
1462
|
-
if (correspondingChip) {
|
|
1463
|
-
if (isUserInput) {
|
|
1464
|
-
this._keyManager.setActiveItem(correspondingChip);
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
/** Selects or deselects a chip by id. */
|
|
1470
|
-
_setSelected(index, selected) {
|
|
1471
|
-
const chip = this._chips.toArray()[index];
|
|
1472
|
-
if (chip && chip.selected != selected) {
|
|
1473
|
-
chip.toggleSelected(true);
|
|
1528
|
+
this._selectValue(value, isUserInput);
|
|
1474
1529
|
}
|
|
1475
1530
|
}
|
|
1476
1531
|
/** When blurred, marks the field as touched when focus moved outside the chip listbox. */
|
|
1477
1532
|
_blur() {
|
|
1478
|
-
if (this.disabled) {
|
|
1479
|
-
|
|
1480
|
-
}
|
|
1481
|
-
if (!this.focused) {
|
|
1482
|
-
this._keyManager.setActiveItem(-1);
|
|
1483
|
-
}
|
|
1484
|
-
// Wait to see if focus moves to an indivdual chip.
|
|
1485
|
-
setTimeout(() => {
|
|
1486
|
-
if (!this.focused) {
|
|
1487
|
-
this._propagateChanges();
|
|
1488
|
-
this._markAsTouched();
|
|
1489
|
-
}
|
|
1490
|
-
});
|
|
1491
|
-
}
|
|
1492
|
-
/**
|
|
1493
|
-
* Removes the `tabindex` from the chip listbox and resets it back afterwards, allowing the
|
|
1494
|
-
* user to tab out of it. This prevents the listbox from capturing focus and redirecting
|
|
1495
|
-
* it back to the first chip, creating a focus trap, if it user tries to tab away.
|
|
1496
|
-
*/
|
|
1497
|
-
_allowFocusEscape() {
|
|
1498
|
-
const previousTabIndex = this.tabIndex;
|
|
1499
|
-
if (this.tabIndex !== -1) {
|
|
1500
|
-
this.tabIndex = -1;
|
|
1533
|
+
if (!this.disabled) {
|
|
1534
|
+
// Wait to see if focus moves to an individual chip.
|
|
1501
1535
|
setTimeout(() => {
|
|
1502
|
-
this.
|
|
1503
|
-
|
|
1536
|
+
if (!this.focused) {
|
|
1537
|
+
this._propagateChanges();
|
|
1538
|
+
this._markAsTouched();
|
|
1539
|
+
}
|
|
1504
1540
|
});
|
|
1505
1541
|
}
|
|
1506
1542
|
}
|
|
1507
|
-
/**
|
|
1508
|
-
* Handles custom keyboard shortcuts, and passes other keyboard events to the keyboard manager.
|
|
1509
|
-
*/
|
|
1510
1543
|
_keydown(event) {
|
|
1511
|
-
if (
|
|
1512
|
-
|
|
1544
|
+
if (event.keyCode === TAB) {
|
|
1545
|
+
super._allowFocusEscape();
|
|
1513
1546
|
}
|
|
1514
1547
|
}
|
|
1515
1548
|
/** Marks the field as touched */
|
|
@@ -1518,13 +1551,13 @@ class MatChipListbox extends MatChipSet {
|
|
|
1518
1551
|
this._changeDetectorRef.markForCheck();
|
|
1519
1552
|
}
|
|
1520
1553
|
/** Emits change event to set the model value. */
|
|
1521
|
-
_propagateChanges(
|
|
1554
|
+
_propagateChanges() {
|
|
1522
1555
|
let valueToEmit = null;
|
|
1523
1556
|
if (Array.isArray(this.selected)) {
|
|
1524
1557
|
valueToEmit = this.selected.map(chip => chip.value);
|
|
1525
1558
|
}
|
|
1526
1559
|
else {
|
|
1527
|
-
valueToEmit = this.selected ? this.selected.value :
|
|
1560
|
+
valueToEmit = this.selected ? this.selected.value : undefined;
|
|
1528
1561
|
}
|
|
1529
1562
|
this._value = valueToEmit;
|
|
1530
1563
|
this.change.emit(new MatChipListboxChange(this, valueToEmit));
|
|
@@ -1538,9 +1571,9 @@ class MatChipListbox extends MatChipSet {
|
|
|
1538
1571
|
setTimeout(() => {
|
|
1539
1572
|
// Defer setting the value in order to avoid the "Expression
|
|
1540
1573
|
// has changed after it was checked" errors from Angular.
|
|
1541
|
-
this._chips.forEach(chip => {
|
|
1574
|
+
this._chips.forEach((chip, index) => {
|
|
1542
1575
|
if (chip.selected) {
|
|
1543
|
-
this._chipSetFoundation.
|
|
1576
|
+
this._chipSetFoundation.setChipSelected(index, MDCChipActionType.PRIMARY, true);
|
|
1544
1577
|
}
|
|
1545
1578
|
});
|
|
1546
1579
|
});
|
|
@@ -1583,27 +1616,6 @@ class MatChipListbox extends MatChipSet {
|
|
|
1583
1616
|
});
|
|
1584
1617
|
}
|
|
1585
1618
|
}
|
|
1586
|
-
/** Sets the mdc classes for single vs multi selection. */
|
|
1587
|
-
_updateMdcSelectionClasses() {
|
|
1588
|
-
this._setMdcClass('mdc-chip-set--filter', this.selectable && this.multiple);
|
|
1589
|
-
this._setMdcClass('mdc-chip-set--choice', this.selectable && !this.multiple);
|
|
1590
|
-
}
|
|
1591
|
-
/** Initializes the key manager to manage focus. */
|
|
1592
|
-
_initKeyManager() {
|
|
1593
|
-
this._keyManager = new FocusKeyManager(this._chips)
|
|
1594
|
-
.withWrap()
|
|
1595
|
-
.withVerticalOrientation()
|
|
1596
|
-
.withHomeAndEnd()
|
|
1597
|
-
.withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');
|
|
1598
|
-
if (this._dir) {
|
|
1599
|
-
this._dir.change
|
|
1600
|
-
.pipe(takeUntil(this._destroyed))
|
|
1601
|
-
.subscribe(dir => this._keyManager.withHorizontalOrientation(dir));
|
|
1602
|
-
}
|
|
1603
|
-
this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
1604
|
-
this._allowFocusEscape();
|
|
1605
|
-
});
|
|
1606
|
-
}
|
|
1607
1619
|
/** Returns the first selected chip in this listbox, or undefined if no chips are selected. */
|
|
1608
1620
|
_getFirstSelectedChip() {
|
|
1609
1621
|
if (Array.isArray(this.selected)) {
|
|
@@ -1613,57 +1625,6 @@ class MatChipListbox extends MatChipSet {
|
|
|
1613
1625
|
return this.selected;
|
|
1614
1626
|
}
|
|
1615
1627
|
}
|
|
1616
|
-
/** Unsubscribes from all chip events. */
|
|
1617
|
-
_dropSubscriptions() {
|
|
1618
|
-
super._dropSubscriptions();
|
|
1619
|
-
if (this._chipSelectionSubscription) {
|
|
1620
|
-
this._chipSelectionSubscription.unsubscribe();
|
|
1621
|
-
this._chipSelectionSubscription = null;
|
|
1622
|
-
}
|
|
1623
|
-
if (this._chipBlurSubscription) {
|
|
1624
|
-
this._chipBlurSubscription.unsubscribe();
|
|
1625
|
-
this._chipBlurSubscription = null;
|
|
1626
|
-
}
|
|
1627
|
-
if (this._chipFocusSubscription) {
|
|
1628
|
-
this._chipFocusSubscription.unsubscribe();
|
|
1629
|
-
this._chipFocusSubscription = null;
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
/** Subscribes to events on the child chips. */
|
|
1633
|
-
_subscribeToChipEvents() {
|
|
1634
|
-
super._subscribeToChipEvents();
|
|
1635
|
-
this._listenToChipsSelection();
|
|
1636
|
-
this._listenToChipsFocus();
|
|
1637
|
-
this._listenToChipsBlur();
|
|
1638
|
-
}
|
|
1639
|
-
/** Subscribes to chip focus events. */
|
|
1640
|
-
_listenToChipsFocus() {
|
|
1641
|
-
this._chipFocusSubscription = this.chipFocusChanges.subscribe((event) => {
|
|
1642
|
-
let chipIndex = this._chips.toArray().indexOf(event.chip);
|
|
1643
|
-
if (this._isValidIndex(chipIndex)) {
|
|
1644
|
-
this._keyManager.updateActiveItem(chipIndex);
|
|
1645
|
-
}
|
|
1646
|
-
});
|
|
1647
|
-
}
|
|
1648
|
-
/** Subscribes to chip blur events. */
|
|
1649
|
-
_listenToChipsBlur() {
|
|
1650
|
-
this._chipBlurSubscription = this.chipBlurChanges.subscribe(() => {
|
|
1651
|
-
this._blur();
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
/** Subscribes to selection changes in the option chips. */
|
|
1655
|
-
_listenToChipsSelection() {
|
|
1656
|
-
this._chipSelectionSubscription = this.chipSelectionChanges.subscribe((chipSelectionChange) => {
|
|
1657
|
-
this._chipSetFoundation.handleChipSelection({
|
|
1658
|
-
chipId: chipSelectionChange.source.id,
|
|
1659
|
-
selected: chipSelectionChange.selected,
|
|
1660
|
-
shouldIgnore: false,
|
|
1661
|
-
});
|
|
1662
|
-
if (chipSelectionChange.isUserInput) {
|
|
1663
|
-
this._propagateChanges();
|
|
1664
|
-
}
|
|
1665
|
-
});
|
|
1666
|
-
}
|
|
1667
1628
|
/**
|
|
1668
1629
|
* If the amount of chips changed, we need to update the
|
|
1669
1630
|
* key manager state and focus the next closest chip.
|
|
@@ -1673,7 +1634,7 @@ class MatChipListbox extends MatChipSet {
|
|
|
1673
1634
|
if (this._lastDestroyedChipIndex != null) {
|
|
1674
1635
|
if (this._chips.length) {
|
|
1675
1636
|
const newChipIndex = Math.min(this._lastDestroyedChipIndex, this._chips.length - 1);
|
|
1676
|
-
this.
|
|
1637
|
+
this._chips.toArray()[newChipIndex].focus();
|
|
1677
1638
|
}
|
|
1678
1639
|
else {
|
|
1679
1640
|
this.focus();
|
|
@@ -1682,12 +1643,20 @@ class MatChipListbox extends MatChipSet {
|
|
|
1682
1643
|
this._lastDestroyedChipIndex = null;
|
|
1683
1644
|
}
|
|
1684
1645
|
}
|
|
1685
|
-
MatChipListbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
1686
|
-
MatChipListbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0
|
|
1687
|
-
|
|
1646
|
+
MatChipListbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipListbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1647
|
+
MatChipListbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MatChipListbox, selector: "mat-chip-listbox", inputs: { tabIndex: "tabIndex", multiple: "multiple", ariaOrientation: ["aria-orientation", "ariaOrientation"], selectable: "selectable", compareWith: "compareWith", required: "required", value: "value" }, outputs: { change: "change" }, host: { listeners: { "focus": "focus()", "blur": "_blur()", "keydown": "_keydown($event)" }, properties: { "attr.role": "role", "tabIndex": "empty ? -1 : tabIndex", "attr.aria-describedby": "_ariaDescribedby || null", "attr.aria-required": "role ? required : null", "attr.aria-disabled": "disabled.toString()", "attr.aria-multiselectable": "multiple", "attr.aria-orientation": "ariaOrientation", "class.mat-mdc-chip-list-disabled": "disabled", "class.mat-mdc-chip-list-required": "required" }, classAttribute: "mdc-evolution-chip-set mat-mdc-chip-listbox" }, providers: [MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR], queries: [{ propertyName: "_chips", predicate: MatChipOption, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1648
|
+
<span class="mdc-evolution-chip-set__chips" role="presentation">
|
|
1649
|
+
<ng-content></ng-content>
|
|
1650
|
+
</span>
|
|
1651
|
+
`, isInline: true, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipListbox, decorators: [{
|
|
1688
1653
|
type: Component,
|
|
1689
|
-
args: [{ selector: 'mat-chip-listbox', template:
|
|
1690
|
-
|
|
1654
|
+
args: [{ selector: 'mat-chip-listbox', template: `
|
|
1655
|
+
<span class="mdc-evolution-chip-set__chips" role="presentation">
|
|
1656
|
+
<ng-content></ng-content>
|
|
1657
|
+
</span>
|
|
1658
|
+
`, inputs: ['tabIndex'], host: {
|
|
1659
|
+
'class': 'mdc-evolution-chip-set mat-mdc-chip-listbox',
|
|
1691
1660
|
'[attr.role]': 'role',
|
|
1692
1661
|
'[tabIndex]': 'empty ? -1 : tabIndex',
|
|
1693
1662
|
// TODO: replace this binding with use of AriaDescriber
|
|
@@ -1701,11 +1670,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
1701
1670
|
'(focus)': 'focus()',
|
|
1702
1671
|
'(blur)': '_blur()',
|
|
1703
1672
|
'(keydown)': '_keydown($event)',
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.Directionality, decorators: [{
|
|
1707
|
-
type: Optional
|
|
1708
|
-
}] }]; }, propDecorators: { multiple: [{
|
|
1673
|
+
}, providers: [MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}\n"] }]
|
|
1674
|
+
}], propDecorators: { multiple: [{
|
|
1709
1675
|
type: Input
|
|
1710
1676
|
}], ariaOrientation: [{
|
|
1711
1677
|
type: Input,
|
|
@@ -1729,241 +1695,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
1729
1695
|
}]
|
|
1730
1696
|
}] } });
|
|
1731
1697
|
|
|
1732
|
-
/**
|
|
1733
|
-
* @license
|
|
1734
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1735
|
-
*
|
|
1736
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1737
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1738
|
-
*/
|
|
1739
|
-
/** The keys handled by the GridKeyManager keydown method. */
|
|
1740
|
-
const NAVIGATION_KEYS = [DOWN_ARROW, UP_ARROW, RIGHT_ARROW, LEFT_ARROW];
|
|
1741
|
-
/**
|
|
1742
|
-
* This class manages keyboard events for grids. If you pass it a query list
|
|
1743
|
-
* of GridKeyManagerRow, it will set the active cell correctly when arrow events occur.
|
|
1744
|
-
*
|
|
1745
|
-
* GridKeyManager expects that rows may change dynamically, but the cells for a given row are
|
|
1746
|
-
* static. It also expects that all rows have the same number of cells.
|
|
1747
|
-
*/
|
|
1748
|
-
class GridKeyManager {
|
|
1749
|
-
constructor(_rows) {
|
|
1750
|
-
this._rows = _rows;
|
|
1751
|
-
this._activeRowIndex = -1;
|
|
1752
|
-
this._activeColumnIndex = -1;
|
|
1753
|
-
this._activeRow = null;
|
|
1754
|
-
this._activeCell = null;
|
|
1755
|
-
this._dir = 'ltr';
|
|
1756
|
-
this._homeAndEnd = false;
|
|
1757
|
-
/** Stream that emits whenever the active cell of the grid manager changes. */
|
|
1758
|
-
this.change = new Subject();
|
|
1759
|
-
// We allow for the rows to be an array because, in some cases, the consumer may
|
|
1760
|
-
// not have access to a QueryList of the rows they want to manage (e.g. when the
|
|
1761
|
-
// rows aren't being collected via `ViewChildren` or `ContentChildren`).
|
|
1762
|
-
if (_rows instanceof QueryList) {
|
|
1763
|
-
_rows.changes.subscribe((newRows) => {
|
|
1764
|
-
if (this._activeRow) {
|
|
1765
|
-
const newIndex = newRows.toArray().indexOf(this._activeRow);
|
|
1766
|
-
if (newIndex > -1 && newIndex !== this._activeRowIndex) {
|
|
1767
|
-
this._activeRowIndex = newIndex;
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
});
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
/**
|
|
1774
|
-
* Configures the directionality of the key manager's horizontal movement.
|
|
1775
|
-
* @param direction Direction which is considered forward movement across a row.
|
|
1776
|
-
*
|
|
1777
|
-
* If withDirectionality is not set, the default is 'ltr'.
|
|
1778
|
-
*/
|
|
1779
|
-
withDirectionality(direction) {
|
|
1780
|
-
this._dir = direction;
|
|
1781
|
-
return this;
|
|
1782
|
-
}
|
|
1783
|
-
setActiveCell(cell) {
|
|
1784
|
-
const previousRowIndex = this._activeRowIndex;
|
|
1785
|
-
const previousColumnIndex = this._activeColumnIndex;
|
|
1786
|
-
this.updateActiveCell(cell);
|
|
1787
|
-
if (this._activeRowIndex !== previousRowIndex ||
|
|
1788
|
-
this._activeColumnIndex !== previousColumnIndex) {
|
|
1789
|
-
this.change.next({ row: this._activeRowIndex, column: this._activeColumnIndex });
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
1792
|
-
/**
|
|
1793
|
-
* Configures the key manager to activate the first and last items
|
|
1794
|
-
* respectively when the Home or End key is pressed.
|
|
1795
|
-
* @param enabled Whether pressing the Home or End key activates the first/last item.
|
|
1796
|
-
*/
|
|
1797
|
-
withHomeAndEnd(enabled = true) {
|
|
1798
|
-
this._homeAndEnd = enabled;
|
|
1799
|
-
return this;
|
|
1800
|
-
}
|
|
1801
|
-
/**
|
|
1802
|
-
* Sets the active cell depending on the key event passed in.
|
|
1803
|
-
* @param event Keyboard event to be used for determining which element should be active.
|
|
1804
|
-
*/
|
|
1805
|
-
onKeydown(event) {
|
|
1806
|
-
const keyCode = event.keyCode;
|
|
1807
|
-
switch (keyCode) {
|
|
1808
|
-
case DOWN_ARROW:
|
|
1809
|
-
this.setNextRowActive();
|
|
1810
|
-
break;
|
|
1811
|
-
case UP_ARROW:
|
|
1812
|
-
this.setPreviousRowActive();
|
|
1813
|
-
break;
|
|
1814
|
-
case RIGHT_ARROW:
|
|
1815
|
-
this._dir === 'rtl' ? this.setPreviousColumnActive() : this.setNextColumnActive();
|
|
1816
|
-
break;
|
|
1817
|
-
case LEFT_ARROW:
|
|
1818
|
-
this._dir === 'rtl' ? this.setNextColumnActive() : this.setPreviousColumnActive();
|
|
1819
|
-
break;
|
|
1820
|
-
case HOME:
|
|
1821
|
-
if (this._homeAndEnd) {
|
|
1822
|
-
this.setFirstCellActive();
|
|
1823
|
-
break;
|
|
1824
|
-
}
|
|
1825
|
-
else {
|
|
1826
|
-
return;
|
|
1827
|
-
}
|
|
1828
|
-
case END:
|
|
1829
|
-
if (this._homeAndEnd) {
|
|
1830
|
-
this.setLastCellActive();
|
|
1831
|
-
break;
|
|
1832
|
-
}
|
|
1833
|
-
else {
|
|
1834
|
-
return;
|
|
1835
|
-
}
|
|
1836
|
-
default:
|
|
1837
|
-
// Note that we return here, in order to avoid preventing
|
|
1838
|
-
// the default action of non-navigational keys.
|
|
1839
|
-
return;
|
|
1840
|
-
}
|
|
1841
|
-
event.preventDefault();
|
|
1842
|
-
}
|
|
1843
|
-
/** Index of the currently active row. */
|
|
1844
|
-
get activeRowIndex() {
|
|
1845
|
-
return this._activeRowIndex;
|
|
1846
|
-
}
|
|
1847
|
-
/** Index of the currently active column. */
|
|
1848
|
-
get activeColumnIndex() {
|
|
1849
|
-
return this._activeColumnIndex;
|
|
1850
|
-
}
|
|
1851
|
-
/** The active cell. */
|
|
1852
|
-
get activeCell() {
|
|
1853
|
-
return this._activeCell;
|
|
1854
|
-
}
|
|
1855
|
-
/** Sets the active cell to the first cell in the grid. */
|
|
1856
|
-
setFirstCellActive() {
|
|
1857
|
-
this._setActiveCellByIndex(0, 0);
|
|
1858
|
-
}
|
|
1859
|
-
/** Sets the active cell to the last cell in the grid. */
|
|
1860
|
-
setLastCellActive() {
|
|
1861
|
-
const lastRowIndex = this._rows.length - 1;
|
|
1862
|
-
const lastRow = this._getRowsArray()[lastRowIndex];
|
|
1863
|
-
this._setActiveCellByIndex(lastRowIndex, lastRow.cells.length - 1);
|
|
1864
|
-
}
|
|
1865
|
-
/** Sets the active row to the next row in the grid. Active column is unchanged. */
|
|
1866
|
-
setNextRowActive() {
|
|
1867
|
-
this._activeRowIndex < 0 ? this.setFirstCellActive() : this._setActiveCellByDelta(1, 0);
|
|
1868
|
-
}
|
|
1869
|
-
/** Sets the active row to the previous row in the grid. Active column is unchanged. */
|
|
1870
|
-
setPreviousRowActive() {
|
|
1871
|
-
this._setActiveCellByDelta(-1, 0);
|
|
1872
|
-
}
|
|
1873
|
-
/**
|
|
1874
|
-
* Sets the active column to the next column in the grid.
|
|
1875
|
-
* Active row is unchanged, unless we reach the end of a row.
|
|
1876
|
-
*/
|
|
1877
|
-
setNextColumnActive() {
|
|
1878
|
-
this._activeRowIndex < 0 ? this.setFirstCellActive() : this._setActiveCellByDelta(0, 1);
|
|
1879
|
-
}
|
|
1880
|
-
/**
|
|
1881
|
-
* Sets the active column to the previous column in the grid.
|
|
1882
|
-
* Active row is unchanged, unless we reach the end of a row.
|
|
1883
|
-
*/
|
|
1884
|
-
setPreviousColumnActive() {
|
|
1885
|
-
this._setActiveCellByDelta(0, -1);
|
|
1886
|
-
}
|
|
1887
|
-
updateActiveCell(cell) {
|
|
1888
|
-
const rowArray = this._getRowsArray();
|
|
1889
|
-
if (typeof cell === 'object' &&
|
|
1890
|
-
typeof cell.row === 'number' &&
|
|
1891
|
-
typeof cell.column === 'number') {
|
|
1892
|
-
this._activeRowIndex = cell.row;
|
|
1893
|
-
this._activeColumnIndex = cell.column;
|
|
1894
|
-
this._activeRow = rowArray[cell.row] || null;
|
|
1895
|
-
this._activeCell = this._activeRow ? this._activeRow.cells[cell.column] || null : null;
|
|
1896
|
-
}
|
|
1897
|
-
else {
|
|
1898
|
-
rowArray.forEach((row, rowIndex) => {
|
|
1899
|
-
const columnIndex = row.cells.indexOf(cell);
|
|
1900
|
-
if (columnIndex !== -1) {
|
|
1901
|
-
this._activeRowIndex = rowIndex;
|
|
1902
|
-
this._activeColumnIndex = columnIndex;
|
|
1903
|
-
this._activeRow = row;
|
|
1904
|
-
this._activeCell = row.cells[columnIndex];
|
|
1905
|
-
}
|
|
1906
|
-
});
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
/**
|
|
1910
|
-
* This method sets the active cell, given the row and columns deltas
|
|
1911
|
-
* between the currently active cell and the new active cell.
|
|
1912
|
-
*/
|
|
1913
|
-
_setActiveCellByDelta(rowDelta, columnDelta) {
|
|
1914
|
-
// If delta puts us past the last cell in a row, move to the first cell of the next row.
|
|
1915
|
-
if (this._activeRow && this._activeColumnIndex + columnDelta >= this._activeRow.cells.length) {
|
|
1916
|
-
this._setActiveCellByIndex(this._activeRowIndex + 1, 0);
|
|
1917
|
-
// If delta puts us prior to the first cell in a row, move to the last cell of the previous row.
|
|
1918
|
-
}
|
|
1919
|
-
else if (this._activeColumnIndex + columnDelta < 0) {
|
|
1920
|
-
const previousRowIndex = this._activeRowIndex - 1;
|
|
1921
|
-
const previousRow = this._getRowsArray()[previousRowIndex];
|
|
1922
|
-
if (previousRow) {
|
|
1923
|
-
this._setActiveCellByIndex(previousRowIndex, previousRow.cells.length - 1);
|
|
1924
|
-
}
|
|
1925
|
-
}
|
|
1926
|
-
else {
|
|
1927
|
-
this._setActiveCellByIndex(this._activeRowIndex + rowDelta, this._activeColumnIndex + columnDelta);
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
/**
|
|
1931
|
-
* Sets the active cell to the cell at the indices specified, if they are valid.
|
|
1932
|
-
*/
|
|
1933
|
-
_setActiveCellByIndex(rowIndex, columnIndex) {
|
|
1934
|
-
const rows = this._getRowsArray();
|
|
1935
|
-
const targetRow = rows[rowIndex];
|
|
1936
|
-
if (!targetRow || !targetRow.cells[columnIndex]) {
|
|
1937
|
-
return;
|
|
1938
|
-
}
|
|
1939
|
-
this.setActiveCell({ row: rowIndex, column: columnIndex });
|
|
1940
|
-
}
|
|
1941
|
-
/** Returns the rows as an array. */
|
|
1942
|
-
_getRowsArray() {
|
|
1943
|
-
return this._rows instanceof QueryList ? this._rows.toArray() : this._rows;
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
/**
|
|
1948
|
-
* @license
|
|
1949
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1950
|
-
*
|
|
1951
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1952
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1953
|
-
*/
|
|
1954
|
-
/**
|
|
1955
|
-
* A version of GridKeyManager where the cells are HTMLElements, and focus()
|
|
1956
|
-
* is called on a cell when it becomes active.
|
|
1957
|
-
*/
|
|
1958
|
-
class GridFocusKeyManager extends GridKeyManager {
|
|
1959
|
-
setActiveCell(cell) {
|
|
1960
|
-
super.setActiveCell(cell);
|
|
1961
|
-
if (this.activeCell) {
|
|
1962
|
-
this.activeCell.focus();
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
1698
|
/**
|
|
1968
1699
|
* @license
|
|
1969
1700
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -1987,10 +1718,10 @@ class MatChipGridChange {
|
|
|
1987
1718
|
* @docs-private
|
|
1988
1719
|
*/
|
|
1989
1720
|
class MatChipGridBase extends MatChipSet {
|
|
1990
|
-
constructor(
|
|
1721
|
+
constructor(liveAnnouncer, document, elementRef, changeDetectorRef, _defaultErrorStateMatcher, _parentForm, _parentFormGroup,
|
|
1991
1722
|
/** @docs-private */
|
|
1992
1723
|
ngControl) {
|
|
1993
|
-
super(
|
|
1724
|
+
super(liveAnnouncer, document, elementRef, changeDetectorRef);
|
|
1994
1725
|
this._defaultErrorStateMatcher = _defaultErrorStateMatcher;
|
|
1995
1726
|
this._parentForm = _parentForm;
|
|
1996
1727
|
this._parentFormGroup = _parentFormGroup;
|
|
@@ -2003,8 +1734,8 @@ const _MatChipGridMixinBase = mixinErrorState(MatChipGridBase);
|
|
|
2003
1734
|
* the matChipInputFor directive.
|
|
2004
1735
|
*/
|
|
2005
1736
|
class MatChipGrid extends _MatChipGridMixinBase {
|
|
2006
|
-
constructor(
|
|
2007
|
-
super(
|
|
1737
|
+
constructor(liveAnnouncer, document, elementRef, changeDetectorRef, parentForm, parentFormGroup, defaultErrorStateMatcher, ngControl) {
|
|
1738
|
+
super(liveAnnouncer, document, elementRef, changeDetectorRef, defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
|
|
2008
1739
|
/**
|
|
2009
1740
|
* Implemented as part of MatFormFieldControl.
|
|
2010
1741
|
* @docs-private
|
|
@@ -2107,20 +1838,23 @@ class MatChipGrid extends _MatChipGridMixinBase {
|
|
|
2107
1838
|
}
|
|
2108
1839
|
/** Combined stream of all of the child chips' blur events. */
|
|
2109
1840
|
get chipBlurChanges() {
|
|
2110
|
-
return
|
|
1841
|
+
return this._getChipStream(chip => chip._onBlur);
|
|
2111
1842
|
}
|
|
2112
1843
|
/** Combined stream of all of the child chips' focus events. */
|
|
2113
1844
|
get chipFocusChanges() {
|
|
2114
|
-
return
|
|
1845
|
+
return this._getChipStream(chip => chip._onFocus);
|
|
2115
1846
|
}
|
|
2116
1847
|
ngAfterContentInit() {
|
|
2117
1848
|
super.ngAfterContentInit();
|
|
2118
|
-
this._initKeyManager();
|
|
2119
1849
|
this._chips.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
|
|
2120
1850
|
// Check to see if we have a destroyed chip and need to refocus
|
|
2121
1851
|
this._updateFocusForDestroyedChips();
|
|
2122
1852
|
this.stateChanges.next();
|
|
2123
1853
|
});
|
|
1854
|
+
this.chipBlurChanges.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
1855
|
+
this._blur();
|
|
1856
|
+
this.stateChanges.next();
|
|
1857
|
+
});
|
|
2124
1858
|
}
|
|
2125
1859
|
ngAfterViewInit() {
|
|
2126
1860
|
super.ngAfterViewInit();
|
|
@@ -2143,14 +1877,13 @@ class MatChipGrid extends _MatChipGridMixinBase {
|
|
|
2143
1877
|
/** Associates an HTML input element with this chip grid. */
|
|
2144
1878
|
registerInput(inputElement) {
|
|
2145
1879
|
this._chipInput = inputElement;
|
|
2146
|
-
this._setMdcClass('mdc-chip-set--input', true);
|
|
2147
1880
|
}
|
|
2148
1881
|
/**
|
|
2149
1882
|
* Implemented as part of MatFormFieldControl.
|
|
2150
1883
|
* @docs-private
|
|
2151
1884
|
*/
|
|
2152
1885
|
onContainerClick(event) {
|
|
2153
|
-
if (!this.
|
|
1886
|
+
if (!this.disabled && !this._originatesFromChip(event)) {
|
|
2154
1887
|
this.focus();
|
|
2155
1888
|
}
|
|
2156
1889
|
}
|
|
@@ -2163,7 +1896,11 @@ class MatChipGrid extends _MatChipGridMixinBase {
|
|
|
2163
1896
|
return;
|
|
2164
1897
|
}
|
|
2165
1898
|
if (this._chips.length > 0) {
|
|
2166
|
-
|
|
1899
|
+
// MDC sets the tabindex directly on the DOM node when the user is navigating which means
|
|
1900
|
+
// that we may end up with a `0` value from a previous interaction. We reset it manually
|
|
1901
|
+
// here to ensure that the state is correct.
|
|
1902
|
+
this._chips.forEach(chip => chip.primaryAction._updateTabindex(-1));
|
|
1903
|
+
this._chips.first.focus();
|
|
2167
1904
|
}
|
|
2168
1905
|
else {
|
|
2169
1906
|
this._focusInput();
|
|
@@ -2218,7 +1955,6 @@ class MatChipGrid extends _MatChipGridMixinBase {
|
|
|
2218
1955
|
// Timeout is needed to wait for the focus() event trigger on chip input.
|
|
2219
1956
|
setTimeout(() => {
|
|
2220
1957
|
if (!this.focused) {
|
|
2221
|
-
this._keyManager.setActiveCell({ row: -1, column: -1 });
|
|
2222
1958
|
this._propagateChanges();
|
|
2223
1959
|
this._markAsTouched();
|
|
2224
1960
|
}
|
|
@@ -2230,78 +1966,21 @@ class MatChipGrid extends _MatChipGridMixinBase {
|
|
|
2230
1966
|
* it back to the first chip, creating a focus trap, if it user tries to tab away.
|
|
2231
1967
|
*/
|
|
2232
1968
|
_allowFocusEscape() {
|
|
2233
|
-
if (this._chipInput.focused) {
|
|
2234
|
-
|
|
2235
|
-
}
|
|
2236
|
-
const previousTabIndex = this.tabIndex;
|
|
2237
|
-
if (this.tabIndex !== -1) {
|
|
2238
|
-
this.tabIndex = -1;
|
|
2239
|
-
setTimeout(() => {
|
|
2240
|
-
this.tabIndex = previousTabIndex;
|
|
2241
|
-
this._changeDetectorRef.markForCheck();
|
|
2242
|
-
});
|
|
1969
|
+
if (!this._chipInput.focused) {
|
|
1970
|
+
super._allowFocusEscape();
|
|
2243
1971
|
}
|
|
2244
1972
|
}
|
|
2245
1973
|
/** Handles custom keyboard events. */
|
|
2246
1974
|
_keydown(event) {
|
|
2247
|
-
|
|
2248
|
-
const keyCode = event.keyCode;
|
|
2249
|
-
const manager = this._keyManager;
|
|
2250
|
-
if (keyCode === TAB && target.id !== this._chipInput.id) {
|
|
1975
|
+
if (event.keyCode === TAB && event.target.id !== this._chipInput.id) {
|
|
2251
1976
|
this._allowFocusEscape();
|
|
2252
1977
|
}
|
|
2253
|
-
else if (this._originatesFromEditingChip(event)) {
|
|
2254
|
-
// No-op, let the editing chip handle all keyboard events except for Tab.
|
|
2255
|
-
}
|
|
2256
|
-
else if (this._originatesFromChip(event)) {
|
|
2257
|
-
manager.onKeydown(event);
|
|
2258
|
-
}
|
|
2259
1978
|
this.stateChanges.next();
|
|
2260
1979
|
}
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
this._chipBlurSubscription.unsubscribe();
|
|
2266
|
-
this._chipBlurSubscription = null;
|
|
2267
|
-
}
|
|
2268
|
-
if (this._chipFocusSubscription) {
|
|
2269
|
-
this._chipFocusSubscription.unsubscribe();
|
|
2270
|
-
this._chipFocusSubscription = null;
|
|
2271
|
-
}
|
|
2272
|
-
}
|
|
2273
|
-
/** Subscribes to events on the child chips. */
|
|
2274
|
-
_subscribeToChipEvents() {
|
|
2275
|
-
super._subscribeToChipEvents();
|
|
2276
|
-
this._listenToChipsFocus();
|
|
2277
|
-
this._listenToChipsBlur();
|
|
2278
|
-
}
|
|
2279
|
-
/** Initializes the key manager to manage focus. */
|
|
2280
|
-
_initKeyManager() {
|
|
2281
|
-
this._keyManager = new GridFocusKeyManager(this._chips)
|
|
2282
|
-
.withHomeAndEnd()
|
|
2283
|
-
.withDirectionality(this._dir ? this._dir.value : 'ltr');
|
|
2284
|
-
if (this._dir) {
|
|
2285
|
-
this._dir.change
|
|
2286
|
-
.pipe(takeUntil(this._destroyed))
|
|
2287
|
-
.subscribe(dir => this._keyManager.withDirectionality(dir));
|
|
2288
|
-
}
|
|
2289
|
-
}
|
|
2290
|
-
/** Subscribes to chip focus events. */
|
|
2291
|
-
_listenToChipsFocus() {
|
|
2292
|
-
this._chipFocusSubscription = this.chipFocusChanges.subscribe((event) => {
|
|
2293
|
-
let chipIndex = this._chips.toArray().indexOf(event.chip);
|
|
2294
|
-
if (this._isValidIndex(chipIndex)) {
|
|
2295
|
-
this._keyManager.updateActiveCell({ row: chipIndex, column: 0 });
|
|
2296
|
-
}
|
|
2297
|
-
});
|
|
2298
|
-
}
|
|
2299
|
-
/** Subscribes to chip blur events. */
|
|
2300
|
-
_listenToChipsBlur() {
|
|
2301
|
-
this._chipBlurSubscription = this.chipBlurChanges.subscribe(() => {
|
|
2302
|
-
this._blur();
|
|
2303
|
-
this.stateChanges.next();
|
|
2304
|
-
});
|
|
1980
|
+
_focusLastChip() {
|
|
1981
|
+
if (this._chips.length) {
|
|
1982
|
+
this._chips.last.primaryAction.focus();
|
|
1983
|
+
}
|
|
2305
1984
|
}
|
|
2306
1985
|
/** Emits change event to set the model value. */
|
|
2307
1986
|
_propagateChanges() {
|
|
@@ -2326,10 +2005,7 @@ class MatChipGrid extends _MatChipGridMixinBase {
|
|
|
2326
2005
|
if (this._lastDestroyedChipIndex != null) {
|
|
2327
2006
|
if (this._chips.length) {
|
|
2328
2007
|
const newChipIndex = Math.min(this._lastDestroyedChipIndex, this._chips.length - 1);
|
|
2329
|
-
this.
|
|
2330
|
-
row: newChipIndex,
|
|
2331
|
-
column: Math.max(this._keyManager.activeColumnIndex, 0),
|
|
2332
|
-
});
|
|
2008
|
+
this._chips.toArray()[newChipIndex].focus();
|
|
2333
2009
|
}
|
|
2334
2010
|
else {
|
|
2335
2011
|
this.focus();
|
|
@@ -2342,12 +2018,20 @@ class MatChipGrid extends _MatChipGridMixinBase {
|
|
|
2342
2018
|
this._chipInput.focus();
|
|
2343
2019
|
}
|
|
2344
2020
|
}
|
|
2345
|
-
MatChipGrid.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
2346
|
-
MatChipGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0
|
|
2347
|
-
|
|
2021
|
+
MatChipGrid.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipGrid, deps: [{ token: i1.LiveAnnouncer }, { token: DOCUMENT }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i2$1.NgForm, optional: true }, { token: i2$1.FormGroupDirective, optional: true }, { token: i3.ErrorStateMatcher }, { token: i2$1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2022
|
+
MatChipGrid.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MatChipGrid, selector: "mat-chip-grid", inputs: { tabIndex: "tabIndex", disabled: "disabled", placeholder: "placeholder", required: "required", value: "value", errorStateMatcher: "errorStateMatcher" }, outputs: { change: "change", valueChange: "valueChange" }, host: { listeners: { "focus": "focus()", "blur": "_blur()", "keydown": "_keydown($event)" }, properties: { "attr.role": "role", "tabIndex": "_chips && _chips.length === 0 ? -1 : tabIndex", "attr.aria-describedby": "_ariaDescribedby || null", "attr.aria-disabled": "disabled.toString()", "attr.aria-invalid": "errorState", "class.mat-mdc-chip-list-disabled": "disabled", "class.mat-mdc-chip-list-invalid": "errorState", "class.mat-mdc-chip-list-required": "required" }, classAttribute: "mat-mdc-chip-set mat-mdc-chip-grid mdc-evolution-chip-set" }, providers: [{ provide: MatFormFieldControl, useExisting: MatChipGrid }], queries: [{ propertyName: "_chips", predicate: MatChipRow, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2023
|
+
<span class="mdc-evolution-chip-set__chips" role="presentation">
|
|
2024
|
+
<ng-content></ng-content>
|
|
2025
|
+
</span>
|
|
2026
|
+
`, isInline: true, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipGrid, decorators: [{
|
|
2348
2028
|
type: Component,
|
|
2349
|
-
args: [{ selector: 'mat-chip-grid', template:
|
|
2350
|
-
|
|
2029
|
+
args: [{ selector: 'mat-chip-grid', template: `
|
|
2030
|
+
<span class="mdc-evolution-chip-set__chips" role="presentation">
|
|
2031
|
+
<ng-content></ng-content>
|
|
2032
|
+
</span>
|
|
2033
|
+
`, inputs: ['tabIndex'], host: {
|
|
2034
|
+
'class': 'mat-mdc-chip-set mat-mdc-chip-grid mdc-evolution-chip-set',
|
|
2351
2035
|
'[attr.role]': 'role',
|
|
2352
2036
|
'[tabIndex]': '_chips && _chips.length === 0 ? -1 : tabIndex',
|
|
2353
2037
|
// TODO: replace this binding with use of AriaDescriber
|
|
@@ -2360,11 +2044,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
2360
2044
|
'(focus)': 'focus()',
|
|
2361
2045
|
'(blur)': '_blur()',
|
|
2362
2046
|
'(keydown)': '_keydown($event)',
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
}] }, { type: i2$1.NgForm, decorators: [{
|
|
2047
|
+
}, providers: [{ provide: MatFormFieldControl, useExisting: MatChipGrid }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}\n"] }]
|
|
2048
|
+
}], ctorParameters: function () { return [{ type: i1.LiveAnnouncer }, { type: undefined, decorators: [{
|
|
2049
|
+
type: Inject,
|
|
2050
|
+
args: [DOCUMENT]
|
|
2051
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i2$1.NgForm, decorators: [{
|
|
2368
2052
|
type: Optional
|
|
2369
2053
|
}] }, { type: i2$1.FormGroupDirective, decorators: [{
|
|
2370
2054
|
type: Optional
|
|
@@ -2376,8 +2060,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
2376
2060
|
type: Input
|
|
2377
2061
|
}], placeholder: [{
|
|
2378
2062
|
type: Input
|
|
2379
|
-
}, {
|
|
2380
|
-
type: Input
|
|
2381
2063
|
}], required: [{
|
|
2382
2064
|
type: Input
|
|
2383
2065
|
}], value: [{
|
|
@@ -2484,18 +2166,11 @@ class MatChipInput {
|
|
|
2484
2166
|
/** Utility method to make host definition/tests more clear. */
|
|
2485
2167
|
_keydown(event) {
|
|
2486
2168
|
if (event) {
|
|
2487
|
-
// Allow the user's focus to escape when they're tabbing forward. Note that we don't
|
|
2488
|
-
// want to do this when going backwards, because focus should go back to the first chip.
|
|
2489
|
-
if (event.keyCode === TAB && !hasModifierKey(event, 'shiftKey')) {
|
|
2490
|
-
this._chipGrid._allowFocusEscape();
|
|
2491
|
-
}
|
|
2492
2169
|
// To prevent the user from accidentally deleting chips when pressing BACKSPACE continuously,
|
|
2493
2170
|
// We focus the last chip on backspace only after the user has released the backspace button,
|
|
2494
2171
|
// And the input is empty (see behaviour in _keyup)
|
|
2495
2172
|
if (event.keyCode === BACKSPACE && this._focusLastChipOnBackspace) {
|
|
2496
|
-
|
|
2497
|
-
this._chipGrid._keyManager.setLastCellActive();
|
|
2498
|
-
}
|
|
2173
|
+
this._chipGrid._focusLastChip();
|
|
2499
2174
|
event.preventDefault();
|
|
2500
2175
|
return;
|
|
2501
2176
|
}
|
|
@@ -2564,9 +2239,9 @@ class MatChipInput {
|
|
|
2564
2239
|
return !hasModifierKey(event) && new Set(this.separatorKeyCodes).has(event.keyCode);
|
|
2565
2240
|
}
|
|
2566
2241
|
}
|
|
2567
|
-
MatChipInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
2568
|
-
MatChipInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0
|
|
2569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0
|
|
2242
|
+
MatChipInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipInput, deps: [{ token: i0.ElementRef }, { token: MAT_CHIPS_DEFAULT_OPTIONS }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2243
|
+
MatChipInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MatChipInput, selector: "input[matChipInputFor]", inputs: { chipGrid: ["matChipInputFor", "chipGrid"], addOnBlur: ["matChipInputAddOnBlur", "addOnBlur"], separatorKeyCodes: ["matChipInputSeparatorKeyCodes", "separatorKeyCodes"], placeholder: "placeholder", id: "id", disabled: "disabled" }, outputs: { chipEnd: "matChipInputTokenEnd" }, host: { listeners: { "keydown": "_keydown($event)", "keyup": "_keyup($event)", "blur": "_blur()", "focus": "_focus()", "input": "_onInput()" }, properties: { "id": "id", "attr.disabled": "disabled || null", "attr.placeholder": "placeholder || null", "attr.aria-invalid": "_chipGrid && _chipGrid.ngControl ? _chipGrid.ngControl.invalid : null", "attr.aria-required": "_chipGrid && _chipGrid.required || null", "attr.required": "_chipGrid && _chipGrid.required || null" }, classAttribute: "mat-mdc-chip-input mat-mdc-input-element mdc-text-field__input mat-input-element" }, exportAs: ["matChipInput", "matChipInputFor"], usesOnChanges: true, ngImport: i0 });
|
|
2244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipInput, decorators: [{
|
|
2570
2245
|
type: Directive,
|
|
2571
2246
|
args: [{
|
|
2572
2247
|
selector: 'input[matChipInputFor]',
|
|
@@ -2627,7 +2302,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
2627
2302
|
const CHIP_DECLARATIONS = [
|
|
2628
2303
|
MatChip,
|
|
2629
2304
|
MatChipAvatar,
|
|
2630
|
-
MatChipCssInternalOnly,
|
|
2631
2305
|
MatChipEditInput,
|
|
2632
2306
|
MatChipGrid,
|
|
2633
2307
|
MatChipInput,
|
|
@@ -2640,10 +2314,9 @@ const CHIP_DECLARATIONS = [
|
|
|
2640
2314
|
];
|
|
2641
2315
|
class MatChipsModule {
|
|
2642
2316
|
}
|
|
2643
|
-
MatChipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0
|
|
2644
|
-
MatChipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0
|
|
2317
|
+
MatChipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2318
|
+
MatChipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipsModule, declarations: [MatChipAction, MatChip,
|
|
2645
2319
|
MatChipAvatar,
|
|
2646
|
-
MatChipCssInternalOnly,
|
|
2647
2320
|
MatChipEditInput,
|
|
2648
2321
|
MatChipGrid,
|
|
2649
2322
|
MatChipInput,
|
|
@@ -2654,7 +2327,6 @@ MatChipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
2654
2327
|
MatChipSet,
|
|
2655
2328
|
MatChipTrailingIcon], imports: [MatCommonModule, CommonModule, MatRippleModule], exports: [MatCommonModule, MatChip,
|
|
2656
2329
|
MatChipAvatar,
|
|
2657
|
-
MatChipCssInternalOnly,
|
|
2658
2330
|
MatChipEditInput,
|
|
2659
2331
|
MatChipGrid,
|
|
2660
2332
|
MatChipInput,
|
|
@@ -2664,7 +2336,7 @@ MatChipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
2664
2336
|
MatChipRow,
|
|
2665
2337
|
MatChipSet,
|
|
2666
2338
|
MatChipTrailingIcon] });
|
|
2667
|
-
MatChipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0
|
|
2339
|
+
MatChipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipsModule, providers: [
|
|
2668
2340
|
ErrorStateMatcher,
|
|
2669
2341
|
{
|
|
2670
2342
|
provide: MAT_CHIPS_DEFAULT_OPTIONS,
|
|
@@ -2673,12 +2345,12 @@ MatChipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
2673
2345
|
},
|
|
2674
2346
|
},
|
|
2675
2347
|
], imports: [[MatCommonModule, CommonModule, MatRippleModule], MatCommonModule] });
|
|
2676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0
|
|
2348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatChipsModule, decorators: [{
|
|
2677
2349
|
type: NgModule,
|
|
2678
2350
|
args: [{
|
|
2679
2351
|
imports: [MatCommonModule, CommonModule, MatRippleModule],
|
|
2680
2352
|
exports: [MatCommonModule, CHIP_DECLARATIONS],
|
|
2681
|
-
declarations: CHIP_DECLARATIONS,
|
|
2353
|
+
declarations: [MatChipAction, CHIP_DECLARATIONS],
|
|
2682
2354
|
providers: [
|
|
2683
2355
|
ErrorStateMatcher,
|
|
2684
2356
|
{
|
|
@@ -2719,5 +2391,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.3",
|
|
|
2719
2391
|
* Generated bundle index. Do not edit.
|
|
2720
2392
|
*/
|
|
2721
2393
|
|
|
2722
|
-
export { MAT_CHIPS_DEFAULT_OPTIONS, MAT_CHIP_AVATAR, MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR, MAT_CHIP_REMOVE, MAT_CHIP_TRAILING_ICON, MatChip, MatChipAvatar,
|
|
2394
|
+
export { MAT_CHIPS_DEFAULT_OPTIONS, MAT_CHIP_AVATAR, MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR, MAT_CHIP_REMOVE, MAT_CHIP_TRAILING_ICON, MatChip, MatChipAvatar, MatChipEditInput, MatChipGrid, MatChipGridChange, MatChipInput, MatChipListbox, MatChipListboxChange, MatChipOption, MatChipRemove, MatChipRow, MatChipSelectionChange, MatChipSet, MatChipTrailingIcon, MatChipsModule };
|
|
2723
2395
|
//# sourceMappingURL=mdc-chips.mjs.map
|